:root {
  --ink: #17272b;
  --muted: #627278;
  --paper: #f5f5ef;
  --surface: #fdfdf9;
  --line: #dce2df;
  --amber: #f6c453;
  --amber-dark: #b88319;
  --cyan: #65e6d3;
  --navy: #071d26;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Outfit", sans-serif;
  --shadow: 0 18px 60px rgb(8 31 38 / 9%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.dark { --ink: #eef8f5; --muted: #a3b5b5; --paper: #0b191d; --surface: #10252a; --line: #294044; --shadow: 0 18px 60px rgb(0 0 0 / 25%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.site-header { min-height: 68px; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; white-space: nowrap; }
.brand strong { font-weight: 600; }
.brand-mark { position: relative; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid #159b8b; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 1px solid #159b8b; border-radius: 50%; inset: 5px; }
.brand-mark::after { inset: 11px; background: #159b8b; }
.brand-mark span { position: absolute; width: 38px; border-top: 1px solid #159b8b; transform: rotate(-45deg); }
.brand-slash { color: #9ba8a7; margin: 0 3px; }
.brand-tagline { color: var(--muted); font-size: 12px; margin-left: 3px; }
.header-actions { display: flex; align-items: center; gap: 9px; }

.header-pill { border: 1px solid transparent; border-radius: 7px; min-height: 42px; padding: 0 14px; background: #edf1ed; color: #52615f; display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; transition: background .18s, color .18s; }
.dark .header-pill { background: #193238; color: #c4d4d1; }
.header-pill:hover { background: #e1e9e4; color: #173a37; }
.dark .header-pill:hover { background: #24454a; color: white; }
.more-wrap { position: relative; }
.more-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 310px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px rgb(4 25 40 / 20%); }
.menu-eyebrow { display: block; padding: 7px 10px 10px; color: var(--muted); font: 12px var(--mono); letter-spacing: 1px; }
.more-menu a { display: flex; flex-direction: column; gap: 4px; padding: 13px 10px; border-radius: 6px; }
.more-menu a:hover { background: var(--paper); }
.more-menu strong { font-size: 14px; }
.more-menu a span { font-size: 12px; color: var(--muted); }

.game-section { padding: 16px 18px 0; background: var(--surface); }
.game-frame { --water: #0c4b56; --deep: #061d2b; --player-y: 31%; height: clamp(600px, calc(100vh - 145px), 790px); max-width: 1800px; margin: auto; border-radius: 12px; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--water) 75%, #168878), transparent 38%), linear-gradient(145deg,var(--water),var(--deep) 80%); color: white; transition: background 1s; }
.game-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg,rgb(2 17 24 / 40%),transparent 45%,rgb(2 17 24 / 12%)); }
#ocean-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; fill: none; stroke: #94f6df; stroke-width: 1.2; opacity: .13; }
.research-grid { position: absolute; inset: 0; z-index: 0; opacity: .12; background-image: linear-gradient(#9ee8dc 1px,transparent 1px),linear-gradient(90deg,#9ee8dc 1px,transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg,#000,transparent 70%); }
.research-beam { position: absolute; z-index: 0; right: 11%; top: -10%; width: 32%; height: 110%; transform: rotate(14deg); background: linear-gradient(90deg,transparent,rgb(101 230 211 / 5%),transparent); clip-path: polygon(46% 0,54% 0,100% 100%,0 100%); }

.surface-lab { position: absolute; right: 7%; top: 8%; width: 100px; height: 70px; opacity: .65; }
.lab-body { position: absolute; left: 15px; top: 20px; width: 70px; height: 28px; border: 2px solid #a5d6ca; border-radius: 4px 14px 4px 4px; }
.lab-body::before { content: ""; position: absolute; left: 18px; top: -15px; width: 32px; height: 14px; border: 2px solid #a5d6ca; }
.lab-keel { position: absolute; top: 49px; left: 25px; width: 60px; border-top: 3px solid #a5d6ca; transform: skewX(-35deg); }
.lab-antenna { position: absolute; left: 48px; top: 0; height: 10px; border-left: 2px solid #a5d6ca; }
.surface-lab i { position: absolute; top: 60px; left: 0; width: 100px; border-top: 1px solid #a5d6ca; }
.surface-lab i:nth-child(5) { top: 66px; left: 20px; width: 65px; }
.surface-lab i:nth-child(6) { top: 72px; left: 8px; width: 35px; }
.bubbles i { position: absolute; width: 4px; height: 4px; border: 1px solid rgb(190 250 240 / 35%); border-radius: 50%; bottom: 10%; left: 20%; animation: bubbles 10s linear infinite; }
.bubbles i:nth-child(2) { left: 65%; bottom: 30%; animation-delay: -2s; }.bubbles i:nth-child(3) { left: 78%; bottom: 4%; animation-delay: -5s; }.bubbles i:nth-child(4) { left: 46%; bottom: 20%; animation-delay: -3s; }.bubbles i:nth-child(5) { left: 8%; bottom: 27%; animation-delay: -6s; }.bubbles i:nth-child(6) { left: 89%; bottom: 13%; animation-delay: -1s; }
@keyframes bubbles { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(20px,-350px); opacity: 0; } }

.game-hud { position: absolute; z-index: 12; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.hud-left { display: flex; align-items: stretch; pointer-events: auto; }
.depth-token, .hud-button, .sound-button { background: #061b23db; border: 1px solid #3b5e62; color: #d7ebe6; height: 43px; font-family: var(--mono); backdrop-filter: blur(8px); }
.depth-token { display: flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 6px 0 0 6px; font-size: 13px; }
.depth-token svg { color: var(--cyan); width: 18px; }
.depth-token small { font: 12px var(--mono); color: #8daaa7; }
.hud-button { border-left: 0; border-radius: 0 6px 6px 0; display: flex; gap: 8px; align-items: center; padding: 0 13px; font-size: 12px; letter-spacing: 1px; }
.hud-button svg { color: var(--cyan); width: 17px; }
.hud-button:hover, .sound-button:hover { background: #153d42; }
.sound-button { width: 43px; display: grid; place-items: center; border-radius: 6px; pointer-events: auto; }

.air-tanks { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 7px 10px; background: #061b23db; border: 1px solid #3b5e62; border-radius: 6px; }
.air-tanks svg { color: var(--cyan); width: 24px; height: 24px; }
.air-tanks svg.empty { color: #45625f; opacity: .55; }
.screen { position: absolute; inset: 0; z-index: 8; }
.menu-screen { display: flex; }
.game-logo { position: absolute; left: 7%; top: 27%; width: 43%; }
.expedition-tag { display: flex; align-items: center; gap: 9px; color: #b6d4ce; font: 12px var(--mono); letter-spacing: 2px; }
.expedition-tag span { width: 25px; border-top: 2px solid var(--amber); }
.logo-main { margin: 23px 0 16px; max-width: 560px; color: #effbf6; font-size: clamp(44px,5.8vw,84px); font-weight: 700; line-height: .96; letter-spacing: -4px; }
.logo-main em { display: block; margin: 13px 0; color: var(--amber); font-weight: 400; font-style: normal; }
.game-logo p { margin: 25px 0 0; color: #b4ccc7; font-size: clamp(18px,2vw,27px); font-weight: 400; }
.menu-controls { position: absolute; top: 27%; right: 7%; width: 36%; max-width: 490px; display: flex; flex-direction: column; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-button { min-height: 52px; padding: 0 15px; border: 1px solid #53706f; border-radius: 5px; color: #c2d5d0; background: #08242bc2; font: 500 12px var(--mono); letter-spacing: 1px; text-align: left; transition: background .15s,color .15s,border .15s; }
.mode-button span { margin-right: 8px; color: #7f9b96; font-size: 12px; }
.mode-button.active { color: #082c2b; border-color: var(--cyan); background: var(--cyan); }
.mode-button.active span { color: #22625a; }
.mode-button:hover:not(.active) { background: #174047; }
.mode-description { margin: 15px 0 24px; color: #a9c5c0; font: 12px/1.6 var(--mono); }
.primary-game-button { min-height: 55px; padding: 12px 20px; border: 1px solid #ffe099; border-radius: 5px; background: var(--amber); color: #28220f; box-shadow: 0 5px 0 var(--amber-dark); font: 600 13px var(--mono); letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 14px; transition: filter .15s,box-shadow .15s; }
.primary-game-button:hover { filter: brightness(1.07); }
.primary-game-button:active { box-shadow: 0 2px var(--amber-dark); transform: translateY(2px); }
.secondary-game-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }

.secondary-game-button { min-height: 43px; padding: 8px 13px; border: 1px solid #486562; border-radius: 5px; background: #071e25c7; color: #bed2cd; font: 500 12px var(--mono); letter-spacing: .5px; transition: background .15s; }
.secondary-game-button:hover { background: #173d42; }
.menu-note { position: absolute; bottom: 20px; left: 7%; font: 12px var(--mono); letter-spacing: 1px; color: #8faeaa; }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.under-game-note { text-align: center; margin: 0; padding: 16px 10px 19px; color: var(--muted); font-size: 12px; }
.under-game-note span { font-family: var(--mono); letter-spacing: 1px; font-size: 12px; }

.play-screen { z-index: 9; }
.round-meta { position: absolute; top: 84px; left: 8%; right: 9%; display: flex; justify-content: space-between; gap: 12px; color: #b6d4ce; font: 12px var(--mono); letter-spacing: 1px; }
#modifier-label { color: var(--amber); }
.question-card { position: absolute; top: 20%; left: 8%; width: min(740px,67%); min-height: 170px; padding: 28px 32px; border: 1px solid #476866; border-left: 4px solid var(--amber); border-radius: 7px; background: #061d25ed; box-shadow: 0 14px 40px rgb(0 0 0 / 20%); backdrop-filter: blur(10px); }
.signal-top { display: flex; justify-content: space-between; gap: 15px; color: #769591; font: 12px var(--mono); letter-spacing: 1px; }
.difficulty { color: var(--cyan); }
.question-card h2, .question-card .question-text { margin: 25px 0 20px; color: #f3fbf7; font-size: clamp(28px,3vw,43px); line-height: 1.1; font-weight: 500; letter-spacing: -1px; }
.question-card p { margin: 0; display: flex; align-items: center; gap: 9px; color: #8eaaa5; font: 12px/1.5 var(--mono); }
.question-card p span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.answer-form { position: absolute; bottom: 7%; left: 8%; width: min(850px,76%); display: grid; grid-template-columns: 52px minmax(0,1fr) 76px 62px 85px; align-items: center; gap: 8px; }
.timer { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--cyan); border-radius: 50%; background: #071f27; color: var(--cyan); font: 500 16px var(--mono); }
.timer.urgent { border-color: #ff887a; color: #ff9e92; animation: timer-pulse .8s ease infinite; }
@keyframes timer-pulse { 50% { opacity: .55; } }

.answer-form input { width: 100%; min-width: 0; height: 52px; padding: 4px 16px; border: 1px solid #709a92; border-radius: 5px; outline: 0; background: #061a21; color: white; caret-color: var(--amber); font-size: 17px; }
.answer-form input::placeholder { color: #78918d; }
.answer-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(101 230 211 / 15%); }
.pass-button, .dive-button, .sonar-button { height: 49px; border-radius: 5px; font: 500 12px var(--mono); }
.pass-button { border: 1px solid #486562; background: #071e25; color: #bed2cd; }
.dive-button { border: 1px solid #ffe099; background: var(--amber); color: #28220f; display: flex; align-items: center; justify-content: center; gap: 5px; }
.dive-button svg { width: 16px; }
.dive-button:disabled { opacity: .5; cursor: not-allowed; }
.sonar-button { padding: 4px 8px; border: 1px solid #3e756e; background: #0c383c; color: var(--cyan); display: flex; align-items: center; justify-content: center; gap: 5px; }
.sonar-button svg { width: 18px; }
.sonar-button span { font-size: 12px; }
.sonar-button b { font-weight: 600; color: white; }
.sonar-button:hover { background: #155259; }
.sonar-button:disabled { opacity: .4; cursor: not-allowed; }
.answer-error { position: absolute; bottom: 17%; left: 8%; margin: 0; width: min(700px,70%); padding: 9px 13px; border-left: 2px solid var(--amber); background: #071e25e8; color: #e7d8a9; font: 12px/1.5 var(--mono); }
.answer-feedback { position: absolute; top: 54%; left: 50%; transform: translate(-50%,-50%); min-width: 310px; padding: 19px 30px; text-align: center; border: 1px solid var(--cyan); border-radius: 7px; background: #061d25f5; box-shadow: 0 12px 40px #0005; }
.feedback-tier { display: block; color: var(--cyan); font: 12px var(--mono); letter-spacing: 2px; }
.answer-feedback strong { display: block; margin: 7px 0; color: white; font-size: 37px; font-weight: 500; }
.answer-feedback > span:last-child { color: #a9c5bf; font: 12px var(--mono); }
.depth-rail { position: absolute; right: 22px; top: 23%; bottom: 12%; width: 62px; border-right: 1px solid #6a9a91; }
.depth-rail .rail-title { position: absolute; right: -5px; top: -45px; transform: rotate(90deg); transform-origin: right; color: #6e9991; font: 12px var(--mono); letter-spacing: 2px; }
.depth-rail span:not(.rail-title) { position: absolute; right: -3px; top: calc(var(--tick) * 23%); padding: 2px 9px 2px 4px; background: #0a3038; color: #a5c7bf; font: 12px var(--mono); }

.depth-rail span:not(.rail-title)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 7px; border-top: 1px solid #6a9a91; }
.research-sub { position: absolute; z-index: 10; left: 6%; top: var(--player-y); width: 74px; height: 43px; border: 2px solid #ffe29a; border-radius: 48% 55% 45% 48%; background: var(--amber); box-shadow: 0 6px 0 #8d6a23,0 0 30px rgb(246 196 83 / 16%); transition: top 1.6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.game-frame[data-state="menu"] .research-sub, .game-frame[data-state="result"] .research-sub { display: none; }
.sub-window { position: absolute; right: 12px; top: 8px; width: 22px; height: 22px; border: 4px solid #153d44; border-radius: 50%; background: #9ff5e0; box-shadow: inset 3px 0 #d9fff4; }
.sub-tail { position: absolute; left: -20px; top: 7px; width: 21px; height: 27px; background: #d59e32; clip-path: polygon(100% 20%,0 0,20% 50%,0 100%,100% 80%); }
.sub-fin { position: absolute; left: 23px; bottom: -11px; width: 25px; height: 12px; background: #d59e32; clip-path: polygon(0 0,100% 0,70% 100%,20% 100%); }
.sub-light { position: absolute; right: -45px; top: 3px; width: 45px; height: 34px; background: linear-gradient(90deg,rgb(178 255 232 / 25%),transparent); clip-path: polygon(0 35%,100% 0,100% 100%,0 65%); }
.research-sub i { position: absolute; left: 30px; top: -9px; width: 14px; height: 9px; border: 2px solid #ffe29a; border-bottom: 0; border-radius: 5px 5px 0 0; }

.current-screen { z-index: 16; display: grid; place-items: center; background: rgb(3 18 24 / 82%); backdrop-filter: blur(8px); }
.current-panel { width: min(850px,88%); text-align: center; }
.current-panel h2 { margin: 13px 0 8px; font-size: 35px; font-weight: 500; }
.current-panel > p { color: #9ab8b2; font: 12px var(--mono); }
.current-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 28px; }
.current-options button { min-height: 220px; padding: 25px 20px; border: 1px solid #3c615d; border-radius: 7px; background: #0a2930; color: #e5f4ee; text-align: left; display: flex; flex-direction: column; align-items: flex-start; transition: border .18s,background .18s; }
.current-options button:hover { border-color: var(--amber); background: #11363a; }
.current-options svg { width: 30px; height: 30px; color: var(--amber); margin-bottom: 25px; }
.current-options strong { font-size: 20px; font-weight: 500; }
.current-options span { margin-top: 9px; color: #a2bcb6; font-size: 13px; line-height: 1.5; }

.current-options small { margin-top: auto; padding-top: 22px; color: var(--cyan); font: 12px var(--mono); letter-spacing: 1px; }
.result-screen { z-index: 15; display: grid; place-items: center; background: rgb(3 18 24 / 78%); backdrop-filter: blur(7px); }
.result-card { width: min(540px,85%); padding: 30px 38px; text-align: center; border: 1px solid #456a64; border-top: 3px solid var(--amber); border-radius: 8px; background: #08232af7; box-shadow: 0 20px 70px #0006; }
.result-eyebrow { color: var(--cyan); font: 12px var(--mono); letter-spacing: 2px; }
.result-card h2 { margin: 15px 0 5px; font-size: 26px; line-height: 1.2; color: #f2f8f3; font-weight: 500; }
.result-depth { display: flex; align-items: baseline; justify-content: center; gap: 12px; color: var(--amber); }
.result-depth strong { font-size: 67px; font-weight: 600; }
.result-depth span { font: 12px var(--mono); letter-spacing: 1px; }
.result-card > p { color: #a7c2bb; font: 12px/1.6 var(--mono); }
.new-species { margin: 17px 0; padding: 14px; border: 1px solid #315a54; border-radius: 5px; background: #0c3033; }
.new-species span { display: block; color: var(--cyan); font: 12px var(--mono); letter-spacing: 2px; }
.new-species strong { display: block; margin: 7px; color: white; font-size: 17px; font-weight: 500; }
.new-species small { color: #a2bcb5; font-size: 12px; line-height: 1.5; }
.result-actions { display: grid; gap: 11px; margin-top: 22px; }
.result-actions .secondary-game-button { min-height: 43px; }
.zone-banner { position: absolute; z-index: 20; left: 50%; top: 52%; transform: translate(-50%,-50%); width: min(480px,80%); padding: 20px; text-align: center; background: #061d25f2; border: 1px solid var(--cyan); border-radius: 5px; box-shadow: 0 0 50px #001a2d; }
.zone-banner span { display: block; color: #82b9b0; font: 12px var(--mono); letter-spacing: 3px; }
.zone-banner strong { display: block; margin: 10px; color: var(--cyan); font-size: 24px; font-weight: 500; }
.zone-banner small { color: white; font: 12px var(--mono); }

.more-games-section { padding: 48px 0; }
.more-games-section .section-heading { margin-bottom: 24px; }
.game-directory-card { display: flex; align-items: center; gap: 24px; max-width: 560px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s; }
.game-directory-card:hover { border-color: #159b8b; }
.game-directory-card .game-number { color: #118779; font: 14px var(--mono); }
.game-directory-card strong { display: block; margin-bottom: 4px; font-size: 22px; }

.game-directory-card small { color: var(--muted); font-size: 14px; }
.game-directory-card svg { margin-left: auto; flex: 0 0 auto; }
.page-content { background: var(--paper); }
.content-width { width: min(1120px,calc(100% - 48px)); margin: 0 auto; }
.intro-section { padding: 85px 0 72px; }
.section-kicker { display: block; margin-bottom: 15px; color: #118779; font: 12px var(--mono); letter-spacing: 2px; }
.intro-section h1, .intro-section h2 { max-width: 900px; margin: 0 0 28px; font-size: clamp(40px,5vw,65px); line-height: 1.05; letter-spacing: -2.5px; font-weight: 600; }
.hero-heading { padding: 16px 0 12px; }
.hero-heading .section-kicker { margin-bottom: 8px; }
.hero-heading h1 { max-width: 900px; margin: 0; font-size: clamp(28px,3.2vw,42px); line-height: 1.2; letter-spacing: -1.2px; }
.intro-section h1 span, .intro-section h2 span { color: #118779; }
.intro-section > p { max-width: 820px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.intro-section .lead { color: var(--ink); font-size: 21px; line-height: 1.6; }
.quick-stats { margin-top: 48px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-stats div { padding: 27px 25px; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--line); }
.quick-stats div:first-child { padding-left: 0; }.quick-stats div:last-child { border: 0; }
.quick-stats strong { color: #118779; font-size: 38px; font-weight: 500; }
.quick-stats span { color: var(--muted); font-size: 13px; }
.systems-section, .geo-section, .tiers-section, .strategy-section, .faq-section { padding: 68px 0; border-top: 1px solid var(--line); }
.geo-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 780px; }
.geo-grid h3 { margin: 0 0 20px; font-size: 22px; }
.section-heading p { max-width: 70ch; color: var(--muted); line-height: 1.7; }
.play-steps { margin: 0; padding-left: 24px; }
.play-steps li { margin: 0 0 16px; padding-left: 8px; color: var(--muted); line-height: 1.65; }
.play-steps strong { color: var(--ink); }
.comparison-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.comparison-row { display: grid; grid-template-columns: .8fr 1.25fr 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.comparison-row:first-child { border-top: 0; }
.comparison-row span:last-child { color: var(--muted); }
.comparison-head { background: var(--surface); color: var(--muted); font: 12px var(--mono); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.section-heading .section-kicker { margin-bottom: 10px; }
.section-heading h2, .strategy-copy h2 { margin: 0; font-size: clamp(29px,3vw,39px); letter-spacing: -1px; font-weight: 600; }
.section-heading > a, .section-heading > button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #118779; font-weight: 600; font-size: 14px; white-space: nowrap; }
.system-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.system-cards > div { min-height: 250px; padding: 23px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.system-number { color: #118779; font: 12px var(--mono); letter-spacing: 1px; }
.system-cards h3 { margin: 45px 0 12px; font-size: 18px; font-weight: 600; }
.system-cards p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tiers-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.tier-row { display: grid; grid-template-columns: 1.2fr 2fr .7fr .7fr; gap: 20px; align-items: center; min-height: 59px; padding: 10px 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tier-row:last-child { border: 0; background: rgb(29 170 150 / 4%); }
.tier-row strong { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.tier-row > span:nth-child(2) { color: var(--muted); }
.tier-row b { font: 500 12px var(--mono); }
.tier-head { min-height: 40px; background: var(--paper); color: var(--muted); font: 12px var(--mono); letter-spacing: 1px; }
.tier-dot { width: 9px; height: 9px; border-radius: 50%; background: #92a3a0; }
.tier-dot.clever { background: #68b0a8; }.tier-dot.schooler { background: #36c7b3; }.tier-dot.rare { background: #3d92b9; }.tier-dot.deep { background: #846fbe; }.tier-dot.singular { background: var(--amber); box-shadow: 0 0 0 3px #f6c45320; }
.ocean-section { padding: 78px 0 85px; background: #071f27; color: white; }
.section-heading.light { align-items: center; }
.section-heading.light h2 { color: #eff8f3; }
.section-heading.light p { max-width: 650px; color: #9bb5b0; line-height: 1.7; }
.section-heading.light button { color: var(--cyan); font: 12px var(--mono); }
.creature-preview-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 13px; }

.creature-preview { position: relative; overflow: hidden; min-height: 250px; padding: 18px 15px; border: 1px solid #294a4a; border-radius: 7px; background: linear-gradient(155deg,#0d3439,#09262e); }
.creature-preview .creature-art { height: 120px; display: grid; place-items: center; }
.creature-art svg { width: 130px; height: 100px; overflow: visible; filter: drop-shadow(0 7px 0 rgb(0 0 0 / 14%)); }
.creature-preview .creature-depth { color: #65d8c7; font: 12px var(--mono); letter-spacing: 1px; }
.creature-preview h3 { margin: 8px 0; font-size: 16px; font-weight: 500; }
.creature-preview p { margin: 0; color: #92aeaa; font-size: 12px; line-height: 1.55; }
.strategy-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.strategy-copy p { color: var(--muted); line-height: 1.8; font-size: 15px; }
.strategy-list > div { display: grid; grid-template-columns: 35px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.strategy-list > div:first-child { padding-top: 0; }
.strategy-list span { color: #118779; font: 12px var(--mono); }
.strategy-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.strategy-list strong { color: var(--ink); }
.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; font-weight: 600; font-size: 17px; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary span { color: #118779; font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq-section details[open] summary span { transform: rotate(45deg); }
.faq-section details p { max-width: 850px; margin: -5px 0 25px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 35px; padding: 45px max(24px,calc((100% - 1120px)/2)); background: var(--surface); border-top: 1px solid var(--line); }
.footer-brand { display: grid; grid-template-columns: 32px auto; align-items: center; gap: 7px 10px; }
.footer-brand p { grid-column: 1/-1; margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: #118779; }
.copyright { grid-column: 1/-1; margin: 0; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }

.game-dialog, .guide-dialog { padding: 35px; border: 1px solid #3d625d; border-radius: 9px; background: #09262d; color: white; box-shadow: 0 20px 90px #0009; }
dialog::backdrop { background: rgb(1 12 18 / 80%); backdrop-filter: blur(5px); }
.game-dialog { width: min(570px,calc(100% - 32px)); }
.dialog-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #365b56; border-radius: 5px; background: #09262d; color: #c5dbd4; }
.game-dialog .dialog-close { position: absolute; right: 14px; top: 14px; }
.game-dialog h2, .guide-dialog h2 { margin: 8px 0 20px; font-size: 30px; font-weight: 500; }
.dialog-rules { margin: 25px 0; color: #aac2bb; font-size: 14px; line-height: 1.5; }
.dialog-rules p { display: flex; gap: 14px; }
.dialog-rules b { color: var(--amber); font: 12px var(--mono); padding-top: 4px; }
.game-dialog .primary-game-button { width: 100%; }
.guide-dialog { width: min(1100px,calc(100% - 32px)); max-height: 88vh; padding: 0; }
.guide-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; padding: 28px 32px 18px; background: #09262d; }
.guide-header .section-kicker { margin-bottom: 5px; }
.guide-header h2 { margin: 0 0 8px; }
.guide-header p { margin: 0; color: #91ada6; font: 12px var(--mono); }
.guide-filters { display: flex; gap: 7px; overflow-x: auto; padding: 0 32px 20px; background: #09262d; }
.guide-filters button { flex: 0 0 auto; min-height: 38px; padding: 5px 13px; border: 1px solid #345b54; border-radius: 4px; background: transparent; color: #a5c0b8; font: 12px var(--mono); letter-spacing: 1px; }
.guide-filters button.active { border-color: var(--cyan); background: var(--cyan); color: #082432; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 0 32px 32px; }
.guide-card { position: relative; min-height: 225px; padding: 15px; border: 1px solid #28504a; border-radius: 6px; background: #0d3035; }
.guide-card.locked .creature-art { filter: brightness(0) opacity(.25); }
.guide-card.locked .creature-description { color: #67827a; }
.guide-card .creature-art { height: 100px; display: grid; place-items: center; }
.guide-card .creature-art svg { width: 120px; height: 90px; }
.guide-card h3 { margin: 8px 0; font-size: 18px; color: #ecf7f1; font-weight: 500; }
.guide-card p { margin: 0; color: #93aea6; font-size: 12px; line-height: 1.5; }
.guide-card .guide-depth { color: var(--cyan); font: 12px var(--mono); letter-spacing: 1px; }

.lock-label { position: absolute; right: 12px; top: 12px; color: #78938b; font: 12px var(--mono); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 13px 20px; border: 1px solid var(--cyan); border-radius: 5px; background: #071f27f5; color: white; box-shadow: 0 10px 40px #0006; font: 12px var(--mono); text-align: center; }

@media (max-width: 1050px) {
  .brand-tagline { display: none; }
  .game-frame { height: 620px; }
  .game-logo { left: 5%; width: 43%; }.menu-controls { right: 5%; width: 40%; }
  .system-cards { grid-template-columns: repeat(2,1fr); }.system-cards > div { min-height: 220px; }.system-cards h3 { margin-top: 30px; }
  .creature-preview-grid { grid-template-columns: repeat(3,1fr); }.creature-preview:nth-child(n+4) { display: none; }
  .question-card { left: 5%; width: 72%; }.answer-form { left: 5%; width: 82%; }.round-meta { left: 5%; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 60px; }
  .site-header { min-height: 58px; padding: 8px 12px; gap: 8px; }
  .brand { gap: 7px; font-size: 15px; }.brand strong,.brand-slash { display: none; }.brand-mark { width: 27px; height: 27px; }
  .header-actions { gap: 5px; }.desktop-only { display: none !important; }.header-pill { min-width: 42px; min-height: 42px; padding: 0 11px; }.header-pill span:not(.desktop-only) { display: none; }
  .more-menu { right: 0; width: min(310px,calc(100vw - 24px)); }
  .game-section { padding: 0; }.game-frame { height: 690px; border-radius: 0; }
  .game-hud { top: 12px; left: 12px; right: 12px; }.depth-token,.hud-button,.sound-button { height: 40px; }.hud-button { padding: 0 10px; }.hud-button span { display: none; }.sound-button { width: 40px; }
  .surface-lab { right: 3%; top: 7%; transform: scale(.65); transform-origin: right; }
  .game-logo { left: 24px; right: 24px; top: 12%; width: auto; text-align: center; }.expedition-tag { justify-content: center; font-size: 12px; }.logo-main { margin: 16px 0 8px; font-size: 47px; letter-spacing: -2px; }.logo-main em { display: block; margin: 0 5px; }.game-logo p { margin-top: 15px; font-size: 18px; }
  .menu-controls { top: 43%; left: 24px; right: 24px; width: auto; max-width: none; }.mode-description { margin-bottom: 18px; text-align: center; }.primary-game-button { min-height: 54px; }.menu-note { bottom: 16px; left: 0; width: 100%; text-align: center; font-size: 12px; }

  .round-meta { top: 67px; left: 20px; right: 20px; font-size: 12px; }.question-card { top: 16%; left: 20px; width: calc(100% - 40px); min-height: 170px; padding: 23px 21px; }.signal-top { font-size: 12px; }.signal-top span:last-child { display: none; }.question-card h2, .question-card .question-text { margin: 24px 0 18px; font-size: 31px; }.question-card p { font-size: 12px; }
  .answer-form { bottom: 5%; left: 20px; width: calc(100% - 40px); grid-template-columns: 43px minmax(0,1fr) 66px; gap: 7px; }.timer { width: 42px; height: 42px; font-size: 14px; }.answer-form input { height: 46px; padding: 4px 10px; font-size: 15px; }.sonar-button { height: 44px; }.answer-form .pass-button { grid-column: 2; grid-row: 2; height: 38px; }.answer-form .dive-button { grid-column: 3; grid-row: 2; height: 38px; }.answer-error { bottom: 19%; left: 20px; width: calc(100% - 40px); font-size: 12px; }.answer-feedback { top: 53%; min-width: 270px; }.depth-rail { display: none; }.research-sub { left: 7%; transform: scale(.75); }.air-tanks { top: 47px; }
  .current-panel { width: calc(100% - 36px); }.current-panel h2 { font-size: 28px; }.current-options { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }.current-options button { min-height: 105px; padding: 15px 16px 15px 62px; position: relative; }.current-options svg { position: absolute; left: 18px; top: 20px; width: 25px; margin: 0; }.current-options strong { font-size: 17px; }.current-options span { font-size: 12px; margin-top: 4px; }.current-options small { padding-top: 8px; margin: 0; }
  .result-card { width: calc(100% - 38px); padding: 26px 23px; }.result-card h2 { font-size: 23px; }.result-depth strong { font-size: 58px; }
  .content-width { width: calc(100% - 36px); }.hero-heading { padding-top: 16px; }.hero-heading h1 { font-size: 28px; }.intro-section { padding: 55px 0 48px; }.intro-section h1, .intro-section h2 { letter-spacing: -1.5px; }.intro-section .lead { font-size: 19px; }
  .quick-stats { grid-template-columns: 1fr; }.quick-stats div,.quick-stats div:first-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; gap: 20px; }.quick-stats div:last-child { border-bottom: 0; }.quick-stats strong { min-width: 60px; font-size: 32px; }

  .systems-section,.geo-section,.tiers-section,.strategy-section,.faq-section { padding: 48px 0; }.geo-grid { grid-template-columns: 1fr; gap: 40px; }.comparison-row { padding: 12px; gap: 8px; font-size: 12px; }.section-heading { align-items: start; flex-direction: column; gap: 15px; }.system-cards { grid-template-columns: 1fr; }.system-cards > div { min-height: 200px; }.system-cards h3 { margin-top: 25px; }
  .tier-row { grid-template-columns: 1.25fr .65fr .7fr; gap: 8px; padding: 12px 13px; font-size: 12px; }.tier-row > span:nth-child(2) { display: none; }.tier-head span:nth-child(2) { display: none; }.tier-row b { font-size: 12px; }
  .ocean-section { padding: 55px 0; }.section-heading.light { align-items: start; }.creature-preview-grid { grid-template-columns: repeat(2,1fr); }.creature-preview { min-height: 230px; padding: 12px; }.creature-preview:nth-child(n+4) { display: block; }.creature-preview:nth-child(5) { display: none; }.creature-preview .creature-art { height: 105px; }.creature-art svg { width: 110px; }
  .strategy-section { grid-template-columns: 1fr; gap: 35px; }.site-footer { grid-template-columns: 1fr; padding: 35px 20px; }.footer-links { gap: 18px; }
  .guide-header { padding: 22px 18px 15px; }.guide-header h2 { font-size: 23px; }.guide-filters { padding: 0 18px 16px; }.guide-grid { grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 18px 22px; }.guide-card { min-height: 235px; padding: 12px; }
}
.system-cards h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.intro-section p:first-of-type { font-size: 19px; line-height: 1.7; }
@media (max-width: 720px) {
  .surface-lab, .research-sub { display: none; }
  .mode-description { position: relative; z-index: 2; padding: 8px 12px; border-radius: 8px; background: rgba(4,34,48,.72); }
  .game-frame { overflow: hidden; }
  .game-hud { z-index: 3; }
  .menu-note { padding-bottom: 10px; }
  .game-logo { top: 8%; }
  .logo-main { font-size: 38px; letter-spacing: -1.2px; }
  .game-logo p { margin-top: 14px; font-size: 17px; }
  .menu-controls { top: 45%; }
  .mode-description { margin-bottom: 24px; font-size: 15px; line-height: 1.6; }
  .secondary-game-row { margin-top: 10px; }
  .primary-game-button { width: 100%; max-width: 320px; margin-inline: auto; }
  .menu-note { bottom: 14px; }
  .header-pill { font-size: 14px; padding: 8px 12px; }
  .intro-section .lead { font-size: 19px; line-height: 1.65; }
  .page-content p { line-height: 1.7; }
}
@media (max-width: 420px) {

  .game-frame { height: 670px; }.game-logo { top: 12%; }.menu-controls { top: 42%; }.secondary-game-button { padding: 8px; font-size: 12px; }.mode-button { padding: 0 10px; font-size: 12px; }.mode-button span { margin-right: 3px; }
  .question-card { top: 17%; }.answer-feedback { top: 52%; }.creature-preview-grid,.guide-grid { grid-template-columns: 1fr; }.creature-preview:nth-child(4),.creature-preview:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.legal-page { padding-top: 64px; padding-bottom: 64px; }
.legal-copy { max-width: 70ch; font-size: 17px; line-height: 1.7; }
.legal-copy h2 { margin: 32px 0 12px; font-size: 28px; }
.legal-copy p, .legal-copy li { color: var(--muted); margin: 12px 0; }
.legal-copy a { text-decoration: underline; }


:root {
  --ocean-950: #04141c;
  --ocean-900: #071d26;
  --ocean-800: #0c343d;
  --teal-400: #65e6d3;
  --teal-600: #159b8b;
  --gold-400: #f6c453;
  --motion-fast: 160ms;
  --motion-medium: 320ms;
  --motion-dive: 1100ms;
  --radius-small: 8px;
  --radius-large: 16px;
}
body { line-height: 1.6; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.site-header { min-height: 72px; border-bottom-color: rgb(21 155 139 / 18%); box-shadow: 0 1px 0 rgb(7 29 38 / 3%); }
.brand { font-weight: 600; letter-spacing: -.2px; }
.brand-mark { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgb(21 155 139 / 8%); }
.brand-mark::before { border-color: var(--teal-400); animation: brand-sonar 3s ease-out infinite; }
.brand-mark::after { background: var(--gold-400); }
.brand-mark span { border-color: var(--teal-600); }
.brand-tagline { letter-spacing: .01em; }
.header-pill { min-height: 44px; border-radius: var(--radius-small); transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast); }
.header-pill:hover { border-color: rgb(21 155 139 / 18%); }
.hero-heading { padding-top: 24px; padding-bottom: 20px; }
.hero-heading h1 { max-width: 940px; font-size: clamp(32px,3.5vw,48px); letter-spacing: -1.6px; }
.game-section { padding-top: 20px; }
.game-frame { border: 1px solid rgb(101 230 211 / 15%); border-radius: var(--radius-large); box-shadow: 0 24px 70px rgb(4 20 28 / 18%); }
.logo-main { letter-spacing: -3px; }
.logo-main em { margin-top: 16px; color: var(--gold-400); font-weight: 500; letter-spacing: -2px; }
.game-logo p { color: #c6ded7; letter-spacing: -.3px; }

.primary-game-button { min-height: 56px; border-radius: var(--radius-small); box-shadow: 0 5px 0 var(--amber-dark), 0 12px 28px rgb(246 196 83 / 12%); transition: filter var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); }
.primary-game-button:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 0 var(--amber-dark), 0 15px 32px rgb(246 196 83 / 18%); }
.primary-game-button:active { transform: translateY(2px); }
.secondary-game-button, .mode-button { border-radius: var(--radius-small); transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast); }
.mode-button:hover:not(.active) { border-color: #80aaa2; color: #effbf6; }
.secondary-game-button:hover { border-color: #769c93; color: #effbf6; }
.answer-form input { border-radius: var(--radius-small); transition: border-color var(--motion-fast), box-shadow var(--motion-fast); }
.pass-button, .dive-button, .sonar-button { border-radius: var(--radius-small); transition: background var(--motion-fast), border-color var(--motion-fast), filter var(--motion-fast); }
.pass-button:hover { background: #12363d; border-color: #769c93; }
.dive-button:hover { filter: brightness(1.07); }
.sonar-button:hover:not(:disabled) { border-color: var(--teal-400); }
.screen:not([hidden]) { animation: screen-enter var(--motion-medium) cubic-bezier(.2,.75,.25,1) both; }
.question-card.question-refresh { animation: question-enter 300ms cubic-bezier(.2,.75,.25,1); }
.answer-feedback:not([hidden]) { animation: feedback-enter 360ms cubic-bezier(.2,.8,.2,1); }
.answer-feedback strong { display: block; }
#score-label.score-pop { display: inline-block; animation: score-pop 500ms cubic-bezier(.2,.8,.2,1); }
.current-panel { animation: panel-enter 380ms cubic-bezier(.2,.8,.2,1); }
.current-options button { border-radius: 12px; transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast); }
.current-options button:hover { transform: translateY(-3px); }
.result-card { border-radius: 14px; animation: panel-enter 420ms cubic-bezier(.2,.8,.2,1); }
.zone-banner:not([hidden]) { animation: zone-enter 420ms cubic-bezier(.2,.8,.2,1); }
.research-sub { transition: top 1.25s cubic-bezier(.2,.75,.2,1); animation: sub-bob 3.2s ease-in-out infinite; }
.research-sub::after { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 60px; border: 2px solid rgb(101 230 211 / 60%); border-radius: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.4); pointer-events: none; }

.game-frame.is-diving .research-sub { animation: dive-push var(--motion-dive) cubic-bezier(.2,.7,.25,1); }
.game-frame.is-diving .research-sub::after { animation: dive-ring 900ms ease-out; }
.game-frame.is-diving .sub-light { animation: light-pulse 700ms ease-out; }
.game-dialog[open], .guide-dialog[open] { animation: dialog-enter 260ms cubic-bezier(.2,.8,.2,1); }
dialog[open]::backdrop { animation: backdrop-enter 220ms ease-out; }
.game-dialog.closing, .guide-dialog.closing { animation: dialog-exit 180ms ease-in both; }
.game-dialog.closing::backdrop, .guide-dialog.closing::backdrop { animation: backdrop-exit 180ms ease-in both; }
.guide-card { transition: transform var(--motion-fast), border-color var(--motion-fast); }
.guide-card:hover { transform: translateY(-2px); border-color: #56857b; }
.system-cards > div, .game-directory-card, .comparison-table { box-shadow: 0 1px 2px rgb(8 31 38 / 4%); }
.system-cards > div { transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.system-cards > div:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgb(8 31 38 / 7%); }
.game-directory-card { transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); }
.game-directory-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(8 31 38 / 8%); }
.intro-section > p { line-height: 1.85; }
.section-heading { margin-bottom: 32px; }
.section-kicker { font-weight: 500; }
.toast:not([hidden]) { animation: toast-enter 240ms cubic-bezier(.2,.8,.2,1); }
@keyframes brand-sonar { 0%,45% { opacity: 1; transform: scale(.75); } 85%,100% { opacity: 0; transform: scale(1.45); } }
@keyframes screen-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes question-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes feedback-enter { 0% { opacity: 0; transform: translate(-50%,-42%) scale(.94); } 65% { transform: translate(-50%,-52%) scale(1.02); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes score-pop { 0% { opacity: .4; transform: translateY(5px); } 55% { color: var(--gold-400); transform: translateY(-3px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes zone-enter { from { opacity: 0; transform: translate(-50%,-12px); } to { opacity: 1; transform: translate(-50%,0); } }

@keyframes sub-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes dive-push { 0% { translate: 0 0; filter: brightness(1); } 35% { translate: 0 -7px; filter: brightness(1.18); } 100% { translate: 0 24px; filter: brightness(1); } }
@keyframes dive-ring { 0% { opacity: .8; transform: translate(-50%,-50%) scale(.35); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.8); } }
@keyframes light-pulse { 45% { filter: brightness(1.8); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(16px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-exit { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes backdrop-exit { to { opacity: 0; } }
@keyframes toast-enter { from { opacity: 0; transform: translate(-50%,10px); } to { opacity: 1; transform: translate(-50%,0); } }
@media (max-width: 760px) {
  .hero-heading { padding-top: 18px; padding-bottom: 16px; }
  .hero-heading h1 { font-size: 30px; letter-spacing: -1px; }
  .game-section { padding-top: 0; }
  .game-frame { border-right: 0; border-left: 0; border-radius: 0; }
  .logo-main { letter-spacing: -2px; }
  .logo-main em { margin-top: 8px; letter-spacing: -1px; }
  .system-cards > div:hover, .game-directory-card:hover, .current-options button:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark::before, .research-sub, .game-frame.is-diving .research-sub { animation: none !important; }
  .screen:not([hidden]), .question-card.question-refresh, .answer-feedback:not([hidden]), .current-panel, .result-card, .zone-banner:not([hidden]), .game-dialog[open], .guide-dialog[open], dialog[open]::backdrop, .toast:not([hidden]) { animation: none !important; }
  .game-frame.is-diving .research-sub::after { display: none; }
}


.primary-game-button:disabled { opacity: .65; cursor: wait; transform: none; }
.daily-bank-label { margin: -14px 0 18px; color: #9ed8cd; font: 12px/1.6 var(--mono); letter-spacing: .5px; text-align: center; }


.brand-icon { width: 32px; height: 32px; display: block; flex: 0 0 auto; border-radius: 9px; }


.hud-right { display: flex; gap: 8px; pointer-events: auto; }
.quit-button { height: 43px; padding: 0 14px; border: 1px solid #3b5e62; border-radius: 6px; background: #061b23db; color: #d7ebe6; font: 12px var(--mono); backdrop-filter: blur(8px); transition: background 160ms, border-color 160ms; }
.quit-button:hover { background: #153d42; border-color: #8daaa7; }

@media (max-width: 760px) { .hud-right { gap: 6px; }.quit-button { height: 40px; padding: 0 11px; } }


.game-hud { z-index: 20; }


.hero-heading h1 { max-width: none; font-size: clamp(14px,3.1vw,38px); white-space: nowrap; letter-spacing: -1px; }
@media (max-width: 420px) { .hero-heading h1 { font-size: 13px; letter-spacing: -.4px; } }



.secondary-game-row #profile-open { grid-column: 1 / -1; }
.result-card { max-height: calc(100% - 32px); overflow-y: auto; }
.result-run-meta { display: block; margin-top: 8px; color: #83aaa1; font: 12px/1.6 var(--mono); overflow-wrap: anywhere; }
.achievement-unlock { border-color: #8b743d; }
.achievement-unlock span { color: var(--gold-400); }
.profile-dialog { width: min(820px,calc(100% - 32px)); max-height: 88vh; overflow-y: auto; }
.profile-dialog h2 { max-width: 560px; margin-bottom: 8px; }
.profile-mode { margin: 0 0 24px; color: #91b7ad; font: 12px var(--mono); letter-spacing: 1px; }
.profile-name-form label { display: block; margin-bottom: 8px; color: #c8ddd6; font-size: 14px; }
.profile-name-form > div { display: flex; gap: 12px; }
.profile-name-form input { min-width: 0; flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid #426760; border-radius: 8px; background: #071e25; color: #eef8f3; font: 16px var(--sans); }
.profile-name-form .secondary-game-button { flex: 0 0 auto; }
.storage-note { margin: 12px 0 24px; color: #94afa8; font-size: 14px; line-height: 1.6; }
.profile-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.profile-stats > div { padding: 16px; border: 1px solid #31534f; border-radius: 8px; background: #0c3035; }
.profile-stats strong { display: block; color: var(--gold-400); font-size: 22px; font-weight: 600; }
.profile-stats span { color: #9bb8b0; font-size: 12px; }
.achievement-section, .run-history-section { margin-top: 32px; }
.profile-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.profile-section-heading h3, .run-history-section h3 { margin: 0 0 16px; font-size: 22px; }
.profile-section-heading span { color: #9bb8b0; font: 12px var(--mono); }
.achievement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.achievement-card { padding: 16px; border: 1px solid #2d4c48; border-radius: 8px; background: #0a2229; }
.achievement-card > span { color: #718e86; font: 12px var(--mono); letter-spacing: 1px; }
.achievement-card strong { display: block; margin-top: 8px; color: #b8cbc5; font-size: 16px; }
.achievement-card p { margin: 4px 0 0; color: #829e96; font-size: 14px; line-height: 1.5; }

.achievement-card.unlocked { border-color: #6d673e; background: #15332f; }
.achievement-card.unlocked > span, .achievement-card.unlocked strong { color: var(--gold-400); }
.achievement-card.unlocked p { color: #aac4bb; }
.run-history { margin: 0; padding-left: 24px; color: #a8c0b9; }
.run-history li { padding: 8px 4px; border-bottom: 1px solid #294943; font-size: 14px; }
.profile-settings { margin-top: 24px; padding-top: 24px; border-top: 1px solid #31534f; }
.profile-settings span { color: #91b7ad; font: 12px var(--mono); letter-spacing: 1px; }
.profile-settings p { margin: 8px 0 0; color: #94afa8; font-size: 14px; }
#guide-progress { display: block; width: min(320px,100%); height: 8px; margin-top: 12px; accent-color: var(--teal-400); }
.category-filter { display: flex; align-items: center; gap: 12px; padding: 0 32px 20px; background: #09262d; }
.category-filter label { color: #91ada6; font: 12px var(--mono); letter-spacing: 1px; }
.category-filter select { min-height: 44px; padding: 8px 36px 8px 12px; border: 1px solid #345b54; border-radius: 8px; background: #0d3035; color: #d9ebe5; font: 14px var(--sans); }
.species-category { display: block; margin-bottom: 8px; color: #a7c0b8; font: 12px var(--mono); }
.new-label { position: absolute; right: 12px; top: 12px; color: var(--gold-400); font: 12px var(--mono); }
.guide-empty { grid-column: 1 / -1; padding: 32px; color: #a7c0b8; text-align: center; }
.guide-card .lock-label { max-width: 70%; text-align: right; line-height: 1.5; }
.result-depth span { font: 12px var(--mono); }
@media (max-width: 760px) {
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .category-filter { align-items: flex-start; flex-direction: column; padding: 0 18px 16px; }
  .category-filter select { width: 100%; }
  .result-card { padding: 24px; }
  .result-depth strong { font-size: 48px; }
}
@media (max-width: 420px) {
  .profile-dialog { padding: 24px 18px; }
  .profile-name-form > div { flex-direction: column; }
  .profile-stats > div { padding: 12px; }
  .profile-stats strong { font-size: 18px; }
  .achievement-grid { grid-template-columns: 1fr; }
  .profile-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}


.air-tanks { align-items: center; }
.air-tanks span { color: #d5e9e3; font: 12px var(--mono); white-space: nowrap; }
@media (max-width: 760px) { .air-tanks svg { display: none; } }


@media (max-width: 760px) {
  .guide-filters { flex-wrap: wrap; overflow-x: visible; gap: 8px; }
  .guide-filters button { flex: 1 1 calc(33.333% - 8px); padding-inline: 8px; }
}

.game-directory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.game-directory-grid .game-directory-card { max-width: none; }
.external-game-stage { position: relative; width: min(1280px,100%); height: min(78vh,820px); min-height: 650px; margin: 0 auto; overflow: hidden; border: 1px solid rgb(101 230 211 / 18%); border-radius: 16px; background: #071d26; box-shadow: 0 24px 70px rgb(4 20 28 / 18%); }
.external-game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.external-game-cover { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #0b6683; }
.external-game-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.external-cover-panel { position: relative; margin-left: auto; width: 47%; height: 100%; padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: rgb(4 27 36 / 94%); color: #edf8f4; }
.external-cover-panel h2 { margin: 8px 0 16px; color: #f4faf7; font-size: clamp(28px,3.2vw,44px); line-height: 1.15; }
.external-cover-panel p { max-width: 48ch; margin: 0 0 24px; color: #b9d4cd; font-size: 16px; line-height: 1.7; }
.external-cover-panel .primary-game-button { width: 100%; }
.external-cover-panel .primary-game-button svg { width: 20px; height: 20px; }
.external-cover-panel small { margin-top: 16px; color: #91afa7; font-size: 12px; line-height: 1.6; }
.external-game-loading { position: absolute; inset: 0; z-index: 3; place-content: center; justify-items: center; gap: 12px; background: #071d26; color: #edf8f4; text-align: center; }
.external-game-loading:not([hidden]) { display: grid; }
.external-game-stage:not([data-gf-state="loading"]) .external-game-loading { display: none; }
.external-game-loading > span { width: 44px; height: 44px; border: 3px solid #285b5a; border-top-color: #65e6d3; border-radius: 50%; animation: external-spin 800ms linear infinite; }
.external-game-loading small { color: #91afa7; }
.external-game-toolbar { width: min(1280px,100%); margin: 0 auto; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.external-game-toolbar p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.external-game-toolbar > div { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.external-game-toolbar button, .external-game-toolbar a, .game-engagement button { min-height: 44px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 14px var(--sans); }
.external-game-toolbar svg, .provider-grid svg { width: 16px; height: 16px; }
.game-engagement { width: min(1280px,100%); margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.game-engagement [data-gf-share-msg] { color: var(--muted); font-size: 14px; }
.provider-section { padding: 64px 0; border-top: 1px solid var(--line); }
.provider-section h2 { margin: 0 0 32px; font-size: clamp(28px,3vw,38px); }
.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.provider-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.provider-grid h3 { margin: 0 0 12px; font-size: 22px; }
.provider-grid p { color: var(--muted); line-height: 1.7; }
.provider-grid a { display: inline-flex; align-items: center; gap: 8px; color: #118779; font-weight: 600; }
.community-section { padding: 64px 0; border-top: 1px solid var(--line); }
.comment-list[data-gf-empty]::after { content: "No comments yet. Share a useful thought about this edition."; display: block; padding: 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.comment-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-card time { margin-left: 12px; color: var(--muted); font-size: 12px; }
.comment-card p { margin: 8px 0 0; color: var(--muted); }
.comment-form { display: grid; gap: 12px; margin-top: 24px; }
.comment-form label { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 16px var(--sans); }
.comment-form .secondary-game-button { justify-self: start; min-width: 160px; }
@keyframes external-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .game-directory-grid, .provider-grid { grid-template-columns: 1fr; }
  .external-game-stage { height: 720px; min-height: 720px; border-right: 0; border-left: 0; border-radius: 0; }
  .external-cover-panel { width: 100%; padding: 32px 24px; background: rgb(4 27 36 / 88%); }
  .external-cover-panel h2 { font-size: 28px; }
  .external-game-toolbar { align-items: flex-start; flex-direction: column; padding: 16px 20px; }

  .external-game-toolbar > div { flex-wrap: wrap; }
  .game-engagement { padding: 0 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .external-game-loading > span { animation: none; } }


.external-game-stage { height: 620px; min-height: 0; }
.external-game-toolbar { justify-content: flex-end; }
@media (max-width: 760px) { .external-game-stage { height: 400px; min-height: 0; } }



.brand-icon { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 14px rgb(6 20 31 / 14%); }
.brand-wordmark { color: var(--ink); font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -.7px; line-height: 1; }
.brand-wordmark em { color: #0d9f94; font-style: normal; }
.footer-brand .brand-wordmark { font-size: 18px; }
.full-game-page { background: var(--paper); }
.full-game-heading { padding: 24px 0 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.full-game-heading h1 { margin: 0; font-size: clamp(28px,3.2vw,42px); line-height: 1.2; letter-spacing: -1.2px; }
.full-game-heading p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.full-page-frame-wrap { width: min(1280px,100%); height: calc(100vh - 150px); min-height: 650px; margin: 0 auto 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 16px 48px rgb(4 20 28 / 10%); }
.full-page-game-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 760px) {
  .brand-icon { width: 30px; height: 30px; }
  .brand-wordmark { font-size: 17px; }
  .full-game-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding: 18px 0 16px; }
  .full-game-heading h1 { font-size: 28px; }
  .full-page-frame-wrap { height: calc(100svh - 170px); min-height: 600px; margin-bottom: 24px; border-right: 0; border-left: 0; border-radius: 0; }
}


.site-footer { grid-template-columns: 1fr; }
.site-footer .footer-links { justify-content: flex-end; }
@media (max-width: 760px) { .site-footer .footer-links { justify-content: flex-start; } }
