/* ==========================================================================
   Naija Feud — 1970s TV game-show cabinet.

   Roles for the three faces:
     Alfa Slab One  the name, and every number that matters (rank, points, score)
     Oswald         the board itself, prompts, labels, buttons
     JetBrains Mono the Day X/30 series label only, same across all 30 builds

   Radius rule, applied everywhere: cabinet 18, panels 9, chips 6,
   anything you can press is a pill.
   ========================================================================== */

:root {
  --display: 'Alfa Slab One', Georgia, serif;
  --ui: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --label: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ink: #14040a;
  --panel: #1e0d11;
  --panel-edge: #3d1a20;
  --lit-1: #452a09;
  --lit-2: #2b1804;

  --gold: #f2b824;
  --gold-hi: #ffd866;
  --gold-dim: #7a5613;
  --bone: #fbf3e4;
  --bone-soft: #cbb59a;
  --flame: #e2402f;

  --pad-x: clamp(0.75rem, 4vw, 1.25rem);
  --pad-t: max(0.5rem, env(safe-area-inset-top));
  --pad-b: max(1.5rem, env(safe-area-inset-bottom));

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-flip: cubic-bezier(0.2, 0.85, 0.25, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

/* No clipping anywhere above the board. WebKit flattens a descendant's
   preserve-3d context when an ancestor clips, which kills the reveal flip
   outright in Safari. The flex layout already guarantees nothing overflows
   (scratchpad/flip-3d-test.js asserts both halves of that), so scroll is
   held off with overscroll-behavior rather than overflow. */
body {
  font-family: var(--ui);
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------- the stage --- */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--pad-t) var(--pad-x) var(--pad-b);
  background:
    radial-gradient(130% 80% at 50% -10%, #851824 0%, #4c0c13 42%, #1c0407 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 13px, rgba(255, 255, 255, 0.035) 13px 26px);
  background-blend-mode: normal, overlay;
}

/* Retro tube scanlines. Fixed and inert so it never repaints with content. */
.stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 4px);
  opacity: 0.24;
}

/* ----------------------------------------------------------- the cabinet --- */

.cabinet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.6vh, 0.9rem);
  /* Column flex on the stage, so this genuinely grows to the viewport height
     and the board gets whatever is left after the fixed rows. */
  flex: 1 1 auto;
  width: 100%;
  max-width: 30rem;
  min-height: 0;
  max-height: 40rem;
  padding: 0.7rem clamp(0.6rem, 3vw, 1rem) 0.85rem;
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #241014 0%, #170a0d 55%, #1d0d11 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 216, 102, 0.16),
    inset 0 0 60px rgba(0, 0, 0, 0.7),
    0 24px 70px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------- marquee bulbs --- */

.bulbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  height: 8px;
  flex: none;
}

.bulbs i {
  justify-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, #6d4a0d 100%);
  opacity: 0.32;
  animation: chase 2.6s linear infinite;
  animation-delay: var(--d);
}

@keyframes chase {
  0%, 72%, 100% { opacity: 0.3; }
  12% { opacity: 1; }
}

/* Every correct reveal lights the whole frame for a beat. */
.is-flash .bulbs i {
  animation: none;
  opacity: 1;
  box-shadow: 0 0 10px rgba(242, 184, 36, 0.85);
}

/* ------------------------------------------------------------------- hud --- */

.hud {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: 0 0.15rem;
  border-bottom: 1px solid rgba(242, 184, 36, 0.18);
  padding-bottom: 0.5rem;
}

.readout {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
}

