/* ATC Kaos game page: full-window canvas + bold cel-style HUD. */
:root {
    --ink: #0b0b10;
    --paper: #fff7e0;
    --taxi: #ffd100;
    --runway: #e0262f;
    --orv: #29e3ff;
    --wil: #ff5cf0;
    --radar: #3cff7a;
    --sign: "Arial Black", "Arial Bold", Arial, sans-serif;
    --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
    --body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --hud-scale: 1;
}

html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1630; color: var(--paper); font-family: var(--body); }
/* The page also loads the site stylesheet; keep its table and dark-scheme defaults out of the game UI. */
.game-root { color-scheme: light; }
.game-root table { background: transparent; border: 0; margin: 0; width: auto; }
.game-root th, .game-root td { background: transparent; border: 0; color: inherit; }
.game-root button, .game-root select, .game-root input { color: var(--ink); }
.game-root { position: fixed; inset: 0; overflow: hidden; user-select: none; }
.game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* By the Book: the Map Console, pixel-sharp over its 3D screen while seated (above the scene, below the HUD). */
.console-overlay { position: absolute; display: none; pointer-events: none; z-index: 5; }
.game-root.flash::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.55); pointer-events: none; z-index: 50; }

kbd {
    display: inline-block; min-width: 1.2em; text-align: center;
    font: 700 0.85em/1.25 var(--mono);
    background: var(--paper); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink);
    padding: 0 0.3em; margin: 0 0.1em;
}

