/* EGGS DOWN — the game's own layer over the platform's base tokens (design.css).
   A late bingo hall seen through a lens: deep void, one yolk light, the called
   number set huge in a serif, the machine's telemetry in lowercase mono.
   Boldness is spent once: the glossy egg-ball. Everything else stays quiet. */

@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --void: #050508;
  --void-2: #0b0b12;
  --panel: #10101a;
  --panel-2: #181826;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.16);
  --bone: #ede8df;
  --muted: #a8a39a;
  --yolk: #ffc93c;
  --yolk-deep: #e0a614;
  --yolk-ink: #1a1204;
  --mint: #7be0c3;
  --mint-deep: #4fc4a3;
  --ember: #ff8a4c;
  --magenta: #ff3d8b;
  --alert: #ff6b6b;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion is a token (AW-109): one curve, three durations. */
  --curve: cubic-bezier(0.2, 0.9, 0.1, 1);
  --tap: 90ms;
  --ease-t: 200ms;
  --enter: 320ms;

  --gutter: clamp(16px, 3vw, 40px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--void); color: var(--bone); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font: 500 1rem/1.5 var(--sans); background: var(--void); color: var(--bone); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--yolk); text-underline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase; color: var(--muted); letter-spacing: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: var(--gutter); z-index: 20; background: var(--yolk); color: var(--yolk-ink); padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- buttons: background and colour stated together; hover lifts and deepens; click presses (AW-108) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none;
  font: 700 1.05rem/1 var(--sans); min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--yolk); color: var(--yolk-ink);
  transition: transform var(--tap) var(--curve), background-color var(--ease-t) var(--curve), color var(--ease-t) var(--curve);
}
.btn:active { transform: translateY(1px); background: var(--yolk-deep); color: var(--yolk-ink); }
.btn:disabled { cursor: not-allowed; background: var(--panel-2); color: var(--muted); }
.btn-quiet { background: var(--panel); color: var(--bone); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn-quiet:active { background: var(--void); color: var(--bone); }
.btn-mint { background: var(--mint); color: var(--yolk-ink); }
.btn-mint:active { background: var(--mint-deep); color: var(--yolk-ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { transform: translateY(-1px); background: var(--yolk-deep); color: var(--yolk-ink); }
  .btn-quiet:hover:not(:disabled) { transform: translateY(-1px); background: var(--void); color: var(--bone); }
  .btn-mint:hover:not(:disabled) { transform: translateY(-1px); background: var(--mint-deep); color: var(--yolk-ink); }
}

/* segmented choices (mode, rounds, pace) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; font: 600 0.95rem/1 var(--sans);
  background: var(--panel); color: var(--bone); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: transform var(--tap) var(--curve), background-color var(--ease-t) var(--curve);
}
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--void); }
.seg button:active { transform: translateY(1px); background: var(--void); color: var(--bone); }
@media (hover: hover) {
  .seg button:hover { transform: translateY(-1px); background: var(--void); color: var(--bone); }
  .seg button[aria-pressed="true"]:hover { background: var(--muted); color: var(--void); }
}

/* fields */
label.field { display: grid; gap: 6px; }
.field span { font: 600 0.9rem/1.2 var(--sans); }
input[type="text"], input:not([type]) {
  font: 500 1.1rem/1.2 var(--sans); min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--hair-2);
  background: var(--void-2); color: var(--bone); width: 100%;
}
input::placeholder { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--yolk); flex: none; }
.error { color: var(--alert); font-weight: 600; min-height: 1.4em; }
.error::before { content: "! "; }
.error:empty::before { content: ""; }

