:root{--bg:#0b1220;--panel:#131c30;--panel-2:#101a2e;--border:#223050;--border-line:#e8edf547;--text:#e8edf5;--muted:#8b98b3;--accent:#4f8cff;--green:#3fb37f;--amber:#e0b64a;--red:#d9644a;--land:#22304d;--unseen:#2a3752;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,sans-serif}.app-error{text-align:center;flex-direction:column;gap:12px;max-width:420px;margin:0 auto;padding:64px 20px;display:flex}.app-error h1{margin:0 0 8px;font-size:1.4rem}.btn{font:inherit;border:1px solid var(--border);cursor:pointer;border-radius:10px;padding:12px 28px;font-weight:600}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-secondary{background:var(--panel-2);color:var(--text)}.btn:focus-visible{outline:2px solid var(--text);outline-offset:2px}.flag{background:var(--panel);border-radius:6px;line-height:0;display:inline-block;overflow:hidden;box-shadow:0 4px 12px #00000059}.flag img{object-fit:cover;width:100%;height:100%;display:block}.flag-sm{width:48px;height:36px}.flag-md{width:84px;height:63px}.flag-lg{aspect-ratio:4/3;width:100%;max-width:320px}.flag-fill{aspect-ratio:4/3;width:100%}.country{flex-direction:column;gap:16px;max-width:560px;margin:0 auto;padding:32px 20px 48px;display:flex}.country h1{text-align:center;margin:0;font-size:1.75rem}.country-back{color:var(--muted);align-self:flex-start}.country-flag{justify-content:center;display:flex}.country-facts{text-align:center;color:var(--muted);margin:0}.country-mastery{justify-content:center;align-items:center;gap:8px;margin:0;display:flex}.country-dot{background:var(--muted);border-radius:50%;width:10px;height:10px}.country-dot-solid{background:var(--green)}.country-dot-shaky{background:var(--amber)}.country-dot-weak{background:var(--red)}.country-dot-unseen{background:var(--muted)}.country-story{background:var(--panel);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:10px;margin:0;padding:14px 16px;display:flex}.country-story p{margin:0;font-size:1rem;line-height:1.5}.country-story .country-story__source{color:var(--muted);font-size:.8rem}.country-story__source a{color:inherit}.country-story__more{color:var(--accent);align-self:flex-start;font-weight:600;text-decoration:none}.country-story__more:hover,.country-story__more:focus-visible{text-decoration:underline}.country-actions{text-align:center;flex-direction:column;align-items:stretch;gap:10px;display:flex}.country-paused{color:var(--muted);margin:0}.country-resume{color:var(--accent);padding:10px;font-weight:600}.map-error{color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px 16px;display:flex}.map-error p{margin:0}.world-map{touch-action:none;width:100%;height:100%;position:relative}.world-map svg{display:block}.world-map path{stroke:var(--border);stroke-width:.5px;vector-effect:non-scaling-stroke}.world-map path,.world-map circle{transition:fill .15s}.world-map[data-borders=true] path[data-code],.world-map[data-borders=true] path.ctx{stroke:var(--border-line);stroke-width:.8px;vector-effect:non-scaling-stroke}.world-map[data-borders=false] path[data-code]{stroke:none}.world-map path.ctx{fill:var(--land);opacity:.45;pointer-events:none}.world-map [role=button]{cursor:pointer;outline:none}.world-map [role=button]:focus-visible[data-code]{stroke:var(--text);stroke-width:2px}.map-tooltip{pointer-events:none;background:var(--panel);color:var(--text);white-space:nowrap;z-index:2;border-radius:6px;padding:4px 8px;font-size:.85rem;position:absolute;transform:translate(12px,12px);box-shadow:0 2px 8px #00000040}.world-map circle[data-hit]{fill:#0000;stroke:none;pointer-events:all;cursor:pointer}.map-tooltip--pinned{pointer-events:auto;border:1px solid var(--border);font:inherit;text-align:left;cursor:pointer;font-size:.85rem}.map-reset{border:1px solid var(--border);background:var(--panel);width:32px;height:32px;color:var(--text);cursor:pointer;border-radius:50%;font-size:1.1rem;line-height:1;position:absolute;top:8px;right:8px}.world-map .hl-wrong{animation:.6s ease-out hl-wrong}.world-map .hl-correct{animation:.4s ease-out hl-correct}.world-map .hl-reveal{animation:1.5s ease-in-out hl-reveal}.world-map .hl-shake{transform-box:fill-box;animation:.3s ease-in-out hl-shake}@keyframes hl-shake{20%,60%{transform:translate(-2px)}40%,80%{transform:translate(2px)}}@keyframes hl-wrong{0%,60%{fill:var(--red)}}@keyframes hl-correct{50%{fill:var(--green);filter:brightness(1.3)}}@keyframes hl-reveal{0%,50%,to{stroke:var(--text);stroke-width:3px}25%,75%{stroke:var(--text);stroke-width:1px}}@media (prefers-reduced-motion:reduce){.world-map .hl-wrong,.world-map .hl-correct,.world-map .hl-reveal,.world-map .hl-shake{transition:none;animation:none}.world-map .hl-wrong{fill:var(--red)!important}.world-map .hl-correct{fill:var(--green)!important}.world-map .hl-reveal{stroke:var(--text)!important;stroke-width:3px!important}}.home{flex-direction:column;gap:16px;max-width:720px;margin:0 auto;padding:16px;display:flex}.home-panel{background:var(--panel);border:1px solid var(--border);border-radius:14px}.home-header p{margin:0}.home-title{justify-content:space-between;align-items:center;gap:12px;display:flex}.home-title h1{margin:0;font-size:1.5rem}.home-streak{border:1px solid var(--border);background:var(--panel-2);white-space:nowrap;border-radius:999px;padding:4px 12px;font-size:.9rem}.home-header .home-date{color:var(--muted);margin-top:4px;font-size:.9rem}.home-header .home-learned{margin-top:8px;font-weight:600}.home-map-area{flex-direction:column;gap:8px;display:flex}.home-map{aspect-ratio:var(--map-aspect,2 / 1);width:100%;overflow:hidden}.home-map-loading{color:var(--muted);place-items:center;margin:0;display:grid}.home-legend{color:var(--muted);flex-wrap:wrap;order:1;gap:4px 14px;margin:0;padding:0;font-size:.8rem;list-style:none;display:flex}.home-legend li{align-items:center;gap:6px;display:flex}.home-swatch{border-radius:3px;width:10px;height:10px}.home-tip{align-items:center;gap:8px;display:flex}.home-tip strong{display:block}.home-tip-detail{color:var(--muted);font-size:.8rem;display:block}.home-fotd{color:inherit;align-items:center;gap:14px;padding:12px;text-decoration:none;display:flex}.home-fotd:hover{border-color:var(--accent)}.home-fotd-text{flex-direction:column;gap:2px;display:flex}.home-fotd-label{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.75rem}.home-fotd-prompt{color:var(--accent);font-size:.85rem}.home-play{flex-direction:column;gap:8px;display:flex}.home-again{font:inherit;color:var(--accent);cursor:pointer;background:0 0;border:none;padding:4px}.home-stats{text-align:center;color:var(--muted);margin:0;font-size:.85rem}.home-tiles{display:none}.home-tile{flex-direction:column;gap:4px;padding:12px;display:flex}.home-tile span{color:var(--muted);font-size:.8rem}.home-tile strong{font-size:1.4rem}.home-links{grid-template-columns:1fr 1fr;gap:10px;display:grid}.home-links .btn{text-align:center;padding:12px 10px;text-decoration:none}.home-links .btn:disabled{color:var(--muted);cursor:default}.home-setting{color:var(--muted);cursor:pointer;align-items:center;gap:8px;font-size:.9rem;display:flex}@media (width>=1024px){.home{grid-template:"header map""card map""play map""tiles map""links map""setting map"".map"1fr/300px 1fr;gap:16px 24px;max-width:1400px;min-height:100vh;margin:0 auto;padding:24px;display:grid}.home-header{grid-area:header}.home-fotd{grid-area:card}.home-play{grid-area:play}.home-tiles{grid-area:tiles;grid-template-columns:1fr 1fr;gap:10px;display:grid}.home-links{grid-area:links}.home-setting{grid-area:setting}.home-map-area{grid-area:map;min-height:0}.home-legend{order:0}.home-map{aspect-ratio:auto;flex:1;min-height:0}}.practice{flex-direction:column;gap:16px;max-width:560px;margin:0 auto;padding:32px 20px 48px;display:flex}.practice h1{text-align:center;margin:0;font-size:1.75rem}.practice-back{color:var(--muted);align-self:flex-start}.practice-intro{text-align:center;color:var(--muted);margin:0}.practice-scopes{border:0;min-width:0;margin:0;padding:0}.practice-scopes legend{margin-bottom:8px;padding:0;font-weight:600}.practice-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.practice-card{background:var(--panel);border:1px solid var(--border);cursor:pointer;border-radius:14px;flex-direction:column;gap:4px;padding:14px 16px;display:flex;position:relative}.practice-card input{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.practice-card-selected{border-color:var(--accent)}.practice-card:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.practice-card-disabled{opacity:.5;cursor:not-allowed}.practice-card-name{font-weight:600}.practice-card-count{color:var(--muted);font-size:.9rem}.practice-timer{cursor:pointer;align-items:center;gap:8px;display:flex}.practice-paused-box{text-align:center;flex-direction:column;align-items:stretch;gap:10px;display:flex}.practice-paused{color:var(--muted);margin:0}.practice-resume{color:var(--accent);padding:10px;font-weight:600}@media (width>=1024px){.practice-grid{grid-template-columns:repeat(4,1fr)}}.results{flex-direction:column;gap:20px;max-width:560px;margin:0 auto;padding:32px 20px 48px;display:flex}.results h1{margin:0;font-size:1.5rem}.results-time{text-align:center}.results-time-value{font-variant-numeric:tabular-nums;font-size:3.5rem;font-weight:700}.results-note,.results-streak,.results-best,.results-sweep{text-align:center;color:var(--muted);margin:0}.results-best{color:var(--green);font-weight:600}.results-counts{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.results-tile{background:var(--panel);border:1px solid var(--border);text-align:center;border-radius:12px;flex-direction:column;gap:4px;padding:12px 8px;display:flex}.results-tile strong{font-size:1.5rem}.results-tile span{color:var(--muted);font-size:.8rem}.results-clean strong{color:var(--green)}.results-shaky strong{color:var(--amber)}.results-revealed strong{color:var(--red)}.results-missed{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.results-missed li{background:var(--panel);border:1px solid var(--border);border-radius:10px;align-items:center;gap:12px;padding:8px 12px;display:flex}.results-name{flex:1}.results-badge{border:1px solid;border-radius:999px;padding:2px 8px;font-size:.75rem}.results-badge-shaky{color:var(--amber)}.results-badge-revealed{color:var(--red)}.results-actions{flex-direction:column;align-items:stretch;gap:10px;display:flex}.results-home{text-align:center;color:var(--muted);padding:10px}.results-map{aspect-ratio:var(--map-aspect,2 / 1);background:var(--panel);border:1px solid var(--border);border-radius:12px;width:100%;max-height:320px;margin:0 auto;overflow:hidden}.results-map .world-map{touch-action:auto}.sprint-bar{background:var(--panel);border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:10px 16px;display:flex}.sprint-bar__flag.flag-md{flex:none;width:84px;height:56px}.sprint-bar__info{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.sprint-bar__row{justify-content:space-between;align-items:center;gap:8px;display:flex}.sprint-bar__time{font-variant-numeric:tabular-nums;font-size:24px;font-weight:700}.sprint-bar__time.is-paused{color:var(--muted)}.sprint-bar__count{color:var(--muted);font-variant-numeric:tabular-nums}.sprint-bar__progress{background:var(--panel-2);border-radius:2px;height:4px;overflow:hidden}.sprint-bar__progress-fill{background:var(--accent);height:100%;transition:width .2s}.sprint-bar__message{min-height:1.3em;color:var(--amber);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:14px;line-height:1.3em;overflow:hidden}.sprint-bar__misses{flex:none;gap:4px;display:inline-flex}.sprint-bar__misses .dot{border:1.5px solid var(--muted);border-radius:50%;width:8px;height:8px}.sprint-bar__misses .dot.is-filled{background:var(--red);border-color:var(--red)}.sprint-bar__esc{color:var(--muted);margin:0;font-size:12px;display:none}@media (width>=1024px){.sprint-bar{border-bottom:none;border-right:1px solid var(--border);flex-direction:column;align-items:stretch;gap:16px;padding:20px}.sprint-bar__flag.flag-md{aspect-ratio:3/2;width:100%;height:auto}.sprint-bar__time{font-size:40px}.sprint-bar__message{white-space:normal;min-height:2.6em}.sprint-bar__esc{display:block}}.sprint{flex-direction:column;height:100dvh;display:flex;overflow:hidden}.sprint__map{flex:1;min-height:0;position:relative}.sprint__map .world-map{width:100%;height:100%}.sprint__loading{height:100%;color:var(--muted);place-items:center;margin:0;display:grid}.sprint__overlay{background:#0b1220b3;place-items:center;display:grid;position:absolute;inset:0}.sprint__ready{text-align:center;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:24px 32px}.sprint__ready h2{margin:0 0 16px}.sprint__hints{padding:8px 16px calc(8px + env(safe-area-inset-bottom));text-align:center;color:var(--muted);border-top:1px solid var(--border);flex-direction:column;gap:8px;font-size:12px;display:flex}@media (width>=1024px){.sprint{grid-template-rows:1fr;grid-template-columns:280px 1fr;display:grid}.sprint__hints{border-top:none;grid-area:1/1;align-self:end}.sprint__hint-text{display:none}}.sprint__map-error{height:100%}
