@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');

/* The shared site frame opens into a dedicated underwater game world. */
body.dive-page {background:#f9f5e9;background-image:none}
body.dive-page .site-header {padding-top:15px;padding-bottom:15px}
body.dive-page .wrap {max-width:1440px;padding-top:14px}
body.dive-page .breadcrumbs {margin-bottom:12px;font-size:10px}
body.dive-page .intro {margin-bottom:9px;align-items:center}
body.dive-page .intro h1 {font-size:22px;letter-spacing:-.7px;text-shadow:none;margin:0}
body.dive-page .intro .eyebrow,body.dive-page .intro .muted {display:none}
body.dive-page .intro .date-label {margin:0;font-size:10px}
body.dive-page .subnav {margin:12px 0 18px;gap:6px}
body.dive-page .subnav a {padding:7px 14px;font-size:11px}
body.dive-page .game-layout {display:block}
body.dive-page .game-layout>aside {display:grid;grid-template-columns:1fr 320px;gap:24px;margin-top:25px}
body.dive-page .game-layout>aside .side-card:first-child {display:grid;grid-template-columns:repeat(3,1fr);gap:0 25px}
body.dive-page .side-card:first-child>.eyebrow,body.dive-page .side-card:first-child>h3,body.dive-page .side-card:first-child>.fine {grid-column:1/-1}
body.dive-page .side-card:first-child>h3 {margin:6px 0 0}
body.dive-page .side-card:first-child>h3 br {display:none}
body.dive-page .side-card:first-child .divider {display:none}
body.dive-page .side-card:first-child .score-key {grid-column:1/3;display:flex;flex-wrap:wrap;gap:9px;font-size:12px;border-top:1px solid var(--line);padding-top:16px}
body.dive-page .side-card:first-child .score-key b {margin-right:15px}
body.dive-page .side-card:first-child>.text-link {grid-row:4;grid-column:3;align-self:center}
body.dive-page .local-card {margin:0}
body.dive-page .game-note {margin:17px 0 0;font-size:11px}
body.dive-page .below,body.dive-page .game-layout>aside {max-width:1120px;margin-left:auto;margin-right:auto}

.dive-stage {--water-top:#247f9d;--water-bottom:#061a31;--dive-progress:0%;position:relative;isolation:isolate;overflow:hidden;min-height:625px;background:var(--water-bottom);border:2px solid #203e42;box-shadow:5px 5px 0 #c1d0b8;color:#eef7ed;padding:104px 92px 32px}
.dive-world {position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.dive-world::after {content:'';position:absolute;inset:0;background:repeating-linear-gradient(transparent 0 3px,#031b3218 3px 4px);opacity:.45}
.dive-water {position:absolute;inset:0;background:linear-gradient(var(--water-top),var(--water-bottom) 90%);transition:background 1.4s ease}
.dive-surface {position:absolute;inset:0 0 auto;height:300px;background:url('/images/dive-surface.svg') center bottom/cover no-repeat;transition:transform 1.7s ease,opacity 1.5s ease}
.dive-reef {position:absolute;inset:210px 0 0;background:url('/images/dive-reef.svg') center bottom/100% 100% no-repeat;transition:transform 1.7s ease,opacity 1.7s ease}
.dive-light {position:absolute;inset:240px 0 0;background:conic-gradient(from 155deg at 24% 0%,transparent 0 15deg,#b6eee721 16deg 19deg,transparent 20deg 26deg,#b6eee713 27deg 31deg,transparent 32deg);transition:opacity 1.5s ease}
.dive-swimmer {position:absolute;right:13%;top:48%;width:67px;filter:drop-shadow(3px 4px 0 #08293a40);transition:top 1.5s ease,transform 1.5s ease;animation:dive-float 4s ease-in-out infinite}
.dive-swimmer svg {display:block;width:100%;height:auto}
.dive-bubbles i {position:absolute;width:6px;height:6px;border:1px solid #bde4eb80;bottom:8%;left:13%;animation:dive-bubble 10s linear infinite}
.dive-bubbles i:nth-child(2){left:83%;bottom:20%;animation-delay:-3s;width:9px;height:9px}
.dive-bubbles i:nth-child(3){left:22%;bottom:34%;animation-delay:-6s}
.dive-bubbles i:nth-child(4){left:91%;bottom:2%;animation-delay:-1s}
.dive-bubbles i:nth-child(5){left:9%;bottom:49%;animation-delay:-8s;width:4px;height:4px}
.dive-bubbles i:nth-child(6){left:75%;bottom:8%;animation-delay:-4s;width:4px;height:4px}
.dive-hud {position:absolute;inset:20px 23px auto;display:flex;justify-content:space-between;align-items:start;gap:20px;font-family:'Courier New',monospace}
.dive-hud>div:not(.dive-zone){border:1px solid #8acdd182;background:#09253ddc;padding:10px 16px;min-width:125px;box-shadow:3px 3px 0 #06203940}
.dive-hud span {display:block;font-size:9px;letter-spacing:2px;color:#bbe7e4;margin-bottom:6px}
.dive-hud strong {display:block;font-size:23px;font-weight:700;color:#89e1dd;font-variant-numeric:tabular-nums;white-space:nowrap}
.dive-hud strong small {font-size:12px;font-weight:400}
.dive-hud .dive-hud-score strong {color:#f6b794}
.dive-hud .dive-zone {text-align:center;padding:9px 10px}
.dive-zone small {font:11px/1.6 'DM Sans',sans-serif;color:#b8d4dc}
.dive-stage[data-phase=ready] .dive-zone span {color:#254e59}
.dive-stage[data-phase=ready] .dive-zone small {color:#315b64}
.dive-ruler {position:absolute;right:23px;top:150px;bottom:35px;display:flex;flex-direction:column;align-items:end;gap:9px;font:10px 'Courier New',monospace;color:#d1e4e4aa;width:62px}
.dive-ruler i {position:relative;height:100%;width:18px;border-right:1px solid #d1e4e470;background:repeating-linear-gradient(transparent 0 29px,#d1e4e440 29px 30px)}
.dive-ruler b {position:absolute;right:-5px;top:var(--dive-progress);width:11px;height:8px;background:#f7b58d;box-shadow:0 0 10px #f7b58d50;transition:top 1.5s ease;transform:translateY(-50%)}
.dive-stage:not([data-phase=ready]) .dive-surface {transform:translateY(-280px);opacity:0}
.dive-stage:not([data-phase=ready]) .dive-reef {transform:translateY(-30px) scaleY(1.18);opacity:.65}
.dive-stage:not([data-phase=ready]) .dive-light {inset:0;opacity:.5}
.dive-stage:not([data-phase=ready]) .dive-swimmer {top:calc(38% + var(--dive-progress)*.25);right:12%}
.dive-stage[data-zone=twilight]{--water-top:#20677e;--water-bottom:#071b35}
.dive-stage[data-zone=midnight]{--water-top:#133d5a;--water-bottom:#060f26}
.dive-stage[data-zone=abyss]{--water-top:#142a45;--water-bottom:#080c20}
.dive-stage[data-zone=trench]{--water-top:#171f3d;--water-bottom:#060b18}
.dive-stage:is([data-zone=abyss],[data-zone=trench]) .dive-light {opacity:0}
.dive-stage:is([data-zone=midnight],[data-zone=abyss],[data-zone=trench]) .dive-swimmer {filter:drop-shadow(0 0 15px #64e4ed60)}

/* IDs deliberately outrank the common cream card theme inside the game. */
body.dive-page #game {--score-high:#f1b287;--score-mid:#69d8cf;--score-empty:#29445c;max-width:640px;min-height:0;margin:auto;padding:26px 30px;background:#081c33eb;border:1px solid #79bec18a;border-radius:0;color:#edf7ed;box-shadow:6px 6px 0 #03122750;overflow:visible}
body.dive-page #game :focus-visible {outline-color:#80e7e3}
body.dive-page #game .game-top {color:#a5ced3;border-bottom:1px solid #79bec13b;font:10px/1.7 'Courier New',monospace;gap:10px;padding-bottom:12px}
body.dive-page #game .pill {color:#c4e9e6;background:#214359;border-color:#8bbfc066;font-size:9px}
body.dive-page #game .game-score {display:none}
body.dive-page #game .game-center {padding-top:0}
body.dive-page #game h2 {text-shadow:none;color:#f2f5e8;font-size:clamp(22px,2.5vw,33px);line-height:1.3;letter-spacing:-.7px}
body.dive-page #game .prompt {margin:16px 0 23px;min-height:0}
body.dive-page #game p {color:#b4d4d7}
body.dive-page #game .game-center p {font-size:13px;line-height:1.7;max-width:450px}
body.dive-page #game .question-bar .eyebrow {color:#90d4d4;font-size:10px}
body.dive-page #game .progress-steps {margin:18px 0 20px;gap:7px}
body.dive-page #game .progress-steps span {height:5px;background:#29445c}
body.dive-page #game .progress-steps .filled {background:var(--step)}
body.dive-page #game .timer {color:#a7e9e2;background:#14394c;border-color:#75c5c47d;font-size:16px;min-width:50px}
body.dive-page #game .timer.urgent {color:#ffbe9c;background:#613c40;border-color:#ed9b79}
body.dive-page #game button {background:#f68d78;border:1px solid #ffd1ad;color:#132d3c;box-shadow:3px 4px 0 #823e40;font-size:13px;min-height:46px;border-radius:0;transition:background .15s ease}
body.dive-page #game button:hover:not(:disabled) {background:#ffad8d}
body.dive-page #game button.ghost {background:#17334a;border-color:#6a989f;color:#d5ece6;box-shadow:3px 3px 0 #030f20}
body.dive-page #game button.plain {background:transparent;color:#b8d9d9;border:0;box-shadow:none;font-size:11px;min-height:38px}
body.dive-page #game button.plain:hover {background:#1b3d4f}
body.dive-page #game .answer-input {background:#0d2940;border:1px solid #82b9be;padding:4px;gap:5px}
body.dive-page #game .answer-input input {background:#0d2940;color:#f3f5e5;border:0;min-height:46px;font-size:16px}
body.dive-page #game .answer-input input::placeholder {color:#90b6bf}
body.dive-page #game .answer-input button {box-shadow:none;min-width:96px}
body.dive-page #game .answer-error {color:#ffc19f;font-size:12px}
body.dive-page #game .round-actions {color:#c9e3df}
body.dive-page #game .round-hint {background:#204253;color:#d5e9df;border-color:#ebba8c;font-size:12px}
body.dive-page #game .feedback {margin-top:8px;gap:18px}
body.dive-page #game .feedback-points {color:#f6b68b;font-size:48px}
body.dive-page #game .feedback .tag {color:#a0d9d4;font-size:9px;letter-spacing:1px}
body.dive-page #game .feedback h3 {font-size:22px;color:#f2f5e8}
body.dive-page #game .reveal-answers,body.dive-page #game td,body.dive-page #game th {border-color:#80b9be44}
body.dive-page #game .reveal-answers summary {color:#a5d2d3;font-size:12px}
body.dive-page #game .answer-chips li {background:#16374a;border-color:#638f9955;color:#d7e9e3}
body.dive-page #game .answer-chips strong {color:#f2b78f}
body.dive-page #game .fine,body.dive-page #game .hint-used {color:#a4c7cb}
body.dive-page #game .challenge-strip {color:#afddda;border-color:#80b9be44;font:11px/1.8 'Courier New',monospace}
body.dive-page #game .challenge-strip strong {font-size:18px;color:#f4bd97}
body.dive-page #game .relaxed-option {color:#c4e7e3;font-size:11px;margin-top:15px}
body.dive-page #game .relaxed-option input {accent-color:#72dcd7;width:15px;height:15px}
body.dive-page #game .game-foot {color:#c1dfdf;border-top:1px solid #80b9be44;padding-top:12px;margin-top:13px;gap:20px;flex-wrap:wrap}
body.dive-page #game .game-foot a {font-size:11px;text-underline-offset:4px}
body.dive-page #game .result .eyebrow {color:#aacdd3;margin-top:22px;font-size:9px}
body.dive-page #game .dive-result-depth {font:700 clamp(42px,5vw,64px)/1.2 'Space Grotesk',sans-serif;color:#86e0da;letter-spacing:-2px;margin-top:20px}
body.dive-page #game .dive-result-depth span {font:12px 'Courier New',monospace;letter-spacing:0}
body.dive-page #game .final-score {font:16px 'Courier New',monospace;color:#edb893;letter-spacing:0;margin:8px 0 22px}
body.dive-page #game .final-score span {font:12px 'Courier New',monospace;color:#b5ccd4}
body.dive-page #game .result h2 {font-size:25px;margin:20px auto 14px}
body.dive-page #game .share-grid span {border-color:#537987}
body.dive-page #game .share-fallback {background:#0c293d;color:#e2eee4;border-color:#75a2ab}
body.dive-page .dive-stage[data-phase=ready] #game {max-width:660px;background:none;border:0;box-shadow:none;padding:4px 20px 0;text-align:center}
body.dive-page .dive-stage[data-phase=ready] .game-top {display:none}
body.dive-page #game .dive-wordmark {font:700 clamp(36px,5.8vw,76px)/1.15 'Silkscreen','Courier New',monospace;letter-spacing:-4px;color:#fff7dd;text-shadow:4px 4px 0 #174c61,-2px -2px 0 #174c61;margin:0 0 17px}
body.dive-page #game h2.dive-mode-title {font:700 12px 'Silkscreen','Courier New',monospace;letter-spacing:2px;color:#184757;margin:0 auto 13px}
body.dive-page .dive-stage[data-phase=ready] #game .game-center p {color:#214e5d;font-size:12px;max-width:530px;margin:0 auto}
body.dive-page .dive-stage[data-phase=ready] #start-game {display:flex;width:100%;max-width:430px;margin:142px auto 0;justify-content:center;font-family:'Silkscreen','Courier New',monospace;font-weight:400;font-size:14px;min-height:54px;padding:15px 22px}
body.dive-page .dive-stage[data-phase=ready] #game .game-foot {border:0;margin-top:8px;padding-top:0}

@keyframes dive-float {0%,100%{translate:0 0;rotate:-5deg}50%{translate:0 8px;rotate:3deg}}
@keyframes dive-bubble {from{transform:translateY(25px);opacity:0}20%{opacity:.6}to{transform:translateY(-160px);opacity:0}}
@media(max-width:900px){
 .dive-stage {padding-inline:68px}
 .dive-swimmer,.dive-stage:not([data-phase=ready]) .dive-swimmer {right:5%;width:46px}
 .dive-ruler {right:12px;width:44px;font-size:8px}
 .dive-hud .dive-zone {max-width:240px}
 body.dive-page .game-layout>aside {grid-template-columns:1fr 230px;gap:18px}
 body.dive-page .game-layout>aside .side-card:first-child {display:block}
 body.dive-page .side-card:first-child .rule {margin:15px 0}
 body.dive-page .side-card:first-child>.text-link {display:block;margin-top:15px}
}
@media(max-width:600px){
 body.dive-page .site-header {padding:14px 18px}
 body.dive-page .wrap {padding:12px 12px 40px}
 body.dive-page .breadcrumbs {font-size:9px;margin-bottom:10px}
 body.dive-page .intro {display:flex;gap:12px}
 body.dive-page .intro h1 {font-size:18px;line-height:1.4}
 body.dive-page .intro .date-label {font-size:9px;text-align:right;max-width:110px}
 body.dive-page .subnav {gap:6px;margin:10px 0 14px}
 body.dive-page .subnav a {padding:8px 10px;font-size:10px}
 .dive-stage {min-height:580px;padding:94px 18px 30px;border-width:1px;box-shadow:3px 3px 0 #c1d0b8}
 .dive-surface {height:277px;background-size:auto 290px;background-position:34% bottom}
 .dive-reef {inset:235px -35% 0;background-size:100% 100%}
 .dive-hud {inset:15px 14px auto;gap:12px}
 .dive-hud>div:not(.dive-zone) {min-width:86px;padding:8px 10px}
 .dive-hud span {font-size:8px;letter-spacing:1px;margin-bottom:4px}
 .dive-hud strong {font-size:18px}
 .dive-hud strong small {font-size:9px}
 .dive-hud .dive-zone {padding:5px 0;max-width:106px;align-self:center}
 .dive-zone small {display:none}
 .dive-ruler {top:80px;right:7px;bottom:18px;width:31px;font-size:7px;opacity:.65}
 .dive-ruler i {width:9px}
 .dive-swimmer {width:44px;right:10%;top:48%}
 .dive-stage:not([data-phase=ready]) .dive-swimmer {top:auto;bottom:12px;right:11%;width:35px;opacity:.7}
 body.dive-page #game {position:relative;padding:20px 16px;margin-right:16px;width:calc(100% - 16px);background:#081c33ef}
 body.dive-page #game .game-top {font-size:9px}
 body.dive-page #game h2 {font-size:23px}
 body.dive-page #game .answer-input {flex-wrap:wrap;border:0;padding:0;background:none;gap:12px}
 body.dive-page #game .answer-input input {border:1px solid #82b9be;width:100%;flex:auto;padding:13px 12px}
 body.dive-page #game .answer-input button {width:100%;box-shadow:3px 3px 0 #823e40}
 body.dive-page #game .feedback {gap:12px}
 body.dive-page #game .feedback-points {font-size:37px;letter-spacing:-2px}
 body.dive-page #game .feedback .tag {font-size:8px;letter-spacing:.5px}
 body.dive-page #game .feedback h3 {font-size:18px}
 body.dive-page #game .actions {gap:13px;margin-top:18px}
 body.dive-page #game .actions button {flex:1;min-width:130px;padding-inline:12px}
 body.dive-page #game .dive-wordmark {font-size:36px;letter-spacing:-3px;text-shadow:3px 3px 0 #174c61,-1px -1px 0 #174c61}
 body.dive-page #game h2.dive-mode-title {font-size:10px;letter-spacing:1px}
 body.dive-page .dive-stage[data-phase=ready] #game {padding:4px 3px 0;width:100%;margin:0;position:static}
 body.dive-page .dive-stage[data-phase=ready] #game .game-center p {font-size:11px;max-width:275px}
 body.dive-page .dive-stage[data-phase=ready] #start-game {margin-top:162px;font-size:11px;padding:14px 18px}
 body.dive-page #game .game-foot {gap:7px 18px}
 body.dive-page #game .game-foot a,body.dive-page #game .game-foot button {font-size:10px}
 body.dive-page .game-layout>aside {grid-template-columns:1fr;margin-top:20px}
 body.dive-page .game-note {font-size:10px;line-height:1.8;padding:0 5px}
}
@media(prefers-reduced-motion:reduce){
 .dive-stage * {animation:none!important;transition:none!important}
}