.readout__key {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

.readout__val {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.readout__val b { font-weight: inherit; }

.readout--score .readout__val { color: var(--bone); }

/* Score ticks up when points land. */
.readout--score.is-bump .readout__val {
  animation: bump 420ms var(--ease-out);
}

@keyframes bump {
  0% { transform: scale(1); }
  38% { transform: scale(1.22); color: var(--gold-hi); }
  100% { transform: scale(1); }
}

/* ---------------------------------------------------------------- prompt --- */

.prompt {
  flex: none;
  margin: 0;
  padding: 0 0.15rem;
  font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--bone);
}

.prompt.is-swap { animation: swap-in 460ms var(--ease-out) both; }

@keyframes swap-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- board --- */

.board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board.is-shake { animation: shake 380ms ease-in-out; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  38% { transform: translateX(6px); }
  58% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

/* Slots split whatever height the cabinet has. The cabinet's own max-height is
   what stops them growing into billboards on a tall phone. */
.slot {
  position: relative;
  flex: 1 1 0;
  min-height: 44px;
  perspective: 700px;
}

/* Fills by absolute offset, never by percentage height. `.slot` takes its
   height purely from flex distribution, and WebKit does not treat that as a
   definite height, so `height: 100%` resolves to auto there. With only
   absolutely-positioned children inside, auto collapses to zero and both faces
   paint as bare 1px hairlines: the board goes blank while the score keeps
   counting. Absolute offsets resolve against the padding box whatever the
   ancestor's height came from. */
.slot__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 620ms var(--ease-flip);
}

.slot.is-open .slot__inner { transform: rotateX(180deg); }

.slot__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.6rem 0 0.45rem;
  border-radius: 9px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Closed: dark panel, gold numeral, machined hatch across the blank. */
.slot__face--front {
  border: 1px solid var(--panel-edge);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 6px, transparent 6px 13px),
    linear-gradient(180deg, #241015, var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Open: the panel lights up warm. */
.slot__face--back {
  transform: rotateX(180deg);
  border: 1px solid rgba(242, 184, 36, 0.55);
  background: linear-gradient(180deg, var(--lit-1), var(--lit-2));
  box-shadow: inset 0 1px 0 rgba(255, 216, 102, 0.3);
}

.slot__rank {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1;
}

.slot__face--front .slot__rank {
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(242, 184, 36, 0.2);
}

.slot__face--back .slot__rank {
  color: var(--ink);
  background: var(--gold);
}

.slot__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--bone);
  overflow-wrap: break-word;
}

.slot__pts {
  flex: none;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

/* Gold bloom, fires once as the card lands face up. */
.slot__glow {
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 120% at 50% 50%, rgba(255, 216, 102, 0.75), transparent 70%);
}

.slot.is-open .slot__glow { animation: bloom 760ms ease-out; }

@keyframes bloom {
  0% { opacity: 0; transform: scale(0.86); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.06); }
}

/* Answers the player never found. Shown, but visibly not earned. */
.slot.is-missed .slot__face--back {
  border-color: rgba(203, 181, 154, 0.25);
  background: linear-gradient(180deg, #241419, #1a0d11);
}

.slot.is-missed .slot__rank {
  color: var(--bone-soft);
  background: rgba(203, 181, 154, 0.18);
}

.slot.is-missed .slot__text { color: var(--bone-soft); }
.slot.is-missed .slot__pts { color: var(--bone-soft); }
.slot.is-missed .slot__glow { animation: none; }

/* ------------------------------------------------------- strikes + nudge --- */

.rail {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  min-height: 26px;
  padding: 0 0.15rem;
}

.strikes {
  display: flex;
  gap: 0.35rem;
  flex: none;
}

/* Empty pips still carry a ghost X so the row reads as a strike counter
   before a single strike has landed. */
.pip {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: rgba(242, 184, 36, 0.22);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(242, 184, 36, 0.2);
}

.pip i {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
}

.pip i::before,
.pip i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}

.pip i::before { transform: translateY(-50%) rotate(45deg); }
.pip i::after { transform: translateY(-50%) rotate(-45deg); }

.pip.is-hit {
  color: var(--flame);
  background: rgba(226, 64, 47, 0.16);
  box-shadow: inset 0 0 0 1px rgba(226, 64, 47, 0.6);
}

.pip.is-hit i {
  animation: pip-pop 320ms var(--ease-out);
}

@keyframes pip-pop {
  0% { opacity: 0; transform: scale(0.4) rotate(-25deg); }
  60% { opacity: 1; transform: scale(1.25) rotate(6deg); }
  100% { opacity: 1; transform: none; }
}

.nudge {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: var(--bone-soft);
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.nudge.is-on { opacity: 1; }
.nudge.is-good { color: var(--gold-hi); }
.nudge.is-bad { color: var(--flame); }

/* ----------------------------------------------------------------- entry --- */

.entry {
  display: flex;
  gap: 0.5rem;
  flex: none;
}

.entry__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bone);
  transition: box-shadow 160ms ease-out;
}