/* ---------- the egg-ball: the one bold thing ---------- */
.ball {
  --c: var(--yolk);
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 34% 28%, #fffdf3 0 9%, var(--c) 32%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  color: var(--yolk-ink); box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c) 45%, transparent), inset 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.ball .letter { font: 700 0.9rem/1 var(--mono); letter-spacing: 0.1em; }
.ball .num { font: 400 1em/0.9 var(--serif); }
@keyframes drop { from { transform: translateY(-24px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.ball.fresh { animation: drop var(--enter) var(--curve); }

/* ---------- tier chips (the only place tier colour lives) ---------- */
.tier { display: inline-flex; align-items: center; gap: 6px; font: 700 0.75rem/1 var(--mono); text-transform: lowercase; padding: 6px 10px; border-radius: 999px; color: var(--void); background: var(--mint); }
.tier[data-tier="2"] { background: var(--ember); color: var(--void); }
.tier[data-tier="3"] { background: var(--magenta); color: var(--void); }
.tier[data-kind="drink"] { background: var(--bone); color: var(--void); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; }
.dot.live { animation: pulse 1.8s ease-in-out infinite; }
.dot.off { background: var(--muted); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- the phone ---------- */
.phone { max-width: 560px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom)); display: grid; gap: 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.wordmark { font: 400 1.6rem/1 var(--serif); color: var(--bone); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark .ball { width: 26px; font-size: 0; }
.panel { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }
.panel h2 { font-size: 1.9rem; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.door { display: grid; gap: 28px; padding-top: 4vh; }
.door h1 { font-size: clamp(3rem, 15vw, 5.4rem); }
.door .lede { color: var(--muted); font-size: 1.1rem; max-width: 34ch; }
.code-in { font: 700 2rem/1 var(--mono); letter-spacing: 0.35em; text-transform: uppercase; text-align: center; }

.room-code { font: 400 clamp(3.4rem, 18vw, 5rem)/0.9 var(--serif); letter-spacing: 0.06em; }
.players { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.players li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--void-2); min-height: 48px; }
.players .who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.flair { color: var(--yolk); font-size: 1.1em; }
.kick { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--muted); font: 600 0.85rem/1 var(--sans); transition: transform var(--tap) var(--curve), background-color var(--ease-t) var(--curve); }
.kick:active { transform: translateY(1px); background: var(--void); color: var(--bone); }
@media (hover: hover) { .kick:hover { transform: translateY(-1px); background: var(--void); color: var(--bone); } }
.qr { width: 160px; height: 160px; background: #fff; border-radius: 12px; padding: 8px; }
.qr img { width: 100%; height: 100%; display: block; }

/* the call bar */
.callbar { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.callbar .ball { width: 92px; font-size: 2.6rem; }
.callbar .meta { display: grid; gap: 4px; }
.callbar .pattern { font: 400 1.6rem/1 var(--serif); }
.recent { display: flex; gap: 6px; flex-wrap: wrap; }
.recent span { font: 700 0.8rem/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: var(--void-2); color: var(--muted); }

/* the card */
.card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px; border-radius: 18px; background: var(--void-2); border: 1px solid var(--hair); }
.card .head { text-align: center; font: 700 0.85rem/1 var(--mono); color: var(--muted); padding: 4px 0 2px; }
.sq {
  aspect-ratio: 1; min-height: 44px; border: 0; border-radius: 50%; cursor: pointer; font: 700 clamp(1rem, 5vw, 1.35rem)/1 var(--sans);
  background: var(--panel-2); color: var(--bone); position: relative;
  transition: transform var(--tap) var(--curve), background-color var(--ease-t) var(--curve), color var(--ease-t) var(--curve);
}
.sq[data-called="true"] { box-shadow: inset 0 0 0 2px var(--hair-2); }
.sq[aria-pressed="true"] { background: var(--yolk); color: var(--yolk-ink); }
.sq.nest { background: var(--yolk-ink); color: var(--yolk); font: 400 1.9rem/1 var(--sans); cursor: default; }
.sq.win { background: var(--bone); color: var(--void); }
.sq.egg::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--yolk), 0 0 28px var(--yolk); animation: crack var(--enter) var(--curve); }
@keyframes crack { from { transform: scale(0.6); opacity: 0; } }
.sq:active { transform: translateY(1px); background: var(--yolk-deep); color: var(--yolk-ink); }
@media (hover: hover) {
  .sq:hover:not(.nest) { transform: translateY(-1px); background: var(--void); color: var(--bone); }
  .sq[aria-pressed="true"]:hover { background: var(--yolk-deep); color: var(--yolk-ink); }
}
.theme-neon .card { background: #12021c; border-color: #ff4fd8; }
.theme-neon .sq[aria-pressed="true"] { background: #6ff3ff; color: #12021c; }
.theme-velvet .card { background: #1d0b1a; border-color: #b9925a; }
.theme-velvet .sq[aria-pressed="true"] { background: #d9b26f; color: #1d0b1a; }
.theme-seaside .card { background: #04202a; border-color: #ff7b9c; }
.theme-seaside .sq[aria-pressed="true"] { background: #9ff0d8; color: #04202a; }

.bingo { min-height: 72px; font-size: 1.6rem; letter-spacing: 0.02em; font-family: var(--serif); font-weight: 400; }
.bingo.ready { box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.25), 0 0 40px rgba(255, 201, 60, 0.35); }

/* challenge sheet */
.sheet { border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; background: var(--panel-2); border: 1px solid var(--hair-2); animation: drop var(--enter) var(--curve); }
.sheet .text { font: 400 1.7rem/1.15 var(--serif); }
.sheet .both { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.sheet .line { padding: 12px; border-radius: 12px; background: var(--void-2); display: grid; gap: 6px; }
.sheet .line strong { font: 700 0.78rem/1 var(--mono); text-transform: lowercase; color: var(--muted); }
.sheet .line.swap strong { color: var(--mint); }
.answers { display: grid; gap: 8px; }
.twist, .eggnote { border-left: 3px solid var(--yolk); padding: 10px 14px; background: var(--void-2); border-radius: 0 10px 10px 0; display: grid; gap: 4px; }
.eggnote h3 { font-size: 1.5rem; color: var(--yolk); }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: rank; }
.board li { display: grid; grid-template-columns: 2ch 1fr auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--hair); }
.board li::before { counter-increment: rank; content: counter(rank); font: 700 0.8rem/1 var(--mono); color: var(--muted); }
.board .n { font: 700 0.9rem/1 var(--mono); }
.board .n.eggs { color: var(--yolk); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--void-2); }
.switch input { width: 48px; height: 28px; accent-color: var(--mint); }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--bone); color: var(--void); padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 30; max-width: calc(100vw - 32px); animation: drop var(--enter) var(--curve); }
.tabs { display: flex; gap: 8px; }
footer.legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 24px var(--gutter); }
footer.legal a { color: var(--muted); }

/* ---------- the stage (a TV) ---------- */
.stage { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); grid-template-rows: auto 1fr auto; gap: 0; position: relative; overflow: hidden; }
.stage-3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage-3d canvas, .stage-3d img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stage > header, .stage > main, .stage > aside, .stage > footer { position: relative; z-index: 1; }
.stage > header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; border-bottom: 1px solid var(--hair); }
.stage > main { display: grid; align-content: center; justify-items: start; gap: 18px; padding: 32px; }
.stage .called-num { font: 400 clamp(8rem, 26vw, 22rem)/0.82 var(--serif); letter-spacing: -0.03em; }
.stage .called-letter { font: 700 clamp(1.4rem, 3vw, 2.4rem)/1 var(--mono); color: var(--yolk); }
.stage > aside { border-left: 1px solid var(--hair); padding: 24px 28px; display: grid; gap: 20px; align-content: start; background: rgba(5, 5, 8, 0.88); }
.stage > footer { grid-column: 1 / -1; border-top: 1px solid var(--hair); padding: 14px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.grid75 { display: grid; grid-template-columns: auto repeat(15, 1fr); gap: 4px; }
.grid75 b { font: 700 0.8rem/1 var(--mono); color: var(--yolk); align-self: center; padding-right: 6px; }
.grid75 span { font: 700 0.75rem/1 var(--mono); text-align: center; padding: 5px 0; border-radius: 4px; color: rgba(237, 232, 223, 0.35); }
.grid75 span.on { background: var(--yolk); color: var(--yolk-ink); }
.stage .challenge { max-width: 52ch; display: grid; gap: 12px; }
.stage .challenge .text { font: 400 clamp(1.8rem, 3.2vw, 3rem)/1.1 var(--serif); }
.stage .lobby-code { font: 400 clamp(6rem, 14vw, 12rem)/0.85 var(--serif); letter-spacing: 0.05em; }
.stage .qr { width: 220px; height: 220px; }
.room-ember { --void: #0a0504; } .room-aurora { --void: #03080a; } .room-disco { --void: #08040c; }

/* ---------- the landing ---------- */
.landing { position: relative; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: end; padding: var(--gutter); padding-bottom: clamp(32px, 8vh, 96px); overflow: hidden; }
.hero-3d { position: absolute; inset: 0; z-index: 0; }
.hero-3d canvas, .hero-3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 22px; max-width: 900px; }
.hero h1 { font-size: clamp(3.6rem, 13vw, 11rem); line-height: 0.86; }
.hero h1 em { font-style: italic; color: var(--yolk); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--bone); max-width: 46ch; }
.hero .telemetry { position: absolute; z-index: 1; top: var(--gutter); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; }
.chapters { display: grid; }
.chapter { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 96px); padding: clamp(56px, 12vh, 140px) var(--gutter); border-top: 1px solid var(--hair); align-items: start; }
.chapter h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.chapter .body { display: grid; gap: 18px; max-width: 62ch; font-size: 1.1rem; }
.chapter .body p { color: var(--muted); }
.chapter .body p strong { color: var(--bone); font-weight: 600; }
.tiers3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.tiers3 > div { background: var(--void); padding: 22px; display: grid; gap: 10px; align-content: start; }
.tiers3 h3 { font-size: 1.8rem; }
.price { font: 400 2.6rem/1 var(--serif); }
.price small { font: 500 0.95rem/1 var(--sans); color: var(--muted); }
.tick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.tick li::before { content: "◒ "; color: var(--yolk); }
.closing { padding: clamp(64px, 14vh, 160px) var(--gutter); display: grid; gap: 24px; justify-items: start; border-top: 1px solid var(--hair); }
.closing h2 { font-size: clamp(3rem, 10vw, 8rem); }

