/* A picture round question: one image above the question. The 286 set on a phone is 10-31 KB and the
   1080 set on the TV up to 479 KB, and either way it must never push the choices off the screen - so
   the height is capped rather than left to the browser. */
.picture {
  display: block;
  margin: 0 auto 12px;
  max-width: 100%;
  max-height: 52vh;
  width: auto;
  height: auto;
  border-radius: 8px;
}

/* THE HOST CONSOLE ON A PHONE. He hosts standing up, walking the room, one hand on the phone - a
   Samsung S21+ on a dark floor. So the two things he must never scroll for are the question he is
   reading (top) and the button that moves the night on (stuck to the bottom). The scores are a
   glance, not a table. Everything else - the pack, the clear ladder, the log, the player table -
   sits below, because that is where he has time to look at it. The orange is provisional: it is the
   app's accent today and the brand colours land with his logo. */
.host-strip {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 4px;
  margin: 0 0 10px;
  background: #0d0d0d;
  border-bottom: 1px solid #333;
  font-size: 0.85rem;
}
.host-strip .host-phase { font-weight: 700; }
.host-strip .host-locked { color: #ffa640; }
.host-strip .host-state { margin-left: auto; color: #9a9a9a; }

.host-card {
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.host-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.32;
}
/* THE PICTURE SWITCH: his control over one question's picture, on his console only. A question that has
   its picture switched off shows the picture dimmed and dashed here, because he cannot judge a picture he
   cannot see - and the room is never told about it at all. */
.host-picture-switch { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 0.95rem; }
.host-picture-switch input { width: 1.1rem; height: 1.1rem; }
.picture.picture-off { opacity: 0.4; border: 1px dashed #6a6a6a; border-radius: 10px; }
.host-picture-hidden { margin: 2px 0 8px; color: #ffa640; font-size: 0.9rem; }
/* THE PROOF ON HIS CONSOLE: the page and the sentence. Deliberately plain and small - it is read when
   somebody argues, not while he is reading the question out. */
/* THE GENERATOR'S OWN PROOF COLUMN: the page a question came from, the sentence the answer sits in, and
   the picture with its risk note. Small type on purpose - it is read when a question is being judged, not
   when it is being read out. */
.gen-source { margin: 6px 0 2px; font-size: 0.82rem; color: #7fd6c8; word-break: break-all; }
.gen-source a { color: #7fd6c8; }
.gen-quote { margin: 2px 0 6px; font-size: 0.82rem; color: #b9b9b9; font-style: italic; }
.gen-risk { margin: 4px 0; font-size: 0.82rem; color: #ffa640; }
/* WHAT JUST HAPPENED, said where he is looking: a pack loaded, or a file that was not a pack. */
/* SKIP sits beside the big button but never where a thumb rests: the big button runs the night, this one
   throws a question away. */
.host-skip { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid #6a4a2a; background: #241a10; color: #ffa640; font-size: 0.95rem; }
/* THE INSTALL OFFER: one button for Chrome and Edge, one sentence for Safari. Never in the way. */
.install-box { margin: 4px 0 0; }
.install-btn {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #3a4a48; background: #0f1a18;
  color: #7fd6c8; font-size: 1rem; font-weight: 700;
}
.install-box p { margin: 8px 0 0; color: #9a9a9a; font-size: 0.8rem; text-align: center; line-height: 1.45; }

/* THE CONSENT LINE under the join form - the same promise the old app makes, on the same published pages. */
.consent { margin: 14px 0 12px; color: #b9b9b9; font-size: 0.82rem; line-height: 1.5; text-align: center; }
.consent a { color: #7fd6c8; text-decoration: underline; }

/* THE HOST PHONE CONTROL: one hand, a dark room, four buttons. Nothing else competes with them. */
body[data-role="control"] main#view { max-width: 520px; margin: 0 auto; padding: 12px 14px 22px; }
.ctl-where { margin: 0 0 8px; color: #ffd200; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }
.ctl-question { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.ctl-choices { list-style: none; margin: 0 0 14px; padding: 0; font-size: 1.1rem; }
.ctl-choices li { padding: 6px 0; color: #cfcfcf; }
.ctl-choices li.right { color: #7ee081; font-weight: 700; }
/* THE ANSWER CLOCK, per round: three small choices that never compete with the four buttons. */
.ctl-clocks { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.ctl-clock-label { color: #8f8f8f; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ctl-clock { flex: 1 1 0; min-height: 40px; border-radius: 10px; border: 1px solid #3a3a3a; background: #141414; color: #b9b9b9; font-weight: 700; }
.ctl-clock.on { border-color: #7fd6c8; color: #7fd6c8; background: #0f1a18; }
.ctl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctl-btn {
  min-height: 92px; border-radius: 16px; border: 1px solid #333; background: #141414; color: #8f8f8f;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.03em; padding: 10px;
}
.ctl-btn:disabled { opacity: 0.45; }
/* exactly one light: the next thing to do */
.ctl-btn.ctl-next { background: #ffd200; border-color: #ffd200; color: #101010; font-size: 1.15rem; opacity: 1; }
.ctl-bad { margin: 12px 0; padding: 10px; border-radius: 10px; border-left: 3px solid #ff6b6b; background: #241010; color: #ffb3b3; font-size: 0.9rem; }
.ctl-status { margin: 12px 0 0; color: #8f8f8f; font-size: 0.85rem; text-align: center; }
/* START QUIZ: the only thing on the page before the night begins, and unmissable. */
/* WHICH QUIZ, AND WHERE TO START: two selects, on the one screen he opens at 19:00. */
.ctl-pick { display: grid; gap: 6px; margin: 18px 0 6px; }
.ctl-pick label { color: #8f8f8f; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ctl-pick select {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid #3a3a3a; background: #141414;
  color: #f0f0f0; font-size: 1rem; padding: 0 10px;
}
.ctl-start {
  display: block; width: 100%; min-height: 140px; margin: 26px 0 10px; border-radius: 20px; border: 0;
  background: #ffd200; color: #101010; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.06em;
}
.ctl-start:disabled { opacity: 0.7; }
.ctl-banner { margin: 0 0 10px; padding: 10px; border-radius: 10px; background: #241a10; border-left: 3px solid #ffa640; color: #ffa640; font-weight: 700; }
/* END ROUND / END NIGHT / PRIZE GIVING: his run sheet's last three actions, small and out of the way. */
.ctl-ends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ctl-small { min-height: 56px; border-radius: 12px; border: 1px solid #3a3a3a; background: #141414; color: #cfcfcf; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; }
.ctl-small.on { border-color: #ffd200; color: #ffd200; }
.ctl-under { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ctl-skip { width: 100%; margin-top: 12px; padding: 10px; border-radius: 10px; border: 1px solid #6a4a2a; background: #241a10; color: #ffa640; font-size: 0.9rem; }

/* THE NIGHT VIEW: the stage is the question, one button and Skip; everything else is the workshop and is
   display:none until he asks for it. */
.host-hidden { display: none !important; }
.host-clean-toggle { margin: 6px 0 9px; padding: 7px 10px; border-radius: 999px; border: 1px solid #3a4a48; background: #0f1a18; color: #7fd6c8; font-size: 0.85rem; }
.host-where { margin: 2px 0 10px; color: #ffd200; font-weight: 700; letter-spacing: 0.04em; font-size: 0.95rem; }
.rehearsal-tag { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #ffa640; background: #241a10; color: #ffa640; font-size: 0.9rem; font-weight: 700; }
.host-note { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #7fd6c8; background: #101a18; color: #cfe9e3; font-size: 0.9rem; }
.host-source { margin: 10px 0 2px; font-size: 0.9rem; color: #7fd6c8; word-break: break-all; }
.host-source a { color: #7fd6c8; }
.host-quote { margin: 2px 0 8px; font-size: 0.9rem; color: #cfcfcf; font-style: italic; }
.host-choices {margin: 0; padding-left: 1.3rem; font-size: 1.05rem; }
.host-choices li { margin: 4px 0; }
.host-choices li.answer { color: #7ee081; font-weight: 700; }
.host-diff { color: #8f8f8f; font-size: 0.85rem; margin: 8px 0 0; }
.host-say {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #ff7a1a;
  background: #161616;
  font-size: 0.95rem;
}

/* The advance button. Thumb-sized, full width, and it never moves while he is talking. */
.host-advance {
  position: sticky;
  bottom: 0;
  z-index: 6;
  padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, #0d0d0d 35%);
}
.host-advance .host-big {
  width: 100%;
  min-height: 64px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 12px;
}
.host-advance .host-scores {
  margin: 10px 0 0;
  text-align: center;
  color: #b9b9b9;
  font-size: 0.9rem;
}

/* On a laptop the same layout still works, it just stops shouting. */
@media (min-width: 760px) {
  .host-advance .host-big { min-height: 48px; font-size: 1rem; }
  .host-card h3 { font-size: 1.1rem; }
}

/* The base sheet caps the reading column at 700px, which is right for a phone in someone's hand and
   completely wrong for a room screen: it held the whole layout to 700px of a 1902px TV and wrapped
   the board head word by word. The screen uses the whole screen. */
body[data-role="screen"] main#view { max-width: none; width: 100%; margin: 0; padding: 0; }

/* THE ROOM SCREEN.
   ----------------------------------------------------------------------------------------------------
   He showed me a photograph of his television (2026-10-27) with the browser at 33% and at 67%: at 33%
   everything was miniature; at 67% the sentences were readable but the PICTURE WAS CUT. Zoom was his
   workaround for a layout written for a 1920 television, and it should never be needed.

   So this is sized in VIEWPORT units throughout - vw for type, vh for the picture and the QR - which means
   the same page fills a 1366 laptop, a 1920 television and a projector, at 100% zoom, with nothing clipped:
     - every type size has a floor and a ceiling so it reads from the back of a room and cannot overflow;
     - the picture is capped by BOTH height and width, and uses object-fit: contain, so a tall or wide
       image shrinks instead of being sliced;
     - the QR is more than twice the size it was;
     - the question takes the slack; the scoreboard always keeps its space.
   Gold is the leader. One colour, one meaning. */
body[data-role="screen"] { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #0c0c0c; }
body[data-role="screen"] #flash { display: none; }
.screen-wrap {
  display: grid;
  grid-template-columns: minmax(18rem, 29%) 1fr;   /* his ask, 2026-11-01: the join column earns the space for a massive QR */
  /* THE FIT (his report, 2026-10-28: "The TV screen does not fit in the screen"). Measured on a
     1920x1080 television: this element was 16px too wide and 32px too tall, so every TV cropped the
     bottom and right edge. Cause: 100vw/100vh PLUS padding, counted on top of each other. Now the box
     includes its own padding, the width is 100% rather than 100vw (100vw counts the scrollbar), the
     height uses dvh where the browser knows it, and nothing inside is allowed to push the page past the
     glass - the rows shrink instead. Verified by measuring the rendered page, not by eye. */
  box-sizing: border-box;
  gap: 1.8vmin;
  padding: 1.8vmin 2.2vmin;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  overflow: hidden;
}
.screen-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6vmin;
  border-right: 1px solid #262626;
  padding-right: 1.4vmin;
  text-align: center;
  min-height: 0;
}
/* THE NAME on the television: an eyebrow line and the app name under it, sized so "SMARTPHONE QUIZ" fits the
   join column on a 1366 screen without breaking a word. */
.screen-who { margin: 0; color: #ffd200; font-weight: 800; letter-spacing: 0.14em; font-size: clamp(0.9rem, 1.5vw, 2rem); }
.screen-brand h1 { font-size: clamp(1.3rem, 2.5vw, 3.6rem); }
/* THE VENUE CLOCK: big, on the join panel, readable from a table. Tabular figures so it does not jitter. */
.screen-now {
  margin: 0; font-size: clamp(2rem, 4.6vw, 6rem); font-weight: 800; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; color: #fff; line-height: 1;
}
/* HIS BADGE: the first thing the room sees. Sized against the screen, like everything else on this page. */
.screen-badge { width: min(17vh, 13vw); height: auto; display: block; }
/* THE APP'S NAME ON A PHONE. It is a long name, so it gets its own size and two sensible lines rather than
   the single-word treatment the old heading had. */
.join-name { font-size: 1.35rem; line-height: 1.18; letter-spacing: 0.02em; text-align: center; margin: 0 0 14px; }
.join-badge { display: block; width: 108px; height: auto; margin: 0 auto 10px; }
.screen-presents {
  /* the console's own small-label colour, not the old teal */
  margin: 0;
  color: var(--cyan, #3fd0e0);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.15vw, 1.7rem);
  font-weight: 700;
}
/* MEASURED ON A 1920x1080 TELEVISION (2026-10-28, mid-show): at this size "SMARTPHONE" was wider than the
   join column, so the first letters hung off the left edge, and the scan line fell off the bottom. The
   column now spaces its items instead of centring a too-tall stack, and every size below is in vmin - it
   scales with the SHORTER side of the screen, which is what actually runs out on a television. */
.screen-brand { justify-content: space-evenly; gap: 1.1vmin; overflow: hidden; }
.screen-brand h1 {
  margin: 0; max-width: 100%; font-size: clamp(1.1rem, 2.7vmin, 2.9rem); line-height: 1.05;
  letter-spacing: 0.02em; overflow-wrap: anywhere;
}
.screen-now { font-size: clamp(1.5rem, 6vmin, 5rem); }
.screen-badge { width: min(13vh, 12vmin); }
.screen-presents { font-size: clamp(0.6rem, 1.2vmin, 1.15rem); letter-spacing: 0.16em; }
.screen-who { font-size: clamp(0.7rem, 1.6vmin, 1.35rem); letter-spacing: 0.1em; }
.screen-qr canvas { width: min(28vh, 24vw); min-width: 140px; }
.screen-url {
  /* the address a person has to read off the television and type on a phone */
  font-size: clamp(1rem, 2.1vmin, 2.2rem);
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  margin: .5vmin 0 .2vmin;
}
.screen-scan {
  font-size: clamp(0.9rem, 1.9vmin, 2rem);
  color: var(--cyan, #3fd0e0);
  font-weight: 700;
}
/* THE QR CODE, BIG. It was 170-250px; it now takes the whole width of the join column, and the column
   itself grew, because the code is the only way a phone joins and it has to be scannable from the back
   of a room. Two older rules were fighting over this - both removed, this is the only one. */
.screen-qr {
  /* THE JOIN CODE IS THE ONLY WAY IN, so it is the brightest thing on the television and it never sits under
     a scrim. Measured on the live screen 2026-11-09: orange-on-black through the artwork, which is not a QR
     code a phone can read from across a room. */
  background: #ffffff;
  padding: 1.6vmin;
  border-radius: 1.6vmin;
  line-height: 0;
  width: 100%;
  box-shadow: 0 1.4vmin 3vmin rgba(0, 0, 0, .55);
  isolation: isolate;
}
.screen-qr canvas { filter: none; opacity: 1; }
/* capped by HEIGHT as well as width: a code that fills a phone-shaped column would push the join URL and
   the scan line off the bottom of a 16:9 television, which is exactly what the clipping showed. 44vh keeps
   the code enormous and still leaves room for the words underneath. */
.screen-qr canvas { display: block; width: min(100%, 44vh); height: auto; margin: 0 auto; }
.screen-url { margin: 0; font-size: clamp(0.85rem, 1.25vw, 1.7rem); color: #d8d8d8; word-break: break-all; font-weight: 700; }
.screen-scan { margin: 0; color: #ffa640; font-size: clamp(1rem, 1.55vw, 2.1rem); font-weight: 700; line-height: 1.12; }

/* The question takes the slack; the board never loses its space. */
.screen-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1.4vmin; min-height: 0; overflow: hidden; }
.screen-question {
  border: 1px solid #333; border-radius: 1.6vmin; padding: 2vmin 2.4vmin;
  min-height: 0; overflow: hidden; display: flex; flex-direction: column;
}
/* THE QUESTION ROW: picture top right, the question beside it, the choices underneath. */
.screen-top { display: flex; align-items: flex-start; gap: 2vmin; min-height: 0; flex: 0 0 auto; }
.screen-top h2 {
  flex: 1 1 auto; min-width: 0; margin: 0 0 1.6vmin;
  font-size: clamp(1.7rem, 3.1vw, 4.4rem); line-height: 1.12; letter-spacing: 0.005em;
}
/* CONTAIN, NOT COVER, AND CAPPED BOTH WAYS: the thing he saw cut off can now only get smaller. */
.screen-pic { flex: 0 0 auto; max-width: 30%; }
.screen-pic img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 32vh;
  object-fit: contain; border-radius: 1.2vmin; border: 1px solid #333; background: #111;
}
.screen-credit { margin: 0.6vmin 0 0; color: #8a8a8a; font-size: clamp(0.6rem, 0.8vw, 1rem); text-align: right; }
.screen-choices {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1vmin 3vmin;
  font-size: clamp(1.3rem, 2.35vw, 3.2rem); line-height: 1.15;
}
.screen-clock { margin: 1.4vmin 0 0; color: #ffa640; font-size: clamp(1.2rem, 1.9vw, 2.6rem); font-weight: 700; }
.screen-answer { margin: 1vmin 0 0.4vmin; color: #7ee081; font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 3.4rem); }
.screen-right { margin: 0.6vmin 0 0; color: #cfcfcf; font-size: clamp(1rem, 1.6vw, 2.1rem); }

/* PRACTICE: unmistakable, because the room must not think these three cost them points. */
.screen-practice {
  margin: 0; padding: 0.6vmin 1.4vmin; border-radius: 1vmin; align-self: flex-start;
  background: #241a10; border: 1px solid #ffa640; color: #ffa640;
  font-size: clamp(1rem, 1.6vw, 2.2rem); font-weight: 800; letter-spacing: 0.08em;
}
/* THE BANNER: END OF ROUND / FINAL SCORES / PRIZE GIVING. */
.screen-banner { border: 2px solid #ffd200; border-radius: 1.6vmin; padding: 1.6vmin 2vmin; background: #16120a; }
.screen-banner p { margin: 0; color: #ffd200; font-size: clamp(1.6rem, 3vw, 4.2rem); font-weight: 800; letter-spacing: 0.06em; }
.screen-banner-line { margin-top: 0.8vmin !important; color: #fff !important; font-size: clamp(1.3rem, 2.3vw, 3.2rem) !important; letter-spacing: 0.02em !important; }
.screen-banner.prize { border-color: #7ee081; background: #0f1a12; }
.screen-banner.prize p { color: #7ee081; }

/* THE BOARD: the room reads names and points, so they are big too. */
.screen-board { border-top: 2px solid #262626; padding-top: 1.2vmin; max-height: 42vh; overflow: hidden; }
.screen-board-head { display: flex; align-items: baseline; gap: 1.6vmin; margin-bottom: 0.8vmin; }
.screen-board-title { color: #ffd200; font-weight: 800; letter-spacing: 0.12em; font-size: clamp(1.2rem, 1.8vw, 2.4rem); }
.screen-board-date { color: #9a9a9a; font-size: clamp(0.85rem, 1.15vw, 1.5rem); }
.screen-live { margin-left: auto; color: #4a4a4a; font-weight: 800; letter-spacing: 0.1em; font-size: clamp(0.9rem, 1.2vw, 1.6rem); }
.screen-live.on { color: #35d07f; animation: livepulse 1.2s ease-in-out infinite; }
.screen-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3vmin; }
.screen-cols.three { grid-template-columns: 1fr 1fr 1fr; }
.screen-col { list-style: none; margin: 0; padding: 0; }
.screen-cols .row {
  display: grid;
  grid-template-columns: 2.6em 1fr auto;
  align-items: baseline;
  gap: 1.2vmin;
  padding: 0.9vmin 1.2vmin;
  border-bottom: 1px solid #1f1f1f;
  /* the names and points are read from the back of the room, so they scale with the screen */
  font-size: clamp(1.05rem, 1.75vw, 2.4rem);
}
.screen-cols .rank { color: #6f6f6f; font-variant-numeric: tabular-nums; }
.screen-cols .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-cols .pts { color: #f0f0f0; font-weight: 700; font-variant-numeric: tabular-nums; }
.screen-cols .row.leader {
  background: linear-gradient(90deg, #3a2f12 0%, rgba(58, 47, 18, 0) 70%);
  border-left: 4px solid #ffd200;
  padding-left: 6px;
}
.screen-cols .row.leader .pts { color: #ffd200; }
/* The empty state is NOT a row: it carried the same class, so it inherited the three-column grid
   (2.2rem rank | name | points) and its sentence was squeezed into the 35px rank column, one word
   per line. He caught it on his own TV. A plain block, in the reading column, is what it needs. */
.screen-cols .row.empty {
  display: block;
  color: #9a9a9a;
  font-style: italic;
  padding: 12px 4px;
  border-bottom: none;
}

/* A picture in the picture round must not push the board off the screen. */
.screen-question .picture { max-height: 30vh; }

/* THE WALLPAPERS: his three cuts of the ember artwork, used at the sizes he made them for -
   desktop 3840x2160 (212 KB) for the room screen, tablet 2048x2732 portrait (179 KB) for the host
   console, mobile 1170x2532 (130 KB) for the players. No conversion needed: they arrived as webp at
   sensible weights. They carry no text and no venue mark, which is why they can be used at all - a
   venue logo in the app is the paid extra, not a default.
   Scrimmed twice: once across the whole page so the embers read as glow rather than glare, and again
   on each panel, because every word has to survive a glance from the back row. */
body[data-role="screen"] {
  background: #080808 url('/backgrounds/screen.webp') center / cover no-repeat fixed;
}
body[data-role="screen"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(6, 6, 6, 0.45), rgba(6, 6, 6, 0.62));
  pointer-events: none;
  z-index: 0;
}
.screen-wrap { position: relative; z-index: 1; }
.screen-wrap > * { min-width: 0; min-height: 0; }
.screen-brand, .screen-question, .screen-board {
  background: rgba(9, 9, 9, 0.78);
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 16px 18px;
}
.screen-board { border-top: 1px solid #2b2b2b; }

/* On a phone the wallpaper reads as texture only: a heavy scrim, because a question has to be
   legible in one glance, standing up, at the bar. */
body[data-role="player"] {
  background: linear-gradient(rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.94)),
    url('/backgrounds/phone.webp') center / cover no-repeat fixed;
}
body[data-role="host"] {
  background: linear-gradient(rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.94)),
    url('/backgrounds/host.webp') center / cover no-repeat fixed;
}

/* THE TWO PAGES THAT HAD NO WALLPAPER. Three had his ember artwork and two did not: the league table,
   and the dashboard - which was built later and shipped flat black. He spotted it by asking why the
   pages do not all look the same (2026-10-09), and he is right: it was the one page in this app that
   did not belong to the same sheet.
   The artwork stays one per SCREEN SHAPE, because that is why it exists in three sizes, and it is his
   own confirmed artwork: the league table is read on a phone, so it takes the phone one; the dashboard
   is read on his laptop, so it takes the wide one - and the phone artwork when the window is narrow,
   because the wide one is composed for a TV across a room, not for a laptop.
   Scrimmed the same way as the other pages: heavy on a phone, lighter on the laptop, and each panel
   still carries its own background so every word survives a glance. */
body[data-role="league"] {
  background: linear-gradient(rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.94)),
    url('/backgrounds/phone.webp') center / cover no-repeat fixed;
}
body[data-role="dashboard"] {
  background: linear-gradient(rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0.93)),
    url('/backgrounds/screen.webp') center / cover no-repeat fixed;
}
body[data-role="league"] main#view, body[data-role="dashboard"] main#view {
  background: rgba(10, 10, 10, 0.68);
  border-radius: 14px;
  padding: 12px 14px;
}
@media (max-width: 620px) {
  body[data-role="dashboard"] {
    background: linear-gradient(rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.94)),
      url('/backgrounds/phone.webp') center / cover no-repeat fixed;
  }
}
body[data-role="player"] main#view, body[data-role="host"] main#view {
  background: rgba(10, 10, 10, 0.68);
  border-radius: 14px;
  padding: 12px 14px;
}

/* QUIZ LEAGUE - the basic sheet.
 *
 * Deliberately small: colours, type, spacing, touch targets. The full mockup look (the pill
 * choices, the orange bokeh, the badge above the question) waits for the logo, because all of it
 * is built around that badge.
 *
 * Mobile first, and written for the room it is played in: a phone held in one hand, in a dark
 * venue, often by someone who has had a drink. So: one column, big type, tap targets nobody has
 * to aim at, and nothing important below the fold.
 */

/* OpenDyslexic, self-hosted. Venue wifi is the least reliable part of the night, so the readable
   type must not come from a CDN - and the phones now match the font the owner reads on his
   laptop. Two weights only; the sheet uses those two. */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('/fonts/OpenDyslexic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'OpenDyslexic';
  src: url('/fonts/OpenDyslexic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* THE KARAOKE CONSOLE'S OWN PALETTE (his call, 2026-11-09: "just like the KARAOKE CONSOLE"). The values
     are the ones his console page uses, so the two apps are one company's work rather than two looks:
       field   violet gradient #4a1fa0 -> #2c1269 -> #1d0a4a at 165deg
       cards   #241058
       lime    #a6e22e   what you press, and RIGHT
       violet  #a86bff   the second colour
       cyan    #3fd0e0   quiet, and "time is up"
       yellow  #ffd200   small labels, headings, and WRONG
     --orange stays as the NAME of the primary accent because every rule in this sheet already uses it; its
     VALUE is now the violet, which is what keeps this a colour change rather than a rewrite.
     NOTHING HERE IS SIGNALLED BY RED-AND-GREEN ALONE: roughly one man in twelve cannot separate them, so
     right/wrong/timed-out also differ in brightness and always carry a word. */
  --bg: #1d0a4a;
  --bg-field: linear-gradient(165deg, #4a1fa0 0%, #2c1269 52%, #1d0a4a 100%);
  --surface: #241058;
  --line: rgba(255, 255, 255, 0.22);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --orange: #a86bff;      /* the primary accent, now the console's violet */
  --accent: #a86bff;
  --lime: #a6e22e;
  --cyan: #3fd0e0;
  --yellow: #ffd200;
  --right: #a6e22e;       /* RIGHT is lime, not a green picked in isolation */
  --wrong: #ffd200;       /* WRONG is amber-yellow: differ. in hue AND brightness from lime, never red-vs-green */
  
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: 'OpenDyslexic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

main#view {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.25rem; margin: 0; line-height: 1.35; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ol { margin: 0; padding-left: 1.3rem; }
a { color: var(--orange); }

/* the one line that tells you what just happened (a rejection, a reconnection) */
#flash { min-height: 1.2rem; margin: 0 auto; max-width: 520px; font-size: 0.8rem; color: var(--orange); }

/* Buttons are the game. Never smaller than a thumb, never a puzzle: solid orange is the thing to
   press, grey means there is nothing to do. */
button {
  font: inherit;
  font-weight: 700;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  color: #000;
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled { background: #3a3a3a; border-color: #3a3a3a; color: rgba(255, 255, 255, 0.45); cursor: default; }
button:active:not(:disabled) { transform: scale(0.985); }

/* A choice is a dark pill with an orange rim; the one you picked fills in. The pad from the
   mockups, in four rules. */
button.choice { background: var(--bg); color: var(--text); text-align: left; }
button.choice[aria-pressed='true'] { background: var(--orange); color: #000; }

input, select {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
label {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* scoreboard tables, on the host console and the season table */
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 7px 5px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* the countdown is the one number the whole room watches */
#clock { color: var(--orange); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* the verdict after a reveal */
.verdict { font-weight: 700; }
.verdict.right { color: var(--right); }
.verdict.wrong { color: var(--wrong); }
.muted { color: var(--muted); font-size: 0.85rem; }

/* A laptop is a host console, not a phone: use the width for the controls and the table. */
@media (min-width: 700px) {
  body { font-size: 18px; }
  main#view { max-width: 700px; }
}

/* THE DASHBOARD. One tile per app, and every tile opens in its OWN window: this is where a night is
   set up, so it is a page of doors rather than another control panel. Two columns from 620px (his
   laptop), one on a phone, and the tiles are big enough to hit deliberately. */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 20px; }
@media (min-width: 620px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.dash-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
.dash-tile:hover, .dash-tile:focus { border-color: var(--orange); }
.dash-tile strong { font-size: 1.05rem; font-weight: 600; }
.dash-tile span { color: var(--muted); font-size: 0.85rem; }
/* the dashboard uses the width of a laptop: the 700px reading column above is for a phone in a hand */
body[data-role="dashboard"] main#view { max-width: 900px; }

/* THE GENERATOR. A laptop page like the dashboard, and it wears one of his wallpapers like every other
   page (the league table and the dashboard shipped without one until he asked). A wide form at the top,
   then a table he reads down, with the verdict on each question beside it. */
body[data-role="generator"] {
  background: linear-gradient(rgba(8, 8, 8, 0.86), rgba(8, 8, 8, 0.93)),
    url('/backgrounds/screen.webp') center / cover no-repeat fixed;
}
body[data-role="generator"] main#view {
  max-width: 1040px;
  background: rgba(10, 10, 10, 0.68);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.gen-form label { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.gen-form textarea, .gen-form input, .gen-form select {
  width: 100%; padding: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font: inherit;
}
.gen-form textarea { resize: vertical; }
.gen-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 10px 0; }
@media (max-width: 620px) { .gen-grid { grid-template-columns: 1fr; } }
.gen-pill {
  display: inline-block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 100px; border: 1px solid var(--line); color: var(--muted);
}
.gen-pill.ok { border-color: var(--right); color: var(--right); }
.gen-pill.warn { border-color: var(--orange); color: var(--orange); }
.gen-right { color: var(--right); font-weight: 700; }
.gen-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
/* the verdict reasons sit under the pill and must not stretch the column */
body[data-role="generator"] td p { margin: 4px 0 0; color: var(--muted); font-size: 0.75rem; }

/* the practice tag on the CONTROL page (it was wrongly using the TV's container) */
.ctl-practice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 2px solid #a86bff;
  border-radius: 10px;
  background: rgba(168, 107, 255, .10);
  color: #c9b6ff;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}
/* who was quickest during practice - no points, just the mechanism */
.screen-fastest {
  margin: 6px 0 0;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #c9b6ff;
  text-align: center;
}

/* THE TWO BOARDS on the television (his ask, 2026-10-30): teams above, individuals below, each with its own
   numbering, because a team and an individual do not earn points the same way. */
.screen-board-half + .screen-board-half { margin-top: .8vmin; }
.screen-board-sub {
  margin: 0 0 .5vmin;
  font-size: clamp(.6rem, 1.15vmin, 1.1rem);
  font-weight: 800;
  letter-spacing: .16em;
  color: #9a9a9a;
  text-transform: uppercase;
}
.screen-board-sub.teams { color: #c9b6ff; }
.screen-board-sub.players { color: #7fd6c8; }
.row.team-row .who { color: #ffd200; }

/* the [T]/[P] tag on the host's roster: one tap flips a team to an individual or back */
.ctl-kind {
  min-width: 42px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  font-weight: 800;
  letter-spacing: .06em;
}
.ctl-kind.team { background: rgba(168, 107, 255, .16); border-color: #a86bff; color: #c9b6ff; }
.ctl-kind.player { background: #0e1a19; border-color: #2f6f66; color: #7fd6c8; }
.ctl-venue { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.ctl-venue input { width: 76px; text-transform: uppercase; letter-spacing: .12em; text-align: center; }
.ctl-venue label { color: #b9b9b9; font-weight: 700; }

/* which quiz is running, on the host's phone all night */
.ctl-packname { margin: -4px 0 10px; color: #9a9a9a; font-size: .82rem; letter-spacing: .02em; }

/* the run sheet line and the sudden-death panel on the host's phone */
.ctl-run { margin: -6px 0 8px; color: #b9b9b9; font-size: .85rem; letter-spacing: .03em; }
.ctl-run.soon { color: #c9b6ff; font-weight: 800; }
.ctl-run.stop { color: #ff8a5c; font-weight: 800; }
.ctl-sudden { margin: 10px 0; padding: 10px 12px; border: 2px solid #a86bff; border-radius: 10px;
  background: rgba(168, 107, 255, .10); color: #ffd200; font-weight: 800; letter-spacing: .04em; }
.ctl-sudden-btn { margin: 4px 0; }

/* the small buttons on the host's phone roster */
.ctl-mini { min-height: 34px; padding: 4px 8px; margin-right: 4px; border-radius: 8px; font-size: .72rem; }
body[data-role="control"] table { width: 100%; border-collapse: collapse; }
body[data-role="control"] td, body[data-role="control"] th { padding: 4px 6px; text-align: left; font-size: .82rem; }

/* the buttons he pushes during the night: BREAK (with an optional number of minutes), WE'RE BACK, STOP */
.ctl-night { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ctl-night .ctl-small { flex: 1 1 auto; }
.ctl-night .ctl-break { background: rgba(168, 107, 255, .16); border-color: #a86bff; color: #c9b6ff; font-weight: 800; }
.ctl-night .ctl-stop { background: #2a0f0f; border-color: #ff5c5c; color: #ffb3b3; font-weight: 800; }
.ctl-night .ctl-min { min-width: 46px; min-height: 34px; border-radius: 8px; border: 1px solid #3a3a3a;
  background: #141414; color: #9a9a9a; font-size: .72rem; }
.ctl-night .ctl-min.on { border-color: #a86bff; color: #c9b6ff; background: rgba(168, 107, 255, .10); }

/* THE BOTTOM OF THE HOST'S PHONE: the roster, then the break. He holds the phone in his left hand and a
   microphone in his right, so the things he reaches for least live furthest from his thumb, and the break
   row is one compact line rather than five full-width bars. */
.ctl-night {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 5px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #2b2b2b;
}
.ctl-night .ctl-break { flex: 2 1 40%; min-height: 48px; background: rgba(168, 107, 255, .16); border-color: #a86bff;
  color: #c9b6ff; font-weight: 800; letter-spacing: .08em; }
.ctl-night .ctl-min { flex: 0 0 auto; width: 52px; min-height: 48px; border-radius: 10px;
  border: 1px solid #3a3a3a; background: #141414; color: #9a9a9a; font-size: .8rem; font-weight: 700; }
.ctl-night .ctl-min.on { border-color: #a86bff; color: #c9b6ff; background: rgba(168, 107, 255, .10); }
.ctl-night .ctl-small { flex: 1 1 28%; min-height: 48px; }
.ctl-night .ctl-stop { background: #2a0f0f; border-color: #ff5c5c; color: #ffb3b3; font-weight: 800; }

/* THE QUESTION CARD on a player's phone: the brightest thing on the screen, with an orange edge so the eye
   lands on the question before anything else. His words: "could we add some colour to make it easier to READ
   the QUESTION ... the dyslexic font but it's a little too bland". */
.q-card {
  margin: 14px 0 10px;
  padding: 14px 16px;
  border-left: 5px solid #a86bff;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 108, 1, .12), rgba(255, 108, 1, .03));
  box-shadow: 0 0 0 1px rgba(255, 108, 1, .18) inset;
}
.q-card h2 { margin: 0; color: #fff6e8; font-size: 1.45rem; line-height: 1.32; letter-spacing: .01em; }
/* before the clock: no answers yet, and it says so */
.q-waiting { margin: 4px 0 0; color: #c9b6ff; font-weight: 700; font-size: .95rem; }
/* the countdown, and its last five seconds */
body[data-role="player"] .clock { color: #c9b6ff; }
body[data-role="player"] .clock.hot { color: #ff5c5c; }

/* the countdown inside a break, big enough to read from the back */
.screen-break-left { margin: .6vmin 0 0; font-size: clamp(1.2rem, 3.4vmin, 3rem); font-weight: 800;
  letter-spacing: .06em; color: #c9b6ff; font-variant-numeric: tabular-nums; }

/* POOL or ROUNDS on the host's phone */
.ctl-mode { display: flex; align-items: center; gap: 6px; margin: 10px 0 6px; }
.ctl-mode-label { color: #9a9a9a; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.ctl-mode-btn { flex: 1 1 auto; min-height: 40px; border-radius: 10px; border: 1px solid #3a3a3a;
  background: #141414; color: #8f8f8f; font-weight: 800; letter-spacing: .08em; font-size: .78rem; }
.ctl-mode-btn.on { border-color: #a86bff; background: rgba(168, 107, 255, .10); color: #c9b6ff; }

/* while a question is live the join column is gone and the question takes the whole television */
.screen-wrap.no-join { grid-template-columns: minmax(0, 1fr); }
.screen-wrap.no-join .screen-top h2 { font-size: clamp(1.6rem, 4.6vmin, 4rem); }

/* PREVIOUS sits quietly beside the three, because it is the one he reaches for by accident */
.ctl-back { min-height: 44px; }

/* the loop, two rows: the three he uses, then PREVIOUS and SKIP side by side in the space that was empty */
.ctl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ctl-grid .ctl-back { grid-column: 1 / span 1; }
.ctl-grid .ctl-skip-btn { grid-column: 2 / span 1; min-height: 44px; }

/* the CHANGE QUIZ button sits quietly under the pack name, full width so a thumb finds it */
.ctl-change-quiz { width: 100%; min-height: 46px; margin: 0 0 10px; }

/* THE JOIN PANEL, after his 2026-11-01 notes: the QR dominates the column, the name says welcome, and the
   promise sits under it. */
.screen-welcome {
  margin: 0; text-align: center; color: #ffd200; font-weight: 900;
  font-size: clamp(.7rem, 1.75vmin, 1.5rem); letter-spacing: .08em; line-height: 1.25;
}
.screen-tagline {
  margin: 0; text-align: center; color: #7fd6c8; letter-spacing: .12em;
  font-size: clamp(.55rem, 1.25vmin, 1.05rem); font-weight: 700;
}
/* the duplicate rule that capped the code is gone on purpose: see .screen-qr above */
.screen-url { word-break: break-all; }
/* one column of players, top to bottom */
.screen-col { column-count: 1; }

/* DID YOU KNOW - the fact under the revealed answer. It sits quieter than the answer itself: the answer
   is the news, the fact is the pleasure. Dark panel and gold text so it reads from the back of the room. */
.screen-fact {
  margin: 1.2vmin 0 0;
  padding: 1.2vmin 2vmin;
  border-left: .5vmin solid #a86bff;
  background: rgba(255, 108, 1, .10);
  color: #ffd200;
  font-size: clamp(.8rem, 2.1vmin, 1.7rem);
  line-height: 1.35;
  text-align: left;
  font-style: italic;
}
.player-fact {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid #a86bff;
  background: #171514;
  color: #ffd200;
  font-size: .92rem;
  line-height: 1.45;
  border-radius: 0 8px 8px 0;
}

/* THE NAME, once. Small WELCOME TO over a big name - he caught the screen welcoming the room to itself. */
.screen-welcome {
  margin: 0.6vmin 0 0; text-align: center; color: #ffd200; font-weight: 900;
  font-size: clamp(.62rem, 1.55vmin, 1.35rem); letter-spacing: .18em;
}
.screen-who {
  margin: 0.2vmin 0 0.6vmin; text-align: center; color: #fff; font-weight: 900;
  font-size: clamp(.95rem, 2.6vmin, 2.4rem); letter-spacing: .06em; line-height: 1.08;
}

/* THE FACT, ON HIS CONSOLE, where he reads it aloud. Same size as the question (ctl-question is
   1.15rem at this breakpoint) because he is holding the phone at arm's length in a loud room, and gold on
   a dark panel so it never gets confused with the question itself. */
.ctl-fact {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-left: 5px solid var(--orange, #a86bff);
  background: rgba(168, 107, 255, .12);
  color: #ffd200;
  font-size: 1.15rem;
  line-height: 1.42;
  font-weight: 700;
  border-radius: 0 10px 10px 0;
}

/* HE ASKS FOR ATTENTION TO LAND ON THE QUESTION, NOT ON LOG OUT (2026-11-01: "I like the bright colour of
   the LOG OUT but I would prefer the Attention drawn to Questions and Answers... The LOG OUT can be plain").
   So it becomes a quiet text button: still there, still tappable, no longer the loudest thing on the screen. */
.player-logout {
  background: transparent;
  color: #9a9a9a;
  border: 1px solid #3a3a3a;
  font-weight: 400;
  font-size: .8rem;
  min-height: 34px;
  padding: 4px 12px;
  width: auto;
  border-radius: 8px;
  margin: 2px 0 6px;
}
.player-logout:hover { color: #e6e6e6; border-color: #6a6a6a; }

/* and the question itself takes the weight: a brighter card, a thicker edge, so the eye lands here first */
.q-card {
  border: 2px solid rgba(168, 107, 255, .55) !important;
  box-shadow: 0 0 0 1px rgba(168, 107, 255, .18), 0 10px 30px rgba(0, 0, 0, .45);
}

/* THE DOOR, BIG AND CENTRED (his ask, 2026-11-01). While the room is arriving there is no question, so the
   whole middle of the television belongs to the way in. It disappears the moment a question goes up. */
.screen-join-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6vmin; padding: 2vmin; min-height: 0; overflow: hidden; text-align: center;
}
.screen-join-title {
  margin: 0; color: #fff; font-weight: 900; letter-spacing: .16em;
  font-size: clamp(.9rem, 2.6vmin, 2.4rem);
}
.screen-join-qr { background: #fff; padding: 1.4vmin; border-radius: 1.6vmin; line-height: 0; }
.screen-join-qr canvas { display: block; width: min(56vh, 46vw); height: auto; }
.screen-join-url {
  margin: 0; color: #ffd200; font-weight: 900; letter-spacing: .04em;
  font-size: clamp(.85rem, 2.2vmin, 2rem); word-break: break-all;
}
.screen-join-scan {
  margin: 0; color: rgba(255,255,255,.72); font-size: clamp(.7rem, 1.6vmin, 1.4rem);
}

/* =====================================================================================
   THE PLAYER SCREEN, AS THE CROSSBAR ADVERT SHOWS IT (his brief, 2026-11-01: "LOOK AT THE PHONE IN
   THE ADVERT"). Sampled from his own artwork, not guessed: violet field, navy card, light violet
   outlines, yellow question mark, and the chosen answer filled hot orange with a glow.

   Player only - the television keeps its own black-and-orange look, because a television in a dark
   room wants black and a phone in a bright room wants this.
   ===================================================================================== */
body[data-role="player"] {
  --qs-bg-top: #4a1fa0;
  --qs-bg-bottom: #2c1269;
  --qs-card: #0d1233;
  --qs-outline: #8b7bff;
  --qs-yellow: #ffd200;
  --qs-green: #7ee35a;
  background: linear-gradient(160deg, var(--qs-bg-top) 0%, var(--qs-bg-bottom) 55%, #1d0a4a 100%);
  background-attachment: fixed;
  color: #fff;
  padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  gap: 12px;
}

/* the top line: the app name on the left, the countdown ring on the right */
body[data-role="player"] #who,
body[data-role="player"] h1,
body[data-role="player"] .name-line {
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
body[data-role="player"] #who { font-size: 1.05rem; }

/* THE QUESTION CARD: navy, deeply rounded, with the yellow question mark the advert has */
body[data-role="player"] main#view > .q-card {
  position: relative;
  background: var(--qs-card);
  border: 1px solid #2b2f63;
  border-radius: 22px;
  padding: 16px 16px 16px 62px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}
body[data-role="player"] .q-card::before {
  content: "?";
  position: absolute;
  left: 14px;
  top: 10px;
  color: var(--qs-yellow);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
body[data-role="player"] .q-card h2 {
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 900;
  margin: 0;
}

/* THE ANSWERS: full width pills with a light violet outline, exactly as drawn on the poster */
body[data-role="player"] .choice {
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--qs-card);
  border: 2px solid var(--qs-outline);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .01em;
  box-shadow: none;
}
body[data-role="player"] .choice[aria-pressed="true"] {
  background: rgba(168, 107, 255, .24);
  border-color: #a86bff;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(168, 107, 255, .35), 0 10px 26px rgba(168, 107, 255, .40);
}
body[data-role="player"] .choice:disabled { opacity: .55; }
/* the reveal: the right answer glows green, the wrong pick stays outlined */
body[data-role="player"] .choice.right,
body[data-role="player"] .choice.correct {
  background: #12631f;
  border-color: var(--qs-green);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(126, 227, 90, .30);
}

/* THE COUNTDOWN RING, as on the poster: a green arc on a dark ring, the seconds white in the middle */
body[data-role="player"] #clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.02rem;
  color: #fff;
  background:
    conic-gradient(var(--qs-green) calc(var(--pct, 1) * 360deg), rgba(255, 255, 255, .10) 0);
  box-shadow: inset 0 0 0 6px var(--qs-card), 0 6px 18px rgba(0, 0, 0, .45);
}

/* the quiet line that used to shout (his note: attention on questions and answers) */
body[data-role="player"] .q-waiting,
body[data-role="player"] .q-paused {
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
}

/* the small print at the bottom */
body[data-role="player"] .player-logout {
  color: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .22);
}

/* =====================================================================================
   HIS OWN BACKDROP (2026-11-01). The line-art quiz icons on near-black that he made for the app
   before we ever spoke: bulb, trophy, music note, dice, puzzle, clipboard, target. It is used as a
   proper background layer with a dark veil over it, because the question has to win the eye - the
   artwork sets the mood, it does not compete with the words.
   29 KB for the phone, 19 KB for the TV.
   ===================================================================================== */
body[data-role="player"]::before,
body[data-role="control"]::before,
body[data-role="host"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/images/bg-phone.webp') center / cover no-repeat;
  opacity: .9;
}
body[data-role="player"]::after,
body[data-role="control"]::after,
body[data-role="host"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* the veil: violet at the top, black at the bottom, so text always has something to sit on */
  background: linear-gradient(180deg, rgba(40, 12, 96, .55) 0%, rgba(8, 4, 22, .82) 60%, rgba(0, 0, 0, .92) 100%);
}

/* the television keeps the same art, darker still, because it is watched across a room */
body[data-role="screen"] {
  background: #050505 url('/images/bg-tv.webp') center / cover no-repeat fixed;
}
body[data-role="screen"] .screen-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  /* HE SAID THE TELEVISION WAS TOO DARK (2026-11-02) and the pictures were the casualty: the veil was
     killing contrast on the very thing the room looks at. Lighter, and never over a picture. */
  background: radial-gradient(ellipse at center, rgba(0,0,0,.18) 0%, rgba(0,0,0,.45) 80%);
  pointer-events: none;
}

/* the door sits at the top of the main column while the room arrives, above the scoreboard */
.screen-join-stage { order: -1; }
/* and it must not be dimmed: the vignette was washing the code out in his screenshot */
.screen-join-qr { box-shadow: 0 0 0 2vmin rgba(255, 255, 255, .06); }
.screen-join-stage, .screen-join-qr { opacity: 1; }

/* the picture gets its own brightness back: no veil, a clear border, and a touch of lift so it reads
   across a dark room */
.screen-pic, .screen-pic img.picture {
  filter: brightness(1.06) contrast(1.04);
}
.screen-pic { background: #000; border-radius: 1.2vmin; }

/* =====================================================================================
   THE STANDINGS WINDOW (/scoreboard). He sizes this window himself next to the question
   screen, so it fills whatever it is given and holds ten of each, top down.
   ===================================================================================== */
.sb-wrap { padding: 2vmin 2.4vmin; height: 100%; display: flex; flex-direction: column; gap: 1.6vmin; }
.sb-head { display: flex; align-items: baseline; justify-content: space-between; }
.sb-title { color: #ffd200; font-weight: 900; letter-spacing: .1em; font-size: clamp(1rem, 2.6vmin, 2.2rem); }
.sb-when { color: rgba(255,255,255,.5); font-size: clamp(.7rem, 1.5vmin, 1.1rem); letter-spacing: .08em; }
.sb-half { display: flex; flex-direction: column; gap: .5vmin; min-height: 0; }
.sb-label {
  margin: 0; font-size: clamp(.7rem, 1.6vmin, 1.2rem); letter-spacing: .16em;
  color: #a86bff; font-weight: 900; text-transform: uppercase;
}
.sb-label.teams { color: #7fd6c8; }
.sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4vmin; }
.sb-row {
  display: grid; grid-template-columns: 2.2em 1fr auto; align-items: baseline; gap: 1.2vmin;
  background: #141414; border: 1px solid #2a2a2a; border-radius: 1vmin;
  padding: .7vmin 1.2vmin; font-size: clamp(.9rem, 2.2vmin, 1.9rem);
}
.sb-rank { color: rgba(255,255,255,.45); font-weight: 900; }
.sb-who { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-pts { color: #ffd200; font-weight: 900; }
.sb-leader {
  /* LIME, not orange-red: the same colour the app uses for "this is the one you press or the one that won".
     It also separates cleanly from the violet field for every form of colour blindness. */
  border-color: var(--lime, #a6e22e);
  background: rgba(166, 226, 46, .16);
  box-shadow: inset .5vmin 0 0 var(--lime, #a6e22e);
}
.sb-leader .sb-pts { color: #fff; }
.sb-empty { color: rgba(255,255,255,.4); margin: 0 0 .6vmin; font-size: clamp(.75rem, 1.7vmin, 1.3rem); }

/* HIS PRACTICE SWITCH: unmistakable on or off, because the whole night scores or does not score by it */
.ctl-practice {
  width: 100%; min-height: 54px; border-radius: 14px; font-weight: 900; letter-spacing: .1em;
  border: 2px solid #a86bff; background: transparent; color: #a86bff; margin: 6px 0 10px;
}
.ctl-practice.on { background: #a86bff; color: #000; border-color: #a86bff; }

/* with no scoreboard on this screen, the question takes the whole glass: the join column is only needed
   while the room is arriving, and the big centred door already carries the code there */
.screen-wrap { grid-template-columns: minmax(14rem, 20%) 1fr; }
@media (min-aspect-ratio: 16/10) {
  .screen-wrap { grid-template-columns: minmax(14rem, 18%) 1fr; }
}

/* =====================================================================================
   THE TELEVISION IS ONE PAGE WITH THREE COLUMNS (his constraint, 2026-11-02: the venue TVs have
   browsers that will not run two windows side by side). Left: clock, badge, name. Middle: the door
   or the question. Right: the live standings. And his wallpaper underneath all of it.
   ===================================================================================== */
.screen-wrap {
  grid-template-columns: minmax(12rem, 17%) minmax(0, 1fr) minmax(14rem, 26%);
}
.screen-standings {
  display: flex; flex-direction: column; gap: 1vmin; min-height: 0; overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 1.4vmin;
}
.screen-standings .sb-title { font-size: clamp(.7rem, 1.9vmin, 1.6rem); }
.screen-standings .sb-when { font-size: clamp(.55rem, 1.2vmin, .9rem); }
.screen-standings .sb-row { font-size: clamp(.7rem, 1.8vmin, 1.6rem); padding: .5vmin 1vmin; }
.screen-standings .sb-label, .screen-standings .sb-empty { font-size: clamp(.6rem, 1.35vmin, 1rem); }

/* THE WALLPAPER, on the room screen and on the standalone standings window: he made it and it belongs on
   the television. Kept dark behind the veil so the question still wins the eye. */
body[data-role="screen"],
body[data-role="scoreboard"] {
  background: #050505 url('/images/bg-tv.webp') center / cover no-repeat fixed;
}
body[data-role="scoreboard"] .sb-wrap {
  background: rgba(0, 0, 0, .55);
  border-radius: 2vmin;
  margin: 1.6vmin;
  height: calc(100% - 3.2vmin);
}

/* the where-am-I strip on his console: clock, round, question number, in one line that never scrolls away */
.ctl-where {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 8px 4px; margin: 0 0 8px;
  background: rgba(10, 6, 28, .92); border-bottom: 1px solid rgba(139, 123, 255, .35);
  backdrop-filter: blur(6px);
}
.ctl-where-clock { font-weight: 900; font-size: 1.05rem; color: #fff; letter-spacing: .04em; }
.ctl-where-round {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #ffd200; font-weight: 800; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ctl-where-pos { font-size: .78rem; font-weight: 900; color: #7fd6c8; letter-spacing: .06em; }

/* THE TV SPLIT HE ASKED FOR: 28% standings, the rest to the question */
.screen-wrap { grid-template-columns: minmax(11rem, 16%) minmax(0, 1fr) minmax(16rem, 28%) !important; }

/* everything fits the glass: no overflow, no scroll, on any TV shape */
/* ONLY THE TELEVISION IS PINNED. This read `html, body[data-role="screen"]`, and `html` is every page in the
   app - so the host console could not be scrolled at all (his report, 2026-11-09: "I cannot scroll this page
   on the laptop"). The TV still never scrolls; nothing else is affected. */
:root:has(> body[data-role="screen"]),
body[data-role="screen"] { overflow: hidden; }
.screen-wrap { overflow: hidden; }
.screen-standings { overflow: hidden; }
.screen-standings .sb-list { overflow: hidden; }

/* his branded code fills the door: sharp at any television size, because it is an SVG */
.screen-join-qr-img { display: block; width: min(56vh, 46vw); height: auto; border-radius: 1.2vmin; }

/* =====================================================================================
   THE MEASURED SPLIT (Meta's read of his own 1080p screenshot, 2026-11-02): the standings take
   about 27% of the width, everything else is the quiz. Against 1920x1080 that is roughly
   16% sidebar (307px) + 56% question (1075px) + 27% standings (518px), with the gaps inside
   the 100%. Sizes are relative so the same split holds on 1280x720 and 4K.
   Overscan guard: 2.4vmin of padding all round, because those panels crop the edges.
   ===================================================================================== */
.screen-wrap {
  grid-template-columns: minmax(10rem, 16%) minmax(0, 1fr) minmax(15rem, 27%) !important;
  gap: 1.2vmin;
  padding: 2.4vmin;
}
/* the standings column must be able to shrink below its content, or a long name pushes the grid wide */
.screen-standings { min-width: 0; }
.screen-standings .sb-who { min-width: 0; }

/* the code must fit INSIDE its column, or it overflows its grid cell and gets clipped at the screen edge
   (his screenshot 2026-11-02 showed the QR cut off on the right) */
.screen-join-qr { max-width: 100%; }
.screen-join-qr-img { width: min(50vh, 100%); max-width: 100%; height: auto; }
.screen-join-qr canvas { max-width: 100%; }

/* =====================================================================================
   THE STANDINGS RAIL - done in CSS, not by rearranging the render function.
   His screenshot (2026-11-02) showed the standings landing in the MIDDLE column and the QR
   pushed off the right edge, because the block is appended to the page rather than to the grid.
   Rather than surgery inside renderScreen at midnight, the standings are pinned to the right
   as a rail and the grid is told to leave that width free. Deterministic, and it cannot
   reorder itself again.
   ===================================================================================== */
.screen-wrap { padding-right: calc(27% + 3vmin) !important; }
.screen-standings {
  position: fixed;
  top: 0;
  right: 0;
  width: 27%;
  height: 100%;
  padding: 2.4vmin 2vmin;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .55);
  border-left: 2px solid rgba(255, 108, 0, .55);
  z-index: 3;
  overflow: hidden;
}
/* the layout inside the wrap is back to TWO columns: panel and question. The rail is the third. */
.screen-wrap { grid-template-columns: minmax(10rem, 18%) minmax(0, 1fr) !important; }
/* and the code must never overflow its cell */
.screen-join-qr-img { width: min(46vh, 100%); max-width: 100%; }
.screen-join-qr { max-width: 100%; }

/* =====================================================================================
   ONE LOOK, EVERY PAGE (his demand, 2026-11-02: "EVERY PAGE, WINDOW, APP MUST ALL HAVE THE
   SAME CSS... WHY ARE YOU USING 3 DIFFERENT CSS, ON THE SAME DOMAIN").
   He was right about the symptom. Every page already loads this one file, but each role had its
   own colour block, so they looked like three different products. Now every role shares the SAME
   violet field and the SAME wallpaper he painted. Only the layout differs.
   ===================================================================================== */
body[data-role="control"],
body[data-role="host"],
body[data-role="dashboard"],
body[data-role="league"],
body[data-role="generator"],
body[data-role="logs"],
body[data-role="player"],
body[data-role="v2r"] {
  background: linear-gradient(160deg, #4a1fa0 0%, #2c1269 55%, #1d0a4a 100%) fixed;
  color: #fff;
}
/* the artwork behind all of them, with the same veil, so no page looks like a different app */
body[data-role="control"]::before,
body[data-role="host"]::before,
body[data-role="dashboard"]::before,
body[data-role="logs"]::before,
body[data-role="player"]::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: url('/images/bg-phone.webp') center / cover no-repeat;
  opacity: .9;
}
body[data-role="control"]::after,
body[data-role="host"]::after,
body[data-role="dashboard"]::after,
body[data-role="logs"]::after,
body[data-role="player"]::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40, 12, 96, .5) 0%, rgba(8, 4, 22, .78) 60%, rgba(0, 0, 0, .9) 100%);
}
/* the television keeps the wide artwork, but the same violet mood under it */
body[data-role="screen"],
body[data-role="scoreboard"] {
  background-color: #1d0a4a;
}
/* one type scale, one accent, one button shape, on every role */
body[data-role] { font-family: 'OpenDyslexic', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body[data-role] button, body[data-role] .btn {
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

/* THE FRAME MUST HUG THE CODE (his screenshot 2026-11-02: the white board was twice the width of the QR,
   so his orange code sat in the left half of an empty white box). The box takes the size of the code,
   the code fills the box, and both are square because a QR is square. */
.screen-join-qr {
  width: min(48vh, 100%) !important;
  max-width: 100%;
  padding: 1.4vmin !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.screen-join-qr-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: .8vmin;
}
.screen-join-qr canvas { width: 100% !important; height: auto !important; display: block; }

/* HIS OWN TV BACKGROUNDS (2026-11-02). pre_quiz_purple_orange while the room arrives, and the quieter
   in_quiz_purple behind the questions. Both 1920x1080, both under 65 KB, both drawn by him. */
body[data-role="screen"] {
  background: #12053a url('/images/tv-join.webp') center / cover no-repeat fixed;
}
/* and the step-by-step way in, on the left panel, readable from a few metres away */
.screen-steps { text-align: left; margin: .4vmin 0 0; }
.screen-steps-head {
  margin: 0 0 .6vmin; text-align: center; color: #ffd200; font-weight: 900;
  letter-spacing: .14em; font-size: clamp(.6rem, 1.5vmin, 1.15rem);
}
.screen-steps-list {
  margin: 0; padding-left: 1.5em; color: rgba(255, 255, 255, .86);
  font-size: clamp(.55rem, 1.3vmin, 1rem); line-height: 1.35;
}
.screen-steps-list li { margin: 0 0 .5vmin; }

/* BRIGHTNESS FOR A TELEVISION (his report 2026-11-02). Panels lose the dark end badly, so the veil that
   protected the text now sits at a fraction of what it was, and the artwork is lifted instead. */
body[data-role="screen"] .screen-wrap::before { background: rgba(0, 0, 0, .16); }
body[data-role="screen"] { filter: saturate(1.06) brightness(1.04); }
/* the code on the bright field: a white plate so it reads from the far side of a room */
.screen-join-stage { display: flex; align-items: center; justify-content: center; height: 100%; }
.screen-join-qr {
  width: min(62vh, 40vw) !important; aspect-ratio: 1 / 1; background: #fff;
  padding: 1.6vmin !important; border-radius: 2vmin; box-shadow: 0 0 6vmin rgba(255, 255, 255, .18);
}
.screen-join-qr-img { width: 100% !important; height: 100% !important; object-fit: contain; }

/* =====================================================================================
   THE DOOR, AS HE SKETCHED IT (2026-11-02): the name SPLIT around his code.
   DJ GRAHAM'S above it, QUIZ below it, both big, bold and centred - so the code sits inside the
   title instead of beside it. The left panel also earned width: his four scan steps were wrapping
   on every line and looked cramped.
   ===================================================================================== */
.screen-wrap { grid-template-columns: minmax(15rem, 22%) minmax(0, 1fr) !important; }
.screen-brand-top, .screen-brand-bottom {
  margin: 0; text-align: center; color: #fff; font-weight: 900; letter-spacing: .1em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .65);
  line-height: 1;
}
.screen-brand-top { font-size: clamp(1.1rem, 4.2vmin, 3.4rem); margin-bottom: 1.2vmin; }
.screen-brand-bottom { font-size: clamp(1.3rem, 5vmin, 4.2rem); margin-top: 1.2vmin; letter-spacing: .22em; }
/* the left panel: more air, bigger steps, nothing touching the edge */
body[data-role="screen"] aside { padding: 2.4vmin 1.6vmin; }
.screen-steps-list { font-size: clamp(.62rem, 1.5vmin, 1.15rem); line-height: 1.45; padding-left: 1.3em; }
.screen-steps-head { font-size: clamp(.68rem, 1.7vmin, 1.3rem); letter-spacing: .16em; }
.screen-presents, .screen-tagline, .screen-url { font-size: clamp(.58rem, 1.4vmin, 1.05rem); }
/* the code sits between the two halves of the name, so it needs a touch less room */
.screen-join-qr { width: min(54vh, 34vw) !important; }

/* =====================================================================================
   THE QUESTION MUST OWN THE TELEVISION (his report, 2026-11-02: "It is squashed in the left
   hand tiny column. cannot read, or see the pictures").
   MEASURED, not guessed: on a 1920x1080 screen the question box rendered 297px wide, the
   heading 161px wide with a 45px font, and the picture 78px. The cause was not the render
   function - it emitted `.screen-wrap no-join` correctly - it was eight competing
   `grid-template-columns` rules for `.screen-wrap`, four of them `!important`, with the LAST
   one winning at line 1296 and ignoring `no-join` completely.
   The fix is one rule that outranks them: two classes beat one class at equal !important, so
   `no-join` (a live question) always collapses to a single full-width column. The join screen
   keeps its own panel width untouched - this rule cannot affect it.
   ===================================================================================== */
.screen-wrap.no-join { grid-template-columns: minmax(0, 1fr) !important; }
/* and while a question is live the standings rail keeps its column, but the question may use
   every pixel left over - no nested percentage ceilings. */
.screen-wrap.no-join .screen-main { width: 100%; max-width: 100%; }
.screen-wrap.no-join .screen-question { min-width: 0; }
.screen-wrap.no-join .screen-top h2 { font-size: clamp(1.8rem, 4.2vmin, 4.6rem); }
.screen-wrap.no-join .screen-pic { max-width: 34%; }

/* AUTO ROUND: the button says what it is doing, and while it is on the console says so plainly. */
.ctl-auto { border-color: #a86bff; color: #ffd200; font-weight: 800; letter-spacing: .06em; }
.ctl-auto.ctl-next { background: #3a1d00; }

/* ============================================================================================
   THE PLAYER PHONE: THE LOCK BUTTON IS ALWAYS ON SCREEN - 2026-11-09

   Graham: "The player screen/ page must fit any smart phone in mobile view. No one should have to
   scroll to lock in the answer."

   So the player page is not a scrolling document at all: it is a column exactly one viewport tall,
   and the four choices shrink to share what is left rather than pushing LOCK IN over the edge. The
   question may scroll INSIDE its own card if a question is unusually long - the button never moves.

   100dvh where the browser knows it (a phone's toolbar collapsing must not hide the button), 100vh
   as the fallback, and the safe-area insets so a notched phone does not clip it either.

   Verified by measuring a phone-sized render, not by eye: see the harness note in the README.
   ============================================================================================ */
/* THE PHONE PAGES ARE EXACTLY THE VIEWPORT. Graham, 2026-11-09 sent this block:
     html, body { margin:0; padding:0; width:100vw; height:100vh; overflow:hidden; box-sizing:border-box; }
   The intent is applied, with one substitution and one limit, both for reasons this file already
   records further up:

   1. WIDTH IS 100%, NOT 100vw. 100vw counts the scrollbar, so a page that ever shows one is 15 to 17px
      wider than the glass - that is exactly the overflow the television once cropped.
   2. THIS IS THE PLAYER AND THE HOST'S PHONE (and the player's :has selector reaches <html> so the
      document itself cannot scroll). It is NOT applied to the dashboard, the league, the logs or the
      generator: those are long lists, and overflow:hidden on them would clip content with no way to
      scroll to it.
   height uses dvh where the browser knows it, so a phone's collapsing toolbar cannot hide a button. */
:root:has(> body[data-role="player"]),
:root:has(> body[data-role="control"]),
body[data-role="player"],
body[data-role="control"] {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
:root:has(> body[data-role="player"]),
body[data-role="player"] {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* THE JOIN FORM IS THE ONE PHONE PAGE THAT MUST SCROLL. Graham, 2026-11-09: "CAnt scroll cant log in
   either" - with the pad's overflow:hidden in place, the join screen (badge, title, name, team, head
   count, friend code, the consent line and the Join button) was taller than his phone and the button sat
   below the fold with no way to reach it. The pad has nothing to scroll; the form does.

   Two selectors do the same job on purpose: [data-view="join"] is set by app.js, and the :has() form
   catches the page even if that marker never arrives. */
:root:has(> body[data-role="player"] main#view > form),
body[data-role="player"][data-view="join"],
body[data-role="player"]:has(main#view > form) {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body[data-role="player"][data-view="join"] main#view,
body[data-role="player"]:has(main#view > form) main#view {
  height: auto;
  max-height: none;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}
body[data-role="player"] main#view {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
body[data-role="player"] main#view > * { flex: 0 0 auto; }
body[data-role="player"] main#view > .q-card {
  /* A long question scrolls here, in its own box, so nothing below it is pushed off the glass.
     flex 0 1 auto is what lets it give up height: the choices keep their reachable floor and the LOCK
     button keeps its 56 px, so the QUESTION is the thing that shrinks on a small phone. Measured at
     320x568 without this: the lock button sat 74 px below the bottom of the screen. */
  flex: 0 1 auto;
  min-height: 0;
  max-height: 34dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body[data-role="player"] main#view > ul {
  /* THE FOUR CHOICES SHARE THE REMAINING HEIGHT, BUT NEVER BELOW A REACHABLE SIZE.
     Measured on a 320x568 phone with min-height:0 here: the rows collapsed to 21 px and so did the lock
     button - everything "fitted" and nothing was tappable. This floor is what stops that. The QUESTION
     card gives up its space instead, and scrolls inside itself. */
  flex: 1 1 auto;
  min-height: calc(4 * 46px + 3 * .5rem);
  display: grid;
  grid-auto-rows: minmax(46px, 1fr);
  gap: .5rem;
  margin: 0;
  padding: 0;
}
body[data-role="player"] main#view > ul > li { display: flex; min-height: 46px; }
body[data-role="player"] main#view > ul button.choice {
  width: 100%;
  height: 100%;
  min-height: 46px;
  padding: .35rem .8rem;
  font-size: clamp(.92rem, 3.6dvh, 1.2rem);
  line-height: 1.25;
  text-align: left;
  display: flex;
  align-items: center;
}
body[data-role="player"] #lockbtn {
  flex: 0 0 auto;
  min-height: 56px;
  margin-top: .2rem;
  font-size: clamp(1rem, 4dvh, 1.35rem);
}

/* ============================================================================================
   THE PHONE IS AN ANSWER PAD - 2026-11-09

   Graham sent two screenshots from his own phone, one at 100% and one at 50% zoom: both unreadable.
   The page was carrying a header, a points line, a question, a countdown ring, four whole sentences of
   answer text, a locked-in line, a player count and a referral code. It is a pad, so it is now a pad.

   The phone shows: the LETTER of each answer, LOCK IN, and one line of feedback. The words live on the
   television, where the room reads them, which is also what fixes the 50%-zoom overlap: a letter is
   legible at any size and cannot wrap into the next button.
   ============================================================================================ */
.pad {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  height: 100%;
  min-height: 0;
}
.pad-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(64px, 1fr);
  gap: .6rem;
}
/* THREE ANSWERS SIT THREE ACROSS, four sit two-by-two: the grid reads the count from the markup, not
   from a rule that has to be kept in step with the generator. */
.pad-grid[data-count="3"] { grid-template-columns: 1fr 1fr 1fr; }
.pad-key {
  font-family: var(--font, inherit);
  font-size: clamp(2.2rem, 11dvh, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--text, #fff);
  background: var(--bg, #121212);
  border: 3px solid var(--line, #3a3a3a);
  border-radius: 18px;
  min-height: 64px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.pad-key:active:not(:disabled) { transform: scale(.97); }
.pad-key[aria-pressed='true'] {
  background: var(--orange, #ff7a18);
  border-color: var(--orange, #ff7a18);
  color: #111;
}
.pad-key:disabled { opacity: .45; }
#lockbtn {
  flex: 0 0 auto;
  min-height: 72px;
  font-size: clamp(1.2rem, 4.6dvh, 1.6rem);
  font-weight: 900;
  letter-spacing: .08em;
  border-radius: 18px;
  border: 3px solid var(--orange, #ff7a18);
  background: var(--orange, #ff7a18);
  color: #111;
  cursor: pointer;
  touch-action: manipulation;
}
#lockbtn:disabled { background: #2a2a2a; border-color: #3a3a3a; color: rgba(255, 255, 255, .5); }
#lockbtn[data-locked='1'] { background: #1e3b1e; border-color: #4caf50; color: #c8f5c8; }
.pad-say { margin: .1rem 0 0; font-size: clamp(.95rem, 2.6dvh, 1.15rem); color: rgba(255, 255, 255, .86); }
.pad-say.is-right { color: #a6e22e; font-weight: 800; }
.pad-clock { margin: 0; font-size: clamp(.9rem, 2.4dvh, 1.1rem); color: var(--yellow, #ffd200); font-weight: 700; }
body[data-role="player"] .player-logout {
  margin-top: .5rem;
  align-self: center;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .45);
  font-size: .8rem;
  text-decoration: underline;
  cursor: pointer;
}

/* SHORT PHONES: THE JOIN FORM'S VERTICAL RHYTHM. Restoring the scroll made logging in possible again;
   this makes it one small flick instead of two. Measured at 320x568 before this rule: the page was
   817px tall against 568px of glass. On a short screen the badge, the labels and the consent line give
   back the room, and nothing that has to be tapped shrinks below the 44px touch target. */
@media (max-height: 700px) {
  body[data-role="player"] .join-badge { width: 68px; margin: 0 auto 6px; }
  body[data-role="player"] .join-name { font-size: 1.15rem; margin: 0 0 8px; }
  body[data-role="player"] label { margin-top: 5px; font-size: 0.64rem; }
  body[data-role="player"] input,
  body[data-role="player"] select { min-height: 44px; padding: 8px 10px; }
  body[data-role="player"] .consent { margin: 9px 0 8px; font-size: 0.74rem; line-height: 1.35; }
  body[data-role="player"] main#view > form > button[type="submit"] { min-height: 52px; }
}

/* ============================================================================================
   THE DOOR, AND THE DEVICE LIST - 2026-11-09

   The join screen is one question and one answer (his design: "I set a question as the entry point, the
   correct answer generates a DEVICE ID"), and the television lists those DEVICE IDs instead of
   INDIVIDUALS and TEAMS, because "DEVICE IS ALL THERE IS".
   ============================================================================================ */
.gate-question {
  margin: 4px 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
body[data-role="player"] form > button[type="submit"] {
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .08em;
  border-radius: 14px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #111;
}
body[data-role="player"] form > button[type="submit"]:disabled { background: #2a2a2a; border-color: #3a3a3a; color: rgba(255, 255, 255, .5); }

/* the console's door: set once, then left alone */
.host-gate { margin: 0 0 18px; padding: 12px 12px 14px; border: 1px solid #3a3a3a; border-radius: 12px; background: #131313; }
.host-gate h2 { margin: 0 0 8px; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow, #ffd200); }
.host-gate label { margin-top: 6px; }
.host-gate-save {
  width: 100%; min-height: 46px; margin-top: 10px; border-radius: 12px;
  border: 1px solid var(--orange, #ff7a18); background: rgba(168, 107, 255, .16); color: var(--orange, #ff7a18);
  font-weight: 800; letter-spacing: .06em;
}
.host-gate-state { margin: 8px 0 0; font-size: .82rem; color: #9a9a9a; }

/* a device that is not connected right now is dimmed, not hidden: it is still in the room's list */
.sb-row.sb-away .sb-who { opacity: .55; }

/* THE DOOR IS BUTTONS. He wrote the answer twice and still could not get in, so there is nothing to type:
   the options are big targets in the pad's own language, and one tap is coming in. Measured requirement:
   48px minimum, and legible at arm's length in a dark room. */
.gate-grid { gap: .5rem; grid-auto-rows: minmax(52px, auto); }
.gate-key {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  padding: 12px 14px;
  min-height: 52px;
  border-radius: 14px;
  border: 2px solid var(--line, #3a3a3a);
  background: var(--bg, #121212);
  color: var(--text, #fff);
  cursor: pointer;
  touch-action: manipulation;
}
.gate-key:active:not(:disabled) { transform: scale(.98); }
.gate-key[aria-pressed='true'] { background: var(--orange, #ff7a18); border-color: var(--orange, #ff7a18); color: #111; }
.gate-waiting { margin: 8px 0; color: rgba(255, 255, 255, .75); text-align: center; }

/* the console's version of the same door */
.host-gate-right { margin: 10px 0 0; }
.host-gate-right > p { margin: 0 0 6px; font-size: .78rem; color: #9a9a9a; }
.host-gate-opt { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.host-gate-opt input[type="text"] { flex: 1 1 auto; }
.host-gate-opt input[type="radio"] { flex: 0 0 auto; width: 22px; height: 22px; accent-color: var(--orange, #ff7a18); }

/* ============================================================================================
   THE VIOLET FIELD, the lime that answers, and the words that carry the meaning - 2026-11-09

   Graham: "Violets, Cyan, Yellow, Green, just like the KARAOKE CONSOLE ... our app colours MUST be colour
   blind friendly." So the page field is the console's violet gradient rather than flat black, the pressable
   things are lime, and the two states that used to be red-versus-green now differ in brightness AND in the
   word printed on them.
   ============================================================================================ */
body {
  background: var(--bg-field, linear-gradient(165deg, #4a1fa0 0%, #2c1269 52%, #1d0a4a 100%)) fixed;
}
/* the artwork pages keep their ember wallpaper, scrimmed over the violet so type still beats it */
body[data-role="player"],
body[data-role="host"],
body[data-role="dashboard"] {
  background-color: var(--bg);
}

/* WHAT YOU PRESS IS LIME. Lime on a violet field is the console's own pairing, and it is also the pair that
   survives every common form of colour blindness: they differ in hue and in lightness at once. */
button,
.pad-key,
.gate-key,
#lockbtn,
input[type="submit"] {
  border-color: var(--lime);
}
#lockbtn {
  background: var(--lime);
  border-color: var(--lime);
  color: #14210a;
}
#lockbtn:disabled { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .55); }
#lockbtn[data-locked='1'] { background: var(--cyan); border-color: var(--cyan); color: #06222a; }
.pad-key { border-color: rgba(255, 255, 255, .22); }
.pad-key[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); color: #14210a; }
.gate-key { border-color: rgba(255, 255, 255, .22); }
.gate-key[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); color: #14210a; }

/* THE THREE OUTCOMES, each one a different brightness and a different word:
     RIGHT      lime,   says "RIGHT"
     WRONG      amber,  says "Not this time"
     OUT OF TIME cyan,  says "time is up"
   No pair of these is left to hue alone. */
.pad-say.is-right, .verdict.right { color: var(--lime); font-weight: 800; }
.verdict.wrong, .verdict { color: var(--yellow); }
/* the phone's pad clock keeps the console's cyan; the television's countdown is its own colour, set on
   .tv-digits (a screen-only rule), so the paused state can dim it without an id rule winning instead */
.pad-clock { color: var(--cyan); }
body[data-role="screen"] .tv-digits { color: #ff8a2b; }
body[data-role="screen"] .tv-clock.waiting .tv-digits { color: rgba(255, 255, 255, .42); }
.sb-head, .sb-label { color: var(--yellow); }

/* WHY THE SCREEN LOOKS LIKE THIS. Said in words on the join screen: the type is OpenDyslexic because a
   reader with dyslexia has to be able to read the question they came for, and the colours are chosen to
   survive colour blindness. Small, quiet, and never in the way of the tap. */
.readable-note {
  margin: 10px 0 4px;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--muted, rgba(255, 255, 255, .72));
  text-align: center;
}
/* the one-button door: no question set, so the room is open and this says so without looking broken */
.gate-open { text-align: center; font-size: 1.15rem; letter-spacing: .06em; }

/* THE DEVICE ID ON THE DEVICE ITSELF. Small, at the top of the pad, always visible: with no names in the
   room, this line is the only thing that ties the phone in a hand to the row on the television. */
.pad-id {
  margin: 0 0 .35rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan, #3fd0e0);
  text-align: center;
  font-weight: 700;
}
/* the pad before the clock: drawn, greyed, and explained in four words */
.pad-wait { margin: .4rem 0 0; font-size: .9rem; color: var(--muted, rgba(255, 255, 255, .72)); text-align: center; }

/* ============================================================================================
   THE TELEVISION, MEASURED - 2026-11-09

   From a DOM dump and a 1920x1080 screenshot of the live /tv:
     - the centre QR was a blank white plate (a 100% height on an auto-height box sizes it to nothing)
     - the artwork behind it also carries JOIN THE QUIZ, the address and the instructions, so the page's own
       words landed on top of the painted ones: four dim layers, which is exactly the muddled look he called
       "an app from the 1980's"

   ONE SET OF WORDS. The screen page now paints the violet field and says everything itself, in the console's
   palette, at sizes that survive a projector.
   ============================================================================================ */
body[data-role="screen"] {
  background: var(--bg-field, linear-gradient(165deg, #4a1fa0 0%, #2c1269 52%, #1d0a4a 100%)) fixed;
}
/* the join code: a real square that cannot collapse, on an opaque white plate so a phone camera reads it
   from the back of the room */
.screen-join-qr,
.screen-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 1.4vmin;
  border-radius: 1.6vmin;
  width: min(52vh, 40vw);
  max-width: 100%;
  aspect-ratio: 1 / 1;
}
.screen-join-qr-img,
.screen-join-qr canvas,
.screen-qr canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
/* the words around it: white and cyan on violet, never smaller than a person at ten metres can read */
.screen-brand-top,
.screen-brand-bottom {
  color: #fff;
  margin: 0;
}
.screen-url { color: #fff !important; }
.screen-steps-list li { color: rgba(255, 255, 255, .92); }
.screen-steps-head { color: var(--cyan, #3fd0e0); }

/* THE AUTO HOLDS, on the control page: a label, three taps and a number. Small on purpose - he sets them once
   and touches them rarely, and they must never compete with START and REVEAL. */
.ctl-holds {
  display: flex; align-items: center; gap: 6px; margin: 6px 0 2px;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.ctl-holds-label { color: var(--cyan, #3fd0e0); font-weight: 800; min-width: 88px; }
.ctl-hold {
  min-height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font-weight: 700;
}
.ctl-hold-on { background: var(--lime, #a6e22e); border-color: var(--lime, #a6e22e); color: #14210a; }
.ctl-hold-num {
  width: 62px; min-height: 34px; text-align: center; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .3); color: #fff;
}

/* THE MASCOTS ON SCREEN (his avatars, 2026-11-09). Round, on the violet field, no visible box: the animal is
   the identity now, and the code underneath it is the receipt. */
.pad-avatar {
  display: block;
  width: clamp(64px, 16vmin, 96px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto .35rem;
  border: 2px solid rgba(166, 226, 46, .55);   /* a lime rim, the app's own "this is yours" colour */
  background: #241058;
}
.sb-mascot {
  width: 1.9vmin;
  min-width: 26px;
  max-width: 44px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-right: .5vmin;
  vertical-align: middle;
  background: #241058;
}

/* THE FOURTH TILE (his ask, 2026-11-09: "the D could become an advertisement, notice, Number of questions
   counting and total ... Valuable real estate"). Not a button, not tappable, same shape as the letters so the
   pad still reads as one object. It carries where they are, and it is deliberately quieter than the keys. */
.pad-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(36, 16, 88, .55);
  color: var(--cyan, #3fd0e0);
  cursor: default;
}
.pad-info-big { font-size: clamp(1.1rem, 4.2dvh, 1.9rem); font-weight: 900; letter-spacing: .04em; line-height: 1; }
.pad-info-small { font-size: clamp(.6rem, 1.9dvh, .8rem); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
/* the control page's BEGIN ROUND: unmissable, and separate from START */
.ctl-begin { margin: 14px 0 6px; }
.ctl-begin-round { margin: 0 0 8px; color: var(--yellow, #ffd200); font-weight: 800; letter-spacing: .06em; text-align: center; }
.ctl-begin-btn { width: 100%; }

/* WHERE HE IS, and the foot of the control page. The position line is the first thing on the page during a
   night, so it is yellow on the violet field and small enough not to compete with the question. */
.ctl-here {
  margin: 0 0 8px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow, #ffd200);
  font-weight: 800;
}
.ctl-tail { margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }


/* ============================ THE PAD, MEASURED TO FIT 2026-11-10 ============================
   His report 2026-11-10: "the page doesn't fit properly and the quiz overpowers the A B C choices".

   Two causes, both in the old rules:
     1. with three answers the grid was three columns, so the fourth tile (.pad-info, the question
        counter) wrapped onto a SECOND row and claimed a whole 1fr of the screen - the counter took
        half the height the letters needed;
     2. .pad{height:100%} sat inside a main that had padding and no definite height, so 100% resolved
        to auto: the column grew past the glass and the page scrolled mid-question.

   The fix is scoped to data-view="pad" on purpose. The JOIN form is also data-role="player", and
   pinning the body with overflow:hidden there would hide its buttons on a short phone - the very bug
   that was fixed by restoring the scroll on 2026-11-09.
   ============================================================================================ */
body[data-role="player"][data-view="pad"] {
  height: 100dvh;                       /* not min-height: the pad must never grow past the glass */
  overflow: hidden;                     /* and must never scroll mid-question */
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
}
body[data-role="player"][data-view="pad"] main#view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  padding: 8px;
  /* the door's own card colour, so the pad belongs to the same sheet as the join form */
  background: rgba(13, 18, 51, .72);
}
body[data-role="player"][data-view="pad"] .pad {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  gap: .5rem;
}
/* identity, not the game: the mascot and the device code give way first on a short screen */
body[data-role="player"][data-view="pad"] .pad-avatar { width: clamp(38px, 9vmin, 62px); margin-bottom: .1rem; }
body[data-role="player"][data-view="pad"] .pad-id { margin: 0; font-size: .72rem; letter-spacing: .08em; }

/* THE KEYS FILL WHAT IS LEFT. One row of letters, then a slim strip for the counter, so the counter
   can never take a row the thumb needs. */
body[data-role="player"][data-view="pad"] .pad-grid {
  flex: 1 1 auto;
  min-height: 0;
  gap: .5rem;
  grid-template-rows: minmax(0, 1fr) auto;
}
body[data-role="player"][data-view="pad"] .pad-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
body[data-role="player"][data-view="pad"] .pad-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
body[data-role="player"][data-view="pad"] .pad-grid[data-count="4"] {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
}
body[data-role="player"][data-view="pad"] .pad-info {
  grid-column: 1 / -1;
  min-height: 30px;
  flex-direction: row;
  gap: 10px;
  border-radius: 10px;
  background: rgba(168, 107, 255, .10);
  border-color: rgba(168, 107, 255, .38);
}
body[data-role="player"][data-view="pad"] .pad-info-big { font-size: clamp(.95rem, 2.6dvh, 1.35rem); }
body[data-role="player"][data-view="pad"] .pad-info-small { font-size: clamp(.58rem, 1.7dvh, .74rem); }

/* A KEY THAT LOOKS LIKE A KEY: a lit top edge, a dark bottom edge, and one soft shadow underneath.
   Cheap, drawn in CSS, and it survives at any size because it is proportional, not a bitmap. */
body[data-role="player"][data-view="pad"] .pad-key {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #2a1663, #1b0d42);
  border: 2px solid rgba(168, 107, 255, .42);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -3px 0 rgba(0, 0, 0, .42),
    0 8px 18px rgba(6, 2, 24, .45);
  color: #fff;
}
body[data-role="player"][data-view="pad"] .pad-key[aria-pressed='true'] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 50%),
    #a86bff;
  border-color: #d3c4ff;
  color: #1d0a4a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -3px 0 rgba(60, 20, 120, .5),
    0 0 0 3px rgba(168, 107, 255, .35),
    0 8px 18px rgba(6, 2, 24, .45);
}

/* LOCK IN: the one filled key. Violet = identity and the thing to press; the grey and the green it
   used to carry were the only two colours in the app that belonged to no palette. */
body[data-role="player"][data-view="pad"] #lockbtn {
  border: 2px solid rgba(0, 0, 0, .28);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 52%), #a86bff;
  color: #1d0a4a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -3px 0 rgba(60, 20, 120, .45),
    0 8px 18px rgba(6, 2, 24, .45);
}
body[data-role="player"][data-view="pad"] #lockbtn:disabled {
  background: rgba(168, 107, 255, .12);
  border-color: rgba(168, 107, 255, .32);
  color: rgba(255, 255, 255, .58);
  box-shadow: none;
}
body[data-role="player"][data-view="pad"] #lockbtn[data-locked='1'] {
  background: rgba(166, 226, 46, .16);
  border-color: #a6e22e;
  color: #dcf7b4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* GRAIN. Drawn, never downloaded: one inline SVG at 4% so it reads as texture on a projector and can
   never touch a contrast ratio. Fixed and behind everything, and it does not move, so there is nothing
   for prefers-reduced-motion to suppress. */
body[data-role="player"][data-view="pad"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* and one soft vignette, so the field reads as a lit surface rather than a flat fill */
body[data-role="player"][data-view="pad"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .07), rgba(0, 0, 0, 0) 62%),
              radial-gradient(100% 80% at 50% 110%, rgba(6, 2, 24, .45), rgba(0, 0, 0, 0) 60%);
}
/* the pad itself must sit above both of those layers */
body[data-role="player"][data-view="pad"] main#view { position: relative; z-index: 1; }

/* VERY SHORT SCREENS (a phone in landscape, or an old 568px handset): give the keys back the room the
   mascot was using. */
@media (max-height: 640px) {
  body[data-role="player"][data-view="pad"] .pad-avatar { display: none; }
  body[data-role="player"][data-view="pad"] #lockbtn { min-height: 56px; }
  body[data-role="player"][data-view="pad"] .pad-say,
  body[data-role="player"][data-view="pad"] .pad-clock { font-size: .82rem; margin: 0; }
}
/* the live-region notice is a <p> that is empty most of the time, and an empty <p> still costs a line
   box - 25px of the pad's budget for nothing. Hidden only when empty, so a real message still shows. */
body[data-role="player"][data-view="pad"] #flash:empty { display: none; }

/* ============================ ORANGE MEANS ACT NOW 2026-11-10 ============================
   His status scale, from 2026-11-01: "Orange = Arrival", green = done. The pad had lost that: the keys
   only woke up to a white-ish edge, which is invisible across a table in a dark pub.

   Orange now marks exactly one state - the clock is running, so tap now - and it is driven by
   body[data-live], which the clock ticker clears at zero. Locked in and revealed questions carry no
   orange at all, so the colour never lingers on a question that is finished.
   ============================================================================================ */
body[data-role="player"][data-view="pad"][data-live="1"] .pad-key:not([aria-pressed='true']) {
  border-color: #ff6a00;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -3px 0 rgba(0, 0, 0, .42),
    0 0 0 3px rgba(255, 106, 0, .30),
    0 8px 18px rgba(6, 2, 24, .45);
}
/* the pressed key keeps its violet fill - "this one is mine" - and takes the orange ring so it is still
   obviously part of a live question */
body[data-role="player"][data-view="pad"][data-live="1"] .pad-key[aria-pressed='true'] {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -3px 0 rgba(60, 20, 120, .5),
    0 0 0 3px rgba(255, 106, 0, .55),
    0 8px 18px rgba(6, 2, 24, .45);
}
/* LOCK IN is the thing to hit: orange fill while the clock runs, and the dark ink that measures 6.12:1 */
body[data-role="player"][data-view="pad"][data-live="1"] #lockbtn:not([data-locked='1']) {
  border-color: #ff8a2b;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 52%), #ff6a00;
  color: #1d0a4a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -3px 0 rgba(120, 40, 0, .45),
    0 0 0 3px rgba(255, 106, 0, .28),
    0 8px 18px rgba(6, 2, 24, .45);
}
body[data-role="player"][data-view="pad"][data-live="1"] #lockbtn:not([data-locked='1']):disabled {
  background: rgba(255, 106, 0, .16);
  border-color: rgba(255, 106, 0, .5);
  color: rgba(255, 255, 255, .72);
  box-shadow: none;
}

/* ---- S.ORION269.COM ON THE TELEVISION (his ask, 2026-11-16) --------------------------------
   The break slides are their own Pages site, so they run in an iframe that fills the glass. Two
   pieces of ours sit on top: a DOOR CARD in the top-right corner, exactly where their page draws
   its own QR (which points at play.whatsmybiz.app), and a thin strip at the bottom carrying the
   break countdown. Everything is in vh/vmin so a 32 inch venue panel and a 65 inch lounge TV agree. */
.slides-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #1d0a4a;
}
.slides-layer[hidden] { display: none; }

.slides-frame {
  position: absolute;
  inset: 0 0 9vh 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1d0a4a;
}

/* THEIR CODE LIVES HERE TOO, AND ITS SHADOW LEAKED. Their card is `min(26vh,20vw)` of the iframe, pinned
   to top:2.2vmin/right:3vmin with `box-shadow:0 6px 26px` - a shadow in PIXELS, so it reaches about 32px
   below their card at every screen size. Ours was a floating card that stopped just short of it, and the
   leftover dark fringe read as a second plate behind the first (he saw "2 overlapping qr codes" on his TV,
   2026-11-16).

   So this is a corner PANEL, not a card: flush to the top and right edges, a touch wider than theirs, and
   deep enough at the bottom to swallow their shadow whole. One white shape, one code, no second plate. */
.slides-door {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(min(31vh, 26vw) + 2.2vmin);
  padding: 1.9vmin 1.9vmin 4.4vmin;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5vmin;
  background: #fff;
  border-radius: 0 0 0 1.6vmin;
  /* only down and left: anything above or right of it is off the glass anyway, and a halo would just be
     the next thing that looks like another card */
  box-shadow: -.4vmin .7vmin 1.8vmin rgba(0, 0, 0, .38);
}

/* black on white, like the join code on the idle screen: a cheap venue panel scans this, a
   photographed one does not */
.slides-qr {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.slides-kicker {
  margin: 0;
  font-size: clamp(.58rem, 1.5vh, 1.1rem);
  letter-spacing: .18em;
  font-weight: 800;
  color: #c2410c;
}

.slides-url {
  margin: 0;
  font-size: clamp(.72rem, 2.1vh, 1.6rem);
  font-weight: 800;
  color: #1d0a4a;
  white-space: nowrap;
}

.slides-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9vh;
  display: flex;
  align-items: center;
  gap: 2.4vh;
  padding: 0 2.6vh;
  background: #12062e;
  border-top: 2px solid rgba(255, 255, 255, .16);
}

.slides-mark {
  margin: 0;
  font-size: clamp(.68rem, 1.9vh, 1.5rem);
  letter-spacing: .16em;
  font-weight: 800;
  color: rgba(255, 255, 255, .68);
}

.slides-clock {
  margin: 0 0 0 auto;
  font-size: clamp(1rem, 4.4vh, 3.4rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: #ffd200;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slides-clock:empty { display: none; }

/* ====================================================================================================
   THE TELEVISION, REBUILT (his approval, 2026-11-16, from tools/ui-mock)
   ----------------------------------------------------------------------------------------------------
   One reading order, the same on every state: WHO -> WHAT -> QUESTION -> ANSWERS -> DOOR.

   The old screen was a rounded box in the top third with two thirds of the glass empty below it, a
   standings column that collided with its own date, and answers that appeared somewhere else on the
   glass. This replaces it. Everything here is in vmin/vh, so a 1366 laptop, a 1920 venue television and
   a projector all show the whole screen at 100% zoom with nothing cropped - which was the original
   complaint that started this page's long life (his photograph, 2026-10-27, browser at 33% and 67%).

   The class prefix is tv- on purpose: the old .screen-* rules (forty of them, four !important) cannot
   touch this markup, so no older rule can quietly re-break the layout. The old rules are still in this
   sheet for the pages that legitimately use them; the television no longer does.
   ==================================================================================================== */

body[data-role="screen"] main#view {
  display: block;
  width: 100%;
  max-width: none;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

/* THE FRAME: fixed to the glass, three rows, never scrolls. Fixed rather than in-flow because the
   television must be exactly one screenful whatever the browser does with body padding. */
.tv-root {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1.6vmin;
  padding: 2.2vmin 2.6vmin 2vmin;
  box-sizing: border-box;
  overflow: hidden;
  --tv-line: rgba(255, 255, 255, .17);
  --tv-dim: rgba(255, 255, 255, .6);
}
.tv-root > * { min-width: 0; min-height: 0; }

/* ---- top bar: who, what, how long ---------------------------------------------------------------- */
.tv-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.2vmin;
  padding-bottom: 1.2vmin;
  border-bottom: 1px solid var(--tv-line);
}
.tv-who { display: flex; align-items: center; gap: 1.4vmin; flex: none; }
.tv-badge { height: 6.4vmin; width: auto; display: block; border-radius: .8vmin; }
.tv-name { margin: 0; font-size: 2.2vmin; line-height: 1.02; letter-spacing: .1em; font-weight: 700; }
.tv-name span { display: block; }
.tv-name span + span { color: #ffd200; }

.tv-round { display: flex; align-items: baseline; gap: 1.4vmin; min-width: 0; }
.tv-round-name {
  font-size: 2vmin; letter-spacing: .16em; font-weight: 700; color: rgba(255, 255, 255, .82);
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-qcount { font-size: 2vmin; letter-spacing: .1em; color: var(--tv-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

.tv-clock { margin-left: auto; display: flex; align-items: baseline; gap: .7vmin; flex: none; }
.tv-digits {
  font-size: 4.4vmin; font-weight: 700; line-height: 1; color: #ff8a2b;
  font-variant-numeric: tabular-nums;
}
/* paused: the window it will run, dimmed, so "20" is never mistaken for a countdown that has started */
.tv-clock.waiting .tv-digits { color: rgba(255, 255, 255, .4); }
.tv-unit { font-size: 1.5vmin; letter-spacing: .2em; color: var(--tv-dim); }

/* how far through the round the room is - a glance, not a sentence */
.tv-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: rgba(255, 255, 255, .12); }
.tv-progress i { display: block; height: 100%; background: #ffd200; }

.tv-tag {
  flex: none;
  padding: .6vmin 1.4vmin;
  border-radius: .8vmin;
  background: rgba(255, 138, 43, .12);
  border: 1px solid #ff8a2b;
  color: #ff8a2b;
  font-size: clamp(.7rem, 1.8vmin, 2rem);
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ---- the middle ---------------------------------------------------------------------------------- */
.tv-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
/* a picture takes a fixed share on the right; the question and answers keep the rest */
.tv-stage.has-pic { grid-template-columns: minmax(0, 1fr) minmax(0, 30%); gap: 2.6vmin; }

.tv-ask { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.4vmin; min-height: 0; }
/* BEFORE THE CLOCK the question owns the middle of the glass, because it is the only thing the room has
   to read. Starting the clock makes room for the answers - one reflow, on purpose. */
.tv-stage.is-pre .tv-ask { grid-template-rows: minmax(0, 1fr) auto; }

.tv-question {
  margin: 0;
  font-size: clamp(1.5rem, 5vmin, 6.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .01em;
  max-width: 26ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.tv-stage.is-pre .tv-question { font-size: clamp(1.6rem, 6.4vmin, 8rem); align-self: center; }

/* the answers: full-width rows with a letter chip - the Millionaire shape, readable from the back */
.tv-answers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1vmin;
  min-height: 0;
}
.tv-answers li {
  display: flex;
  align-items: center;
  gap: 1.8vmin;
  min-height: 8.2vmin;
  padding: 0 1.8vmin;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--tv-line);
  border-radius: 1.1vmin;
  min-width: 0;
}
.tv-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.4vmin;
  height: 5.4vmin;
  border-radius: .8vmin;
  background: #ffd200;
  color: #1d0a4a;
  font-size: 3vmin;
  font-weight: 700;
}
.tv-choice { font-size: clamp(.95rem, 3vmin, 4rem); line-height: 1.14; min-width: 0; }
/* the right row is only ever marked after the reveal: a highlight before it is the answer */
.tv-answers li.right { border-color: #a6e22e; background: rgba(166, 226, 46, .16); }
.tv-answers li.right .tv-letter { background: #a6e22e; color: #10210a; }

.tv-hush {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.2vmin;
  font-size: 1.9vmin;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .68);
}
.tv-hush i { width: .9vmin; height: .9vmin; border-radius: 50%; background: #ffd200; display: block; flex: none; }

.tv-got { margin: 0; font-size: clamp(.8rem, 2.1vmin, 2.6rem); color: rgba(255, 255, 255, .84); }
.tv-got-label { color: #a6e22e; font-weight: 700; letter-spacing: .08em; }
.tv-got-names { color: rgba(255, 255, 255, .84); }
.tv-fastest { margin: 0; font-size: clamp(.75rem, 1.9vmin, 2.2rem); color: #ff8a2b; letter-spacing: .06em; }

/* the picture: contain, capped both ways, so a tall or wide photo shrinks instead of being sliced */
.tv-pic { min-width: 0; min-height: 0; display: grid; align-content: center; justify-items: center; gap: .6vmin; }
.tv-pic img.picture {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1vmin;
  border: 1px solid var(--tv-line);
  background: rgba(0, 0, 0, .3);
}
.tv-credit { margin: 0; font-size: 1.1vmin; color: rgba(255, 255, 255, .45); text-align: center; }

/* ---- the door, never in a different place --------------------------------------------------------- */
.tv-foot { display: flex; align-items: center; gap: 2vmin; padding-top: 1.2vmin; border-top: 1px solid var(--tv-line); }
.tv-door { display: flex; align-items: center; gap: 1.4vmin; min-width: 0; }
.tv-door canvas.tv-qr {
  flex: none;
  width: 6.6vmin;
  height: 6.6vmin;
  box-sizing: content-box;
  padding: .4vmin;
  background: #fff;
  border-radius: .8vmin;
  display: block;
}
.tv-door-words { min-width: 0; }
.tv-lead { margin: 0; font-size: 1.3vmin; letter-spacing: .2em; color: #ff8a2b; font-weight: 700; }
.tv-addr { margin: 0; font-size: 2.1vmin; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-tagline { margin: 0; font-size: 1.8vmin; letter-spacing: .12em; color: var(--tv-dim); }

.tv-count { margin: 0 0 0 auto; font-size: 1.7vmin; letter-spacing: .12em; color: var(--tv-dim); white-space: nowrap; }
.tv-count b { color: #a6e22e; font-variant-numeric: tabular-nums; }

/* ---- nothing asked yet: the door, enormous --------------------------------------------------------- */
.tv-stage.is-join { place-items: center; }
.tv-join { display: grid; place-items: center; align-content: center; gap: 1.6vmin; min-height: 0; max-width: 100%; }
.tv-join-lead { margin: 0; font-size: 2vmin; letter-spacing: .3em; color: #ff8a2b; font-weight: 700; }
.tv-join-qr {
  width: 36vh;
  max-width: 60vw;
  height: auto;
  box-sizing: content-box;
  padding: .9vmin;
  background: #fff;
  border-radius: 1.4vmin;
  display: block;
}
.tv-join-addr { margin: 0; font-size: clamp(1.4rem, 4.6vmin, 5.6rem); font-weight: 700; letter-spacing: .02em; }

/* ---- END OF ROUND / FINAL SCORES / PRIZE GIVING ---------------------------------------------------- */
.tv-banner {
  align-self: center;
  display: grid;
  align-content: center;
  gap: 1.6vmin;
  padding: 2.6vmin;
  border: 2px solid #ffd200;
  border-radius: 1.4vmin;
  background: rgba(22, 18, 10, .78);
  text-align: center;
  min-width: 0;
}
.tv-banner p { margin: 0; color: #ffd200; font-size: clamp(1.5rem, 5vmin, 7rem); font-weight: 800; letter-spacing: .05em; text-wrap: balance; }
.tv-banner-left { color: #fff !important; font-size: clamp(1.2rem, 4.4vmin, 6rem) !important; font-variant-numeric: tabular-nums; }
.tv-banner-line { color: #fff !important; font-size: clamp(1rem, 2.6vmin, 3.6rem) !important; letter-spacing: .02em !important; }
.tv-banner.prize { border-color: #a6e22e; background: rgba(12, 24, 14, .8); }
.tv-banner.prize p { color: #a6e22e; }

/* A SHORT OR NARROW GLASS (a laptop at 1366x768, or a phone looking at /tv): the type keeps a floor so it
   stays readable, and the picture gives way first rather than the words. */
@media (max-height: 620px) {
  .tv-root { gap: 1vmin; padding: 1.4vmin 1.8vmin 1.2vmin; }
  .tv-badge { height: 5vmin; }
  .tv-answers li { min-height: 6.6vmin; }
}
@media (max-width: 900px) {
  .tv-stage.has-pic { grid-template-columns: minmax(0, 1fr); }
  .tv-pic { display: none; }
}

/* ====================================================================================================
   THE RUN BAR - his four verbs, under his thumb (2026-11-16)
   ----------------------------------------------------------------------------------------------------
   "ASK QUESTION, START CLOCK, REVEAL ANSWER, NEXT QUESTION. 4 buttons that should be all." He hosts with
   the phone in his left hand and the microphone in his right, walking the room, so this bar is pinned to
   the bottom of the glass and exactly ONE of the four is live at any moment: a wrong tap is impossible
   rather than merely unlikely. Everything else moved into the SETUP fold above it.
   ==================================================================================================== */
.runbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  gap: .5rem;
  padding: .55rem .65rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: #12062e;
  border-top: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
}

.runbar-info { display: flex; align-items: center; gap: .6rem; min-height: 2.3rem; min-width: 0; }
.runbar-count { flex: none; color: #ffd200; font-weight: 800; font-size: .78rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.runbar-phase {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  letter-spacing: .1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* THE BRAKE: bigger, and two taps. It sits on the top line, a full thumb away from NEXT below it. */
.runbar-stop {
  flex: none;
  width: auto;              /* the sheet gives every button width:100%; this one is a label */
  min-height: 2.3rem;
  padding: 0 1.1rem;
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #ffd200;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: .5rem;
}
/* armed: the one state where it shouts, and the only state in which a tap stops the room */
.runbar-stop.armed { color: #1d0a4a; background: #ffd200; border-color: #ffd200; }

.runbar-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.runbar-btn {
  min-height: 3.7rem;
  padding: 0;
  font: inherit;
  /* px/vw, not rem: Android raises the root font size, which made "REVEAL" run out of its own button.
     The word must fit the button at 390px wide; the button itself stays tall, which is what the thumb needs. */
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .7rem;
  -webkit-tap-highlight-color: transparent;
}
/* the live one: the only coloured thing on the phone during a question */
.runbar-btn.on { color: #1d0a4a; background: #ffd200; border-color: #ffd200; }
.runbar-btn.on:active { transform: translateY(1px); }
.runbar-btn:disabled { cursor: default; }

.runbar-gap { height: 11rem; }

/* THE SETUP FOLD: the desk, one tap below the four verbs */
.ctl-fold { margin-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.ctl-fold summary {
  padding: .9rem 0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #ffd200;
  cursor: pointer;
  list-style: none;
}
.ctl-fold summary::-webkit-details-marker { display: none; }
.ctl-fold summary::before { content: '+ '; }
.ctl-fold[open] summary::before { content: '- '; }
.ctl-fold-in { display: flex; flex-direction: column; gap: 1rem; padding-bottom: .6rem; }
