/* Hallmark · shape: app screen · genre: playful · theme: custom · idea: "the page is one arcade machine: marquee on top, the games standing on its screen in front of their own cover art, working controls on its panel" · vibe: "one lit cabinet, game boxes on the tube"
 * paper: oklch(15.5% 0.022 262) · accent: oklch(72% 0.17 145) · display: Titan One (wordmark, headings and score digits) · body: Rubik · brand: Theros (colours sampled from the supplied logo and IQ Quest art, 12 Nov 2026)
 * nav: the cabinet marquee, wordmark and tagline left, six hash tabs centred, buy action right · signature: two game boxes standing in front of the game's own pixel-art world, which you can grab and turn round to read the back, picked with a joystick that drags, over a burn counter lit on the cabinet · states: lobby, 4X open, IQ open (sealed), staking screen, round live, answer locked, lottery winner shown, signed in, signed out, price feed absent, form invalid, form not wired, ticker paused, no script
 * axes: dark/chunky-display/chromatic-green · posture: restrained (green is play, gold is buy and rank, red marks the burn once, violet belongs to IQ) · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V4 · weakest: E, the box covers are the earlier pixel set until the chosen covers are attached */
/* Hallmark · waive 39b · the panel's Start button is 64px beside 44px controls · it is the one control the machine exists for, and a cabinet's start button is the largest on its panel */
/* Hallmark · waive 47c · the joystick, domes and coin slot are drawn in CSS · they are working controls on a drawn cabinet, each with a text label and a plain equivalent elsewhere on the page */
/* Hallmark · dismissed 29 · one translucent surface, the buy panel, which floats over the screen */
/* Hallmark · dismissed 40 · the word Start sits on the flat green centre of its dome; the light and dark stops of the gradient are at the rim, outside the word */
/* Hallmark · dismissed F25 · the strip of scrolling names is dropped on a phone, where the same players are listed in the scoreboard directly above it; the burn counter and clock stay */
/* Hallmark · note 67 · MAKITTRUST and BULLISH are players' own handles as registered on theros.io, printed verbatim, not labels set in capitals */
/* Hallmark · answered F4 · buy and play are the two jobs the owner named; gold is buy, green is play */
/* Hallmark · answered F19 · the display face has one weight, 400; the body face runs 400 for text, 500 and 600 for controls and labels */
@import url("./tokens.css");
@import url("./base.css");

/* the cabinet */
body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--frame)) minmax(0, 1fr); grid-template-rows: var(--bar-height) minmax(0, 1fr) var(--led-height) var(--deck-height); height: 100dvh; background: var(--color-deck-deep); }
body > * { grid-column: 2; min-width: 0; }
.marquee { grid-row: 1; } .tube { grid-row: 2; } .led { grid-row: 3; } .deck { grid-row: 4; }
.side { grid-row: 1 / -1; pointer-events: none; background: linear-gradient(var(--color-paper-2), var(--color-deck-deep)); }
.side--l { grid-column: 1; border-right: 1px solid var(--color-gold-deep); }
.side--r { grid-column: 3; border-left: 1px solid var(--color-gold-deep); }
h1 { font: 400 calc(2.5rem * var(--ds))/1 var(--font-outlier); color: var(--color-crt-ink); }
h2 { font: 400 calc(2.25rem * var(--ds))/1 var(--font-outlier); }
code { font-family: var(--font-body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--color-ink-2); }
.note { font-size: var(--text-sm); color: var(--color-muted); }

/* marquee */
.marquee { position: relative; z-index: var(--z-sticky); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-md); padding-inline: var(--gutter); background: linear-gradient(var(--color-paper-3), var(--color-paper-2)); border-bottom: 1px solid var(--color-rule); box-shadow: 0 10px 18px -8px var(--color-shade); }
.marquee__end { display: flex; align-items: center; gap: var(--space-sm); justify-self: end; }
.me-chip .btn__cap { gap: var(--space-xs); padding: 0 var(--space-md) 0 var(--space-xs); }
.me-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--color-paper); }
.me-chip img[src$="bull.png"], .me__head img[src$="bull.png"] { object-fit: contain; image-rendering: pixelated; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); justify-self: start; text-decoration: none; border-radius: var(--radius-input); }
.brand img { width: 42px; height: auto; image-rendering: pixelated; flex-shrink: 0; }
.brand__tag { white-space: nowrap; padding-left: var(--space-sm); border-left: 1px solid var(--color-rule); font-size: var(--text-xs); font-weight: 500; line-height: 1.25; color: var(--color-ink-2); }
.brand__name { font: 400 calc(2.5rem * var(--ds))/1 var(--font-outlier); letter-spacing: 0.02em; color: var(--color-gold); }
.tabs { display: flex; gap: var(--space-2xs); }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); color: var(--color-muted); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tabs a[aria-current="page"] { background: var(--color-paper); color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) { .tabs a:hover { color: var(--color-ink); } }