ol.tick-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
ol.tick-list li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px; align-items: baseline; }
ol.tick-list li::before { content: counter(step, decimal-leading-zero); font: 700 0.85rem/1 var(--mono); color: var(--yolk); }
.stage .both { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage .both .text { font-size: clamp(1.4rem, 2.2vw, 2.2rem); }
.tier { justify-self: start; }

/* legal pages */
.prose { max-width: 68ch; margin: 0 auto; padding: 32px var(--gutter) 64px; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
.prose h2 { font-size: 1.8rem; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--bone); }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; }
  .stage > aside { border-left: 0; border-top: 1px solid var(--hair); }
  .chapter { grid-template-columns: 1fr; }
  .tiers3 { grid-template-columns: 1fr; }
  .sheet .both { grid-template-columns: 1fr; }
}

/* Reduced motion: durations and delays to zero (AW-059); colour changes stay. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; animation-timeline: auto !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- 3 October 2026: the caller, table rules, reports, powers, photos, the All-Pass ---------- */
input[type="password"] {
  font: 500 1.1rem/1.2 var(--sans); min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--hair-2);
  background: var(--void-2); color: var(--bone); width: 100%;
}
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover; background: var(--panel-2); color: var(--yolk); font: 700 0.95rem/1 var(--sans); box-shadow: inset 0 0 0 1px var(--hair-2); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 26px; height: 26px; font-size: 0.75rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.pass-strip { padding: 10px 14px; border-radius: 12px; background: var(--void-2); color: var(--mint); font-weight: 600; }

