@font-face {
  font-family: "VT323";
  src: url("fonts/vt323.woff2") format("woff2");
  font-display: swap;
}

:root {
  --abyss: #040704;
  --deep: #0b130b;
  --murk: #111c10;
  --moss: #2b4428;
  --foam: #eef3e2;
  --drift: #a9b89a;
  --drift-2: #74846a;
  --accent: #b6e35a;
  --accent-2: #e2f7b8;
  --pink: #ff5d8f;
  --gold: #ffd166;
  --red: #ff5252;
  --blue: #4d8dff;
  --hairline: rgba(170, 190, 140, 0.26);
  --panel: rgba(6, 12, 6, 0.9);
  --t-p: #8fa3c4;
  --t-c: #ff9f43;
  --t-s: #5b9dff;
  --t-r: #ff5252;
  --t-d: #9d7bff;
  --t-k: #ffd166;
  --miss: #4a5640;
  --pw: 3px; /* pixel border width */
  --pixel: "VT323", ui-monospace, "SF Mono", Menlo, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--abyss); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--foam);
  font: 20px/1.25 var(--pixel);
  background: linear-gradient(180deg, #2b4428 0 260px, #1a2a18 260px 560px, #111c10 560px 900px, var(--abyss) 900px) fixed;
  padding-bottom: var(--safe-bottom);
  -webkit-font-smoothing: none;
}
body.in-dive { overflow: hidden; overscroll-behavior: none; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--pw) solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
img, canvas.ds-px, .ds-root img { image-rendering: pixelated; }

/* The pixel border: four hard edges with open corners, plus a hard drop shadow. */
.px-box, .panel, .btn, .btn-big, .btn-descend, .ds-pod, .ds-dock, .ds-begin-btn, .ds-next-btn, .ds-dive-btn, .ds-panel, .ds-reject,
.ds-choice, .pack-card, .arch-row, .stat, .hat, input[type="text"], input[type="search"], select, #toast, .ds-say, .chip, .keep-diving {
  --pb: var(--hairline);
  border: 0;
  border-radius: 0;
  box-shadow: 0 calc(-1 * var(--pw)) 0 0 var(--pb), 0 var(--pw) 0 0 var(--pb), calc(-1 * var(--pw)) 0 0 0 var(--pb), var(--pw) 0 0 0 var(--pb),
    calc(var(--pw) * 2) calc(var(--pw) * 2) 0 0 rgba(0, 0, 0, 0.4);
}

#sea { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.in-dive #sea { display: none; }

