/* Trembling Hand: the house style (Design v2, ink hands).
   Tokens from the canvas; logical properties throughout (RTL costs nothing
   later); the room is a 390x844 stage that scales with the viewport. */

@font-face { font-family: "Gabarito"; font-weight: 700; font-display: swap; src: url(/static/fonts/gabarito-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gabarito"; font-weight: 800; font-display: swap; src: url(/static/fonts/gabarito-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gabarito"; font-weight: 900; font-display: swap; src: url(/static/fonts/gabarito-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gabarito"; font-weight: 900; font-display: swap; src: url(/static/fonts/gabarito-latin-ext-900-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(/static/fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(/static/fonts/golos-text-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(/static/fonts/golos-text-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0F0D2A;
  --ink: #15132B;
  --day: #F6F7FB;
  --lamp: #FFB454;
  --ice: #8FE3FF;
  --pot: #8A7BD8;
  --muted: #A9A5C8;
  --dim: #6E6A8F;
  --line: rgba(169, 165, 200, 0.25);
  --display: "Gabarito", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); -webkit-font-smoothing: antialiased; min-block-size: 100dvh; }
body.night { background: var(--night); color: var(--day); }
body.day { background: var(--day); color: var(--ink); }
a { color: var(--lamp); }
img { display: block; max-inline-size: 100%; }
button, input { font: inherit; }
h1, h2, p { margin: 0; }
.d { font-family: var(--display); font-weight: 900; letter-spacing: -0.015em; }
.cap { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- motion ----------------------------------------------------------------- */
@keyframes tremble { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 20% { transform: translate(1.2px, -0.8px) rotate(-0.35deg); } 40% { transform: translate(-1px, 0.9px) rotate(0.3deg); } 60% { transform: translate(0.9px, 0.6px) rotate(-0.2deg); } 80% { transform: translate(-0.8px, -0.7px) rotate(0.25deg); } }
@keyframes tremble2 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-0.9px, 0.7px); } 50% { transform: translate(0.8px, -0.6px); } 75% { transform: translate(-0.5px, -0.8px); } }
@keyframes shiver { 0%, 100% { text-shadow: 3px -2px 0 var(--lamp); } 25% { text-shadow: -2px 3px 0 var(--lamp); } 50% { text-shadow: -3px -2px 0 var(--lamp); } 75% { text-shadow: 2px 3px 0 var(--lamp); } }
@keyframes settle { from { transform: translateY(2%) scale(0.98); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes slap { 0% { opacity: 0; transform: rotate(-3deg) scale(1.7); } 70% { opacity: 1; transform: rotate(-3deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* --- wordmark ------------------------------------------------------------------ */
.wordmark { display: inline-flex; align-items: center; gap: 6px; }
.wordmark .mark { inline-size: 20px; block-size: auto; transform: rotate(-14deg); }
.wm { font-family: var(--display); font-weight: 900; font-size: 16px; line-height: 1; letter-spacing: -0.02em; color: var(--day); text-shadow: 1.5px -1px 0 var(--lamp); }
.wm.shiver { animation: shiver 0.55s steps(1) infinite; }
/* The logo on anything light (day pages, the reveal, white cards): the ink version, as the
   kit's "Logo on Day" draws it; the hand keeps its own ink outline. */
body.day .wm, .reveal .wm, .kit-section.day .wm, .card .wm, body.day .lockup, .reveal .lockup { color: var(--ink); }
.wordmark.big .mark { inline-size: 26px; }
.wordmark.big .wm { font-size: 22px; }

/* --- buttons, pills, cards ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; block-size: 54px; padding-inline: 22px; border-radius: 14px; border: 2px solid var(--ink); font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: -0.01em; cursor: pointer; text-decoration: none; transition: transform 120ms, box-shadow 120ms, opacity 160ms; }
.btn.primary { background: var(--lamp); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.night .btn.primary { box-shadow: 4px 4px 0 var(--day); }
.btn.secondary { background: rgba(15, 13, 42, 0.6); color: var(--ice); border-color: var(--ice); backdrop-filter: blur(6px); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { cursor: default; }
.moves .btn:disabled:not(.chosen) { opacity: 0.5; }
.moves .btn:disabled.chosen { outline: none; }
.btn.wide { inline-size: 100%; }
.btn-mark { inline-size: 18px; block-size: auto; }
.pill { display: inline-flex; align-items: center; block-size: 34px; padding-inline: 14px; border: 2px solid var(--day); border-radius: 999px; background: transparent; color: var(--day); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.pill.small { block-size: 28px; padding-inline: 11px; border-width: 1.5px; font-size: 10px; }
/* Two kinds of pill: an action, filled (`.act`, the install button), and a
   toggle or link, outlined, filled when it is the one chosen (`.on`). */
.pill.on { background: var(--day); border-color: var(--day); color: var(--ink); }
body.day .pill { border-color: var(--ink); color: var(--ink); }
body.day .pill.on { background: var(--ink); border-color: var(--ink); color: var(--day); }
body.day .pill.act, body.day .pill.install { border-color: var(--ink); }
/* Every link a finger can reach (WCAG 2.2 AA 2.5.8): at least 24 px tall, a small text
   link by padding that takes no room. */
a.pill { box-sizing: border-box; min-block-size: 24px; }
a.cap:not(.pill) { display: inline-block; padding-block: 6px; margin-block: -6px; }
.card { color-scheme: light; background: var(--day); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--lamp); }

/* --- the stage (room, reveal) ---------------------------------------------------- */
.stage-wrap { min-block-size: 100dvh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #241E3E 0%, var(--night) 62%); }
.stage-wrap.day { background: var(--day); }
.island { display: contents; }
.stage { position: relative; inline-size: min(100vw, calc(100dvh * 390 / 844)); aspect-ratio: 390 / 844; overflow: hidden; container-type: inline-size; --u: calc(min(100vw, 100dvh * 390 / 844) / 390); font-size: calc(14 * var(--u)); }
.stage.night { background: var(--night); color: var(--day); }
.stage .layer, .stage .hand { position: absolute; }
.stage .layer { inline-size: auto; }
.stage .hand img { inline-size: 100%; block-size: 100%; position: relative; }
.stage .sleeve { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.tremble-a { animation: tremble 0.32s infinite; transform-origin: 50% 100%; }
.tremble-b { animation: tremble2 0.37s 0.12s infinite; }
.hand.still { animation: settle 280ms ease-out both; }

.topbar { position: absolute; inset-inline: calc(20 * var(--u)); inset-block-start: calc(40 * var(--u)); display: flex; justify-content: space-between; align-items: center; }
.topbar .cap { font-size: calc(11 * var(--u)); color: var(--day); background: rgba(15, 13, 42, 0.72); border-radius: 999px; padding: calc(4 * var(--u)) calc(9 * var(--u)); backdrop-filter: blur(6px); }
.stage .wordmark .mark { inline-size: calc(20 * var(--u)); }
.stage .wm { font-size: calc(16 * var(--u)); }

/* --- the room: a fluid stage (Design v3 Main, Room3, Room5) ---------------------------
   The viewport's height, up to 520 px wide, no aspect lock. --u sizes the UI (width / 390);
   --s sizes the scene: --u, or less when the seats would not fit between the sheet and the
   moves (their band, 236..604 on the board, is 368 tall). The scene sits with its band under
   the sheet, or lower so your arm reaches the bottom edge; the table art has bleed, so it
   always covers. Above 900 px the sheet moves to a side column. */
@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }
@property --s { syntax: "<length>"; inherits: true; initial-value: 1px; }
@property --top { syntax: "<length>"; inherits: true; initial-value: 0px; }
:root { --rose: #E878A0; }
.room-wrap { container-type: inline-size; place-items: start center; }
.room { --u: calc(min(100cqw, 520px) / 390); --B: calc((104 + var(--panel, 0) + var(--talk, 0)) * var(--u) + env(safe-area-inset-bottom, 0px)); position: relative; inline-size: min(100cqw, 520px); block-size: 100dvh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) var(--B); background: var(--night); color: var(--day); font-size: calc(13 * var(--u)); }
.room-top { grid-row: 1; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(12 * var(--u)) calc(14 * var(--u)) 0; }
.room-top .wordmark { gap: calc(6 * var(--u)); }
.room-top .wordmark .mark { inline-size: calc(20 * var(--u)); }
.room-top .wm { font-size: calc(17 * var(--u)); }
.room .day-pill { block-size: auto; padding: calc(5 * var(--u)) calc(10 * var(--u)); border: 1px solid rgba(201, 204, 216, 0.35); background: rgba(21, 19, 43, 0.82); backdrop-filter: blur(6px); color: var(--day); font-size: calc(10 * var(--u)); letter-spacing: 0.12em; white-space: nowrap; cursor: default; }

.sheet-card { --c: var(--u); grid-row: 2; z-index: 2; margin: calc(14 * var(--u)) calc(14 * var(--u)) calc(11 * var(--u)); padding: calc(12 * var(--c)) calc(14 * var(--c)) calc(10 * var(--c)); display: flex; flex-direction: column; gap: calc(6 * var(--c)); border-radius: calc(18 * var(--c)); box-shadow: 0 calc(5 * var(--c)) 0 var(--shadow, var(--lamp)); }
.sheet-card .sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sheet-card h1 { font-size: calc(22 * var(--c)); line-height: 1; }
.sheet-card .meta { font-size: calc(9 * var(--c)); letter-spacing: 0.12em; color: #5B5A74; white-space: nowrap; }
.sheet-card > p { font-size: calc(13 * var(--c)); line-height: 1.35; }
.sheet-card .mornings { margin: 0; padding: calc(6 * var(--c)) 0 0; list-style: none; display: flex; flex-direction: column; gap: 2px; border-block-start: 1px dashed #DDD8F4; }
.sheet-card .mornings .cap { font-size: calc(9 * var(--c)); letter-spacing: 0.08em; color: #3A3659; }
.sheet-card .mornings .now { color: #B4471F; font-weight: 700; }
.sheet-card .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(6 * var(--c)); }
.sheet-card .chip { border-radius: calc(10 * var(--c)); padding: calc(6 * var(--c)) calc(8 * var(--c)); }
.sheet-card .chip b { display: block; font-size: calc(15 * var(--c)); line-height: 1.15; color: var(--ink); }
.sheet-card .chip span { display: block; font-size: calc(10 * var(--c)); line-height: 1.25; color: #5B5A74; }
.chip.warm { background: #FFF1DB; }
.chip.plain { background: #ECEAF8; }
.chip.cold { background: #E6F6FC; }
.chip.rose { background: #FBE4EC; }
.chip.lamp { background: #FFE7C2; }
.sheet-card .models { display: flex; align-items: center; gap: 6px; padding-block-start: 2px; font-size: calc(9 * var(--c)); letter-spacing: 0.12em; color: #5B5A74; }
.ice-dot { flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--ice); border: 1px solid var(--night); }
/* What the deal told this seat alone: a sentence, not a caption, on the Fox's rose. */
.sheet-card .role { display: flex; align-items: baseline; gap: 6px; margin-block-start: calc(2 * var(--c)); padding: calc(6 * var(--c)) calc(9 * var(--c)); border-radius: calc(10 * var(--c)); background: #FBE4EC; color: var(--ink); font-size: calc(12 * var(--c)); line-height: 1.3; font-weight: 600; letter-spacing: 0; text-transform: none; }
.role-dot { flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--rose); border: 1px solid var(--night); transform: translateY(-1px); }

.room-band { grid-row: 3; position: relative; z-index: 0; container-type: size; }
.room-layer { position: absolute; inset: 0; --s: max(calc(0.6 * var(--u)), min(var(--u), calc(100cqh / 368))); --top: max(calc(-236 * var(--s)), calc(100cqh + var(--B) - 844 * var(--s))); }
.room-scene { position: absolute; inset-inline-start: 50%; inset-block-start: var(--top); inline-size: calc(390 * var(--s)); block-size: calc(844 * var(--s)); margin-inline-start: calc(-195 * var(--s)); }
.room-scene .layer, .room-scene .hand { position: absolute; }
.room-scene .layer { max-inline-size: none; }
.room-scene .hand img { inline-size: 100%; block-size: 100%; position: relative; max-inline-size: none; }
.room-scene .sleeve { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.room-scene .hand.corner-left, .room-scene .hand.corner-right { transform-origin: 50% 50%; }
.room-scene .hand.corner-left { rotate: -36deg; }
.room-scene .hand.corner-right { rotate: 36deg; }
/* Five seats: the middle pair sits lower and tilts up to the bowl, so it no longer stacks
   under the upper pair (a pentagon around the table rather than two rows). */
.room[data-seats="5"] .room-scene .hand.left { transform-origin: 0% 55%; translate: 0 calc(58 * var(--s)); rotate: -15deg; }
.room[data-seats="5"] .room-scene .hand.right { transform-origin: 100% 45%; translate: 0 calc(46 * var(--s)); rotate: 15deg; }
.room[data-seats="5"] .seat-at.left, .room[data-seats="5"] .seat-at.right { translate: 0 calc(66 * var(--s)); }
.room .seat-at { position: absolute; z-index: 1; padding: calc(7 * var(--u)) calc(10 * var(--u)) calc(6 * var(--u)); border-radius: calc(12 * var(--u)); gap: calc(2 * var(--u)); }
.room .seat-at .tag-head { gap: calc(6 * var(--u)); }
.room .seat-at .tag-head b { font-size: calc(14 * var(--u)); }
.room .seat-at.you-at .tag-head b { font-size: calc(13 * var(--u)); }
.room .seat-at .tag-head small.cap { font-size: calc(8 * var(--u)); }
.room .seat-at .tag-line { font-size: calc(11 * var(--u)); }
.room .seat-at .ink-dot { inline-size: calc(9 * var(--u)); block-size: calc(9 * var(--u)); }
.room .seat-at .ink-glyph { inline-size: calc(11 * var(--u)); block-size: calc(11 * var(--u)); }

.room-bottom { grid-row: 4; z-index: 2; display: flex; flex-direction: column; gap: calc(14 * var(--u)); padding: 0 calc(14 * var(--u)) calc(24 * var(--u) + env(safe-area-inset-bottom, 0px)); }
.room .moves { display: flex; flex-direction: column; gap: calc(12 * var(--u)); margin: 0; }
.move-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(10 * var(--u)); }
.room .moves .btn { block-size: calc(50 * var(--u)); border-radius: calc(14 * var(--u)); padding-inline: calc(10 * var(--u)); font-size: calc(18 * var(--u)); border: 2px solid var(--ink); }
.room .moves .btn.secondary { background: var(--ink); color: var(--day); box-shadow: 0 calc(5 * var(--u)) 0 var(--night); backdrop-filter: none; }
.room .moves .btn.primary { background: var(--lamp); color: var(--ink); box-shadow: 0 calc(5 * var(--u)) 0 var(--ink); }
.room .moves .btn:active:not(:disabled) { transform: translateY(calc(3 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 var(--ink); }
.room .moves .chosen { outline: calc(3 * var(--u)) solid var(--day); outline-offset: calc(2 * var(--u)); }
.room .moves .btn.secondary.chosen { background: var(--lamp); color: var(--ink); }
/* Dimmed, never see-through: your hand is drawn behind the moves. */
.room .moves .unchosen { filter: brightness(0.6) saturate(0.7); }
.room .moves .btn:disabled:not(.chosen) { opacity: 1; filter: brightness(0.55) saturate(0.6); }
.room .caption { margin: 0; text-align: center; font-size: calc(9 * var(--u)); letter-spacing: 0.12em; color: #C9CCD8; text-shadow: 0 0 calc(4 * var(--u)) var(--night), 0 1px 1px var(--night); }
.room .caption.hint { letter-spacing: 0; font-size: calc(11 * var(--u)); color: var(--lamp); }
/* Over your arm the line sits on its own pill, never on the sleeve's halftone. */
.room .caption:not(.next-link) { align-self: center; padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: rgba(15, 13, 42, 0.78); }

/* --- the inputs (Design v3 row 2): a panel above the buttons, as tall as --panel --- */
html:not(.js) .js-only { display: none !important; }
.input-panel { block-size: calc((var(--panel) - 12) * var(--u)); display: flex; flex-direction: column; justify-content: center; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(16 * var(--u)); background: rgba(21, 19, 43, 0.88); border: 1px solid rgba(201, 204, 216, 0.35); backdrop-filter: blur(8px); }
.input-panel .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.input-panel .cap { font-size: calc(9 * var(--u)); color: #C9CCD8; letter-spacing: 0.12em; }
.input-panel .saw { font-size: calc(15 * var(--u)); color: var(--day); }
.input-panel .hint { font-size: calc(11 * var(--u)); color: #8B89A6; }
.tiles { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: calc(6 * var(--u)); }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; block-size: calc(50 * var(--u)); border-radius: calc(12 * var(--u)); border: 2px solid var(--ink); background: var(--ink); color: var(--day); cursor: pointer; transition: transform 120ms; }
.tile b { font-size: calc(20 * var(--u)); line-height: 1; }
.tile small { font-size: calc(10 * var(--u)); color: #C9CCD8; }
.tiles.faces .tile { block-size: calc(58 * var(--u)); }
.tiles.small .tile { block-size: calc(36 * var(--u)); border-radius: calc(9 * var(--u)); }
.tiles.small .tile b { font-size: calc(15 * var(--u)); }
.tile.word b { font-size: calc(13 * var(--u)); text-align: center; }
.room[data-tall="true"] .you-at, .room[data-live="true"] .seat-at { display: none; }
.tile.on { background: var(--lamp); color: var(--ink); box-shadow: 0 calc(4 * var(--u)) 0 var(--ink); }
.tile.on small { color: var(--ink); }
.tile.lie { border-color: var(--rose); }
.tile.off { opacity: 0.35; cursor: default; }
.tile:has(input:focus-visible) { outline: 2px solid var(--day); outline-offset: 2px; }
.tile:active:not(.off) { transform: translateY(1px); }
.dial-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(8 * var(--u)); }
.dial-ring { position: relative; inline-size: calc(152 * var(--u)); aspect-ratio: 1; justify-self: center; }
.dial-ring .ring { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.ring-track, .ring-fill { fill: none; stroke-width: 9; }
.ring-track { stroke: #2E2B4F; }
.ring-fill { stroke: var(--lamp); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transform-box: view-box; }
.ring-knob { fill: var(--day); stroke: var(--ink); stroke-width: 1.6; }
.ring-touch { position: absolute; inset: 0; border-radius: 50%; touch-action: none; cursor: grab; z-index: 1; }
.ring-centre { position: absolute; inset: 22%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.input-panel .number { inline-size: 3.2ch; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--day); font-family: var(--display); font-weight: 900; font-size: calc(44 * var(--u)); line-height: 1; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.input-panel .number::-webkit-inner-spin-button, .input-panel .number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input-panel .number:focus-visible { outline: 2px solid var(--lamp); }
.input-panel .number.small { inline-size: calc(30 * var(--u)); font-size: calc(16 * var(--u)); }
.step { display: inline-flex; align-items: center; justify-content: center; inline-size: calc(44 * var(--u)); block-size: calc(44 * var(--u)); border-radius: calc(12 * var(--u)); border: 2px solid var(--ink); background: var(--day); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: calc(20 * var(--u)); cursor: pointer; }
.step.small { inline-size: calc(30 * var(--u)); block-size: calc(30 * var(--u)); border-radius: calc(9 * var(--u)); font-size: calc(16 * var(--u)); }
.step:disabled { opacity: 0.4; cursor: default; }
.split-head { display: flex; align-items: baseline; justify-content: space-between; }
.split-head b { font-size: calc(28 * var(--u)); }
.split-head .you-n { color: var(--lamp); }
.split-bar { -webkit-appearance: none; appearance: none; inline-size: 100%; block-size: calc(34 * var(--u)); margin: 0; border-radius: calc(7 * var(--u)); border: 2px solid var(--ink); background: repeating-linear-gradient(to right, transparent 0 calc(10% - 3px), var(--ink) calc(10% - 3px) 10%), linear-gradient(to right, var(--lamp) 0 calc((10 - var(--v)) * 10%), var(--them) calc((10 - var(--v)) * 10%) 100%); cursor: pointer; }
.split-bar::-webkit-slider-thumb { -webkit-appearance: none; inline-size: calc(20 * var(--u)); block-size: calc(48 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--day); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.split-bar::-moz-range-thumb { inline-size: calc(20 * var(--u)); block-size: calc(48 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--day); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.split-bar:focus-visible { outline: 2px solid var(--day); outline-offset: 3px; }
.share-row { display: grid; grid-template-columns: calc(86 * var(--u)) minmax(0, 1fr) auto auto auto; align-items: center; gap: calc(6 * var(--u)); }
.share-row .who { display: flex; align-items: center; gap: 6px; font-size: calc(12 * var(--u)); min-inline-size: 0; }
.share-row .bar { block-size: calc(16 * var(--u)); border-radius: calc(6 * var(--u)); border: 2px solid var(--ink); background: #2E2B4F; overflow: hidden; }
.share-row .bar i { display: block; block-size: 100%; }
.input-panel .total { font-size: calc(14 * var(--u)); color: var(--lamp); }
.input-panel .total.short { color: var(--rose); }
.proposal { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.chip-share { display: inline-flex; align-items: center; gap: 6px; padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 999px; border: 1px solid rgba(201, 204, 216, 0.4); font-size: calc(12 * var(--u)); }
.chip-share b { font-size: calc(15 * var(--u)); color: var(--lamp); }
.stepper { display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u)); }
.stepper-value { display: flex; flex-direction: column; align-items: center; }
.stepper-value .number { font-size: calc(40 * var(--u)); }
.card-face { display: inline-flex; align-items: center; justify-content: center; inline-size: calc(34 * var(--u)); block-size: calc(46 * var(--u)); border-radius: 7px; background: var(--day); color: var(--ink); border: 2px solid var(--ink); font-size: calc(22 * var(--u)); }
.room .moves .btn.send.chosen { outline: calc(3 * var(--u)) solid var(--day); outline-offset: calc(2 * var(--u)); }

/* --- talk, calls and the seat card (Design v3: Main, Talk, SeatCard) ------------------- */
a.seat-tag { cursor: pointer; }
a.seat-tag:hover, a.seat-tag:focus-visible { border-color: var(--sleeve); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sleeve) 45%, transparent); }
.talk-feed { position: absolute; inset-inline: calc(14 * var(--u)); z-index: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: calc(5 * var(--u)); pointer-events: none; }
/* A line said while the page is open slides in under the others. */
.talk-feed li.fresh { animation: talk-in 320ms ease-out both; }
@keyframes talk-in { from { opacity: 0; transform: translateY(calc(8 * var(--u))); } to { opacity: 1; transform: none; } }
.talk-line { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); max-inline-size: 100%; padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: rgba(21, 19, 43, 0.84); border: 1px solid rgba(201, 204, 216, 0.35); backdrop-filter: blur(6px); font-size: calc(12 * var(--u)); color: var(--day); white-space: nowrap; overflow: hidden; }
.talk-line b { font-size: calc(12 * var(--u)); }
.talk-line .how { color: #C9CCD8; }
.talk-line.to-you { border-color: rgba(255, 180, 84, 0.6); }
.talk-line.to-you .how { color: var(--lamp); }
.talk-line.hidden { border-style: dashed; }
.talk-line q { overflow: hidden; text-overflow: ellipsis; }
.talk-line .at { color: #8B89A6; font-size: calc(10 * var(--u)); }
.talk-row { display: flex; align-items: center; gap: calc(8 * var(--u)); min-block-size: calc(30 * var(--u)); overflow: hidden; }
.room .talk-row .pill { block-size: calc(30 * var(--u)); padding-inline: calc(10 * var(--u)); border: 1px solid rgba(201, 204, 216, 0.35); background: rgba(21, 19, 43, 0.82); backdrop-filter: blur(6px); color: var(--day); font-size: calc(12 * var(--u)); font-weight: 500; letter-spacing: 0; text-transform: none; gap: 6px; white-space: nowrap; flex: none; }
.room .talk-row .talk-mine { color: #C9CCD8; flex: 0 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
.room .talk-row .calls-link { margin-inline-start: auto; color: var(--lamp); font-size: calc(9 * var(--u)); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.overlay { display: none; position: absolute; inset: 0; z-index: 10; }
.overlay:target { display: block; }
.overlay-shade { position: absolute; inset: 0; background: rgba(15, 13, 42, 0.62); }
/* An open sheet's way back takes the day pill's corner. */
.room:has(.overlay:target) .room-top .day-pill { visibility: hidden; }
.overlay-close { position: absolute; inset-block-start: calc(14 * var(--u)); inset-inline-end: calc(14 * var(--u)); block-size: auto; padding: calc(6 * var(--u)) calc(10 * var(--u)); border: 1px solid rgba(201, 204, 216, 0.35); background: rgba(21, 19, 43, 0.82); color: #C9CCD8; font-size: calc(10 * var(--u)); }
.sheet-panel { position: absolute; inset-inline: 0; inset-block-end: 0; max-block-size: calc(100% - 56 * var(--u)); overflow-y: auto; display: flex; flex-direction: column; gap: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(18 * var(--u) + env(safe-area-inset-bottom, 0px)); background: var(--day); color: var(--ink); border: 2px solid var(--ink); border-block-end: 0; border-radius: calc(22 * var(--u)) calc(22 * var(--u)) 0 0; box-shadow: 0 calc(-5 * var(--u)) 0 var(--shadow, var(--lamp)); font-size: calc(13 * var(--u)); color-scheme: light; }
.sheet-panel .sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sheet-panel h2 { font-size: calc(22 * var(--u)); line-height: 1; }
.sheet-panel .cap { font-size: calc(9 * var(--u)); color: #5B5A74; letter-spacing: 0.12em; }
.sheet-panel .fine { font-size: calc(11 * var(--u)); color: #5B5A74; text-align: center; }
.sheet-panel .cap.fine { font-size: calc(8 * var(--u)); }
.talk-form { display: flex; flex-direction: column; gap: calc(12 * var(--u)); margin: 0; }
.talk-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: calc(6 * var(--u)); min-inline-size: 0; }
.preset { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); border: 2px solid #ECEAF8; background: var(--day); font-size: calc(14 * var(--u)); cursor: pointer; }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset small { font-size: calc(10 * var(--u)); color: #5B5A74; }
.preset:has(input:checked) { border-color: var(--ink); background: #FFF1DB; font-family: var(--display); font-weight: 900; }
.preset:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.to-row { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.to { display: inline-flex; align-items: center; gap: 6px; padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: 999px; border: 2px solid var(--ink); background: var(--day); font-size: calc(12 * var(--u)); cursor: pointer; }
.to input { position: absolute; opacity: 0; pointer-events: none; }
.to:has(input:checked) { background: var(--ink); color: var(--day); }
.to:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sheet-panel .btn { block-size: calc(48 * var(--u)); font-size: calc(16 * var(--u)); }
.sheet-panel .btn.primary { box-shadow: 0 calc(4 * var(--u)) 0 var(--ink); }
.call-form { display: flex; flex-direction: column; gap: calc(8 * var(--u)); margin: 0; padding-block-start: calc(10 * var(--u)); border-block-start: 2px dashed #ECEAF8; }
.call-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.call-head b { font-size: calc(15 * var(--u)); }
.call-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
.btn.call { block-size: calc(44 * var(--u)); font-size: calc(15 * var(--u)); background: var(--day); color: var(--ink); box-shadow: 0 calc(4 * var(--u)) 0 var(--ink); }
.btn.call.model.chosen { background: var(--ice); }
.btn.call.plain.chosen { background: var(--ink); color: var(--day); }
.call-chips { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.call-chip { display: inline-flex; align-items: center; gap: 5px; padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: 999px; border: 2px solid var(--ink); background: var(--day); color: var(--ink); font: inherit; font-size: calc(12 * var(--u)); cursor: pointer; }
.call-chip.on { background: var(--rose); font-weight: 600; }
.crowd-row { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.crowd-row .number-field { inline-size: calc(70 * var(--u)); block-size: calc(44 * var(--u)); border: 2px solid var(--ink); border-radius: calc(12 * var(--u)); text-align: center; font-size: calc(22 * var(--u)); }
.crowd-row .pct { font-size: calc(22 * var(--u)); }
.crowd-row .btn { margin-inline-start: auto; block-size: calc(44 * var(--u)); background: var(--day); box-shadow: 0 calc(4 * var(--u)) 0 var(--ink); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-name { display: flex; align-items: center; gap: 8px; }
.card-name .ink-dot { inline-size: 14px; block-size: 14px; }
.card-name h2 { font-size: calc(26 * var(--u)); }
.card-name .ink-glyph { inline-size: calc(16 * var(--u)); block-size: calc(16 * var(--u)); }
.card-record { font-size: calc(13 * var(--u)); color: #3A3659; padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); background: #ECEAF8; }
.card-talk { display: flex; flex-direction: column; gap: 6px; }
.sheet-status { margin: 0; padding: calc(8 * var(--u)) calc(12 * var(--u)); border-radius: calc(10 * var(--u)); background: #EEF6F1; color: #2F5D46; font-size: calc(12 * var(--u)); line-height: 1.35; text-align: center; }
.card-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.card-lines .talk-line { background: var(--ink); }
/* Your card: the reveal, the app and signing out, one under the other. */
.me-links { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.me-links form { margin: 0; display: flex; justify-content: center; }
.text-btn { background: none; border: 0; padding: calc(10 * var(--u)) calc(12 * var(--u)); font: inherit; font-size: calc(15 * var(--u)); color: var(--dim); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-block-size: 44px; }
.text-btn:hover { color: var(--ink); }
.sheet-panel .btn.secondary { background: var(--ink); color: var(--day); border-color: var(--ink); backdrop-filter: none; box-shadow: 0 calc(4 * var(--u)) 0 var(--night); }

/* --- the wide layouts (4.8, Design v3 row 8): one room, placed by width ---------------
   Three tiers, by width alone (a tall window is not a phone):
   - under 720 px, the phone: the room is one column;
   - from 720 px (and 540 tall, so a phone on its side stays a phone), a tablet: the table's
     column and one rail on the right, the brand, the rules and your card above your calls
     and the talk;
   - from 1100 px, at any height, the desktop: two rails, the brand, the rules and your card
     on the left, your calls and the talk on the right.
   On both the night reaches every edge (room-night-wide, the room's canvas centred under the
   table's column, its top fading into the sky above it so no edge shows), any sheet you open docks over the right rail (no shade), and the column
   (--s0) takes the screen's height unless the width it is given is shorter. */
.room-head, .room-side { display: contents; }
.wide-brand, .calls-panel, .me-mini, .room-keys, .talk-log { display: none; }
@media (min-width: 1100px), (min-width: 720px) and (min-height: 540px) {
  .room-wrap { display: block; }
  .room { --rail: clamp(240px, 24vw, 380px); --gap: clamp(16px, calc((100vw - 2 * var(--rail) - 390 * 100dvh / 844) / 4), 56px); --s0: min(calc(100dvh / 844), calc((100vw - 2 * var(--rail) - 4 * var(--gap)) / 390)); display: block; inline-size: 100%; --sky: #08071A; background-color: var(--sky); background-image: linear-gradient(to bottom, var(--sky) calc(100% - 900 * var(--s0)), rgba(8, 7, 26, 0) calc(100% - 700 * var(--s0))), var(--wide); background-repeat: no-repeat; background-size: 100% 100%, calc(2160 * var(--s0)) calc(900 * var(--s0)); background-position: 0 0, 50% 100%; }
  .room-head { --u: 1px; position: absolute; z-index: 3; inset-block: 0; inset-inline-start: var(--gap); inline-size: var(--rail); display: flex; flex-direction: column; gap: 16px; padding-block: 32px 24px; box-sizing: border-box; overflow-y: auto; scrollbar-width: none; }
  .room-head .room-top { display: none; }
  .wide-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .wide-brand .lockup.stacked { font-size: clamp(38px, 3.6vw, 52px); color: var(--day); }
  .wide-brand .wordmark { display: none; }
  .room-head .sheet-card { --c: 1px; margin: 0; }
  .room-head .sheet-card .sheet-head { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  .room-head .sheet-card h1 { font-size: 26px; }
  .calls-panel, .me-mini, .talk-log { border-radius: 18px; border: 1px solid rgba(201, 204, 216, 0.22); background: rgba(21, 19, 43, 0.72); backdrop-filter: blur(10px); }
  .calls-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
  .rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .rail-head .cap { font-size: 9px; letter-spacing: 0.12em; color: #C9CCD8; }
  .rail-head .cap.fine { color: #8B89A6; }
  .calls-panel { text-align: start; }
  .calls-panel .call-form { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; border-block-start: 1px dashed rgba(201, 204, 216, 0.2); padding-block-start: 10px; }
  .calls-panel .call-head { grid-column: 1; display: block; }
  .calls-panel .call-head b { font-size: 13px; line-height: 1.3; color: var(--day); }
  .calls-panel .call-head .cap { display: none; }
  .calls-panel .sheet-status { background: rgba(127, 176, 150, 0.16); color: #CFE6D9; font-size: 11px; padding: 6px 10px; border-radius: 8px; }
  .calls-panel .call-buttons, .calls-panel .crowd-row { grid-column: 2; display: flex; align-items: center; gap: 6px; }
  .calls-panel .call-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
  .calls-panel .btn { block-size: 32px; padding-inline: 10px; font-size: 13px; border-radius: 10px; box-shadow: none; margin: 0; }
  .calls-panel .btn.call, .calls-panel .crowd-row .btn { background: transparent; color: var(--day); border: 2px solid rgba(201, 204, 216, 0.5); }
  .calls-panel .btn.call.model { color: var(--ice); border-color: var(--ice); }
  .calls-panel .btn.call.plain.chosen { background: var(--day); color: var(--ink); border-color: var(--day); }
  .calls-panel .btn.call.model.chosen { background: var(--ice); color: var(--ink); }
  .calls-panel .number-field { inline-size: 52px; block-size: 32px; font-size: 15px; border-radius: 10px; border: 2px solid rgba(201, 204, 216, 0.5); background: rgba(15, 13, 42, 0.6); color: var(--day); }
  .calls-panel .pct { font-size: 15px; }
  .room .talk-row .calls-link { display: none; }
  .me-mini { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--day); text-decoration: none; }
  .me-mini .ink-dot { inline-size: 14px; block-size: 14px; }
  .me-mini .me-name { display: flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
  .me-mini b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .me-mini small { font-size: 11px; color: #C9CCD8; }
  .me-mini .cap { margin-inline-start: auto; font-size: 9px; letter-spacing: 0.12em; color: var(--lamp); white-space: nowrap; }
  .room-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: auto 0 0; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #8B89A6; }
  .room-keys kbd { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 18px; block-size: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 5px; border: 1px solid rgba(201, 204, 216, 0.45); font-family: var(--display); font-weight: 800; font-size: 10px; color: var(--day); }
  .room-keys .key { display: inline-flex; align-items: center; gap: 4px; margin-inline-end: 8px; white-space: nowrap; }
  .room-band, .room-bottom { --u: var(--s0); position: absolute; inset-inline-start: 50%; inline-size: calc(390 * var(--s0)); margin-inline-start: calc(-195 * var(--s0)); }
  .room-band { inset-block: 0; }
  .room-layer { --s: var(--s0); --top: calc(100cqh - 844 * var(--s0)); }
  .room-scene .layer.base { display: none; }
  /* On a phone the arms run off the screen; here they end in the night. */
  .room-scene .hand.left { -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 34%); mask-image: linear-gradient(to right, transparent 4%, #000 34%); }
  .room-scene .hand.right { -webkit-mask-image: linear-gradient(to left, transparent 4%, #000 34%); mask-image: linear-gradient(to left, transparent 4%, #000 34%); }
  .room-scene .hand.far { -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 24%); mask-image: linear-gradient(to bottom, transparent 2%, #000 24%); }
  .room-scene .hand.corner-left, .room-scene .hand.corner-right { -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 36%); mask-image: linear-gradient(to bottom, transparent 6%, #000 36%); }
  .talk-feed { display: none; }
  .room-bottom { inset-block-end: 0; box-sizing: border-box; }
  .room-side { --u: 1px; position: absolute; z-index: 3; inset-block: 0; inset-inline-end: var(--gap); inline-size: var(--rail); display: flex; flex-direction: column; gap: 14px; padding-block: 32px 24px; box-sizing: border-box; overflow-y: auto; scrollbar-width: none; }
  .talk-log { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
  .talk-log ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .talk-log li.fresh { animation: talk-in 320ms ease-out both; }
  .talk-log .talk-line { background: transparent; border: 0; padding: 0; white-space: normal; flex-wrap: wrap; font-size: 13px; }
  .talk-log .fine { margin: 0; font-size: 12px; color: #8B89A6; }
  /* A sheet docks on the right, over the log; the table stays in view and in reach. */
  .room:has(.overlay:target) .room-side { display: none; }
  .overlay:target { --u: 1px; position: absolute; z-index: 5; inset: 32px var(--gap) auto auto; inline-size: var(--rail); }
  .overlay-shade { display: none; }
  .overlay .sheet-panel { position: relative; inset: auto; inline-size: auto; max-block-size: calc(100dvh - 56px); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--shadow, var(--lamp)); padding: 18px 16px 16px; }
  .overlay-close { inset-block-start: -13px; inset-inline-end: 18px; z-index: 1; border-color: var(--ink); background: var(--day); color: var(--ink); font-size: 9px; }
}

.side-links { position: fixed; inset-inline-end: 16px; inset-block-end: 16px; display: flex; gap: 8px; align-items: center; }
.side-links form { margin: 0; }
/* The play clock, local development only. */
.dev-clock { position: fixed; inset-inline-start: 16px; inset-block-end: 16px; z-index: 50; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 1.5px dashed var(--lamp); border-radius: 14px; background: rgba(15, 13, 42, 0.88); backdrop-filter: blur(6px); }
.dev-clock form { margin: 0; }
.dev-clock .cap { color: var(--lamp); font-size: 10px; }
.dev-clock .pill { border-color: var(--lamp); color: var(--lamp); }
@media (max-width: 700px) { .dev-clock { position: static; margin: 0 16px 16px; justify-content: center; } }
@media (max-width: 700px) { .side-links { position: static; justify-content: center; padding: 14px 16px 22px; inline-size: 100%; } .stage-wrap { align-content: start; } }

.wait-card { position: absolute; inset-inline: calc(20 * var(--u)); inset-block-start: calc(96 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.wait-card h1 { font-size: calc(26 * var(--u)); line-height: 1.05; }
.wait-card p { font-size: calc(14 * var(--u)); color: #2E2B4A; }
.wait-links { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); margin-block-start: calc(6 * var(--u)); }
.wait-links .pill { border-color: var(--ink); color: var(--ink); }
.caption.first .install-link { color: var(--lamp); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* --- the reveal (5.5): four seconds, skippable, in the room you sat in -----------------
   The room's grid and scene: the night base and hands fade as the day ones settle in what
   each seat did; stamps slap onto the seats where their tags sat; the result card takes the
   moves' row. A model's hand turns ice and its sleeve a mesh. */
/* The scene reaches the bottom edge and the card floats over it, whatever the card's height,
   so the hands sit where the room put them on every phone. */
.room.reveal { --B: 0px; grid-template-rows: auto auto minmax(0, 1fr); background: var(--day); color: var(--ink); cursor: pointer; }
/* On a short phone the scene's top slides under the heading, never its stamps: the upper
   stamps keep 20 scene units below it. */
.room.reveal .room-layer { --top: max(calc(-216 * var(--s)), calc(100cqh - 844 * var(--s))); }
.reveal .night-only { animation: fade-out 600ms ease 400ms both; }
.reveal .daylight { animation: fade-in 600ms ease 400ms both; }
.reveal .hand.daylight.settle { animation: fade-in 260ms ease 950ms both, settle 300ms ease-out 950ms both; }
.reveal .room-top .skip-hint { block-size: auto; padding: calc(4 * var(--u)) calc(9 * var(--u)); border: 1px solid rgba(21, 19, 43, 0.25); background: rgba(246, 247, 251, 0.85); color: #5B5A74; font-size: calc(9 * var(--u)); letter-spacing: 0.12em; animation: fade-out 400ms ease 2400ms both; }
.reveal .reveal-head { grid-row: 2; z-index: 2; display: flex; flex-direction: column; gap: calc(2 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)) 0; pointer-events: none; }
.reveal .reveal-head .eyebrow { font-size: calc(10 * var(--u)); letter-spacing: 0.12em; color: var(--ink); }
.reveal .lights { font-size: calc(48 * var(--u)); line-height: 0.95; text-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--lamp); animation: rise 360ms ease-out 900ms both; }
.reveal .stamp-at { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: calc(7 * var(--u)); pointer-events: none; }
/* Kept, your fist peeks over the card: its knuckles, not the whole hand. */
.reveal .hand.you.daylight.fist { translate: 0 calc(-55 * var(--s)); }
/* Your stamp: where your tag sat, but never under the card (at most as tall as 260 units). */
.reveal .you-stamp { top: min(calc(var(--top) + var(--y) * var(--s)), calc(100% - 305 * var(--u))); }
.reveal .stamp-at.right, .reveal .stamp-at.corner-right { align-items: flex-end; }
/* A stamp is the move over its detail (points and handle), so it stays narrow; the far seat's
   starts right of the centre and keeps to the room's right half. */
.reveal .stamp-at { max-inline-size: calc(100% - 28 * var(--u)); }
.reveal .stamp-at.far { max-inline-size: calc(50% - 41 * var(--s) - 10 * var(--u)); }
.reveal .stamp-at .stamp { flex-direction: column; align-items: flex-start; gap: calc(1 * var(--u)); max-inline-size: 100%; box-sizing: border-box; line-height: 1.05; }
.reveal .stamp-at .stamp small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-inline-size: 100%; }
.reveal .stamp { display: inline-flex; align-items: baseline; gap: 0; padding: calc(5 * var(--u)) calc(9 * var(--u)) calc(4 * var(--u)); border: 2px solid var(--ink); border-radius: calc(9 * var(--u)); font-family: var(--display); font-weight: 900; font-size: calc(13 * var(--u)); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); animation: slap 260ms cubic-bezier(.2, .9, .3, 1.3) calc(1400ms + var(--i, 0) * 120ms) both; }
.reveal .stamp small { font-family: var(--text); font-weight: 600; font-size: calc(10 * var(--u)); letter-spacing: 0.02em; text-transform: none; opacity: 0.75; }
.reveal .stamp.warm { background: var(--lamp); }
.reveal .stamp.cold { background: #E3F7FF; }
.reveal .stamp.neutral { background: #FFFFFF; }
.reveal .stamp.ice { background: var(--ice); }
.reveal .stamp.you { background: var(--ink); color: var(--lamp); box-shadow: 3px 3px 0 var(--lamp); }
.reveal .stamp.you small { opacity: 1; }
.reveal .verdict { max-inline-size: calc(200 * var(--u)); padding: calc(5 * var(--u)) calc(9 * var(--u)); border-radius: calc(9 * var(--u)); background: var(--ink); color: var(--day); font-size: calc(9 * var(--u)); font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; box-shadow: 3px 3px 0 rgba(21, 19, 43, 0.35); animation: slap 260ms cubic-bezier(.2, .9, .3, 1.3) calc(1650ms + var(--i, 0) * 120ms) both; }
/* Two side verdicts share the width at four seats: each keeps to its half. */
.reveal .stamp-at.left .verdict, .reveal .stamp-at.right .verdict { max-inline-size: calc(170 * var(--u)); }
/* At three seats the two corner seats sit side by side: each verdict keeps to its half. */
.reveal .stamp-at.corner-left .verdict, .reveal .stamp-at.corner-right .verdict { max-inline-size: calc(150 * var(--u)); }
.reveal .stamp-at.corner-left, .reveal .stamp-at.corner-right { max-inline-size: calc(50% - 14 * var(--u)); }
.reveal .verdict.model { color: var(--ice); }
/* A model's sleeve: its ink under a wire mesh. */
/* Sat out: the hand is there but grey and faint, so it never reads as a break. */
.reveal .hand.daylight.sat-out { filter: grayscale(1) contrast(0.7) opacity(0.45); }
.reveal .hand.model .sleeve { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='19' viewBox='0 0 22 19'%3E%3Cpath d='M0 0h22M0 19h22M0 0l11 19L22 0M-11 19L0 0M22 0l11 19' fill='none' stroke='%23F6F7FB' stroke-opacity='.7' stroke-width='1.2'/%3E%3C/svg%3E"); background-size: calc(11 * var(--s)) calc(9.5 * var(--s)); }
.room.reveal .card.result { grid-row: 3; z-index: 2; position: absolute; inset: auto calc(14 * var(--u)) calc(14 * var(--u) + env(safe-area-inset-bottom, 0px)); margin: 0; padding: calc(12 * var(--u)) calc(14 * var(--u)); display: flex; flex-direction: column; gap: calc(8 * var(--u)); background: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); box-shadow: calc(5 * var(--u)) calc(5 * var(--u)) 0 var(--ink); border-radius: calc(18 * var(--u)); cursor: default; animation: rise 420ms ease-out 1800ms both; }
.result h2 { font-size: calc(26 * var(--u)); line-height: 1; }
.result .points { display: inline-block; color: #B86E00; animation: pop 420ms ease-out 2250ms both; }
.result p { margin: 0; font-size: calc(12.5 * var(--u)); line-height: 1.35; color: #3A3659; }
.result .moments { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: calc(3 * var(--u)); font-size: calc(13 * var(--u)); line-height: 1.35; color: #3A3659; }
.result .moments li { padding-inline-start: calc(14 * var(--u)); position: relative; }
.result .moments li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.5em; inline-size: calc(6 * var(--u)); block-size: calc(6 * var(--u)); border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 1.5px var(--ink); }
.result .chips { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
/* One row, the question beside its two answers: on a phone the card must stay
   clear of your hand's stamp. */
.result .research-ask { margin: 0; padding: calc(8 * var(--u)) calc(10 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); border-radius: calc(12 * var(--u)); background: #ECEAF8; }
.result .research-ask p { margin: 0; flex: 1; min-inline-size: 0; font-size: calc(12 * var(--u)); line-height: 1.3; color: var(--ink); }
.result .research-answers { display: flex; flex: none; gap: calc(6 * var(--u)); }
.result .research-answers .btn { inline-size: calc(60 * var(--u)); block-size: calc(40 * var(--u)); padding-inline: 0; font-size: calc(14 * var(--u)); box-shadow: 2px 2px 0 var(--ink); }
.result .chip { display: inline-flex; gap: 0.3em; align-items: baseline; padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: 999px; font-size: calc(11 * var(--u)); color: #3A3659; }
.result .chip b { color: var(--ink); }
.result .actions { display: flex; gap: calc(8 * var(--u)); }
.result .btn { flex: 1; block-size: calc(42 * var(--u)); font-size: calc(16 * var(--u)); border: 2px solid var(--ink); border-radius: calc(12 * var(--u)); box-shadow: 3px 3px 0 var(--ink); }
.result .btn.primary { background: var(--lamp); color: var(--ink); }
.result .btn.secondary { flex: 0.7; background: #FFFFFF; color: var(--ink); backdrop-filter: none; }
/* The two taps: "Good table?" beside your result, up or down, the answer stays pressed. */
.result .result-head { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); }
.result .vote { flex: none; display: flex; align-items: center; gap: calc(6 * var(--u)); margin: 0; }
.result .vote-q { font-size: calc(11 * var(--u)); color: #5B5A74; white-space: nowrap; }
.result .vote-btn { inline-size: calc(30 * var(--u)); block-size: calc(30 * var(--u)); padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: #FFFFFF; color: var(--ink); font-size: calc(13 * var(--u)); line-height: 1; cursor: pointer; }
.result .vote-btn.chosen { background: var(--lamp); box-shadow: 2px 2px 0 var(--ink); }
.result .vote-btn:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
/* Three ways on (today, the crowd, your card): each as wide as its word. */
.result .actions:has(.share) .btn { flex: 1 1 auto; white-space: nowrap; padding-inline: calc(10 * var(--u)); }
/* Skipping runs the reveal to its end; what loops (the shiver, the trembles) keeps its own pace, or at 1 ms a loop flickers. */
.reveal.skip *:not(.shiver):not(.tremble):not(.tremble-a):not(.tremble-b):not(.t1):not(.t2):not(.t3):not(.t4), .reveal.skip { animation-delay: 0s !important; animation-duration: 1ms !important; }
/* Wide: the day reaches every edge, the result card and your calls are the right rail. */
@media (min-width: 1100px), (min-width: 720px) and (min-height: 540px) {
  .room.reveal { background: var(--day) var(--wide) 50% 100% / calc(2160 * var(--s0)) calc(900 * var(--s0)) no-repeat; }
  .reveal .wide-brand .lockup.stacked, body.day .wide-brand .lockup.stacked { color: var(--ink); }
  .reveal .room-head .reveal-head { padding: 0; }
  .reveal .room-head .lights { font-size: 56px; }
  .reveal .room-head .eyebrow { font-size: 11px; }
  .room.reveal .room-side .card.result { --u: 1px; margin: 0; position: relative; inset: auto; }
  .reveal .you-stamp { top: calc(var(--top) + var(--y) * var(--s)); }
  .room.reveal .room-side .card.result .actions { flex-wrap: wrap; }
  /* The rail has the height: the question over its answers. */
  .room.reveal .room-side .result .research-ask { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .room.reveal .room-side .result .research-answers .btn { flex: 1; inline-size: auto; }
  .room.reveal .room-side .result .result-head { flex-direction: column; align-items: flex-start; }
  .reveal .hand.you.daylight.fist { translate: none; }
  .reveal .reveal-calls { color: var(--ink); background: #FFFFFF; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); backdrop-filter: none; animation: rise 420ms ease-out 2000ms both; }
  .reveal .reveal-calls .cap { color: #5B5A74; }
  .reveal .reveal-calls ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.35; }
  .reveal .verdict { display: none; }
}
/* At full width the result is the page's hero: the rail's first and largest thing. */
@media (min-width: 1100px) {
  .room.reveal .room-side .card.result { padding: 22px 22px 20px; gap: 12px; box-shadow: 7px 7px 0 var(--ink); }
  .room.reveal .room-side .result h2 { font-size: clamp(34px, 3vw, 46px); line-height: 0.98; }
  .room.reveal .room-side .result > p { font-size: 16px; line-height: 1.4; }
  .room.reveal .room-side .result .moments { font-size: 14px; gap: 4px; }
  .room.reveal .room-side .result .research-ask p { font-size: 14px; }
  .room.reveal .room-side .result .research-answers .btn { block-size: 44px; font-size: 15px; }
  .room.reveal .room-side .result .chip { font-size: 13px; padding: 4px 10px; }
  .room.reveal .room-side .result .btn { block-size: 48px; font-size: 17px; }
}

/* --- the crowd (5.5) ------------------------------------------------------------------ */
.crowd-page { box-sizing: border-box; inline-size: min(100%, 520px); margin-inline: auto; padding: 22px 16px 28px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.crowd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.crowd-head .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); }
.crowd-head .back { text-decoration: none; white-space: nowrap; }
.crowd-title { margin: 0; font-size: 52px; line-height: 0.95; text-shadow: 3px 3px 0 var(--lamp); }
.crowd-split { display: flex; justify-content: space-between; align-items: flex-end; }
.crowd-big { display: flex; flex-direction: column; gap: 2px; }
.crowd-split .crowd-big.cold { align-items: flex-end; }
.crowd-big b { font-size: 44px; line-height: 1; }
/* The lamp darkened to 3.2:1 on Day, large text's minimum (WCAG 1.4.3): #E8921F was 2.3:1. */
.crowd-big.warm b { color: #C8760A; }
.crowd-big.cold b { color: #2E86A6; }
.crowd-big .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); }
.crowd-hundred { margin: 0; padding: 14px 12px 10px; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--ink); border-radius: 18px; background: #FFFFFF; box-shadow: 5px 5px 0 var(--ink); }
.crowd-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px 2px; }
.crowd-hand { display: block; aspect-ratio: 371 / 429; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.crowd-hand.warm { background: var(--lamp); }
.crowd-hand.cold { background: var(--ice); }
.crowd-hundred figcaption { text-align: center; font-size: 9px; letter-spacing: 0.12em; color: #5B5A74; }
.crowd-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crowd-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: #FFFFFF; font-size: 12px; color: #3A3659; }
.crowd-box .cap { font-size: 9px; letter-spacing: 0.12em; color: #5B5A74; }
.crowd-box b { font-size: 26px; line-height: 1.1; color: var(--ink); }
.crowd-models { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--day); }
.crowd-models-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.crowd-models-head .cap { font-size: 9px; letter-spacing: 0.12em; color: #C9CCD8; }
.crowd-models-head b { font-size: 20px; color: var(--ice); white-space: nowrap; }
.crowd-models ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.crowd-models li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; }
.crowd-models li .cap { font-size: 9px; letter-spacing: 0.1em; color: var(--ice); }
.crowd-spread { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 2px solid var(--ink); border-radius: 18px; background: #FFFFFF; box-shadow: 5px 5px 0 var(--ink); }
.crowd-spread > .cap { margin: 0; font-size: 9px; letter-spacing: 0.12em; color: #5B5A74; text-align: center; }
.crowd-means { display: flex; justify-content: space-between; gap: 10px; }
.crowd-means .crowd-big b { font-size: 34px; }
.crowd-means .crowd-big.plain b { color: var(--ink); }
.crowd-bars { display: flex; align-items: flex-end; gap: 4px; block-size: 150px; }
.crowd-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; block-size: 100%; min-inline-size: 0; }
.crowd-bar i { display: block; block-size: var(--h); min-block-size: 2px; border-radius: 4px 4px 0 0; background: var(--ice); border: 1.5px solid var(--ink); }
.crowd-bar.mine i { background: var(--lamp); }
.crowd-bar .cap { text-align: center; font-size: 8px; color: #5B5A74; white-space: nowrap; overflow: hidden; }
.crowd-actions { display: flex; gap: 10px; }
.crowd-main, .crowd-aside { display: flex; flex-direction: column; gap: 14px; }
.crowd-empty b { font-size: 22px; }
/* Wide: the split and the hands on the left, the reads on the right (from 1024 px, where
   the reads still have room beside the hundred hands). */
@media (min-width: 1024px) {
  .crowd-page { inline-size: min(100% - 64px, 1080px); display: grid; grid-template-columns: minmax(0, min(560px, 60vh)) minmax(0, 1fr); column-gap: 40px; row-gap: 14px; align-items: start; padding-block: 32px; }
  .crowd-head, .crowd-title { grid-column: 1 / -1; }
  .crowd-title { font-size: 64px; }
  .crowd-big b { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal *:not(.shiver):not(.tremble):not(.tremble-a):not(.tremble-b):not(.t1):not(.t2):not(.t3):not(.t4), .reveal { animation-delay: 0s !important; animation-duration: 1ms !important; }
  .tremble-a { animation-name: tremble2; animation-duration: 0.9s; }
  .tremble-b { animation-duration: 1.1s; }
  .wm.shiver { animation: none; }
}

/* --- landing ---------------------------------------------------------------------- */
.landing { background: var(--night); color: var(--day); }
.land-top { position: relative; min-block-size: 100dvh; overflow: hidden; }
.land-link { color: var(--day); text-decoration: none; font-size: 11px; letter-spacing: 0.1em; padding-block: 6px; }
.land-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 36px clamp(16px, 4.6vw, 56px) 0; }
.land-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; background: var(--day); color: var(--ink); border: 2px solid var(--ink); }
.land-card .cap { font-size: 11px; letter-spacing: 0.1em; color: #6E6A8F; }
.land-card h2 { margin: 0; font-size: 22px; line-height: 1.1; }
.land-card p { margin: 0; font-size: 14px; line-height: 1.4; color: #5B5A74; }
.land-card.morning { box-shadow: 0 5px 0 var(--lamp); }
.land-card.models { box-shadow: 0 5px 0 var(--ice); }
.land-card.record { box-shadow: 0 5px 0 #8A7BD8; }
.land-card.back_room { box-shadow: 0 5px 0 #E878A0; }
.land-numbers { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px clamp(16px, 4.6vw, 56px) 0; }
.land-figures { display: flex; gap: 36px; }
.land-figure { display: flex; flex-direction: column; gap: 2px; }
.land-figure b { font-size: 34px; line-height: 1; }
.land-figure b.cold { color: var(--ice); }
.land-figure .cap { font-size: 11px; letter-spacing: 0.1em; color: #A9A5C8; }
.land-name { margin: 0; max-inline-size: 460px; font-size: 14px; line-height: 1.45; color: #C9CCD8; }
.land-legal { margin-block-start: 34px; padding: 18px clamp(16px, 4.6vw, 56px) 22px; border-block-start: 1px solid rgba(201, 204, 216, 0.15); font-size: 12px; color: #8B89A6; }
@media (max-width: 1099.98px) { .land-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719.98px) {
  .land-how { grid-template-columns: 1fr; }
  .land-numbers { flex-direction: column; align-items: flex-start; }
  .land-figures { gap: 22px; flex-wrap: wrap; }
  .land-nav-end a.land-link { display: none; }
}
.land-stage { position: absolute; inset-block: 0; inset-inline-start: 19%; aspect-ratio: 2400 / 1520; block-size: 100%; min-block-size: 640px; }
.land-stage .layer { position: absolute; }
.t1 { animation: tremble 0.32s infinite; } .t2 { animation: tremble2 0.41s infinite; } .t3 { animation: tremble2 0.37s 0.1s infinite; } .t4 { animation: tremble 0.45s 0.2s infinite; }
.land-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 13, 42, 0.97) 0%, rgba(15, 13, 42, 0.93) 36%, rgba(15, 13, 42, 0.55) 46%, rgba(15, 13, 42, 0) 58%); pointer-events: none; }
.land-nav { position: absolute; inset-inline: clamp(16px, 4.6vw, 56px); inset-block-start: 30px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.land-hero { position: relative; z-index: 2; padding-inline: clamp(16px, 4.6vw, 56px); padding-block: max(170px, 24vh) 120px; max-inline-size: 700px; display: flex; flex-direction: column; gap: 20px; }
.land-hero h1 { display: flex; flex-direction: column; gap: 6px; line-height: 0.92; text-wrap: balance; }
.land-hero h1 > * { text-wrap: balance; }
.land-hero .l1 { font-size: clamp(31px, 4.6vw, 56px); text-shadow: 3px 3px 0 var(--lamp); }
.land-hero .l2 { font-size: clamp(48px, 6vw, 74px); color: var(--lamp); text-shadow: 4px 4px 0 var(--day); }
.land-hero .lede { font-size: 17px; line-height: 1.45; max-inline-size: 440px; color: #E3E5EE; }
.email-form { display: flex; flex-wrap: wrap; gap: 10px; max-inline-size: 460px; }
.email-form input { flex: 1 1 220px; block-size: 54px; border: 2px solid var(--day); border-radius: 12px; padding-inline: 16px; font-size: 16px; color: var(--day); background: var(--night); }
.email-form input::placeholder { color: var(--dim); }
.email-form .btn { font-size: 22px; }
.form-error { flex-basis: 100%; color: var(--lamp); font-weight: 600; font-size: 14px; }
/* Between the phone layout and the wide one the art sits behind the text,
   centred and dimmed, instead of being pushed off the right edge. */
@media (min-width: 761px) and (max-width: 1279px) {
  .land-stage { inset-inline-start: 50%; transform: translateX(-50%); }
  .land-shade { background: radial-gradient(ellipse at 30% 45%, rgba(15, 13, 42, 0.9) 0%, rgba(15, 13, 42, 0.72) 45%, rgba(15, 13, 42, 0.55) 100%); }
}
@media (max-width: 760px) {
  .land-stage { position: relative; inset: auto; inline-size: 190%; block-size: auto; min-block-size: 0; margin-inline-start: -58%; margin-block-start: 0; }
  .land-shade { background: linear-gradient(180deg, rgba(15, 13, 42, 0) 34%, rgba(15, 13, 42, 0.92) 47%, var(--night) 55%); }
  .email-form .btn { flex: 1 1 100%; }
  .land-hero { padding-block: 0 96px; margin-block-start: -18vw; }
}

/* --- solo card pages (sign-in, welcome, errors) --------------------------------------- */
.solo { min-block-size: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 22px; padding: clamp(28px, 9vh, 88px) 16px 32px; background: radial-gradient(ellipse at 50% 0%, #241E3E 0%, var(--night) 60%); }
.solo-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.solo-brand .mark { inline-size: 24px; transform: rotate(-14deg); }
.solo-brand .wm { font-size: 20px; }
.solo-card { inline-size: min(100%, 480px); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.solo-card h1 { font-size: 30px; line-height: 1.05; }
.solo-card p { font-size: 15px; line-height: 1.45; color: #2E2B4A; }
.solo-card .cap { color: var(--dim); }
.solo-card input:not([type=checkbox]):not([type=radio]) { inline-size: 100%; block-size: 50px; border: 2px solid var(--ink); border-radius: 12px; padding-inline: 14px; font-size: 17px; color: var(--ink); background: #FFFFFF; }
.solo-card .email-form input { color: var(--ink); background: #FFFFFF; border-color: var(--ink); }
.solo-card .btn.primary { box-shadow: 4px 4px 0 var(--ink); }
.solo-card .form-error { color: #B4471F; }
.solo-card .quiet { color: var(--dim); font-size: 14px; }
/* Today's question: the sheet card's chips, and its two ways on. */
.question-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.question-chips .chip { border-radius: 10px; padding: 8px 10px; }
.question-chips .chip b { display: block; font-size: 16px; line-height: 1.15; color: var(--ink); }
.question-chips .chip span { display: block; font-size: 12px; line-height: 1.25; color: #5B5A74; }
.question-actions { display: flex; flex-direction: column; gap: 10px; }
.solo-card .question-actions .btn.secondary { background: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); backdrop-filter: none; box-shadow: 3px 3px 0 var(--ink); }
.code-form { display: flex; flex-direction: column; gap: 10px; }
.code-form input { font-family: var(--display); font-weight: 900; font-size: 28px !important; letter-spacing: 0.3em; text-align: center; }
.dev { margin-block-start: 6px; }
.dev-link a { color: #6B4CC9; word-break: break-all; font-size: 12px; }
.welcome { display: flex; flex-direction: column; gap: 10px; }
.handle-field { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; background: #FFFFFF; padding-inline-start: 12px; }
.handle-field .at { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--dim); }
.handle-field input { border: 0 !important; background: transparent !important; padding-inline-start: 4px !important; outline: none; }
.handle-field:focus-within { outline: 3px solid var(--lamp); outline-offset: 2px; }
.hint { color: var(--dim); font-size: 12px; margin-block-start: -4px; }
.inks { border: 0; padding: 0; margin: 6px 0 2px; display: flex; flex-direction: column; gap: 12px; }
.inks legend { margin-block-end: 12px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px; padding: 4px; }
.swatch { position: relative; cursor: pointer; aspect-ratio: 1; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.swatch .dot { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; background: var(--sleeve); border: 2px solid var(--ink); }
.swatch input:checked + .dot { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: inset 0 0 0 3px #FFFFFF; }
.swatch input:focus-visible + .dot { outline: 3px solid var(--lamp); outline-offset: 3px; }
.theme-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 4px; }
.theme-choice { position: relative; cursor: pointer; }
.theme-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.theme-choice span { display: block; pointer-events: none; padding: 12px 8px; border-radius: 10px; border: 2px solid var(--ink); text-align: center; font-size: 13.5px; font-weight: 600; }
.theme-choice.night span { background: #0F0D2A; color: #F6F7FB; }
.theme-choice.dusk span { background: #2A2560; color: #F6F7FB; }
.theme-choice.day span { background: #F6F7FB; color: #15132B; }
.theme-choice input:checked + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.theme-choice input:focus-visible + span { outline: 3px solid var(--lamp); outline-offset: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: #2E2B4A; cursor: pointer; }
.consent input { inline-size: 18px; block-size: 18px; margin-block-start: 1px; accent-color: var(--ink); flex: none; }

/* --- the house ------------------------------------------------------------------------ */
.house { min-block-size: 100dvh; font-size: 13px; }
.house-nav { display: flex; gap: 18px; align-items: center; padding: 14px 20px; border-block-end: 1px solid var(--line); position: sticky; top: 0; background: var(--night); z-index: 3; flex-wrap: wrap; }
.house-nav b { font-size: 18px; color: var(--lamp); }
.house-nav a, .house .player-head a, .house h2 a, .house .flags a, .house main > p a { color: var(--day); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-block-size: 24px; min-inline-size: 24px; }
.house .player-head a, .house h2 a, .house .flags a, .house main > p a { color: var(--ice); text-decoration: underline; font-weight: 500; }
.house-nav .cap { margin-inline-start: auto; }
.house main { padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 12px; }
.house h1 { font-size: 28px; }
.house h2 { font-size: 14px; font-weight: 700; margin-block-start: 12px; color: var(--muted); }
.grid { border-collapse: collapse; inline-size: 100%; }
.grid th, .grid td { text-align: start; padding: 6px 8px; border-block-end: 1px solid var(--line); vertical-align: top; }
.grid th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.grid a { color: var(--ice); display: inline-flex; align-items: center; min-block-size: 24px; min-inline-size: 24px; }
/* What needs the House, and what each decision was made on. */
.house .flags { margin: 0 0 12px; padding-inline-start: 18px; color: var(--lamp); line-height: 1.7; }
.house .decision { margin: 0 0 4px; font-size: 12px; color: var(--day); }
.house .status .why { color: #F08A8A; font-size: 12px; }
.house .share { white-space: nowrap; }
.house .bot-toggle { display: flex; gap: 6px; align-items: center; }
.house .bot-toggle input { inline-size: 9em; min-block-size: 28px; }
.house .meter { display: inline-block; vertical-align: middle; inline-size: calc(var(--p) * 0.6px); max-inline-size: 60px; min-inline-size: 1px; block-size: 8px; border-radius: 4px; background: var(--ice); }
.house .player-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
/* The catalogue: a sheet's versions, its body, and the next one to publish. */
.grid .versions a { min-inline-size: 28px; justify-content: center; }
.house .sheet-body { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.45; color: var(--day); white-space: pre-wrap; overflow-wrap: anywhere; }
.house .catalogue-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.house .catalogue-form textarea { inline-size: 100%; max-inline-size: 760px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--day); }
.grid .payload { max-inline-size: 520px; }
.grid pre { white-space: pre-wrap; word-break: break-all; font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.status.done { color: #8DBF6A; } .status.failed { color: #E58E6A; } .status.running { color: var(--lamp); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; min-inline-size: 110px; }
.stat b { font-size: 28px; }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; block-size: 90px; }
.bar { display: block; background: var(--pot); border-radius: 3px 3px 0 0; block-size: calc(3px + var(--n) * 6px); max-block-size: 90px; font-size: 9px; color: var(--night); text-align: center; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.filters input { box-sizing: border-box; inline-size: 100%; block-size: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--day); padding-inline: 10px; }
.filters .pill { block-size: 34px; justify-content: center; }
.house-secret { display: flex; flex-direction: column; gap: 6px; margin-block-start: 14px; padding: 12px 14px; max-inline-size: 640px; border: 1.5px dashed var(--lamp); border-radius: 10px; }
.house-secret code { font-size: 14px; word-break: break-all; user-select: all; }
.house-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-block-start: 14px; max-inline-size: 640px; }
.house-form label { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.house-form input, .house-form select { box-sizing: border-box; inline-size: 100%; block-size: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--day); padding-inline: 10px; font: inherit; color-scheme: dark; }
.house-form .pill { block-size: 34px; justify-content: center; }
.house-form .form-error { grid-column: 1 / -1; margin: 0; }
.house-form.four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; max-inline-size: 860px; margin-block-end: 14px; }
.kinds summary { cursor: pointer; color: var(--muted); font-size: 12px; inline-size: fit-content; }
.kinds summary:hover { color: var(--day); }
.kind-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; margin-block-start: 8px; }
.kind-list a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 2px; border-block-end: 1px solid var(--line); color: var(--day); font-size: 12px; text-decoration: none; }
.kind-list a .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.kind-list a:hover, .kind-list a.on { color: var(--lamp); }
.kind-list a.on .n { color: var(--lamp); }
.grid-frame { overflow-x: auto; max-inline-size: 100%; }
.grid-frame:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.house main { min-inline-size: 0; }
/* The guide: a "?" by every House heading, and the sections it opens. */
.house h1 .guide-link { display: inline-flex; align-items: center; justify-content: center; inline-size: 26px; block-size: 26px; margin-inline-start: 10px; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; color: var(--muted); text-decoration: none; vertical-align: middle; }
.house h1 .guide-link:hover { color: var(--lamp); border-color: var(--lamp); }
.house .guide-toc ol { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.house .guide-toc a { color: var(--ice); display: inline-flex; min-block-size: 24px; align-items: center; }
.house .guide-section { max-inline-size: 760px; scroll-margin-top: 120px; }
.house .guide-section p, .house .guide-steps { line-height: 1.55; }
.house .guide-steps { padding-inline-start: 20px; margin: 4px 0 8px; }
.house .guide-steps li { margin-block: 3px; }
/* The games: a family's facts, a sheet's payoffs. */
/* A sentence and its button: apart enough that a touch target's hit area (12 px past the button)
   never lies over the sentence. */
.house .gate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.house .gate p { margin: 0; }
.house .game-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 6px 0; max-inline-size: 860px; }
.house .game-facts dt { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding-block-start: 2px; }
.house .game-facts dd { margin: 0; line-height: 1.5; }
.house .game-keys { line-height: 1.9; }
.house .game-keys a { color: var(--ice); display: inline-flex; align-items: center; min-block-size: 26px; }
.house .payoffs { margin: 10px 0 14px; max-inline-size: 960px; }
.house .payoffs .grid th[scope=row] { color: var(--day); font-size: 12px; text-transform: none; letter-spacing: 0; }
@media (max-width: 560px) { .house .game-facts { grid-template-columns: minmax(0, 1fr); } }
/* Money: who holds a tier, each with the way to take it away. */
.house .members { list-style: none; margin: 0; padding: 0; }
.house .members li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-block: 8px; border-block-end: 1px solid var(--line); }
/* Vitals: a tile a signal, coloured by its level; the day's lines. */
.house .vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.house .vital { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.house .vital b { font-size: 18px; }
.house .vital.calm b { color: #8DBF6A; }
.house .vital.amber b { color: var(--lamp); }
.house .vital.rose b { color: #E878A0; }
.house .vital.rose { border-color: #E878A0; }
.house .vitals-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.house .vitals-chart { margin: 0; color: var(--ice); }
.house .vitals-chart svg { display: block; inline-size: 100%; block-size: 80px; border-block-end: 1px solid var(--line); }
.house .vitals-chart.days svg { block-size: 100px; color: var(--pot); }
.house .days-labels { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); font-size: 10px; color: var(--muted); text-align: center; }
.house .log-filter { display: flex; gap: 8px; margin: 0; }
.house .log-filter a { text-decoration: none; }
.house .pill.on { background: var(--day); color: var(--night); }
.house .log-lines { list-style: none; margin: 0; padding: 0; font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.house .log-lines li { display: grid; grid-template-columns: 5.2em 5.6em minmax(0, 1fr); gap: 8px; padding-block: 2px; border-block-end: 1px solid var(--line); }
.house .log-lines .text { overflow-wrap: anywhere; color: var(--day); }
.house .log-lines .when, .house .log-lines .lvl { color: var(--muted); }
.house .log-lines .lvl-warning .lvl { color: var(--lamp); }
.house .log-lines .lvl-error .lvl, .house .log-lines .lvl-critical .lvl { color: #E878A0; }
/* A season's plan: a day a row (day, sheet, sight, talk, the rest), the weeks, the checks. */
.house .plan-versions { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); margin: 0; }
.house .plan-versions a { color: var(--ice); min-inline-size: 28px; }
.plan-days { display: flex; flex-direction: column; }
.plan-day { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 8px; align-items: center; padding-block: 5px; border-block-end: 1px solid var(--line); }
.plan-day.head { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding-block: 4px; }
.plan-day .when small { display: block; color: var(--muted); font-size: 11px; }
.plan-day.fixed { color: var(--muted); }
.plan-day.fixed .when b { color: var(--muted); }
.plan select, .plan input { box-sizing: border-box; inline-size: 100%; block-size: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--day); padding-inline: 8px; font: inherit; color-scheme: dark; min-inline-size: 0; }
.plan-weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-inline-size: 860px; }
.plan-week { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.plan-checks { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-block-start: 14px; }
.plan-checks h3 { font-size: 12px; margin: 4px 0; }
.plan-checks ul { margin: 0 0 6px; padding-inline-start: 18px; line-height: 1.6; }
.plan-checks .refused h3, .plan-checks .refused li { color: #F08A8A; }
.plan-checks .warned h3 { color: var(--lamp); }
.plan-checks .plan-ok { margin: 0; color: #8DBF6A; }
.plan-actions { display: flex; gap: 10px; margin-block-start: 12px; }
@media (max-width: 760px) {
  .plan-day { grid-template-columns: 4.6em minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .plan-day.head { display: none; }
  .plan-day .when { grid-row: span 3; align-self: start; font-size: 12px; }
  .plan-day .sheet, .plan-day .more { grid-column: 2 / -1; }
  .plan-weeks { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .house-form .pill { grid-column: 1 / -1; }
  .house-form.four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.flash { color: var(--lamp); font-weight: 600; }
.rebuild { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* --- install ------------------------------------------------------------------------ */
/* Script-only until the browser can install (pwa.js adds .on); a plain link without JS. */
.js [data-install]:not(.on) { display: none; }
.land-nav-end { display: flex; gap: 10px; align-items: center; }
.pill.install { border-color: var(--lamp); background: var(--lamp); color: var(--ink); }
.card .pill.install { border-color: var(--ink); }
.pill.install.big { block-size: 46px; padding-inline: 24px; font-size: 13px; }
.install-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 6px; padding-block-start: 12px; border-block-start: 1px solid rgba(21, 19, 43, 0.14); }
.js .install-row:not(:has([data-install].on)) { display: none; }
dialog.install-sheet { inline-size: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px 20px 18px; margin: auto auto max(16px, env(safe-area-inset-bottom)); }
dialog.install-sheet::backdrop { background: rgba(15, 13, 42, 0.6); backdrop-filter: blur(3px); }
dialog.install-sheet h2 { margin: 0; font-size: 24px; }
.install-sheet [data-os] { display: none; }
.install-sheet[data-os="ios"] [data-os="ios"], .install-sheet[data-os="mac"] [data-os="mac"] { display: block; }
.steps { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.35; }
.step-pic { flex: none; inline-size: 44px; block-size: 44px; border: 2px solid var(--ink); border-radius: 12px; display: grid; place-items: center; background: #FFFFFF; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.solo-card h2.cap { margin: 10px 0 0; }
/* A page to read (about, privacy): the card wider, its links underlined. */
.solo-card.read { inline-size: min(100%, 640px); }
.solo-card.read a { color: var(--ink); text-underline-offset: 2px; }
.solo-card .fine-links { margin-block-start: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.solo-card .fine-links a { display: inline-flex; align-items: center; min-block-size: 24px; }
.solo-card.read p > a:only-child, .solo-card .tip-link { display: inline-flex; align-items: center; min-block-size: 24px; }
.solo-card .tip-link { font-weight: 700; }
/* The public games pages (10.9): the payoffs in the card, the lists, the way on. */
.read .payoffs { margin: 0 0 6px; }
.read .payoffs figcaption { margin-block-end: 6px; font-size: 11px; color: var(--dim); }
.read .grid th, .read .grid td { border-block-end-color: rgba(21, 19, 43, 0.12); font-size: 13px; white-space: nowrap; }
.read .grid th { color: var(--dim); }
.read .grid th[scope=row] { color: var(--ink); text-transform: none; letter-spacing: 0; }
.read .grid td { color: var(--ink); font-variant-numeric: tabular-nums; }
.read .game-ours { margin-block-start: -6px; font-weight: 600; color: var(--dim); }
.read .crowd-figure { margin: 0; font-size: 20px; line-height: 1.25; color: var(--ink); }
.games-family { display: flex; flex-direction: column; gap: 6px; }
.games-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.games-list a { display: inline-flex; align-items: center; min-block-size: 28px; font-weight: 600; }
.games-list .quiet { font-size: 14px; }
.solo-card .explore ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.land-games { padding: 34px clamp(16px, 4.6vw, 56px) 0; }
.land-games h2 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.land-games-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.land-games-list a { display: inline-flex; align-items: center; min-block-size: 32px; padding: 0 12px; border: 1px solid rgba(201, 204, 216, 0.3); border-radius: 999px; font-size: 14px; color: var(--day); text-decoration: none; }
.land-games-list a:hover, .land-games-list a:focus-visible { border-color: var(--lamp); }
.land-more { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; }
.land-more a { display: inline-flex; align-items: center; min-block-size: 24px; color: var(--muted); }
.land-fine { display: flex; gap: 16px; margin-block-start: 8px; }
.land-fine a { color: var(--muted); display: inline-flex; align-items: center; min-block-size: 24px; }
.record-fine { display: flex; justify-content: center; gap: 16px; padding-block: 8px 4px; }
.record-fine a { color: var(--dim); display: inline-flex; align-items: center; min-block-size: 24px; }
.edit-email .hint a { display: inline-flex; align-items: center; min-block-size: 24px; color: inherit; }
.consent-more { font-size: 13px; color: var(--dim); align-self: flex-start; display: inline-flex; align-items: center; min-block-size: 24px; }
.land-nav { gap: 10px; }
.land-nav .pill { white-space: nowrap; }
.land-nav .wordmark { white-space: nowrap; min-inline-size: 0; }
@media (max-width: 420px) {
  .land-nav-end { gap: 6px; }
  .land-nav .pill { block-size: 30px; padding-inline: 11px; font-size: 10px; letter-spacing: 0.08em; }
}

/* --- the kit (shared/ui/kit.gleam) ------------------------------------------------- */
/* Motion: four phases so no two seats tremble in step; a committed hand settles. */
.tremble { transform-origin: 50% 100%; }
.tremble.t0 { animation: tremble 0.32s infinite; }
.tremble.t1 { animation: tremble2 0.41s infinite; }
.tremble.t2 { animation: tremble2 0.37s 0.12s infinite; }
.tremble.t3 { animation: tremble 0.45s 0.2s infinite; }
.still { animation: settle 280ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .tremble, .tremble-a, .tremble-b, .wm.shiver, .still, .stamp, .talk-feed li.fresh { animation: none !important; }
  .wm.shiver { text-shadow: 2px -1.5px 0 var(--lamp); }
}

/* The stacked lockup, as on the design canvas (sizes in em of the top line):
   "trembling" 1em, "hand" 1.2em, line height 0.82; the hand 1.6em wide at
   (3em, 0.52em), tilted 16° and trembling, with a Lamp shadow; the words
   carry a Lamp ghost that shivers. */
.lockup.stacked { position: relative; display: inline-flex; flex-direction: column; line-height: 0.82; font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; }
.lockup.stacked .wm { font-size: 1em; color: inherit; text-shadow: 0.08em -0.06em 0 var(--lamp); }
.lockup.stacked .wm.shiver { animation: shiver-em 0.55s steps(1) infinite; }
.lockup.stacked .bottom { font-size: 1.2em; }
.lockup.stacked .mark { position: absolute; inset-inline-start: 3em; inset-block-start: 0.52em; inline-size: 1.6em; block-size: 1.84em; object-fit: contain; filter: drop-shadow(0.06em -0.04em 0 var(--lamp)); transform: rotate(-16deg); transform-origin: 50% 100%; }
.lockup.stacked .mark.tremble { animation: tremble-tilted 0.32s infinite; }
@keyframes shiver-em { 0%, 100% { text-shadow: 0.08em -0.06em 0 var(--lamp); } 25% { text-shadow: -0.06em 0.08em 0 var(--lamp); } 50% { text-shadow: -0.08em -0.06em 0 var(--lamp); } 75% { text-shadow: 0.06em 0.08em 0 var(--lamp); } }
@keyframes tremble-tilted { 0%, 100% { transform: rotate(-16deg) translate(0, 0); } 20% { transform: rotate(-16.5deg) translate(1.4px, -1px); } 40% { transform: rotate(-15.5deg) translate(-1.2px, 1.1px); } 60% { transform: rotate(-16.3deg) translate(1px, 0.7px); } 80% { transform: rotate(-15.7deg) translate(-0.9px, -0.8px); } }
@media (prefers-reduced-motion: reduce) { .lockup.stacked .wm.shiver, .lockup.stacked .mark.tremble { animation: none !important; } }

.mark-tile { display: inline-grid; place-items: center; background: var(--night); }
.mark-tile img { transform: rotate(-14deg); }
.mark-tile.small { inline-size: 40px; block-size: 40px; border-radius: 10px; background: var(--day); border: 2px solid var(--ink); }
.mark-tile.small img { inline-size: 20px; block-size: 23px; object-fit: contain; }
.mark-tile.medium { inline-size: 64px; block-size: 64px; border-radius: 16px; }
.mark-tile.medium img { inline-size: 34px; block-size: 39px; object-fit: contain; }
.mark-tile.app { inline-size: 96px; block-size: 96px; border-radius: 24px; background: var(--lamp); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.mark-tile.app img { inline-size: 52px; block-size: 60px; object-fit: contain; }

.btn.plain { background: #FFFFFF; color: var(--ink); }

/* Stamps: slapped down at 08:00, one by one. */
.stamp { display: inline-flex; align-items: baseline; gap: 2px; padding: 5px 9px 4px; border: 2px solid var(--ink); border-radius: 9px; font-size: 13px; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); white-space: nowrap; animation: slap 260ms cubic-bezier(.2, .9, .3, 1.3) both; }
.stamp small { font-family: var(--text); font-weight: 600; font-size: 10px; opacity: 0.75; }
.stamp.warm { background: var(--lamp); }
.stamp.cold { background: #E3F7FF; }
.stamp.neutral { background: #FFFFFF; }
.stamp.you { background: var(--ink); color: var(--lamp); box-shadow: 3px 3px 0 var(--lamp); }

/* Seat tags: placed by the room; the ink is the border and the dot. */
.seat-tag { display: inline-flex; flex-direction: column; gap: 2px; padding: 7px 10px 6px; border-radius: 12px; background: rgba(21, 19, 43, 0.84); border: 1px solid color-mix(in srgb, var(--sleeve) 75%, transparent); backdrop-filter: blur(6px); white-space: nowrap; color: var(--day); text-decoration: none; }
.tag-head { display: flex; align-items: center; gap: 6px; line-height: 1; }
.tag-head b { font-size: 14px; }
.tag-head small.cap { font-size: 8px; color: #C9CCD8; margin-inline-start: 2px; }
.tag-line { font-size: 11px; color: #C9CCD8; line-height: 1.2; }
.seat-tag.you .tag-head b { font-size: 13px; }
.seat-tag.model { border-color: rgba(143, 227, 255, 0.7); }
.seat-tag.model .tag-head b, .seat-tag.model .tag-line { color: var(--ice); }
.ink-dot { display: inline-block; flex: none; inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--sleeve); border: 1px solid var(--night); }
.ink-glyph { flex: none; inline-size: 11px; block-size: 11px; }

/* Archetype badges. */
.badge { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 9px; background: #FFFFFF; color: var(--ink); }
.badge > span { display: flex; flex-direction: column; }
.badge b { font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.1; }
.badge small { font-size: 10px; color: var(--dim); }
.badge.model { background: #E3F7FF; }
.glyph { flex: none; color: var(--ink); }
.glyph .glyph-box { fill: #FFFFFF; stroke: var(--ink); }
.badge.model .glyph .glyph-box { fill: #E3F7FF; }

/* Dials: a half ring in the player's ink, a tick at the last thirty. */
.dial { margin: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; inline-size: 96px; color: var(--ink); }
.dial svg { inline-size: 100%; block-size: auto; overflow: visible; }
.dial-track, .dial-fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.dial-track { stroke: #E3E5EE; }
.dial-fill { stroke: var(--sleeve); }
.dial-tick { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.dial figcaption { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-block-start: -14px; }
.dial figcaption b { font-size: 20px; line-height: 1; }
.dial figcaption .cap { color: var(--dim); }

/* The last thirty. */
.slats { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.slat { block-size: 14px; border-radius: 3px; border: 1.5px solid var(--ink); }
.slat.shook { background: var(--lamp); }
.slat.broke { background: var(--ice); }
.slat.empty { background: #FFFFFF; border-color: #D9DCE6; }

/* Cards: the shadow says where they sit. */
.card.lamp { box-shadow: 5px 5px 0 var(--lamp); }
.card.ink { box-shadow: 5px 5px 0 var(--ink); }
.card.own { box-shadow: 5px 5px 0 var(--sleeve); }

/* The House's kit page. */
.kit-section { border-radius: 18px; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.kit-section.day { background: var(--day); color: var(--ink); }
.kit-section.day h2.cap { color: var(--dim); }
.kit-section.night { background: var(--night); color: var(--day); }
.kit-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kit-row.big { font-size: 54px; }
.kit-wide { max-inline-size: 420px; }
.kit-card { padding: 18px 22px; min-inline-size: 140px; }
.kit-hand { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kit-hand .cap { font-size: 10px; }
.kit-hand-box { position: relative; block-size: 150px; }
.kit-hand-box .hand { position: absolute; }
.kit-hand-box .hand img { inline-size: 100%; block-size: 100%; position: relative; }
.kit-hand-box .sleeve { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* --- the profile (5.6, Design v3 Profile) ----------------------------------------------- */
.record-page { box-sizing: border-box; inline-size: min(100%, 520px); margin-inline: auto; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.record-head .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); text-decoration: none; }
.hero-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: end; gap: 10px; padding: 14px 16px 0; overflow: hidden; }
.hero-hand { align-self: end; }
.portrait { position: relative; inline-size: 100%; }
.portrait .sleeve { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.portrait img { position: relative; display: block; inline-size: 100%; block-size: auto; }
.hero-who { display: flex; flex-direction: column; gap: 6px; padding-block-end: 16px; min-inline-size: 0; }
.hero-who .handle { margin: 0; font-size: clamp(30px, 9vw, 44px); line-height: 1; overflow-wrap: anywhere; text-shadow: 3px 3px 0 var(--sleeve, var(--lamp)); }
.hero-who .arch { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.12em; color: var(--ink); }
.hero-who .arch .glyph { inline-size: 18px; block-size: 18px; }
.hero-who .stats { font-size: 10px; letter-spacing: 0.12em; color: #5B5A74; }
.hero-who .made-by { margin: 0; font-size: 13px; color: #3A3659; }
.hero-who .made-by small { display: block; margin-block-start: 2px; font-size: 13px; color: #5B5A74; }
.sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.side-card, .stat-card { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: #FFFFFF; font-size: 11px; color: #5B5A74; min-inline-size: 0; }
.side-card .cap, .stat-card .cap { font-size: 9px; letter-spacing: 0.12em; color: var(--ink); }
.side-card b, .stat-card b { font-size: 30px; line-height: 1.05; color: var(--ink); }
.stat-card b small { font-size: 16px; color: #5B5A74; }
.side-card.warm { background: #FFF1DB; box-shadow: 4px 4px 0 var(--ink); }
.side-card.cold, .stat-card.cold { background: #E6F6FC; border-color: #2E86A6; }
.side-card.cold .cap, .stat-card.cold .cap { color: #1F6E8C; }
.thirty-card, .dials-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.thirty-card .cap, .dials-card .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); }
.cap.fine { color: #5B5A74; }
.record-page .slats { gap: 6px 5px; }
.record-page .slat { block-size: 22px; border-radius: 5px; }
.record-page .slat.broke { background: var(--ink); }
.record-page .slat.sat { background: #D9DCE6; border-color: #9B9AB0; }
.record-page .slat.played { background: #ECEAF8; }
.record-page .slat.model { box-shadow: 0 0 0 2px var(--ice); }
.slat-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 9px; letter-spacing: 0.1em; }
.slat-legend .legend { display: inline-flex; align-items: center; gap: 5px; color: #5B5A74; }
.slat-legend i { inline-size: 12px; block-size: 12px; border-radius: 3px; border: 1.5px solid var(--ink); }
.slat-legend .shook i { background: var(--lamp); }
.slat-legend .broke i { background: var(--ink); }
.slat-legend .sat i { background: #D9DCE6; border-color: #9B9AB0; }
.slat-legend .played i { background: #ECEAF8; }
.slat-legend .model i { background: #FFFFFF; box-shadow: 0 0 0 2px var(--ice); }
.dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; justify-items: center; }
.dials .dial { inline-size: 100%; max-inline-size: 96px; }
.dials-card .fine { text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rivals-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.rivals-card .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); }
.rivals-card .cap.fine { color: #5B5A74; }
.rivals { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rivals li + li { border-block-start: 1px dashed #ECEAF8; }
.rival { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 2px 8px; padding-block: 8px; color: var(--ink); text-decoration: none; }
.rival b { font-size: 15px; }
.rival .rival-model { font-size: 9px; letter-spacing: 0.12em; color: #1F6E8C; }
.rival .rival-line { grid-column: 2 / -1; font-size: 12px; line-height: 1.35; color: #5B5A74; }
.rival:hover b { text-decoration: underline; }
.you-and { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--day); }
.you-and .cap { font-size: 9px; letter-spacing: 0.12em; color: #C9CCD8; }
.you-and b { font-size: 15px; line-height: 1.35; }
.broke-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--day); text-decoration: none; }
.broke-card .broke-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.broke-card .cap { font-size: 9px; letter-spacing: 0.12em; color: #C9CCD8; }
.broke-card .link { color: var(--lamp); white-space: nowrap; }
@media (min-width: 1100px), (min-width: 720px) and (min-height: 540px) {
  /* Two columns that fill independently, in reading order: no row leaves a gap. */
  .record-page { inline-size: min(100% - 64px, 1080px); display: block; columns: 2; column-gap: 32px; padding-block: 32px; }
  main.record-page > * { break-inside: avoid; margin-block: 0 16px; }
  .record-head { column-span: all; margin-block-end: 20px; }
  .hero-who .handle { font-size: 52px; }
}

/* --- people (7.1, Design v3 Connections) -------------------------------------------------- */
.season-cards { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.titles { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.title-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #2A2748; color: var(--day); font-weight: 700; font-size: 12px; box-shadow: inset 0 0 0 1px rgba(255, 176, 74, 0.5); }
.title-chip.tier { background: var(--lamp); color: #15132B; box-shadow: none; }
.credits-line { margin: 0; font-size: 12px; color: #5B5A74; }
.title-chip small { font-weight: 400; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lamp); }
.season-page { box-sizing: border-box; inline-size: min(100%, 560px); margin-inline: auto; padding: 18px 14px 28px; display: flex; flex-direction: column; gap: 16px; color: var(--day); }
.season-head { display: flex; flex-direction: column; gap: 6px; }
.season-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.season-head h1 { margin: 0; font-size: 30px; line-height: 1; }
.season-head .lamp { color: var(--lamp); font-size: 9px; letter-spacing: 0.12em; }
.season-head p { margin: 0; font-size: 13px; color: #C9CCD8; }
.season-strip { display: flex; flex-direction: column; gap: 6px; }
.season-strip .acts { display: grid; grid-template-columns: 7fr 7fr 7fr; font-size: 8px; letter-spacing: 0.12em; color: #8B89A6; }
.season-strip .days { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 3px; }
.season-strip .day { block-size: 22px; border-radius: 5px; background: #2A2748; }
.season-strip .day.shook { background: #FFB04A; }
.season-strip .day.broke { background: #F07FA0; }
.season-strip .day.crowd { background: #9C8CF0; }
.season-strip .day.event { background: #7FD8F2; }
.season-strip .day.out, .season-strip .day.none { background: transparent; box-shadow: inset 0 0 0 1px #3A3659; }
.season-strip .day.ahead { background: #1E1C38; }
.season-strip .day.fin { box-shadow: inset 0 0 0 1.5px #F07FA0; }
.season-strip .day.today { box-shadow: 0 0 0 2px var(--day); }
.season-strip .legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 11px; color: #8B89A6; }
.season-strip .keys { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.season-strip .key { display: inline-flex; align-items: center; gap: 4px; }
.season-strip .key i { inline-size: 10px; block-size: 10px; border-radius: 3px; }
.season-strip .key.shook i { background: #FFB04A; }
.season-strip .key.broke i { background: #F07FA0; }
.season-strip .key.crowd i { background: #9C8CF0; }
.season-strip .key.event i { background: #7FD8F2; }
.season-strip .key.out i { box-shadow: inset 0 0 0 1px #6B6890; }
.season-you { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.season-you > .cap { font-size: 9px; letter-spacing: 0.12em; color: #3A3659; }
.season-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.season-stats a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; min-inline-size: 0; }
.season-stats b { font-size: 24px; line-height: 1; }
.season-stats small { font-size: 8px; letter-spacing: 0.1em; color: #5B5A74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-you p { margin: 0; font-size: 12px; color: #5B5A74; }
.season-vote { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; color: var(--ink); }
.season-vote > .cap { font-size: 9px; letter-spacing: 0.12em; color: #B4471F; }
.season-vote > p { margin: 0; font-size: 13px; color: #3A3659; }
.season-vote form { display: flex; flex-direction: column; gap: 10px; }
.vote-choices { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vote-choice { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; background: #ECEAF8; cursor: pointer; min-inline-size: 0; }
.vote-choice:has(input:checked) { background: #FFF1DB; box-shadow: inset 0 0 0 2px var(--lamp); }
.vote-choice input { margin: 2px 0 0; accent-color: #B4471F; }
.vote-choice span { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.vote-choice b { font-size: 13px; }
.vote-choice small { font-size: 11px; line-height: 1.3; color: #5B5A74; }
.season-vote .fine { margin: 0; color: #3A3659; }
@media (max-width: 380px) { .vote-choices { grid-template-columns: 1fr; } }
.season-tabs { display: flex; flex-direction: column; gap: 8px; }
.season-tabs .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #15132B; }
.season-tabs .tabs a { display: flex; align-items: center; justify-content: center; min-block-size: 36px; border-radius: 10px; color: #8B89A6; font-weight: 700; font-size: 13px; text-decoration: none; }
.season-tabs .tabs a.on { background: var(--day); color: var(--ink); }
.season-tabs .scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.board { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.arena-page h1 { margin: 0; font-size: 34px; line-height: 1; text-shadow: 2px -1.5px 0 var(--lamp); }
.arena-lede { margin: 0; font-size: 15px; line-height: 1.45; color: #C9CCD8; }
.arena-h { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.12em; color: var(--lamp); }
.arena-bots, .arena-recent { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.arena-bot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who maker" "who policy"; column-gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: #15132B; border: 1px solid rgba(201, 204, 216, 0.12); }
.arena-bot .who { grid-area: who; align-self: stretch; display: flex; align-items: center; min-block-size: 24px; color: var(--day); font-weight: 700; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arena-bot .cap { grid-area: maker; font-size: 11px; color: #A9A5C8; }
.arena-bot .cap a { color: var(--ice); text-underline-offset: 2px; }
.hero-who .made-by a { color: inherit; text-underline-offset: 2px; }
.arena-bot small { grid-area: policy; justify-self: end; color: #8B89A6; font-size: 12px; font-variant-numeric: tabular-nums; }
.arena-recent li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #15132B; font-size: 13px; color: #C9CCD8; }
.arena-recent code { overflow: hidden; text-overflow: ellipsis; color: #8B89A6; }
.api-basics { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; color: #C9CCD8; font-size: 14px; line-height: 1.45; }
.api-endpoint { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #15132B; border: 1px solid rgba(201, 204, 216, 0.12); }
.api-endpoint p { margin: 0; color: #C9CCD8; font-size: 14px; line-height: 1.45; }
.api-path { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 15px; }
.api-path b { color: var(--lamp); font-size: 12px; letter-spacing: 0.08em; }
.api-path code { color: var(--day); overflow-wrap: anywhere; }
.api-fields { margin: 0; display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 12px; font-size: 13px; }
.api-fields dt code { color: var(--ice); overflow-wrap: anywhere; }
.api-fields dd { margin: 0; color: #C9CCD8; line-height: 1.4; }
.board-row { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #15132B; border: 1px solid rgba(201, 204, 216, 0.12); }
.board-row.you { border-color: var(--lamp); }
.board-row .rank { color: var(--lamp); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.board-row .ink-dot { inline-size: 12px; block-size: 12px; }
.board-row .who { display: block; padding-block: 4px; color: var(--day); font-weight: 700; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .who small { margin-inline-start: 6px; font-weight: 400; color: #8B89A6; }
.board-row .value { font-size: 14px; font-variant-numeric: tabular-nums; }
.board-more, .board-empty { padding: 9px 12px 9px 50px; border-radius: 12px; background: #15132B; color: #8B89A6; font-size: 13px; }
.board-empty { padding-inline-start: 12px; }
.season-fine { margin: 0; font-size: 11px; color: #8B89A6; }
.season-fine a { display: inline-block; padding-block: 5px; color: var(--lamp); }
.season-facts { margin: 0; display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.season-facts dt { color: #C9CCD8; }
.season-facts dd { margin: 0; font-weight: 700; text-align: end; }
.people-page { box-sizing: border-box; inline-size: min(100%, 560px); margin-inline: auto; padding: 18px 14px 28px; display: flex; flex-direction: column; gap: 16px; color: var(--day); }
.people-head { display: flex; flex-direction: column; gap: 4px; }
.people-head h1 { margin: 0; font-size: 30px; line-height: 1; }
.people-head p { margin: 0; font-size: 13px; color: #C9CCD8; }
.people-notice { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 180, 84, 0.14); border: 1px solid var(--lamp); color: var(--lamp); font-size: 13px; }
.people-section { display: flex; flex-direction: column; gap: 8px; }
.people-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-inline: 4px; }
.people-section-head h2 { margin: 0; font-size: 9px; letter-spacing: 0.12em; color: #C9CCD8; }
.people-section-head .fine { font-size: 11px; color: #8B89A6; text-align: end; }
.people-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.people-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #15132B; border: 1px solid rgba(201, 204, 216, 0.18); }
.people-row .ink-dot { inline-size: 14px; block-size: 14px; }
.people-text { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.people-text b { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.people-text b a { color: var(--day); text-decoration: none; }
.people-text b a:hover { text-decoration: underline; }
.people-text .model { font-size: 9px; letter-spacing: 0.12em; color: var(--ice); }
.people-text small { font-size: 12px; line-height: 1.35; color: #C9CCD8; }
.people-actions { display: flex; gap: 6px; align-items: center; }
.people-actions form { margin: 0; }
.people-empty { padding: 12px; border-radius: 14px; border: 1px dashed rgba(201, 204, 216, 0.3); font-size: 13px; color: #C9CCD8; }
.pill.act { border-color: var(--lamp); background: var(--lamp); color: var(--ink); }
.card.people-private { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); box-shadow: 5px 5px 0 var(--pot); }
.people-private > div { flex: 1; min-inline-size: 0; }
.people-private b { display: block; font-size: 17px; line-height: 1.1; }
.people-private p { margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: #5B5A74; }
.btn.pot { flex: none; inline-size: auto; padding-inline: 16px; block-size: 42px; font-size: 15px; background: var(--pot); color: var(--ink); border-color: var(--ink); text-decoration: none; }
/* On a profile: the line and the links. */
.about { display: flex; flex-direction: column; gap: 8px; }
.profile-line { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.link-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
/* A link: the network's icon (Simple Icons, recoloured by a mask) and the handle. */
.net-chip { display: inline-flex; align-items: center; gap: 7px; min-block-size: 32px; max-inline-size: 100%; box-sizing: border-box; padding: 4px 12px 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.net-chip.bare { padding-inline: 8px; min-inline-size: 32px; justify-content: center; }
.net-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-icon { flex: none; inline-size: 16px; block-size: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.net-name { flex: none; font-family: var(--display); font-weight: 900; font-size: 12px; }
.net-chip:hover, .net-chip:focus-visible { background: var(--ink); color: var(--day); }
.about .edit-link { align-self: flex-start; color: var(--ink); text-decoration: none; }
.about .edit-link:hover { text-decoration: underline; }
.house-clear { margin: 0; }
.house-clear .pill { border-color: #B4364A; color: #B4364A; }
/* Editing it. */
.edit-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px; }
.edit-card h1 { margin: 0; font-size: 28px; line-height: 1; }
.edit-field { display: flex; flex-direction: column; gap: 6px; }
.edit-field textarea, .edit-links input { box-sizing: border-box; inline-size: 100%; border: 2px solid var(--ink); border-radius: 12px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 15px; padding: 10px 12px; }
.edit-field textarea { resize: vertical; min-block-size: 64px; }
.edit-field textarea:focus, .edit-links input:focus { outline: 3px solid var(--lamp); outline-offset: 2px; }
.edit-links { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-inline-size: 0; }
.edit-links legend { margin-block-end: 8px; }
.edit-card .hint { margin: 0; }
.edit-email { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.edit-email legend { margin-block-end: 8px; }
.edit-check { display: flex; align-items: center; gap: 10px; min-block-size: 44px; font-size: 15px; cursor: pointer; }
.edit-check input { inline-size: 22px; block-size: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.edit-check:has(input:disabled) { opacity: 0.55; cursor: default; }
.delete-link { display: inline-block; align-self: flex-start; min-block-size: 44px; box-sizing: border-box; padding-block: 12px; font-size: 14px; color: #B4471F; text-decoration: underline; text-underline-offset: 3px; }
/* On the join page it is a way out, not a warning. */
.delete-link.quiet { color: var(--dim); }
.delete-form { display: flex; flex-direction: column; gap: 10px; }
.edit-card .push-toggle { align-self: flex-start; block-size: 44px; padding-inline: 16px; background: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); backdrop-filter: none; font-size: 15px; }
.edit-card .push-toggle:disabled { opacity: 0.5; box-shadow: none; cursor: default; }
.delete-label { font-size: 14px; color: var(--ink); }
.delete-form .keep-link { display: inline-block; align-self: flex-start; min-block-size: 44px; box-sizing: border-box; padding-block: 14px; color: var(--dim); }
.btn.danger { background: #B4471F; color: #FFFFFF; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.edit-card .form-error { margin: 0; color: #B4471F; }
.edit-card .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); }
.edit-card .hint { color: #5B5A74; }
@media (min-width: 1100px), (min-width: 720px) and (min-height: 540px) {
  .edit-page { display: flex; inline-size: min(100% - 64px, 560px); }
}
/* On a profile: follow, silently. */
.follow-row { display: flex; align-items: center; gap: 10px; }
.follow-row form { margin: 0; }
.follow-row .cap.fine { font-size: 10px; letter-spacing: 0.08em; }
.following-none { margin: 0; font-size: 13px; }
.following-card .card-row a { color: var(--ink); text-decoration: none; }
.following-card .card-row a:hover { text-decoration: underline; }
@media (min-width: 1100px), (min-width: 720px) and (min-height: 540px) {
  .people-page { inline-size: min(100% - 64px, 720px); padding-block: 32px; }
  .season-page { inline-size: min(100% - 64px, 720px); padding-block: 32px; }
  .people-head h1 { font-size: 40px; }
}

/* --- the ledger (5.6, Design v3 Ledger) ------------------------------------------------- */
.ledger-page { box-sizing: border-box; inline-size: min(100%, 560px); margin-inline: auto; padding: 18px 14px 28px; display: flex; flex-direction: column; gap: 12px; color: var(--day); }
.ledger-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ledger-top .cap { font-size: 10px; letter-spacing: 0.12em; color: #C9CCD8; text-decoration: none; }
.ledger-top .cap:hover { color: var(--lamp); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ledger-head h1 { margin: 0; font-size: 30px; }
.ledger-head .cap { font-size: 10px; letter-spacing: 0.12em; color: #C9CCD8; }
.ledger-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ledger-export { margin: -4px 0 0; }
.broke-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.broke-box { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #F6F7FB; color: var(--ink); }
.broke-box .cap { font-size: 9px; letter-spacing: 0.12em; color: #5B5A74; }
.broke-box b { font-size: 15px; line-height: 1.25; }
.ledger-days { display: flex; flex-direction: column; gap: 6px; }
.ledger-day h2 { margin: 8px 0 6px; font-size: 9px; letter-spacing: 0.12em; color: #C9CCD8; }
.ledger-day ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ledger-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(201, 204, 216, 0.28); border-radius: 12px; background: rgba(21, 19, 43, 0.6); }
.ledger-row.off { border-style: dashed; }
.ledger-sheet { display: flex; flex-direction: column; gap: 2px; font-size: 8px; letter-spacing: 0.1em; color: #8B89A6; }
.ledger-sheet b { color: var(--day); font-size: 9px; }
.ledger-what { display: flex; flex-direction: column; gap: 3px; min-inline-size: 0; }
.ledger-others { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.ledger-others .other { display: inline-flex; align-items: center; gap: 5px; }
.ledger-others .ink-dot { inline-size: 9px; block-size: 9px; }
.ledger-others .model { color: var(--ice); font-size: 11px; }
.ledger-mine { font-size: 11px; color: #C9CCD8; }
.ledger-points { font-size: 20px; color: var(--lamp); }
.ledger-empty { margin: 16px 0; color: #C9CCD8; font-size: 14px; }
.ledger-pages { display: flex; justify-content: space-between; }
.ledger-pages a { color: var(--lamp); font-size: 10px; letter-spacing: 0.12em; text-decoration: none; }
.ledger-foot, .ledger-foot.cap.fine { text-align: center; font-size: 9px; letter-spacing: 0.12em; color: #A9A5C8; }

/* --- the share card's page (5.6): the card and two ways on ------------------- */
.solo-card .share-card { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 14px; background: var(--night); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-actions .btn { flex: 1 1 160px; }
.share-actions .btn.secondary { background: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); backdrop-filter: none; }

/* --- the back room (6.3): the night room, empty at the doors, filling at the wait ------
   The room's own scene and layout: the title takes the sheet's row, the bowl holds the one
   thing to do (sit down, or the ring counting down to the bots), the dock sits under the
   scene on a phone (in the room's bottom row, as tall as --dock) and is the right rail on a
   wide screen. An empty place is a faint hand; a place someone took turns solid. */
.room.back { --B: calc(var(--dock, 96) * var(--u) + env(safe-area-inset-bottom, 0px)); }
.room.back.doors { --dock: calc(204 + 58 * var(--rows, 0) + 64 * var(--more, 0) + 40 * var(--note, 0) + 112 * var(--setup, 0)); }
.room.back.doors:has(.back-row) { --rows: 1; }
.room.back.doors:has(.back-row + .back-row) { --rows: 2; }
.room.back.doors:has(.back-tiles li:nth-child(5)) { --more: 1; }
.room.back.doors:has(.back-notice) { --note: 1; }
.room.back.doors:has(.setup-dock) { --setup: 1; }
.room.back.closed { --dock: 24; }
.back-out { text-decoration: none; cursor: pointer; }
.back-title { grid-row: 2; z-index: 2; display: flex; flex-direction: column; gap: calc(4 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) 0; }
.back-title .cap { font-size: calc(10 * var(--u)); letter-spacing: 0.14em; color: var(--lamp); }
.back-title h1 { font-size: calc(34 * var(--u)); line-height: 1; letter-spacing: -0.02em; text-shadow: 2px -1.5px 0 var(--lamp); }
.back-title p { font-size: calc(13 * var(--u)); line-height: 1.35; color: #C9CCD8; }
.back-title p.more { color: var(--day); }
.room .seat-hand { transition: opacity 0.5s ease, filter 0.5s ease; }
.room .seat-hand.ghost { opacity: 0.13; filter: grayscale(1) brightness(1.6); }
.room .back-tag { white-space: nowrap; font-size: calc(10 * var(--u)); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: calc(5 * var(--u)) calc(9 * var(--u)); border-radius: 999px; transition: background 0.4s, color 0.4s; }
.back-tag.empty { color: var(--muted); border: 1.5px dashed rgba(169, 165, 200, 0.55); background: rgba(15, 13, 42, 0.6); }
.back-tag.here { color: var(--ink); background: var(--day); border: 2px solid var(--ink); }
.back-centre { position: absolute; z-index: 2; inset-inline-start: 50%; inset-block-start: calc(var(--top) + 446 * var(--s)); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.back-centre form { margin: 0; }
.back-centre .btn.sit { block-size: calc(56 * var(--s)); padding-inline: calc(28 * var(--s)); border-radius: calc(16 * var(--s)); font-size: calc(21 * var(--s)); white-space: nowrap; box-shadow: 4px 4px 0 var(--day); text-decoration: none; }
.back-ring { display: block; inline-size: calc(132 * var(--s)); block-size: auto; overflow: visible; }
.back-ring .ring-track, .board-ring .ring-track { fill: rgba(15, 13, 42, 0.94); stroke: rgba(246, 247, 251, 0.18); stroke-width: 7; }
.back-ring .ring-arc, .board-ring .ring-arc { fill: none; stroke: var(--lamp); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray 1s linear; }
.back-ring .ring-time, .board-ring .ring-time { font-family: var(--display); font-weight: 900; font-size: 30px; fill: var(--day); text-anchor: middle; }
.back-ring .ring-sub, .board-ring .ring-sub { font-family: var(--text); font-weight: 600; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; fill: var(--muted); text-anchor: middle; }
.back-dock { grid-row: 4; z-index: 2; align-self: end; display: flex; gap: calc(10 * var(--u)); padding: calc(26 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(15, 13, 42, 0.88) calc(22 * var(--u))); }
.wait-dock { align-items: center; }
.wait-who { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: calc(3 * var(--u)); }
.wait-who b { font-size: calc(21 * var(--u)); line-height: 1.05; }
.wait-who small { font-size: calc(12 * var(--u)); line-height: 1.3; color: #C9CCD8; }
.wait-dock form { margin: 0; }
.wait-dock .btn { block-size: calc(50 * var(--u)); padding-inline: calc(20 * var(--u)); border-radius: calc(14 * var(--u)); font-size: calc(17 * var(--u)); }
.doors-dock { flex-direction: column; gap: calc(8 * var(--u)); padding-inline: calc(12 * var(--u)); padding-block-start: calc(30 * var(--u)); }
.doors-dock .cap { padding-inline-start: calc(4 * var(--u)); font-size: calc(10 * var(--u)); letter-spacing: 0.14em; color: #C9CCD8; }
.back-notice { margin: 0; padding: calc(8 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); background: rgba(255, 180, 84, 0.16); border: 1px solid var(--lamp); color: var(--lamp); font-size: calc(12 * var(--u)); }
.back-tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
.back-tiles li { display: flex; }
/* An odd last tile takes the row, so the grid ends square. */
.back-tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.back-tile { flex: 1; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: calc(7 * var(--u)); padding: calc(10 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u)); border-radius: calc(14 * var(--u)); border: 1.5px solid rgba(169, 165, 200, 0.35); background: rgba(15, 13, 42, 0.8); backdrop-filter: blur(6px); }
.back-tile b { font-size: calc(15 * var(--u)); line-height: 1.1; }
.seat-buttons { display: flex; gap: calc(5 * var(--u)); }
.setup-dock { margin: 0; }
.setup-row { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.setup-row legend { padding: 0; margin-block-end: calc(5 * var(--u)); }
.setup-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(5 * var(--u)); }
.setup-choice { position: relative; display: flex; }
.setup-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.setup-choice span { flex: 1; text-align: center; padding: calc(7 * var(--u)) calc(4 * var(--u)); border-radius: calc(9 * var(--u)); border: 1.5px solid rgba(246, 247, 251, 0.35); background: rgba(15, 13, 42, 0.8); color: var(--day); font-size: calc(12.5 * var(--u)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-choice input:checked + span { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.setup-choice input:focus-visible + span { outline: 3px solid var(--lamp); outline-offset: 2px; }
/* A seat count to play with friends: a tile that is a link. */
.back-tile.friends { justify-content: space-between; text-decoration: none; color: var(--day); border-color: rgba(255, 180, 84, 0.6); }
.back-tile.friends .cap { color: var(--lamp); font-size: calc(10 * var(--u)); letter-spacing: 0.12em; }
/* Challenges standing today: a line and its buttons; two show, the rest scroll. */
.back-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: calc(6 * var(--u)); max-block-size: calc(110 * var(--u)); overflow-y: auto; }
.back-row { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); border-radius: calc(14 * var(--u)); border: 1.5px solid var(--lamp); background: rgba(15, 13, 42, 0.85); }
.row-line { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.row-line b { font-size: calc(14 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-line small { font-size: calc(11 * var(--u)); color: #C9CCD8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; gap: calc(6 * var(--u)); flex: none; }
.row-actions form { margin: 0; }
.row-actions .btn { block-size: calc(36 * var(--u)); padding-inline: calc(12 * var(--u)); border-radius: calc(10 * var(--u)); font-size: calc(14 * var(--u)); box-shadow: none; }
.wait-buttons { display: flex; gap: calc(8 * var(--u)); flex: none; }
/* A private link's wait: the link takes the dock's width, its buttons the row under it. */
.room.back.wait:has(.wait-link) { --dock: 170; }
.room.back.wait:has(.wait-link) .wait-dock { flex-direction: column; align-items: stretch; gap: calc(10 * var(--u)); }
.room.back.wait:has(.wait-link) .wait-buttons > form { flex: 1; }
.room.back.wait:has(.wait-link) .wait-buttons .btn { inline-size: 100%; }
.wait-buttons form { margin: 0; }
.wait-link { display: flex; flex-direction: column; gap: 4px; }
.wait-link input { inline-size: 100%; block-size: calc(32 * var(--u)); padding-inline: calc(8 * var(--u)); border-radius: calc(8 * var(--u)); border: 1px solid rgba(201, 204, 216, 0.4); background: rgba(15, 13, 42, 0.8); color: var(--day); font-size: calc(12 * var(--u)); }
.seat-buttons button { inline-size: calc(32 * var(--u)); block-size: calc(32 * var(--u)); padding: 0; border-radius: calc(9 * var(--u)); border: 1.5px solid rgba(246, 247, 251, 0.5); background: transparent; color: var(--day); font-family: var(--display); font-weight: 900; font-size: calc(14 * var(--u)); cursor: pointer; }
.seat-buttons button:hover, .seat-buttons button:focus-visible { background: var(--ice); border-color: var(--ice); color: var(--ink); outline: none; }
.seat-buttons button:active { transform: translateY(1px); }
@media (min-width: 1100px), (min-width: 720px) and (min-height: 540px) {
  .back-title { padding: 0; gap: 6px; }
  .back-title .cap { font-size: 10px; }
  .back-title h1 { font-size: 40px; }
  .back-title p { font-size: 14px; }
  .room.back .wide-brand .pill { font-size: 10px; }
  .back-dock { padding: 0; background: none; flex-direction: column; }
  .wait-dock { align-items: stretch; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid rgba(201, 204, 216, 0.22); background: rgba(21, 19, 43, 0.72); backdrop-filter: blur(10px); }
  .wait-who b { font-size: 24px; }
  .wait-who small { font-size: 13px; }
  .doors-dock { gap: 10px; }
  .doors-dock .cap { padding: 0; font-size: 10px; }
  .back-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .back-tiles li:last-child:nth-child(odd) { grid-column: auto; }
  .wait-dock .btn { inline-size: 100%; }
  .back-tile { padding: 14px 16px; gap: 10px; border-radius: 18px; background: rgba(21, 19, 43, 0.72); }
  .back-tile b { font-size: 18px; }
  .seat-buttons { gap: 6px; }
  .seat-buttons button { inline-size: 40px; block-size: 40px; font-size: 16px; border-radius: 10px; }
  .setup-row legend { margin-block-end: 6px; }
  .setup-choices { gap: 6px; }
  .setup-choice span { padding: 9px 6px; border-radius: 10px; font-size: 13.5px; background: rgba(21, 19, 43, 0.72); }
  .back-notice { font-size: 13px; padding: 10px 12px; }
  .back-rows { max-block-size: none; }
  .row-line b { font-size: 15px; }
  .row-line small { font-size: 12px; }
  .row-actions .btn { block-size: 36px; font-size: 14px; padding-inline: 12px; }
  .wait-buttons { flex-direction: column; }
  .wait-buttons .btn { inline-size: 100%; }
  .wait-link input { block-size: 36px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .room .seat-hand, .back-ring .ring-arc, .room .back-tag { transition: none; } }
/* --- a back-room game at the table (6.4): its state on the bowl, inside the round's clock;
   the seat whose turn it is lit on its tag. */
/* The ring sits inside the bowl; at four and five seats the side seats' tags drop below
   their hands to leave it room. */
.room[data-table="live"][data-seats="4"] .seat-at.left, .room[data-table="live"][data-seats="4"] .seat-at.right,
.room[data-table="live"][data-seats="5"] .seat-at.left, .room[data-table="live"][data-seats="5"] .seat-at.right { translate: 0 calc(86 * var(--s)); }
.live-board { position: absolute; z-index: 1; inset-inline-start: 50%; inset-block-start: calc(var(--top) + 446 * var(--s)); transform: translate(-50%, -50%); pointer-events: none; }
.board-ring { display: block; inline-size: calc(80 * var(--s)); block-size: auto; overflow: visible; }
.room[data-tall="true"] .live-board { display: none; }
.room .seat-at.turn { border-color: var(--lamp); box-shadow: 0 0 0 2px var(--lamp); }
.room .round-pill .clock { margin-inline-start: 0.35em; font-weight: 800; color: var(--lamp); font-variant-numeric: tabular-nums; }

/* --- a challenge from a profile (6.6): one tap per game, on the record if ticked --- */
.challenge-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px 16px; box-shadow: 5px 5px 0 var(--lamp); }
.challenge-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.challenge-head b { font-size: 20px; }
.record-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3A3659; }
.challenge-games { display: flex; flex-wrap: wrap; gap: 8px; }
.challenge-games .btn { flex: 1 1 140px; block-size: 44px; font-size: 15px; background: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); backdrop-filter: none; }

/* Sent by a link (6.6): the landing says so; the room points back once you have moved. */
.land-invite { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 180, 84, 0.16); border: 1px solid var(--lamp); color: var(--lamp); font-size: 14px; font-weight: 600; }
.room .caption.next-link { align-self: center; padding: calc(5 * var(--u)) calc(12 * var(--u)); border: 1.5px solid var(--lamp); border-radius: 999px; background: rgba(15, 13, 42, 0.85); color: var(--lamp); font-size: calc(10 * var(--u)); text-decoration: none; letter-spacing: 0.12em; text-shadow: none; }
.room .caption.next-link:hover { text-decoration: underline; }

/* The tablet: one rail (last, so it wins over each page's wide rules). The room is a grid of the table's column and the rail; the rail's
   two halves stack in it, the scene and the moves stay placed over the column. */
@media (min-width: 720px) and (max-width: 1099.98px) and (min-height: 540px) {
  .room { --rail: clamp(248px, 34vw, 340px); --gap: 16px; --colw: calc(100vw - var(--rail) - 3 * var(--gap)); --s0: min(calc(100dvh / 844), calc(var(--colw) / 390)); display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); grid-template-rows: auto minmax(0, 1fr); column-gap: var(--gap); padding-inline-end: var(--gap); box-sizing: border-box; block-size: 100dvh; background-position: 0 0, calc(var(--gap) + var(--colw) / 2 - 1080 * var(--s0)) 100%; }
  .room-head, .room-side { position: relative; inset: auto; grid-column: 2; inline-size: auto; min-block-size: 0; }
  .room-head { grid-row: 1; padding-block: 24px 0; gap: 12px; overflow: visible; }
  .room-side { grid-row: 2; padding-block: 12px 24px; gap: 12px; }
  .wide-brand { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
  /* One rail is narrow for the stacked logo: the one-line one, as on a phone, a size up. */
  .wide-brand .lockup.stacked { display: none; }
  .wide-brand .wordmark { display: inline-flex; gap: 8px; }
  .wide-brand .wordmark .mark { inline-size: 26px; }
  .wide-brand .wordmark .wm { font-size: 22px; }
  .room-keys { display: none; }
  /* Placed against the whole room, never a grid row: the reveal's grid has a third row, and a band
     inside it put the hands 130 px below the table drawn against the room's bottom. */
  .room-band, .room-bottom { grid-row: auto; inset-inline-start: calc(var(--gap) + (var(--colw) - 390 * var(--s0)) / 2); margin-inline-start: 0; }
  .room:has(.overlay:target) .room-head, .room:has(.overlay:target) .room-side { visibility: hidden; }
  .room:has(.overlay:target) .room-side { display: flex; }
  .overlay:target { inset: 24px var(--gap) auto auto; }
  /* The day's table is drawn wider than the night's (574 of the scene's 390 units): on a tablet
     the column is all it has, so the lit room takes the scale that keeps the table inside it,
     its rim just reaching the gaps. */
  .room.reveal { --s0: min(calc(100dvh / 844), calc(var(--colw) / 540)); background-position: calc(var(--gap) + var(--colw) / 2 - 1080 * var(--s0)) 100%; }
  .overlay .sheet-panel { max-block-size: calc(100dvh - 48px); overflow-y: auto; }
}

/* --- a phone on its side ------------------------------------------------------------------
   Under 540 px tall the table does not fit: a touch screen held in landscape is asked to turn
   upright (a desktop window that short keeps the phone layout). */
.upright { display: none; }
@media (orientation: landscape) and (max-height: 539.98px) and (pointer: coarse) {
  /* Only where a table is: every other page reads fine on its side. */
  body:has(.room) .upright { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--night); color: var(--day); }
  .upright-mark { inline-size: 56px; block-size: auto; animation: upright 2.4s ease-in-out infinite; }
  .upright-line { margin: 0; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; text-align: center; text-shadow: 2px -1.5px 0 var(--lamp); }
  body:has(.room) { overflow: hidden; }
}
@keyframes upright { 0%, 20% { transform: rotate(-90deg); } 55%, 100% { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .upright-mark { animation: none; } }
/* The Club's dials over time (on your own record). */
.over-time-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.over-time-card .card-row .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); }
.over-time-card .card-row .cap.fine { color: #5B5A74; }
.over-time-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 32px; align-items: center; gap: 10px; }
.over-time-row .cap { font-size: 9px; letter-spacing: 0.1em; color: #5B5A74; }
.over-time-line { inline-size: 100%; block-size: 40px; display: block; background: linear-gradient(#ECEAF8, #ECEAF8) 0 50% / 100% 1px no-repeat; }
.over-time-row b { font-size: 16px; text-align: end; }
/* The Club's head-to-head, under the rival line. */
.h2h { display: flex; flex-direction: column; gap: 6px; margin-block-start: 6px; padding-block-start: 8px; border-block-start: 1px dashed rgba(201, 204, 216, 0.3); }
.h2h p, .h2h ul { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: #E3E5EE; }
.h2h-families { display: flex; flex-direction: column; gap: 2px; }
.h2h-recent { display: flex; flex-direction: column; gap: 2px; }
.h2h-recent li { display: flex; justify-content: space-between; gap: 10px; }
.you-and .h2h-recent b { font-size: 13px; font-variant-numeric: tabular-nums; }
/* Touch targets: on a touch screen every small control gets an invisible hit area of at least
   44 px (Apple's minimum, and WCAG 2.5.5), its look and the layout unchanged. */
@media (pointer: coarse) {
  .talk-link, .calls-link, .vote-btn, .pill.small, .swatch, .season-tabs a, .board-row .who, .back-out,
  .record-head > a.cap, .ledger-top > a.cap, .crowd-head .back, .follow-row .pill, .theme-choice { position: relative; }
  .talk-link::after, .calls-link::after, .pill.small::after, .season-tabs a::after, .board-row .who::after, .back-out::after,
  .record-head > a.cap::after, .ledger-top > a.cap::after, .crowd-head .back::after, .follow-row .pill::after,
  .season-you a::after, .season-fine a::after, .people-text b a::after { content: ""; position: absolute; inset: -12px -4px; }
  .people-text b a { position: relative; }
  .people-private .btn { min-block-size: 44px; }
  .season-you a, .season-fine a { position: relative; }
  .vote-btn::after, .swatch::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
}
/* A record before its tenth game: one card, not a page of dashes. */
.forming-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.forming-card .cap { font-size: 10px; letter-spacing: 0.12em; color: var(--ink); }
.forming-card .cap.fine { color: #5B5A74; }
.forming-card p { margin: 0; font-size: 14px; line-height: 1.4; color: #3A3659; }
.forming-bar { block-size: 10px; border-radius: 999px; background: #ECEAF8; border: 1.5px solid var(--ink); overflow: hidden; }
.forming-bar span { display: block; block-size: 100%; background: var(--lamp); }

/* --- daylight for what happened (season, people, ledger) ----------------------------------
   You play in the dark; you read what happened in daylight. */
body.day .season-page, body.day .people-page, body.day .ledger-page { color: var(--ink); }
body.day .season-head p, body.day .people-head p, body.day .people-text small, body.day .people-section-head h2,
body.day .ledger-top .cap, body.day .ledger-head .cap, body.day .ledger-day h2, body.day .ledger-mine, body.day .ledger-empty { color: #3A3659; }
body.day .season-strip .acts, body.day .season-strip .legend, body.day .season-fine, body.day .people-section-head .fine,
body.day .board-row .who small, body.day .ledger-sheet, body.day .ledger-foot { color: var(--dim); }
body.day .season-head .lamp, body.day .season-fine a, body.day .ledger-pages a, body.day .board-row .rank { color: #8A5300; }
body.day .ledger-points { color: #B86E00; }
body.day .season-facts dt { color: #3A3659; }
body.day .ledger-foot, body.day .ledger-foot.cap.fine { color: var(--dim); }
body.day .dev-clock .pill { border-color: var(--lamp); color: var(--lamp); }
body.day .ledger-top .cap:hover { color: #B86E00; }
body.day .season-strip .day { background: #E4E2F0; }
body.day .season-strip .day.shook { background: #FFB04A; }
body.day .season-strip .day.broke { background: #F07FA0; }
body.day .season-strip .day.crowd { background: #9C8CF0; }
body.day .season-strip .day.event { background: #7FD8F2; }
body.day .season-strip .day.out, body.day .season-strip .day.none { background: transparent; box-shadow: inset 0 0 0 1px #A9A5C8; }
body.day .season-strip .day.ahead { background: #EEEDF6; }
body.day .season-strip .day.fin { box-shadow: inset 0 0 0 1.5px #E0577F; }
body.day .season-strip .day.today { box-shadow: 0 0 0 2px var(--ink); }
body.day .season-strip .key.out i { box-shadow: inset 0 0 0 1px #A9A5C8; }
body.day .season-tabs .tabs { background: #E4E2F0; }
body.day .season-tabs .tabs a { color: #3A3659; }
body.day .season-tabs .tabs a.on { background: var(--ink); color: var(--day); }
body.day .board-row, body.day .people-row, body.day .ledger-row { background: #FFFFFF; border: 1.5px solid #D9DCE6; }
body.day .board-row.you { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--lamp); }
body.day .board-row .who, body.day .people-text b a, body.day .ledger-sheet b { color: var(--ink); }
body.day .board-more, body.day .board-empty { background: #ECEAF8; color: #3A3659; }
body.day .people-empty { border-color: #A9A5C8; color: #3A3659; }
body.day .people-notice { background: #FFF1DB; color: #7A4B00; border-color: #E8A23A; }
body.day .people-text .model, body.day .ledger-others .model { color: #1F6E8C; }
body.day .ledger-row.off { border-style: dashed; }