.entry__input::placeholder { color: #6b5a46; }

.entry__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 184, 36, 0.55);
}

.entry__go {
  flex: none;
  height: 48px;
  min-width: 88px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 3px 0 #8f6710;
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.entry__go:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8f6710;
}

.entry__go:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 2px;
}

.entry__input:disabled,
.entry__go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------------------------------------------------------- strike stamp --- */

.stamp {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}

.stamp.is-on { animation: stamp 700ms var(--ease-out); }

@keyframes stamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-14deg); }
  22% { opacity: 1; transform: scale(1) rotate(-7deg); }
  70% { opacity: 1; transform: scale(1) rotate(-7deg); }
  100% { opacity: 0; transform: scale(1.08) rotate(-7deg); }
}

.stamp__x {
  position: relative;
  display: block;
  width: min(52vw, 15rem);
  height: min(52vw, 15rem);
}

.stamp__x i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 15%;
  border-radius: 8px;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(20, 4, 10, 0.85), 0 12px 40px rgba(226, 64, 47, 0.5);
}

.stamp__x i:first-child { transform: translateY(-50%) rotate(45deg); }
.stamp__x i:last-child { transform: translateY(-50%) rotate(-45deg); }

/* ------------------------------------------------------------ round call --- */

.call {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(20, 4, 10, 0.94) 12%, rgba(20, 4, 10, 0.94) 88%, transparent);
}

.call.is-on { animation: call 1100ms var(--ease-out); }

@keyframes call {
  0% { opacity: 0; transform: translateX(24%); }
  20% { opacity: 1; transform: none; }
  74% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(-18%); }
}

.call__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.call__no {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 26vw, 8rem);
  line-height: 0.9;
  color: var(--bone);
}

/* --------------------------------------------------------------- screens --- */

.screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: calc(var(--pad-t) + 1rem) var(--pad-x) calc(var(--pad-b) + 1rem);
  background: rgba(16, 3, 7, 0.93);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity 260ms var(--ease-out);
}

