/* Rumpus shell, v4 "after dark" (approved 15 Oct 2026, design/v4/ui). Tokens, type, masthead and tabs, room primitives,
   chunky buttons, panels, the live banner and the live takeover. Night is the look: the day tokens equal the night ones, so
   the lamp switch of the old shell is retired and html[data-theme] stays only so older code keeps working.
   Class names from the old shell (coaster-btn, quiet-btn, rugpanel, cushion, pill, tok, table, gcard ...) are kept and restyled,
   so pages that have not moved yet keep rendering. Game worlds (assets/games/<id>.css) set the --g-* tokens. */

/* ───────── 1. Tokens ───────── */
:root {
  --room: #0D0626;      /* the page, night */
  --rug: #1A0D44;       /* panels */
  --rug-2: #2C1670;     /* pressed states, meters */
  --table: #3B1280;     /* the centre of the ring when no game sets --g-surface */
  --ink: #FFF3DC;       /* text on night (paper white) */
  --ink-2: #E2D6F4;
  --muted: #B9ACDC;
  --line: rgba(255, 255, 255, .16);
  --lamp: #FFB81C;      /* sodium amber: the one primary */
  --lamp-ink: #0A0518;
  --lamp-glow: rgba(255, 184, 28, .35);
  --ok: #B8FF2C;
  --no: #FF5C9E;
  --sofa-0: #FF9F1C;
  --sofa-1: #3A86FF;
  --sofa-2: #3DDC84;
  --sofa-3: #FF2E93;
  --sofa-ink: #0A0518;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --ui: "Figtree", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-tap: 220ms; --dur-settle: 420ms; --dur-orbit: 700ms; --dur-theme: 500ms;
  /* v4 kit */
  --edge: #0A0518;        /* the dark outline of every chunky thing */
  --amber-2: #C77A00;
  --cyan: #19E3FF; --cyan-2: #0A8FB0;
  --pink: #FF2E93; --pink-2: #B80C62;
  --lime: #B8FF2C;
  --violet: #8B5CFF;
  --night-0: #06030F; --night-1: #0D0626; --night-2: #1C0B52; --night-3: #3B1280;
  --panel: rgba(13, 6, 38, .84);
  --hud: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --dw: 900;
  /* shell extras */
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-coaster: 0 6px 0 var(--edge), 0 14px 26px rgba(0, 0, 0, .45);
  --scrim: rgba(6, 3, 15, .72);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --wrap: 1280px;
  --dock-h: 0px;     /* kept for older pages; the v4 shell has no dock */
  --banner-h: 0px;   /* measured at runtime by ui.js */
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --room: #0D0626; --rug: #1A0D44; --rug-2: #2C1670; --table: #3B1280;
    --ink: #FFF3DC; --ink-2: #E2D6F4; --muted: #B9ACDC; --line: rgba(255, 255, 255, .16);
    --lamp: #FFB81C; --lamp-ink: #0A0518; --lamp-glow: rgba(255, 184, 28, .35);
    --ok: #B8FF2C; --no: #FF5C9E;
  }
}
:root[data-theme="night"] {
  --room: #0D0626; --rug: #1A0D44; --rug-2: #2C1670; --table: #3B1280;
  --ink: #FFF3DC; --ink-2: #E2D6F4; --muted: #B9ACDC; --line: rgba(255, 255, 255, .16);
  --lamp: #FFB81C; --lamp-ink: #0A0518; --lamp-glow: rgba(255, 184, 28, .35);
  --ok: #B8FF2C; --no: #FF5C9E;
}

/* Pairs the contrast gate checks for the shell. */
/* contrast: --ink on --room 4.5 */
/* contrast: --ink on --rug 4.5 */
/* contrast: --ink on --rug-2 4.5 */
/* contrast: --ink-2 on --room 4.5 */
/* contrast: --ink-2 on --rug 4.5 */
/* contrast: --muted on --room 4.5 */
/* contrast: --muted on --rug 4.5 */
/* contrast: --lamp-ink on --lamp 4.5 */
/* contrast: --room on --ink 4.5 */
/* contrast: --sofa-ink on --sofa-0 4.5 */
/* contrast: --sofa-ink on --sofa-1 4.5 */
/* contrast: --sofa-ink on --sofa-2 4.5 */
/* contrast: --sofa-ink on --sofa-3 4.5 */
/* contrast: --ok on --room 4.5 */
/* contrast: --no on --room 4.5 */

/* Takeover paper colours: saturated sticky notes on the night card. The takeover sets them on itself so the world's
   quieter tokens do not dim them. */
:root {
  --tk-n1: #FFD21F; --tk-n2: #FF4FA3; --tk-n3: #38D8FF;
  --tk-ink: #14091F; --tk-mark: #B8FF2C;
  --tk-accent: #FF5C9E; --tk-ok: #B8FF2C;
}

