:root{--cream: #f7ebc8;--cream-deep: #ebd9a3;--paper: #efdfae;--gold: #e0a526;--orange: #e8741e;--ink: #1e1a14;--ink-soft: #4a4132;--teal: #1f7a6d;--red: #b3261e;--red-soft: #f9ccc8;--font-ui: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--wobble: 14px 4px 12px 5px / 5px 12px 4px 14px}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:var(--font-ui);-webkit-font-smoothing:antialiased}button{font-family:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:2px}.box,.hud-top,.hud-bottom,.title-card,.result-card,.goal-box,.stage-toast,.judge-panel{background:var(--cream);color:var(--ink);border:3px solid var(--ink);box-shadow:inset 0 0 0 3px var(--gold),4px 4px #1e1a14d9;border-radius:var(--wobble)}.arcade-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr auto;gap:12px;padding:12px 16px 16px;background:var(--paper)}.arcade-shell--desktop{height:100vh;height:100dvh;max-width:1840px;margin:0 auto;grid-template-rows:auto minmax(0,1fr);gap:12px;padding:10px 16px 14px;overflow:hidden}.desktop-workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(376px,29.5vw,446px);gap:16px;align-items:center;min-height:0;height:100%}.hud-top{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:8px 14px}.hud-brand{display:flex;align-items:center;gap:8px;flex:0 0 auto}.hud-logo{display:block}.hud-title{font-size:22px;font-weight:700;letter-spacing:.01em;color:var(--ink)}.mode-pill{font-size:13px;font-weight:700;padding:2px 9px;border-radius:999px;border:2px solid var(--ink);white-space:nowrap}.mode-pill--live{background:#cfebe3;color:#14584e}.mode-pill--practice{background:#fbd98e;color:#6b4300}.hud-status-group{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:10px;min-width:0;flex:1 1 auto}.hud-timer{display:flex;align-items:center;gap:7px;font-size:19px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink);padding:3px 11px;background:var(--cream-deep);border:2px solid var(--ink);border-radius:8px;white-space:nowrap;flex-shrink:0}.hud-timer--urgent{background:var(--red-soft);border-color:var(--red);color:var(--red)}.hud-case-icon{image-rendering:pixelated}.budget-meter{display:inline-flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:3px 11px 5px;background:var(--cream-deep);border:2px solid var(--ink);border-radius:8px;color:var(--ink);transition:background .15s ease,border-color .15s ease,color .15s ease}.budget-meter__text{font-size:14px;font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap}.budget-meter__track{display:block;width:100%;min-width:132px;height:7px;border-radius:999px;background:#1e1a1426;border:1.5px solid var(--ink);overflow:hidden}.budget-meter__fill{display:block;height:100%;background:linear-gradient(90deg,#e0a526,#f3be46);transition:width .25s ease,background .15s ease}.budget-meter--blocked{background:var(--red-soft);border-color:var(--red);color:var(--red);animation:budgetBlockedFlash .55s ease-in-out 3}.budget-meter--blocked .budget-meter__track{border-color:var(--red)}.budget-meter--blocked .budget-meter__fill{background:var(--red)}.budget-meter--fired{background:#e2d8bd;color:var(--ink-soft);border-style:dashed}.budget-meter--compact{flex-direction:row;align-items:center;gap:8px;padding:3px 9px}.budget-meter--compact .budget-meter__text{font-size:12.5px}.budget-meter--compact .budget-meter__track{width:68px;min-width:54px;height:7px;flex-shrink:0}@keyframes budgetBlockedFlash{0%,to{background:var(--red-soft);box-shadow:0 0 #b3261e73}50%{background:#f46b65;color:var(--ink);box-shadow:0 0 0 4px #b3261e59}}.hud-budget{font-size:18px;font-weight:700;color:var(--teal)}.hud-chase-pill{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;padding:3px 10px;border-radius:8px;border:2px solid var(--ink);background:#f46b65;color:var(--ink);white-space:nowrap;flex-shrink:0}.hud-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto}.stage-wrap{display:flex;align-items:center;justify-content:center;padding:4px;min-width:0;min-height:0}.arcade-shell--desktop .stage-wrap{height:100%;padding:4px 2px}.canvas-frame{position:relative;width:min(896px,100%);aspect-ratio:14 / 10;background:var(--ink);border:4px solid var(--ink);outline:4px solid var(--gold);border-radius:10px 4px 12px 5px/5px 12px 4px 10px;overflow:hidden;box-shadow:6px 6px #1e1a14d9}.arcade-shell--desktop .canvas-frame{width:min(100%,calc((100dvh - 104px)*1.4));max-height:calc(100dvh - 104px)}.game-canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;cursor:crosshair}.goal-box{position:absolute;top:10px;left:10px;z-index:2;max-width:min(360px,60%);padding:7px 14px 8px;pointer-events:none}.goal-line{font-size:21px;font-weight:700;line-height:1.15}.goal-meta{font-size:14px;font-weight:700;color:#8a4a00;margin-top:2px}.goal-hint{font-size:14px;color:var(--ink-soft)}.stage-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;background:#1e1a148c;display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}.title-card,.result-card{max-width:560px;width:100%;margin:auto 0;padding:20px 24px;text-align:center}.result-card--fail{background:#f8e0b8}.result-card--pause .result-title{color:var(--ink)}.btn-ghost--lg{padding:14px 26px;font-size:20px}.result-card--win{background:#f1efc0}.title-lockup{display:block;margin:0 auto 14px;max-width:100%;height:auto;background:var(--ink);border-radius:12px;padding:6px 18px}.title-pitch{font-size:20px;font-weight:700;line-height:1.35;margin:0 0 8px}.title-goal{display:inline-block;font-size:18px;font-weight:700;margin:0 0 10px;padding:4px 12px;background:#fbd98e;border:2px solid var(--ink);border-radius:8px}.title-sub{font-size:17px;line-height:1.4;margin:0 0 18px;color:var(--ink-soft)}.title-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:16px}.controls-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;font-size:15px;font-weight:600;color:var(--ink-soft);border-top:2px dashed var(--gold);padding-top:12px}.result-title{font-size:40px;line-height:1.05;margin:0 0 8px;letter-spacing:.01em}.result-card--fail .result-title{color:var(--red)}.result-card--win .result-title{font-size:32px;color:#14584e}.result-copy{font-size:18px;line-height:1.4;color:var(--ink-soft);margin:0 0 14px}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;text-align:left}.result-stats div{background:var(--cream);border:2px solid var(--ink);border-radius:8px;padding:6px 12px}.result-stats dt{font-size:13px;font-weight:700;color:#8a4a00;text-transform:uppercase;letter-spacing:.05em}.result-stats dd{margin:0;font-size:19px;font-weight:700}.win-proofs{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;text-align:left;background:var(--cream);border:2px solid var(--ink);border-radius:8px;padding:8px 12px}.win-books{margin:0 0 12px;text-align:left;background:var(--cream);border:2px solid var(--ink);border-radius:8px;padding:8px 12px}.win-books__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;margin-bottom:6px;font-size:13px;font-weight:700;color:#8a4a00;text-transform:uppercase;letter-spacing:.04em}.win-books__status{color:var(--ink-soft);text-transform:none;letter-spacing:0;font-size:13px}.win-books__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}.win-books__grid div{background:var(--cream-deep);border:1.5px solid var(--ink);border-radius:6px;padding:4px 8px}.win-books__grid dt{font-size:11px;font-weight:700;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.04em}.win-books__grid dd{margin:0;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}.win-proof-row{display:flex;justify-content:space-between;gap:12px;font-size:15px}.win-proof-row a{color:var(--teal);font-weight:700;text-decoration:none}.stage-toast{position:absolute;left:50%;bottom:70px;z-index:4;transform:translate(-50%);display:inline-flex;align-items:center;gap:10px;padding:8px 16px;font-size:18px;font-weight:700}.spinner-dot{width:12px;height:12px;border-radius:999px;background:var(--orange);animation:pulseDot .9s infinite ease-in-out}@keyframes pulseDot{0%,to{opacity:.35}50%{opacity:1}}.hud-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:14px 22px;padding:14px 18px 16px}.hud-sidebar{display:flex;flex-direction:column;align-items:stretch;justify-content:safe center;gap:14px;padding:14px 16px;max-height:100%;overflow-y:auto}.hud-sidebar .hud-prompt{font-size:17px;line-height:1.25;min-height:22px}.hud-sidebar .act-list{gap:8px}.hud-sidebar .act-pill{font-size:15px;gap:8px;padding:4px 11px 4px 4px}.hud-sidebar .act-verb{padding:5px 11px;font-size:15px}.hud-sidebar .act-icon{width:24px;height:24px}.hud-sidebar .fixer-bubble{padding:9px 11px 11px 12px;gap:7px}.hud-sidebar .fixer-header{font-size:16px;gap:6px}.hud-sidebar .fixer-reason{font-size:15px;line-height:1.3}.hud-sidebar .hud-helper>.act-pill--danger{margin-top:8px}.hud-sidebar .quiet-line{font-size:13px;line-height:1.3}.hud-moves,.hud-helper{display:flex;flex-direction:column;gap:10px;min-width:0}.hud-prompt{font-size:19px;font-weight:700;color:var(--ink);min-height:26px}.hud-prompt--good{color:var(--teal)}.hud-prompt--danger{color:var(--red)}.act-list{display:flex;flex-direction:column;gap:9px}.act-pill{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:5px 14px 5px 5px;background:var(--cream);color:var(--ink);border:2.5px solid var(--ink);border-radius:30px 24px 28px 22px/24px 30px 22px 28px;box-shadow:3px 3px 0 var(--ink);font-size:18px;text-align:left;transition:transform .08s ease,box-shadow .08s ease,background .12s ease}.act-pill:hover:not(:disabled){background:#fbefd0}.act-pill:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}.act-verb{display:inline-block;padding:6px 14px;background:var(--cream-deep);border:2px solid var(--ink);border-radius:20px 16px 18px 14px/16px 20px 14px 18px;font-weight:700;white-space:nowrap}.act-text{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;line-height:1.25}.act-icon{flex:none;width:30px;height:30px;margin:-4px 0;image-rendering:pixelated}.act-key{font-family:var(--font-ui);font-size:13px;font-weight:700;color:var(--ink-soft);opacity:.75;padding:2px 7px;border:1.5px dashed var(--ink-soft);border-radius:6px;white-space:nowrap}.act-pill--main{background:#fde3a6}.act-pill--main:hover:not(:disabled){background:#ffe9b8}.act-pill--main .act-verb{background:#f6a93b}.act-pill--danger .act-verb{background:#f46b65}.act-pill--danger:hover:not(:disabled){background:#fde0dc}.act-pill:disabled{opacity:.5;box-shadow:none;border-style:dashed;cursor:not-allowed}.act-pill:disabled .act-text{font-weight:500;font-style:italic}.act-pill--sm{display:inline-flex;align-items:center;width:auto;gap:6px;padding:3px 9px 3px 3px;font-size:14px;box-shadow:2px 2px 0 var(--ink);white-space:nowrap}.act-pill--sm.act-pill--compact{padding:3px 7px 3px 3px}.act-pill--sm.act-pill--compact:not(:has(.act-key)){padding:3px}.act-pill--sm .act-verb{padding:3px 9px}.act-pill--sm .act-key{font-size:11.5px;padding:1px 5px}.act-pill[aria-pressed=true].act-pill--sm .act-verb{background:#fbd98e}.fixer-bubble{position:relative;background:#fffaf0;border:2.5px solid var(--ink);border-radius:22px 18px 24px 16px/18px 24px 16px 22px;padding:10px 12px 12px 14px;box-shadow:3px 3px #1e1a14d9;display:flex;flex-direction:column;gap:8px}.fixer-bubble:after{content:"";position:absolute;left:26px;bottom:-12px;width:18px;height:18px;background:#fffaf0;border-right:2.5px solid var(--ink);border-bottom:2.5px solid var(--ink);transform:skew(-30deg) rotate(45deg)}.fixer-bubble--fired{background:#f1ebdc}.fixer-bubble--fired:after{background:#f1ebdc}.fixer-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:17px}.fixer-icon{image-rendering:pixelated}.fixer-state{font-size:13px;font-weight:700;padding:1px 8px;border-radius:999px;border:2px solid var(--ink);background:var(--cream);color:var(--ink)}.fixer-state--fair_offer{background:#cfebe3;color:#14584e}.fixer-state--overcharge{background:var(--red-soft);color:var(--red)}.fixer-state--fired{background:#d9d0b4;color:var(--ink-soft)}.fixer-reason{margin:0;font-size:17px;line-height:1.35;color:var(--ink)}.hud-helper>.act-pill--danger{margin-top:14px}.quiet-line{margin:0;font-size:14px;line-height:1.35;color:var(--ink-soft)}.quiet-line a{color:#8a4a00;font-weight:700}.btn-primary,.btn-amber-sm,.btn-gadget,.btn-smoke,.btn-ghost,.btn-big,.btn-fire{border:3px solid var(--ink);border-radius:10px 4px/4px 10px;color:var(--ink);box-shadow:3px 3px 0 var(--ink);transition:transform .08s ease,box-shadow .08s ease}.btn-primary:active:not(:disabled),.btn-amber-sm:active:not(:disabled),.btn-gadget:active:not(:disabled),.btn-smoke:active:not(:disabled),.btn-ghost:active:not(:disabled),.btn-big:active:not(:disabled),.btn-fire:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}.btn-primary{background:#f6a93b;padding:11px 22px;font-size:18px;font-weight:700}.btn-primary:hover:not(:disabled){background:#ffb54a}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-big{background:#f6a93b;min-width:240px;padding:16px 34px;font-size:26px;font-weight:700;letter-spacing:.02em}.btn-big:hover:not(:disabled){background:#ffb54a}.btn-amber-sm{background:#f6a93b;padding:7px 14px;font-size:18px;font-weight:700}.btn-gadget{background:var(--cream-deep);padding:7px 14px;font-size:18px;font-weight:700}.btn-gadget:hover:not(:disabled){background:#f6dd96}.btn-gadget:disabled{opacity:.45;cursor:not-allowed}.btn-smoke{background:#9ad8cb;padding:7px 14px;font-size:18px;font-weight:700}.btn-ghost{background:var(--cream);padding:6px 14px;font-size:16px;font-weight:700}.btn-ghost:hover:not(:disabled){background:#fbe9a8}.receipt-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:8px;background:#cfebe3;border:2px solid var(--ink);color:#14584e;font-size:16px;font-weight:700;text-decoration:none}.receipt-pill--practice{background:#fbd98e;color:#6b4300}.btn-fire{min-width:168px;min-height:62px;padding:8px 18px;background:#f46b65;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.btn-fire__label{font-size:24px;font-weight:700;line-height:1.05;letter-spacing:.04em}.btn-fire__sub{font-size:14px;font-weight:700;line-height:1.1}.btn-fire:disabled{background:#d9d0b4;color:var(--ink-soft);box-shadow:none;cursor:not-allowed}.btn-fire--pulse{outline:4px solid var(--orange);outline-offset:2px}.judge-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1e1a1499;display:flex;justify-content:flex-end;z-index:40}.judge-panel{width:min(640px,100vw);height:100%;overflow-y:auto;padding:24px;border-radius:0}.judge-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.judge-eyebrow{margin:0 0 4px;font-size:14px;font-weight:700;color:#8a4a00;text-transform:uppercase;letter-spacing:.06em}.judge-header h2{margin:0;font-size:24px}.judge-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.judge-chip{background:var(--cream-deep);border:2px solid var(--ink);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.judge-label{font-size:13px;color:var(--ink-soft)}.judge-chip a{color:var(--teal);font-weight:700;text-decoration:none;font-family:var(--font-mono);font-size:14px}.judge-chip--wide{grid-column:1 / -1}.judge-uaid-link{word-break:break-all;line-height:1.35}.judge-section{border-top:2px dashed var(--gold);padding-top:16px;margin-top:16px}.judge-section h3{margin:0 0 10px;font-size:18px}.judge-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:1.45;color:var(--ink-soft)}.judge-list code,.judge-section code{font-family:var(--font-mono);font-size:13px;color:var(--ink);background:var(--cream-deep);padding:2px 5px;border-radius:4px}.judge-mono{font-family:var(--font-mono);font-size:13px;color:var(--ink);background:var(--cream-deep);border:2px solid var(--ink);padding:10px;border-radius:8px;word-break:break-all}.judge-muted{color:var(--ink-soft);font-size:15px;line-height:1.45}.judge-link-path{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}.judge-path-step{flex:1 1 140px;display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:var(--cream-deep);border:2px solid var(--ink);border-radius:8px;box-shadow:2px 2px 0 var(--ink);text-decoration:none;color:var(--ink);transition:background .12s ease,transform .08s ease}.judge-path-step:hover{background:#fde3a6}.judge-path-step__k{font-size:11.5px;font-weight:700;color:#8a4a00;text-transform:uppercase;letter-spacing:.04em}.judge-path-step strong{font-family:var(--font-mono);font-size:13px;color:var(--teal);white-space:nowrap}.judge-path-arrow{font-weight:700;font-size:18px;color:#8a4a00}.judge-books-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.judge-books-grid div{background:var(--cream-deep);border:2px solid var(--ink);border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}.judge-books-grid dt{font-size:12px;font-weight:700;color:#8a4a00;text-transform:uppercase;letter-spacing:.05em}.judge-books-grid dd{margin:0;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}.judge-books-note{font-size:12.5px;color:var(--ink-soft);line-height:1.25}.proof-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.proof-item{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--cream-deep);border:2px solid var(--ink);border-radius:8px;padding:10px 12px}.proof-net{display:block;font-size:12px;color:var(--ink-soft)}.proof-practice-tag{margin-left:8px;font-size:12px;padding:2px 6px;border-radius:4px;background:#fbd98e;color:#6b4300}.proof-link{color:var(--teal);font-weight:700;text-decoration:none;white-space:nowrap}.baseline-links{display:flex;flex-wrap:wrap;gap:12px}.baseline-links a{color:#8a4a00;font-weight:700;text-decoration:none}.term-tip{border-bottom:2px dotted var(--orange)}@media(max-width:1120px){.arcade-shell--desktop{height:auto;min-height:100vh;overflow:visible}.arcade-shell--desktop .hud-top{flex-wrap:wrap}.desktop-workspace{grid-template-columns:1fr;align-items:start}.arcade-shell--desktop .canvas-frame{width:min(896px,100%);max-height:none}.hud-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-height:none;overflow:visible}}@media(max-width:900px){.hud-bottom,.hud-sidebar,.judge-summary,.judge-books-grid{grid-template-columns:1fr}.result-title{font-size:32px}}@media(max-width:768px),(pointer:coarse){html,body,#root{overflow-x:clip;overscroll-behavior:none;-webkit-text-size-adjust:100%}.judge-panel{overflow-wrap:anywhere;padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left))}.judge-header .btn-ghost{min-height:44px;min-width:44px;touch-action:manipulation}}.phone-workspace{display:contents}.arcade-shell--phone{min-height:100vh;min-height:100dvh;width:100%;max-width:100vw;overflow-x:clip;display:flex;flex-direction:column;gap:6px;padding:calc(6px + env(safe-area-inset-top)) env(safe-area-inset-right) calc(6px + env(safe-area-inset-bottom)) env(safe-area-inset-left);overscroll-behavior:none}.hud-top--phone{flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:6px;margin:0 6px;padding:5px 8px;border-width:2.5px;box-shadow:inset 0 0 0 2px var(--gold),2px 2px #1e1a14d9}.hud-phone-status{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;flex:1 1 auto}.hud-top--phone .hud-timer{font-size:16px;padding:4px 8px;gap:5px;min-height:36px;white-space:nowrap;flex-shrink:0}.hud-top--phone .hud-chase-pill{font-size:13px;padding:4px 7px;white-space:nowrap;flex-shrink:0}.hud-phone-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;flex:0 0 auto}.phone-top-btn{min-height:44px;min-width:56px;padding:0 12px;background:var(--cream-deep);color:var(--ink);border:2px solid var(--ink);border-radius:10px 4px/4px 10px;box-shadow:2px 2px 0 var(--ink);font-size:15px;font-weight:700;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .08s ease,box-shadow .08s ease,background .12s ease}.phone-top-btn:active:not(:disabled){transform:translate(1.5px,1.5px);box-shadow:.5px .5px 0 var(--ink)}.phone-top-btn--active{background:#fbd98e}.phone-top-btn:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}.arcade-shell--phone .stage-wrap{flex:0 0 auto;width:100%;padding:0}.arcade-shell--phone .canvas-frame{width:100%;box-sizing:content-box;overflow:clip;aspect-ratio:14 / 10;border-left:0;border-right:0;border-top:3px solid var(--ink);border-bottom:3px solid var(--ink);outline:none;border-radius:0;box-shadow:0 2px 0 var(--gold),0 -2px 0 var(--gold)}.arcade-shell--phone .game-canvas{cursor:default;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.arcade-shell--phone .goal-box{top:5px;left:5px;max-width:min(230px,60%);padding:4px 8px 5px;border-width:2px;box-shadow:inset 0 0 0 1.5px var(--gold),2px 2px #1e1a14cc}.arcade-shell--phone .goal-line{font-size:13px;line-height:1.15}.arcade-shell--phone .goal-meta{font-size:11px;margin-top:1px}.arcade-shell--phone .goal-hint{font-size:11px;line-height:1.15}.arcade-shell--phone .stage-overlay{padding:6px;align-items:flex-start;justify-content:center;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.arcade-shell--phone .title-card,.arcade-shell--phone .result-card{margin:auto 0;width:100%;max-width:100%;padding:10px 12px;border-width:2.5px;box-shadow:inset 0 0 0 2px var(--gold),2px 2px #1e1a14d9}.arcade-shell--phone .title-card{display:flex;flex-direction:column;align-items:center}.arcade-shell--phone .title-lockup{order:1;height:30px;width:auto;margin:0 auto 6px;padding:3px 10px;border-radius:8px}.arcade-shell--phone .title-goal{order:2;font-size:13px;line-height:1.2;margin:0 0 6px;padding:3px 8px}.arcade-shell--phone .title-buttons{order:3;gap:8px;margin-bottom:6px;width:100%}.arcade-shell--phone .title-pitch{order:4;font-size:13px;font-weight:600;line-height:1.25;margin:0 0 5px}.arcade-shell--phone .title-sub{order:5;font-size:12px;line-height:1.25;margin:0 0 6px}.arcade-shell--phone .controls-legend{order:6;width:100%;font-size:12px;padding-top:6px;gap:4px 10px}.arcade-shell--phone .btn-primary,.arcade-shell--phone .btn-ghost,.arcade-shell--phone .btn-big{min-height:44px;padding:8px 14px;font-size:15px;border-width:2.5px;box-shadow:2px 2px 0 var(--ink);touch-action:manipulation}.arcade-shell--phone .btn-big{min-width:136px;font-size:17px;padding:10px 18px}.arcade-shell--phone .btn-ghost--lg{padding:10px 16px;font-size:16px}.arcade-shell--phone .result-title{font-size:24px;margin:0 0 4px}.arcade-shell--phone .result-card--win{display:flex;flex-direction:column;align-items:stretch}.arcade-shell--phone .result-card--win .result-title{order:1;font-size:21px}.arcade-shell--phone .result-card--win .result-copy{order:2;margin-bottom:8px}.arcade-shell--phone .result-card--win .title-buttons{order:3;margin-bottom:8px}.arcade-shell--phone .result-card--win .result-stats{order:4;margin-bottom:6px}.arcade-shell--phone .result-card--win .win-proofs{order:5;margin-bottom:0}.arcade-shell--phone .result-copy{font-size:13.5px;line-height:1.3;margin:0 0 8px}.arcade-shell--phone .result-stats{gap:6px;margin:0 0 10px}.arcade-shell--phone .result-stats div{padding:4px 8px;border-width:2px}.arcade-shell--phone .result-stats dt{font-size:10.5px}.arcade-shell--phone .result-stats dd{font-size:13.5px}.arcade-shell--phone .win-proofs{gap:4px;margin-bottom:10px;padding:6px 8px}.arcade-shell--phone .win-proof-row{font-size:12px;gap:8px}.arcade-shell--phone .stage-toast{bottom:8px;max-width:calc(100% - 16px);padding:6px 10px;gap:8px;font-size:13px;line-height:1.25;border-width:2px;box-shadow:inset 0 0 0 1.5px var(--gold),2px 2px #1e1a14d9}.hud-bottom--phone{flex:1 1 auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 6px;padding:8px 10px;border-width:2.5px;box-shadow:inset 0 0 0 2px var(--gold),2px 2px #1e1a14d9}.phone-info{display:flex;flex-direction:column;gap:6px;min-width:0}.hud-bottom--phone .hud-prompt{font-size:14px;line-height:1.25;min-height:0}.hud-bottom--phone .fixer-bubble{padding:7px 10px;gap:4px;border-width:2px;border-radius:14px 12px 16px 10px/12px 16px 10px 14px;box-shadow:2px 2px #1e1a14d9}.hud-bottom--phone .fixer-bubble:after{display:none}.hud-bottom--phone .fixer-header{overflow-wrap:anywhere;font-size:14px;gap:6px}.hud-bottom--phone .fixer-state{font-size:11.5px;padding:1px 7px;border-width:1.5px}.phone-limit-tag{margin-left:auto;font-size:12px;font-weight:700;color:#14584e;background:#cfebe3;border:1.5px solid var(--ink);border-radius:999px;padding:1px 7px;white-space:nowrap}.hud-bottom--phone .fixer-reason{font-size:14px;line-height:1.3}.phone-current-action .act-pill{min-height:46px;padding:4px 10px 4px 4px;gap:8px;font-size:15px;border-width:2px;box-shadow:2px 2px 0 var(--ink);touch-action:manipulation}.phone-current-action .act-verb{padding:5px 10px;font-size:14px}.phone-current-action .act-icon{width:24px;height:24px}.touch-deck{flex:0 0 auto;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px 2px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.touch-side{display:contents}.phone-portrait-budget{position:sticky;top:env(safe-area-inset-top);z-index:9;flex:0 0 auto;margin:0 6px}.phone-portrait-budget .budget-meter{width:100%;justify-content:space-between;border-width:2px;box-shadow:2px 2px #1e1a14cc}.touch-deck--disabled{opacity:.45}.touch-stick-wrap{flex:0 0 auto;display:flex;align-items:center;justify-content:center}.touch-stick{position:relative;width:118px;height:118px;border-radius:50%;background:var(--cream-deep);border:3px solid var(--ink);box-shadow:inset 0 0 0 3px var(--gold),3px 3px 0 var(--ink);display:flex;align-items:center;justify-content:center;touch-action:none;-webkit-tap-highlight-color:transparent}.touch-stick--active{background:#f5de9e}.touch-stick__dir{position:absolute;font-size:11px;line-height:1;color:var(--ink-soft);opacity:.65;pointer-events:none}.touch-stick__dir--n{top:7px;left:50%;transform:translate(-50%)}.touch-stick__dir--s{bottom:7px;left:50%;transform:translate(-50%)}.touch-stick__dir--w{left:8px;top:50%;transform:translateY(-50%)}.touch-stick__dir--e{right:8px;top:50%;transform:translateY(-50%)}.touch-stick__knob{width:52px;height:52px;border-radius:50%;background:#f6a93b;border:2.5px solid var(--ink);box-shadow:2px 2px 0 var(--ink);display:flex;align-items:center;justify-content:center;pointer-events:none;will-change:transform}.touch-stick__label{font-size:13px;font-weight:700;color:var(--ink)}.touch-buttons{flex:1 1 auto;margin-left:auto;min-width:0;max-width:236px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.touch-btn{min-height:52px;padding:6px 8px;background:var(--cream);color:var(--ink);border:2.5px solid var(--ink);border-radius:12px 6px/6px 12px;box-shadow:2.5px 2.5px 0 var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:14px;font-weight:700;line-height:1.1;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;transition:transform .06s ease,box-shadow .06s ease,background .1s ease}.touch-btn:disabled{box-shadow:none;cursor:not-allowed}.touch-btn__icon{image-rendering:pixelated;flex:none}.touch-btn__title{white-space:nowrap}.touch-btn--toss{flex-direction:row;gap:5px}.touch-btn--open{grid-column:1 / -1;min-height:50px;background:var(--cream-deep);font-size:16px}.touch-btn--ready{background:#fde3a6}.touch-btn--open.touch-btn--ready{background:#f6a93b}.touch-btn--muted{opacity:.72}.touch-btn--active,.touch-btn:active:not(:disabled){transform:translate(2px,2px);box-shadow:.5px .5px 0 var(--ink);background:#f6a93b}.touch-sprint-bar{width:100%;max-width:64px;height:6px;border-radius:999px;background:#1e1a142e;border:1.5px solid var(--ink);overflow:hidden}.touch-sprint-fill{display:block;height:100%;background:var(--teal);transition:width .08s linear}.phone-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;overflow-y:auto;background:transparent;display:flex;align-items:flex-start;justify-content:center;padding:calc(14px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))}.phone-menu-backdrop::backdrop{background:#1e1a1494}.phone-menu-sheet{width:min(400px,100%);padding:14px;display:flex;flex-direction:column;gap:12px}.phone-menu-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.phone-menu-header .hud-brand{flex-wrap:wrap}.phone-menu-header .hud-title{font-size:20px}.phone-menu-close{min-height:44px;min-width:44px;padding:6px 14px;touch-action:manipulation}.phone-menu-list{display:flex;flex-direction:column;gap:10px}.phone-menu-list .act-pill{min-height:48px;font-size:16px;touch-action:manipulation}.phone-menu-list .act-pill[aria-pressed=true] .act-verb{background:#fbd98e}@media(max-width:380px){.hud-top--phone .hud-timer{font-size:15px;padding:4px 6px}.phone-top-btn{padding:0 10px;font-size:14px}.touch-stick{width:112px;height:112px}.touch-stick__knob{width:48px;height:48px}.touch-deck{gap:10px}.touch-btn--toss{flex-wrap:wrap;padding-inline:4px}}.arcade-shell--phone-landscape{height:100vh;height:100dvh;max-height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);gap:4px;padding:calc(4px + env(safe-area-inset-top)) env(safe-area-inset-right) calc(4px + env(safe-area-inset-bottom)) env(safe-area-inset-left)}.hud-top--phone-landscape{margin:0 max(8px,env(safe-area-inset-left));padding:3px 8px;gap:8px;border-width:2px;box-shadow:inset 0 0 0 1.5px var(--gold),2px 2px #1e1a14d9}.hud-top--phone-landscape .hud-timer{font-size:14px;min-height:28px;padding:2px 7px;gap:4px}.hud-top--phone-landscape .hud-chase-pill{font-size:12px;padding:2px 6px}.hud-top--phone-landscape .phone-top-btn{min-height:30px;min-width:52px;padding:0 10px;font-size:13px}.hud-top--phone-landscape .budget-meter--compact{padding:2px 8px;gap:6px}.hud-top--phone-landscape .budget-meter--compact .budget-meter__text{font-size:12px}.hud-top--phone-landscape .budget-meter--compact .budget-meter__track{width:58px;min-width:44px;height:6px}.arcade-shell--phone-landscape .stage-wrap{position:relative;container-type:size;width:100%;height:100%;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0}.arcade-shell--phone-landscape .canvas-frame{width:min(calc(100% - 10px),calc((100cqh - 8px)*1.4));height:auto;box-sizing:border-box;border:3px solid var(--ink);border-radius:8px;box-shadow:0 0 0 2px var(--gold),3px 3px #1e1a14bf}.arcade-shell--phone-landscape .game-canvas{touch-action:none}.arcade-shell--phone-landscape .goal-box{top:4px;left:4px;max-width:min(210px,56%);padding:3px 7px}.arcade-shell--phone-landscape .goal-line{font-size:12px}.arcade-shell--phone-landscape .goal-meta,.arcade-shell--phone-landscape .goal-hint{font-size:10px}.arcade-shell--phone-landscape .win-books__grid{grid-template-columns:repeat(4,minmax(0,1fr))}.arcade-shell--phone-landscape .win-books__grid dd{font-size:13px}.touch-deck--landscape{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;width:100%;height:100%;padding:6px 8px 8px;pointer-events:none;align-items:stretch;justify-content:space-between;gap:0}.touch-deck--landscape .touch-side{display:flex;flex-direction:column;justify-content:space-between;gap:6px;pointer-events:none}.touch-deck--landscape .touch-side--left{align-items:flex-start;width:clamp(124px,21vw,186px)}.touch-deck--landscape .touch-side--right{align-items:flex-end;width:clamp(144px,23vw,198px)}.touch-deck--landscape .touch-stick-wrap,.touch-deck--landscape .touch-buttons,.touch-deck--landscape .landscape-action-pill{pointer-events:auto}.touch-deck--landscape .touch-stick-wrap{margin-top:auto}.touch-deck--landscape .touch-stick{width:104px;height:104px;background:#ebd9a3eb}.touch-deck--landscape .touch-stick__knob{width:44px;height:44px}.touch-deck--landscape .touch-buttons{flex:0 0 auto;width:100%;max-width:174px;gap:6px;margin-top:auto}.touch-deck--landscape .touch-btn{min-height:44px;padding:4px 6px;font-size:13px;background:#f7ebc8f0}.touch-deck--landscape .touch-btn--open{min-height:42px;font-size:14px;background:#ebd9a3f0}.touch-deck--landscape .touch-btn--open.touch-btn--ready{background:#f6a93b}.touch-deck--landscape .touch-btn--ready{background:#fde3a6}.landscape-helper-chip{width:100%;padding:5px 8px;background:#fffaf0f0;border:2px solid var(--ink);border-radius:10px;box-shadow:2px 2px #1e1a14bf;pointer-events:none}.landscape-helper-chip--fired{background:#f1ebdceb}.landscape-helper-chip__head{display:flex;align-items:center;gap:5px;font-size:11.5px;line-height:1.15;margin-bottom:2px}.landscape-helper-chip__msg{margin:0;font-size:11px;line-height:1.2;color:var(--ink-soft);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.landscape-action-pill{width:100%;max-width:190px}.landscape-action-pill .act-pill{min-height:40px;padding:3px 8px 3px 3px;gap:6px;font-size:12.5px;border-width:2px;box-shadow:2px 2px 0 var(--ink);touch-action:manipulation}.landscape-action-pill .act-verb{padding:4px 7px;font-size:12px}.landscape-action-pill .act-icon{display:none}@media(max-width:720px)and (orientation:landscape){.landscape-helper-chip{display:none}}@media(max-width:380px){.hud-top--phone .hud-chase-pill{font-size:12px}}@media(max-width:420px)and (orientation:portrait){.arcade-shell--phone .win-books__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