.screen.is-off {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.screen__inner {
  width: 100%;
  max-width: 22rem;
  text-align: center;
  animation: rise 440ms var(--ease-out) both;
}

.screen.is-off .screen__inner { animation: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Title. This one screen shows the curtain rather than hiding it, so the
   wordmark reads as a stage rather than a dialog over the board. */

.screen--title {
  background:
    linear-gradient(180deg, rgba(16, 3, 7, 0.55), rgba(16, 3, 7, 0.8)),
    radial-gradient(130% 80% at 50% -10%, #8f1a27 0%, #4c0c13 42%, #1c0407 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 13px, rgba(255, 255, 255, 0.04) 13px 26px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wordmark {
  margin: 0 0 1rem;
  font-family: var(--display);
  line-height: 0.86;
  text-transform: uppercase;
}

.wordmark__a,
.wordmark__b {
  display: block;
}

.wordmark__a {
  font-size: clamp(2.6rem, 15vw, 3.6rem);
  color: var(--bone);
  text-shadow: 0 3px 0 #5a1018;
}

.wordmark__b {
  font-size: clamp(3.6rem, 21vw, 5rem);
  color: var(--gold);
  text-shadow: 0 4px 0 #7a5613, 0 0 40px rgba(242, 184, 36, 0.35);
}

.lede {
  margin: 0 auto 1.5rem;
  max-width: 19rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bone-soft);
}

.fineprint {
  margin: 1.25rem auto 0;
  max-width: 19rem;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(203, 181, 154, 0.72);
}

.btn {
  display: inline-block;
  min-width: 11rem;
  height: 52px;
  padding: 0 2rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 4px 0 #8f6710, 0 14px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #8f6710, 0 8px 20px rgba(0, 0, 0, 0.45);
}

.btn:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 3px;
}

/* Sits in the between-rounds bar, where full height would cost board space. */
.btn--sm {
  min-width: 9.5rem;
  height: 46px;
  padding: 0 1.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

/* Between rounds. This one rides up as a sheet instead of covering the board,
   because the answers you missed have just been revealed behind it and reading
   them is the whole payoff of the round. */

.screen--tally {
  align-items: end;
  padding: 0;
  background: linear-gradient(180deg, transparent 0 72%, rgba(16, 3, 7, 0.45) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.screen--tally .screen__inner {
  max-width: 30rem;
  /* Bottom padding clears the fixed Day 07/30 label on a 320px screen, where
     the button and the label would otherwise share the same corner. */
  padding: 0.65rem clamp(0.9rem, 4vw, 1.3rem) calc(1.5rem + env(safe-area-inset-bottom));
  border: 1px solid var(--gold-dim);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #2a1218, #150a0d);
  box-shadow: 0 -20px 55px rgba(0, 0, 0, 0.65);
  animation: sheet 420ms var(--ease-out) both;
}

@keyframes sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}

.tally__verdict {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.tally__line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.1rem 0 0.5rem;
}

.tally__pot {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

.tally__unit,
.tally__found {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

.tally__found { margin-left: 0.9rem; }

/* End of game */

.final__label {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

.final__score {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(4.4rem, 26vw, 6.5rem);
  line-height: 0.86;
  color: var(--gold);
  text-shadow: 0 4px 0 #7a5613;
  font-variant-numeric: tabular-nums;
}

.final__verdict {
  margin: 0 auto 1.9rem;
  max-width: 17rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 6vw, 1.5rem);
  line-height: 1.2;
  color: var(--bone);
}

/* --------------------------------------------------------- day branding --- */

.day {
  position: fixed;
  z-index: 95;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(0.6rem, env(safe-area-inset-bottom));
  margin: 0;
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(203, 181, 154, 0.55);
  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------------------------ wide --- */

@media (min-width: 30rem) and (min-height: 40rem) {
  .cabinet { padding: 0.9rem 1.15rem 1.05rem; }
  .slot__face { padding: 0 0.85rem 0 0.55rem; }
  .slot__rank { width: 32px; height: 32px; font-size: 1rem; }
}

/* ------------------------------------------------------------ short view --- */
/* Landscape phones, and portrait once the on-screen keyboard takes half the
   screen. The board is the only thing worth the remaining height. */

@media (max-height: 34rem) {
  .cabinet { gap: 0.4rem; padding-top: 0.45rem; }
  .bulbs { display: none; }
  .hud { padding-bottom: 0.35rem; }
  .prompt { font-size: 1rem; line-height: 1.1; }
  .board { gap: 4px; }
  /* Board and cabinet both clip, so this floor can never push the entry row
     off screen. It only stops the slots collapsing into hairlines. */
  .slot { min-height: 26px; }
  .slot__rank { width: 24px; height: 24px; font-size: 0.8rem; }
  .rail { min-height: 22px; }
  .pip { width: 19px; height: 19px; }
  .entry__input, .entry__go { height: 44px; }
}

/* -------------------------------------------------------- reduced motion --- */
/* The flip is the point of this build, so it stays, but it stops travelling
   through 3D space and simply crossfades. Everything decorative goes quiet. */

@media (prefers-reduced-motion: reduce) {
  .bulbs i { animation: none; opacity: 0.55; }

  .slot__inner { transition: none; }
  .slot.is-open .slot__inner { transform: none; }
  .slot__face--front { transition: opacity 200ms linear; }
  .slot.is-open .slot__face--front { opacity: 0; }
  .slot__face--back { transform: none; opacity: 0; transition: opacity 200ms linear; }
  .slot.is-open .slot__face--back { opacity: 1; }
  .slot.is-open .slot__glow { animation: none; }

  .board.is-shake,
  .readout--score.is-bump .readout__val,
  .pip.is-hit i,
  .prompt.is-swap { animation: none; }

  .stamp.is-on { animation: stamp-flat 640ms linear; }
  @keyframes stamp-flat {
    0%, 100% { opacity: 0; }
    18%, 74% { opacity: 1; }
  }

  .call.is-on { animation: call-flat 950ms linear; }
  @keyframes call-flat {
    0%, 100% { opacity: 0; }
    18%, 74% { opacity: 1; }
  }

  .screen__inner,
  .screen--tally .screen__inner { animation: none; }
}
