/* The Gyoza Job: full-screen portrait game. UI type is white Archivo; the
   world under it is neon Tel Aviv dusk. Only the play area takes touch-action.
   100dvh + safe-area insets; no zoom, no pull-to-refresh, no long-press
   selection while playing. */
:root {
    --blue: #004190;
    --blue-ink: #00357a;
    --ink: #0b0a24;
    --pink: #ff5fb0;
    --gold: #ffc46b;
    --teal: #1fb8a8;
    --white: #ffffff;
    --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--white); }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body { font-family: var(--font); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow: hidden; position: fixed; inset: 0; width: 100%; height: 100dvh; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }

.app { position: absolute; inset: 0; overflow: hidden; background: var(--ink); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.play { position: absolute; inset: 0; touch-action: none; }
.play[hidden] { display: none; }

/* ---------- type ---------- */
/* White Archivo black italic with a hard brand-blue drop: the same lockup as the key art and the OG image. */
.lockup { font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; text-shadow: 0.07em 0.07em 0 var(--blue); font-stretch: 105%; }
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; opacity: 0.85; }
.lead { font-size: 16px; opacity: 0.92; max-width: 32ch; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 800; font-size: 17px; letter-spacing: 0.01em; text-decoration: none; touch-action: manipulation; transition: transform 0.15s var(--ease), background 0.15s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--white); color: var(--blue); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 255, 255, 0.4); }
.btn-primary:hover { background: #f0f4ff; }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.link { background: none; border: 0; color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; font-weight: 600; opacity: 0.85; padding: 10px; }
.btn-ico { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(8, 6, 30, 0.55); color: var(--white); display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); touch-action: manipulation; }
.btn-ico svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--sat) + 16px) calc(var(--sar) + 20px) calc(var(--sab) + 20px) calc(var(--sal) + 20px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(8, 6, 30, 0.55), rgba(8, 6, 30, 0.15) 30%, rgba(8, 6, 30, 0.25) 60%, rgba(8, 6, 30, 0.88) 100%); }
.screen.solid::before { background: linear-gradient(to bottom, rgba(8, 6, 30, 0.72), rgba(8, 6, 30, 0.86)); }
.screen > * { position: relative; }
.screen.enter { animation: screenIn 0.45s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* title */
.title { justify-content: flex-end; gap: 18px; }
.title .top { display: flex; justify-content: space-between; align-items: center; position: absolute; top: calc(var(--sat) + 14px); left: 16px; right: 16px; }
.title .logo { height: 34px; width: auto; opacity: 0.95; }
.title h1 { font-size: clamp(54px, 15.5vw, 76px); max-width: 9ch; }
.title .tagline { font-size: 17px; opacity: 0.92; max-width: 30ch; }
.looks { display: flex; gap: 10px; margin-top: 4px; }
.look { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 10px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(8, 6, 30, 0.45); color: var(--white); font-weight: 700; font-size: 13px; transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease); }
.look canvas { width: 72px; height: 72px; display: block; }
.look[aria-pressed="true"] { border-color: var(--white); background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.title .cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.title .cta .btn { width: 100%; }
.codebox { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); font-size: 13px; }
.codebox .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.codebox b { font-size: 18px; letter-spacing: 0.06em; white-space: nowrap; }
.codebox .btn { flex: none; min-height: 40px; padding: 0 16px; font-size: 14px; }
.status { font-size: 13px; opacity: 0.85; }

