:root{color-scheme:dark;--bg: #0b0f0c;--panel: #121816;--line: #1e2a22;--ink: #c8d6c4;--muted: #6a7d68;--accent: #9dffb0;--danger: #e8c0c0;--nest-disc: 44px;--on-face-min: 12px;--wheel-size: max(156px, min(220px, 32dvh, 58vw));--hud-chip: 13px;font-family:system-ui,sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--ink);min-height:100vh;overflow-x:hidden}body.playing{overflow:hidden}#app{min-height:100vh}#menu{max-width:none;margin:0;padding:0;min-height:100dvh;display:flex;flex-direction:column;gap:0;overflow-x:hidden;background:radial-gradient(ellipse 80% 70% at 50% 38%,#152018,#0b0f0c 72%)}#menu[hidden]{display:none}.home-stage{flex:1;min-width:0;min-height:100dvh;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;padding:20px 14px 28px;gap:18px}.home-mark{font-size:clamp(28px,8vw,42px);padding:0 4px}.doors{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0}.door{position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:max(180px,38dvh);border-radius:18px;border:1px solid rgba(157,255,176,.2);background:#121a14;padding:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;text-align:left;cursor:pointer;touch-action:manipulation;box-shadow:0 0 0 1px #00000073,0 18px 40px #00000059}.door:hover,.door:focus-visible{border-color:#9dffb08c;outline:none}.door-scene{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:0}.door-copy{position:relative;z-index:1;display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px;background:linear-gradient(to top,rgba(8,14,10,.82),transparent)}.door-name{font-size:22px;font-weight:650;letter-spacing:-.03em;color:var(--accent)}.door-whisper{font-size:13px;color:#9fb59a}.entry{position:absolute;inset:0;z-index:4;pointer-events:none;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:10px;padding:12px 12px calc(var(--wheel-size) + 16px)}.entry[hidden]{display:none}.entry-veil{position:absolute;inset:0;background:radial-gradient(ellipse 36% 46% at 50% 46%,transparent 0%,rgba(6,10,8,.22) 32%,rgba(6,10,8,.78) 72%,rgba(6,10,8,.9) 100%);pointer-events:none}.entry-coach{position:relative;z-index:1;max-width:92%;font-size:13px;color:#d5e6d0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px rgba(0,0,0,.85);pointer-events:none}.entry-coach:empty{display:none}.entry-picks{position:relative;z-index:1;width:min(100%,520px);min-width:0;display:flex;flex-direction:column;gap:8px;pointer-events:none}.seat-scenes,.kit-picks{display:flex;flex-wrap:nowrap;justify-content:center;align-items:stretch;gap:6px;min-width:0;pointer-events:auto}.seat-scenes[hidden],.kit-picks[hidden]{display:none}.seat-scene,.kit-pick{flex:1 1 0;min-width:0;min-height:72px;padding:4px 2px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;border:none;box-shadow:none;touch-action:manipulation}.seat-scene.on,.kit-pick.on{border:none;box-shadow:0 0 0 1px var(--kit-ink, rgba(157, 255, 176, .55));border-radius:10px}.seat-scene-face,.kit-pick-face{width:100%;max-width:148px;height:auto;display:block;border-radius:8px}.kit-pick-name{font-size:11px;font-weight:650;color:var(--kit-glow, var(--accent));text-shadow:0 1px 4px rgba(0,0,0,.85)}#game.entry-dim .hud,#game.entry-dim aside,#game.entry-dim #minimap,#game.entry-dim button.res.seed,#game.entry-dim #wheel{display:none!important}.eyebrow{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:11px}h1{font-size:42px;font-weight:650;letter-spacing:-.03em;color:var(--accent)}.lede{color:#9fb59a;line-height:1.45}fieldset{border:1px solid var(--line);border-radius:10px;padding:12px}legend{padding:0 6px;color:var(--muted);font-size:12px}.kits,.slots{display:flex;flex-wrap:wrap;gap:8px}.workshop-kind{display:flex;flex-direction:column;gap:6px;margin-top:8px}.workshop-kind>span{color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase}.workshop-note{font-size:12px;color:var(--muted);margin:0 0 4px}.kits button{font-size:12px;text-align:left;line-height:1.25}button{background:#1a2820;color:#d5e6d0;border:1px solid #2e4336;border-radius:8px;padding:8px 12px;cursor:pointer;font:inherit}button:hover{background:#223328}button.on,button.primary{background:#2a4a34;border-color:#4a7a58;color:var(--accent)}button.primary{padding:12px 16px;font-weight:600}.hint{font-size:12px;color:var(--muted);text-align:center}#game{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden;padding:0;gap:0}#menu[hidden],#game[hidden],#workshop[hidden],#replay-row[hidden]{display:none!important}.hud{display:flex;gap:4px 14px;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;padding:4px 10px 2px;z-index:4;flex-shrink:0;position:relative}.hud-core{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:baseline;min-width:0;flex:1}.res{background:transparent;border:none;border-radius:0;padding:0;min-width:0;display:flex;justify-content:flex-start;align-items:baseline;gap:6px;font-size:var(--hud-chip);flex-shrink:0}.res strong{color:var(--accent)}.flow{color:var(--muted)}.tech-card{min-width:132px;min-height:0;align-items:baseline;cursor:pointer}.pull-chip{font-size:var(--hud-chip)}.pull-chip:has(#pull:empty){display:none}.hud-quiet{font-size:11px;opacity:.55;color:var(--muted)}.tech-stack{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:6px;text-align:left}.tech-primary{color:var(--accent);font-weight:600;font-size:var(--hud-chip)}.tech-sub{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.stage{display:grid;grid-template-columns:1fr;gap:0;flex:1;min-height:60vh;position:relative}.map-wrap{position:relative;min-height:60vh;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#151c17}#map{width:auto!important;height:auto!important;min-width:100%;min-height:100%;aspect-ratio:960 / 540;max-width:none;max-height:none;background:#151c17;border:none;border-radius:0;display:block;cursor:crosshair;touch-action:none}canvas.can-pan{cursor:grab}canvas.panning{cursor:grabbing}#minimap{position:absolute;top:8px;right:8px;width:220px!important;height:124px!important;background:#070a08;border:1px solid rgba(157,255,176,.38);border-radius:4px;z-index:3;cursor:pointer;display:block;box-shadow:0 0 0 1px #0000008c,0 8px 22px #00000073;touch-action:none}#minimap:hover{border-color:#9dffb09e}aside{display:flex;flex-direction:column;position:absolute;right:8px;top:140px;width:148px;gap:6px;z-index:3;padding:0;background:transparent}.slider-label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#9fb59a}.slider-axis{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.04em;color:var(--muted)}input[type=range]{width:100%}.commit{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.commit[hidden]{display:none}.commit-label{font-size:12px;color:#9fb59a}.commit-hint{font-size:11px;color:var(--muted)}.commit-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.commit-presets button{padding:6px 4px;font-size:12px;text-align:center}.commit-split{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.commit-squads{list-style:none;font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:6px}.commit-squads li{display:flex;flex-direction:column;gap:4px}.commit-squad-edit{grid-template-columns:repeat(3,1fr)}.commit-squads:empty{display:none}#commit-val{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}#players{list-style:none;font-size:11px;display:flex;flex-direction:row;flex-wrap:wrap;gap:2px 8px}#players li{display:flex;justify-content:flex-start;gap:6px;padding:0;border:none;border-radius:0;white-space:nowrap}#players li.on{border:none;color:var(--accent)}.log{display:none}.play-hint{position:absolute;left:50%;transform:translate(-50%);bottom:min(calc(var(--wheel-size) + 8px),42%);max-width:90%;font-size:11px;line-height:1.3;color:var(--muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;z-index:2;text-shadow:0 1px 2px rgba(0,0,0,.75)}.play-hint:empty{display:none}#wheel{position:absolute;left:8px;bottom:8px;width:var(--wheel-size);height:var(--wheel-size);z-index:2;pointer-events:none}#wheel svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 8px 18px rgba(0,0,0,.62))}#wheel .plate{fill:#0a100cd1;stroke:#3d5646;stroke-width:1.5;pointer-events:none}#wheel .wedge-face{pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.85))}#wheel .wedge{pointer-events:auto;cursor:pointer;color:#d5e6d0}#wheel .wedge path{fill:#1a2820;stroke:#3d5646;stroke-width:1.5}#wheel .wedge:hover:not(.broke) path{fill:#24382c}#wheel .wedge.on path{fill:#2f5a3c;stroke:#7dff9a}#wheel.aiming .plate{fill:#060a08eb;stroke:#2a3a30}#wheel.aiming .wedge:not(.on):not(.broke) path{fill:#121a15}#wheel.aiming .wedge:not(.on){color:#8a9a86}#wheel.aiming .wedge.on path{fill:#2f5a3c;stroke:#7dff9a;stroke-width:2.4}#wheel .wedge.warn path{stroke:#7a4040}#wheel .wedge.warn{color:var(--danger)}#wheel .wedge.broke{opacity:.58;cursor:not-allowed;color:var(--muted)}#wheel .wedge:focus{outline:none}#wheel .wedge:focus-visible path{stroke:var(--accent);stroke-width:2.25}#wheel .wedge-label{fill:currentColor;font-size:11px;font-weight:650;font-family:system-ui,sans-serif}#wheel .wedge-cost{fill:var(--ink);font-size:var(--on-face-min);font-weight:600;font-variant-numeric:tabular-nums;font-family:system-ui,sans-serif}#wheel .wedge.broke .wedge-cost{fill:var(--danger)}#wheel .hub{fill:#0a100c;stroke:#2a3a30;stroke-width:1.25;pointer-events:none}#wheel .hub-cancel{pointer-events:auto;cursor:pointer;color:var(--muted)}#wheel .hub-cancel .hub{fill:#0a100c;stroke:#2a3a30}#wheel .hub-label{fill:var(--muted);font-size:8px;font-weight:650;font-family:system-ui,sans-serif}#wheel .hub-cancel .wedge-cost{fill:var(--muted);font-size:8px}#wheel .hub-cancel:focus{outline:none}#wheel .hub-cancel:focus-visible .hub{stroke:var(--muted);stroke-width:2}.wheel-icon{display:block;overflow:visible}.overlay{position:fixed;inset:0;background:#080c0adb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;z-index:10;padding:24px 16px;text-align:center}.overlay[hidden]{display:none}.overlay h2{color:var(--accent);font-size:28px}.end-winner{color:#e8f6e4;font-size:22px;font-weight:650;letter-spacing:-.02em}.overlay #end-sub{color:#9fb59a;font-size:14px}.end-seed{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.end-kits{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:720px}.end-kit{min-width:168px;max-width:220px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);display:flex;flex-direction:column;gap:4px}.end-kit.winner{background:#18261c}.end-kit.out{opacity:.72}.end-kit-who{font-size:13px;color:#d5e6d0}.end-kit-status{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.end-kit.winner .end-kit-status{color:var(--accent)}.end-kit-blurb{font-size:11px;color:#8aa484;line-height:1.35}.overlay .row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}#export-replay{display:none}button.res.seed{cursor:pointer;font:inherit;color:inherit}button.res.seed:hover{border-color:#4a7a58}button.res.seed:focus-visible,.end-seed:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button.res.seed.copied,.end-seed.copied{border-color:var(--accent);color:var(--accent);background:#18261c}button.res.seed.copied .flow,.end-seed.copied .flow{color:var(--accent)}button.res.seed.selecting,.end-seed.selecting{border-color:#c9b36a}.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}.end-footer{color:var(--muted);font-size:12px;letter-spacing:.04em}.rematch-seats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:720px;padding:0 12px}.rematch-seats button{font-size:12px}.kit-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(720px,calc(100vw - 32px))}.kit-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;min-height:176px;padding:14px 12px 12px;text-align:center;background:var(--kit-wash, #1a2820);border-color:color-mix(in srgb,var(--kit-ink, #4a7a58) 55%,#1e2a22);color:var(--kit-glow, var(--ink))}.kit-card.on{background:var(--kit-wash, #2a4a34);border-color:var(--kit-ink, #4a7a58);color:var(--kit-glow, var(--accent));box-shadow:0 0 0 1px var(--kit-ink, #4a7a58)}.kit-silhouette{width:96px;height:72px;display:block;color:var(--kit-ink, var(--accent))}.kit-name{font-weight:650;font-size:15px;letter-spacing:-.02em}.kit-fantasy{font-size:12px;line-height:1.35;color:var(--ink);opacity:.86}@media(max-width:859px){.doors{flex-direction:column}.seat-scene,.kit-pick{flex:1 1 0;min-width:0}.door{min-height:max(180px,36dvh)}aside{top:88px;bottom:auto;right:8px;width:132px;max-height:28vh;overflow:auto;gap:4px;border-radius:0}#minimap{width:132px!important;height:74px!important}.hud-quiet{display:none}.hud-core{padding-right:52px;gap:4px 8px}:root{--hud-chip: 12px}.hud{gap:2px 8px;padding:3px 8px 2px}.tech-card{min-width:132px}.slider-label{font-size:11px}}@media(min-width:860px){:root{--wheel-size: max(156px, min(180px, 26dvh, 16vw))}.home-stage{justify-content:center;align-items:center;padding:36px 24px}.doors{flex-direction:row;width:min(920px,92vw);gap:18px}.door{flex:1;min-height:min(420px,58dvh)}}@media(max-width:860px){.kit-cards{width:min(100vw - 24px,520px);gap:8px}.kit-card{min-height:156px;padding:10px 8px}.kit-fantasy{font-size:11px}}.res.seed strong{font-variant-numeric:tabular-nums}button.res.seed{position:absolute;right:8px;top:4px;width:auto;height:auto;margin:0;clip:auto;overflow:visible;white-space:nowrap;font-size:10px;opacity:.4;color:var(--muted);z-index:5;background:transparent;border:none;padding:0;border-radius:0}button.res.seed:hover{opacity:.7;border:none}.end-seed{background:transparent;border:1px solid var(--line);color:var(--muted);font-variant-numeric:tabular-nums;padding:6px 12px;display:inline-flex;align-items:center;gap:10px;cursor:pointer;font:inherit}.end-seed:hover{border-color:#4a7a58;color:var(--accent)}@media(prefers-reduced-motion:reduce){#wheel .wedge path,.overlay,.commit-presets button,.end-seed,#copy-seed,.door{transition:none}}
