/* Yellow Car! — Swiss poster / comic print. Paper, ink, one yellow. */
:root {
  --paper: #F4F0E6;
  --paper-2: #EAE4D4;
  --ink: #121110;
  --y: #FFD400;
  --y-2: #F2C300;
  --red: #FF3D1F;
  --muted: rgba(18, 17, 16, .58);
  --line: rgba(18, 17, 16, .16);
  --f-grot: 'Archivo', system-ui, -apple-system, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 48px);
  --shadow: 4px 4px 0 var(--ink);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-grot); font-size: 17px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; opacity: .13; mix-blend-mode: multiply; }

/* ---------- type bits ---------- */
.label { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0; color: var(--ink); }
.label--r { text-align: right; }
.h2 { font-size: clamp(34px, 7vw, 64px); line-height: .95; margin: .25em 0 .35em; font-weight: 900; font-variation-settings: 'wdth' 72; letter-spacing: -.015em; text-transform: uppercase; }
.h3 { font-size: 30px; line-height: 1; margin: 0; font-weight: 900; font-variation-settings: 'wdth' 70; text-transform: uppercase; }
.sub { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 34ch; }
.hint { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
i, em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  border: 2.5px solid var(--ink); border-radius: 999px; background: transparent;
  padding: 13px 22px; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, background .2s;
  -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn--yellow { background: var(--y); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { box-shadow: none; }
.btn--ghost:hover, .btn--ghost:active { box-shadow: none; background: rgba(18,17,16,.06); }
.btn--sm { padding: 8px 14px; font-size: 14px; border-width: 2px; }
.btn--lg { padding: 16px 26px; font-size: 18px; }
.btn--xl { padding: 19px 32px; font-size: 21px; }
.arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- screens ---------- */
.screen { display: none; min-height: 100svh; }
.screen.is-on { display: block; animation: screenIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } }
.center { max-width: 640px; margin: 0 auto; padding: 80px var(--gut) 60px; }
.back { position: absolute; top: 18px; left: var(--gut); background: none; border: 0; font-weight: 800; font-size: 16px; padding: 8px 0; }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--y); overflow: hidden; height: 34px; display: flex; align-items: center; position: relative; z-index: 3; }
.ticker__track { display: flex; white-space: nowrap; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; animation: tick 38s linear infinite; }
.ticker__track span { padding: 0 22px; }
.ticker__track span.d { color: var(--paper); padding: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; height: min(78svh, 820px); min-height: 520px; overflow: hidden; border-bottom: 2.5px solid var(--ink); background:
  radial-gradient(circle at 50% 60%, rgba(255,212,0,.0) 0 40%, transparent 41%),
  var(--paper); }