/* a table rule: who it hit, what to do, and who can be reported */
.rule { border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; background: var(--panel-2); border: 1px solid var(--hair-2); animation: drop var(--enter) var(--curve); }
.rule.mine { border-color: var(--yolk); box-shadow: 0 0 0 1px var(--yolk), 0 18px 40px -24px var(--yolk); }
.rule .who { font: 400 1.45rem/1.1 var(--serif); }
.rule .yours { font: 700 1.15rem/1.3 var(--sans); }
.rule.mine .yours { color: var(--yolk); font-size: 1.35rem; }
.rule .both { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.rule .line { padding: 10px; border-radius: 10px; background: var(--void-2); display: grid; gap: 4px; }
.rule .line strong { font: 700 0.75rem/1 var(--mono); text-transform: lowercase; color: var(--muted); }
.rule .line.swap strong { color: var(--mint); }
.tier[data-kind="act"] { background: var(--mint); color: var(--void); }
.targets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.targets li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--void-2); min-height: 44px; }
.report { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; font: 700 0.85rem/1 var(--sans); background: var(--alert); color: var(--void); transition: transform var(--tap) var(--curve), background-color var(--ease-t) var(--curve); }
.report:active { transform: translateY(1px); background: var(--ember); color: var(--void); }
@media (hover: hover) { .report:hover { transform: translateY(-1px); background: var(--ember); color: var(--void); } }
.caught { font: 700 0.75rem/1 var(--mono); color: var(--alert); padding: 0 8px; text-transform: lowercase; }
.effects-line { font: 700 0.85rem/1.3 var(--mono); color: var(--alert); }