/* Boot */
.boot { position: absolute; inset: 0; display: grid; place-items: center; background: #0b1630; z-index: 100; }
.boot-card { background: var(--paper); color: var(--ink); border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 24px 40px; text-align: center; }
.boot-card h1 { margin: 0 0 6px; font: 900 44px var(--sign); color: var(--taxi); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.boot-card p { margin: 0; font: 600 16px var(--mono); }

/* ------------------------------------------------------------------------------------------- HUD */
.hud { position: absolute; inset: 0; pointer-events: none; font-size: calc(15px * var(--hud-scale)); z-index: 10; }
.hud kbd { font-size: 0.8em; }

.hud-top {
    position: absolute; top: 10px; left: 10px; right: 10px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
}
.hud-top > * {
    background: var(--paper); color: var(--ink);
    border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
    padding: 3px 10px; font: 700 0.95em var(--mono); display: flex; align-items: center; gap: 6px;
}
.hud-top .clock b { font: 900 1.15em var(--sign); }
.hud-top .clock span { color: #5a4a00; }
.hud-top .score b { font: 900 1.15em var(--sign); color: var(--runway); }
.hud-top .meter i { display: inline-block; width: 110px; height: 12px; border: 2px solid var(--ink); background: linear-gradient(90deg, #3cbf5a var(--v), #ddd var(--v)); }
.hud-top .meter.comp i { background: linear-gradient(90deg, #ff9f1a var(--v), #ddd var(--v)); }
.hud-top .meter i.low { animation: blink 0.6s steps(1) infinite; }
.hud-top .orv { background: var(--ink); color: var(--orv); }
.hud-top .orv.gone { color: #888; }
.hud-top .orv.book { color: var(--taxi); }   /* By the Book: runway configuration in taxiway yellow */
.hud-top .act, .hud-top .mode { background: var(--taxi); margin-left: auto; font-family: var(--sign); }

.hud-alert {
    position: absolute; top: 58px; left: 50%; transform: translateX(-50%);
    background: var(--runway); color: #fff; font: 900 1.3em var(--sign);
    border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 4px 18px;
    display: none;
}
.hud-alert.on { display: block; animation: blink 0.5s steps(1) infinite; }
.reduce-motion .hud-alert.on { animation: none; }
/* By the Book: the safety-net strip under the top bar (WP002 6.4). */
.hud-alerts { position: absolute; top: 58px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.hud-alerts .al { font: 900 0.85em var(--mono); padding: 2px 8px; border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); background: #ff3b30; color: #fff; }
.hud-alerts .al.ca, .hud-alerts .al.sep, .hud-alerts .al.clr { animation: blink 0.6s steps(1) infinite; }
.hud-alerts .al.stca, .hud-alerts .al.fuel { background: #ff9f1a; color: var(--ink); }
.hud-alerts .al.unst { background: var(--taxi); color: var(--ink); }
.hud-alerts .al.more { background: var(--paper); color: var(--ink); }
.reduce-motion .hud-alerts .al { animation: none; }

.hud-cross {
    position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
    border-radius: 50%; background: #fff; border: 2px solid var(--ink);
}
.hud-cross.aim { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: transparent; border: 3px solid var(--taxi); box-shadow: 0 0 0 2px var(--ink); }
.focused .hud-cross { display: none; }
/* Sitting at a screen: keep the HUD out of the way so the screen fills the view. */
.focused .hud-labels, .focused .card-foot, .focused .hud-ticker { display: none; }
.focused .hud-prompt { top: auto; bottom: 14px; left: 14px; transform: none; }
.focused .hud-hold { top: auto; bottom: 48px; left: 14px; margin-left: 0; }
.focused .hud-hint { top: auto; bottom: 150px; left: auto; right: 14px; transform: none; max-width: 340px; font-size: 0.85em; }
.focused .hud-toasts { top: 64px; left: auto; right: 14px; transform: none; align-items: flex-end; }
.focused .hud-card { opacity: 0.94; }
.focused .card-head { padding: 3px 10px; }
.focused .card-cmds { padding: 4px 10px; }
.focused .hud-subs .sub:nth-last-child(n+3) { display: none; }
.hud-cursor { position: absolute; width: 0; height: 0; display: none; }
.focused .hud-cursor { display: block; }
.hud-cursor::before {
    content: ""; position: absolute; left: -2px; top: -2px; width: 20px; height: 24px;
    background: var(--taxi); border: 2px solid var(--ink);
    clip-path: polygon(0 0, 100% 62%, 52% 64%, 70% 100%, 52% 100%, 36% 70%, 0 92%);
}
.hud-prompt {
    position: absolute; left: 50%; top: calc(50% + 22px); transform: translateX(-50%);
    background: rgba(11, 11, 16, 0.85); color: #fff; border: 2px solid var(--taxi);
    padding: 3px 10px; font: 600 0.95em var(--mono); white-space: nowrap; display: none;
}
.hud-prompt.on { display: block; }
.hud-hold { position: absolute; left: 50%; top: calc(50% + 52px); width: 160px; margin-left: -80px; height: 12px; border: 3px solid var(--ink); background: #fff; display: none; }
.hud-hold.on { display: block; }
.hud-hold i { display: block; height: 100%; width: 0; background: var(--taxi); }

.hud-toasts { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast {
    background: var(--ink); color: var(--taxi); border: 2px solid var(--taxi);
    padding: 4px 12px; font: 700 0.95em var(--mono); transition: opacity 0.5s, transform 0.5s;
}
.toast.out { opacity: 0; transform: translateY(-8px); }

.hud-hint {
    position: absolute; top: 140px; left: 50%; transform: translateX(-50%) scale(0.96);
    max-width: min(640px, 90vw);
    background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
    padding: 10px 14px; font: 600 1em var(--body); opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.hud-hint.on { opacity: 1; transform: translateX(-50%) scale(1); }
.hint-tag { background: var(--taxi); border: 2px solid var(--ink); font: 900 0.8em var(--sign); padding: 0 6px; margin-right: 6px; }

.hud-prompts { position: absolute; top: 210px; right: 14px; display: flex; flex-direction: column; gap: 6px; }
.hud-prompts .prompt { background: var(--orv); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 4px 10px; font: 900 1em var(--sign); }

.hud-item { position: absolute; right: 14px; bottom: 200px; background: var(--ink); color: #fff; border: 3px solid var(--taxi); padding: 4px 10px; font: 700 0.9em var(--mono); display: none; }
.hud-item.on { display: block; }
.sig-green { color: #3cff7a; } .sig-red { color: #ff4040; } .sig-flash { color: #ff4040; animation: blink 0.4s steps(1) infinite; }

.hud-bino { position: absolute; inset: 0; display: none; background: radial-gradient(ellipse 46% 52% at 50% 50%, transparent 92%, var(--ink) 93%); }
.hud-bino.on { display: block; }

/* Labels on aircraft seen through the glass (true callsigns) */
.hud-labels { position: absolute; inset: 0; overflow: hidden; }
.lab { position: absolute; left: 0; top: 0; display: none; white-space: nowrap; font: 700 0.72em var(--mono); color: #fff; text-shadow: 1px 1px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
.lab.on { display: block; }
.lab.parked { opacity: 0.45; font-size: 0.6em; }
.lab.mine { color: var(--taxi); }
.lab.ca { color: #ff4040; }
.lab.sel, .lab.aim { background: var(--paper); color: var(--ink); text-shadow: none; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 1px 6px; font-size: 0.82em; opacity: 1; }
.lab.sel { background: var(--taxi); }
.lab small { display: block; font: 600 0.85em var(--mono); }

/* Bottom: card, subtitles, ticker */
.hud-bottom { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hud-card {
    width: min(920px, 100%);
    background: var(--paper); color: var(--ink);
    border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.card-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 6px 12px; background: var(--taxi); border-bottom: 3px solid var(--ink); font: 700 0.95em var(--mono); }
.card-head.soft { background: #f2e3a0; }
.card-head b { font: 900 1.3em var(--sign); }
.card-head .wait.late { color: var(--runway); }
.card-head .softtag { margin-left: auto; font-size: 0.8em; opacity: 0.7; }
.card-orv { padding: 5px 12px; background: var(--ink); color: var(--orv); font: 600 0.95em var(--mono); }
.card-orv b { color: #fff; }
.card-orv em { color: #ff9f1a; }
.card-orv.off { color: #888; }
.card-wil { padding: 5px 12px; background: #2a0a26; color: var(--wil); font: 600 0.95em var(--mono); }
.card-wil b { color: #fff; }
.card-cmds { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 12px; font: 700 0.95em var(--body); }
.card-cmds .back { opacity: 0.7; }
/* The instruction already given: first, green, ticked (colour is not the only cue). */
.card-cmds .cmd.given { background: #23a047; color: #fff; padding: 1px 10px 1px 3px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.card-cmds .cmd.given kbd { background: #fff; color: var(--ink); }
.card-foot { padding: 3px 12px 6px; font: 600 0.75em var(--mono); color: #555; }

.hud-subs { width: min(920px, 100%); display: flex; flex-direction: column; gap: 2px; }
.sub { background: rgba(11, 11, 16, 0.78); padding: 2px 10px; font: 600 0.95em var(--body); color: #f4f4f4; border-left: 4px solid var(--taxi); }
.sub b { font-family: var(--mono); margin-right: 6px; }
.sub.dim { color: #9aa0aa; border-left-color: #555; font-size: 0.85em; }
.sub.phone { border-left-color: #d9d9d9; font-style: italic; }
.sub.room { border-left-color: var(--orv); }
.hud-ticker {
    width: min(920px, 100%); min-height: 1.4em;
    background: #100800; border: 3px solid var(--ink); padding: 2px 10px;
    font: 700 0.9em var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hud-ticker:empty { display: none; }

.hud-phone {
    position: absolute; right: 14px; top: 260px; width: min(380px, 90vw); display: none;
    background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 10px 14px;
}
.hud-phone.on { display: block; }
.phone-who { font: 900 1.1em var(--sign); }
.phone-text { margin: 6px 0 8px; font-style: italic; }
.phone-reply { margin: 4px 0; font-weight: 600; }

/* Overtime (WP001): the offer card, the report-draft panel, the badge */
.hud-top .act.ot { background: var(--runway); color: #fff; animation: none; }
.hud-ot {
    position: absolute; left: 50%; top: 30%; transform: translateX(-50%); width: min(520px, 92vw); display: none; text-align: center; z-index: 5;
    background: var(--paper); color: var(--ink); border: 5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 14px 18px;
}
.hud-ot.on { display: block; }
.ot-title { font: 900 3em var(--sign); color: var(--taxi); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); letter-spacing: 2px; }
.hud-ot p { margin: 6px 0 10px; font: 600 1em var(--body); }
.ot-choices { display: flex; justify-content: center; gap: 18px; font: 900 1.05em var(--sign); }
.ot-choices span { background: var(--taxi); border: 3px solid var(--ink); padding: 4px 10px; }
.ot-choices .ot-home { background: #e2ddd0; font-family: var(--body); font-weight: 700; }
.ot-count { margin-top: 8px; font: 600 0.85em var(--mono); color: #555; }
.hud-report {
    position: absolute; left: 14px; top: 210px; width: min(420px, 90vw); display: none;
    background: #fbf6e8; color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 8px 12px;
    font: 600 0.9em var(--mono);
}
.hud-report.on { display: block; }
.rep-head { font: 900 1em var(--sign); border-bottom: 3px solid var(--ink); padding-bottom: 4px; margin-bottom: 6px; }
.rep-head small { font: 600 0.75em var(--mono); color: #0a6e80; }
.rep-subj { margin-bottom: 6px; font-style: italic; }
.rep-opt { margin: 4px 0; font-family: var(--body); }
.rep-opt.fav { background: #e5f9ff; }
.rep-opt em { color: #0a6e80; font-size: 0.85em; }
.rep-count { margin-top: 6px; font-size: 0.8em; color: #777; }

/* ------------------------------------------------------------------------------------- Overlays */
.overlay {
    position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; overflow: auto; padding: 16px;
    background: rgba(11, 22, 48, 0.82); pointer-events: auto;
}
.overlay.help, .overlay.pause { background: rgba(11, 22, 48, 0.75); }
.panel, .form {
    background: var(--paper); color: var(--ink);
    border: 5px solid var(--ink); box-shadow: 12px 12px 0 var(--ink);
    padding: 22px 26px; max-width: 760px; width: 100%;
}
.panel.wide { max-width: 860px; }
.panel h2, .form h2 { margin: 0 0 6px; font: 900 2em var(--sign); }
.panel h3, .form h3 { margin: 16px 0 6px; font: 900 1.1em var(--sign); }
.muted { color: #5a5a5a; }
.stack { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; max-width: 320px; }

.btn {
    display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
    font: 900 1em var(--sign); color: var(--ink); background: #fff;
    border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 8px 16px;
}
.btn:hover { background: var(--taxi); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.big { background: var(--taxi); font-size: 1.3em; padding: 12px 24px; }
.btn.big:hover { background: #fff04d; }
.btn.small { font-size: 0.85em; padding: 4px 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.keys { border-collapse: collapse; width: 100%; font-size: 14px; }
.keys td { padding: 3px 6px; vertical-align: top; }
.keys td:nth-child(odd) { white-space: nowrap; text-align: right; }

.settings { display: grid; gap: 6px; margin-top: 10px; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.set input[type=range] { width: 200px; accent-color: #b38f00; }

.form { max-width: 820px; }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 4px solid var(--ink); padding-bottom: 8px; font-family: var(--mono); }
.grade { font: 900 64px var(--sign); color: var(--runway); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); line-height: 1; }
.ending { font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.stat { border: 3px solid var(--ink); padding: 6px 8px; background: #fff; }
.stat span { display: block; font: 600 12px var(--mono); text-transform: uppercase; color: #555; }
.stat b { font: 900 22px var(--sign); }
.trust { background: var(--ink); color: var(--orv); padding: 8px 12px; font: 600 14px var(--mono); }
.narr { font-size: 14px; padding-left: 18px; }
.narr li { margin: 4px 0; }
.narr code { background: #f2ead2; padding: 0 4px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.error pre { white-space: pre-wrap; font-size: 12px; max-height: 200px; overflow: auto; }

.debug { position: absolute; left: 10px; top: 60px; z-index: 30; background: rgba(0, 0, 0, 0.8); color: #0f0; font: 12px var(--mono); padding: 6px; max-width: 480px; pointer-events: auto; }
.debug button, .debug select { font: 12px var(--mono); margin: 2px; }

@keyframes blink { 50% { opacity: 0.25; } }

@media (max-width: 760px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hud-top .meter i { width: 60px; }
}

/* Report page two: the overtime claim (WP001 5.7) */
.ot-form { margin-top: 18px; padding-top: 10px; border-top: 6px double var(--ink); }
.ot-form .grade { background: var(--runway); color: #fff; }

/* ------------------------------------------------------------------------- Title screen (floppy) */
/* A 5¼-inch diskette out of its sleeve on the console desk (ui/menus.js showStart). Everything is drawn at
   a fixed size on a 1600 × 900 stage (860 × 1720 stacked) and scaled to the window. Handwriting fonts are
   bundled: Permanent Marker (Apache 2.0) for the felt-tip label, Caveat (OFL) for Hank's post-it. */
@font-face { font-family: "KaosMarker"; src: url("fonts/permanent-marker-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "KaosHand"; src: url("fonts/caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
.start {
    --felt: #1c2850;          /* navy felt-tip */
    --red-felt: #c62a22;
    --sleeve-ink: #1f4596;    /* printed blue on the sleeve */
    --biro: #22308a;
    --marker: "KaosMarker", "Segoe Print", "Comic Sans MS", cursive;
    --hand: "KaosHand", "Segoe Print", "Comic Sans MS", cursive;
}
.overlay.start {
    display: block; padding: 0; overflow-x: hidden; overflow-y: auto;
    background:
        radial-gradient(ellipse at 42% 38%, rgba(255, 255, 255, 0.07), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        linear-gradient(160deg, #343c49, #20262f 55%, #171b22);
}
.start .desk { position: relative; width: 100%; min-height: 100%; }
.start .stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.start .stage.tall { width: 860px; height: 1720px; }
.start.book .story-only { display: none !important; }
.start:not(.book) .book-only { display: none !important; }

/* The disk */
.start .disk { position: absolute; left: 40px; top: 70px; width: 760px; height: 760px; transform: rotate(-3deg); z-index: 3; animation: disk-out 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.start .stage.tall .disk { left: 50px; top: 30px; transform: rotate(-2deg); }
.start .jacket { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(5px 12px 12px rgba(0, 0, 0, 0.55)); }
@keyframes disk-out { from { translate: 230px 12px; opacity: 0; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .start .disk { animation: none; } }

/* The label: lined, a printed band, written in felt-tip; its top-right corner is peeling. */
.start .label-wrap { position: absolute; left: 42px; top: 13px; width: 676px; height: 250px; transform: rotate(0.7deg); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.start .residue { position: absolute; top: 0; right: 0; width: 66px; height: 66px; clip-path: polygon(0 0, 100% 0, 100% 100%); background: rgba(225, 220, 200, 0.16); }
.start .label {
    position: absolute; inset: 0; color: var(--felt); font-family: var(--marker);
    background-color: #fbf9f1;
    background-image:
        linear-gradient(#c8372d, #c8372d),
        repeating-linear-gradient(to bottom, transparent 0 31px, #a7bbdb 31px 32px),
        linear-gradient(170deg, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.03));
    background-size: 100% 24px, 100% 160px, 100% 100%;
    background-position: 0 0, 0 34px, 0 0;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, calc(100% - 66px) 0, 100% 66px, 100% 100%, 0 100%);
}
.start .peel-wrap { position: absolute; top: 0; right: 0; width: 66px; height: 66px; filter: drop-shadow(-3px 5px 4px rgba(0, 0, 0, 0.32)); }
.start .peel {
    width: 100%; height: 100%; clip-path: polygon(0 0, 100% 100%, 0 100%);
    background: linear-gradient(to bottom left, transparent 50%, #cfc9b6 50%, #ece8da 58%, #fffef8 80%, #e4dfcf 100%);
}
.start .label-band { height: 24px; display: flex; gap: 24px; align-items: center; padding: 0 16px; font: 900 11px var(--sign); letter-spacing: 0.2em; color: #fff; }
.start .lrow { display: flex; align-items: flex-end; gap: 8px; height: 32px; padding: 0 16px; white-space: nowrap; box-sizing: border-box; }
.start .lrow.head { height: 42px; align-items: center; gap: 18px; }
.start .lrow.go { height: 56px; align-items: center; gap: 22px; }
.start .lrow > i { flex: none; width: 60px; padding-bottom: 7px; font: 700 9.5px/1 var(--body); font-style: normal; letter-spacing: 0.14em; color: #5a78b3; }
.start .label h1 { margin: 0; font: 400 36px/1 var(--marker); color: #141418; transform: rotate(-1.5deg); }
.start .label .note { font-size: 17px; color: var(--red-felt); transform: rotate(-1deg) translateY(3px); }
.start .pencil { font: 600 21px/1 var(--hand); color: #6d6d73; padding-bottom: 5px; }

/* Choices: handwritten; the chosen one circled in red, a scribbled underline on hover. */
.start .label .seg { display: flex; align-items: flex-end; gap: 4px; }
.start .label .seg .sl { color: #8291b6; font-size: 18px; padding: 0 2px 5px; }
.start .label button, .start .label a.scrawl {
    all: unset; display: inline-block; position: relative; cursor: pointer;
    font: 400 20px/1 var(--marker); color: var(--felt); padding: 3px 7px 6px;
}
.start .label .seg button.on::before {
    content: ""; position: absolute; inset: -4px -6px -2px -7px; pointer-events: none;
    border: 3px solid var(--red-felt); border-radius: 52% 48% 55% 45% / 60% 48% 52% 40%; transform: rotate(-2.5deg);
}
.start .label .seg button.on:nth-of-type(2n)::before { border-radius: 46% 54% 42% 58% / 52% 60% 40% 48%; transform: rotate(2deg); }
.start .label button:not([disabled]):not(.on):hover::after, .start .label a.scrawl:hover::after {
    content: ""; position: absolute; left: 5px; right: 5px; bottom: 2px; height: 3px; border-radius: 2px;
    background: var(--red-felt); opacity: 0.55; transform: rotate(-1deg);
}
.start .label .seg button[disabled] { cursor: not-allowed; color: #8b90a0; text-decoration: line-through 2.5px var(--red-felt); }
.start .label button:focus-visible, .start .label a:focus-visible, .start .label select:focus-visible { outline: 2px dashed var(--red-felt); outline-offset: 3px; }
.start .label .scrawl { color: var(--red-felt); font-size: 18px; }
.start .label a.eject { color: var(--felt); font-size: 19px; }
.start .label select {
    appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 2px dashed #8291b6; border-radius: 0;
    font: 400 18px/1.2 var(--marker); color: var(--felt); width: 300px; padding: 0 24px 3px 4px; margin-bottom: 4px;
    text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--felt) 50%), linear-gradient(135deg, var(--felt) 50%, transparent 50%);
    background-size: 7px 7px; background-position: right 10px top 9px, right 3px top 9px; background-repeat: no-repeat;
}
.start .label select option { font: 15px var(--body); color: #111; background: #fff; }
.start .tick { position: relative; display: flex; align-items: center; gap: 9px; cursor: pointer; font: 400 18px/1 var(--marker); color: var(--felt); }
.start .tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.start .tick b { position: relative; width: 18px; height: 18px; border: 2.5px solid var(--felt); border-radius: 3px 5px 2px 4px; transform: rotate(-4deg); }
.start .tick input:checked + b::after { content: "✓"; position: absolute; left: -1px; top: -16px; font: 400 30px/1 var(--marker); color: var(--red-felt); }
.start .tick input:focus-visible + b { outline: 2px dashed var(--red-felt); outline-offset: 3px; }
.start .label #go {
    margin-left: auto; padding: 5px 15px 6px; font-size: 25px; color: var(--red-felt); transform: rotate(-2deg);
    border: 3px solid var(--red-felt); border-radius: 10px 16px 8px 14px / 14px 8px 16px 10px;
}
.start .label #go:hover { background: rgba(255, 228, 0, 0.6); }
.start .label #go:hover::after { display: none; }
.start .label #go:active { transform: rotate(-2deg) translate(1px, 2px); }

/* The sleeve: printed paper with the thumb cut-out, behind the disk. */
.start .sleeve { position: absolute; left: 775px; top: 48px; width: 790px; height: 800px; transform: rotate(2deg); z-index: 2; }
.start .stage.tall .sleeve { left: 38px; top: 860px; transform: rotate(1.2deg); }
.start .sleeve-shadow { position: absolute; inset: 0; filter: drop-shadow(4px 12px 14px rgba(0, 0, 0, 0.5)); }
.start .sleeve-paper {
    position: absolute; inset: 0; color: var(--sleeve-ink);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .9' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 50% 40%, #f4efe3 45%, #e3dac7 100%);
    -webkit-mask: radial-gradient(circle at 50% 0, transparent 50px, #000 51px);
    mask: radial-gradient(circle at 50% 0, transparent 50px, #000 51px);
}
.start .sleeve-brand { position: absolute; left: 60px; top: 28px; display: grid; gap: 4px; }
.start .sleeve-brand b { font: italic 900 30px/1 var(--sign); letter-spacing: 0.02em; }
.start .sleeve-brand b i { font-style: italic; color: #fff; background: var(--sleeve-ink); padding: 0 8px; margin-left: 6px; }
.start .sleeve-brand span { font: 700 10.5px/1.35 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.start .sleeve-cert { position: absolute; right: 52px; top: 34px; text-align: right; font: 900 12px var(--sign); letter-spacing: 0.08em; }
.start .sleeve-cert span { display: block; font: 600 10px var(--body); letter-spacing: 0.04em; opacity: 0.8; }
.start .sleeve-care { position: absolute; left: 58px; top: 118px; width: 300px; }
.start .sleeve-care h4 { margin: 0 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--sleeve-ink); font: 900 14px var(--sign); letter-spacing: 0.1em; text-transform: uppercase; }
.start .sleeve-care dl { display: grid; grid-template-columns: 96px 1fr; gap: 5px 10px; margin: 0; font: 600 14px/1.25 var(--body); }
.start .sleeve-care dt { text-align: right; white-space: nowrap; }
.start .sleeve-care dd { margin: 0; }
.start .sleeve kbd { background: none; color: inherit; box-shadow: none; border: 1.5px solid currentColor; border-radius: 3px; font: 700 11.5px/1.3 var(--mono); padding: 0 3px; margin: 0 1px; }
.start .sleeve-foot { position: absolute; left: 58px; right: 52px; bottom: 30px; padding-top: 8px; border-top: 2px solid var(--sleeve-ink); font: 800 10.5px/1.5 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }

/* Hank's post-it, stuck on the sleeve, curling a little at the bottom. */
.start .postit {
    position: absolute; left: 372px; top: 96px; width: 430px; min-height: 560px; box-sizing: border-box; padding: 30px 30px 24px 32px;
    transform: rotate(3deg); color: var(--biro); font: 600 22px/1.14 var(--hand);
    background: linear-gradient(#fdf07c, #fbe861 55%, #f4dc4c);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 24px 20px -16px rgba(0, 0, 0, 0.5);
}
.start .postit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52px; background: linear-gradient(rgba(255, 255, 255, 0.22), transparent); }
.start .postit p { margin: 0 0 11px; position: relative; }
.start .postit .meta { margin-bottom: 15px; font-size: 21px; }
.start .postit b { font-weight: 700; }
.start .postit u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.start .postit kbd { background: none; color: inherit; box-shadow: none; border: 2px solid currentColor; border-radius: 6px 3px 5px 4px; font: 700 19px/1 var(--hand); padding: 0 5px; }
.start .postit .sig { text-align: right; font-size: 30px; margin: -4px 10px 4px 0; transform: rotate(-4deg); }
.start .postit .ps { font-size: 20px; }

/* A coffee ring on the desk and the sleeve's corner. */
.start .coffee {
    position: absolute; left: 1395px; top: 690px; width: 190px; height: 190px; z-index: 4; pointer-events: none; mix-blend-mode: multiply;
    background:
        radial-gradient(circle at 50% 50%, transparent 58%, rgba(120, 66, 18, 0.42) 60%, rgba(120, 66, 18, 0.12) 64%, transparent 67%),
        radial-gradient(circle at 46% 53%, transparent 60%, rgba(120, 66, 18, 0.22) 62%, transparent 66%);
}
.start .stage.tall .coffee { left: 620px; top: 1520px; }