/* controls */
.btn { --face: var(--color-paper-3); --ink: var(--color-ink); --lift: 4px; display: inline-flex; margin-top: var(--lift); padding: 0; border: 0; border-radius: var(--radius-pill); background: color-mix(in oklch, var(--face) 52%, var(--color-deck-deep)); box-shadow: 0 0 0 1px var(--color-deck-deep), 0 6px 12px var(--color-shade); font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn__cap { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 0 var(--space-lg); border-radius: inherit; background: var(--face); color: var(--ink); white-space: nowrap; box-shadow: inset 0 1px 0 color-mix(in oklch, var(--color-ink) 30%, transparent), inset 0 -1px 0 color-mix(in oklch, var(--color-deck-deep) 30%, transparent); transform: translateY(calc(var(--lift) * -1)); transition: transform var(--dur-spring) var(--ease-spring), background-color var(--dur-short) var(--ease-out); }
.btn:active .btn__cap { transform: translateY(-1px); transition: transform var(--dur-press) var(--ease-out); }
.kb :is(.btn__cap, .dome__cap, .coin__cap) { transition-duration: 0s; }
.btn--play { --face: var(--color-accent); --ink: var(--color-accent-ink); --lift: 5px; }
.btn--gold { --face: var(--color-gold); --ink: var(--color-gold-ink); --lift: 5px; }
.btn--wide { display: flex; }
@media (hover: hover) and (pointer: fine) {
  .btn--quiet:hover { --face: var(--color-deck); }
  .btn--play:hover { --face: var(--color-accent-2); }
  .btn--gold:hover { --face: var(--color-gold-2); }
}
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* buy panel */
.buy { position: fixed; z-index: var(--z-modal); display: grid; gap: var(--space-md); width: min(360px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: var(--space-lg); background: var(--color-glass); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--color-rule); border-radius: var(--radius-card); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
@starting-style { .buy { opacity: 0; transform: scale(0.97); } }
.buy h2 { font-size: calc(2rem * var(--ds)); }
.buy h3 { font: 600 var(--text-md)/1.3 var(--font-body); color: var(--color-ink); }
.buy__row { display: grid; gap: var(--space-xs); justify-items: start; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.buy__row .note { min-height: 1lh; }
.me { width: min(340px, calc(100% - 32px)); }
.me__out, .me__in, .signin { display: grid; gap: var(--space-sm); }
.me__head { display: flex; align-items: center; gap: var(--space-md); }
.me__head img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--color-paper); box-shadow: 0 0 0 2px var(--color-gold-deep); }
.me__head h2 { overflow-wrap: anywhere; }
.me__head code { font-size: var(--text-xs); color: var(--color-muted); }
.me__stats { display: grid; margin: 0; }
.me__stats div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: var(--space-xs) 0; border-top: 1px solid var(--color-rule); }
.me__stats dt { color: var(--color-ink-2); }
.me__stats dd { margin: 0; font-weight: 600; text-align: right; }
.me__stats .fill { font-size: var(--text-xs); font-weight: 400; }
.me__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.join__ready { grid-column: 1 / -1; color: var(--color-ink); }
.join.is-in .field { display: none; }

/* the tube */
.tube { position: relative; padding: var(--space-sm); background: linear-gradient(var(--color-paper), var(--color-deck-deep)); }
.scene { position: absolute; inset: var(--space-sm); border-radius: 20px; overflow: hidden; background: var(--color-crt); transition: opacity var(--dur-long) var(--ease-out); }
.scene__art { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 480ms var(--ease-out); }
.scene__art[data-game="4x"] { background-image: url("img/bg/cyber-city.webp"); }
.scene__art[data-game="iq"] { background-image: url("img/bg/iq-street.webp"); }
.tube:has(.box.is-sel[data-game="4x"]) .scene__art[data-game="4x"], .tube:has(.box.is-sel[data-game="iq"]) .scene__art[data-game="iq"] { opacity: 1; }
.scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(42% 46% at 0 0, color-mix(in oklch, var(--color-crt) 94%, transparent), transparent), radial-gradient(42% 46% at 100% 0, color-mix(in oklch, var(--color-crt) 94%, transparent), transparent), linear-gradient(to bottom, color-mix(in oklch, var(--color-crt) 80%, transparent), transparent 26%, transparent 60%, color-mix(in oklch, var(--color-floor) 90%, transparent) 82%, var(--color-crt)); }
.tube:has(.view:not(.play):not([hidden])) .scene { opacity: 0.45; }
.tube__glass { position: relative; height: 100%; overflow: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--color-rule), inset 0 0 70px var(--color-shade); scrollbar-color: var(--color-rule) transparent; scrollbar-width: thin; }
.tube::after { content: ""; position: absolute; inset: var(--space-sm); border-radius: 20px; pointer-events: none; background: linear-gradient(168deg, color-mix(in oklch, var(--color-ink) 7%, transparent), transparent 28%), repeating-linear-gradient(to bottom, transparent 0 3px, var(--color-scan) 3px 4px); opacity: 0.4; }
.view { padding: var(--space-lg) var(--gutter); }
.js .view[hidden] { display: none; }