/* powers */
.powers { display: grid; gap: 10px; }
.power { flex: 1; min-height: 48px; border: 0; border-radius: 999px; cursor: pointer; font: 700 0.95rem/1 var(--sans); color: var(--void); transition: transform var(--tap) var(--curve), background-color var(--ease-t) var(--curve), opacity var(--ease-t) var(--curve); }
.power-freeze { background: #8fd8ff; } .power-hide { background: var(--magenta); } .power-flip { background: var(--ember); }
.power:disabled { background: var(--panel-2); color: var(--muted); cursor: not-allowed; }
.power.armed { box-shadow: 0 0 0 3px var(--bone); }
.power:active:not(:disabled) { transform: translateY(1px); background: var(--bone); color: var(--void); }
@media (hover: hover) { .power:hover:not(:disabled) { transform: translateY(-1px); background: var(--bone); color: var(--void); } }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; border: 0; cursor: pointer; background: var(--bone); color: var(--void); font: 700 0.95rem/1 var(--sans); transition: transform var(--tap) var(--curve), background-color var(--ease-t) var(--curve); }
.pick button:active { transform: translateY(1px); background: var(--yolk); color: var(--yolk-ink); }
@media (hover: hover) { .pick button:hover { transform: translateY(-1px); background: var(--yolk); color: var(--yolk-ink); } }