/* ───────── 2. Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); background: var(--room);
  font: 500 17px/1.4 var(--ui);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; } ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; } button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.theme-fade, html.theme-fade * { transition: background-color var(--dur-theme) ease, color var(--dur-theme) ease, border-color var(--dur-theme) ease !important; }

/* the season key art: Housewarming after dark, a fixed layer behind the shell (ui.js adds it, art.js draws the house) */
.season {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(80% 36% at 50% 66%, rgba(255, 46, 147, .5) 0%, rgba(255, 90, 60, .22) 45%, transparent 72%),
    radial-gradient(60% 40% at 90% 8%, rgba(25, 227, 255, .14), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 22%, var(--night-2) 50%, var(--night-3) 64%, #120733 70%);
}
.season .stars { position: absolute; inset: 0 0 45% 0; opacity: .8; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
  radial-gradient(2px 2px at 47% 22%, #9CF3FF 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 81% 25%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 91% 6%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 7% 36%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 72% 40%, #FFB1D8 50%, transparent 51%); }
.season svg.town { position: absolute; left: 50%; bottom: 0; width: max(100%, 760px); translate: -50% 0; height: auto; }
.season.up { background:
    radial-gradient(80% 30% at 50% 60%, rgba(255, 46, 147, .45), transparent 72%),
    radial-gradient(60% 40% at 90% 8%, rgba(25, 227, 255, .14), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 20%, var(--night-2) 46%, var(--night-3) 60%, #0F062B 66%, #0A0420 100%); }
.season.up svg.town { bottom: 24%; }
.season.plain svg.town { display: none; }
@media (min-width: 900px) { .season svg.town { width: 58vw; left: 33%; } .season.up svg.town { bottom: 4%; width: 74vw; left: 36%; } }
.neon { font-family: var(--display); font-weight: var(--dw); letter-spacing: .06em; }
.glow-p { color: #FFD3EA; text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px var(--pink), 0 0 54px var(--pink); }
.glow-c { color: #D8FBFF; text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan), 0 0 28px var(--cyan), 0 0 54px var(--cyan); }

/* page: the masthead and the page share one column */
.page {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 12px var(--gutter) calc(var(--banner-h) + 36px + var(--safe-b));
}
body[data-page="join"] .page { padding-bottom: calc(32px + var(--safe-b)); }
.stack { display: grid; gap: 12px; }
.center { text-align: center; }
.row-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* type: Big Shoulders Display for what you read at a glance, Barlow Condensed italic for HUD labels, Figtree for sentences */
.t-display { font: var(--dw) 46px/.94 var(--display); letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 3px 0 var(--edge); }
.t-title { font: var(--dw) 36px/.96 var(--display); letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 3px 0 var(--edge); }
.t-sub { font: var(--dw) 24px/1.02 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.t-say { font: 500 17px/1.4 var(--ui); color: var(--ink-2); text-wrap: pretty; }
.t-label { font: 700 italic 15px/1.1 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.t-small { font-size: 14px; line-height: 19px; color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.fig { font: var(--dw) 52px/1 var(--display); letter-spacing: .02em; }
.when { font: 700 italic 15px/1.1 var(--hud); color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; }
.label { font: 700 italic 15px/1 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

/* ───────── 3. Masthead: logo, connection chip, season tag, tabs ───────── */
#top { position: relative; z-index: 3; }
.mast { display: flex; align-items: center; gap: 10px; max-width: var(--wrap); margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 6px; }
.mast .sp { flex: 1; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.brand-ring { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 0 6px rgba(255, 46, 147, .7)); }
.brand-ring rect, .brand-ring circle { stroke: var(--edge); stroke-width: 1.4; paint-order: stroke; }
.brand-ring rect { fill: var(--lamp); }
.brand-ring circle:nth-of-type(1) { fill: var(--pink); } .brand-ring circle:nth-of-type(2) { fill: var(--cyan); }
.brand-ring circle:nth-of-type(3) { fill: var(--lime); } .brand-ring circle:nth-of-type(4) { fill: var(--violet); } .brand-ring circle:nth-of-type(5) { fill: #fff; }
.brand-ring circle:nth-of-type(6) { fill: var(--amber-2); }
.brand b { font: var(--dw) 32px/.9 var(--display); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 3px 0 var(--edge); }
.tools { display: flex; align-items: center; gap: 8px; }
.host-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; background: var(--lamp); color: var(--lamp-ink); border: 2px solid var(--edge); font: 800 italic 15px/1 var(--hud); letter-spacing: .1em; text-transform: uppercase; }
.host-pill svg.i { width: 16px; height: 16px; }
/* the chip: connection dot and "20 in" */
.conn-wrap { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; font: 700 italic 15px/1 var(--hud); letter-spacing: .08em; text-transform: uppercase; }
.conn { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(184, 255, 44, .25), 0 0 10px var(--lime); flex: none; }
.conn.connecting { background: var(--lamp); box-shadow: 0 0 0 3px var(--lamp-glow); animation: conn-pulse 1.4s var(--ease-settle) infinite; }
.conn.offline { background: var(--no); box-shadow: 0 0 0 3px rgba(255, 92, 158, .25); }
.conn.demo { background: var(--muted); box-shadow: 0 0 0 3px rgba(185, 172, 220, .2); }
.conn-n:empty { display: none; }
.conn-word { display: none; color: var(--ink-2); }
.conn-word.show { display: inline; }
.conn-pending { display: none; font: 500 12px/1 var(--mono); color: var(--muted); }
.conn-pending.show { display: inline; }
@keyframes conn-pulse { 50% { opacity: .45; scale: .8; } }
.lamp-switch { display: none; }
.mast-nav { display: none; }

.season-row { max-width: var(--wrap); margin: 0 auto; padding: 2px var(--gutter) 0; }
.season-row:empty, .season-row[hidden] { display: none; }
.season-tag {
  display: inline-block; padding: 5px 12px 5px 10px; transform: skewX(-8deg); max-width: 100%;
  background: var(--pink); color: #fff; border: 2px solid var(--edge); border-radius: 4px;
  font: 800 italic 15px/1.1 var(--hud); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 3px 0 var(--edge), 0 0 18px rgba(255, 46, 147, .55);
}
.season-tag > span { display: block; transform: skewX(8deg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabs { display: flex; gap: 4px; max-width: var(--wrap); margin: 0 auto; padding: 8px calc(var(--gutter) - 4px) 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 9px 12px; color: rgba(255, 255, 255, .6);
  font: var(--dw) 23px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.tab[aria-current="page"] { color: #fff; }
.tab[aria-current="page"]::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 5px; border-radius: 2px;
  background: var(--lamp); transform: skewX(-20deg); box-shadow: 0 2px 0 var(--edge), 0 0 12px rgba(255, 184, 28, .7);
}
.tab .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 6px; vertical-align: 4px;
  border-radius: 4px; transform: skewX(-8deg); background: var(--pink); color: #fff; font: 800 14px/1 var(--hud); letter-spacing: .02em; }
.tab .count.pop { animation: pop var(--dur-settle) var(--ease-spring); }
@keyframes pop { 40% { scale: 1.3; } }
@media (hover: hover) { .tab:hover { color: #fff; } }
.dock { display: none; }

/* the join door has a quiet masthead: ring and chip only, the wordmark is the page */
body[data-page="join"] .brand b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body[data-page="join"] .mast { position: absolute; z-index: 5; left: 0; right: 0; }

/* ───────── 4. The room: ring, tokens, table (kept for the setup page) ───────── */
.room { --ring: min(360px, calc(100vw - 2 * var(--gutter))); position: relative; width: var(--ring); aspect-ratio: 1; margin: 0 auto; }
.room .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--rug); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-soft); }
.room .ring::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .16); }
.tok {
  --a: 0deg; --r: calc(var(--ring, 360px) * 0.46);
  position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px;
  transform: rotate(var(--a)) translate(0, calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--edge);
  background: var(--c, var(--rug-2)); color: var(--sofa-ink);
  font: var(--dw) 14px/1 var(--display); letter-spacing: .03em;
  box-shadow: 0 3px 0 var(--edge);
  transition: transform var(--dur-orbit) var(--ease-settle), background-color var(--dur-settle), box-shadow var(--dur-settle), opacity var(--dur-settle);
}
.tok.s0 { --c: var(--sofa-0); } .tok.s1 { --c: var(--sofa-1); } .tok.s2 { --c: var(--sofa-2); } .tok.s3 { --c: var(--sofa-3); }
.tok.me { box-shadow: 0 3px 0 var(--edge), 0 0 0 3px var(--room), 0 0 0 5px var(--ink); }
.tok.host { width: 38px; height: 38px; margin: -19px; background: var(--lamp); color: var(--lamp-ink); font-size: 13px; }
.tok.lit { box-shadow: 0 3px 0 var(--edge), 0 0 0 3px var(--lime), 0 0 14px 2px rgba(184, 255, 44, .5); }
.tok.dim { opacity: .4; }
.tok.talking { width: 42px; height: 42px; margin: -21px; font-size: 16px; box-shadow: 0 3px 0 var(--edge), 0 0 0 3px var(--room), 0 0 0 5px var(--lamp); z-index: 2; }
.tok.watching { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--ink-2); color: var(--ink-2); opacity: .8; }
.tok.empty { background: transparent; box-shadow: none; border-style: dashed; border-color: rgba(255, 255, 255, .3); padding: 0; }
.tok.plus { background: transparent; box-shadow: none; border-color: var(--ink); color: var(--ink); font-size: 18px; }
.tok.arrive { animation: tok-in var(--dur-orbit) var(--ease-settle) backwards; }
@keyframes tok-in { from { opacity: 0; scale: .4; } }
button.tok { padding: 0; }
button.tok::after { content: ""; position: absolute; inset: -8px; }
.table {
  position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, color-mix(in srgb, var(--g-surface, var(--table)) 82%, white), var(--g-surface, var(--table)) 60%, var(--g-surface-2, var(--rug-2)));
  color: var(--g-surface-ink, var(--ink));
  border: 3px solid var(--edge);
  box-shadow: 0 6px 0 var(--edge), 0 18px 30px -14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .2);
  display: grid; place-items: center; align-content: center; text-align: center; padding: 10%;
}
.table .fig { font-size: 64px; }
.table .t-label { color: inherit; opacity: .8; }
.table .now { display: grid; gap: 4px; justify-items: center; }
.table .now .t-sub { font-size: 20px; line-height: 1.05; }
.table .mini-notes { position: relative; width: 70%; height: auto; aspect-ratio: 7 / 6; }
.table .mini-notes i { position: absolute; width: 44%; height: 44%; border-radius: 2px 2px 8px 2px; background: var(--tk-n1); box-shadow: 0 4px 8px -4px rgba(0, 0, 0, .6); }
.table .mini-notes i:nth-child(1) { left: 2%; top: 20%; rotate: -8deg; }
.table .mini-notes i:nth-child(2) { left: 28%; top: 6%; rotate: 3deg; background: var(--tk-n2); z-index: 1; }
.table .mini-notes i:nth-child(3) { left: 54%; top: 24%; rotate: -3deg; background: var(--tk-n3); }
.room-cap { margin-top: 14px; text-align: center; }
.sofas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.sofas i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); border: 2px solid var(--edge); }
.sofas b { font: var(--dw) 16px/1 var(--display); margin-left: 5px; color: var(--ink); letter-spacing: .04em; }

/* the table grown to the page: game live and reveal */
.bigtable {
  position: relative; margin: 10px calc(-1 * var(--gutter)) 0; padding: 22px var(--gutter) 24px;
  background: radial-gradient(140% 100% at 50% 120%, color-mix(in srgb, var(--g-surface, var(--table)) 82%, white) 0, var(--g-surface, var(--table)) 45%, var(--g-surface-2, var(--rug-2)) 100%);
  color: var(--g-surface-ink, var(--ink));
  border-radius: 50% 50% 0 0 / 60px 60px 0 0;
  box-shadow: 0 -3px 0 var(--edge);
}
.rim { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: -8px 0 6px; }
.rim .tok { position: static; margin: 0; width: 26px; height: 26px; font-size: 11px; transform: none; border-width: 2px; box-shadow: 0 2px 0 var(--edge); }
.rim .tok.talking { width: 30px; height: 30px; }
.rim .tok.lit { box-shadow: 0 2px 0 var(--edge), 0 0 0 2px var(--lime), 0 0 10px 1px rgba(184, 255, 44, .5); }
.rim .tok.dim { opacity: .35; }

/* ───────── 5. Components ───────── */
/* the one primary action: v4's chunky pressed button */
.coaster-btn, .btn {
  --bg: var(--lamp); --edge-c: var(--amber-2); --fg: var(--lamp-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 0 28px; border: 3px solid var(--edge); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 46%), var(--bg); color: var(--fg); text-decoration: none;
  font: var(--dw) 32px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 0 var(--edge-c), 0 6px 0 3px var(--edge), 0 14px 26px rgba(0, 0, 0, .45), 0 0 30px color-mix(in srgb, var(--bg) 40%, transparent);
  transform: translateY(0); transition: transform .08s, box-shadow .08s, opacity var(--dur-tap);
}
.coaster-btn:active, .btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge-c), 0 1px 0 3px var(--edge), 0 6px 12px rgba(0, 0, 0, .35); }
.coaster-btn.wide, .btn.wide { display: flex; width: 100%; }
.coaster-btn.ink, .btn.cyan { --bg: var(--cyan); --edge-c: var(--cyan-2); }
.btn.pink { --bg: var(--pink); --edge-c: var(--pink-2); --fg: #fff; }
.coaster-btn.small, .btn.small { min-height: 46px; padding: 0 20px; font-size: 22px; border-radius: 8px; box-shadow: 0 4px 0 var(--edge-c), 0 4px 0 3px var(--edge); }
.coaster-btn[disabled], .coaster-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: 0 4px 0 var(--edge); }
.coaster-btn.busy { opacity: .7; pointer-events: none; }
.coaster-btn .i { width: 24px; height: 24px; stroke-width: 2.4; }
/* the quiet one: a ghost of the same chunky family */
.quiet-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff;
  font: var(--dw) 21px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35); transition: transform .08s, box-shadow .08s, background-color var(--dur-tap);
}
.quiet-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .18); }
.quiet-btn.danger { color: var(--no); border-color: rgba(255, 92, 158, .6); }
.quiet-btn[disabled] { opacity: .45; pointer-events: none; }
.quiet-btn.busy { opacity: .7; pointer-events: none; }
@media (hover: hover) { .quiet-btn:hover { background: rgba(255, 255, 255, .18); } .coaster-btn:hover, .btn:hover { filter: brightness(1.06); } }
.sticky-cta { position: sticky; bottom: calc(var(--banner-h) + 14px + var(--safe-b)); z-index: 5; }
body[data-page="join"] .sticky-cta { position: static; }

