/* Spar a Call: the on-air booth. Fresh sheet (RULES.md). One dark booth, one red sign. */

@font-face { font-family: "Anybody"; src: url(/fonts/anybody.woff2) format("woff2"); font-weight: 700 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Hind"; src: url(/fonts/hind-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind"; src: url(/fonts/hind-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ground: #17121F;      /* the booth walls */
  --panel: #201929;       /* desk surface */
  --panel-2: #2A2236;     /* a pressed key */
  --line: #3A3049;        /* hairline rules (not text) */
  --edge: #7B6F91;        /* input and key borders, 3:1 on the ground */
  --ink: #F4F1FA;         /* text */
  --soft: #BDB3CF;        /* secondary text, 9.2:1 */
  --red: #FF3B3B;         /* the ON AIR sign, the ring button, hang-up */
  --red-text: #FF6B6B;    /* red words on the ground, 6.6:1 */
  --unlit: #2B1720;       /* the sign's glass when off */
  --unlit-ink: #6E3A44;
  --paper: #F4F1FA;       /* receipt and cue-card stock */
  --paper-2: #E5DFEE;
  --paper-ink: #17121F;
  --paper-soft: #5B516B;
  --paper-red: #B3001B;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --body: "Hind", "Helvetica Neue", Arial, sans-serif;
  --r: 4px;
  --gut: 16px;
  --wave: #F4F1FA;
  --wave-cut: #FF3B3B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); font-synthesis: none; -webkit-font-smoothing: antialiased; }
body.in-call { overflow: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 75%; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-text); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 99; border-radius: var(--r); }
.skip:focus { top: 8px; }
strong, b { font-weight: 600; }

/* ---------------------------------------------------------------- the ON AIR sign */
.sign { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--unlit); color: var(--unlit-ink); border: 2px solid #3d2230; font: 800 0.8125rem/1 var(--display); font-stretch: 150%; padding: 0.42em 0.6em 0.3em; white-space: nowrap; transition: background 0.2s, color 0.2s, box-shadow 0.3s; }
.sign::before { content: "ON AIR"; } /* drawn by CSS: a sign, not text to read */
.stage.live .sign-call { background: var(--red); color: var(--ink); border-color: #ff7a7a; box-shadow: 0 0 0 1px rgba(255, 140, 140, 0.6) inset, 0 0 22px rgba(255, 59, 59, 0.55), 0 0 70px rgba(255, 59, 59, 0.28); text-shadow: 0 0 10px rgba(255, 255, 255, 0.55); animation: flick 0.5s steps(1) both; }
@keyframes flick { 0% { opacity: 0.35; } 20% { opacity: 1; } 32% { opacity: 0.5; } 44%, 100% { opacity: 1; } }

/* ---------------------------------------------------------------- header and footer */
.top { display: flex; align-items: center; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 12px var(--gut); }
.word { font: 800 1.375rem/1 var(--display); font-stretch: 82%; color: var(--ink); text-decoration: none; margin-right: auto; padding: 8px 0; }
.top-go { font-weight: 600; font-size: 1rem; padding: 10px 0; }

.foot { border-top: 1px solid var(--line); margin-top: 96px; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 48px var(--gut) 64px; display: grid; gap: 32px; }
.foot-word { font: 800 1.75rem/1 var(--display); font-stretch: 82%; margin-bottom: 12px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-nav a { display: inline-block; padding: 6px 0; font-weight: 600; }
.foot-text { display: grid; gap: 12px; color: var(--soft); font-size: 0.9375rem; max-width: 68ch; }
.foot-text a { color: var(--ink); }
.small-foot { font-size: 0.875rem; }
.pub { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- the booth (first screen) */
.booth { max-width: 1440px; margin: 0 auto; padding: 4px var(--gut) 0; display: grid; grid-template-areas: "copy" "board" "lede"; gap: 14px; }
.booth-copy { grid-area: copy; display: grid; gap: 8px; }
.booth h1 { font-size: clamp(1.75rem, 7.6vw, 2.25rem); font-stretch: 72%; }
.stakes { color: var(--soft); font-size: 1rem; line-height: 1.4; }
.booth .lede { grid-area: lede; color: var(--soft); max-width: 60ch; }

.board { grid-area: board; display: grid; gap: 12px; }
.lines { border: 0; margin: 0; padding: 0; min-width: 0; }
.lines legend { font: 600 0.9375rem/1 var(--body); color: var(--soft); padding: 0 0 8px; }
.lines ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ln { position: relative; border-bottom: 1px solid var(--line); }
.ln.more { display: none; }
.board.open .ln.more { display: block; }
.ln input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ln label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "lamp who diff" ". temper temper"; align-items: center; column-gap: 10px; row-gap: 1px; padding: 8px 10px 8px 8px; min-height: 56px; cursor: pointer; border-radius: var(--r); }
.ln label:hover { background: var(--panel); }
.ln input:checked + label { background: var(--panel-2); }
.ln input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: -2px; }
.lamp { grid-area: lamp; width: 12px; height: 12px; border-radius: 50%; background: #3b2a35; box-shadow: 0 0 0 2px #241b2c; justify-self: center; transition: background 0.25s, box-shadow 0.25s; }
.ln.hold .lamp { animation: hold 1.2s steps(2, jump-none) 2; }
@keyframes hold { 0% { background: #3b2a35; } 100% { background: #a8323d; } }
.ln input:checked + label .lamp { background: var(--red); box-shadow: 0 0 0 2px #5a1f28, 0 0 12px rgba(255, 59, 59, 0.8); }
.ln-who { grid-area: who; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-who b { font: 800 1.25rem/1.1 var(--display); font-stretch: 88%; }
.ln-trade { color: var(--soft); font-size: 1rem; }
.ln-temper { grid-area: temper; color: var(--soft); font-size: 0.9375rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-tag { color: var(--ink); font-weight: 600; }
.ln-diff { grid-area: diff; }
.pips { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.pips i { width: 4px; background: var(--line); border-radius: 1px; }
.pips i:nth-child(1) { height: 6px; } .pips i:nth-child(2) { height: 8px; } .pips i:nth-child(3) { height: 10px; } .pips i:nth-child(4) { height: 12px; } .pips i:nth-child(5) { height: 14px; }
.pips i.on { background: var(--ink); }

.board-more { display: flex; gap: 20px; flex-wrap: wrap; }
.txt { background: none; border: 0; padding: 10px 0; font-weight: 600; font-size: 1rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--ink); min-height: 44px; }
.txt:hover { color: var(--red-text); }

/* The ringing button */
.go { display: grid; gap: 8px; }
.ring { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px 24px; border: 0; border-radius: var(--r); background: var(--red); color: var(--paper-ink); font: 800 1.375rem/1 var(--display); font-stretch: 100%; text-decoration: none; box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.5); }
.ring:hover { color: var(--paper-ink); background: #ff5252; }
.ring.small { width: auto; min-height: 52px; font-size: 1.125rem; }
@media (prefers-reduced-motion: no-preference) {
  .board .ring { animation: ring 3.6s ease-in-out 1.2s infinite; }
}
/* The sign warms up while you aim at the ring button. */
body:has(.board .ring:hover, .board .ring:focus-visible) .sign-top { background: #5a1c26; color: #c9606b; border-color: #7a2a35; }
@keyframes ring { 0%, 64%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } 66% { transform: rotate(-1.2deg); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.55); } 68% { transform: rotate(1.2deg); } 70% { transform: rotate(-1.2deg); } 72% { transform: rotate(1.2deg); } 74% { transform: rotate(-0.6deg); } 76% { transform: none; } 88% { box-shadow: 0 0 0 14px rgba(255, 59, 59, 0); } }
.go-who { color: var(--soft); font-size: 0.9375rem; }
.fine { color: var(--soft); font-size: 0.875rem; line-height: 1.45; }

.tune { border: 0; border-top: 1px solid var(--line); margin: 8px 0 0; padding: 16px 0 0; display: grid; gap: 16px; min-width: 0; }
.tune legend { font: 800 1.25rem/1 var(--display); font-stretch: 80%; padding: 0 12px 0 0; }
.tune-row { display: grid; gap: 6px; }
.tune-l { font-weight: 600; font-size: 0.9375rem; }
.tune-note { color: var(--soft); font-size: 0.9375rem; min-height: 1.4em; }
.keys5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kk { position: relative; }
.kk input { position: absolute; opacity: 0; }
.kk span { display: grid; place-items: center; min-height: 52px; padding: 6px 2px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); text-align: center; line-height: 1.1; cursor: pointer; }
.kk b { font: 800 1.125rem/1 var(--display); font-stretch: 100%; }
.kk small { font-size: 0.75rem; color: var(--soft); }
.kk input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.kk input:checked + span small { color: var(--panel-2); }
.kk input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tune-from { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
input[type=text], input[type=search], select, .c-type input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); color: var(--ink); font-size: 1rem; }
input::placeholder { color: #9a8fae; }
.chk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--red); }
.lawful, .ai-status { color: var(--soft); font-size: 0.875rem; line-height: 1.45; }
.ai-status[data-state=open] { color: var(--ink); }

/* ---------------------------------------------------------------- the call screen */
.stage { position: fixed; inset: 0; z-index: 50; background: var(--ground); overflow-y: auto; overscroll-behavior: contain; }
.stage[hidden] { display: none; }
.console { height: 100vh; height: 100dvh; min-height: 560px; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(110px, 1fr) auto auto auto auto auto; grid-template-areas: "top" "who" "voice" "caps" "note" "drill" "type" "keys" "set"; gap: 10px; padding: max(10px, env(safe-area-inset-top)) var(--gut) max(10px, env(safe-area-inset-bottom)); }
.console[hidden] { display: none; }
.c-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sign-call { font-size: 1.375rem; padding: 0.4em 0.6em 0.28em; }
.c-clock { display: grid; justify-items: end; line-height: 1.1; }
.c-timer { font: 800 2rem/1 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums lining-nums; }
.c-state { color: var(--soft); font-size: 0.875rem; }
.stage.ringing .c-state { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .stage.ringing .c-state { animation: blinkt 1s steps(2, jump-none) infinite; } }
@keyframes blinkt { 0% { opacity: 1; } 100% { opacity: 0.45; } }
.c-who { grid-area: who; display: grid; gap: 2px; }
.c-who h2 { font-size: 2.25rem; font-stretch: 80%; }
.c-who p { color: var(--soft); font-size: 0.9375rem; line-height: 1.35; }
.c-who .c-round { color: var(--ink); font-weight: 600; }
.c-voice { grid-area: voice; display: grid; gap: 10px; }
.wave { display: block; width: 100%; height: 72px; }

.fuse { --p: 100%; display: grid; gap: 4px; }
.fuse-l { font-weight: 600; font-size: 0.875rem; }
.fuse.low .fuse-l { color: var(--red-text); }
.fuse-track { position: relative; height: 16px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px) left center / 100% 2px no-repeat; }
.fuse-cord { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: var(--p); background: repeating-linear-gradient(135deg, #d9cfe6 0 4px, #a99cbc 4px 8px); border-radius: 2px; transition: width 0.6s cubic-bezier(.3, .7, .4, 1); }
.spark { position: absolute; top: 50%; left: var(--p); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, #ffd2a8 40%, rgba(255, 59, 59, 0.9) 60%, rgba(255, 59, 59, 0) 72%); transition: left 0.6s cubic-bezier(.3, .7, .4, 1); }
.stage:not(.live) .spark { opacity: 0.3; }
.fuse.low .fuse-cord { background: repeating-linear-gradient(135deg, var(--red) 0 4px, #c42a33 4px 8px); }
@media (prefers-reduced-motion: no-preference) {
  .stage.live .spark { animation: spark 0.24s steps(2, jump-none) infinite alternate; }
}
@keyframes spark { 0% { transform: scale(0.85); } 100% { transform: scale(1.2); } }

.share { display: grid; gap: 4px; }
.share-l { font-size: 0.875rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.share-bar { position: relative; height: 8px; background: var(--line); border-radius: 2px; }
.share-you { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--ink); border-radius: 2px; transition: width 0.4s; }
.share.over .share-you { background: var(--red); }
.share-target { position: absolute; top: -4px; bottom: -4px; left: var(--t, 35%); width: 2px; background: var(--soft); }

.c-caps { grid-area: caps; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.caps { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px); mask-image: linear-gradient(180deg, transparent 0, #000 22px); list-style: none; margin: 0; padding: 14px 0 10px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.caps li { display: block; }
.caps li b { display: block; font-size: 0.8125rem; color: var(--soft); font-weight: 600; }
.caps .them .t { font-size: 1.25rem; line-height: 1.35; }
.caps .you { padding-left: 14px; border-left: 2px solid var(--line); }
.caps .you .t { font-size: 1.0625rem; color: var(--soft); }
.caps .you.pitch { border-left-color: var(--red); }
.caps .you.pitch b::after { content: ", a pitch"; color: var(--red-text); }
.caps .pending .t, .caps .thinking .t { color: var(--soft); }
.caps .cut .t { color: var(--soft); }
.cut-tag { font-style: normal; font-size: 0.8125rem; color: var(--red-text); font-weight: 600; }
.caps .bell { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 0.8125rem; font-weight: 600; }
.caps .bell::before, .caps .bell::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (prefers-reduced-motion: no-preference) { .caps .saying .t::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--soft); animation: blinkt 0.8s steps(2, jump-none) infinite; } }

.c-note { grid-area: note; color: var(--soft); font-size: 0.875rem; }
.c-note:empty { display: none; }
.c-drill { grid-area: drill; font-weight: 600; font-size: 0.9375rem; border-left: 3px solid var(--red); padding-left: 10px; }
.c-drill[hidden] { display: none; }
.c-type { grid-area: type; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.c-type button { min-width: 76px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel-2); font-weight: 600; }
.c-type button:disabled, .c-type input:disabled { opacity: 0.5; }
.c-keys { grid-area: keys; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 40%); gap: 8px; }
.key { min-height: 64px; border-radius: var(--r); border: 1px solid var(--edge); background: var(--panel-2); color: var(--ink); text-align: left; padding: 8px 12px; touch-action: none; user-select: none; -webkit-user-select: none; }
.mic { display: grid; grid-template-columns: 14px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.mic-dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: #4a3d5c; transition: background 0.15s, box-shadow 0.15s; }
.mic-l { font: 800 1.125rem/1.1 var(--display); font-stretch: 95%; }
.mic-state { font-size: 0.8125rem; color: var(--soft); line-height: 1.2; }
.mic[data-state=listening] .mic-dot { background: var(--ink); }
.mic.hearing, .mic.held { border-color: var(--ink); background: #3a2f49; }
.mic.hearing .mic-dot, .mic.held .mic-dot { background: var(--red); box-shadow: 0 0 10px rgba(255, 59, 59, 0.9); }
.mic[data-state=denied] .mic-dot, .mic[data-state=off] .mic-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--soft); }
.hang { background: var(--red); border-color: var(--red); color: var(--paper-ink); font: 800 1.25rem/1 var(--display); font-stretch: 100%; text-align: center; }
.hang:hover { background: #ff5252; }
.hang:disabled { opacity: 0.45; }
.c-set { grid-area: set; display: flex; flex-wrap: wrap; column-gap: 16px; color: var(--soft); }
.c-set .chk { min-height: 36px; font-size: 0.875rem; gap: 7px; }
.c-set .chk input { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- the receipt */
.printer { max-width: 440px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) var(--gut) max(32px, env(safe-area-inset-bottom)); }
.printer[hidden] { display: none; }
.slot { height: 12px; margin: 0 -8px; border-radius: var(--r); background: #0d0a12; box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.7), 0 1px 0 var(--line); position: relative; z-index: 2; }
.paper-wrap { overflow: hidden; margin-top: -6px; padding-bottom: 6px; }
.paper, .receipt { background: var(--paper); color: var(--paper-ink); font-size: 0.9375rem; line-height: 1.45; font-variant-numeric: tabular-nums lining-nums; }
.receipt { padding: 22px 18px 34px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px)); }
.receipt:focus { outline: none; }
.printing .receipt { animation: feed 1.5s steps(15) both; }
@keyframes feed { from { transform: translateY(-100%); } to { transform: none; } }
.paper a { color: var(--paper-ink); }
.paper :focus-visible, .receipt :focus-visible, .cue :focus-visible { outline-color: var(--paper-ink); }
.r-head { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed var(--paper-soft); color: var(--paper-soft); }
.r-brand { font: 800 1.625rem/1.1 var(--display); font-stretch: 82%; color: var(--paper-ink); }
.r-sec { padding: 12px 0; border-bottom: 1px dashed var(--paper-soft); display: grid; gap: 4px; }
.r-call p:first-child { font-size: 1rem; }
.r-result { font: 800 1.375rem/1.15 var(--display); font-stretch: 85%; text-align: center; padding: 14px 0; border-bottom: 1px dashed var(--paper-soft); text-wrap: balance; }
.r-items { list-style: none; margin: 0; padding: 0; }
.r-item { padding: 12px 0; border-bottom: 1px dashed var(--paper-soft); display: grid; gap: 6px; }
.r-row { display: flex; align-items: baseline; gap: 6px; }
.r-name { font-weight: 600; }
.r-dots { flex: 1; border-bottom: 2px dotted var(--paper-soft); transform: translateY(-4px); min-width: 12px; }
.r-mark { font-weight: 600; white-space: nowrap; }
.r-mark.work { color: var(--paper-red); }
.r-mark.close, .r-mark.none { color: var(--paper-soft); }
.r-said span, .r-better span { font-weight: 600; }
.r-why { color: var(--paper-soft); }
.r-probs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; color: var(--paper-soft); font-size: 0.875rem; }
.r-probs b { color: var(--paper-ink); }
.r-better { background: var(--paper-2); padding: 8px 10px; border-left: 3px solid var(--paper-ink); }
.r-hear { background: none; border: 0; padding: 4px 0 4px 4px; font-weight: 600; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; color: var(--paper-ink); min-height: 32px; }
.r-rounds { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 1px; font-size: 0.875rem; }
.r-rounds li { display: grid; grid-template-columns: 1fr auto 4.5em; gap: 8px; }
.r-rounds li span:last-child { text-align: right; color: var(--paper-soft); }
.r-total { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 8px; padding: 14px 0; border-bottom: 1px dashed var(--paper-soft); }
.r-total span:first-child { font-weight: 600; font-size: 1.0625rem; }
.r-total b { font: 800 3.25rem/0.9 var(--display); font-stretch: 90%; }
.r-total span:last-child { color: var(--paper-soft); }
.r-small { font-size: 0.8125rem; color: var(--paper-soft); }
.r-tx { border-bottom: 0; }
.r-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.875rem; }
.r-log li { padding: 2px 6px; border-left: 3px solid transparent; }
.r-log li.you { color: var(--paper-soft); }
.r-log li.now { background: #ffe1e1; border-left-color: var(--paper-red); color: var(--paper-ink); }
.r-actions { display: grid; gap: 4px; margin-top: 20px; }
.r-actions .txt { justify-self: start; }

/* ---------------------------------------------------------------- home: below the booth */
.sec { max-width: 1320px; margin: 0 auto; padding: 64px var(--gut) 0; }
.sec + .sec { border-top: 1px solid var(--line); margin-top: 64px; }
.how { margin-top: 64px; border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(2rem, 7vw, 3.5rem); margin-bottom: 20px; }
.sub { color: var(--soft); max-width: 68ch; margin-bottom: 28px; }
.how-cols { display: grid; gap: 16px; max-width: 68ch; }
.how-cols b { color: var(--ink); }
.how-cols p { color: var(--soft); }
.go-link { font-weight: 600; display: inline-block; padding: 10px 0; }
.src { color: var(--soft); font-size: 0.875rem; }

.score { display: grid; gap: 32px; }
.score-copy { display: grid; gap: 16px; align-content: start; }
.score-copy p { color: var(--soft); max-width: 60ch; }
.score h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 0; }
.sample { max-width: 400px; padding: 20px 18px; }
.sample .r-head { font-size: 0.875rem; }
.r-lines { list-style: none; margin: 0; padding: 0; }
.r-lines li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--paper-soft); }
.r-lines b { font: 800 1.25rem/1 var(--display); }
.sample .r-total { grid-template-columns: 1fr auto; }
.r-foot { font-size: 0.8125rem; color: var(--paper-soft); padding-top: 10px; }

.rundown { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rd { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "len body" ". go"; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rd-len { grid-area: len; font: 800 1.125rem/1.3 var(--display); font-stretch: 85%; color: var(--soft); font-variant-numeric: tabular-nums; }
.rd-body { grid-area: body; display: grid; gap: 4px; }
.rd h3 { font-size: 1.5rem; font-stretch: 85%; }
.rd p { color: var(--soft); max-width: 62ch; }
.rd-opp span { display: block; font-size: 0.875rem; }
.rd-go { grid-area: go; justify-self: start; margin-top: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel-2); font-weight: 600; }
.rd-go:hover { border-color: var(--ink); }

.cue-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: 20px; }
.cue { background: var(--paper); color: var(--paper-ink); padding: 18px 18px 16px; border-top: 4px solid var(--red); display: grid; gap: 8px; align-content: start; font-size: 0.9375rem; }
.cue[hidden] { display: none; }
.cue h3 { font-size: 1.375rem; font-stretch: 85%; }
.cue-who, .cue-why { color: var(--paper-soft); font-size: 0.875rem; }
.cue-src { display: block; }
.cue-go { color: var(--paper-red); font-weight: 600; justify-self: start; padding: 6px 0; }
.cue-go:hover { color: var(--paper-ink); }

.data { display: grid; gap: 32px; }
.data-copy { display: grid; gap: 14px; align-content: start; }
.data-copy p:not(.src) { color: var(--soft); max-width: 62ch; }
.data-copy strong { color: var(--ink); }
.data h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 0; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meters li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name num" "lvl lvl"; gap: 4px 12px; font-size: 0.9375rem; }
.m-name { grid-area: name; }
.m-num { grid-area: num; color: var(--soft); font-variant-numeric: tabular-nums; }
.lvl { grid-area: lvl; display: block; height: 10px; background: repeating-linear-gradient(90deg, #2c2338 0 6px, transparent 6px 8px); }
.lvl span { display: block; height: 100%; width: var(--w); background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 8px); }
.chart { width: 100%; height: auto; }
.chart .c-robo { fill: var(--red); } .sw.c-robo { background: var(--red); }
.chart .c-live { fill: var(--soft); } .sw.c-live { background: var(--soft); }
.chart .c-none { fill: #4b3f5e; } .sw.c-none { background: #4b3f5e; }
.chart .ct { fill: var(--ink); font: 600 14px var(--body); }
.chart .cx { fill: var(--soft); font: 600 13px var(--body); }
.legend { color: var(--soft); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.splits { display: grid; gap: 16px; }
.split { display: grid; gap: 6px; }
.sp-l { font-weight: 600; }
.sp-bar { position: relative; height: 14px; background: var(--line); }
.sp-you { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); }
.sp-target { position: absolute; top: -5px; bottom: -5px; left: 30%; width: 2px; background: var(--red); }
.sp-v { color: var(--soft); font-size: 0.9375rem; }
.sp-note { color: var(--soft); font-size: 0.875rem; display: flex; gap: 10px; align-items: center; }
.sp-key { flex: 0 0 2px; height: 18px; background: var(--red); }
.house-cols { display: grid; gap: 16px; margin-bottom: 8px; }
.house-cols p { color: var(--soft); max-width: 62ch; }
.house-cols strong { color: var(--ink); }

/* ---------------------------------------------------------------- inner pages */
.page { max-width: 1320px; margin: 0 auto; padding: 24px var(--gut) 0; }
.page-head { display: grid; gap: 16px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.page h1 { font-size: clamp(2.125rem, 8vw, 4.25rem); font-stretch: 70%; max-width: 20ch; }
.page .lede { color: var(--soft); font-size: 1.125rem; max-width: 64ch; }
.page h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 48px 0 16px; }
.page h3 { font-size: 1.375rem; margin: 0 0 12px; }
.cue h3 { margin: 0; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--soft); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 14px 0; }
.prose strong { color: var(--ink); }
.prose h1 + .lede { margin-top: 16px; }
.dead h1 { font-size: clamp(3rem, 14vw, 7rem); }
.dead .lede { margin: 16px 0 24px; }
.finder { display: grid; gap: 6px; max-width: 560px; margin-bottom: 24px; }
.finder label { font-weight: 600; }
.count { color: var(--soft); font-size: 0.875rem; }
.empty { padding: 16px; border: 1px dashed var(--edge); color: var(--ink); margin-bottom: 24px; }
.empty[hidden] { display: none; }
.srcs { padding-left: 1.2em; }
.card-tool { border: 1px solid var(--line); padding: 20px 16px; display: grid; gap: 16px; }
.card-tool h2 { margin: 0; }
.pickers { display: grid; gap: 12px; }
.pickers label { display: grid; gap: 6px; font-weight: 600; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.readout { font: 800 clamp(1.5rem, 5vw, 2.25rem)/1.1 var(--display); font-stretch: 85%; text-wrap: balance; }
.tool-cols { display: grid; gap: 32px; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
table.data { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; color: var(--soft); font-size: 0.875rem; padding-bottom: 12px; }
table.data th, table.data td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th:first-child { text-align: left; }
table.data thead th { font-weight: 600; color: var(--soft); border-bottom-color: var(--edge); }
table.data tbody th small { display: block; color: var(--soft); font-weight: 400; font-size: 0.8125rem; }
.cards-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard { background: var(--paper); color: var(--paper-ink); padding: 16px; border-top: 4px solid var(--red); display: grid; gap: 8px; align-content: start; font-size: 0.9375rem; }
.pcard h2 { font-size: 1.25rem; margin: 0; font-stretch: 85%; }
.cards-foot { color: var(--soft); font-size: 0.875rem; margin-top: 24px; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 700px) {
  :root { --gut: 32px; }
  .how-cols { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 32px; }
  .house-cols { grid-template-columns: 1fr 1fr; gap: 24px 48px; }
  .pickers { grid-template-columns: 1fr 1fr; }
  .tool-cols { grid-template-columns: 1fr 1fr; }
  .rd { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "len body go"; align-items: start; }
  .rd-go { margin-top: 0; }
  .foot-in { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .ln-temper { white-space: normal; }
}

@media (min-width: 1024px) {
  :root { --gut: 56px; }
  body { font-size: 1.125rem; }
  .sign-top { font-size: 1rem; }
  .home .sign-top { font-size: 2.75rem; padding: 0.3em 0.5em 0.2em; border-width: 3px; }
  .top { padding-top: 20px; padding-bottom: 20px; }
  .booth { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy board" "lede board" ". board"; column-gap: 64px; row-gap: 20px; padding-top: 8px; align-items: start; }
  .booth h1 { font-size: clamp(3rem, 5vw, 5rem); font-stretch: 68%; margin-top: 40px; }
  .stakes { font-size: 1.25rem; margin-top: 12px; }
  .lede { font-size: 1.125rem; }
  .board { gap: 16px; }
  .lines ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; border-top: 0; }
  .ln, .ln.more { display: block; border-top: 1px solid var(--line); border-bottom: 0; }
  .ln:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ln label { min-height: 58px; padding-top: 7px; padding-bottom: 7px; }
  .ln-temper { white-space: nowrap; }
  #more { display: none; }
  .go { grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
  .ring { width: auto; min-width: 340px; font-size: 1.5rem; }
  .tune { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .tune-from, .tune .chk { align-self: end; }
  .score { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 96px; align-items: start; }
  .data { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 96px; align-items: start; }
  .sec { padding-top: 96px; }
  .sec + .sec { margin-top: 96px; }
  .how { margin-top: 112px; }
  .sec h2 { margin-bottom: 28px; }
  .how h2 { font-size: 4.5rem; font-stretch: 65%; }

  /* call screen: voice on the left, captions on the right, keys under the captions */
  .console { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; grid-template-areas: "top top" "who caps" "voice caps" "note caps" "drill type" "set keys"; column-gap: 56px; row-gap: 16px; padding-top: 28px; padding-bottom: 28px; min-height: 640px; }
  .c-voice { align-content: center; gap: 20px; }
  .sign-call { font-size: 2.5rem; border-width: 3px; }
  .c-timer { font-size: 3rem; }
  .c-who h2 { font-size: 4rem; font-stretch: 72%; }
  .c-who p { font-size: 1.0625rem; }
  .wave { height: 170px; }
  .fuse-track { height: 20px; }
  .c-caps { border-top: 0; border-bottom: 0; border-left: 1px solid var(--line); padding-left: 32px; }
  .caps .them .t { font-size: 1.5rem; }
  .caps .you .t { font-size: 1.125rem; }
  .c-note { align-self: end; }
  .c-drill { align-self: center; }
  .c-set { align-self: center; }
  .printer { max-width: 480px; padding-top: 40px; }
}

/* ---------------------------------------------------------------- Reduce Motion: a finished still */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- print (the cue cards) */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .top, .foot, .noprint, .skip { display: none !important; }
  .page { padding: 0; max-width: none; }
  .page-head { border: 0; padding: 0; margin: 0 0 12pt; }
  .page h1 { font-size: 20pt; color: #000; max-width: none; }
  .page .lede, .cards-foot { color: #000; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .pcard { background: #fff; color: #000; border: 1px dashed #000; break-inside: avoid; padding: 10pt; }
  a { color: #000; }
}

/* Text only: no audio anywhere, so no "Hear it" buttons and a quiet mic key. */
.textonly .r-hear { display: none; }
.mic:disabled { opacity: 0.55; cursor: default; }
