/* Typed pilot: shared engine, two stages. No ocean, no matching board. */
:root {
  --pilot-bg: #05070c;
  --pilot-panel: #0a0d14;
  --pilot-panel-2: #10141d;
  --pilot-line: #263040;
  --pilot-ink: #edf3f7;
  --pilot-muted: #93a1b5;
  --pilot-accent: #ffd166;
  --pilot-accent-2: #ff7b9c;
  --pilot-good: #8ce99a;
  --pilot-bad: #ff6b6b;
  --tier-plankton: #8fa3c4;
  --tier-tooclever: #ff9f43;
  --tier-schooler: #4de3ff;
  --tier-rare: #ff7bac;
  --tier-deepcut: #9d7bff;
  --tier-krillion: #ffd166;
  --tier-miss: #3d4f6e;
}
body[data-theme="football"] {
  --pilot-bg: #040b07;
  --pilot-panel: #08130d;
  --pilot-panel-2: #0d1c13;
  --pilot-line: #274333;
  --pilot-accent: #b6ff5c;
  --pilot-accent-2: #78d7ff;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--pilot-bg); color: var(--pilot-ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: radial-gradient(ellipse at 65% 0%, #183049 0%, transparent 55%), linear-gradient(180deg, #05070c, #03040a); }
body[data-theme="football"]::before { background: radial-gradient(ellipse at 65% 0%, #14351f 0%, transparent 55%), linear-gradient(180deg, #040b07, #020604); }
#pilot-scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.pilot-vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 42%, #000b 100%); }
.pilot-grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
.pilot-topbar { position: relative; z-index: 5; }
.pilot-topbar .brand-name { letter-spacing: .08em; }
.pilot-topbar .iconbtn { text-decoration: none; font-size: 18px; }
.pilot-app { position: relative; z-index: 2; width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: clamp(22px, 4vh, 48px) 0 32px; }
.pilot-screen { display: none; }
.pilot-screen.active { display: block; animation: pilot-in .28s ease-out; }
@keyframes pilot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 10px; color: var(--pilot-accent); font: 600 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .2em; text-transform: uppercase; }
.pilot-hero { text-align: center; margin: 2vh 0 24px; }
.pilot-title { margin: 0; font-family: VT323, "IBM Plex Mono", monospace; font-weight: 400; font-size: clamp(64px, 12vw, 132px); line-height: .78; letter-spacing: .06em; text-shadow: 0 0 28px #ffd16633; }
.pilot-title span { display: block; }
.pilot-title span:first-child { color: var(--pilot-ink); }
.pilot-title span:last-child { color: var(--pilot-accent); }
body[data-theme="football"] .pilot-title { text-shadow: 0 0 28px #b6ff5c33; }
.pilot-tagline { margin: 18px auto 0; color: var(--pilot-ink); font-size: clamp(11px, 1.5vw, 14px); letter-spacing: .18em; }
.pilot-lede { max-width: 620px; margin: 14px auto 0; color: var(--pilot-muted); font-size: 14px; line-height: 1.7; }
.pilot-console { max-width: 700px; margin: 0 auto; border: 1px solid var(--pilot-line); background: #080c13e8; box-shadow: 0 24px 80px #0009; }
body[data-theme="football"] .pilot-console { background: #06110ae8; }
.pilot-console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pilot-line); color: var(--pilot-muted); font-size: 10px; letter-spacing: .14em; }
.pilot-led { width: 8px; height: 8px; background: var(--pilot-accent); box-shadow: 0 0 12px var(--pilot-accent); }
.pilot-stats { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 18px 12px 16px; border-bottom: 1px solid var(--pilot-line); }
.pilot-stats li { text-align: center; border-right: 1px solid var(--pilot-line); }
.pilot-stats li:last-child { border-right: 0; }
.pilot-stats b { display: block; font-family: VT323, monospace; font-size: 34px; font-weight: 400; color: var(--pilot-ink); }
.pilot-stats span { color: var(--pilot-muted); font-size: 9px; letter-spacing: .18em; }
.pilot-primary, .pilot-secondary, .pilot-prop, .pilot-pass {
  border: 1px solid var(--pilot-accent); background: var(--pilot-accent); color: #081014;
  font: 700 15px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; cursor: pointer;
  min-height: 52px; padding: 0 20px; transition: transform .12s, filter .12s;
}
.pilot-primary:hover, .pilot-prop:hover, .pilot-secondary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pilot-primary:active, .pilot-prop:active { transform: translateY(1px); }
.pilot-secondary { background: transparent; color: var(--pilot-accent); border-color: var(--pilot-line); }
#pilot-start { display: block; width: calc(100% - 28px); margin: 16px 14px; font-size: 17px; }
.pilot-note { margin: 0 18px; color: var(--pilot-muted); font-size: 12px; line-height: 1.6; }
.pilot-rail { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px; padding-top: 14px; border-top: 1px solid var(--pilot-line); color: var(--pilot-muted); font-size: 10px; letter-spacing: .08em; }
.pilot-rail b { color: var(--pilot-ink); }
.pilot-fine { margin: 0 18px 18px; color: #6f7f93; font-size: 10px; }
.pilot-fine a { color: var(--pilot-accent); }
.pilot-notice { margin: 20px; color: var(--pilot-bad); }
.pilot-round-head { display: flex; align-items: end; gap: 22px; justify-content: space-between; margin-bottom: 18px; }
.pilot-strip { display: flex; gap: 6px; flex: 1; }
.pilot-frame { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--pilot-line); position: relative; background: #090d14; }
.pilot-frame.done { border-color: var(--frame, var(--pilot-accent)); background: color-mix(in srgb, var(--frame, var(--pilot-accent)) 18%, #090d14); }
.pilot-frame.current { outline: 1px solid var(--pilot-accent); outline-offset: 2px; }
.pilot-frame span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: var(--pilot-muted); }
.pilot-frame.done span { color: var(--frame, var(--pilot-accent)); }
.pilot-round-meta { display: flex; align-items: baseline; gap: 16px; white-space: nowrap; color: var(--pilot-muted); font-size: 11px; letter-spacing: .1em; background: #05070ccc; border: 1px solid var(--pilot-line); padding: 6px 10px; }
.pilot-score b { color: var(--pilot-ink); font-family: VT323, monospace; font-size: 34px; font-weight: 400; }
.pilot-score small { color: var(--pilot-muted); }
.pilot-prompt-card { border: 1px solid var(--pilot-line); background: #080c13e8; padding: clamp(22px, 4vw, 44px); text-align: center; box-shadow: 0 20px 60px #0008; }
body[data-theme="football"] .pilot-prompt-card { background: #06110ae8; }
.pilot-prompt-card h2 { margin: 0 auto; max-width: 760px; font-family: VT323, monospace; font-size: clamp(30px, 4.4vw, 52px); font-weight: 400; line-height: 1.05; color: var(--pilot-ink); }
body[data-theme="football"] .pilot-prompt-card h2 { color: #f2ffe7; }
.pilot-hint { margin: 16px 0 0; color: var(--pilot-muted); font-size: 11px; line-height: 1.6; }
.pilot-answer { display: flex; gap: 10px; margin: 16px 0 0; }
.pilot-answer input { flex: 1; min-width: 0; height: 56px; border: 1px solid var(--pilot-line); background: #060a10; color: var(--pilot-ink); padding: 0 16px; font: 500 18px/1 "IBM Plex Mono", monospace; outline: none; }
body[data-theme="football"] .pilot-answer input { background: #040b06; }
.pilot-answer input:focus { border-color: var(--pilot-accent); box-shadow: 0 0 0 2px #ffd16622; }
.pilot-prop { min-width: 150px; font-size: 14px; }
body[data-theme="football"] .pilot-prop { background: var(--pilot-accent); color: #061007; }
.pilot-time-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pilot-time-track { flex: 1; height: 8px; border: 1px solid var(--pilot-line); background: #060a10; overflow: hidden; }
.pilot-time-track span { display: block; width: 100%; height: 100%; background: var(--pilot-accent); transform-origin: left; transition: transform .08s linear; }
body[data-theme="football"] .pilot-time-track span { background: var(--pilot-accent); }
.pilot-time-row b { min-width: 26px; text-align: right; font-family: VT323, monospace; font-size: 30px; font-weight: 400; color: var(--pilot-ink); }
.pilot-pass { min-height: 36px; padding: 0 10px; background: transparent; color: var(--pilot-muted); border-color: var(--pilot-line); font-size: 10px; }
.pilot-reject { min-height: 20px; margin: 10px 0 0; color: var(--pilot-bad); font-size: 12px; }
.pilot-preview { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; text-align: center; background: #03050ad9; }
.pilot-preview[hidden] { display: none; }
.pilot-preview b { font-family: VT323, monospace; font-size: clamp(52px, 12vw, 110px); font-weight: 400; color: var(--pilot-accent); letter-spacing: .1em; }
.pilot-preview span { font-family: VT323, monospace; font-size: 54px; color: var(--pilot-ink); }
.pilot-land-card { max-width: 660px; margin: 4vh auto 0; border: 1px solid var(--land, var(--pilot-accent)); background: #080c13f2; padding: clamp(28px, 5vw, 52px); text-align: center; box-shadow: 0 0 60px color-mix(in srgb, var(--land, var(--pilot-accent)) 22%, transparent); }
body[data-theme="football"] .pilot-land-card { background: #06110af2; }
.pilot-land-tier { margin: 0; font: 700 clamp(26px, 4vw, 44px)/1 VT323, monospace; letter-spacing: .12em; color: var(--land, var(--pilot-accent)); }
.pilot-land-points { margin: 4px 0 0; font: 400 70px/1 VT323, monospace; color: var(--pilot-ink); }
.pilot-land-answer { margin: 18px 0 0; font: 700 clamp(20px, 3vw, 30px)/1.2 "IBM Plex Mono", monospace; color: var(--pilot-ink); overflow-wrap: anywhere; }
.pilot-land-quip { max-width: 46ch; margin: 14px auto 28px; color: var(--pilot-muted); font-size: 13px; line-height: 1.7; }
#pilot-next { min-width: 230px; }
.pilot-results { text-align: center; }
#pilot-res-title { margin: 0; font: 400 clamp(56px, 9vw, 100px)/.9 VT323, monospace; color: var(--pilot-accent); }
.pilot-res-score { margin: 12px 0 0; font-family: VT323, monospace; font-size: 70px; line-height: .9; }
.pilot-res-score span { color: var(--pilot-muted); font-size: 26px; }
.pilot-res-band { color: var(--pilot-ink); font-size: 13px; letter-spacing: .1em; }
.pilot-res-strip { display: flex; gap: 8px; max-width: 760px; margin: 26px auto; }
.pilot-res-strip .pilot-frame { height: 58px; }
.pilot-res-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px auto; max-width: 760px; }
.pilot-res-actions .pilot-primary, .pilot-res-actions .pilot-secondary { text-decoration: none; display: inline-grid; place-items: center; min-height: 48px; }
.pilot-sheet { max-width: 760px; margin: 20px auto; border: 1px solid var(--pilot-line); background: #080c13cc; text-align: left; padding: 12px 16px; }
.pilot-sheet summary { cursor: pointer; color: var(--pilot-accent); font-size: 11px; letter-spacing: .12em; }
.pilot-sheet h4 { margin: 14px 0 4px; font-size: 11px; color: var(--pilot-muted); letter-spacing: .1em; }
.pilot-sheet p { margin: 2px 0; font-size: 12px; color: var(--pilot-ink); }
.pilot-copy-status { color: var(--pilot-good); font-size: 12px; }
#pilot-mascot { position: fixed; right: clamp(8px, 3vw, 34px); bottom: 10px; z-index: 3; width: 104px; pointer-events: none; filter: drop-shadow(0 8px 18px #000a); animation: pilot-bob 3.2s ease-in-out infinite; }
#pilot-mascot img { width: 100%; height: auto; display: block; }
#pilot-prop { position: absolute; left: -8px; bottom: 0; font-size: 26px; }
#pilot-mascot-label { position: absolute; left: 2px; top: -10px; background: var(--pilot-accent); color: #071007; font: 700 9px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; padding: 3px 5px; transform: rotate(-5deg); }
@keyframes pilot-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.pilot-error { text-align: center; }
.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; }
@media (max-width: 680px) {
  .pilot-app { width: calc(100% - 20px); padding-top: 18px; }
  .pilot-topbar .page-nav { display: none; }
  .pilot-title { font-size: clamp(58px, 19vw, 92px); }
  .pilot-lede { font-size: 12px; }
  .pilot-round-head { display: block; }
  .pilot-round-meta { margin-top: 10px; justify-content: space-between; }
  .pilot-strip { gap: 4px; }
  .pilot-frame { height: 26px; }
  .pilot-prompt-card { padding: 22px 16px; }
  .pilot-answer { display: grid; grid-template-columns: 1fr; }
  .pilot-prop { min-height: 48px; }
  .pilot-time-row { gap: 8px; }
  .pilot-res-strip { gap: 4px; }
  #pilot-mascot { width: 64px; opacity: .8; bottom: 4px; }
  #pilot-mascot-label { font-size: 6px; padding: 2px 3px; }
  #pilot-prop { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pilot-screen.active { animation: none; }
  #pilot-mascot { animation: none; }
  .pilot-primary, .pilot-prop, .pilot-secondary { transition: none; }
}
/* main.css paints an ocean results scrim above #app; the pilot has its own stage. */
body[data-screen="results"]::after,
body[data-screen="archive"]::after,
body[data-screen="error"]::after { content: none; display: none; }
@media (max-width: 380px) {
  .pilot-topbar .topbar-actions { display: none; }
}

.pilot-res-log { max-width: 760px; margin: 0 auto 18px; border: 1px solid var(--pilot-line); background: #080c13cc; text-align: left; }
.pilot-log-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #1a2430; font-size: 12px; }
.pilot-log-row:last-child { border-bottom: 0; }
.pilot-log-row .q { color: var(--pilot-muted); line-height: 1.45; }
.pilot-log-row .a { color: var(--pilot-ink); text-align: right; white-space: nowrap; }
.pilot-log-row .a b { color: var(--tier, var(--pilot-accent)); font-weight: 600; }
.pilot-log-row.miss .a b { color: var(--tier-miss); }
@media (max-width: 560px) { .pilot-log-row { grid-template-columns: 1fr; } .pilot-log-row .a { text-align: left; } }
@media (max-width: 380px) {
  body[data-screen="round"] #pilot-mascot { display: none; }
}
@media (max-width: 900px) {
  .pilot-topbar .page-nav { display: none; }
}
@media (max-width: 480px) {
  .pilot-topbar .topbar-actions { display: none; }
}

.pilot-prop::before { content: '🎬'; margin-right: 9px; }
body[data-theme="football"] .pilot-prop::before { content: '📣'; }

.pilot-day-picker { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--pilot-line); color: var(--pilot-muted); font-size: 9px; letter-spacing: .16em; }
.pilot-day-picker[hidden] { display: none; }
#pilot-day-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
#pilot-day-buttons button { min-width: 30px; height: 26px; border: 1px solid var(--pilot-line); background: transparent; color: var(--pilot-muted); font: 10px "IBM Plex Mono", monospace; cursor: pointer; }
#pilot-day-buttons button[aria-current="true"] { border-color: var(--pilot-accent); color: var(--pilot-accent); }
.pilot-res-actions #pilot-next-day { display: inline-grid; place-items: center; }
.pilot-res-actions #pilot-next-day[hidden] { display: none; }

.pilot-alert { margin: 0; padding: 7px 14px; background: #2a210b; border-bottom: 1px solid #5b4a1e; color: #ffd166; font-size: 9px; letter-spacing: .12em; line-height: 1.5; }
body[data-theme="football"] .pilot-alert { background: #10240f; border-color: #355c2d; color: #b6ff5c; }

.pilot-day-select { height: 28px; min-width: 70px; background: #060a10; color: var(--pilot-accent); border: 1px solid var(--pilot-line); font: 11px "IBM Plex Mono", monospace; padding: 0 6px; }
.pilot-day-select[hidden] { display: none; }
.pilot-seo { position: relative; z-index: 2; max-width: 860px; margin: 48px auto 120px; padding: 28px 30px; border: 1px solid var(--pilot-line); background: #080c13e8; text-align: left; }
.pilot-seo h2 { font: 400 clamp(26px,3vw,36px)/1.1 VT323, monospace; color: var(--pilot-accent); margin: 26px 0 10px; }
.pilot-seo h2:first-child { margin-top: 0; }
.pilot-seo p, .pilot-seo li { color: var(--pilot-muted); font-size: 14px; line-height: 1.75; }
.pilot-seo details { border-top: 1px solid var(--pilot-line); padding: 12px 0; }
.pilot-seo summary { color: var(--pilot-ink); cursor: pointer; font-size: 13px; }
.pilot-seo strong { color: var(--pilot-ink); }
@media (max-width: 680px) { .pilot-seo { margin: 18px 10px 80px; padding: 20px 16px; } }
.pilot-breadcrumb { position:relative; z-index:2; max-width:860px; margin:18px auto 0; padding:0 4px; color:var(--pilot-muted); font:13px/1.4 VT323,monospace; letter-spacing:.06em; display:flex; gap:8px; }
.pilot-breadcrumb a { color:var(--pilot-accent); text-decoration:none; }
.pilot-breadcrumb a:hover { text-decoration:underline; }
@media(max-width:680px){.pilot-breadcrumb{margin:12px 10px 0}}