.rugpanel, .panel { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 18px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cushion { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 2px solid var(--line); margin-top: 8px; color: inherit; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
a.cushion, button.cushion { transition: transform .08s, background-color var(--dur-tap), border-color var(--dur-tap); }
a.cushion:active, button.cushion:active { transform: translateY(2px); background: var(--rug-2); }
@media (hover: hover) { a.cushion:hover, button.cushion:hover { border-color: rgba(255, 255, 255, .4); } }
button.cushion { width: 100%; text-align: left; }
.cushion .t-sub { font-size: 22px; }
.cushion .meta { font: 700 italic 15px/1 var(--hud); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cushion.now { background: var(--rug); border-color: var(--lamp); box-shadow: 0 0 0 1px var(--lamp), 0 0 22px rgba(255, 184, 28, .25); }
.cushion.done { opacity: .6; }
/* avatars: a Pour portrait when WebGL is there (ui.js fills [data-pour]), a team badge with initials when not */
.av { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 3px solid var(--edge); background: var(--c, var(--rug-2)); color: var(--sofa-ink); font: var(--dw) 18px/1 var(--display); letter-spacing: .03em; box-shadow: 0 3px 0 var(--edge); background-size: cover; background-position: center; }
.av.s0 { --c: var(--sofa-0); } .av.s1 { --c: var(--sofa-1); } .av.s2 { --c: var(--sofa-2); } .av.s3 { --c: var(--sofa-3); }
.av.lamp { background: var(--lamp); color: var(--lamp-ink); }
.av[data-pour] { width: 52px; height: 52px; font-size: 20px; background-color: var(--c, var(--violet)); }
.av.has-pour { color: transparent; background-color: color-mix(in srgb, var(--c, var(--violet)) 55%, #1C0B52); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 4px; background: rgba(255, 255, 255, .16); color: var(--ink); border: 2px solid var(--edge); font: 800 italic 14px/1 var(--hud); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 0 var(--edge); }
.pill.lamp { background: var(--lamp); color: var(--lamp-ink); }
.pill.ink { background: #fff; color: var(--edge); }
.pill.s0 { background: var(--sofa-0); color: var(--sofa-ink); } .pill.s1 { background: var(--sofa-1); color: var(--sofa-ink); }
.pill.s2 { background: var(--sofa-2); color: var(--sofa-ink); } .pill.s3 { background: var(--sofa-3); color: var(--sofa-ink); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-accent, currentColor); }
.pill.lamp .dot, .pill.ink .dot { background: currentColor; }
.pill.pulse .dot { animation: conn-pulse 1.4s var(--ease-settle) infinite; }
/* the name tag: white, skewed, ink border */
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 7px; background: #fff; color: var(--edge); border: 3px solid var(--edge); border-radius: 6px; transform: skewX(-8deg); box-shadow: 0 4px 0 var(--edge); font: var(--dw) 26px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tag > * { transform: skewX(8deg); }
.tag .team { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--edge); }
.tag.small { font-size: 18px; padding: 3px 9px 3px 5px; border-width: 2px; box-shadow: 0 3px 0 var(--edge); }
.tag.small .team { width: 10px; height: 10px; }

.field { display: grid; gap: 6px; }
.field label { font: 700 italic 15px/1.1 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 56px; padding: 12px 16px; border: 3px solid var(--edge); border-radius: 10px; background: #fff; color: var(--edge);
  font: 600 17px/22px var(--ui); box-shadow: 0 5px 0 var(--edge); transition: box-shadow var(--dur-tap), background-color var(--dur-tap);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #FFF3C2; box-shadow: 0 5px 0 var(--edge), 0 0 0 4px var(--cyan), 0 0 22px var(--cyan); }
.field.code input { text-align: center; text-transform: uppercase; font: var(--dw) 46px/1 var(--display); letter-spacing: .3em; padding-left: calc(16px + .3em); min-height: 68px; }
.field input::placeholder, .field textarea::placeholder { color: #8A7DB0; font-weight: 500; }
.field .help { font-size: 14px; line-height: 19px; color: var(--muted); }
.field.bad input { border-color: var(--no); }
.field .err { font-size: 14px; line-height: 19px; color: var(--no); }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head .t-sub { font-size: 26px; }
.lede { display: grid; gap: 6px; }
.lede .kicker { font: 700 italic 15px/1.1 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.lede .lede-figure { display: flex; align-items: baseline; gap: 8px; }
.lede .lede-figure b { font: var(--dw) 52px/1 var(--display); letter-spacing: .02em; }
.empty { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 18px; border-radius: 12px; background: var(--panel); border: 2px dashed rgba(255, 255, 255, .3); }
.empty p { max-width: 34ch; }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 10px; height: 14px; border-radius: 3px; background: var(--rug-2); }
.meter i.on { background: var(--lime); }
.hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; line-height: 19px; transition: opacity var(--dur-settle); }
.hint.gone { opacity: 0; }
.hint svg.i { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.flash { animation: flash 1600ms var(--ease-settle); }
@keyframes flash { 0% { background-color: var(--lamp-glow); box-shadow: 0 0 0 4px var(--lamp-glow); } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }
.is-settled [data-key].arrive, .arrive { animation: arrive var(--dur-settle) var(--ease-settle) backwards; }
@keyframes arrive { from { opacity: 0; translate: 0 8px; } }
.stagger > * { animation: arrive var(--dur-settle) var(--ease-settle) backwards; animation-delay: calc(var(--i, 0) * 45ms); }

.toasts { position: fixed; z-index: 90; left: 0; right: 0; bottom: calc(var(--banner-h) + 14px + var(--safe-b)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 var(--gutter); }
.toast { display: inline-flex; align-items: center; gap: 10px; max-width: 440px; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--edge); border: 3px solid var(--edge); font: 700 15px/20px var(--ui); box-shadow: 0 5px 0 var(--edge), 0 12px 24px rgba(0, 0, 0, .4); animation: arrive var(--dur-settle) var(--ease-spring); }
.toast.out { opacity: 0; translate: 0 8px; transition: opacity var(--dur-settle), translate var(--dur-settle); }
.error-card { display: grid; gap: 8px; justify-items: start; padding: 18px; margin-bottom: 14px; border-radius: 12px; background: var(--panel); border: 2px solid var(--no); }
.error-card b { display: inline-flex; align-items: center; gap: 8px; }
.error-card code { font: 400 12.5px/17px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.booting { display: grid; gap: 12px; padding-top: 24px; }
.booting i { height: 64px; border-radius: 12px; background: var(--rug); animation: conn-pulse 1.4s var(--ease-settle) infinite; }

/* ───────── 6. Live banner ───────── */
.live-banner {
  position: fixed; z-index: 45; left: 50%; translate: -50% 0; width: min(calc(100% - 24px), 440px);
  bottom: calc(12px + var(--safe-b));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 60px; padding: 6px 8px 6px 14px; border-radius: 12px;
  background: var(--rug); color: var(--ink); border: 3px solid var(--edge); box-shadow: 0 5px 0 var(--edge), 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 28px rgba(0, 0, 0, .5);
}
.live-banner .dot { width: 10px; height: 10px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 0 3px rgba(255, 59, 59, .3), 0 0 10px #FF3B3B; animation: conn-pulse 1.4s var(--ease-settle) infinite; }
.lb-text { display: grid; min-width: 0; }
.lb-kick { font: 800 italic 14px/1.1 var(--hud); letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-say { font: 700 16px/20px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cta { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 16px; border: 2px solid var(--edge); border-radius: 8px; background: var(--lamp); color: var(--lamp-ink); font: var(--dw) 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 3px 0 var(--amber-2), 0 3px 0 2px var(--edge); }
.lb-cta svg.i { width: 18px; height: 18px; stroke-width: 2.4; }
a.live-banner { color: var(--ink); }
.live-banner.static-top { display: none; }

/* ───────── 7. Live takeover: one night card over every shell page ───────── */
.takeover { --tk-n1: #FFD21F; --tk-n2: #FF4FA3; --tk-n3: #38D8FF; --tk-ink: #14091F; --tk-mark: #B8FF2C; --tk-accent: #FF5C9E; --tk-ok: #B8FF2C;
  position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; pointer-events: none; }
.takeover[hidden] { display: none; }
.tk-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--dur-settle) var(--ease-settle); }
.takeover.open .tk-scrim { opacity: 1; pointer-events: auto; }
.tk-card {
  position: relative; pointer-events: auto; width: min(100%, 560px); max-height: calc(100dvh - 12px); overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #24105E, #140A38 40%); color: var(--ink); border: 3px solid var(--edge); border-bottom: 0; border-radius: 18px 18px 0 0;
  padding: 10px 18px calc(18px + var(--safe-b)); box-shadow: 0 -12px 40px -8px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 -4px 0 var(--edge);
  translate: 0 105%; transition: translate var(--dur-settle) var(--ease-settle);
}
.takeover.open .tk-card { translate: 0 0; }
.takeover.compact .tk-card { width: min(calc(100% - 24px), 440px); border: 3px solid var(--edge); border-radius: 12px; padding: 8px 8px 8px 14px; margin-bottom: 12px; box-shadow: 0 5px 0 var(--edge), 0 14px 28px rgba(0, 0, 0, .5); }
.takeover.compact .tk-scrim { opacity: 0; pointer-events: none; }
.tk-card:focus { outline: none; }
.tk-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.tk-grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin: 0 auto 10px; }
.takeover.compact .tk-grab { display: none; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-head .mono { font: 700 italic 15px/1 var(--hud); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.tk-x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); }
.tk-x svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
@media (hover: hover) { .tk-x:hover { background: rgba(255, 255, 255, .12); } }
.tk-body { display: grid; gap: 12px; }
.tk-title { margin-top: 2px; }
.tk-title:focus, .tk-title:focus-visible { outline: none; }
.tk-notes { display: grid; gap: 8px; }
.tk-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; background: var(--n); color: var(--tk-ink); border-radius: 3px 3px 12px 3px; rotate: var(--tilt, 0deg); font: 700 18px/1.25 var(--ui); box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 8px 16px -8px rgba(0, 0, 0, .7); }
.tk-note:nth-child(1) { --n: var(--tk-n1); --tilt: -.8deg; } .tk-note:nth-child(2) { --n: var(--tk-n2); --tilt: .6deg; } .tk-note:nth-child(3) { --n: var(--tk-n3); --tilt: -.4deg; }
.tk-note .n { font: var(--dw) 30px/1 var(--display); opacity: .7; }
.tk-note .said { font-style: italic; opacity: .75; }
.tk-note.picked { outline: 4px solid var(--tk-mark); outline-offset: 2px; translate: 0 -2px; }
.tk-note.lie { outline: 4px double #fff; outline-offset: 2px; }
.tk-note.lie .n { opacity: 1; }
.tk-notes.small .tk-note { min-height: 40px; padding: 6px 12px; font-size: 15px; box-shadow: none; rotate: 0deg; }
.tk-clock { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.tk-clock b { font: var(--dw) 38px/1 var(--display); letter-spacing: .03em; min-width: 3.2ch; color: var(--lamp); text-shadow: 0 0 14px rgba(255, 184, 28, .6); }
.tk-clock .track { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; border: 2px solid var(--edge); }
.tk-clock .track i { display: block; height: 100%; width: calc(var(--v, 1) * 100%); background: var(--lime); border-radius: inherit; }
.tk-clock.low b { color: var(--tk-accent); text-shadow: 0 0 14px rgba(255, 92, 158, .6); }
.tk-votes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tk-votes button {
  min-height: 76px; border: 3px solid var(--edge); border-radius: 10px; background: #fff; color: var(--edge); display: grid; place-items: center; align-content: center; gap: 4px;
  font: var(--dw) 40px/1 var(--display); box-shadow: 0 6px 0 var(--edge); transition: transform .08s, box-shadow .08s, background-color var(--dur-tap);
}
.tk-votes button small { font: 800 italic 13px/1 var(--hud); letter-spacing: .12em; text-transform: uppercase; color: #5A4C80; }
.tk-votes button[aria-pressed="true"] { background: var(--lamp); color: var(--lamp-ink); }
.tk-votes button[aria-pressed="true"] small { color: var(--lamp-ink); }
.tk-votes button:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge); }
.tk-votes.pick-lie button { min-height: 52px; font-size: 28px; }
.tk-count { text-align: center; font-size: 14px; line-height: 19px; color: var(--muted); }
.tk-count b { font: var(--dw) 18px/1 var(--display); letter-spacing: .04em; color: var(--ink); }
.tk-verdict { font: var(--dw) 34px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.tk-verdict.got { color: var(--ok); } .tk-verdict.missed { color: var(--no); }
.tk-compact { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 56px; }
.tk-compact .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--lamp); color: var(--lamp-ink); border: 2px solid var(--edge); font: var(--dw) 26px/1 var(--display); }
.tk-compact .say { font: 700 16px/20px var(--ui); }
.tk-compact .sub { font: 700 italic 14px/1 var(--hud); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tk-compact .tk-x { margin-right: 0; }
.tk-remote { display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 2px solid var(--line); }
.tk-remote .t-small { color: var(--ink-2); }

/* ───────── 8. Game tiles: the shelf, drawn from the registry ───────── */
.shelf, .tiles { display: grid; gap: 14px; }
.tile { position: relative; display: block; overflow: hidden; border: 3px solid var(--edge); border-radius: 14px; box-shadow: 0 6px 0 var(--edge), 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; text-decoration: none; isolation: isolate; }
.tile .art { position: relative; height: 176px; overflow: hidden; }
.tile.hero .art { height: 290px; }
.tile .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(180deg, transparent, rgba(6, 3, 15, .94) 52%); }
.tile .name { font: var(--dw) 30px/.95 var(--display); letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.tile.hero .name { font-size: 38px; }
.tile .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tile .meta span { padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); font: 700 italic 14px/1.2 var(--hud); letter-spacing: .1em; text-transform: uppercase; }
.tile .blurb { display: none; margin-top: 6px; font: 600 15px/1.25 var(--ui); color: rgba(255, 255, 255, .85); }
.flag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 11px; border: 2px solid var(--edge); border-radius: 4px; transform: skewX(-8deg); font: 800 italic 15px/1 var(--hud); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 3px 0 var(--edge); }
.flag.live { background: #FF3B3B; color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.flag.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: conn-pulse 1.4s var(--ease-settle) infinite; }
.flag.soon { background: var(--cyan); color: var(--edge); }
.flag.ready { background: var(--lamp); color: var(--lamp-ink); }
.flag.done { background: #fff; color: var(--edge); }
.tile.soon .art { filter: saturate(.9) brightness(.82); }
.tile.hero .play { position: absolute; right: 14px; bottom: 16px; z-index: 2; min-height: 52px; padding: 0 26px; font-size: 30px; }
.tile.hero .info { padding-right: 138px; }
.tile.hero .meta span:nth-child(3) { display: none; }
.pitch { display: grid; place-items: center; min-height: 150px; background: rgba(255, 255, 255, .06); border: 3px dashed rgba(255, 255, 255, .4); box-shadow: none; border-radius: 14px; }
.pitch .plus { font: var(--dw) 54px/1 var(--display); color: var(--lamp); }
/* world art for the tiles, one rule set per registry object */
.tile .tt { background: radial-gradient(60% 70% at 50% 30%, rgba(255, 170, 80, .7), transparent 70%), radial-gradient(40% 50% at 100% 0%, rgba(255, 46, 147, .35), transparent 70%), repeating-linear-gradient(94deg, transparent 0 22px, rgba(0, 0, 0, .16) 22px 24px), linear-gradient(180deg, #4A2412, #170B07); }
.tile .tt i { position: absolute; width: 104px; height: 90px; border-radius: 3px 3px 12px 3px; box-shadow: 0 12px 18px rgba(0, 0, 0, .55); }
.tile .tt i:nth-child(1) { left: 9%; top: 38px; background: #FFD21F; rotate: -9deg; }
.tile .tt i:nth-child(2) { left: 35%; top: 22px; background: #FF3D9A; rotate: 4deg; }
.tile .tt i:nth-child(3) { left: 62%; top: 44px; background: #2BD8FF; rotate: 11deg; }
.tile .tt i::after { content: ""; position: absolute; inset: 16px 12px 12px; background: repeating-linear-gradient(180deg, rgba(10, 5, 24, .42) 0 4px, transparent 4px 14px); border-radius: 2px; }
.tile .tt b { position: absolute; left: 36%; top: 64px; padding: 6px 14px; border: 5px solid #FF3B30; color: #FF3B30; border-radius: 6px; rotate: -14deg; font: var(--dw) 38px/1 var(--display); letter-spacing: .05em; background: rgba(20, 5, 5, .55); box-shadow: 0 0 22px rgba(255, 59, 48, .5); }
.tile .ch { background: radial-gradient(40% 90% at 50% 0%, rgba(255, 240, 200, .7), transparent 72%), repeating-linear-gradient(90deg, #8A0F33 0 16px, #5E0A25 16px 30px); }
.tile .ch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: #1A0A05; border-top: 4px solid #D9A441; }
.tile .ch u { position: absolute; left: 50%; top: 38px; translate: -50% 0; width: 60px; height: 74px; border-radius: 30px 30px 6px 6px; background: rgba(6, 3, 15, .82); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.tile .ch u::before { content: ""; position: absolute; left: 50%; top: -22px; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(6, 3, 15, .82); }
.tile .nt { background: radial-gradient(circle at 70% 40%, #0a0a0a 0 26%, #2a2a2a 26.5% 27%, #111 27.5% 34%, transparent 34.5%), radial-gradient(60% 60% at 20% 100%, rgba(255, 46, 147, .5), transparent 70%), linear-gradient(135deg, #00B9A8, #3A25D8); }
.tile .nt::after { content: ""; position: absolute; left: calc(70% - 10px); top: calc(40% - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 14px var(--lamp); }
.tile .hs { background: radial-gradient(45% 80% at 50% 0%, rgba(255, 214, 120, .85), transparent 70%), linear-gradient(180deg, #0F6B4A, #07241A); }
.tile .hs::after { content: ""; position: absolute; left: 50%; top: 74px; width: 78px; height: 56px; translate: -50% 0; border-radius: 18px 18px 8px 8px; background: #C0392B; box-shadow: inset 0 -12px 0 #8A1F16; }
.tile .hs b { position: absolute; left: 50%; top: 46px; translate: -50% 0; font: var(--dw) 20px/1 var(--display); letter-spacing: .12em; color: #FFD3EA; text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 26px var(--pink); white-space: nowrap; text-transform: uppercase; }
.tile .gen { background: radial-gradient(60% 70% at 50% 30%, rgba(139, 92, 255, .6), transparent 70%), linear-gradient(180deg, #2A1470, #0D0626); }
/* older shelf card, kept for pages that still use it */
.gcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel); border: 2px solid var(--line); color: inherit; }
.gcard.ready { border-color: var(--lamp); }
.gcard .object { width: 112px; height: 112px; border-radius: 12px; background: var(--g-surface, var(--table)); border: 3px solid var(--edge); display: grid; place-items: center; position: relative; overflow: hidden; }
.gcard .body { display: grid; gap: 4px; min-width: 0; }
.gcard .facts { font: 700 italic 14px/1.2 var(--hud); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gcard .pill { justify-self: start; margin-bottom: 2px; }
.gcard .go { margin-top: 6px; justify-self: start; }

/* ───────── 9. The evening as a clock (schedule) ───────── */
.clockface { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto; --cr: 140px; }
.clockface .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--panel); border: 3px solid var(--edge); box-shadow: 0 0 0 2px var(--line), var(--shadow-soft); }
.clockface .hour { --a: 0deg; position: absolute; left: 50%; top: 50%; width: 2px; height: 8px; margin: -4px -1px; background: rgba(255, 255, 255, .3); transform: rotate(var(--a)) translate(0, calc(-1 * var(--cr))); }
.clockface .hour.big { height: 12px; margin-top: -6px; width: 3px; background: var(--ink); }
.clockface .hand { --a: 0deg; position: absolute; left: 50%; top: 50%; width: 5px; height: 108px; margin-left: -2.5px; margin-top: -108px; border-radius: 2px; background: var(--lamp); transform-origin: 50% 100%; transform: rotate(var(--a)); box-shadow: 0 0 10px var(--lamp-glow); z-index: 1; transition: transform var(--dur-orbit) var(--ease-settle); }
.clockface .hand::after { content: ""; position: absolute; left: 50%; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--lamp); }
.clockface .item { --a: 0deg; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--room); box-shadow: inset 0 0 0 3px var(--ink); transform: rotate(var(--a)) translate(0, calc(-0.7 * var(--cr))) rotate(calc(-1 * var(--a))); z-index: 2; }
.clockface .item.done { background: var(--ink); }
.clockface .item.now { background: var(--lamp); box-shadow: inset 0 0 0 3px var(--edge), 0 0 0 5px var(--lamp-glow); }
.clockface .item.game { border-radius: 4px; }
.clockface .now-label { position: absolute; left: 50%; top: 50%; translate: -50% -50%; text-align: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--rug); display: grid; place-content: center; padding: 8%; z-index: 3; border: 3px solid var(--edge); }
.plan .cushion .time { font: var(--dw) 24px/1 var(--display); letter-spacing: .04em; color: var(--ink); width: 64px; }
.plan .cushion.done .t-sub { text-decoration: line-through; }

/* ───────── 10. Join ───────── */
.join-hero { text-align: center; display: grid; gap: 8px; justify-items: center; padding-top: 4px; }
.join-form { display: grid; gap: 14px; margin-top: 18px; }
.join-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.join-foot .brand-ring { width: 20px; height: 20px; }

/* ───────── 11. Desktop ───────── */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .mast { min-height: 72px; padding-top: 12px; }
  .page { padding-top: 24px; padding-bottom: calc(var(--banner-h) + 80px); }
  .two { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 56px; align-items: start; }
  body[data-page="join"] .two { grid-template-columns: minmax(0, 1fr) 420px; }
  .two.wide { grid-template-columns: minmax(0, 1.2fr) 380px; }
  .room { width: 400px; }
  .t-display { font-size: 72px; }
  .t-title { font-size: 48px; }
  .bigtable { margin: 0; border-radius: 24px; padding: 36px 40px 30px; }
  .rim .tok { width: 28px; height: 28px; font-size: 12px; }
  .shelf { grid-template-columns: 1fr 1fr; }
  .tile .blurb { font-size: 16px; }
  .sticky-cta { position: static; }
  .side { position: sticky; top: 24px; }
  .clockface { width: 400px; --cr: 176px; }
  .clockface .hand { height: 136px; margin-top: -136px; }
  /* live banner: a corner card */
  .live-banner { bottom: 20px; width: 440px; left: auto; right: 24px; translate: 0 0; }
  .toasts { bottom: calc(var(--banner-h) + 20px); }
  /* takeover: a centred card */
  .takeover { align-items: center; }
  .tk-card { width: 520px; border: 3px solid var(--edge); border-radius: 16px; padding: 14px 24px 24px; translate: 0 24px; opacity: 0; transition: translate var(--dur-settle) var(--ease-settle), opacity var(--dur-settle); box-shadow: 0 6px 0 var(--edge), 0 30px 60px -12px rgba(0, 0, 0, .8); }
  .takeover.open .tk-card { translate: 0 0; opacity: 1; }
  .tk-grab { display: none; }
  .takeover.compact { align-items: end; justify-items: end; }
  .takeover.compact .tk-card { margin: 0 24px 20px 0; width: 440px; }
}
@media (max-width: 899px) { .two > section + section, .two > .side { margin-top: 30px; } }

/* ───────── 12. Reduced motion: movement goes, states stay ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .tk-note, .table .mini-notes i, .note, .tile .tt i { rotate: 0deg !important; }
  .tk-card { translate: 0 0 !important; }
}

/* ───────── "On the TV": the host's two chips on a game's setup page and hub (assets/tv-chips.js) ───────── */
.tvrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; max-width: var(--wrap); margin: 6px auto 0; padding: 8px var(--gutter) 0; }
.tvrow[hidden] { display: none; }
.tvrow-k { display: inline-flex; align-items: center; gap: 6px; font: 700 italic 14px/1 var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-right: 2px; }
.tvrow-k::before { content: ""; width: 18px; height: 13px; border: 2px solid currentColor; border-radius: 3px; }
.tvchip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff;
  font: var(--dw) 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; transition: background-color var(--dur-tap), border-color var(--dur-tap); }
.tvchip .i { width: 18px; height: 18px; }
@media (max-width: 899px) {
  .tvrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
  .tvrow-k { grid-column: 1; grid-row: 1; }
  .tvrow-more { grid-column: 2; grid-row: 1; justify-self: end; min-height: 32px; }
  .tvchip { justify-content: center; padding: 0 8px; font-size: 17px; }
  .tvrow-say { grid-column: 1 / -1; }
}
.tvchip[aria-pressed="true"] { background: var(--lamp); border-color: var(--edge); color: var(--lamp-ink); box-shadow: 0 3px 0 var(--amber-2); }
.tvchip.busy { opacity: .6; pointer-events: none; }
.tvrow-more { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font: var(--dw) 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--lamp); text-decoration: underline; text-underline-offset: 4px; }
.tvrow-say { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--ui); color: var(--ink-2); }
.tvrow-say i.live { width: 9px; height: 9px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 8px #FF3B3B; }