/* lobby */
.play { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: var(--space-xs); overflow: clip; }
.lobby { position: relative; display: grid; gap: var(--space-sm); }
.hud { position: relative; z-index: 1; display: grid; gap: var(--space-2xs); justify-items: center; text-align: center; min-height: 64px; align-content: center; }
.hud h1 { font-size: calc(4.25rem * var(--ds)); line-height: 0.9; color: var(--color-crt-ink); }
.hud p { font-size: var(--text-md); font-weight: 500; color: var(--color-ink); }
.hud a { display: inline-flex; align-items: center; min-height: 28px; margin-left: var(--space-xs); color: var(--color-gold); border-radius: var(--radius-input); }
.hud a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.board { position: absolute; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); width: calc(var(--side-w) + var(--space-2xl)); padding: var(--space-xs) var(--space-sm) var(--space-2xs); border-radius: var(--radius-input); background: color-mix(in oklch, var(--color-paper) 84%, transparent); box-shadow: inset 0 0 0 1px var(--color-rule); font-size: var(--text-xs); }
.board__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); min-height: 30px; }
.board__top p { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 400 calc(1.2rem * var(--ds))/1.1 var(--font-outlier); color: var(--color-gold); white-space: nowrap; }
.board__nav { flex: none; }
.board__nav { display: flex; gap: var(--space-2xs); }
.board--ranks { right: 0; }
.board--totals { left: 0; }
.board dl { margin: 0; }
.board dl div { display: flex; justify-content: space-between; gap: var(--space-xs); padding: var(--space-3xs) 0; font-variant-numeric: tabular-nums; color: var(--color-ink-2); }
.board dd { margin: 0; }
.board__burn dt { color: var(--color-stick); font-weight: 600; }
.board__burn dd { color: var(--color-ink); font-weight: 600; }
.board ol { margin: 0; padding: 0; list-style: none; counter-reset: place; }
.board li { counter-increment: place; display: grid; grid-template-columns: 1.2em minmax(0, 1fr) auto; gap: var(--space-xs); padding: var(--space-3xs) 0; font-variant-numeric: tabular-nums; color: var(--color-ink-2); }
.board li::before { content: counter(place); color: var(--color-muted); }
.board li span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li:first-child { color: var(--color-gold); font-weight: 600; }
.board a { display: inline-flex; align-items: center; justify-self: start; min-height: 28px; font-size: var(--text-xs); color: var(--color-muted); }
.board .btn { --lift: 3px; }
.board .btn__cap { min-height: 26px; padding: 0 var(--space-2xs); font-size: var(--text-xs); }
.dns__try { display: grid; gap: var(--space-xs); justify-items: stretch !important; }
.dns__try .btn { justify-self: start; margin-top: var(--space-xs); }
.skip { position: fixed; left: var(--space-md); top: var(--space-md); z-index: var(--z-tooltip); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); background: var(--color-gold); color: var(--color-gold-ink); font-weight: 600; transform: translateY(-200%); }
.skip:focus-visible { transform: none; outline: 2px solid var(--color-focus); outline-offset: 2px; }
.dns__tag { justify-self: start; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-gold); color: var(--color-gold-ink); font-size: var(--text-xs); font-weight: 600; }
.dns__try label { font-size: var(--text-sm); color: var(--color-ink-2); }
.dns__try input { width: 100%; min-height: 44px; margin: 0; accent-color: var(--color-accent); cursor: pointer; }
.dns__held { font: 400 calc(2rem * var(--ds))/1 var(--font-outlier); color: var(--color-crt-ink); }
.meter { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: var(--space-2xs); width: 100%; height: 18px; }
.meter i { border-radius: 2px; background: var(--color-paper-3); transition: background-color var(--dur-short) var(--ease-out); }
.meter i.is-on { background: var(--color-accent); }
.flash { animation: flash 480ms var(--ease-out); }
@keyframes flash { from { color: var(--color-focus); } }
.me__more { display: inline-flex; align-items: center; justify-self: start; min-height: 32px; font-size: var(--text-sm); color: var(--color-ink-2); }
.shelf { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: var(--space-lg); padding-top: calc(var(--box-h) * 0.03); }
/* Align the controls with the projected fronts of the angled game covers. */
.game { --cover-direction: 1; display: grid; justify-items: center; }
.game[data-game="iq"] { --cover-direction: -1; }
.game__info {
  --cover-offset: .78;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: min(100%, calc(var(--box-h) * .855 + var(--box-d)));
  margin-top: var(--space-2xs);
  translate: calc(var(--cover-direction) * var(--cover-offset) * var(--box-d));
}
.game:has(.box.is-sel) .game__info { --cover-offset: .59; }
.game__meta { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.game__info .btn--play { --lift: 6px; max-width: 100%; }
.game__info .btn--play .btn__cap {
  min-height: 56px;
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--text-lg);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.panel .btn--quiet { justify-self: start; }
.box { position: relative; display: block; padding: var(--space-xs); border: 0; border-radius: var(--radius-card); background: none; color: var(--color-muted); font: inherit; cursor: pointer; perspective: 1100px; }
.box::before { content: ""; position: absolute; left: 4%; right: 4%; top: calc(var(--box-h) - 6px); height: 34px; border-radius: 50%; background: radial-gradient(closest-side, var(--color-shade), transparent); }
.box::after { content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--box-h) - 30px); height: 70px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.box[data-game="4x"] { --glow: var(--glow-4x); }
.box[data-game="iq"] { --glow: var(--glow-iq); }
.box.is-sel::after { opacity: 1; }
.box__obj { position: relative; z-index: 1; display: block; height: var(--box-h); aspect-ratio: 700 / 819; margin: 0 var(--space-xs) calc(var(--box-h) * 0.04) var(--box-d); transform-style: preserve-3d; transform: rotateY(18deg); }
.box[data-game="iq"] .box__obj { margin: 0 var(--box-d) calc(var(--box-h) * 0.04) var(--space-xs); }
.box__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; transform: translateZ(var(--box-d)); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-ink) 16%, transparent); }
.box__obj::after { content: ""; position: absolute; inset: 0; border-radius: 3px; backface-visibility: hidden; transform: translateZ(calc(var(--box-d) + 0.5px)); background: linear-gradient(105deg, color-mix(in oklch, var(--color-ink) 20%, transparent), transparent 24%, transparent 70%, color-mix(in oklch, var(--color-paper) 30%, transparent)); pointer-events: none; }
.box__cover, .box__spine { backface-visibility: hidden; }
.box { -webkit-user-select: none; user-select: none; }
.box__cover { pointer-events: none; -webkit-user-drag: none; }
.box__sheen { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; transform: translateZ(calc(var(--box-d) + 1px)); pointer-events: none; backface-visibility: hidden; }
.box__beam { position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(100deg, transparent, color-mix(in oklch, var(--color-ink) 42%, transparent), transparent); opacity: 0; }
.box__back { position: absolute; inset: 0; display: grid; align-content: space-between; justify-items: start; gap: 0.6em; padding: 9% 9% 8%; border-radius: 3px; transform: rotateY(180deg); background: linear-gradient(200deg, var(--color-paper-3), var(--color-deck-deep)); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-ink) 16%, transparent); backface-visibility: hidden; font-size: calc(var(--box-h) * 0.046); line-height: 1.4; text-align: left; color: var(--color-ink-2); }
.box__back b { font: 400 calc(1.9em * var(--ds))/1 var(--font-outlier); color: var(--color-gold); }
.box__back ul { display: grid; gap: 0.5em; margin: 0; padding: 0; list-style: none; }
.box__back img { width: 24%; image-rendering: pixelated; }
.box { touch-action: pan-y; }
@media (hover: hover) and (pointer: fine) { .js .play[data-state="lobby"] .box { cursor: grab; } .js .play[data-state="lobby"] .box.is-turning { cursor: grabbing; } }
.box__edge { position: absolute; right: 0; top: 0; width: var(--box-d); height: 100%; transform-origin: right center; transform: rotateY(90deg); background: linear-gradient(to left, var(--color-paper-3), var(--color-deck)); backface-visibility: hidden; display: grid; place-items: center; }
.box__edge::after { content: "IQ Quest"; writing-mode: vertical-rl; font: 400 calc(1.25rem * var(--ds))/1 var(--font-outlier); color: var(--color-gold); white-space: nowrap; }
.box__mirror { position: absolute; left: 0; top: 100%; width: 100%; height: 22%; background: center bottom / 100% auto no-repeat; transform: translateZ(var(--box-d)) scaleY(-1); opacity: 0.32; -webkit-mask-image: linear-gradient(to top, var(--color-ink), transparent); mask-image: linear-gradient(to top, var(--color-ink), transparent); pointer-events: none; backface-visibility: hidden; }
.box[data-game="4x"] .box__mirror { background-image: url("img/box-4x.jpg"); }
.box[data-game="iq"] .box__mirror { background-image: url("img/box-iq.jpg"); }
.box::before { display: none; }
.box__spine { position: absolute; left: 0; top: 0; width: var(--box-d); height: 100%; display: grid; place-items: center; transform-origin: left center; transform: rotateY(-90deg); background: linear-gradient(to right, var(--color-paper-3), var(--color-deck)); border-radius: 2px; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-ink) 14%, transparent); }
.box__spine span { writing-mode: vertical-rl; font: 400 calc(1.25rem * var(--ds))/1 var(--font-outlier); color: var(--color-gold); white-space: nowrap; }