/* call */
.call { justify-content: center; align-items: center; }
.phone { width: min(100%, 360px); border-radius: 28px; background: rgba(8, 6, 30, 0.78); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.phone .caller { display: flex; align-items: center; gap: 14px; }
.phone .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; position: relative; flex: none; }
.phone .avatar::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); animation: ring 1.4s ease-out infinite; }
.calm .phone .avatar::after { animation: none; opacity: 0.5; }
@keyframes ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.phone .avatar svg { width: 28px; height: 28px; fill: var(--white); }
.phone .who { font-weight: 800; font-size: 20px; }
.bubbles { display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.35; animation: bubbleIn 0.35s var(--ease) both; }
.calm .bubble { animation: none; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.bubble.them { align-self: flex-start; background: rgba(255, 255, 255, 0.14); border-bottom-left-radius: 6px; }
.bubble.you { align-self: flex-end; background: var(--blue); border-bottom-right-radius: 6px; }
.phone .actions { display: flex; gap: 10px; }
.phone .actions .btn { flex: 1; }

/* HUD */
.hud { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--sat) + 12px) calc(var(--sar) + 14px) 0 calc(var(--sal) + 14px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.hud .row { display: flex; align-items: center; gap: 10px; }
.hud .stat { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 12px; border-radius: 14px; background: rgba(8, 6, 30, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-width: 72px; }
.hud .stat .k { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.hud .stat .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hud .grow { flex: 1; }
.hud .btns { display: flex; gap: 8px; pointer-events: auto; }
.hud .bar { height: 8px; border-radius: 999px; background: rgba(8, 6, 30, 0.55); overflow: hidden; position: relative; }
.hud .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--gold), var(--pink)); border-radius: 999px; transition: width 0.25s linear; }
.hud .mission { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; display: flex; justify-content: space-between; }
.hud .heat { display: flex; gap: 4px; }
.hud .heat i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.hud .heat i.on { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.strip { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%) skewX(-8deg); padding: 10px 26px; background: var(--blue); color: var(--white); font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); pointer-events: none; animation: stripIn 2.6s var(--ease) both; }
.strip small { display: block; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; text-transform: none; opacity: 0.95; margin-top: 2px; }
@keyframes stripIn { 0% { opacity: 0; transform: translate(-60%, -50%) skewX(-8deg); } 12% { opacity: 1; transform: translate(-50%, -50%) skewX(-8deg); } 82% { opacity: 1; transform: translate(-50%, -50%) skewX(-8deg); } 100% { opacity: 0; transform: translate(-40%, -50%) skewX(-8deg); } }
.calm .strip { animation: stripCalm 2.6s linear both; }
@keyframes stripCalm { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

.pop { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); font-weight: 900; font-style: italic; font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0.05em 0.05em 0 var(--pink), 0 4px 20px rgba(0, 0, 0, 0.6); pointer-events: none; opacity: 0; }
.pop.go { animation: popIn 0.9s var(--ease) both; }
.pop.bad { text-shadow: 0.05em 0.05em 0 #ff7a4d, 0 4px 20px rgba(0, 0, 0, 0.6); }
@keyframes popIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -54%) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -60%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
.calm .pop.go { animation: popCalm 0.9s linear both; }
@keyframes popCalm { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

.hint { position: absolute; left: 50%; bottom: calc(var(--sab) + 22px); transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(8, 6, 30, 0.6); font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; animation: hintFade 4.5s linear both; }
@keyframes hintFade { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* keyboard steer buttons (visible only on hover devices) */
.keys { position: absolute; bottom: calc(var(--sab) + 70px); left: 16px; right: 16px; display: none; justify-content: space-between; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .keys { display: flex; } }
.keys button { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); background: rgba(8, 6, 30, 0.45); color: var(--white); font-size: 24px; }

/* choice */
.choice { justify-content: flex-start; gap: 12px; }
.choice .head { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.choice h2 { font-size: clamp(34px, 10vw, 46px); }
.choice .counter { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--blue); align-self: flex-start; }
.choice .counter img { height: 26px; width: auto; }
.choice .counter span { font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-bottom: 120px; }
.card { width: calc(50% - 5px); min-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; border-radius: 22px; border: 2px solid rgba(255, 255, 255, 0.18); background: rgba(14, 11, 46, 0.94); color: var(--white); text-align: center; transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cards.one .card { width: min(100%, 300px); }
.card .ph { width: 118px; height: 118px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 45%, var(--glow, #fff) 0%, rgba(8, 6, 30, 0) 72%); display: grid; place-items: center; }
.card .ph img { width: 128px; height: 128px; object-fit: cover; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.card .name { font-weight: 800; font-size: 15px; line-height: 1.15; text-wrap: balance; }
.card .tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 18px; }
.card .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.card .tag.vegan { background: #2a9d5c; }
.card .line { font-size: 12px; opacity: 0.8; line-height: 1.3; }
.card[aria-pressed="true"] { border-color: var(--white); transform: translateY(-4px) scale(1.02); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 50px var(--glow, #fff); }
.choice .take { position: absolute; left: 20px; right: 20px; bottom: calc(var(--sab) + 18px); display: flex; flex-direction: column; gap: 8px; align-items: stretch; z-index: 1; }
/* A solid fade under the sticky button, so cards scrolling beneath it never show through. */
.choice .take::before { content: ""; position: absolute; left: -20px; right: -20px; top: -36px; bottom: calc(-18px - var(--sab)); z-index: -1; background: linear-gradient(to bottom, rgba(11, 10, 46, 0) 0, rgba(11, 10, 46, 0.96) 36px); pointer-events: none; }
.choice .take .btn { width: 100%; }
.choice .note { font-size: 13px; opacity: 0.85; text-align: center; }
.choice .alert { background: var(--pink); color: var(--ink); font-weight: 700; padding: 8px 14px; border-radius: 12px; font-size: 14px; text-align: center; }

/* paid beat */
.paid { justify-content: center; align-items: center; gap: 16px; text-align: center; }
.paid .stamp { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 12vw, 60px); line-height: 0.95; padding: 14px 24px; border: 6px solid var(--white); border-radius: 18px; transform: rotate(-6deg); animation: stamp 0.5s var(--ease) both; text-shadow: none; }
.calm .paid .stamp { animation: none; }
@keyframes stamp { 0% { transform: rotate(-6deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-6deg) scale(0.96); opacity: 1; } 100% { transform: rotate(-6deg) scale(1); } }
.paid .receipt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); }
.paid .receipt img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.paid .receipt b { display: block; font-size: 16px; }
.paid .receipt span { font-size: 13px; opacity: 0.85; }

/* result */
.result { justify-content: flex-end; gap: 14px; }
.result h2 { font-size: clamp(40px, 12vw, 56px); }
.result .sub { font-size: 16px; opacity: 0.92; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats .cell { padding: 10px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); text-align: center; }
.stats .cell b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats .cell span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.fuel { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: rgba(8, 6, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); }
.fuel .ph { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; background: radial-gradient(circle at 50% 45%, var(--glow, #fff) 0%, rgba(8, 6, 30, 0) 72%); display: grid; place-items: center; }
.fuel .ph img { width: 80px; height: 80px; object-fit: cover; }
.fuel .k { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.fuel .n { font-size: 19px; font-weight: 800; line-height: 1.15; }
.result .actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.result .actions .btn { width: 100%; }
.result .msg { font-size: 14px; text-align: center; opacity: 0.92; min-height: 20px; }

/* claim form */
.claim { justify-content: flex-end; gap: 12px; }
.claim h2 { font-size: clamp(34px, 10vw, 46px); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.field .in { display: flex; align-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.14); border: 1.5px solid rgba(255, 255, 255, 0.35); padding: 0 14px; }
.field .in:focus-within { border-color: var(--white); background: rgba(255, 255, 255, 0.2); }
.field .in span { opacity: 0.8; font-weight: 700; }
.field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--white); font: inherit; font-size: 17px; padding: 13px 4px; outline: none; }
.field input::placeholder { color: rgba(255, 255, 255, 0.55); }
.seg { display: flex; gap: 6px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1); font-weight: 700; font-size: 14px; text-align: center; padding: 6px; }
.seg input:checked + span { background: var(--white); color: var(--blue); border-color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }
.err { color: var(--gold); font-size: 14px; font-weight: 600; min-height: 18px; }
.claim .btn { width: 100%; }

/* code */
.code { justify-content: flex-end; gap: 12px; }
.code h2 { font-size: clamp(34px, 10vw, 46px); }
.bigcode { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 20px; background: var(--white); color: var(--blue); }
.bigcode b { font-size: clamp(20px, 6.6vw, 30px); font-weight: 900; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.bigcode button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: var(--white); font-weight: 800; font-size: 14px; }
.code .actions { display: flex; flex-direction: column; gap: 8px; }
.code .actions .btn { width: 100%; }
.code .fine { font-size: 13px; opacity: 0.88; text-align: center; line-height: 1.45; }
.code .fine a { font-weight: 700; }
.code .counter-line { text-align: center; font-size: 15px; opacity: 0.92; }
.fallback { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); display: flex; flex-direction: column; gap: 8px; }
.fallback b { font-size: 16px; }

/* pause */
.pausescr { justify-content: center; align-items: center; gap: 14px; text-align: center; }
.pausescr h2 { font-size: 44px; }
.pausescr .btn { min-width: 220px; }

/* finale / loading */
.loading { justify-content: center; align-items: center; }
.loading p { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; opacity: 0.85; }

@media (min-width: 560px) {
    .screen { padding-left: max(calc(var(--sal) + 20px), calc(50% - 250px)); padding-right: max(calc(var(--sar) + 20px), calc(50% - 250px)); }
    .choice .take { left: max(20px, calc(50% - 250px)); right: max(20px, calc(50% - 250px)); }
    .hud { padding-left: max(14px, calc(50% - 250px)); padding-right: max(14px, calc(50% - 250px)); }
}
@media (prefers-reduced-motion: reduce) {
    .screen.enter, .bubble, .strip, .pop.go, .paid .stamp { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .phone .avatar::after { animation: none; }
    .btn, .look, .card { transition: none; }
}

/* ---------- cutscene feel: letterbox, flash, caption, punchy reveals ---------- */
.bars i { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 0.55s var(--ease); pointer-events: none; z-index: 1; }
.bars i:first-child { top: 0; } .bars i:last-child { bottom: 0; }
.cine .bars i { height: 8.5dvh; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.flash.go { animation: flash 0.6s ease-out both; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
.cap { position: absolute; left: 0; right: 0; top: calc(8.5dvh + 22px); text-align: center; font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); pointer-events: none; z-index: 2; animation: screenIn 0.6s var(--ease) both; padding: 0 20px; }
.screen { z-index: 3; } .hud, .strip, .pop, .hint, .keys { z-index: 2; }
.hud:not([hidden]) { animation: hudIn 0.5s var(--ease) both; }
@keyframes hudIn { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
.result.enter h2 { animation: slam 0.55s var(--ease) both; transform-origin: left bottom; }
@keyframes slam { 0% { opacity: 0; transform: scale(1.9) rotate(-3deg); } 60% { opacity: 1; transform: scale(0.97); } 100% { transform: none; } }
.result.enter .stats .cell { animation: cellIn 0.45s var(--ease) both; }
.result.enter .stats .cell:nth-child(1) { animation-delay: 0.35s; } .result.enter .stats .cell:nth-child(2) { animation-delay: 0.5s; } .result.enter .stats .cell:nth-child(3) { animation-delay: 0.65s; }
.result.enter .fuel { animation: cellIn 0.5s var(--ease) 0.85s both; } .result.enter .actions { animation: cellIn 0.5s var(--ease) 1.1s both; }
@keyframes cellIn { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
.card { animation: cellIn 0.4s var(--ease) both; } .card:nth-child(2) { animation-delay: 0.06s; } .card:nth-child(3) { animation-delay: 0.12s; } .card:nth-child(4) { animation-delay: 0.18s; } .card:nth-child(5) { animation-delay: 0.24s; } .card:nth-child(6) { animation-delay: 0.3s; }
.calm .result.enter h2, .calm .result.enter .stats .cell, .calm .result.enter .fuel, .calm .result.enter .actions, .calm .card, .calm .hud:not([hidden]), .calm .cap { animation: none; }
.calm .bars i { transition: none; }

/* ---------- v2: minimap, radio, the counter cutscene ---------- */
.mini { position: absolute; right: calc(var(--sar) + 14px); top: calc(var(--sat) + 118px); width: 104px; height: 104px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.55); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.radio { position: absolute; left: calc(var(--sal) + 14px); top: calc(var(--sat) + 122px); max-width: calc(100% - 150px); padding: 8px 12px; border-radius: 14px; background: rgba(8, 6, 30, 0.7); border-left: 4px solid var(--pink); font-size: 13px; line-height: 1.3; z-index: 2; pointer-events: none; animation: hintFade 4.2s linear both; }
.radio b { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.radio span { font-style: italic; opacity: 0.92; }
.counter { justify-content: flex-end; align-items: center; padding-bottom: calc(8.5dvh + 22px); }
.counter::before { background: linear-gradient(to bottom, #00275c, #004190 55%, #00357a); }
.shop { position: absolute; inset: 8.5dvh 0; overflow: hidden; }
.shop::before { content: ""; position: absolute; left: 8%; right: 8%; top: 22%; height: 46%; border-radius: 14px; background: radial-gradient(ellipse at 50% 100%, rgba(255, 170, 90, 0.9), rgba(255, 140, 80, 0.25) 60%, rgba(10, 8, 40, 0.6)); box-shadow: inset 0 0 0 6px #0a52b0; }
.shop-logo { position: absolute; left: 50%; top: 4%; width: 150px; transform: translateX(-50%); }
.cook { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 23%; width: min(64%, 270px); animation: cellIn 0.6s var(--ease) both; }
.shop-top { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(#e9e3f4, #cfc7e0 18%, #0a52b0 18%, #003a82); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3); }
.subs { min-height: 76px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.subline { text-align: center; font-size: 19px; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); animation: bubbleIn 0.35s var(--ease) both; max-width: 30ch; }
.subline b { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.skipbtn { position: absolute; right: 16px; top: calc(8.5dvh + 12px); min-height: 40px; padding: 0 16px; font-size: 14px; }
.paid .receipt { animation: plateIn 0.7s var(--ease) 0.15s both; }
@keyframes plateIn { from { opacity: 0; transform: translateX(-70%) rotate(-4deg); } to { opacity: 1; transform: none; } }
.calm .cook, .calm .subline, .calm .paid .receipt { animation: none; }

.hud .stat { min-width: 0; padding: 6px 10px; } .hud .stat .k { white-space: nowrap; font-size: 9px; } .hud .row { gap: 8px; } .hud .btns { gap: 6px; }

/* ---------- choice v2: one screen, no scrolling (tokens + details + fixed button) ---------- */
.choice { height: 100dvh; overflow: hidden; gap: 8px; padding-top: calc(var(--sat) + 12px); padding-bottom: calc(var(--sab) + 96px); justify-content: flex-start; }
.choice .head { gap: 4px; padding-top: 0; flex: none; }
.choice .counter { padding: 5px 10px; } .choice .counter img { height: 20px; }
.choice h2 { font-size: clamp(26px, 8.4vw, 40px); }
.tokens { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 6px 4px; }
.token { width: calc((100% - 8px) / 3); max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; background: none; border: 0; color: var(--white); touch-action: manipulation; animation: cellIn 0.4s var(--ease) both; }
.token .ph { width: min(104px, 26vw, 13.5dvh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--glow, #fff) 0%, rgba(14, 11, 46, 0.9) 74%); border: 3px solid rgba(255, 255, 255, 0.22); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.token .ph img { width: 108%; height: 108%; object-fit: cover; display: block; }
.token .name { font-weight: 800; font-size: 12.5px; line-height: 1.15; text-align: center; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.token[aria-pressed="true"] .ph { border-color: var(--white); transform: scale(1.07); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 34px var(--glow, #fff); }
.tokens.n1 .token .ph, .tokens.n2 .token .ph { width: min(150px, 38vw, 20dvh); }
.details { flex: none; min-height: 92px; padding: 10px 14px; border-radius: 18px; background: rgba(14, 11, 46, 0.92); border: 1px solid rgba(255, 255, 255, 0.2); display: flex; flex-direction: column; gap: 5px; justify-content: center; text-align: center; }
.details .d-name { font-weight: 800; font-size: 17px; line-height: 1.15; }
.details .d-line { font-size: 13px; line-height: 1.3; opacity: 0.9; }
.details .tags { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.details .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.details .tag.vegan { background: #2a9d5c; }
.choice .take { position: fixed; left: calc(var(--sal) + 20px); right: calc(var(--sar) + 20px); bottom: calc(var(--sab) + 16px); z-index: 4; }
.choice .take::before { content: ""; position: absolute; left: -40px; right: -40px; top: -22px; bottom: calc(-16px - var(--sab)); z-index: -1; background: linear-gradient(to bottom, rgba(11, 10, 46, 0) 0, rgba(11, 10, 46, 0.97) 22px); pointer-events: none; }
@media (max-height: 600px) { .choice .counter { display: none; } .details { min-height: 78px; } }
@media (min-width: 560px) { .choice .take { left: max(20px, calc(50% - 250px)); right: max(20px, calc(50% - 250px)); } }
.calm .token { animation: none; }
/* ---------- damage pips + the fail beat ---------- */
.hud .heat i.on { background: #7df0b0; box-shadow: 0 0 10px #7df0b0; }
.hud .heat.low i.on { background: #ff7a4d; box-shadow: 0 0 10px #ff7a4d; }
.fail { justify-content: center; align-items: center; gap: 14px; text-align: center; }
.fail h2 { font-size: clamp(44px, 13vw, 60px); animation: slam 0.55s var(--ease) both; }
.fail .btn { min-width: 240px; }
.calm .fail h2 { animation: none; }
/* the token grid sits on its own dark panel so labels never fight the storefront behind */
.choice::before { background: rgba(11, 10, 46, 0.88); }
.tokens { background: rgba(14, 11, 46, 0.6); border-radius: 22px; padding: 8px 4px; }
.token .name { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.7); }
.token .name { font-size: 11.5px; letter-spacing: -0.01em; text-wrap: wrap; } .token { padding: 4px 0; }

/* choice header v3: kicker, title with air, a prominent instruction; details panel shows the pick clearly */
.choice .head { gap: 6px; padding-top: 6px; }
.choice .head .kicker { opacity: 0.8; }
.choice h2 { font-size: clamp(30px, 9.4vw, 44px); margin-top: 2px; }
.pickline { font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; margin-top: 4px; }
.details { border: 2px solid var(--glow, rgba(255, 255, 255, 0.25)); box-shadow: 0 0 26px -8px var(--glow, transparent); }
.details.empty { border-style: dashed; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.details.empty .d-line { font-size: 15px; font-weight: 700; opacity: 1; }
.details .d-name { font-size: 21px; }
.field label .opt { font-style: normal; font-weight: 600; opacity: 0.7; text-transform: none; letter-spacing: 0; }
.claim .privacy { text-align: center; font-size: 12.5px; opacity: 0.85; margin-top: 2px; } .claim .privacy a { font-weight: 700; }
.claim form { display: flex; flex-direction: column; gap: 10px; }
.choice .take .btn { font-size: clamp(14px, 4.2vw, 17px); white-space: nowrap; padding: 0 14px; }