/* what a power does to a card */
.card.flipped .sq span { display: inline-block; transform: rotate(180deg); }
.card.frozen { filter: saturate(0.2) brightness(0.8); box-shadow: inset 0 0 0 2px #8fd8ff; }
.hidden-card { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 340px; grid-template-columns: 1fr; text-align: center; background: repeating-linear-gradient(45deg, var(--void-2) 0 14px, var(--panel) 14px 28px); }
.hidden-card p:first-child { font: 400 1.8rem/1.1 var(--serif); }
.effect-layer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(4, 18, 30, 0.82); backdrop-filter: blur(3px); }
.freeze { text-align: center; display: grid; gap: 10px; padding: 24px; color: #dff4ff; }
.freeze .count { font: 400 clamp(8rem, 40vw, 14rem)/0.85 var(--serif); color: #8fd8ff; text-shadow: 0 0 40px rgba(143, 216, 255, 0.6); animation: drop var(--enter) var(--curve); }
.freeze .by { color: #8fd8ff; font: 700 1.1rem/1.2 var(--sans); }
.topbar .wordmark { white-space: nowrap; }
.armed { box-shadow: 0 0 0 2px var(--alert); }
.host-bar { border-color: var(--hair-2); }
.leave { justify-content: center; }
.recovery-code { font: 700 1.8rem/1 var(--mono); letter-spacing: 0.08em; color: var(--yolk); padding: 16px; text-align: center; border-radius: 12px; background: var(--void-2); }
.phone .lede .price { font-size: 2.2rem; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* the landing: two ways to play, and the headline kept clear of the bright ball */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to right, rgba(5, 5, 8, 0.86) 0%, rgba(5, 5, 8, 0.55) 38%, rgba(5, 5, 8, 0) 58%), linear-gradient(to top, rgba(5, 5, 8, 0.7) 0%, rgba(5, 5, 8, 0) 30%); }
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(to top, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.8) 42%, rgba(5, 5, 8, 0) 70%); }
  .hero-3d img { object-position: 80% 50%; }
}
.hero h1, .hero .lede { text-shadow: 0 2px 24px rgba(5, 5, 8, 0.85), 0 1px 2px rgba(5, 5, 8, 0.9); }
.ways { padding: clamp(56px, 10vh, 120px) var(--gutter); border-top: 1px solid var(--hair); display: grid; gap: 32px; }
.ways h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.ways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1200px; }
.way { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.way h3 { font-size: 2.6rem; }
.way-pass { border-color: var(--yolk); box-shadow: 0 30px 80px -40px var(--yolk); }
.stage-effects { display: grid; gap: 8px; }
.stage-effects p { display: flex; align-items: center; gap: 10px; font: 700 1.4rem/1.2 var(--sans); color: #8fd8ff; }
.stage .who { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .ways-grid { grid-template-columns: 1fr; }
  .rule .both { grid-template-columns: 1fr; }
}

/* show a password while typing it */
.reveal { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); min-height: 44px; cursor: pointer; }
.reveal input { width: 20px; height: 20px; margin: 0; accent-color: var(--yolk); }

/* ---------- 3 October 2026, later: the card stays still; five powers; the win banner ---------- */
/* Everything above the card has a FIXED height, so the card never moves while the game talks. */
.deck { display: grid; gap: 10px; }
.deck .callbar { height: 84px; overflow: hidden; }
.deck .callbar .ball { width: 76px; font-size: 2.1rem; }
.deck .callbar .pattern { font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck .callbar .pattern .blurb { font: 500 0.85rem/1 var(--sans); }
.deck .callbar .recent { flex-wrap: nowrap; overflow: hidden; }
.news { height: 128px; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius); }
.news > * { min-height: 100%; }
.news-idle { display: grid; place-items: center; height: 100%; border: 1px dashed var(--hair-2); border-radius: var(--radius); font-family: var(--serif); font-size: 1.4rem; }
.news-win { display: grid; align-content: center; gap: 6px; padding: 14px; height: 100%; border-radius: var(--radius); background: var(--yolk); color: var(--yolk-ink); }
.news-win strong { font: 400 1.7rem/1.05 var(--serif); }
.news-win .muted { color: var(--yolk-ink); opacity: 0.75; }
.news .twist, .news .eggnote { height: 100%; align-content: center; }
.rule.compact { padding: 10px 12px; gap: 6px; animation: none; }
.rule.compact .who { font-size: 1.15rem; }
.rule.compact .yours { font-size: 1rem; }
.rule.compact.mine .yours { font-size: 1.1rem; }
.rule.compact .both { gap: 6px; }
.rule.compact .line { padding: 6px 8px; }
.power-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.power-row .power { min-height: 44px; padding: 0 4px; font-size: 0.82rem; }
.power-spin { background: var(--mint); } .power-shield { background: var(--bone); }
.power.up { background: var(--yolk); box-shadow: 0 0 0 3px var(--yolk-deep); }
.card-wrap { position: relative; }
.pick-sheet { position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; gap: 12px; padding: 16px; border-radius: 18px; background: rgba(11, 11, 18, 0.94); border: 1px solid var(--hair-2); }
.win-layer { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(5, 5, 8, 0.72); cursor: pointer; }
.win-banner { display: grid; justify-items: center; gap: 14px; padding: 28px 32px; margin: 16px; border-radius: 24px; background: var(--yolk); color: var(--yolk-ink); text-align: center; max-width: 560px; box-shadow: 0 30px 80px -20px rgba(255, 201, 60, 0.6); animation: drop var(--enter) var(--curve); }
.win-banner .mono { color: var(--yolk-ink); font-size: 0.9rem; }
.win-banner .win-text { font: 400 clamp(2rem, 9vw, 3.4rem)/1.02 var(--serif); }
.win-banner.you { background: var(--mint); }
.win-faces { justify-content: center; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.6rem; }
.stage-win .win-banner { max-width: 900px; padding: 48px 64px; }
.stage-win .win-banner .win-text { font-size: clamp(3rem, 6vw, 6rem); }
.power.up:disabled { background: var(--yolk); color: var(--yolk-ink); cursor: default; }
.news { height: 140px; }
.rule.compact .targets li { min-height: 36px; }
.rule.compact .report { min-height: 32px; }

/* ---------- Spin (D-35): one slow turn of the card over thirty seconds ---------- */
.card.spinning { animation-name: card-spin; animation-duration: 30s; animation-timing-function: linear; animation-fill-mode: both; box-shadow: 0 0 0 2px var(--mint); }
/* Shrunk while it turns, so its corners never cover the powers or the BINGO button. */
@keyframes card-spin {
  0% { transform: rotate(0deg) scale(1); }
  8% { transform: rotate(28.8deg) scale(0.7); }
  92% { transform: rotate(331.2deg) scale(0.7); }
  100% { transform: rotate(360deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .card.spinning { animation-timing-function: steps(4, jump-none); } }

/* ---------- the free game's teasers: what the All-Pass adds, greyed out ---------- */
.locked .seg button:disabled { opacity: 0.38; cursor: not-allowed; text-decoration: none; }
.locked .seg button:disabled:hover { transform: none; background: transparent; color: inherit; }
.locked > .muted { opacity: 0.6; }
.lock { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--yolk); color: var(--yolk-ink); font: 700 0.7rem/1.2 var(--mono); text-transform: lowercase; text-decoration: none; vertical-align: middle; }
.lock::before { content: ""; width: 8px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; box-shadow: 0 6px 0 -1px currentColor; margin-bottom: 4px; }
.powers.locked .power { opacity: 0.32; filter: grayscale(1); cursor: help; }
.powers.locked .power-row { position: relative; }

/* ---------- picking from a full Commercial room ---------- */
.pick button[hidden] { display: none; }
.pick-sheet { overflow: hidden; grid-template-rows: auto auto minmax(0, 1fr) auto; align-content: stretch; }
.pick-sheet:not(.many) { grid-template-rows: auto minmax(0, 1fr) auto; align-content: center; }
.pick { overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.pick.many { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.pick.many button { min-height: 40px; padding: 0 8px 0 4px; font-size: 0.85rem; min-width: 0; }
.pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#pick-filter { width: 100%; min-height: 40px; }
.card-wrap { min-height: 320px; }
.rule .targets { max-height: 132px; overflow-y: auto; overscroll-behavior: contain; }

/* ---------- who made it ---------- */
.maker { font: 400 0.78rem/1.4 var(--mono); color: var(--muted); margin: 0; }
footer.legal .maker { flex-basis: 100%; }