.tally { display: grid; margin: 0; }
.tally div { display: grid; gap: var(--space-2xs); padding: var(--space-xs) 0; border-top: 1px solid var(--color-rule); max-width: 28rem; }
.tally div:first-child { border-top: 0; }
.tally dt { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.tally dd { margin: 0; font: 400 calc(1.75rem * var(--ds))/1 var(--font-outlier); color: var(--color-crt-ink); white-space: nowrap; }
.tally__burn dt { color: var(--color-stick); }

/* a game, opened on the same screen */
.js .play[data-state="lobby"] .stageplay { display: none; }
.js .play[data-state="4x"] [data-panel="iq"], .js .play[data-state="iq"] [data-panel="4x"] { display: none; }
.js .play:not([data-state="lobby"]) { grid-template-columns: auto minmax(0, 520px); justify-content: center; align-items: center; gap: var(--space-2xl); }
.js .play:not([data-state="lobby"]) .lobby { display: block; }
.js .play:not([data-state="lobby"]) :is(.hud, .board, .game__info, .box__mirror, .box:not(.is-sel)) { display: none; }
.js .play:not([data-state="lobby"]) .shelf { display: block; padding-top: 0; }
.js .play:not([data-state="lobby"]) .box { cursor: default; }
.stageplay { display: grid; gap: var(--space-sm); justify-items: start; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: color-mix(in oklch, var(--color-paper) 90%, transparent); box-shadow: inset 0 0 0 1px var(--color-rule); }
.tube:has(.play:not([data-state="lobby"])) .scene__art { opacity: 0.4; }
.panel { display: grid; gap: var(--space-sm); }
.panel h2 { font: 400 calc(2.5rem * var(--ds))/1 var(--font-outlier); letter-spacing: 0; color: var(--color-crt-ink); }
.join { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: var(--space-sm); align-items: end; margin-top: var(--space-xs); }
.join > .note { grid-column: 1 / -1; justify-self: start; }
.join > .btn { --lift: 5px; }
.join > .btn .btn__cap { min-height: 44px; }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input { width: 100%; min-height: 44px; padding: 0 var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); }
.field input[aria-invalid] { border-color: var(--color-error); }
.plays { width: 100%; border-collapse: collapse; font-size: var(--text-sm); color: var(--color-ink-2); }
.plays th { text-align: left; font-weight: 600; color: var(--color-muted); }
.plays :is(th, td) { padding: var(--space-2xs) 0; border-top: 1px solid var(--color-rule); }
.plays .num { text-align: right; }
.plays tbody th { font-weight: 400; color: var(--color-ink-2); }
.me__row .note { flex-basis: 100%; }
.challenge > * { width: min(100%, 980px); margin-inline: auto; }
.challenge__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.challenge__top h2 { font-size: calc(3rem * var(--ds)); color: var(--color-crt-ink); }
.challenge__grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.who { display: grid; gap: var(--space-md); padding-right: var(--space-xl); border-right: 1px solid var(--color-rule); }
.arena { display: grid; gap: var(--space-sm); }
.arena .after .btn { justify-self: start; }
.challenge:not([data-rstate="join"]) [data-idle] { display: none; }
.challenge .round__time b { font-size: calc(4rem * var(--ds)); }
.challenge .round legend { font-size: var(--text-xl); line-height: 1.3; }
.challenge .opt { min-height: 60px; }
.challenge .tally { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.challenge .plays { table-layout: fixed; }
.challenge .plays :is(th, td):first-child { width: 28%; }
.challenge .plays tfoot :is(th, td) { font-weight: 600; color: var(--color-ink); }
.is-wrong { color: var(--color-error); }
/* a live question takes the whole window */
.is-round .view.challenge { position: fixed; inset: 0; z-index: var(--z-modal); overflow: auto; align-content: center; min-height: 0; padding: var(--space-xl) var(--gutter); background: var(--color-crt) linear-gradient(var(--color-paper-2), var(--color-crt) 60%); }
.after:focus { outline: none; }
.is-round .challenge > :not(.challenge__grid), .is-round .who { display: none; }
.is-round .challenge > .challenge__grid { width: 100%; }
.is-round .challenge__grid { grid-template-columns: minmax(0, 880px); justify-content: center; }
.is-round .arena { max-width: none; }
.is-round .round { gap: var(--space-md); }
.is-round .round__who { font-size: var(--text-lg); }
.is-round .round__who img { width: 44px; height: 44px; }
.is-round .round__time b { font-size: calc(6rem * var(--ds)); }
.is-round .meter { height: 24px; }
.is-round .round legend { margin-bottom: var(--space-md); font-size: var(--text-3xl); line-height: 1.2; }
.is-round .opt { min-height: 80px; font-size: var(--text-lg); }
.is-round .opt b { font-size: calc(2.25rem * var(--ds)); }
.is-round .round .btn { --lift: 6px; }
.is-round .round .btn .btn__cap { min-height: 56px; padding: 0 var(--space-2xl); font-size: var(--text-lg); }
.round, .after { display: grid; gap: var(--space-sm); width: 100%; }
.round__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.round__who { display: inline-flex; align-items: center; gap: var(--space-xs); min-width: 0; font-weight: 600; }
.round__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.btn, .ctl, .opt, .tabs a, .box, summary) { touch-action: manipulation; }
.round__who img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--color-paper); }
.round__who img[src$="bull.png"] { object-fit: contain; image-rendering: pixelated; }
.round__time { color: var(--color-ink-2); white-space: nowrap; }
.round__time b { margin-right: 0.15em; font: 400 calc(2.5rem * var(--ds))/1 var(--font-outlier); color: var(--color-crt-ink); }
.round fieldset { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.round legend { margin-bottom: var(--space-sm); padding: 0; font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); }
.round .btn, .round .dns__tag { justify-self: start; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.opt { position: relative; display: flex; align-items: center; gap: var(--space-sm); min-height: 48px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-muted); color: var(--color-ink); cursor: pointer; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt b { font: 400 calc(1.5rem * var(--ds))/1 var(--font-outlier); color: var(--color-gold); }
.opt:has(:checked) { background: var(--color-paper-3); box-shadow: inset 0 0 0 2px var(--color-accent); }
.opt:has(:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.opt:active { transform: scale(0.98); }
.after__lead { font-weight: 600; color: var(--color-ink); }
.after__clock { display: block; font: 400 calc(3rem * var(--ds))/1.1 var(--font-outlier); color: var(--color-gold); }
.panel .block { width: 100%; padding-top: var(--space-md); }
.board__lotto { margin-top: var(--space-2xs); border-top: 1px solid var(--color-gold-deep); color: var(--color-ink); }
.board__lotto summary { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font: 400 calc(1.2rem * var(--ds))/1.1 var(--font-outlier); color: var(--color-gold); cursor: pointer; border-radius: var(--radius-input); list-style: none; }
.board__lotto summary::-webkit-details-marker { display: none; }
.board__lotto summary::after { content: ""; width: 7px; height: 7px; margin-right: var(--space-2xs); border-right: 2px solid var(--color-gold); border-bottom: 2px solid var(--color-gold); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.board__lotto[open] summary::after { transform: rotate(-135deg); }
.board__lotto p { padding-bottom: var(--space-2xs); }
.game__info { flex-direction: column; justify-content: flex-start; gap: var(--space-xs); min-height: 92px; }
.game__meta--pill { display: inline-flex; align-items: center; min-height: 56px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: color-mix(in oklch, var(--color-paper) 86%, transparent); box-shadow: inset 0 0 0 1px var(--color-rule); font-size: var(--text-md); color: var(--color-ink); }
.profile > .note .btn { --lift: 3px; margin-left: var(--space-xs); vertical-align: middle; }
.profile > .note .btn__cap { min-height: 28px; padding: 0 var(--space-sm); font-size: var(--text-xs); }
.sealed { font-weight: 600; color: var(--color-gold); }
.countdown b { font: 400 calc(3.5rem * var(--ds))/1 var(--font-outlier); color: var(--color-ink); margin-right: 0.2em; }

/* leaders, lore, token */
.view:not(.play) { display: grid; gap: var(--space-lg); align-content: start; min-height: 100%; padding-block: var(--space-xl); background: color-mix(in oklch, var(--color-crt) 78%, transparent); }
.view > h2 { margin: 0; font-size: calc(3rem * var(--ds)); color: var(--color-crt-ink); }
h3 { font: 400 calc(1.75rem * var(--ds))/1 var(--font-outlier); color: var(--color-gold); }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-xl) var(--space-lg); }
.rank { display: grid; gap: var(--space-2xs); align-content: start; }
.rank p { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-xs); }
.rank ol { margin: 0; padding: 0; list-style: none; counter-reset: place; }
.rank li { counter-increment: place; display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: var(--space-xs); padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); font-variant-numeric: tabular-nums; }
.rank li::before { content: counter(place); color: var(--color-muted); }
.rank li span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank li:first-child { font-weight: 600; }
.rank li:first-child span { color: var(--color-gold); }
.episodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; counter-reset: ep; }
.episodes li { counter-increment: ep; display: grid; gap: var(--space-sm); }
.episodes .fill { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: var(--space-md); border-radius: var(--radius-input); background: color-mix(in oklch, var(--color-paper) 80%, transparent); text-align: center; font-size: var(--text-sm); }
.episodes b { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; font-size: var(--text-lg); font-weight: 600; }
.episodes b::before { content: counter(ep); font: 400 calc(2.25rem * var(--ds))/1 var(--font-outlier); color: var(--color-gold); }
.films { display: grid; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.films ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; counter-reset: film; }
.films li { counter-increment: film; display: grid; gap: var(--space-2xs); color: var(--color-ink-2); }
.films li::before { content: counter(film); font: 400 calc(1.5rem * var(--ds))/1 var(--font-outlier); color: var(--color-muted); }
.tally { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; }
.tally div { display: grid; gap: var(--space-xs); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); }
.tally dt { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.tally dd { margin: 0; font: 400 calc(3rem * var(--ds))/0.9 var(--font-outlier); color: var(--color-crt-ink); white-space: nowrap; }
.tally__burn dt { color: var(--color-stick); }
.tally__burn dd { font-size: calc(4rem * var(--ds)); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.cols--3 { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.cols--3 > div { display: grid; gap: var(--space-sm); align-content: start; justify-items: start; }
.links { width: 100%; margin: 0; padding: 0; list-style: none; }
.links li { padding: var(--space-xs) 0; border-top: 1px solid var(--color-rule); }
.links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 32px; }
.contract code { font-size: var(--text-md); color: var(--color-ink); }
.block { display: grid; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
:is(.learn, .profile, .staking) .cols > div { display: grid; gap: var(--space-sm); align-content: start; justify-items: start; }
.lead { max-width: 34em; font-size: var(--text-lg); color: var(--color-ink); }
:is(.learn, .staking) p:not(.note, .lead, .dns__tag) { max-width: 60ch; color: var(--color-ink-2); }
.steps { width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 1.4em 5em minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-xs) 0; border-top: 1px solid var(--color-rule); color: var(--color-ink-2); }
.steps li::before { content: counter(step); color: var(--color-muted); }
.steps b { font-weight: 600; color: var(--color-ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; }
.facts div { display: grid; gap: var(--space-2xs); align-content: start; padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.facts dd { margin: 0; color: var(--color-ink-2); }
.facts dd b { display: block; margin-bottom: var(--space-2xs); font: 400 calc(1.9rem * var(--ds))/1.1 var(--font-outlier); color: var(--color-crt-ink); }
.faq { columns: 2; column-gap: var(--space-xl); }
.faq details { break-inside: avoid; border-top: 1px solid var(--color-rule); }
.faq summary { min-height: 44px; padding: var(--space-sm) 0; font-weight: 600; color: var(--color-ink); cursor: pointer; border-radius: var(--radius-input); }
.faq details p { padding-bottom: var(--space-sm); }
.profile__out, .profile__in { display: grid; gap: var(--space-lg); justify-items: start; }
.profile__in > .cols { width: 100%; }
.profile__name { font: 400 calc(2.25rem * var(--ds))/1 var(--font-outlier); color: var(--color-crt-ink); overflow-wrap: anywhere; }
.who .profile__name { font-size: calc(1.6rem * var(--ds)); }
.profile .me__stats { width: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.badges li { padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-muted); }
.badges li.is-on { background: var(--color-gold); box-shadow: none; color: var(--color-gold-ink); font-weight: 600; }
.recap { margin-top: var(--space-md); }
.crowd { display: grid; gap: var(--space-xs); width: 100%; }
.crowd ol, .rank__list { width: 100%; margin: 0; padding: 0; list-style: none; }
.crowd li { display: grid; grid-template-columns: minmax(0, 1fr) 3.2em; gap: var(--space-3xs) var(--space-xs); padding: var(--space-xs) 0; border-top: 1px solid var(--color-rule); font-variant-numeric: tabular-nums; color: var(--color-ink-2); }
.crowd li span:nth-child(2) { text-align: right; }
.crowd__bar { grid-column: 1 / -1; height: 8px; border-radius: 2px; background: var(--color-paper-3); }
.crowd__bar i { display: block; height: 100%; border-radius: inherit; background: var(--color-muted); }
.crowd li.is-right { color: var(--color-ink); font-weight: 600; }
.crowd li.is-right .crowd__bar i { background: var(--color-accent); }
.rank__list li { display: flex; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) 0; border-top: 1px solid var(--color-rule); font-variant-numeric: tabular-nums; }

/* the strip of names */
.led { overflow: hidden; display: flex; align-items: center; background: var(--color-crt); border-block: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* the control panel */
.deck { position: relative; overflow: hidden; perspective: 900px; perspective-origin: 50% 0; background: var(--color-deck-deep); }
.deck__top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center; justify-items: center; gap: var(--space-2xl); width: 108%; height: 100%; margin-inline: -4%; padding: var(--space-2xs) calc(4% + var(--gutter)) var(--space-sm); background: linear-gradient(var(--color-deck), var(--color-paper-3) 70%, var(--color-paper-2)); border-top: 1px solid color-mix(in oklch, var(--color-ink) 26%, transparent); box-shadow: inset 0 16px 24px -16px var(--color-shade); transform: rotateX(15deg); transform-origin: 50% 100%; }
.deck::after { content: ""; position: absolute; inset: auto 0 0; height: var(--space-xs); background: linear-gradient(var(--color-paper-3), var(--color-deck-deep)); border-top: 1px solid color-mix(in oklch, var(--color-ink) 18%, transparent); pointer-events: none; }
.ctl { display: grid; justify-items: center; gap: var(--space-xs); min-width: 68px; padding: var(--space-2xs); border: 0; border-radius: 12px; background: none; color: var(--color-ink-2); font: 600 var(--text-sm)/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ctl--stick { cursor: default; }
.deck__aux { display: flex; align-items: flex-end; gap: var(--space-2xs); }
.deck__aux--l { justify-self: start; }
.deck__aux--r { justify-self: end; gap: var(--space-md); }
.ctl--small { min-width: 60px; font-weight: 500; }
.dome--small { --dome: var(--color-ink-2); --lift: 4px; width: 30px; }
.quote { display: grid; justify-items: end; align-content: center; min-width: 136px; min-height: 48px; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-crt); box-shadow: inset 0 0 0 1px var(--color-rule), inset 0 3px 10px var(--color-shade), 0 0 0 4px var(--color-deck-deep), 0 0 0 5px var(--color-rule); transition: transform var(--dur-press) var(--ease-out); }
.quote__price { font: 400 calc(1.7rem * var(--ds))/1.1 var(--font-outlier); color: var(--color-gold); }
.quote__price .fill { font: 400 var(--text-xs)/1.4 var(--font-body); }
.chg { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.chg.is-up { color: var(--color-accent-2); }
.chg.is-down { color: var(--color-error); }
.ctl--quote:active .quote { transform: translateY(2px); }
.buy__price { display: flex; align-items: baseline; gap: var(--space-xs); color: var(--color-ink-2); }
.buy__price b { font: 400 calc(1.5rem * var(--ds))/1.1 var(--font-outlier); color: var(--color-gold); }
.buy__price .fill { font: 400 var(--text-xs)/1.4 var(--font-body); }
.ctl--start { min-width: 150px; }
.ctl[aria-disabled="true"] { cursor: not-allowed; }
.ctl[aria-disabled="true"] .dome { opacity: 0.5; }
.dome { --dome: var(--color-muted); --lift: 6px; position: relative; display: block; width: 44px; aspect-ratio: 1; margin-top: var(--lift); border-radius: 50%; background: color-mix(in oklch, var(--dome) 48%, var(--color-deck-deep)); box-shadow: 0 0 0 4px var(--color-deck-deep), 0 0 0 5px var(--color-rule), 0 10px 14px var(--color-shade); }
.dome__cap { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 36% 26%, color-mix(in oklch, var(--dome) 50%, var(--color-ink)), var(--dome) 50%, color-mix(in oklch, var(--dome) 72%, var(--color-deck-deep))); transform: translateY(calc(var(--lift) * -1)); transition: transform var(--dur-spring) var(--ease-spring); }
.dome--start { --dome: var(--color-accent); --lift: 7px; width: 64px; color: var(--color-accent-ink); font: 400 calc(1.5rem * var(--ds))/1 var(--font-outlier); }
.dome__ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--color-accent-2); opacity: 0; pointer-events: none; }
.dome--start::after { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklch, var(--color-accent) 60%, transparent), transparent); opacity: 0.25; animation: breathe 2.6s ease-in-out infinite alternate; }
.ctl[aria-disabled="true"] .dome--start::after { animation: none; }
@keyframes breathe { to { opacity: 0.9; } }
.coin { --lift: 5px; position: relative; display: block; width: 46px; height: 60px; margin-top: var(--lift); border-radius: 8px; background: var(--color-gold-deep); box-shadow: 0 0 0 4px var(--color-deck-deep), 0 0 0 5px var(--color-rule), 0 10px 14px var(--color-shade); }
.coin__cap { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(160deg, var(--color-gold-2), var(--color-gold)); transform: translateY(calc(var(--lift) * -1)); transition: transform var(--dur-spring) var(--ease-spring); }
.coin__slot { width: 7px; height: 34px; border-radius: 4px; background: var(--color-deck-deep); }
.coin__chip { position: absolute; left: calc(50% - 3px); top: 0; width: 6px; height: 26px; border-radius: 3px; background: linear-gradient(var(--color-ink), var(--color-gold-2)); visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .ctl:not([aria-disabled="true"]):hover :is(.dome__cap, .coin__cap) { transform: translateY(calc(var(--lift) * -1 - 1px)); } .btn:hover .btn__cap { transform: translateY(calc(var(--lift) * -1 - 1px)); } }
.ctl:not([aria-disabled="true"]):active :is(.dome__cap, .coin__cap) { transform: translateY(-1px); transition: transform var(--dur-press) var(--ease-out); }
.deck { -webkit-user-select: none; user-select: none; }
.stick { position: relative; width: 70px; height: 66px; touch-action: none; cursor: grab; border-radius: 12px; }
.stick:active { cursor: grabbing; }
.stick__base { position: absolute; left: 6px; right: 6px; bottom: 0; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, var(--color-deck-deep) 34%, var(--color-paper-2) 36%, var(--color-deck-deep)); box-shadow: 0 0 0 1px var(--color-rule), 0 6px 10px var(--color-shade); }
.stick__arm { position: absolute; left: 50%; bottom: 11px; width: 0; height: 48px; transform-origin: 50% 100%; }
.stick__shaft { position: absolute; left: -4px; bottom: 0; width: 8px; height: 36px; border-radius: 4px; background: linear-gradient(to right, var(--color-muted), var(--color-ink) 40%, var(--color-rule)); }
.stick__ball { --dome: var(--color-stick); position: absolute; left: -17px; top: -6px; width: 34px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 36% 26%, color-mix(in oklch, var(--dome) 50%, var(--color-ink)), var(--dome) 50%, color-mix(in oklch, var(--dome) 62%, var(--color-deck-deep))); box-shadow: 0 6px 10px var(--color-shade); }
:is(.ctl, .stick, .box, .tabs a, .brand, .field input, .links a, .board a, .signin input, .dns__try input, .faq summary, .board__lotto summary, .me__more):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