/* ---------- top bar and menu ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 2px 8px; padding-top: max(2px, var(--safe-top));
  background: rgba(4, 7, 4, 0.92);
  box-shadow: 0 var(--pw) 0 0 var(--hairline);
}
.in-dive .top { position: fixed; left: 0; right: 0; background: none; box-shadow: none; }
#menu-btn { justify-self: start; }
.top-right { justify-self: end; display: flex; }
#restart-btn[hidden] { display: none; }
.in-dive[data-phase="intro"] #restart-btn { visibility: hidden; }
#restart-btn svg { width: 20px; height: 20px; }
.top-title { justify-self: center; font-size: clamp(20px, 6.6vw, 28px); letter-spacing: 0.12em; white-space: nowrap; color: var(--foam); text-decoration: none; text-shadow: 2px 2px 0 var(--red), 4px 4px 0 #2a4f8a; }
.in-dive[data-phase="intro"] .top-title, .in-dive[data-phase="done"] .top-title { visibility: hidden; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--foam); }
.icon-btn svg { width: 24px; height: 20px; }
#menu-btn svg { width: 22px; height: 18px; }
#sound-btn.off { color: var(--drift-2); }
.in-dive .icon-btn { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6)); }
#drawer { position: fixed; inset: 0; z-index: 60; background: rgba(2, 4, 2, 0.6); }
.drawer-inner {
  width: min(320px, 86vw); height: 100%; overflow-y: auto; background: #0b130b;
  box-shadow: var(--pw) 0 0 0 var(--hairline); padding: 18px 18px 40px; padding-top: max(18px, var(--safe-top));
  display: flex; flex-direction: column; gap: 2px; animation: slidein 0.18s steps(6);
}
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer-head { font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 16px 0 4px; }
.drawer-inner a { color: var(--foam); text-decoration: none; font-size: 26px; padding: 4px 6px; }

/* ---------- page layout ---------- */
main { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: clamp(120px, 24vh, 210px) 16px 64px; outline: none; }
.loading { font-size: 28px; text-align: center; color: var(--drift); margin: 30vh 0; letter-spacing: 0.12em; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.panel { background: var(--panel); padding: 20px 18px; margin: 18px 0; }
.center { text-align: center; }
.eyebrow { font-size: 18px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.title { font-weight: 400; font-size: 44px; line-height: 1; margin: 4px 0 12px; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }
.section-title { font-weight: 400; font-size: 30px; margin: 0 0 10px; }
.small-note { color: var(--drift); font-size: 18px; margin: 8px 0; }
.fathom { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.fathom::after { content: ""; flex: 1; height: var(--pw); background: repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 9px); }
.px-arrow { display: inline-flex; vertical-align: middle; margin: 0 10px; }
.px-arrow svg { width: 21px; height: 12px; }

.btn {
  --pb: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 24px; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase;
  padding: 10px 18px; min-height: 46px; margin: var(--pw); cursor: pointer; text-decoration: none;
  color: var(--foam); background: rgba(182, 227, 90, 0.08);
}
.btn:active, .btn-big:active, .btn-descend:active, .ds-begin-btn:active, .ds-next-btn:active, .ds-dive-btn:active { transform: translate(var(--pw), var(--pw)); }
.btn-big, .btn-descend {
  --pb: var(--accent-2);
  font-size: 28px; letter-spacing: 0.1em; padding: 10px 24px; min-height: 52px; margin: var(--pw); cursor: pointer; text-transform: uppercase;
  background: var(--accent); color: var(--murk); display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn-danger { --pb: #e98a8a; color: #ffd4d4; background: rgba(255, 82, 82, 0.1); }
.btn-quiet {
  background: none; border: 0; color: var(--drift); cursor: pointer; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 4px; min-height: 44px; min-width: 44px; text-decoration: none; display: inline-flex; align-items: center;
}

input[type="text"], input[type="search"], select { --pb: var(--hairline); background: rgba(4, 8, 4, 0.8); color: var(--foam); padding: 6px 10px; margin: var(--pw); font-size: 22px; }
input[type="text"]:focus, input[type="search"]:focus, select:focus { --pb: var(--accent); outline: none; }
select option { background: var(--deep); }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 3px 0 0; cursor: pointer; background: var(--abyss);
  box-shadow: 0 -3px 0 0 var(--drift), 0 3px 0 0 var(--drift), -3px 0 0 0 var(--drift), 3px 0 0 0 var(--drift);
}
input[type="checkbox"]:checked { background: var(--accent); box-shadow: 0 -3px 0 0 var(--accent-2), 0 3px 0 0 var(--accent-2), -3px 0 0 0 var(--accent-2), 3px 0 0 0 var(--accent-2), inset 0 0 0 4px var(--abyss); }

/* ---------- the dive ---------- */
.ds-root { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; z-index: 5; overflow: hidden; background: var(--abyss); }
.ds-host, .ds-stage { position: absolute; inset: 0; }
.ds-stage { overflow: hidden; }
.ds-sea, .ds-fore, .ds-gauge { position: absolute; left: 0; top: 0; }
.ds-fore { pointer-events: none; z-index: 2; }
.ds-gauge { pointer-events: none; z-index: 4; left: auto; right: 0; }
.ds-caps { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.divers-count { margin: 18px 0 0; text-align: center; font-size: 17px; letter-spacing: 0.08em; color: var(--drift-2); }
.ds-zone-banner {
  position: absolute; left: 50%; top: calc(126px + var(--safe-top)); z-index: 7; transform: translateX(-50%);
  font-size: clamp(26px, 8vw, 40px); letter-spacing: 0.22em; white-space: nowrap; pointer-events: none;
  text-shadow: 3px 3px 0 #000, 0 0 18px currentColor; opacity: 0; transition: opacity 0.45s steps(3);
}
.ds-zone-banner.on { opacity: 1; }
.ds-cap { position: absolute; left: 0; top: 0; visibility: hidden; font-size: 16px; line-height: 1; white-space: nowrap; color: rgba(16, 28, 12, 0.9); text-shadow: 1px 1px 0 rgba(244, 248, 230, 0.75); }
.ds-cap { translate: -50% -80%; }
.ds-cap.right { translate: -100% -80%; }
.ds-world { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 3; will-change: transform; }
.ds-dim, .ds-vignette, .ds-edge, .ds-flash, .ds-crt { position: absolute; inset: 0; pointer-events: none; }
.ds-dim { z-index: 5; opacity: 0; transition: opacity 0.6s steps(4); }
.ds-dim.on { opacity: 1; }
.ds-vignette {
  z-index: 5; opacity: 0.25;
  background: radial-gradient(ellipse at 50% 45%, transparent 0 48%, rgba(0, 0, 0, 0.35) 48% 62%, rgba(0, 0, 0, 0.6) 62% 76%, rgba(0, 0, 0, 0.88) 76%);
}
.ds-edge { z-index: 6; opacity: 0; box-shadow: inset 0 0 0 6px rgba(255, 93, 143, 0.7), inset 0 0 0 12px rgba(255, 93, 143, 0.35), inset 0 0 0 18px rgba(255, 93, 143, 0.15); }
.ds-edge.danger { opacity: 1; animation: blink 0.5s steps(2) infinite; }
.ds-flash { z-index: 6; opacity: 0; }
.ds-crt { z-index: 9; opacity: 0.3; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px); }
.ds-crt.zap { animation: zap 0.28s steps(3); }
@keyframes zap { 0% { opacity: 0.9; background-color: rgba(182, 227, 90, 0.08); transform: translateX(-3px); } 50% { transform: translateX(3px); } 100% { opacity: 0.3; } }
.ds-shake { animation: shake 0.45s steps(6); }
@keyframes shake { 15%, 55% { transform: translate(-6px, 3px); } 35%, 75% { transform: translate(6px, -3px); } 90% { transform: translate(-3px, 0); } }

/* the surface */
.ds-surface { position: absolute; left: 0; right: 0; top: -336px; text-align: center; transition: opacity 0.6s steps(4); }
.ds-surface.away { opacity: 0; }
.ds-title { font-size: clamp(44px, 12vw, 104px); line-height: 1; letter-spacing: 0.04em; color: #fff; white-space: nowrap; }
.ds-title span { display: inline-block; animation: letterbob 2.6s steps(4) infinite; text-shadow: 3px 3px 0 var(--red), 6px 6px 0 #2a4f8a, -2px 0 0 #0a140a, 0 -2px 0 #0a140a; }
@keyframes letterbob { 50% { transform: translateY(-6px); } }
.ds-tagline { margin-top: 6px; padding: 0 10px; font-size: clamp(18px, 5vw, 32px); letter-spacing: 0.24em; color: #12240f; text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.35); }

/* depth markers */
.ds-amb { position: absolute; max-width: min(44vw, 300px); font-size: 17px; line-height: 1.05; color: rgba(190, 205, 165, 0.72); transition: opacity 0.4s steps(3); }
.ds-amb.L { left: 10px; }
.ds-amb.R { right: 80px; text-align: right; }
.ds-amb .dash { display: inline-block; width: 18px; height: 3px; margin: 0 6px 4px; vertical-align: middle; background: rgba(190, 205, 165, 0.4); }
.ds-amb.major { font-size: 22px; letter-spacing: 0.18em; color: var(--foam); text-shadow: 2px 2px 0 #000; }
.ds-reveal .ds-amb { opacity: 0.15; }
.ds-world.calm .ds-amb { opacity: 0; }

/* prompt card */
.ds-card {
  --pb: var(--accent);
  position: absolute; left: 50%; width: min(560px, calc(100% - 64px)); transform: translateX(-50%);
  padding: 10px 16px 12px; text-align: center; background: rgb(4, 8, 4);
  animation: cardin 0.5s steps(5) both;
}
@keyframes cardin { from { opacity: 0; transform: translate(-50%, -24px); } }
.ds-card.gone { animation: cardout 0.5s steps(5) forwards; }
@keyframes cardout { to { opacity: 0; transform: translate(-50%, 40px); } }
.ds-card .rnd { font-size: 17px; letter-spacing: 0.24em; color: var(--accent); }
.ds-card .prompt { font-size: clamp(30px, 7.6vw, 42px); line-height: 1.02; color: var(--foam); margin: 4px 0 2px; overflow-wrap: anywhere; }

/* tier lines and the sinking answer */
.ds-tierline { position: absolute; left: 0; right: 24px; height: 3px; background: repeating-linear-gradient(90deg, var(--tc) 0 9px, transparent 9px 15px); opacity: 0; }
.ds-tierline .tag { position: absolute; left: 10px; top: -25px; display: flex; align-items: center; gap: 6px; font-size: 18px; letter-spacing: 0.1em; color: var(--tc); text-shadow: 2px 2px 0 #000; }
.ds-tierline .tag img { height: 18px; width: auto; }
.ds-tierline.passed { background: var(--tc); }
.ds-chip {
  --pb: var(--tc);
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; white-space: nowrap; max-width: 78vw; overflow: hidden; text-overflow: ellipsis;
  padding: 2px 12px; font-size: 26px; letter-spacing: 0.06em; color: var(--tc); background: rgba(4, 8, 4, 0.9);
}
.ds-chip.gold { --pb: var(--gold); color: #fff3cc; background: rgba(60, 40, 6, 0.92); }

/* landed card */
.ds-landed {
  --pb: var(--tc);
  position: absolute; left: 50%; width: min(400px, calc(100% - 64px)); transform: translateX(-50%); z-index: 1;
  padding: 10px 14px 10px; text-align: center; background: rgb(4, 8, 4);
  animation: landin 0.4s steps(4) both;
}
@keyframes landin { from { opacity: 0; transform: translate(-50%, 18px); } }
.ds-landed.miss { --tc: var(--miss); }
.ds-landed .icon { height: 36px; width: auto; display: block; margin: 0 auto 4px; }
.ds-landed .tname { font-size: 26px; letter-spacing: 0.14em; color: var(--tc); line-height: 1.1; }
.ds-landed.miss .tname { color: var(--drift); }
.ds-landed .tans { font-size: 30px; line-height: 1.05; color: var(--foam); overflow-wrap: anywhere; }
.ds-landed .tpts { font-size: 28px; color: var(--tc); margin-top: 2px; }
.ds-landed.miss .tpts { color: var(--drift-2); }
.ds-landed.t-k { background: rgb(40, 28, 4); }

/* HUD */
.ds-hud {
  position: absolute; z-index: 7; left: 10px; right: 10px; top: calc(50px + var(--safe-top));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; transition: opacity 0.5s steps(4); pointer-events: none;
}
.ds-root[data-phase="intro"] .ds-hud, .ds-root[data-phase="done"] .ds-hud { opacity: 0; }
.ds-pod { justify-self: start; min-width: 96px; padding: 3px 10px 1px; margin: var(--pw); background: rgba(4, 8, 4, 0.78); }
.ds-depth-pod { --zone: var(--accent); --pb: var(--zone); background: color-mix(in srgb, var(--zone) 14%, rgba(4, 8, 4, 0.82)); transition: background 0.6s steps(4); }
.ds-depth-pod .label { color: var(--zone); }
.ds-score-pod { justify-self: end; text-align: right; }
.ds-pod .label { font-size: 15px; letter-spacing: 0.18em; color: var(--drift); white-space: nowrap; }
.ds-depth-num, .ds-score-num { font-size: 30px; line-height: 1; color: var(--foam); display: inline-block; }
.ds-score-num.slam { animation: slam 0.5s steps(4); color: var(--gold); }
@keyframes slam { 0% { transform: scale(1.8); } }
.ds-depth-num.crank { animation: crank 0.1s steps(2); }
@keyframes crank { 50% { transform: translateY(3px); color: var(--gold); } }
.ds-hud-mid { text-align: center; }
.ds-dots { display: flex; gap: 6px; justify-content: center; }
.ds-dots i { width: 12px; height: 12px; background: rgba(4, 8, 4, 0.6); box-shadow: inset 0 0 0 3px rgba(190, 205, 165, 0.45); }
.ds-dots i.done { background: var(--accent); box-shadow: none; }
.ds-dots i.cur { box-shadow: inset 0 0 0 3px var(--accent); animation: blink 1s steps(2) infinite; }
.ds-prompt-count { font-size: 20px; letter-spacing: 0.14em; color: var(--foam); white-space: nowrap; text-shadow: 2px 2px 0 #000; }

/* the krill */
.ds-mascot {
  position: absolute; left: 0; top: 0; z-index: 8; width: 70px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); will-change: transform; -webkit-tap-highlight-color: transparent;
}
.ds-mascot:focus-visible { outline-offset: 6px; }
.ds-mascot-sprite { display: block; }
.ds-mascot-sprite svg { display: block; width: 100%; height: auto; }
.ds-mascot-sprite.celebrate { animation: celebrate 0.9s steps(6); }
@keyframes celebrate { 30% { transform: translateY(-21px) rotate(-12deg); } 60% { transform: translateY(-6px) rotate(9deg); } }
.ds-mascot-sprite.faint { animation: faint 2.4s steps(8); }
@keyframes faint { 20%, 75% { transform: rotate(180deg) translateY(-3px); } }
.ds-mascot-sprite.sad { animation: sad 2.6s steps(6); }
@keyframes sad { 20%, 80% { transform: translateY(9px) rotate(12deg); filter: saturate(0.4); } }
.ds-mascot.gold .ds-mascot-sprite { filter: sepia(1) saturate(4.5) hue-rotate(-14deg) brightness(1.18); }
.ds-mascot.gilding { animation: gild 1.2s steps(6); }
@keyframes gild { 0% { filter: brightness(3); } }
.ds-say {
  --pb: var(--foam);
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%); padding: 0 6px; font-size: 20px;
  color: var(--murk); background: var(--foam); opacity: 0; pointer-events: none;
}
.ds-say.show { animation: say 1.2s steps(6); }
@keyframes say { 0% { opacity: 0; transform: translate(-50%, 6px); } 15%, 70% { opacity: 1; transform: translate(-50%, -6px); } 100% { opacity: 0; transform: translate(-50%, -12px); } }
.ds-swarm-fish { position: absolute; left: 0; top: 0; width: 42px; z-index: 7; pointer-events: none; }

/* overlays on top of the dive */
.ds-ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.ds-ui > * { pointer-events: auto; }

.ds-intro {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px calc(16px + var(--safe-bottom));
  background: linear-gradient(0deg, rgba(4, 8, 4, 0.95) 0 78%, rgba(4, 8, 4, 0.75) 78% 88%, rgba(4, 8, 4, 0.45) 88% 95%, transparent 95%);
}
.ds-intro-inner { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ds-howto summary { cursor: pointer; font-size: 22px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.ds-howto ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 21px; line-height: 1.15; color: var(--foam); }
.ds-howto li { margin: 3px 0; }
.ds-howto li::marker { content: "▸ "; color: var(--gold); }
.ds-begin-btn {
  --pb: var(--accent-2);
  font-size: clamp(24px, 7.4vw, 32px); letter-spacing: 0.12em; padding: 10px; margin: var(--pw); cursor: pointer; color: var(--murk); background: var(--accent);
  display: flex; align-items: center; justify-content: center; white-space: nowrap; animation: beckon 1.6s steps(2) infinite;
}
@keyframes beckon { 50% { background: var(--accent-2); } }
.ds-yesterday { align-self: center; font-size: 21px; letter-spacing: 0.08em; }
.ds-intro-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 19px; letter-spacing: 0.1em; color: var(--drift); }
.ds-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ds-links a { color: var(--accent); text-decoration: none; }

.ds-dock {
  --pb: var(--accent);
  position: absolute; left: 50%; bottom: calc(14px + var(--safe-bottom)); transform: translateX(-50%); width: min(620px, calc(100% - 24px));
  min-height: 74px; padding: 8px 10px; margin: 0; background: rgba(4, 8, 4, 0.94);
}
.ds-dock.hot { --pb: var(--pink); }
.ds-dock.is-preview { display: grid; place-items: center; }
.ds-preview-pill { font-size: 24px; letter-spacing: 0.1em; color: var(--drift); text-align: center; }
.ds-preview-pill b { color: var(--accent); font-weight: 400; font-size: 32px; display: inline-block; min-width: 0.7em; }
.ds-dock-inner { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
/* the clock: a square sonar screen with a ticking sweep */
.ds-sonar-wrap { position: relative; width: 54px; height: 54px; margin: var(--pw); }
.ds-sonar-scope {
  position: absolute; inset: 0; overflow: hidden; background: #0c1a0c;
  clip-path: polygon(0 9px, 3px 9px, 3px 6px, 6px 6px, 6px 3px, 9px 3px, 9px 0, calc(100% - 9px) 0, calc(100% - 9px) 3px, calc(100% - 6px) 3px, calc(100% - 6px) 6px, calc(100% - 3px) 6px, calc(100% - 3px) 9px, 100% 9px, 100% calc(100% - 9px), calc(100% - 3px) calc(100% - 9px), calc(100% - 3px) calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) calc(100% - 3px), calc(100% - 9px) calc(100% - 3px), calc(100% - 9px) 100%, 9px 100%, 9px calc(100% - 3px), 6px calc(100% - 3px), 6px calc(100% - 6px), 3px calc(100% - 6px), 3px calc(100% - 9px), 0 calc(100% - 9px));
  box-shadow: inset 0 0 0 3px rgba(182, 227, 90, 0.6);
}
.ds-sweep { position: absolute; inset: -20%; background: conic-gradient(from 0deg, rgba(182, 227, 90, 0.55) 0 30deg, rgba(182, 227, 90, 0.25) 30deg 60deg, transparent 60deg); animation: sweep 2s steps(12) infinite; }
.ds-sweep.hot { background: conic-gradient(from 0deg, rgba(255, 93, 143, 0.7) 0 30deg, rgba(255, 93, 143, 0.3) 30deg 60deg, transparent 60deg); animation-duration: 0.8s; }
@keyframes sweep { to { transform: rotate(360deg); } }
.ds-time-digits { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; color: var(--foam); text-shadow: 2px 2px 0 #000; }
.ds-time-digits.hot { color: var(--pink); animation: blink 0.5s steps(2) infinite; }
.ds-input-col { min-width: 0; }
.ds-input {
  width: 100%; font-size: 30px; padding: 2px 2px 4px; color: var(--foam); background: transparent; margin: 0;
  border: 0; border-bottom: var(--pw) solid rgba(190, 205, 165, 0.4); border-radius: 0; outline: none; box-shadow: none !important;
}
.ds-input:focus { border-bottom-color: var(--accent); }
.ds-input::placeholder { color: var(--drift-2); }
.ds-fuse { display: flex; gap: 3px; height: 9px; margin-top: 7px; }
.ds-fuse i { flex: 1; background: var(--fc); }
.ds-fuse i.off { background: rgba(190, 205, 165, 0.14); }
.ds-dive-btn {
  --pb: var(--accent-2);
  height: 50px; padding: 0 16px; margin: var(--pw); font-size: 28px; letter-spacing: 0.12em; cursor: pointer; color: var(--murk); background: var(--accent);
}
.ds-dive-btn:disabled { opacity: 0.4; cursor: default; }
.ds-assist {
  position: absolute; left: 50%; bottom: calc(var(--dock-h, 80px) + 30px + var(--safe-bottom)); transform: translateX(-50%); width: min(620px, calc(100% - 24px));
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.ds-assist > * { pointer-events: auto; }
.ds-panel { --pb: var(--gold); max-width: 100%; padding: 6px 12px; margin: var(--pw); background: rgba(4, 8, 4, 0.94); text-align: center; font-size: 24px; }
.ds-correction-change b { color: var(--gold); font-weight: 400; }
.ds-correction-arrow { color: var(--drift); }
.ds-correction-hint { display: block; font-size: 19px; letter-spacing: 0.06em; color: var(--drift); }
.ds-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.ds-choice { --pb: var(--gold); display: flex; flex-direction: column; align-items: center; padding: 4px 10px; margin: var(--pw); cursor: pointer; color: var(--foam); background: rgba(255, 209, 102, 0.1); }
.ds-choice b { font-weight: 400; font-size: 23px; line-height: 1.1; }
.ds-choice span { font-size: 16px; color: var(--drift); }
.ds-reject { --pb: var(--pink); padding: 3px 12px; margin: var(--pw); font-size: 22px; color: #ffc4d4; background: rgba(4, 8, 4, 0.94); animation: shake 0.4s steps(6); max-width: 100%; overflow-wrap: anywhere; }
.ds-next-wrap { position: absolute; left: 0; right: 0; bottom: calc(24px + var(--safe-bottom)); display: flex; justify-content: center; pointer-events: none; }
.ds-next-btn {
  --pb: var(--accent);
  pointer-events: auto; font-size: 32px; letter-spacing: 0.14em; padding: 8px 26px; cursor: pointer; display: flex; align-items: center;
  color: var(--accent); background: rgba(4, 8, 4, 0.92); animation: nextin 0.3s steps(3) both;
}
@keyframes nextin { from { opacity: 0; transform: translateY(12px); } }
.ds-extra { display: flex; justify-content: flex-end; }
.ds-yield { padding: 2px 0 0; font-size: 18px; letter-spacing: 0.08em; color: var(--drift); background: none; border: 0; cursor: pointer; }

/* results */
.ds-done {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(60px + var(--safe-top)) 16px calc(40px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(4, 8, 4, 0.1) 0 120px, rgba(4, 8, 4, 0.45) 120px 260px, rgba(4, 8, 4, 0.75) 260px);
}
.ds-done-inner {
  max-width: 540px; margin: 0 auto; padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 18px;
  background: #060c06; animation: rise 0.5s steps(5) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(-20px); } }
.ds-done-inner > * { margin: 0; }
.ds-done-label { font-size: 20px; letter-spacing: 0.16em; color: var(--drift); text-transform: uppercase; }
.ds-done-score { display: flex; align-items: baseline; gap: 14px; margin-top: -10px; }
.ds-done-score .big { font-size: 104px; line-height: 0.85; text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5); }
.ds-done-score .depth { font-size: 28px; color: var(--accent); }
.ds-done-band { font-size: 30px; letter-spacing: 0.12em; color: var(--tc); margin-top: -8px; }
.ds-done-band:empty { display: none; }
.ds-done-icons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds-done-icons img { height: 26px; width: auto; }
.miss-box { display: inline-block; width: 18px; height: 18px; background: var(--miss); }
.ds-done-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ds-done-actions .btn-descend { flex: 1 1 auto; white-space: nowrap; }
.ds-done-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 22px; letter-spacing: 0.1em; }
.ds-done-links a { text-decoration: none; }
.keep-diving { --pb: var(--gold); color: var(--gold); }
.ds-catch { list-style: none; padding: 0; margin: 0; }
.ds-catch > li { box-shadow: 0 3px 0 0 rgba(170, 190, 140, 0.12); }
.ds-round summary, .ds-round .fb-row { display: grid; grid-template-columns: 16px 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; list-style: none; }
.ds-round summary { cursor: pointer; }
.ds-round summary::-webkit-details-marker { display: none; }
.ds-round .n { font-size: 18px; color: var(--drift-2); }
.ds-round summary > img, .ds-round .fb-row > img { height: 20px; width: auto; justify-self: center; }
.ds-round .miss-box { justify-self: center; width: 16px; height: 16px; }
.ds-round .body { min-width: 0; display: flex; flex-direction: column; }
.ds-round .p { font-size: 17px; letter-spacing: 0.04em; color: var(--drift); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-round .a { font-size: 23px; color: var(--foam); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-round .a.skipped { color: var(--drift); }
.ds-round .gem { display: flex; align-items: center; gap: 6px; margin: 0 0 6px 66px; font-size: 19px; color: var(--gold); }
.ds-round .gem img { height: 10px; width: auto; }
.ds-round .pts { font-size: 24px; color: var(--tc, var(--miss)); }
.ds-next-dive { font-size: 21px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--drift); }
.ds-next-dive .cd { color: var(--accent); }

/* ---------- tiers ---------- */
.t-p { --tc: var(--t-p); }
.t-c { --tc: var(--t-c); }
.t-s { --tc: var(--t-s); }
.t-r { --tc: var(--t-r); }
.t-d { --tc: var(--t-d); }
.t-k { --tc: var(--t-k); }
.chip {
  --pb: var(--tc, var(--hairline));
  display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; margin: var(--pw); font-size: 18px; white-space: nowrap;
  color: var(--tc, var(--foam)); background: rgba(4, 8, 4, 0.6);
}
.chip img { height: 14px; width: auto; }
.chip b { color: var(--foam); font-weight: 400; }
.chip-miss { --tc: var(--miss); color: var(--drift); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--tc); color: var(--murk); }
.src { color: var(--drift-2); font-size: 17px; margin: 6px 0 10px; }

/* answer browser */
.ab { margin: 4px 0 14px; }
.ab-search { width: calc(100% - 6px); }
.ab-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ab-count { font-size: 17px; color: var(--drift-2); margin: 4px 0; }
.ab-list { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; background: rgba(4, 8, 4, 0.5); }
.ab-list li { display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; padding: 5px 8px; align-items: center; }
.ab-list li:nth-child(even) { background: rgba(170, 190, 140, 0.05); }
.ab-list li.mine { background: rgba(255, 209, 102, 0.16); }
.ab-emoji { grid-row: span 2; display: flex; justify-content: center; }
.ab-emoji img { height: 16px; width: auto; }
.ab-name { color: var(--foam); }
.ab-meta { font-size: 16px; color: var(--drift-2); }

/* ---------- classic stage (caucus night) ---------- */
.stage { display: flex; flex-direction: column; gap: 12px; }
.hud { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; background: rgba(4, 8, 4, 0.92); padding: 10px 14px; }
.hud-label { font-size: 20px; letter-spacing: 0.08em; color: var(--foam); margin: 0; }
.hud-sub { margin: 4px 0 0; font-size: 15px; letter-spacing: 0.08em; color: var(--drift); }
.floor-clock { margin: 0; min-width: 2ch; text-align: right; font-size: 44px; line-height: 1; color: var(--accent); text-shadow: 3px 3px 0 #000; }
.floor-clock.is-low { color: var(--pink); }
.v-answer { margin: 0; font-size: 30px; line-height: 1.2; color: var(--foam); }
.v-tier { margin: 0; font-size: 26px; letter-spacing: 0.08em; color: var(--pink); }
.prompt-card { --pb: var(--accent); background: rgba(4, 8, 4, 0.9); padding: 14px 16px 12px; text-align: center; margin: var(--pw); }
.prompt { font-weight: 400; font-size: clamp(30px, 8vw, 42px); line-height: 1.02; margin: 2px 0 6px; }
.prompt-sub { color: var(--drift-2); font-size: 18px; margin: 0; }
.timer { position: relative; height: 30px; display: flex; align-items: center; }
.timer-track { position: absolute; inset: 0; background: rgba(4, 8, 4, 0.6); box-shadow: inset 0 0 0 3px var(--hairline); overflow: hidden; }
.timer-fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 15px); transform-origin: left; }
.timer.is-low .timer-fill { background: repeating-linear-gradient(90deg, var(--pink) 0 12px, transparent 12px 15px); }
.timer-num { position: relative; width: 100%; text-align: center; font-size: 24px; letter-spacing: 0.08em; text-shadow: 2px 2px 0 #000; }
.answer-form { display: flex; gap: 10px; }
.answer-input { flex: 1; min-width: 0; font-size: 30px !important; min-height: 54px; }
.btn-go { min-width: 70px; font-size: 24px; }
.shake { animation: shake 0.32s steps(5); }
.round-status { min-height: 1.4em; margin: 0; text-align: center; font-size: 22px; color: var(--drift); }
.assist { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.assist-label { width: 100%; text-align: center; margin: 0; font-size: 20px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.pill { display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; padding: 6px 14px; margin: var(--pw); background: rgba(255, 209, 102, 0.1); color: var(--foam); font-size: 22px; border: 0; box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold); }
.pill-meta, .kbd { font-size: 16px; color: var(--drift); }
.row-end { display: flex; justify-content: center; }
.krill-svg { display: block; width: 100%; height: auto; }
.krill-hero { width: min(180px, 50vw); margin: 4px auto 8px; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.45)); }
.krill-hero.small { width: 120px; }
.rules { text-align: left; max-width: 28em; margin: 10px auto 18px; padding-left: 1.2em; color: var(--drift); }
.rules li { margin: 6px 0; }
.rules li::marker { content: "▸ "; color: var(--gold); }
.results { text-align: center; }
.final-score { font-size: 80px; line-height: 0.9; margin: 6px 0 2px; }
.score-max { font-size: 0.5em; color: var(--drift-2); }
.band { font-size: 30px; color: var(--tc); margin: 0; letter-spacing: 0.08em; text-transform: uppercase; }
.verdict-line { color: var(--drift); margin: 2px 0 8px; }
.result-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }
.caucus-players { list-style: none; padding: 0; margin: 10px auto; max-width: 340px; display: grid; gap: 10px; }
.caucus-players li { display: flex; gap: 6px; align-items: center; }
.caucus-name, .caucus-select { flex: 1; min-width: 0; }
.caucus-opts { display: flex; gap: 8px; max-width: 360px; margin: 14px auto; }
.caucus-opts > * { min-width: 0; }
.pass-to { color: var(--drift); margin: 12px 0 0; }
.standings { list-style: none; padding: 0; margin: 14px auto; max-width: 320px; display: grid; gap: 6px; }
.standings li { display: flex; justify-content: space-between; padding: 4px 10px; background: rgba(4, 8, 4, 0.5); font-size: 26px; }
.standings li:first-child { box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold); }
.caucus-said { list-style: none; padding: 0; display: grid; gap: 6px; }
.caucus-said li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--drift); }
.caucus-said b { color: var(--foam); font-weight: 400; }
.rr-gem { color: var(--drift); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rr-gem img { height: 10px; width: auto; }
.rr-gem b { color: var(--t-k); font-weight: 400; }

/* ---------- archive, packs, stats ---------- */
.arch-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.arch-row { display: grid; grid-template-columns: 54px 120px 1fr 50px; gap: 8px; align-items: center; padding: 6px 10px; margin: var(--pw); color: var(--foam); text-decoration: none; background: rgba(4, 8, 4, 0.5); }
.arch-n, .arch-score { font-size: 24px; }
.arch-score { text-align: right; }
.arch-date { font-size: 19px; color: var(--drift); }
.arch-icons { display: flex; gap: 4px; align-items: center; }
.arch-icons img { height: 14px; width: auto; }
.arch-icons .miss-box { width: 12px; height: 12px; }
.dim { color: var(--drift-2); font-size: 17px; letter-spacing: 0; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.pack-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin: var(--pw); text-decoration: none; color: var(--foam); background: rgba(4, 8, 4, 0.55); }
.pack-card b { font-weight: 400; font-size: 28px; line-height: 1; }
.pack-icon img { height: 30px; width: auto; }
.pack-blurb { color: var(--drift); font-size: 18px; flex: 1; line-height: 1.1; }
.pack-best { font-size: 18px; color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.stat { background: rgba(4, 8, 4, 0.5); padding: 8px; margin: var(--pw); text-align: center; }
.stat dt { font-size: 17px; color: var(--drift); }
.stat dd { margin: 0; font-size: 40px; line-height: 1; }
.tally { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tally li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 10px; box-shadow: inset var(--pw) 0 0 0 var(--tc); background: rgba(4, 8, 4, 0.45); }
.tally li span { display: flex; align-items: center; gap: 8px; }
.tally img { height: 18px; width: auto; }
.tally b { font-size: 26px; font-weight: 400; }
.wardrobe { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.hat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; margin: var(--pw); cursor: pointer; background: rgba(4, 8, 4, 0.5); color: var(--foam); text-align: center; }
.hat.on { --pb: var(--gold); }
.hat.locked { cursor: not-allowed; opacity: 0.55; }
.hat.locked .hat-img { filter: grayscale(1) brightness(0.6); }
.hat b { font-weight: 400; font-size: 20px; }
.hat span:last-child { font-size: 16px; color: var(--drift); }
.hat-img { width: 100px; }

/* ---------- settings, faq ---------- */
.setting { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; box-shadow: 0 -3px 0 0 rgba(170, 190, 140, 0.12); cursor: pointer; }
.setting b { font-weight: 400; font-size: 23px; }
.setting-desc { display: block; color: var(--drift); font-size: 18px; line-height: 1.1; }
.panel .btn-danger { margin-top: 16px; }
.faq p { color: var(--drift); }
.faq-item { box-shadow: 0 -3px 0 0 rgba(170, 190, 140, 0.12); padding: 4px 0; }
.faq-item summary { cursor: pointer; font-size: 26px; padding: 8px 0; }
.faq-body p { margin: 4px 0 10px; }
.tier-guide { list-style: none; padding: 0; display: grid; gap: 8px; margin: 14px 0; }
.tier-guide li { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "e n p" "e b b"; gap: 0 10px; align-items: center; padding: 6px 10px; box-shadow: inset var(--pw) 0 0 0 var(--tc); background: rgba(4, 8, 4, 0.45); }
.tg-emoji { grid-area: e; justify-self: center; }
.tg-emoji img { height: 24px; width: auto; }
.tier-guide b { grid-area: n; color: var(--tc); font-weight: 400; font-size: 26px; }
.tg-pts { grid-area: p; font-size: 24px; }
.tg-blurb { grid-area: b; font-size: 18px; color: var(--drift); }

#toast {
  --pb: var(--foam);
  position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 70; pointer-events: none;
  background: var(--foam); color: var(--murk); font-size: 24px; padding: 4px 16px;
  opacity: 0; transition: opacity 0.25s steps(3);
}
#toast.on { opacity: 1; }

/* ---------- colorblind and low power ---------- */
.colorblind {
  --drift: #dfe8d2; --drift-2: #bccab0; --t-p: #e2ebf6; --t-c: #ffb36b; --t-s: #8cbcff; --t-r: #ff8080; --t-d: #c2adff; --t-k: #fff176;
}
.low-power .ds-title span, .low-power .ds-begin-btn, .low-power .loading, .low-power .ds-sweep, .low-power .ds-dots i.cur { animation: none !important; }
.low-power .ds-crt { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 480px) {
  body { font-size: 19px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .arch-row { grid-template-columns: 46px 1fr 44px; }
  .arch-icons { grid-column: 1 / -1; grid-row: 2; }
  .ds-mascot { width: 58px; }
  .ds-pod { min-width: 86px; padding: 2px 7px 0; }
  .ds-pod .label { font-size: 13px; letter-spacing: 0.12em; }
  .ds-depth-num, .ds-score-num { font-size: 26px; }
  .ds-dots i { width: 10px; height: 10px; }
  .ds-dots { gap: 5px; }
  .ds-dock-inner { grid-template-columns: 50px 1fr auto; gap: 8px; }
  .ds-sonar-wrap { width: 48px; height: 48px; }
  .ds-dive-btn { padding: 0 10px; font-size: 24px; }
  .ds-amb { font-size: 16px; }
  .ds-done-score .big { font-size: 84px; }
}
@media (max-height: 640px) {
  .ds-howto ul { font-size: 19px; }
  .ds-begin-btn { font-size: 26px; padding: 6px; }
}

/* Hover styles apply only where a pointer can hover because a tap would leave a button lit. */
@media (hover: hover) {
  a:hover { color: var(--foam); }
  .icon-btn:hover { color: var(--accent); }
  .drawer-inner a:hover { color: var(--murk); background: var(--accent); }
  .btn:hover { background: var(--accent); color: var(--murk); }
  .btn-big:hover, .btn-descend:hover { background: var(--accent-2); color: var(--murk); }
  .btn-danger:hover { background: #e98a8a; color: var(--murk); }
  .btn-quiet:hover { color: var(--accent); }
  .ds-begin-btn:hover { background: var(--accent-2); }
  .ds-links a:hover { color: var(--foam); }
  .ds-choice:hover { background: var(--gold); color: var(--murk); }
  .ds-choice:hover span { color: var(--murk); }
  .ds-next-btn:hover { background: var(--accent); color: var(--murk); }
  .ds-yield:hover { color: var(--pink); }
  .pill:hover { background: var(--gold); color: var(--murk); }
  .arch-row:hover { --pb: var(--accent); color: var(--foam); }
  .pack-card:hover { --pb: var(--accent); color: var(--foam); }
}

@media (max-width: 360px) {
  .ds-pod { min-width: 76px; }
  .ds-pod .label { font-size: 12px; letter-spacing: 0.06em; }
  .ds-dots { gap: 3px; }
  .ds-dots i { width: 9px; height: 9px; }
}
/* Landscape phones: everything shrinks to fit about 390px of height. */
@media (max-height: 500px) {
  .top { padding-top: max(0px, var(--safe-top)); }
  .icon-btn { width: 38px; height: 38px; }
  .top-title { font-size: 22px; }
  .ds-hud { top: calc(38px + var(--safe-top)); }
  .ds-pod { padding: 1px 8px 0; }
  .ds-pod .label { font-size: 12px; }
  .ds-depth-num, .ds-score-num { font-size: 22px; }
  .ds-card { padding: 6px 14px 8px; }
  .ds-card .rnd { font-size: 14px; }
  .ds-card .prompt { font-size: 26px; }
  .ds-dock { min-height: 56px; padding: 5px 8px; bottom: calc(8px + var(--safe-bottom)); }
  .ds-sonar-wrap { width: 40px; height: 40px; }
  .ds-time-digits { font-size: 24px; }
  .ds-dock-inner { grid-template-columns: 44px 1fr auto; }
  .ds-input { font-size: 24px; }
  .ds-fuse { height: 6px; margin-top: 4px; }
  .ds-dive-btn { height: 38px; font-size: 22px; }
  .ds-landed { padding: 6px 12px; }
  .ds-landed .icon { height: 24px; }
  .ds-landed .tname { font-size: 20px; }
  .ds-landed .tans { font-size: 22px; }
  .ds-landed .tpts { font-size: 22px; }
  .ds-next-btn { font-size: 24px; padding: 4px 20px; }
  .ds-next-wrap { bottom: calc(10px + var(--safe-bottom)); }
  .ds-intro { padding: 20px 16px calc(8px + var(--safe-bottom)); }
  .ds-intro-inner { gap: 6px; }
  .ds-begin-btn { font-size: 24px; padding: 4px; }
  .ds-howto ul { font-size: 17px; }
  .ds-title { font-size: 52px; }
  .ds-mascot { width: 52px; }
  .ds-done { padding-top: calc(44px + var(--safe-top)); }
}