.hero::before { /* faint halftone field */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(var(--ink) 1.1px, transparent 1.4px); background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 62%, transparent 30%, #000 75%);
          mask-image: radial-gradient(ellipse at 50% 62%, transparent 30%, #000 75%);
}
.hero__type { position: absolute; inset: 0; pointer-events: none; text-transform: uppercase; font-weight: 900; line-height: .78; letter-spacing: -.02em; }
.hero__type span { position: absolute; display: block; font-size: clamp(110px, 25vw, 400px); font-variation-settings: 'wdth' 62; animation: stretch 1.4s cubic-bezier(.2,.9,.1,1) both; }
.t-yellow { top: 4%; left: calc(var(--gut) - .04em); }
.t-car { right: calc(var(--gut) - .02em); bottom: 6%; color: var(--y); -webkit-text-stroke: clamp(2px, .45vw, 6px) var(--ink); paint-order: stroke fill; text-shadow: .045em .045em 0 var(--ink); animation-delay: .12s !important; }
.t-car em { font-family: var(--f-grot); font-style: normal; font-weight: 900; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
@keyframes stretch { from { font-variation-settings: 'wdth' 125; opacity: 0; letter-spacing: -.08em; } 40% { opacity: 1; } }
.hero__car { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: pan-y; cursor: grab; animation: carIn 1.3s .25s cubic-bezier(.2,.9,.2,1) both; }
@keyframes carIn { from { opacity: 0; transform: translateX(-30%) scale(.9); } }
.hero__meta { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 18px; display: flex; justify-content: space-between; pointer-events: none; }
.tag { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.beep { position: absolute; z-index: 4; left: 58%; top: 26%; font-weight: 900; font-variation-settings: 'wdth' 70; font-size: clamp(26px, 4vw, 48px); line-height: .9; background: var(--ink); color: var(--y); padding: .35em .5em; border-radius: 14px; transform: rotate(-8deg) scale(0); transform-origin: 0 100%; pointer-events: none; }
.beep::after { content: ""; position: absolute; left: 14px; bottom: -12px; border: 8px solid transparent; border-top: 12px solid var(--ink); border-left-width: 4px; }
.beep.on { animation: beep .9s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes beep { 0% { transform: rotate(-8deg) scale(0); } 25% { transform: rotate(-8deg) scale(1); } 80% { transform: rotate(-4deg) scale(1); opacity: 1; } 100% { transform: rotate(-4deg) scale(.9); opacity: 0; } }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 36px; padding: 44px var(--gut) 64px; align-items: start; }
.intro__h { font-size: clamp(32px, 3.6vw, 52px); line-height: .98; margin: 0; font-weight: 900; font-variation-settings: 'wdth' 80; letter-spacing: -.02em; }
.intro__h i { font-size: 1.12em; letter-spacing: 0; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 2.5px solid var(--ink); }
.rules li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; align-items: baseline; }
.rules b { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; background: var(--y); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 0; text-align: center; }
.intro__cta { display: flex; flex-direction: column; align-items: flex-start; }
.mygames { grid-column: 1 / -1; border-top: 2.5px solid var(--ink); padding-top: 16px; }
#myGamesList { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mygame { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 10px; padding: 10px 14px; background: var(--paper); font-weight: 700; text-decoration: none; color: var(--ink); }
.mygame:hover { background: var(--y); }
.mygame small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

/* ---------- name form ---------- */
.nameform { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; margin-top: 18px; }
.bigin { width: 100%; border: 0; border-bottom: 4px solid var(--ink); background: transparent; font-size: clamp(36px, 9vw, 64px); font-weight: 900; font-variation-settings: 'wdth' 75; text-transform: uppercase; padding: 6px 0; outline: none; border-radius: 0; }
.bigin::placeholder { color: rgba(18,17,16,.2); }
.bigin.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- plates ---------- */
.plates { display: flex; flex-direction: column; gap: 12px; }
.plate {
  position: relative; display: flex; align-items: stretch; background: var(--y); border: 2.5px solid var(--ink); border-radius: 9px;
  box-shadow: inset 0 0 0 3px var(--y), inset 0 0 0 4.5px var(--ink), var(--shadow); overflow: hidden; min-height: 64px;
}
.plate__eu { display: flex; align-items: center; justify-content: center; width: 34px; background: var(--ink); color: var(--y); font-family: var(--f-mono); font-size: 11px; font-weight: 700; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .2em; flex: none; }
.plate__txt { flex: 1; display: flex; align-items: center; padding: 0 16px; font-weight: 900; font-variation-settings: 'wdth' 82; font-size: 30px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate__rank { font-family: var(--f-mono); font-size: 12px; font-weight: 700; margin-right: 12px; opacity: .7; letter-spacing: 0; }
.plate__you { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; background: var(--ink); color: var(--y); padding: 3px 6px; border-radius: 4px; margin-left: 10px; }
.plate__crown { margin-left: 8px; font-size: 20px; }
.plate__score { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 6px 16px 6px 10px; border-left: 2px dashed rgba(18,17,16,.45); min-width: 92px; }
.score { font-weight: 900; font-variation-settings: 'wdth' 62; font-size: 46px; line-height: .9; display: inline-block; }
.score.pop { animation: scorePop .7s cubic-bezier(.2,1.8,.4,1); }
@keyframes scorePop { 0% { transform: translateY(60%) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.plate__sub { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; white-space: nowrap; }
.plate.is-me { transform: rotate(-.6deg); }
.plate::before, .plate::after { /* bolts */
  content: ""; position: absolute; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 20%, #9a9a92 60%); border: 1px solid var(--ink);
}
.plate::before { left: 43px; } .plate::after { right: 8px; }
.plates--mini { flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.plates--mini .plate { min-height: 40px; box-shadow: inset 0 0 0 2px var(--y), inset 0 0 0 3px var(--ink); }
.plates--mini .plate__txt { font-size: 18px; padding: 0 12px; }
.plates--mini .plate__eu { width: 22px; font-size: 9px; }
.plates--mini .plate::before, .plates--mini .plate::after { display: none; }

.plates--pick { margin: 10px 0 14px; }
.plates--pick .plate { cursor: pointer; background: var(--paper); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--ink), var(--shadow); transition: transform .15s, background .15s; text-align: left; padding: 0; width: 100%; }
.plates--pick .plate.on { background: var(--y); box-shadow: inset 0 0 0 3px var(--y), inset 0 0 0 4.5px var(--ink), var(--shadow); transform: rotate(-1deg) scale(1.02); }
.plates--pick .check { display: flex; align-items: center; justify-content: center; width: 64px; border-left: 2px dashed rgba(18,17,16,.45); font-size: 26px; font-weight: 900; }
.plates--pick .plate .check::before { content: ""; width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 50%; }
.plates--pick .plate.on .check::before { content: "👊"; border: 0; width: auto; height: auto; font-size: 28px; }

/* ---------- invite ---------- */
.ticket { margin: 6px 0 22px; }
.ticket__plate { max-width: 420px; }
.ticket__plate .plate__txt { font-size: clamp(30px, 8vw, 48px); letter-spacing: .12em; justify-content: center; padding: 10px 16px; }
.ticket__link { font-family: var(--f-mono); font-size: 13px; margin-top: 14px; word-break: break-all; color: var(--muted); }
.sharebtns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

/* ---------- game ---------- */
#game { padding-bottom: calc(150px + var(--safe-b)); }
.gtop { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gut); background: rgba(244,240,230,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2.5px solid var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; font-weight: 900; font-variation-settings: 'wdth' 70; font-size: 24px; text-transform: uppercase; letter-spacing: -.01em; }
.logo__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--y); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.gwrap { max-width: 1180px; margin: 0 auto; padding: 26px var(--gut); display: grid; grid-template-columns: 400px 1fr; gap: 44px; align-items: start; }
.board { position: sticky; top: 90px; }
.board__head, .garage__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2.5px solid var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 4px; vertical-align: 1px; animation: blink 1.4s infinite; }
#liveDot.off .dot { background: #999; animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.lone { margin-top: 18px; font-size: 16px; background: var(--paper-2); border-radius: 10px; padding: 12px 14px; }

.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.gcard { position: relative; background: #fff; padding: 9px 9px 0; border: 2px solid var(--ink); box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); transition: transform .2s; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.gcard:hover { transform: rotate(0) translateY(-3px); }
.gcard__img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--paper-2); }
.gcard__cap { padding: 9px 2px 10px; }
.gcard__who { font-weight: 900; font-variation-settings: 'wdth' 75; text-transform: uppercase; font-size: 16px; line-height: 1.05; }
.gcard__meta { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.gcard__pct { position: absolute; top: 16px; right: 16px; background: var(--y); border: 2px solid var(--ink); border-radius: 999px; font-family: var(--f-mono); font-weight: 700; font-size: 11px; padding: 2px 7px; }
.gcard.new { animation: cardIn .8s cubic-bezier(.2,1.5,.4,1); }
@keyframes cardIn { from { transform: scale(.5) rotate(-12deg); opacity: 0; } }
.stamp { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); border: 3px solid var(--red); color: var(--red); font-family: var(--f-mono); font-weight: 700; letter-spacing: .14em; font-size: 15px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.75); }
.gempty { text-align: center; padding: 50px 10px; color: var(--muted); font-size: 19px; }
.gempty i { font-size: 1.2em; }
.gempty__car { width: 110px; height: 60px; margin: 0 auto 16px; border: 3px dashed rgba(18,17,16,.3); border-radius: 60px 60px 14px 14px; }

/* shutter */
.shutterbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 14px var(--gut) calc(14px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(to top, var(--paper) 55%, rgba(244,240,230,0)); pointer-events: none; }
.shutter { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--y); border-radius: 999px; padding: 10px 30px 10px 10px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink), 6px 8px 0 5px rgba(18,17,16,.25); cursor: pointer; transition: transform .12s; -webkit-tap-highlight-color: transparent; user-select: none; max-width: 100%; }
.shutter:hover { transform: scale(1.03); }
.shutter:active { transform: scale(.96); }
.shutter__ring { width: 58px; height: 58px; border-radius: 50%; background: var(--y); display: grid; place-items: center; flex: none; animation: pulse 2.2s infinite; }
.shutter__eye { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); box-shadow: inset 4px -3px 0 rgba(255,255,255,.25); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,212,0,.7); } 70% { box-shadow: 0 0 0 16px rgba(255,212,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,212,0,0); } }
.shutter__txt { font-weight: 900; font-variation-settings: 'wdth' 75; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.pickphoto { pointer-events: auto; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ---------- snap sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(18,17,16,.55); display: flex; align-items: center; justify-content: center; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet__in { position: relative; width: min(600px, 100%); max-height: 100svh; overflow: auto; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; padding: 26px 26px calc(26px + var(--safe-b)); box-shadow: 8px 8px 0 var(--ink); animation: up .4s cubic-bezier(.2,.9,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); font-size: 16px; font-weight: 900; z-index: 3; }
.x--light { background: transparent; color: #fff; border-color: #fff; }
.scanframe { position: relative; margin: 14px 0 18px; border: 2.5px solid var(--ink); background: var(--ink); overflow: hidden; border-radius: 6px; }
#scanCanvas { display: block; width: 100%; height: auto; max-height: 46svh; object-fit: contain; }
.scanline { position: absolute; left: 0; right: 0; height: 26%; top: -26%; background: linear-gradient(to bottom, rgba(255,212,0,0), rgba(255,212,0,.55) 92%, var(--y)); mix-blend-mode: screen; pointer-events: none; }
.scanning .scanline { animation: scan 1.1s linear infinite; }
@keyframes scan { to { top: 100%; } }
.corners i { position: absolute; width: 26px; height: 26px; border: 4px solid var(--y); }
.corners i:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.meter { display: flex; align-items: center; gap: 16px; }
.meter__bar { flex: 1; height: 26px; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(18,17,16,.08) 6px 12px); }
.meter__fill { height: 100%; width: 0; background: var(--y); border-right: 2.5px solid var(--ink); transition: width .12s linear; }
.meter__num { font-weight: 900; font-variation-settings: 'wdth' 62; font-size: 54px; line-height: .85; min-width: 120px; text-align: right; }
.meter__num small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.verdict { font-size: clamp(28px, 6vw, 40px); line-height: 1; margin: 16px 0 20px; font-weight: 900; font-variation-settings: 'wdth' 72; text-transform: uppercase; min-height: 1em; }
.verdict.in { animation: stampIn .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes stampIn { from { transform: scale(1.8) rotate(-4deg); opacity: 0; } }
.stepbtns { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.stepbtns .btn:last-child { margin-left: auto; }
#whoAll { margin-bottom: 22px; font-size: 16px; }
.fist { display: inline-block; }
#bumpBtn:hover .fist { animation: punch .5s infinite; }
@keyframes punch { 50% { transform: translateX(6px) scale(1.2); } }

.sent { text-align: center; padding: 30px 0 20px; }
.sent__txt { font-size: 24px; font-weight: 800; margin: 26px 0 4px; }
.sent__pts { font-family: var(--f-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--y); display: inline-block; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; }

/* ---------- burst ---------- */
.burst { position: relative; width: min(78vw, 400px); aspect-ratio: 1.25; margin: 0 auto; display: grid; place-items: center; animation: burstIn .6s cubic-bezier(.2,1.7,.4,1) both; }
.burst::before { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: var(--burst); }
.burst::after { content: ""; position: absolute; inset: 7%; background: var(--paper); clip-path: var(--burst); }
.burst span { position: relative; z-index: 1; font-weight: 900; font-variation-settings: 'wdth' 62; font-size: clamp(72px, 19vw, 150px); line-height: 1; color: var(--red); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); transform: rotate(-8deg); letter-spacing: -.01em; }
.burst--ink { width: min(64vw, 300px); }
.burst--ink::after { background: var(--y); }
.burst--ink span { color: var(--paper); font-size: clamp(56px, 15vw, 96px); }
@keyframes burstIn { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: none; } }

/* ---------- POW takeover ---------- */
.pow { position: fixed; inset: 0; z-index: 80; background: var(--y); overflow: auto; display: flex; align-items: center; justify-content: center; }
.pow__rays { position: fixed; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(18,17,16,.07) 0 6deg, transparent 6deg 15deg); animation: spinR 30s linear infinite; pointer-events: none; }
@keyframes spinR { to { transform: rotate(360deg); } }
.pow.hit .pow__in { animation: shakeBig .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes shakeBig { 10%, 90% { transform: translate(-3px, 2px) rotate(-.5deg); } 20%, 80% { transform: translate(6px, -4px) rotate(1deg); } 30%, 50%, 70% { transform: translate(-12px, 6px) rotate(-1.5deg); } 40%, 60% { transform: translate(12px, -6px) rotate(1.5deg); } }
.pow__in { position: relative; text-align: center; padding: 30px var(--gut) calc(30px + var(--safe-b)); width: 100%; max-width: 560px; }
.pow__who { font-size: clamp(26px, 6vw, 36px); font-weight: 800; margin: 4px 0 20px; }
.pow__who b { font-weight: 900; font-variation-settings: 'wdth' 70; text-transform: uppercase; background: var(--ink); color: var(--y); padding: 0 .25em; border-radius: 6px; }
.polaroid { background: #fff; margin: 0 auto 22px; padding: 12px 12px 0; width: min(80vw, 340px); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: rotate(3deg); animation: dropIn .7s .25s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes dropIn { from { transform: translateY(-60px) rotate(-14deg); opacity: 0; } }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.polaroid figcaption { font-family: var(--f-serif); font-style: italic; font-size: 22px; padding: 10px 4px 12px; }
.pow__more { font-family: var(--f-mono); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: -6px 0 18px; }
.pow__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(18,17,16,.94); display: flex; align-items: center; justify-content: center; padding: 60px var(--gut) 30px; animation: fade .2s; }
.viewer__fig { margin: 0; max-width: 900px; width: 100%; color: #fff; text-align: center; }
.viewer__fig img { max-height: 76svh; margin: 0 auto; border: 3px solid #fff; }
.viewer__fig figcaption { margin-top: 14px; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- toasts / alert ---------- */
.toasts { position: fixed; z-index: 85; left: 50%; bottom: calc(130px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 11px 16px; font-weight: 700; font-size: 15px; box-shadow: 4px 4px 0 var(--y), 4px 4px 0 1.5px var(--ink); display: flex; gap: 10px; align-items: center; animation: toastIn .45s cubic-bezier(.2,1.5,.4,1); }
.toast img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--y); }
.toast.out { transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(10px); }
@keyframes toastIn { from { transform: translateY(20px) scale(.9); opacity: 0; } }
.alert { position: fixed; z-index: 95; top: 0; left: 0; right: 0; background: var(--red); color: #fff; border-bottom: 2.5px solid var(--ink); }
.alert__in { max-width: 900px; margin: 0 auto; padding: 12px var(--gut); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 600; }
.alert__in > b { font-family: var(--f-mono); letter-spacing: .14em; background: var(--ink); padding: 2px 8px; border-radius: 4px; }
.alert__btns { display: flex; gap: 8px; margin-left: auto; }
.alert .btn--ghost { color: #fff; border-color: #fff; }
.alert .btn--ink { background: #fff; color: var(--ink); box-shadow: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .gwrap { grid-template-columns: 1fr; gap: 34px; padding-top: 18px; }
  .board { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { height: 60svh; min-height: 420px; }
  .hero__type span { font-size: 31vw; }
  .t-yellow { top: 5%; }
  .t-car { bottom: 11%; }
  .beep { left: 52%; top: 30%; }
  .rules li { font-size: 18px; grid-template-columns: 48px 1fr; }
  .intro__cta .btn { width: 100%; }
  .intro__cta { order: -1; }
  .intro { padding-top: 22px; }
  .center { padding-top: 70px; }
  .nameform .btn, .stepbtns .btn--xl, .stepbtns .btn--lg { width: 100%; }
  .stepbtns .btn--ghost { order: 2; width: 100%; }
  .sheet { align-items: flex-end; }
  .sheet__in { border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: none; padding: 22px 18px calc(22px + var(--safe-b)); }
  .ggrid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gcard__who { font-size: 14px; }
  .plate__txt { font-size: 24px; padding: 0 12px; }
  .score { font-size: 40px; }
  .plate__score { min-width: 78px; padding-right: 12px; }
  .shutter { padding-right: 22px; }
  .shutter__txt { font-size: 20px; }
  .shutter__ring { width: 52px; height: 52px; }
  .meter__num { font-size: 44px; min-width: 96px; }
  .sharebtns .btn { flex: 1 1 40%; }
  .center > .btn--xl, #invite .btn--xl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
@media (max-width: 600px) {
  .pow__in { padding-top: 18px; }
  .pow .burst { width: min(70vw, 300px); }
  .pow .burst span { font-size: 64px; }
  .polaroid { width: min(66vw, 280px); margin-bottom: 18px; }
  .pow__btns { flex-direction: column-reverse; align-items: stretch; }
}

/* =====================================================================
   v2 — every screen fits one phone screen, bigger targets, intro wow
   ===================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }
.screen.is-on { min-height: 100svh; }
.btn--block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; font-weight: 800; font-size: 16px; }
.pill span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--y); font-size: 13px; }
.pill:active { background: rgba(18,17,16,.08); }

/* ---- home: exactly one screen ---- */
.home.is-on { display: flex; flex-direction: column; height: 100svh; overflow: hidden; }
.home .hero { flex: 1; min-height: 0; height: auto; }
.hero__type span { font-size: min(25vw, 30svh); }
.homebar { flex: none; display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: 18px 40px; align-items: center; padding: 18px var(--gut) calc(18px + var(--safe-b)); background: var(--paper); }
.homebar__h { margin: 0; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.02; font-weight: 900; font-variation-settings: 'wdth' 78; letter-spacing: -.015em; }
.homebar__h i { font-size: 1.12em; letter-spacing: 0; }
.homebar__btns { display: flex; flex-direction: column; gap: 12px; }
.homebar__row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.taphint { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--y); font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.taphint.on { opacity: 1; animation: nudge 1.6s ease-in-out infinite; }
.taphint__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--y); animation: blink 1s infinite; }
@keyframes nudge { 50% { transform: translateX(-50%) translateY(-4px); } }
.hero__meta { display: none; }

/* hero text waits for the intro, then slams in */
body.introing .hero__type span, body.introing .homebar > * { animation: none; opacity: 0; }
.hero__type span { animation: slam .8s cubic-bezier(.2,1.4,.3,1) both; }
.t-car { animation-delay: .5s !important; }
@keyframes slam { 0% { opacity: 0; transform: scale(1.6) translateY(-6%); font-variation-settings: 'wdth' 125; filter: blur(6px); } 60% { opacity: 1; filter: none; } 100% { transform: none; font-variation-settings: 'wdth' 62; } }
.homebar > * { animation: rise .7s cubic-bezier(.2,.9,.2,1) both; }
.homebar > *:nth-child(2) { animation-delay: .9s; }
.homebar > *:nth-child(1) { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero__car { animation: none; }

/* ---- intro overlay: headlights rushing at you ---- */
.introov { position: fixed; inset: 0; z-index: 99; background: #0b0a09; overflow: hidden; display: none; }
body.introing .introov { display: block; }
.introov__road { position: absolute; inset: 0; background: #232120; clip-path: polygon(49% 47%, 51% 47%, 100% 100%, 0 100%); }
.introov__road::before { content: ""; position: absolute; left: 50%; top: 47%; bottom: 0; width: 12vw; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--y) 0 6%, transparent 6% 14%); background-size: 100% 200%; clip-path: polygon(48% 0, 52% 0, 70% 100%, 30% 100%); animation: roadRun .35s linear infinite; }
.introov__road::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #0b0a09 47%, rgba(11,10,9,0) 75%); }
@keyframes roadRun { to { background-position: 0 28%; } }
.introov__lights { position: absolute; left: 50%; top: 46%; display: flex; gap: 12vmin; transform: translate(-50%, -50%) scale(.04); animation: lightsIn 1.5s cubic-bezier(.7,0,.9,.6) forwards; }
.introov__lights i { width: 22vmin; height: 22vmin; border-radius: 50%; background: radial-gradient(circle, #fffbea 0 30%, #ffe680 45%, rgba(255,212,0,.35) 62%, transparent 72%); box-shadow: 0 0 80px 40px rgba(255,220,80,.35); }
@keyframes lightsIn { to { transform: translate(-50%, -50%) scale(7); } }
.introov__txt { position: absolute; left: 0; right: 0; bottom: calc(40px + var(--safe-b)); text-align: center; color: var(--y); font-family: var(--f-mono); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; animation: blink 1s infinite; }
.introov.flash { animation: flashOut .55s ease-out forwards; }
.introov.flash > * { display: none; }
@keyframes flashOut { 0% { background: #fffbea; } 35% { background: var(--y); opacity: 1; } 100% { background: var(--y); opacity: 0; } }

/* ---- game: one screen, giant button at the bottom ---- */
#game { padding-bottom: 0; }
.gscreen.is-on { display: flex; flex-direction: column; height: 100svh; overflow: hidden; }
.gtop { position: relative; flex: none; }
.gbody { flex: 1; min-height: 0; width: 100%; max-width: 640px; margin: 0 auto; padding: 14px var(--gut) 12px; display: flex; flex-direction: column; gap: 12px; }
.gbody .board { position: static; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gbody .board__head { margin-bottom: 12px; flex: none; }
.gbody .plates { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 10px 2px; margin-right: -8px; overscroll-behavior: contain; }
.gbody .plate { flex: none; }
.lone { flex: none; margin-top: 14px; background: #fff; border: 2.5px dashed var(--ink); border-radius: 16px; padding: 16px; font-size: 18px; }
.lone p { margin: 0 0 12px; }
.lastcar { flex: none; display: flex; align-items: center; gap: 14px; width: 100%; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow); text-align: left; }
.lastcar img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); background: var(--paper-2); }
.lastcar__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lastcar__txt b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lastcar__txt small { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lastcar__go { font-weight: 800; white-space: nowrap; }
.shutterzone { flex: none; background: var(--y); border-top: 2.5px solid var(--ink); padding: 16px var(--gut) calc(12px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shutterzone .shutter { width: 100%; max-width: 560px; padding: 12px 18px 12px 12px; box-shadow: 0 6px 0 rgba(18,17,16,.35); }
.shutterzone .shutter__ring { width: 76px; height: 76px; color: var(--ink); }
.shutterzone .shutter__ring svg { width: 44px; height: 44px; }
.shutterzone .shutter__txt { font-size: clamp(22px, 6.4vw, 30px); line-height: 1; white-space: normal; display: flex; flex-direction: column; gap: 6px; }
.shutterzone .shutter__txt small { font-family: var(--f-grot); font-variation-settings: 'wdth' 100; text-transform: none; font-weight: 600; font-size: 15px; color: var(--paper); letter-spacing: 0; }
.shutterzone .pickphoto { color: var(--ink); font-size: 14px; }
.shutterzone .shutter__ring { animation: pulseInk 2.2s infinite; }
@keyframes pulseInk { 0% { box-shadow: 0 0 0 0 rgba(255,212,0,.8); } 70% { box-shadow: 0 0 0 14px rgba(255,212,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,212,0,0); } }

/* ---- sheets fit the screen ---- */
.sheet__in { max-height: 100svh; }
.sheet--full .sheet__in { height: min(100svh, 860px); display: flex; flex-direction: column; }
.sheet--full .ggrid { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 6px 20px 2px; margin-top: 10px; }
.sheet--full .h2 { margin-top: 0; }
#scanCanvas { max-height: 36svh; }
.howlist { list-style: none; margin: 16px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.howlist li { display: flex; gap: 14px; align-items: flex-start; font-size: 19px; line-height: 1.3; }
.howlist__n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--y); border: 2.5px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 22px; }

/* ---- takeover fits ---- */
.pow__in { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pow .burst { width: min(70vw, 34svh, 380px); }
.pow .polaroid { width: min(64vw, 34svh, 320px); }

/* ---- name + invite screens vertically centred ---- */
#name.is-on, #invite.is-on { display: flex; align-items: center; }
#name .center, #invite .center { width: 100%; padding-top: 60px; padding-bottom: calc(30px + var(--safe-b)); }

@media (max-width: 760px) {
  .homebar { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; padding-bottom: calc(46px + var(--safe-b)); }
  .homebar__h { font-size: 22px; text-align: center; }
  .hero__type span { font-size: min(30vw, 17svh); }
  .t-yellow { top: 3%; left: 50% !important; transform: translateX(-50%); }
  .t-car { bottom: 3%; right: auto !important; left: 50%; transform: translateX(-50%); }
  @keyframes slam { 0% { opacity: 0; transform: translateX(-50%) scale(1.6) translateY(-6%); font-variation-settings: 'wdth' 125; filter: blur(6px); } 60% { opacity: 1; filter: none; } 100% { transform: translateX(-50%); font-variation-settings: 'wdth' 62; } }
  .taphint { bottom: auto; top: 24%; }
  .btn--xl { font-size: 22px; padding: 18px 24px; }
  .plate { min-height: 58px; }
  .plate__txt { font-size: 22px; }
  .score { font-size: 38px; }
  .gtop { padding: 10px var(--gut); }
  .logo { font-size: 21px; }
}
@media (max-height: 640px) {
  .shutterzone .shutter__ring { width: 60px; height: 60px; }
  .shutterzone .shutter__ring svg { width: 34px; height: 34px; }
}
@media (max-height: 640px) and (max-width: 760px) { .homebar__h { display: none; } }

/* latest catch fills the free space */
.gbody .board { flex: 0 1 auto; }
.gbody .plates { max-height: 40svh; }
.lastcar { flex: 1 1 0; min-height: 110px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; transform: rotate(-.8deg); }
.lastcar__photo { position: relative; flex: 1; min-height: 0; display: block; border-radius: 10px; overflow: hidden; border: 2px solid var(--ink); }
.lastcar__photo img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.lastcar__tag { position: absolute; top: 8px; left: 8px; background: var(--y); border: 2px solid var(--ink); border-radius: 999px; font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; }
.lastcar__bar { display: flex; align-items: center; gap: 10px; padding: 10px 6px 4px; }
.nocar { flex: 1 1 0; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2.5px dashed rgba(18,17,16,.35); border-radius: 16px; font-size: 18px; color: var(--muted); padding: 14px; }
.nocar p { margin: 0; }
.nocar b { color: var(--ink); }
.nocar__car { width: 96px; height: 52px; margin-bottom: 12px; border: 3px dashed rgba(18,17,16,.35); border-radius: 52px 52px 12px 12px; animation: nudge2 2s ease-in-out infinite; }
@keyframes nudge2 { 50% { transform: translateX(10px); } }
@media (max-height: 700px) { .nocar__car { display: none; } }
@media (max-width: 760px) { .shutterzone { padding-bottom: calc(40px + var(--safe-b)); } .shutterzone .pickphoto { align-self: flex-start; } }
.pow .polaroid { width: min(64vw, 30svh, 320px); }
.pow .burst { width: min(70vw, 30svh, 380px); }
.pow .burst span { font-size: min(64px, 9svh); }
@media (min-width: 761px) { .pow .burst span { font-size: min(120px, 11svh); } }
.pow__who { margin: 2px 0 14px; }
.pow__in { padding-bottom: calc(46px + var(--safe-b)); }

/* =====================================================================
   v3 — never cut anything off: screens grow (and scroll) instead of clipping
   ===================================================================== */
.home.is-on, .gscreen.is-on { height: auto; min-height: 100svh; overflow: visible; }
.home .hero { min-height: 300px; }
.gbody { min-height: 0; }
.gbody .board { flex: none; }
.lastcar, .nocar { min-height: 120px; }
/* safe centring: tall content scrolls from the top instead of losing its top */
.pow { align-items: flex-start; }
.pow__in { margin: auto; min-height: 0; }
.sheet { align-items: flex-start; overflow-y: auto; }
.sheet__in { margin: auto; max-height: none; overflow: visible; }
.sheet--full .sheet__in { height: min(100svh, 860px); max-height: 100svh; overflow: hidden; }
#name.is-on, #invite.is-on { align-items: safe center; }
@media (max-width: 600px) { .sheet { align-items: flex-end; } .sheet__in { margin: auto 0 0; } }
/* tap hint + beep follow the car (positioned from car.js) */
.taphint { left: 0; top: 0; bottom: auto !important; transform: translate(-50%, -50%); width: 74px; height: 74px; padding: 0; border-radius: 50%; justify-content: center; background: rgba(18,17,16,.82); font-size: 12px; letter-spacing: .1em; box-shadow: 0 0 0 0 rgba(255,212,0,.8); }
.taphint__dot { display: none; }
.taphint.on { animation: tapRing 1.6s ease-out infinite; }
@keyframes tapRing { 0% { box-shadow: 0 0 0 0 rgba(255,212,0,.9); } 80%, 100% { box-shadow: 0 0 0 22px rgba(255,212,0,0); } }
.beep { left: 0; top: 0; transform-origin: 0 100%; }

/* v3b — close buttons never sit on headings; compact on short screens */
.sheet__in > .label:first-of-type, .sheet__in > .h2:first-of-type, .step > .label:first-child, .step > .label:first-child + .h2, .step > .h2:first-child { margin-right: 56px; }
.sheet { padding: 16px 0; }
.sheet--full .sheet__in { height: calc(100svh - 32px); max-height: 860px; }
@media (max-width: 600px) { .sheet { padding: 0; } .sheet--full .sheet__in { height: 100svh; max-height: none; } }
@media (max-height: 760px) {
  .h2 { font-size: clamp(30px, 6svh, 48px); margin: .15em 0 .3em; }
  .sheet__in { padding-top: 20px; padding-bottom: calc(18px + var(--safe-b)); }
  .plates--pick { gap: 10px; margin: 6px 0 10px; }
  .plates--pick .plate { min-height: 52px; }
  .plates--pick .plate__txt { font-size: 22px; }
  #whoAll { margin-bottom: 14px; }
  .verdict { margin: 10px 0 14px; font-size: 28px; }
  .scanframe { margin: 10px 0 12px; }
  #name .center, #invite .center { padding-top: 46px; padding-bottom: 20px; }
  .sub { margin-bottom: 14px; }
  .ticket { margin-bottom: 14px; }
  .sharebtns { margin-bottom: 20px; }
  .pow__in { padding-top: 14px; padding-bottom: 18px; }
  .pow__who { font-size: 24px; margin-bottom: 10px; }
  .polaroid { margin-bottom: 14px; padding: 8px 8px 0; }
  .polaroid figcaption { font-size: 18px; padding: 6px 4px 8px; }
  .pow .polaroid { width: min(64vw, 27svh, 300px); }
  .pow .burst { width: min(70vw, 27svh, 340px); }
}