@media (max-width: 100rem) { .side { display: none; } body { grid-template-columns: 0 minmax(0, 1fr) 0; } }
@media (max-width: 90rem) { .brand__tag { white-space: normal; max-width: 18em; font-size: 0.75rem; } .tabs a { padding: 0 var(--space-xs); font-size: var(--text-sm); } }
@media (max-width: 72rem) and (min-width: 60.01rem) { .brand__tag { display: none; } }
@media (max-width: 68rem) and (min-width: 60.01rem) { .hud a { display: none; } }
@media (max-width: 60rem) {
  :root { --deck-height: 120px; }
  body { grid-template-rows: auto minmax(0, 1fr) var(--led-height) var(--deck-height); }
  .marquee { gap: 0 var(--space-xs); padding-block: var(--space-xs) var(--space-2xs); }
  .marquee { grid-template-columns: minmax(0, 1fr) auto; }
  .marquee .brand { grid-row: 1; grid-column: 1; }
  .marquee__end { grid-row: 1; grid-column: 2; }
  .marquee .tabs { grid-row: 2; grid-column: 1 / -1; }
  .marquee__end .btn--gold { display: none; }
  .brand { flex-wrap: wrap; row-gap: var(--space-3xs); }
  .brand__tag { flex-basis: 100%; max-width: none; padding-left: 0; border-left: 0; }
  .tabs { justify-content: space-between; }
  .tabs a { padding: 0 var(--space-xs); }
  .tube { padding: var(--space-xs); }
  .tube::after, .scene { inset: var(--space-xs); }
  .scene::after { background: linear-gradient(to bottom, color-mix(in oklch, var(--color-crt) 88%, transparent), color-mix(in oklch, var(--color-crt) 60%, transparent) 24%, transparent 40%, transparent 56%, color-mix(in oklch, var(--color-crt) 90%, transparent) 72%, var(--color-crt)); }
  .play { align-content: start; }
  .lobby { grid-template-columns: minmax(0, 1fr); }
  .deck__aux { display: none; }
  .lobby { display: flex; flex-direction: column; gap: var(--space-sm); }
  .hud { order: 0; }
  .hud h1 { font-size: calc(3.5rem * var(--ds)); }
  .hud a { display: flex; justify-content: center; min-height: 44px; margin-left: 0; }
  .board { font-size: var(--text-sm); padding: var(--space-sm) var(--space-md) var(--space-xs); }
  .board { position: static; width: 100%; }
  .board--ranks { order: 2; }
  .board--totals { order: 3; }
  .dome--start::after { animation: none; opacity: 0.6; }
  .tube__glass:has(.play[data-state="lobby"]:not([hidden])) { scrollbar-gutter: stable both-edges; }
  .shelf { order: 1; display: flex; justify-content: flex-start; gap: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: calc(50% + var(--gutter) - (var(--box-h) * 0.855 + var(--box-d) + var(--space-md)) / 2); padding-bottom: var(--space-sm); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .game { flex: none; width: calc(var(--box-h) * 0.855 + var(--box-d) + var(--space-md)); scroll-snap-align: center; }
  .game .box { touch-action: pan-x pan-y; translate: calc(var(--box-d) * -.38); }
  .game__info { flex-direction: column; gap: var(--space-xs); margin-top: 0; translate: none; }
  .game:not(:has(.box.is-sel)) .game__info { visibility: hidden; }
  .join > .btn { justify-self: start; }
  .box[data-game="iq"] .box__obj { margin: 0 var(--space-xs) calc(var(--box-h) * 0.07) var(--box-d); }
  .box { padding: var(--space-2xs); }
  .js .play:not([data-state="lobby"]) { grid-template-columns: minmax(0, 1fr); }
  .js .play:not([data-state="lobby"]) .lobby { display: none; }
  .join, .cols, .cols--3, .episodes, .tally, .facts { grid-template-columns: minmax(0, 1fr); }
  .faq { columns: 1; }
  .opts, .challenge__grid, .challenge .tally { grid-template-columns: minmax(0, 1fr); }
  .who { padding-right: 0; border-right: 0; }
  .is-round .round legend { font-size: var(--text-xl); }
  .is-round .opt { min-height: 60px; }
  .is-round .round__time b { font-size: calc(4rem * var(--ds)); }
  .films ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view > h2 { font-size: calc(2.25rem * var(--ds)); }
  .tally dd { font-size: calc(2.5rem * var(--ds)); }
  .tally__burn dd { font-size: calc(3rem * var(--ds)); }
  .ctl--small { display: none; }
  .dome--start { width: 58px; --lift: 7px; }
  .coin { height: 50px; }
  .deck__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); padding-inline: calc(4% + var(--space-xs)); }
  .ctl { gap: var(--space-2xs); font-size: var(--text-xs); }
  .ctl--start { min-width: 0; max-width: 100%; text-align: center; white-space: normal; }
  .stick { width: 60px; height: 56px; }
  .stick__arm { height: 40px; }
  .stick__shaft { height: 28px; }
  .panel h2 { font-size: calc(2rem * var(--ds)); }
}
@media (max-height: 46rem) and (min-width: 60rem) { :root { --deck-height: 100px; } .shelf { padding-top: 0; } .game__info { min-height: 72px; gap: var(--space-2xs); } .game__info .btn--play .btn__cap, .game__meta--pill { min-height: 44px; font-size: var(--text-md); } .hud h1 { font-size: calc(3.25rem * var(--ds)); } .board li:nth-child(n+4), .board dl div:nth-child(n+4) { display: none; } .ctl { gap: var(--space-2xs); font-size: var(--text-xs); } .dome--start { width: 52px; --lift: 6px; font-size: calc(1.25rem * var(--ds)); } .stick { height: 56px; } .stick__arm { height: 40px; } .stick__shaft { height: 28px; } .coin { height: 46px; } }
@media (max-height: 46rem) and (min-width: 60rem) {
  :root { --lobby-reserve: 224px; --box-min: 150px; }
  .shelf { padding-top: var(--space-md); }
}
@media (max-height: 40rem) and (min-width: 60rem) {
  :root { --deck-height: 84px; --lobby-reserve: 180px; --box-min: 120px; }
  .hud { min-height: 0; } .hud h1 { font-size: calc(2.75rem * var(--ds)); } .hud p { display: none; }
  .game__info { min-height: 50px; }
  .board li:nth-child(n+3), .board dl div:nth-child(n+3) { display: none; }
  .dome--start { width: 44px; } .stick { height: 48px; } .stick__arm { height: 34px; } .stick__shaft { height: 22px; } .coin { height: 38px; } .dome--small { width: 24px; } .quote { min-height: 38px; }
}
/* phone */
@media (max-width: 60rem) {
  body { grid-template-rows: auto minmax(0, 1fr) var(--led-height) calc(var(--deck-height) + env(safe-area-inset-bottom, 0px)); }
  .deck { padding-bottom: env(safe-area-inset-bottom, 0px); }
  /* top bar: wordmark and chip on one line, tagline full width under it, tabs that scroll sideways */
  .marquee { position: relative; padding-top: var(--space-xs); }
  .marquee .brand { grid-column: 1 / -1; padding-right: 0; }
  .brand img { width: 34px; }
  .brand__name { font-size: calc(2.1rem * var(--ds)); }
  .brand__tag { font-size: 0.75rem; }
  .marquee__end { grid-row: 1; grid-column: 1 / -1; justify-self: end; align-self: start; z-index: 1; }
  .me-chip [data-me-label] { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
  .marquee .tabs { justify-content: flex-start; gap: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: calc(var(--gutter) - var(--space-xs)); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .marquee .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; min-height: 44px; padding: 0 var(--space-xs); font-size: var(--text-md); }
  /* tap targets */
  :is(.links a, .board a, .me__more, .board__lotto summary) { min-height: 44px; }
  .board .btn__cap { min-height: 36px; padding: 0 var(--space-sm); }
  .profile > .note .btn__cap { min-height: 40px; }
  :is(.field input, .signin input) { font-size: 1rem; }
  /* panels open as sheets from the bottom edge */
  .buy { left: var(--space-xs) !important; right: var(--space-xs); top: auto !important; bottom: calc(var(--space-xs) + env(safe-area-inset-bottom, 0px)) !important; width: auto; max-height: calc(100dvh - 72px); transform-origin: 50% 100% !important; }
  /* 4X screen */
  .stageplay { padding: var(--space-md); }
  .panel .me__row .btn { flex: 1 1 auto; }
  .plays--rule { font-size: var(--text-xs); }
  .plays--rule thead th { white-space: nowrap; }
  /* the question */
  .is-round .view.challenge { align-content: start; padding: calc(var(--space-lg) + env(safe-area-inset-top, 0px)) var(--gutter) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); }
  .round .btn { display: flex; width: 100%; }
  .is-round .round .btn .btn__cap { min-height: 60px; }
  /* challenge screen after the answer */
  .challenge__top { flex-direction: column; align-items: flex-start; gap: 0; }
  .challenge__top h2 { font-size: calc(2.25rem * var(--ds)); }
  .challenge .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .challenge .tally dd, .challenge .tally__burn dd { font-size: calc(2.25rem * var(--ds)); }
  .challenge .plays { font-size: var(--text-xs); }
  .challenge .plays :is(th, td):first-child { width: 31%; }
  .after .btn { display: flex; }
  /* reading screens */
  .view:not(.play) { gap: var(--space-md); padding-block: var(--space-lg); }
  .steps li { grid-template-columns: 1.4em minmax(0, 1fr); }
  .steps li span { grid-column: 2; }
  .dns__try .btn, .profile__out .btn { display: flex; width: 100%; }
  .profile .me__row .btn { flex: 1 1 auto; }
  .rank li { padding: var(--space-xs) 0; }
}
@media (prefers-reduced-motion: reduce) { .dome--start::after { animation: none; opacity: 0.6; } .flash { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .buy { background: var(--color-paper-2); -webkit-backdrop-filter: none; backdrop-filter: none; } .tube::after { display: none; } }
