:root {
    color-scheme: dark;
    font-synthesis: none;
    background: #020607;
}

* { box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #020607;
    color: #d2dfdb;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 16px;
}

body { min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { transition: border-color .14s ease, background-color .14s ease, color .14s ease, opacity .14s ease, transform .14s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #77d8bb; outline-offset: 2px; }
h1:focus { outline: none; }

input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid #46665c;
    border-radius: 3px;
    background: #030a08;
    color: #04100c;
    cursor: pointer;
}

input[type="checkbox"]::after {
    content: "";
    width: 7px;
    height: 4px;
    margin-top: -2px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0;
    transform: rotate(-45deg) scale(.65);
    transition: opacity .12s ease, transform .12s ease;
}

input[type="checkbox"]:checked {
    border-color: #72d8b6;
    background: #58cba6;
    box-shadow: 0 0 9px rgba(88,203,166,.22);
}

input[type="checkbox"]:checked::after { opacity: 1; transform: rotate(-45deg) scale(1); }
input[type="checkbox"]:disabled { opacity: .38; cursor: not-allowed; }

select {
    border-radius: 2px;
    background-image: linear-gradient(45deg,transparent 50%,#83aa9d 50%),linear-gradient(135deg,#83aa9d 50%,transparent 50%) !important;
    background-position: calc(100% - 13px) 50%,calc(100% - 9px) 50%;
    background-size: 4px 4px,4px 4px;
    background-repeat: no-repeat;
    padding-right: 26px !important;
    appearance: none;
}

input:disabled, select:disabled { opacity: .42; cursor: not-allowed; }

.primary-link, .secondary-link { display:inline-block; padding:12px 18px; text-decoration:none; font-size:11px; font-weight:800; letter-spacing:.1em; }
.primary-link { background:#58cfa7; color:#03100c; border:1px solid #78e4c0; box-shadow:0 10px 35px rgba(64,199,154,.16); }
.secondary-link { color:#a9c3ba; border:1px solid #36564d; background:#07100e; }
.account-card,.access-card { width:min(430px,94vw); padding:28px; border:1px solid #315249; background:linear-gradient(150deg,rgba(12,27,23,.97),rgba(3,9,8,.98)); box-shadow:0 30px 100px rgba(0,0,0,.45); }
.account-card > small,.access-card > small { color:#65cba9; font-size:11px; font-weight:700; letter-spacing:.22em; }
.account-card h1,.access-card h1 { margin:9px 0 7px; color:#eef8f4; font-size:29px; }
.account-card > p,.access-card > p { margin:0 0 24px; color:#879f97; line-height:1.55; }
.account-card form { display:grid; gap:14px; }
.account-card label { display:grid; gap:6px; color:#8ba49b; font-size:11px; font-weight:700; letter-spacing:.1em; }
.account-card label small { color:#607970; font-size:10px; font-weight:400; letter-spacing:0; }
.account-card input { width:100%; border:1px solid #2d4b42; background:#020807; color:#e2eee9; padding:11px 12px; border-radius:2px; font-size:14px; }
.account-card input:focus { outline:1px solid #64d3ae; border-color:#64d3ae; }
.account-card form button { margin-top:5px; border:1px solid #77e1bd; background:#55cba3; color:#02100b; padding:14px; font-weight:800; font-size:12px; letter-spacing:.12em; }
.account-card footer { margin-top:24px; padding-top:20px; border-top:1px solid #223a33; color:#718a81; font-size:13px; }
.account-card footer a { color:#78d8b8; }
.account-error { margin:0 0 18px; padding:11px 13px; border:1px solid #7a4038; background:#26100d; color:#e5a398; font-size:13px; }

.blazor-error-boundary {
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 16px;
    padding: 14px 18px;
    border: 1px solid #b55a50;
    background: #4a1713;
    color: white;
}

.blazor-error-boundary::after { content: "The game encountered an unexpected error."; }

/* Keep MapLibre's positioning contract intact. Custom marker styles must not
   replace this absolute positioning with relative positioning. */
.maplibregl-map { position: relative; overflow: hidden; }
.maplibregl-canvas-container, .maplibregl-canvas { position: absolute; inset: 0; }
.maplibregl-marker { position: absolute !important; top: 0 !important; left: 0 !important; will-change: transform; }
