@font-face{font-family:AtlasSans;src:local('Inter'),local('Aptos'),local('Segoe UI');font-display:swap}
:root{color-scheme:dark;--bg:#0b171e;--panel:rgba(16,31,37,.93);--ink:#eef2e8;--muted:#9fbbb9;--line:#345052;--accent:#eaca8c;--good:#b9dda7;--bad:#f3a38a;--tools-surface:#14272c;--tools-text:#eef2e8;--tools-border:#345052;--tools-muted:#9fbbb9;--tools-raised:#294348;--tools-accent:#eaca8c;font-family:AtlasSans,system-ui,sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--ink)}body{height:100dvh}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:12px;background:rgba(16,33,38,.78);color:var(--ink);padding:9px 15px;transition:background .16s,transform .16s}button:hover{background:#294348}button:active{transform:scale(.97)}button:disabled{opacity:.45;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button[hidden],[hidden]{display:none!important}#atlas-main{position:relative;width:100%;height:100%;isolation:isolate;background:radial-gradient(ellipse at 54% 42%,#152931 0%,#0b171e 65%)}#globe{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}#globe.dragging{cursor:grabbing}.topbar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:18px;padding:calc(22px + env(safe-area-inset-top)) 30px 15px;pointer-events:none}.topbar>*{pointer-events:auto}.back-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;text-decoration:none;font-size:23px;background:rgba(11,23,30,.7)}.identity{display:flex;align-items:center;gap:12px}.orbit-mark{font-size:40px;font-weight:200;color:var(--accent);line-height:1}.identity h1{margin:0;font-weight:550;font-size:25px;letter-spacing:-1px}.identity-sub{display:block;font-size:8px;letter-spacing:2.1px;line-height:1.8;color:var(--muted);font-weight:500}.topbar nav{margin-left:auto;display:flex;gap:8px}.topbar nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px}.topbar nav button>span:first-child{font-size:19px}.button-label{font-size:12px}.coordinates{position:absolute;top:115px;left:35px;display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:1.3px;color:#759695;pointer-events:none}.coordinate-line{width:40px;height:1px;background:#345052}.map-controls{position:absolute;right:28px;top:48%;display:grid;gap:8px}.map-controls button{width:46px;padding:0;font-size:23px}.challenge{position:absolute;bottom:calc(38px + env(safe-area-inset-bottom));left:35px;width:min(390px,calc(100% - 70px));border:1px solid rgba(119,164,156,.32);border-radius:22px;padding:22px 24px 16px;background:linear-gradient(130deg,rgba(22,43,48,.98),rgba(12,27,33,.89));box-shadow:0 12px 40px #040e1830;backdrop-filter:blur(16px)}.challenge-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;letter-spacing:1.6px;font-weight:600}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--accent);margin:23px 0 8px}.challenge h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:39px;line-height:1.1;letter-spacing:-.9px;margin:0;text-wrap:balance}.target-context{margin:10px 0 0;font-size:12px;color:var(--muted);line-height:1.5}.feedback{font-size:12px;line-height:1.45;margin:13px 0 15px;min-height:18px;color:var(--ink)}.feedback.good{color:var(--good)}.feedback.bad{color:var(--bad)}.round-track{display:flex;gap:5px;margin-bottom:16px}.round-track span{height:3px;flex:1;background:#2e4c4d;border-radius:3px}.round-track .active{background:var(--accent)}.round-track .correct{background:var(--good)}.round-track .helped{background:#bb9684}.game-actions{display:flex;gap:8px}.game-actions button{flex:1;font-size:12px}.primary{display:flex;justify-content:space-between;align-items:center;background:var(--accent);border-color:var(--accent);color:#202c2c!important;font-weight:600}.primary:hover{background:#f4dbab}.primary>span{font-size:18px}.control-tip{font-size:10px;line-height:1.5;color:#7faaa5;margin:13px 0 0}.score-pill{position:absolute;bottom:48px;right:32px;display:flex;gap:9px;align-items:center;border:1px solid var(--line);padding:11px 15px;border-radius:30px;background:rgba(17,32,37,.8);font-size:11px;color:var(--muted)}.score-pill strong{color:var(--ink);font-size:18px}.score-dot{height:5px;width:5px;border-radius:50%;background:var(--good)}.coverage-badge{position:absolute;bottom:10px;right:34px;margin:0;color:#6d9291;font-size:8px;letter-spacing:1.4px;pointer-events:none}
dialog{background:#14272c;border:1px solid #496365;border-radius:24px;color:var(--ink);width:min(470px,calc(100% - 30px));padding:24px;max-height:calc(100dvh - 40px);box-shadow:0 30px 100px #0008;overflow-y:auto}dialog::backdrop{background:#031019a8;backdrop-filter:blur(7px)}.dialog-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-heading h2{font-family:Georgia,serif;font-size:30px;font-weight:400;margin:0;letter-spacing:-.6px}.dialog-heading button{width:44px;flex:none;padding:0;font-size:25px;border-radius:50%}dialog p{font-size:13px;line-height:1.65;color:#c4d5d0}dialog h3{font-weight:500;font-size:14px;margin:24px 0 12px}dialog a{color:var(--accent)}label{display:block;color:var(--muted);font-size:12px;margin:20px 0 8px}select{display:block;width:100%;height:48px;border:1px solid var(--line);border-radius:11px;padding:0 12px;color:var(--ink);background:#0c2027}#settings-form .primary{width:100%;margin-top:20px}.field-note{font-size:11px!important;color:var(--muted)!important;line-height:1.5}#pool-count{color:var(--accent)!important}.progress-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line)}.progress-numbers strong{font-family:Georgia,serif;font-size:35px;font-weight:400;display:block;color:var(--accent)}.progress-numbers span{display:block;font-size:10px;color:var(--muted);line-height:1.4;margin-top:7px}.weak-list{list-style:none;padding:0;margin:0}.weak-list li{padding:11px 0;border-bottom:1px solid var(--line);font-size:12px;display:flex;gap:10px;justify-content:space-between}.weak-list li span{color:var(--muted);font-size:10px}.skip-link{position:fixed;top:-100px;left:20px;padding:12px;background:var(--accent);color:#14272c;z-index:20}.skip-link:focus{top:10px}.no-script{position:fixed;top:120px;left:25px;padding:20px;z-index:10;background:#14272c}
/* The shared install UI stays usable without covering question/zoom controls. */
.challenge{max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain}
.turn-label{color:var(--accent);font-size:12px;line-height:1.5;font-weight:600;margin:14px 0 0;overflow-wrap:anywhere}
.match-scoreboard{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 16px;margin:8px 0 0;padding:0}
.match-scoreboard li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 8px;min-width:0;font-size:11px;line-height:1.5;color:var(--muted)}
.match-scoreboard li[data-active="true"]{color:var(--ink);font-weight:600}
.match-scoreboard li span:first-child,.result-standings li span:first-child{min-width:0;overflow-wrap:anywhere}
.match-scoreboard li span:last-child,.result-standings li span:last-child{flex:none;font-variant-numeric:tabular-nums}
.result-standings{list-style:none;padding:0;margin:0 0 16px}
.result-standings li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0;font-size:12px;line-height:1.5;padding:9px 0;border-bottom:1px solid var(--line)}
.round-progress{appearance:none;display:block;width:100%;height:3px;border:0;background:var(--line);color:var(--accent);margin:0 0 16px}
.round-progress::-webkit-progress-bar{background:var(--line)}.round-progress::-webkit-progress-value{background:var(--accent)}.round-progress::-moz-progress-bar{background:var(--accent)}
.game-actions{flex-wrap:wrap}.game-actions .end-session{flex:0 0 44px;min-width:44px;min-height:44px;padding:9px 0;color:var(--muted)}
input{font:inherit;display:block;min-width:0;width:100%;min-height:48px;border:1px solid var(--line);border-radius:11px;padding:10px 12px;color:var(--ink);background:#0c2027}
input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.player-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.player-names label{min-width:0;line-height:1.5}.player-names input{margin-top:8px}
.settings-error{color:var(--bad);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.settings-actions button{min-width:0;min-height:48px;white-space:normal;text-align:center}.settings-actions #settings-start{flex:1 1 220px;width:auto;margin-top:0;justify-content:center}.settings-actions #settings-cancel{flex:1 1 90px}
.mode-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mode-choices button{text-align:left;min-width:0;padding:16px;font-size:16px;line-height:1.3}.mode-choices button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent);background:#203739}.mode-choices span{display:block;font-size:11px;color:var(--muted);font-weight:400;line-height:1.5;margin-top:8px}.progress-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}#review-errors{width:100%;margin-top:16px}.weak-list li{min-width:0;overflow-wrap:anywhere}.weak-list li span{flex-shrink:0}
/* Keep the full-screen globe free of decorative counters and map labels. */
.coordinates,.coverage-badge{display:none}
@media(max-width:360px){.mode-choices{grid-template-columns:minmax(0,1fr)}dialog{padding:18px}.mode-choices button{padding:13px}}
.tools-install-control{position:fixed!important;top:115px;right:28px}
@media(min-width:1500px){.challenge{left:50px;bottom:50px;width:430px;padding:26px}.challenge h2{font-size:45px}}
@media(max-width:700px){.topbar{padding:calc(15px + env(safe-area-inset-top)) 16px 10px;gap:12px}.identity{gap:7px}.identity h1{font-size:21px}.identity-sub{display:none}.orbit-mark{font-size:30px}.topbar nav{gap:5px}.topbar nav button{padding:0;width:44px;border-radius:50%}.button-label{display:none}.back-button{width:40px;height:44px}.coordinates{left:19px;top:82px;font-size:8px}.coordinates>span:last-child,.coordinate-line{display:none}.map-controls{right:15px;top:34%;gap:6px}.map-controls button{width:44px;background:#10252ed9}.challenge{left:15px;bottom:calc(26px + env(safe-area-inset-bottom));width:calc(100% - 30px);padding:18px 20px 14px;border-radius:21px}.challenge h2{font-size:34px}.eyebrow{margin:16px 0 6px}.feedback{margin:9px 0 12px;min-height:17px}.control-tip{font-size:9px;margin-top:10px}.target-context{margin-top:6px;font-size:11px}.round-track{margin-bottom:12px}.score-pill{top:82px;right:16px;bottom:auto;padding:5px 10px;gap:6px;font-size:9px}.score-pill strong{font-size:14px}.coverage-badge{font-size:7px;right:18px;bottom:8px}.neuroemi-pwa-launcher{top:116px!important;right:15px!important}}
@media(max-width:360px){.topbar{gap:6px;padding-left:10px;padding-right:10px}.topbar nav{gap:3px}.identity h1{font-size:18px}.orbit-mark{display:none}.topbar nav button{width:44px}.challenge h2{font-size:30px}.challenge{padding:15px}.control-tip{font-size:8px}.coordinates{top:80px}}
@media(max-height:620px) and (min-width:701px){.challenge{bottom:20px;padding:15px 20px;width:330px}.challenge h2{font-size:30px}.eyebrow{margin-top:12px}.control-tip{display:none}.topbar{padding-top:14px}.coordinates{top:88px}.map-controls{top:34%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){.tools-install-control{top:126px;right:15px}}
@media(max-width:700px){.challenge{max-height:57dvh}.match-scoreboard{gap:4px 12px}.challenge-meta{flex-wrap:wrap}.turn-label{margin-top:10px;font-size:11px}}
@media(max-height:500px){.challenge{max-height:calc(100dvh - 112px)}.match-scoreboard{gap:3px 12px}.turn-label{margin-top:8px}.player-names{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px) and (max-height:500px){.challenge{max-height:52dvh}}
@media(min-width:701px) and (max-height:500px){.tools-install-control{top:72px;right:28px}}
