:root {
  --ink: #081522;
  --ink-soft: #10283b;
  --paper: #fff9df;
  --cream: #f7efc7;
  --blue: #126e9f;
  --sky: #42c7dc;
  --navy: #083b66;
  --teal: #34c6ae;
  --green: #8de09c;
  --gold: #ffd24c;
  --orange: #ef8e49;
  --purple: #7959db;
  --shadow: 0 18px 55px rgba(1, 22, 40, .35);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--paper); background: #092d4b; font-family: "Trebuchet MS", Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.atlas-texture { position: fixed; z-index: -1; inset: 0; opacity: .32; pointer-events: none; background-image: radial-gradient(circle at 15% 15%, rgba(66,199,220,.8) 0 2px, transparent 2.5px), radial-gradient(circle at 85% 70%, rgba(255,210,76,.7) 0 2px, transparent 2.5px); background-size: 29px 29px, 41px 41px; }
.atlas-shell { position: relative; width: min(1360px, 100%); min-height: 100vh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); display: flex; flex-direction: column; }
.portal-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.portal-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); font-family: Impact, "Arial Black", sans-serif; font-size: clamp(.9rem, 2vw, 1.08rem); letter-spacing: .06em; text-decoration: none; }.portal-brand strong { color: var(--green); font-weight: inherit; }
.mini-globe { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--gold); box-shadow: 3px 3px 0 rgba(0,0,0,.28); font-size: 1.2rem; }
.portal-actions { display: flex; align-items: center; gap: 8px; }.atlas-chip, .help-button, .sound-button { min-height: 40px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); }.atlas-chip { color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }.help-button, .sound-button { color: var(--paper); transition: background .2s ease, transform .2s ease; }.help-button:hover, .sound-button:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }.sound-button { display: inline-flex; align-items: center; gap: 6px; }
.atlas-main { flex: 1; display: grid; align-items: center; padding: clamp(18px, 4vw, 46px) 0; }.screen { width: 100%; }
.start-screen, .results-screen { min-height: 700px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(6, 30, 52, .93); box-shadow: var(--shadow); }
.start-copy, .results-panel { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }.start-copy { background: radial-gradient(circle at 15% 8%, rgba(52,198,174,.2), transparent 17rem), linear-gradient(160deg, rgba(8,72,116,.98), rgba(6,30,52,.98)); }
.back-link { width: max-content; margin-bottom: 24px; color: var(--gold); font-size: .85rem; font-weight: 900; text-decoration: none; }.back-link:hover { color: var(--green); }
.eyebrow, .prompt-kicker { margin: 0; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; } h1 { margin: 10px 0 0; color: var(--paper); font-family: Impact, "Arial Black", sans-serif; font-size: clamp(3.4rem, 7vw, 6.2rem); line-height: .84; letter-spacing: .035em; } h1 span { color: var(--sky); }.tagline { max-width: 28rem; margin: 24px 0 8px; color: var(--green); font-size: clamp(1.1rem, 2.3vw, 1.45rem); font-weight: 900; }.intro-copy { max-width: 31rem; margin-bottom: 20px; color: #dcebf0; line-height: 1.5; }
.atlas-fact { width: min(100%, 410px); margin-bottom: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(66,199,220,.38); border-left: 5px solid var(--sky); border-radius: 12px; background: rgba(66,199,220,.09); }.atlas-fact span { color: var(--sky); font-size: .64rem; font-weight: 900; letter-spacing: .12em; }.atlas-fact strong { color: var(--paper); font-size: 1.02rem; }.atlas-fact small { color: rgba(255,249,223,.72); font-size: .77rem; }
.name-entry { margin: 13px 0 14px; padding: 13px 15px 14px; display: grid; gap: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(255,255,255,.06); }.name-entry label { color: var(--gold); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }.name-entry input { width: 100%; min-height: 46px; padding: 9px 12px; color: var(--paper); border: 2px solid rgba(255,255,255,.22); border-radius: 9px; outline: 0; background: rgba(1,22,40,.7); font-weight: 800; }.name-entry input::placeholder { color: rgba(255,249,223,.5); }.name-entry input:focus { border-color: var(--sky); }.name-entry span { color: rgba(255,249,223,.66); font-size: .74rem; font-weight: 700; }
.location-strip { margin: 1px 0 14px; display: flex; flex-wrap: wrap; gap: 5px; }.location-strip span { padding: 5px 8px; color: var(--ink); border-radius: 999px; background: var(--sky); font-size: .62rem; font-weight: 900; }
.start-leaderboard-panel, .leaderboard-panel { margin: 5px 0 16px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(0,0,0,.18); }.leaderboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 9px; }.shelf-kicker { display: block; color: var(--gold); font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }.leaderboard-heading h2, .leaderboard-heading h3 { margin: 2px 0 0; color: var(--paper); font-family: Impact, "Arial Black", sans-serif; font-size: clamp(1.3rem, 3vw, 1.8rem); }.leaderboard-note { color: #c9d9d2; font-size: .67rem; font-weight: 800; text-align: right; }.leaderboard-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }.leaderboard-row { min-height: 39px; padding: 5px 8px; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 7px; border-left: 3px solid rgba(255,255,255,.23); border-radius: 7px; background: rgba(255,255,255,.07); }.leaderboard-row.is-current { border-left-color: var(--sky); background: rgba(66,199,220,.13); }.leader-rank { color: rgba(255,249,223,.62); font-weight: 900; }.leader-copy { min-width: 0; display: grid; }.leader-name { overflow: hidden; color: var(--paper); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }.leader-meta { color: rgba(255,249,223,.57); font-size: .62rem; font-weight: 700; }.leader-score { color: var(--gold); font-size: .95rem; }.leaderboard-empty { padding: 8px; color: rgba(255,249,223,.6); font-size: .74rem; text-align: center; }
.start-button, .secondary-button, .next-button { min-height: 50px; border-radius: 12px; font-weight: 900; letter-spacing: .035em; }.start-button { width: 100%; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); border: 2px solid #06121e; background: var(--sky); box-shadow: 5px 5px 0 var(--gold); text-transform: uppercase; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }.start-button:disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .68; }.start-button:not(:disabled):hover { filter: brightness(1.06); transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--gold); }.start-button > span:last-child { font-size: 1.35rem; }.microcopy { margin: 12px 0 0; color: rgba(255,249,223,.6); font-size: .68rem; font-weight: 700; text-align: center; }
.start-art, .results-art { position: relative; min-height: 700px; overflow: hidden; background: linear-gradient(180deg, #1a6599 0 45%, #0d527e 45% 64%, #0c3d5a 64% 100%); }.start-art::after, .results-art::after { content: ""; position: absolute; inset: 54% 0 0; opacity: .34; background: repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(52,198,174,.8) 9.5% 10%, transparent 10% 19.5%); }.art-sun { position: absolute; top: 11%; right: 13%; width: 96px; height: 96px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 42px rgba(255,210,76,.46); }.art-cloud { position: absolute; width: 190px; height: 35px; border-radius: 50%; background: rgba(255,255,255,.68); filter: blur(1px); }.cloud-one { top: 21%; left: -8%; }.cloud-two { top: 29%; right: -11%; transform: scale(.72); opacity: .72; }
.art-globe { position: absolute; z-index: 3; top: 18%; left: 26%; width: 50%; aspect-ratio: 1; display: grid; place-items: center; border: 9px solid rgba(255,249,223,.9); border-radius: 50%; background: rgba(8,59,102,.35); box-shadow: 9px 11px 0 rgba(2,25,43,.34), inset 0 0 0 7px rgba(66,199,220,.35); transform: rotate(-7deg); }.art-globe::before, .art-globe::after { content: ""; position: absolute; border: 3px solid rgba(255,249,223,.45); border-radius: 50%; }.art-globe::before { inset: 9% 28%; }.art-globe::after { inset: 28% 9%; transform: rotate(90deg); }.art-globe span { position: relative; z-index: 2; font-size: clamp(5rem, 13vw, 9rem); filter: drop-shadow(5px 7px 0 rgba(0,0,0,.27)); }.art-route { position: absolute; z-index: 4; width: 26%; height: 16%; border: 4px dashed var(--gold); border-left: 0; border-bottom: 0; border-radius: 50%; transform: rotate(18deg); }.route-one { top: 33%; left: 11%; }.route-two { right: 7%; bottom: 28%; transform: rotate(198deg); }.art-compass { position: absolute; z-index: 5; right: 12%; bottom: 15%; width: 90px; height: 90px; display: grid; place-items: center; color: var(--ink); border: 5px solid var(--gold); border-radius: 50%; background: var(--paper); font-family: Impact, "Arial Black", sans-serif; font-size: 1.65rem; box-shadow: 6px 7px 0 rgba(0,0,0,.3); }.art-compass span { position: absolute; color: var(--orange); font-size: 3.4rem; transform: rotate(45deg); }.art-explorer { position: absolute; z-index: 5; left: 15%; bottom: 7%; font-size: 7rem; transform: rotate(-8deg); filter: drop-shadow(5px 7px 0 rgba(0,0,0,.32)); }.art-callout { position: absolute; z-index: 7; left: 10%; top: 48%; color: var(--gold); font-family: "Comic Sans MS", cursive; font-size: clamp(1.5rem, 3.8vw, 3rem); transform: rotate(-8deg); text-shadow: 3px 3px 0 var(--ink); }.art-coordinates { position: absolute; z-index: 7; right: 8%; bottom: 8%; color: rgba(255,249,223,.78); font-family: Impact, "Arial Black", sans-serif; font-size: .92rem; letter-spacing: .08em; transform: rotate(4deg); }

.play-screen { border: 1px solid rgba(255,255,255,.16); border-radius: 20px; overflow: hidden; background: var(--ink-soft); box-shadow: var(--shadow); }.game-hud { display: grid; grid-template-columns: repeat(4, 1fr); background: #071d30; }.hud-stat { min-height: 76px; padding: 11px 14px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border-right: 1px solid rgba(255,255,255,.13); text-align: center; }.hud-stat:last-child { border-right: 0; }.hud-stat span { color: rgba(255,249,223,.6); font-size: .66rem; font-weight: 900; letter-spacing: .13em; }.hud-stat strong { color: var(--paper); font-size: clamp(1.25rem, 4vw, 2rem); line-height: 1; }.hud-score-stat strong { color: var(--gold); }.hud-streak-stat strong { color: var(--sky); }
.mission-banner { padding: 18px 18px 17px; color: var(--ink); text-align: center; background: radial-gradient(circle at 15% 30%, rgba(66,199,220,.2) 0 3px, transparent 4px), radial-gradient(circle at 85% 70%, rgba(121,89,219,.15) 0 3px, transparent 4px), var(--paper); background-size: 24px 24px, 28px 28px, auto; box-shadow: 0 8px 20px rgba(0,0,0,.25); }.mission-banner .prompt-kicker { color: var(--navy); }.mission-banner h2 { margin: 7px auto 2px; color: var(--ink); font-family: Impact, "Arial Black", sans-serif; font-size: clamp(1.7rem, 4vw, 2.65rem); letter-spacing: .025em; }.mission-banner p:not(.prompt-kicker) { margin: 0; color: #3c5262; font-size: clamp(.95rem, 2vw, 1.12rem); font-weight: 900; letter-spacing: .08em; }.mission-banner span { display: block; margin-top: 7px; color: #697889; font-size: .72rem; font-weight: 800; }
.map-board { position: relative; min-height: 700px; padding: 20px clamp(12px, 3vw, 32px) 27px; background: linear-gradient(155deg, #123b61, #0e665c 74%, #277c56); }.map-board::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(90deg, transparent 49%, rgba(255,255,255,.06) 50%, transparent 51%), linear-gradient(transparent 49%, rgba(255,255,255,.05) 50%, transparent 51%); background-size: 44px 44px; }.map-board-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--gold); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }.map-board-header span { color: rgba(255,249,223,.76); font-size: .68rem; font-weight: 700; letter-spacing: 0; }.map-layout { position: relative; z-index: 1; margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .45fr); gap: 13px; align-items: stretch; }
.map-stage { position: relative; min-height: 560px; padding: 14px; overflow: hidden; border: 2px solid rgba(66,199,220,.52); border-radius: 18px; background: rgba(3, 29, 52, .55); box-shadow: 5px 6px 0 rgba(1, 22, 40, .25); }.map-title { position: absolute; z-index: 2; top: 18px; left: 23px; color: rgba(255,249,223,.7); font-size: .69rem; font-weight: 900; letter-spacing: .14em; }.world-map { display: block; width: 100%; height: auto; min-height: 510px; margin-top: 17px; border-radius: 15px; overflow: visible; }.map-water { fill: url(#mapWater); stroke: rgba(255,249,223,.55); stroke-width: 4; }.map-grid-line { stroke: rgba(255,255,255,.14); stroke-width: 2; stroke-dasharray: 6 10; }.map-equator { stroke: rgba(255,210,76,.48); stroke-width: 3; stroke-dasharray: 11 9; }.map-zone { outline: none; cursor: pointer; }.map-zone .zone-shape { transition: fill .16s ease, stroke .16s ease, stroke-width .16s ease, filter .16s ease, opacity .16s ease; }.ocean-zone .zone-shape { fill: rgba(66,199,220,.13); stroke: rgba(197,249,255,.58); stroke-width: 3; stroke-dasharray: 9 7; }.land-zone .zone-shape { fill: url(#mapLand); stroke: rgba(255,249,223,.9); stroke-width: 3; }.land-zone:nth-of-type(2n) .zone-shape { fill: url(#mapLandAlt); }.map-zone:hover .zone-shape, .map-zone.is-targeted .zone-shape, .map-zone:focus .zone-shape { stroke: var(--gold); stroke-width: 6; filter: drop-shadow(0 0 9px rgba(255,210,76,.7)); }.map-zone.is-targeted .zone-shape { fill: rgba(255,210,76,.62); }.map-zone.is-complete .zone-shape { fill: rgba(141,224,156,.86); stroke: var(--paper); stroke-width: 4; filter: drop-shadow(0 0 9px rgba(141,224,156,.7)); }.zone-mark { pointer-events: none; fill: var(--paper); font-family: Impact, "Arial Black", sans-serif; font-size: 23px; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(8,21,34,.45); stroke-width: 4px; }.zone-label { pointer-events: none; fill: var(--ink); font-family: Impact, "Arial Black", sans-serif; font-size: 16px; letter-spacing: .03em; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.map-compass { position: absolute; z-index: 3; right: 25px; top: 30px; width: 45px; height: 45px; display: grid; place-items: center; color: var(--ink); border: 3px solid var(--gold); border-radius: 50%; background: var(--paper); font-family: Impact, "Arial Black", sans-serif; box-shadow: 3px 4px 0 rgba(1,22,40,.3); }.map-compass span { position: absolute; color: var(--orange); font-size: 1.5rem; transform: rotate(45deg); }.map-caption { margin-top: -1px; color: rgba(255,249,223,.68); font-size: .68rem; font-weight: 800; text-align: center; }
.location-panel { display: flex; flex-direction: column; gap: 12px; }.location-card { position: relative; min-height: 240px; padding: 25px 18px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; color: var(--ink); border: 4px solid var(--gold); border-radius: 17px; outline: none; background: var(--paper); box-shadow: 6px 7px 0 rgba(1,22,40,.4); text-align: center; cursor: grab; touch-action: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }.location-card:hover, .location-card.is-selected { transform: translateY(-4px) rotate(-1deg); background: #fff0a8; }.location-card.is-dragging { opacity: .65; transform: rotate(3deg) scale(.97); }.location-card:focus-visible { border-color: var(--sky); }.location-card small { color: var(--navy); font-size: .66rem; font-weight: 900; letter-spacing: .14em; }.location-card strong { max-width: 190px; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: .96; }.location-card > span:not(.card-pin):not(.card-spark) { color: #5e6870; font-size: .76rem; font-weight: 800; line-height: 1.25; }.card-pin { font-size: 2rem; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.18)); }.card-spark { position: absolute; right: 12px; bottom: 9px; color: var(--purple); font-size: 1.1rem; }.map-legend { padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--sky); border-radius: 12px; background: rgba(1,22,40,.35); }.map-legend strong { color: var(--gold); font-size: .65rem; letter-spacing: .12em; }.map-legend span { color: rgba(255,249,223,.78); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.feedback { position: absolute; z-index: 8; left: 50%; bottom: 18px; width: min(650px, calc(100% - 30px)); padding: 13px 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 10px; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; background: rgba(255,249,223,.97); box-shadow: 5px 6px 0 rgba(1,22,40,.3); text-align: center; transform: translateX(-50%); }.feedback strong { color: var(--navy); font-size: 1.08rem; }.feedback span { font-size: .9rem; font-weight: 800; }.feedback.is-wrong strong { color: #bf4d57; }.next-button { min-height: 38px; padding: 7px 12px; color: var(--ink); border: 2px solid var(--ink); background: var(--gold); }
.atlas-tip { margin: 11px 0 0; color: rgba(255,249,223,.75); font-size: .8rem; font-weight: 800; text-align: center; }
.results-panel { background: linear-gradient(160deg, rgba(8,72,116,.98), rgba(6,30,52,.98)); }.results-globe { font-size: 3.2rem; }.results-panel h2 { margin: 10px 0; color: var(--sky); font-family: Impact, "Arial Black", sans-serif; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .92; }.results-panel > p:not(.eyebrow) { color: #dcebf0; font-size: 1.05rem; }.results-stats { margin: 22px 0 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.results-stats div { min-height: 82px; padding: 11px 7px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.06); text-align: center; }.results-stats span { color: rgba(255,249,223,.65); font-size: .68rem; font-weight: 900; }.results-stats strong { color: var(--gold); font-size: 1.35rem; }.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.secondary-button { padding: 13px 15px; display: flex; align-items: center; justify-content: center; color: var(--paper); border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); text-decoration: none; text-align: center; }.secondary-button:hover { background: rgba(255,255,255,.13); }.results-art { background: linear-gradient(180deg, #1a6599 0 36%, #0d527e 36% 57%, #0c3d5a 57% 100%); }.results-globe-art { position: absolute; z-index: 5; left: 23%; bottom: 18%; font-size: 12rem; filter: drop-shadow(8px 10px 0 rgba(0,0,0,.29)); transform: rotate(-9deg); }.results-stars { position: absolute; z-index: 6; top: 22%; right: 17%; color: var(--gold); font-size: 2rem; letter-spacing: .3em; }.results-art > span { position: absolute; z-index: 7; top: 43%; left: 13%; color: var(--green); font-family: "Comic Sans MS", cursive; font-size: clamp(1.4rem, 3.5vw, 2.8rem); font-weight: 900; transform: rotate(-7deg); text-shadow: 3px 3px 0 var(--ink); }.atlas-footer { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; color: rgba(255,249,223,.58); font-size: .72rem; font-weight: 800; }
dialog { width: min(510px, calc(100% - 26px)); padding: 28px; color: var(--ink); border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 22px 70px rgba(0,0,0,.45); } dialog::backdrop { background: rgba(1,22,40,.76); } dialog h2 { margin: 8px 0 13px; color: var(--ink); font-family: Impact, "Arial Black", sans-serif; font-size: 2.7rem; } dialog ol { margin: 0; padding-left: 22px; line-height: 1.65; }.dialog-close { position: absolute; top: 9px; right: 12px; width: 34px; height: 34px; color: var(--ink); border: 0; background: transparent; font-size: 1.8rem; }.dialog-button { margin-top: 20px; }.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 980px) { .start-screen, .results-screen { grid-template-columns: 1fr; }.start-art, .results-art { min-height: 380px; }.map-layout { grid-template-columns: 1fr; }.location-panel { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(180px, .35fr); align-items: stretch; }.location-card { min-height: 220px; } }
@media (max-width: 680px) { .atlas-chip { display: none; }.portal-actions .help-button, .portal-actions .sound-button { padding-inline: 9px; font-size: .74rem; }.start-copy, .results-panel { padding: 27px 20px 31px; } h1 { font-size: clamp(3rem, 14vw, 4.8rem); }.start-art, .results-art { min-height: 310px; }.art-globe { left: 24%; width: 55%; }.art-explorer { font-size: 5.4rem; }.art-compass { right: 9%; bottom: 12%; width: 68px; height: 68px; }.game-hud { grid-template-columns: repeat(4,1fr); }.hud-stat { min-height: 64px; padding: 8px 4px; }.hud-stat span { font-size: .53rem; letter-spacing: .05em; }.hud-stat strong { font-size: clamp(1rem, 5vw, 1.4rem); }.mission-banner { padding-inline: 10px; }.mission-banner h2 { font-size: 1.55rem; }.mission-banner p:not(.prompt-kicker) { font-size: .86rem; }.mission-banner span { font-size: .65rem; line-height: 1.25; }.map-board { min-height: 720px; padding-inline: 9px; }.map-board-header { align-items: flex-start; flex-direction: column; gap: 4px; }.map-layout { gap: 9px; }.location-panel { grid-template-columns: 1fr; order: -1; }.location-card { min-height: 174px; padding: 15px 13px; }.location-card strong { font-size: 1.55rem; }.location-card > span:not(.card-pin):not(.card-spark) { font-size: .69rem; }.map-legend { min-height: 65px; }.map-stage { min-height: 405px; padding: 8px; }.world-map { min-height: 355px; margin-top: 15px; }.map-compass { top: 23px; right: 17px; width: 37px; height: 37px; font-size: .95rem; }.map-compass span { font-size: 1.2rem; }.map-caption { font-size: .61rem; }.zone-mark { font-size: 19px; }.zone-label { font-size: 13px; }.feedback { bottom: 10px; width: calc(100% - 18px); padding: 10px; }.results-stats { gap: 5px; }.results-stats div { min-height: 78px; padding-inline: 3px; }.results-stats span { font-size: .58rem; }.results-stats strong { font-size: 1.12rem; }.result-actions { grid-template-columns: 1fr; } }
@media (max-width: 390px) { .portal-bar { min-height: 52px; }.portal-brand { font-size: .82rem; }.mini-globe { width: 25px; height: 25px; font-size: 1rem; }.help-button, .sound-button { min-height: 36px; padding: 7px 8px !important; font-size: .66rem !important; }.game-hud .hud-stat strong { font-size: .92rem; }.location-card { min-height: 170px; }.map-stage { min-height: 355px; }.world-map { min-height: 305px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Geography phase checks and land/water distinction. */
.land-zone.is-complete .zone-shape { fill: rgba(141,224,156,.86); stroke: var(--paper); stroke-width: 4; filter: drop-shadow(0 0 9px rgba(141,224,156,.7)); }
.ocean-zone.is-complete .zone-shape { fill: rgba(54,187,214,.55); stroke: #d5fbff; stroke-width: 4; filter: drop-shadow(0 0 9px rgba(66,199,220,.75)); }
.choice-panel { position: relative; z-index: 1; min-height: 420px; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid rgba(66,199,220,.52); border-radius: 18px; background: radial-gradient(circle at 20% 25%, rgba(66,199,220,.14), transparent 20rem), rgba(3,29,52,.55); text-align: center; }
.choice-kicker { margin: 0 0 10px; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.choice-panel h3 { max-width: 760px; margin: 0; color: var(--paper); font-family: Impact, "Arial Black", sans-serif; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.02; }
.choice-instruction { margin: 11px 0 20px; color: rgba(255,249,223,.72); font-size: .9rem; font-weight: 800; }
.choice-options { width: min(760px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.choice-option { min-height: 92px; padding: 12px; display: flex; align-items: center; gap: 9px; color: var(--ink); border: 3px solid var(--sky); border-radius: 13px; background: var(--paper); box-shadow: 4px 5px 0 rgba(1,22,40,.3); text-align: left; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.choice-option:hover, .choice-option:focus-visible { border-color: var(--gold); background: #fff0a8; transform: translateY(-3px); }
.choice-option.is-correct { border-color: var(--green); background: var(--green); }
.choice-option.is-wrong { border-color: #ef7e83; background: #ffd6d1; }
.choice-number { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--paper); border-radius: 50%; background: var(--navy); font-weight: 900; }
.choice-option strong { font-size: .82rem; line-height: 1.18; }
@media (max-width: 680px) { .choice-panel { min-height: 490px; padding: 27px 15px; }.choice-options { grid-template-columns: 1fr; gap: 8px; }.choice-option { min-height: 66px; }.choice-panel h3 { font-size: 1.75rem; } }

/* Final map-art pass: the preview uses a wider illustrated projection. */
.world-map { min-height: 0; }
.map-decoration { fill: url(#mapLandAlt); stroke: rgba(255,249,223,.9); stroke-width: 3; filter: url(#mapShadow); pointer-events: none; }
.choice-panel h3 { max-width: 900px; font-size: clamp(1.45rem, 3.4vw, 2.55rem); line-height: 1.08; text-wrap: balance; }
@media (max-width: 680px) { .world-map { min-height: 0; }.choice-panel h3 { font-size: 1.55rem; } }

/* Compact play header and accurate-map completion reveal. */
.mission-banner { padding: 12px 16px 10px; }
.mission-banner h2 { margin: 3px auto 0; font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.02; }
.mission-type { display: none; }
.mission-banner span { margin-top: 5px; font-size: .76rem; letter-spacing: 0; }
.accurate-map-overlay { opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.map-stage.map-is-complete .accurate-map-overlay { opacity: .93; }
.map-stage.map-is-complete .map-zone .zone-shape { opacity: .12; }
.map-stage.map-is-complete .map-zone .zone-mark { opacity: 0; }
.map-stage.map-is-complete .map-decoration { opacity: 0; }

@media (max-width: 680px) {
  .game-hud .hud-stat { min-height: 54px; }
  .mission-banner { padding: 9px 10px 8px; }
  .mission-banner h2 { font-size: 1.45rem; }
  .mission-banner span { font-size: .68rem; }
  .location-card { min-height: 88px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-content: center; justify-content: initial; gap: 2px 9px; text-align: left; }
  .location-card .card-pin { grid-row: 1 / span 2; align-self: center; font-size: 1.45rem; }
  .location-card small { grid-column: 2; align-self: end; font-size: .58rem; }
  .location-card strong { grid-column: 2; max-width: none; align-self: start; font-size: 1.3rem; line-height: 1; }
  .location-card #cardPrompt { display: none; }
  .location-card .card-spark { position: static; grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .map-stage { min-height: 0; }
  .map-caption { margin-top: 4px; font-size: .65rem; }
}

/* Phase 2/3 questions should read like classroom prompts, not poster lettering. */
.choice-panel { min-height: 360px; padding: clamp(22px, 4vw, 40px); }
.choice-panel h3 { max-width: 760px; color: var(--paper); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 900; letter-spacing: -.015em; line-height: 1.16; }
.choice-instruction { margin-top: 9px; }
@media (max-width: 680px) { .choice-panel { min-height: 380px; padding: 22px 14px; }.choice-panel h3 { font-size: 1.3rem; line-height: 1.2; }.choice-instruction { margin-bottom: 14px; } }
