@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --night: #121b24;
  --edge: #0b1118;
  --panel: #1f2d3a;
  --panel-2: #26384a;
  --panel-3: #2c4152;
  --line: #3a4a58;
  --line-2: #4f6b74;
  --cream: #f1e6c8;
  --muted: #a3b0b0;
  --dim: #8495a0;
  --input: #2a3d47;
  --yellow: #f5cd6a;
  --yellow-hi: #ffe08f;
  --yellow-edge: #c99a3a;
  --red: #ff9b85;
  --pixel: "Silkscreen", "Courier New", monospace;
  --body: "Pixelify Sans", "Trebuchet MS", system-ui, sans-serif;
  --float-color: #e0533f;
  --rod-color: #a66c45;
  --bevel: inset 0 3px 0 #ffffff12, inset 0 -3px 0 #00000033;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font: 18px/1.45 var(--body);
  font-synthesis: none;
  color: var(--cream);
  background-color: var(--night);
  background-image:
    radial-gradient(#f1e6c81c 1px, transparent 1.5px),
    radial-gradient(#f1e6c80f 1px, transparent 1.5px),
    linear-gradient(180deg, #172433 0%, var(--night) 520px);
  background-size: 96px 96px, 56px 56px, auto;
  background-position: 12px 20px, 40px 4px, 0 0;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; image-rendering: pixelated; }
svg:not(.icons) { width: 18px; height: 18px; fill: currentColor; stroke: none; shape-rendering: crispEdges; flex: 0 0 auto; }
.icons, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; }
.topbar-note { font: 14px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.navigation, .footer-links { display: flex; align-items: center; gap: 10px; }
.nav-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 3px solid var(--line); background: var(--panel); font: 14px/1 var(--pixel); text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 0 var(--edge); transition: transform .06s, background-color .12s; }
.nav-action:hover { background: var(--panel-2); }
.nav-action:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.streak-action { min-width: 64px; justify-content: center; }
.streak-action svg { color: #ff8a5c; }
.streak-number { font-size: 18px; }

main { flex: 1; padding-bottom: 48px; }

/* Console */
.console { border: 4px solid var(--edge); background: var(--panel); box-shadow: 0 0 0 4px var(--line), 0 14px 0 4px var(--edge), 0 30px 60px #00000080; }
.hud { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 20px; background: var(--panel); border-bottom: 4px solid var(--edge); box-shadow: var(--bevel); }
.hud-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.hud-brand img { width: 52px; height: 52px; }
.hud-brand span { font: 400 44px/1 var(--pixel); text-transform: uppercase; color: var(--cream); text-shadow: 3px 3px 0 var(--edge); }
.hud-mid { display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.hud-label { font: 20px/1.1 var(--pixel); text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hud-clock { align-items: center; gap: 12px; padding-left: 20px; border-left: 4px solid var(--line); min-height: 56px; }
.hud-clock > svg { width: 27px; height: 27px; color: var(--muted); }
.hud-clock div { justify-items: start; }
.clock-label { font: 14px/1 var(--pixel); text-transform: uppercase; color: var(--dim); }
.hud-clock strong { font: 400 44px/1 var(--pixel); color: var(--cream); font-variant-numeric: tabular-nums; text-shadow: 3px 3px 0 var(--edge); }
#midnight { font-size: 30px; }
.round-banner.urgent #timer { color: #ff7a63; animation: blink .5s steps(2) infinite; }

/* Which HUD parts show on which screen */
.for-dock, .for-game, .for-review, .for-results { display: none !important; }
body[data-scene="dock"] .for-dock, body[data-scene="game"] .for-game,
body[data-scene="review"] .for-review, body[data-scene="results"] .for-results { display: block !important; }
body[data-scene="dock"] .hud-clock.for-dock, body[data-scene="game"] .hud-clock.for-game { display: flex !important; }
body[data-scene="dock"] .hud-clock div.for-dock, body[data-scene="game"] .hud-clock div.for-game { display: grid !important; }
body[data-scene="game"] .round-track.for-game, body[data-scene="review"] .round-track.for-review { display: flex !important; }
body:not([data-scene="dock"]) .extras { display: none; }
body:not([data-scene="game"]) .round-tag, body:not([data-scene="game"]) .round-twist { display: none; }

/* Round dots */
.round-track { gap: 12px; align-items: center; justify-content: center; }
.track-node { width: 16px; height: 16px; background: #3d5560; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.track-node.special { background: #a283d6; }
.track-node.current { background: var(--yellow); animation: blink 1s steps(2) infinite; }
.track-node.done { background: var(--tier-solid, #5e7a80); animation: none; }

.timer-rail { height: 14px; background: var(--edge); border-bottom: 4px solid var(--edge); }
#timer-fill { height: 100%; background: repeating-linear-gradient(90deg, #6fbf8a 0 12px, #4f9d6c 12px 14px); transform-origin: left; }
.round-banner.urgent #timer-fill { background: repeating-linear-gradient(90deg, #ff7a63 0 12px, #c94a36 12px 14px); }

/* Stage */
.stage { position: relative; aspect-ratio: var(--stage-ratio, 256 / 88); background: #2f3f57; border-bottom: 4px solid var(--edge); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.stage-label { position: absolute; left: var(--basket-x, 84%); top: var(--basket-y, 70%); transform: translate(-50%, -100%); font: 22px/1 var(--pixel); text-transform: uppercase; color: var(--cream); text-shadow: 2px 2px 0 var(--edge), -2px 0 0 var(--edge), 0 -2px 0 var(--edge); pointer-events: none; white-space: nowrap; }
.round-tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; font: 400 16px/1 var(--pixel); text-transform: uppercase; color: #2a1d05; background: var(--yellow); box-shadow: 0 0 0 3px var(--edge), 0 6px 0 3px var(--edge); }
.round-twist { position: absolute; top: 14px; right: 14px; max-width: 60%; padding: 6px 10px; font: 16px/1.2 var(--pixel); text-transform: uppercase; color: var(--yellow-hi); background: #121b24d9; box-shadow: 0 0 0 3px var(--edge); }
.stage-ready { display: none; position: absolute; inset: 0; place-items: center; font: 400 clamp(26px, 6vw, 56px)/1 var(--pixel); text-transform: uppercase; color: var(--yellow); text-shadow: 4px 4px 0 var(--edge); background: #0b111840; animation: blink .8s steps(2) infinite; }
.round-banner.waiting .stage-ready { display: grid; }

/* Panels */
.panel { padding: 18px 22px 20px; background: var(--panel); box-shadow: var(--bevel); }
.dock-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; }
.dock-copy h1 { font: 400 28px/1.15 var(--pixel); text-transform: uppercase; color: var(--cream); }
.dock-copy p { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.dock-actions { display: grid; justify-items: center; gap: 12px; }
.dock-note { font-size: 16px; color: var(--muted); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px; font: 400 18px/1 var(--pixel); text-transform: uppercase; border: 3px solid var(--edge); border-radius: 6px; text-decoration: none; transition: transform .06s, background-color .12s; }
.button:disabled { opacity: .5; }
.button.primary { background: var(--yellow); color: #1f2d3a; border-color: var(--yellow-edge); box-shadow: inset 0 3px 0 var(--yellow-hi), inset 0 -4px 0 #d9aa47, 0 0 0 3px var(--edge), 0 6px 0 3px var(--edge); }
.button.primary:hover:not(:disabled) { background: var(--yellow-hi); }
.button.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 3px 0 var(--yellow-hi), inset 0 -4px 0 #d9aa47, 0 0 0 3px var(--edge), 0 2px 0 3px var(--edge); }
.button.primary svg { width: 22px; height: 22px; }
.button.secondary { background: var(--input); border-color: var(--line-2); color: var(--cream); box-shadow: 0 0 0 3px var(--edge), 0 6px 0 3px var(--edge); }
.button.secondary:hover:not(:disabled) { background: var(--panel-3); }
.button.secondary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 3px var(--edge), 0 2px 0 3px var(--edge); }
.button.text-button { white-space: nowrap; min-height: 44px; padding: 8px 10px; font-size: 16px; border: 0; background: transparent; color: var(--muted); }
.button.text-button:hover:not(:disabled) { color: var(--cream); background: var(--panel-2); }
.cast-button { min-height: 64px; padding: 12px 26px; font-size: 24px; }
.cast-button svg { width: 27px !important; height: 27px !important; }

/* Game panel */
.prompt-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.prompt-text { min-width: 0; }
.category { font: 14px/1.2 var(--pixel); text-transform: uppercase; color: var(--yellow); margin-bottom: 6px; }
.prompt-text h2 { font: 26px/1.2 var(--pixel); text-transform: uppercase; color: var(--cream); text-wrap: balance; }
.prompt-text h2:focus { outline: none; }
.round-weight { flex: 0 0 auto; }
.round-weight strong { font: 26px/1 var(--pixel); color: var(--muted); white-space: nowrap; }
.round-weight small { font-size: inherit; text-transform: uppercase; }
#guess-form { display: flex; gap: 18px; align-items: stretch; }
input[type="text"], input[type="search"], textarea { min-height: 56px; padding: 10px 16px; border: 3px solid var(--line-2); border-radius: 6px; background: var(--input); color: var(--cream); caret-color: var(--yellow); box-shadow: inset 0 4px 0 #00000033; }
input[type="text"]:focus, input[type="search"]:focus, textarea:focus { outline: none; border-color: var(--yellow); }
input::placeholder { color: #7f9194; }
#guess { flex: 1; min-width: 0; min-height: 64px; font: 26px/1 var(--pixel); text-transform: uppercase; }
#guess:disabled { opacity: .6; }
#catch { min-width: 170px; min-height: 64px; font-size: 26px; }
.feedback { min-height: 56px; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 18px; overflow-wrap: anywhere; }
.feedback.flash > * { animation: pop .25s steps(3); }
.feedback[data-kind="caught"] { width: fit-content; max-width: 100%; flex-wrap: nowrap; padding: 4px 14px 4px 4px; color: var(--cream); background: color-mix(in srgb, var(--tier-solid) 24%, var(--panel)); box-shadow: 0 0 0 3px var(--tier-solid), 0 0 0 6px var(--edge); }
.feedback[data-kind="caught"] b { color: var(--yellow-hi); font-weight: 700; }
.feedback-art { width: 60px; height: auto; flex: 0 0 auto; }
.feedback[data-kind="miss"], .feedback[data-kind="error"] { color: var(--red); }
.feedback[data-kind="duplicate"] { color: var(--yellow-hi); }
.suggestion { min-height: 40px; padding: 6px 12px; border: 3px solid var(--yellow-edge); border-radius: 4px; background: var(--yellow); color: #1f2d3a; font: 400 16px/1 var(--pixel); text-transform: uppercase; box-shadow: 0 4px 0 var(--edge); }
.answer-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--muted); }
.key-hint { font-size: 16px; }
kbd { display: inline-block; padding: 2px 8px; font: 14px/1.3 var(--pixel); text-transform: uppercase; color: var(--cream); background: var(--input); border: 2px solid var(--line-2); border-bottom-width: 4px; border-radius: 3px; }

/* Livewell list */
.livewell { margin-top: 14px; padding-top: 14px; border-top: 4px dashed var(--line); }
.well-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.well-head h3 { font: 400 20px/1 var(--pixel); text-transform: uppercase; }
#catch-count { margin-left: auto; font: 14px/1 var(--pixel); text-transform: uppercase; color: var(--muted); }
.well-empty { color: var(--dim); font-size: 16px; }
.fish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; max-height: 300px; overflow: auto; }
.fish-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: var(--panel-2); box-shadow: inset 0 0 0 3px var(--edge); overflow-wrap: anywhere; }
.fish-row.fresh { animation: drop .35s steps(4); }
.fish-name { display: grid; line-height: 1.2; font-size: 17px; }
.fish-row small { font: 14px/1.3 var(--pixel); text-transform: uppercase; color: var(--tier-solid); }
.fish-row strong { font: 16px/1 var(--pixel); white-space: nowrap; }
.fish-mark { display: grid; place-items: center; width: 64px; height: 44px; background: color-mix(in srgb, var(--tier-solid) 22%, var(--panel)); box-shadow: inset 0 0 0 3px var(--edge); }
.fish-mark img { width: 50px; height: auto; }

/* Summary panels */
.summary { text-align: center; padding-block: 26px 28px; }
.summary .eyebrow { font: 16px/1.2 var(--pixel); text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.summary h2 { font: 400 34px/1.1 var(--pixel); text-transform: uppercase; color: var(--cream); text-shadow: 3px 3px 0 var(--edge); }
.summary h2:focus { outline: none; }
.score { margin: 14px 0 8px; font: 400 clamp(56px, 10vw, 88px)/1 var(--pixel); color: var(--yellow); text-shadow: 5px 5px 0 var(--edge); font-variant-numeric: tabular-nums; }
.score small { font-size: 28px; color: var(--muted); text-transform: uppercase; text-shadow: 3px 3px 0 var(--edge); }
.subtle, .inline-note { color: var(--muted); font-size: 17px; }
.inline-note { margin-top: 12px; }
.inline-note:empty { display: none; }
.summary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.feature-fish { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; margin: 20px auto 0; padding: 10px 20px 10px 10px; text-align: left; background: color-mix(in srgb, var(--tier-solid) 18%, var(--panel)); box-shadow: 0 0 0 3px var(--tier-solid), 0 0 0 6px var(--edge); }
.feature-art { flex: 0 0 auto; display: grid; place-items: center; width: 112px; height: 76px; background: var(--edge); }
.feature-art img { width: 96px; height: auto; animation: hover 1.2s steps(2) infinite; }
.feature-text { display: grid; gap: 4px; min-width: 0; }
.feature-text small { font: 14px/1 var(--pixel); text-transform: uppercase; color: var(--tier-solid); }
.feature-text strong { font: 400 22px/1.15 var(--pixel); text-transform: uppercase; overflow-wrap: anywhere; }
.feature-text > span { font-size: 16px; color: var(--muted); }
.round-scores { max-width: 620px; margin: 26px auto 0; padding: 0; list-style: none; text-align: left; }
.round-scores li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 56px 84px; align-items: center; gap: 12px; padding: 8px 4px; border-top: 3px dashed var(--line); font-size: 17px; }
.round-scores li:last-child { border-bottom: 3px dashed var(--line); }
.score-num { display: grid; place-items: center; width: 30px; height: 30px; font: 400 16px/1 var(--pixel); color: #1f2d3a; background: var(--tier-solid, #5e7a80); }
.score-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.score-label em { padding: 2px 6px; font: 400 14px/1 var(--pixel); font-style: normal; color: #2a1d05; background: var(--yellow); }
.score-art { width: 52px; height: auto; justify-self: center; }
.round-scores strong { font: 16px/1 var(--pixel); text-align: right; white-space: nowrap; }
.results-card > .text-button { margin-top: 14px; }

/* Tier tokens (match the share emoji: green, blue, yellow, orange, purple) */
[data-tier="0"] { --tier-solid: #6fbf8a; }
[data-tier="1"] { --tier-solid: #79acc9; }
[data-tier="2"] { --tier-solid: #f1c058; }
[data-tier="3"] { --tier-solid: #ec8a4a; }
[data-tier="4"] { --tier-solid: #a283d6; }

/* Home extras */
.extras { margin-top: 44px; }
.rules-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rules-strip > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); box-shadow: 0 0 0 3px var(--line), 0 0 0 7px var(--edge); }
.rule-num { min-width: 54px; font: 400 30px/1 var(--pixel); color: var(--yellow); text-shadow: 3px 3px 0 var(--edge); }
.rules-strip p { display: grid; gap: 2px; }
.rules-strip strong { font: 16px/1.2 var(--pixel); text-transform: uppercase; }
.rules-strip p span { font-size: 16px; color: var(--muted); }
.depth { margin-top: 48px; }
.depth h2 { font: 400 26px/1.25 var(--pixel); text-transform: uppercase; margin-bottom: 20px; text-shadow: 3px 3px 0 var(--edge); }
.depth-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border: 4px solid var(--edge); box-shadow: 0 0 0 4px var(--line); }
.depth-list li { display: flex; flex-direction: column; gap: 6px; min-height: 240px; padding: 16px 14px 18px; }
.depth-list li + li { border-left: 4px solid var(--edge); }
.depth-list li:nth-child(1) { background: #4f7276; }
.depth-list li:nth-child(2) { background: #3a5d63; }
.depth-list li:nth-child(3) { background: #2b4a52; }
.depth-list li:nth-child(4) { background: #1f3842; }
.depth-list li:nth-child(5) { background: #142630; }
.depth-zone { font: 14px/1.2 var(--pixel); text-transform: uppercase; color: #d2e0db; }
.depth-list img { width: 100px; height: auto; margin: 14px 0 10px; }
.depth-list li:hover img { animation: hover .6s steps(2) infinite; }
.depth-list strong { font: 400 20px/1.1 var(--pixel); text-transform: uppercase; color: var(--tier-solid); text-shadow: 2px 2px 0 var(--edge); }
.depth-desc { font-size: 16px; color: #e0eae6; }
.depth-list b { margin-top: auto; padding-top: 10px; font: 18px/1 var(--pixel); color: var(--cream); }

/* FAQ (crawlable copy) */
.faq { margin-top: 48px; }
.faq h2 { font: 400 26px/1.25 var(--pixel); text-transform: uppercase; margin-bottom: 20px; text-shadow: 3px 3px 0 var(--edge); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.faq details { background: var(--panel); box-shadow: 0 0 0 3px var(--line), 0 0 0 7px var(--edge); }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none; font: 16px/1.3 var(--pixel); text-transform: uppercase; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 22px; color: var(--yellow); font-size: 20px; }
.faq details[open] summary::before { content: "-"; }
.faq summary:hover { color: var(--yellow); }
.faq summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.faq details p { padding: 0 16px 16px 50px; font-size: 17px; color: var(--muted); }
.h1-kicker { display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: .04em; color: var(--yellow); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; border-top: 4px solid var(--panel); color: var(--dim); font-size: 16px; }
.footer-link { min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--muted); font: 14px/1 var(--pixel); text-transform: uppercase; white-space: nowrap; }
a.footer-link { display: inline-flex; align-items: center; text-decoration: none; }
.footer-link:hover { color: var(--cream); }
.sound { display: flex; align-items: center; gap: 8px; }

/* Dialog */
.dialog { width: min(700px, calc(100% - 28px)); max-height: min(86svh, 780px); padding: 0; border: 4px solid var(--edge); border-radius: 0; background: var(--panel); color: var(--cream); box-shadow: 0 0 0 4px var(--line), 0 16px 0 4px var(--edge); }
.dialog[open] { animation: pop .2s steps(3); }
.dialog::backdrop { background: #070b10cc; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; background: var(--panel); border-bottom: 4px solid var(--edge); }
.dialog h2 { font: 400 28px/1.1 var(--pixel); text-transform: uppercase; text-shadow: 3px 3px 0 var(--edge); }
.dialog h2:focus { outline: none; }
.dialog h3 { font: 400 18px/1.2 var(--pixel); text-transform: uppercase; color: var(--yellow); margin-top: 8px; }
.close-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 3px solid var(--line-2); background: var(--input); box-shadow: 0 4px 0 var(--edge); }
.close-button:hover { background: var(--panel-3); }
.dialog-content { display: grid; gap: 14px; padding: 18px 20px 24px; }
.dialog-content p { color: var(--muted); }
.guide-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.guide-list li { position: relative; padding-left: 46px; color: var(--muted); counter-increment: step; }
.guide-list li strong { color: var(--cream); }
.guide-list li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; font: 400 16px/1 var(--pixel); color: #1f2d3a; background: var(--yellow); box-shadow: 0 3px 0 var(--edge); }
.tier-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tier-pill { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; text-align: center; font-size: 16px; background: var(--panel-2); box-shadow: inset 0 0 0 3px var(--tier-solid); }
.tier-pill strong { font: 14px/1.2 var(--pixel); text-transform: uppercase; color: var(--tier-solid); }
.tier-art { width: 64px; height: auto; margin-bottom: 4px; }
.archive-list, .answer-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.archive-entry { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; border: 3px solid var(--line-2); background: var(--input); box-shadow: 0 4px 0 var(--edge); }
.archive-entry:hover { background: var(--panel-3); }
.archive-entry strong, .archive-entry small { display: block; }
.archive-entry strong { font: 400 16px/1.2 var(--pixel); text-transform: uppercase; }
.archive-entry small { margin-top: 4px; font-size: 16px; color: var(--muted); }
.answer-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.answer-tab { min-height: 42px; padding: 6px 12px; border: 3px solid var(--line-2); background: var(--input); font: 14px/1 var(--pixel); text-transform: uppercase; box-shadow: 0 3px 0 var(--edge); }
.answer-tab[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow-edge); color: #1f2d3a; }
.answer-search { width: 100%; font-size: 18px; }
.answer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; background: var(--panel-2); box-shadow: inset 4px 0 0 var(--tier-solid); }
.answer-row span span { display: block; font: 14px/1.3 var(--pixel); text-transform: uppercase; color: var(--tier-solid); }
.answer-row strong { font: 14px/1 var(--pixel); white-space: nowrap; }
.rack-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rack-stats div { display: grid; gap: 4px; padding: 12px 6px; text-align: center; background: var(--edge); }
.rack-stats strong { font: 400 24px/1 var(--pixel); color: var(--yellow); }
.rack-stats span { font: 14px/1.2 var(--pixel); text-transform: uppercase; color: var(--muted); }
.gear-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gear { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 8px; text-align: left; border: 3px solid var(--line-2); background: var(--input); box-shadow: 0 4px 0 var(--edge); }
.gear strong { font: 400 15px/1.2 var(--pixel); text-transform: uppercase; }
.gear small { display: block; font-size: 15px; color: var(--muted); }
.gear:hover:not(:disabled) { background: var(--panel-3); }
.gear[aria-pressed="true"] { border-color: var(--yellow); background: var(--panel-3); }
.gear:disabled { opacity: .5; }
.gear:disabled .gear-swatch { filter: grayscale(1); }
.gear-swatch { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; color: var(--swatch); background: var(--edge); }
.gear-swatch svg { width: 27px; height: 27px; }
.share-box { width: 100%; min-height: 150px; resize: vertical; font: 18px/1.4 var(--body); }
.missing { padding-top: 12vh; }
.missing .summary { box-shadow: 0 0 0 4px var(--edge), 0 0 0 8px var(--line); }
.missing p { margin-top: 10px; color: var(--muted); }
.missing-fish { width: 120px; margin: 0 auto 18px; }
.missing .button { margin-top: 22px; }

@keyframes blink { 50% { opacity: .45; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }
@keyframes hover { 50% { transform: translateY(-3px); } }

@media (max-width: 820px) {
  .hud-brand span { font-size: 32px; }
  .hud-clock strong { font-size: 34px; }
  #midnight { font-size: 24px; }
  .depth-list li { padding-inline: 10px; }
  .depth-list img { width: 80px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { min-height: 64px; }
  .navigation { gap: 8px; }
  .nav-action { padding-inline: 10px; }
  .navigation .nav-action span:not(.streak-number) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hud { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand clock" "mid mid"; gap: 8px 12px; padding: 10px 12px; }
  .hud-brand { grid-area: brand; gap: 10px; }
  .hud-brand img { width: 36px; height: 36px; }
  .hud-brand span { font-size: 26px; }
  .hud-clock { grid-area: clock; justify-self: end; min-height: 44px; padding-left: 12px; border-left-width: 3px; gap: 8px; }
  .hud-clock > svg { width: 18px; height: 18px; }
  .hud-clock strong { font-size: 28px; }
  #midnight { font-size: 20px; }
  .hud-mid { grid-area: mid; grid-auto-flow: column; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 3px solid var(--line); }
  .hud-label { font-size: 16px; }
  .stage-label { font-size: 14px; left: auto; right: 6px; transform: translateY(-100%); }
  .key-hint { display: none; }
  .answer-actions { justify-content: flex-end; }
  #catch svg { display: none; }
  .round-tag { top: 8px; left: 8px; font-size: 14px; padding: 4px 6px; }
  .round-twist { top: auto; bottom: 8px; right: 8px; font-size: 14px; }
  .panel { padding: 14px 14px 16px; }
  .dock-panel { grid-template-columns: 1fr; }
  .dock-copy h1 { font-size: 22px; }
  .dock-copy p { font-size: 17px; }
  .dock-actions { justify-items: stretch; text-align: center; }
  .cast-button { width: 100%; font-size: 22px; }
  .prompt-row { margin-bottom: 10px; }
  .prompt-text h2 { font-size: 19px; }
  .round-weight strong { font-size: 18px; }
  #guess-form { gap: 12px; }
  #guess { min-height: 56px; font-size: 17px; padding-inline: 12px; }
  #catch { min-width: 0; min-height: 56px; padding-inline: 14px; font-size: 20px; }
  .feedback { margin-top: 10px; min-height: 52px; font-size: 16px; }
  .feedback-art { width: 48px; }
  .fish-list { grid-template-columns: 1fr; max-height: 260px; }
  .summary h2 { font-size: 26px; }
  .score small { font-size: 22px; }
  .feature-fish { display: flex; }
  .feature-art { width: 88px; height: 62px; }
  .feature-art img { width: 72px; }
  .round-scores li { grid-template-columns: 30px minmax(0, 1fr) 44px 70px; gap: 8px; font-size: 16px; }
  .score-art { width: 42px; }
  .rules-strip { grid-template-columns: 1fr; gap: 18px; }
  .extras { margin-top: 34px; }
  .depth h2 { font-size: 20px; }
  .faq h2 { font-size: 20px; }
  .faq-list { grid-template-columns: 1fr; gap: 18px; }
  .faq details p { padding-left: 16px; }
  .depth-list { grid-template-columns: 1fr; }
  .depth-list li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "art zone weight" "art name weight" "art desc weight"; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 0; padding: 12px 14px; }
  .depth-list li + li { border-left: 0; border-top: 4px solid var(--edge); }
  .depth-list img { grid-area: art; width: 80px; margin: 0; }
  .depth-zone { grid-area: zone; }
  .depth-list strong { grid-area: name; }
  .depth-desc { grid-area: desc; }
  .depth-list b { grid-area: weight; margin: 0; padding: 0; }
  .tier-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 0 6px; }
  .footer-links { margin-left: -10px; }
}
@media (max-width: 380px) {
  .hud-brand span { font-size: 22px; }
  .gear-list { grid-template-columns: 1fr; }
  #catch svg { display: none; }
  .dialog-head, .dialog-content { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
