/*
 * Lightning Round — Design D "Game Show"
 *
 * Palette, type and the signature skew/hard-shadow moves are lifted from the
 * GameShow.dc.html artboard on the "Lightning Round Redesign" canvas. The
 * artboard is a fixed 960x640 still; everything here is the fluid, stateful
 * version of those same tokens.
 *
 * The canvas note for this direction warns that "skewed shapes need care on
 * small screens", so --skew and --shadow-step both collapse to 0 under 720px.
 */

:root {
  /* stage */
  --stage: #120612;
  --panel: #23112a;
  --deep: #1a0f1f;
  --ink: #ffffff;

  /* lights */
  --magenta: #ff4fa3;
  --magenta-soft: #ff8cc4;
  --volt: #5865ff;
  --gold: #ffd34f;

  /* text */
  --lav: #a78bd8;
  --prose: #e9dcf5;
  --dim: #5b4a6a;

  /* the two signature moves */
  --skew: -4deg;
  --unskew: 4deg;
  --shadow-step: 6px;

  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', 'Arial Narrow', Arial, sans-serif;

  color-scheme: dark;
}

/* The loudest direction of the four, but motion is still opt-out. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--stage);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- stage --
 * Two raking stage lights and a footlight wash. Fixed, so they sit under
 * every screen rather than scrolling with the content.
 */
.stage-light {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.stage-light--left {
  left: -14vw;
  top: -20vh;
  width: 54vw;
  height: 150vh;
  background: linear-gradient(180deg, rgba(255, 79, 163, 0.28), transparent 70%);
  transform: rotate(28deg);
}
.stage-light--right {
  right: -16vw;
  top: -22vh;
  width: 54vw;
  height: 150vh;
  background: linear-gradient(180deg, rgba(88, 101, 255, 0.28), transparent 70%);
  transform: rotate(-28deg);
}
.stage-light--foot {
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, #2a0b2a);
}

.screen {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------ primitives */

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}

/* The skewed white badge from the artboard header. */
.flag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--stage);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.1em;
  transform: skewX(-12deg);
}
.flag > span {
  display: inline-block;
  transform: skewX(12deg);
}

.eyebrow {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--lav);
}

/* Hard offset shadow, never blurred — the whole look depends on it. */
.hard {
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--magenta);
}

.btn {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.1em;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  background: var(--gold);
  color: var(--stage);
  cursor: pointer;
  transform: skewX(var(--skew));
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn > span {
  display: inline-block;
  transform: skewX(var(--unskew));
}
.btn:hover:not(:disabled) {
  background: #ffe07a;
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--magenta);
  transform: skewX(var(--skew)) translate(-2px, -2px);
}
.btn:active:not(:disabled) {
  transform: skewX(var(--skew)) translate(0, 0);
  box-shadow: none;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
  border-color: var(--volt);
  color: var(--prose);
}
.btn--ghost:hover:not(:disabled) {
  background: rgba(88, 101, 255, 0.18);
}

:where(button, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- setup --
 * Three stages on one screen: pick a subject, meet the two champions who
 * host it, then join a side. The chosen portrait keeps the exact size it had
 * in the versus row and slides to the left, with the rest of the setup laid
 * out to the right of it.
 */

:root {
  /* One token drives portrait size in BOTH stage 2 and stage 3, which is what
   * makes the image "keep its size" when it moves left. */
  --champ-w: clamp(190px, 24vw, 420px);
}

.marquee-bar {
  text-align: center;
}
.marquee__title {
  font-family: var(--display);
  font-size: clamp(46px, 9vw, 88px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0;
}
.marquee__title em {
  font-style: normal;
  color: var(--magenta);
}
.marquee__sub {
  margin: 8px 0 0;
  color: var(--lav);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: var(--magenta);
  color: var(--stage);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  transform: skewX(-10deg);
}

/* ----------------------------------------------------------- versus row -- */

.versus {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 3vw, 32px);
}

.vs {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 64px);
  color: var(--gold);
  letter-spacing: 0.04em;
  padding-bottom: 16%;
  flex: 0 0 auto;
  transform: skewX(-8deg);
}

.champ {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.champ__pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  min-width: 0;
}

.champ__glow {
  position: absolute;
  left: 50%;
  bottom: 26%;
  width: 150%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  background: radial-gradient(circle, rgba(255, 211, 79, 0.42), transparent 62%);
}
.champ--b .champ__glow {
  background: radial-gradient(circle, rgba(88, 101, 255, 0.42), transparent 62%);
}

/* Frame holds the portrait and the placeholder in the same box, so a
 * champion with no art yet occupies exactly the same space. */
/* Square, because the delivered portraits are 600x600. A 2:3 frame would
 * letterbox every one of them and shrink the figure for no reason. */
.champ__frame {
  position: relative;
  display: block;
  width: var(--champ-w);
  aspect-ratio: 1 / 1;
}

.champ__img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: saturate(0.9) contrast(1.04) brightness(0.96);
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* Every portrait is now a real transparent cut-out, so nothing is masked — the
 * alpha channel does it, and a mask would only clip shoulders and hair.
 *
 * This escape hatch stays for any portrait that arrives with a painted-in
 * backdrop: set `bakedBackground: true` on that champion in champions.mjs and
 * the radial dissolve hides its rectangle. No champion needs it today. */
[data-baked='true'] .champ__img {
  object-fit: cover;
  object-position: 50% 20%;
  -webkit-mask-image: radial-gradient(
    closest-side ellipse at 50% 42%,
    #000 52%,
    rgba(0, 0, 0, 0.7) 76%,
    transparent 99%
  );
  mask-image: radial-gradient(
    closest-side ellipse at 50% 42%,
    #000 52%,
    rgba(0, 0, 0, 0.7) 76%,
    transparent 99%
  );
}

/* Shown only when a portrait file is missing. */
.champ__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--panel), var(--deep));
  border: 2px dashed var(--dim);
}
.champ[data-art='missing'] .champ__img {
  display: none;
}
.champ[data-art='missing'] .champ__fallback {
  display: flex;
}
.champ__mono {
  font-family: var(--display);
  font-size: clamp(44px, 9vw, 92px);
  line-height: 1;
  color: var(--lav);
  letter-spacing: 0.06em;
}
.champ__pending {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

/* Footlight: sinks the figure into the stage floor. */
.champ__frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--stage) 92%);
  pointer-events: none;
}

.champ__plate {
  position: relative;
  padding: 5px 14px;
  background: var(--dim);
  color: var(--prose);
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: 0.08em;
  transform: skewX(-12deg);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.champ__plate > span {
  display: inline-block;
  transform: skewX(12deg);
}

.champ__title {
  position: relative;
  font-size: clamp(11px, 1.3vw, 13px);
  line-height: 1.4;
  color: var(--lav);
  text-align: center;
  max-width: var(--champ-w);
}
.champ__spec {
  position: relative;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 0.1em;
  color: var(--gold);
  text-align: center;
  max-width: var(--champ-w);
  opacity: 0.8;
}
.champ--b .champ__spec {
  color: var(--volt);
}

.champ__bio-btn {
  position: relative;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.12em;
  min-height: 44px;
  padding: 8px 18px;
  background: transparent;
  border: 2px solid var(--dim);
  color: var(--prose);
  cursor: pointer;
  transform: skewX(var(--skew));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.champ__bio-btn > span {
  display: inline-block;
  transform: skewX(var(--unskew));
}
.champ__bio-btn:hover {
  border-color: var(--gold);
  background: rgba(255, 211, 79, 0.1);
}

.champ__pick:hover .champ__img {
  filter: saturate(0.95) contrast(1.08) brightness(1.02);
  transform: translateY(-3px);
}
.champ__pick:hover .champ__glow {
  opacity: 0.8;
}
.champ__pick:hover .champ__plate {
  background: var(--gold);
  color: var(--stage);
}
.champ--b .champ__pick:hover .champ__plate {
  background: var(--volt);
  color: var(--ink);
}

/* ------------------------------------------------------- stage 3 layout -- */

.step--go {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 34px);
}

/* The chosen champion, at exactly --champ-w — the same width they had in the
 * versus row — pinned left. */
.chosen {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.chosen .champ__glow {
  opacity: 1;
}
.chosen .champ__img {
  filter: saturate(1) contrast(1.06) brightness(1);
}
.chosen .champ__plate {
  background: var(--gold);
  color: var(--stage);
}
.chosen[data-side='b'] .champ__plate {
  background: var(--volt);
  color: var(--ink);
}
.chosen[data-side='b'] .champ__glow {
  background: radial-gradient(circle, rgba(88, 101, 255, 0.42), transparent 62%);
}

.chosen__panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.setup-actions--minor .btn {
  font-size: 16px;
  min-height: 44px;
  padding: 8px 16px;
}

/* ------------------------------------------------------------------ bio -- */

.bio {
  width: min(620px, 92vw);
  padding: 22px 24px 24px;
  background: var(--panel);
  color: var(--prose);
  border: 2px solid var(--gold);
  box-shadow: 12px 12px 0 var(--magenta);
}
.bio::backdrop {
  background: rgba(8, 3, 8, 0.78);
}
.bio__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.bio__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.bio__meta {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.bio__x {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
  background: transparent;
  border: 2px solid var(--dim);
  color: var(--prose);
  cursor: pointer;
}
.bio__x:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}
.bio__body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}
.bio__spec {
  margin: 4px 0 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(167, 139, 216, 0.2);
  font-size: 13px;
  line-height: 1.5;
  color: var(--lav);
}
.bio__spec b {
  color: var(--gold);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  min-height: 44px;
  background: var(--deep);
  color: var(--prose);
  border: 2px solid var(--dim);
  cursor: pointer;
  transform: skewX(var(--skew));
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chip > span {
  display: inline-block;
  transform: skewX(var(--unskew));
}
.chip:hover {
  border-color: var(--volt);
}
.chip[aria-pressed='true'] {
  background: var(--magenta);
  border-color: var(--ink);
  color: var(--stage);
}


.setup-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.setup-note {
  color: var(--lav);
  font-size: 13px;
  line-height: 1.5;
  max-width: 46ch;
}

/* ---------------------------------------------------------------- game -- */

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hud__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hud__counter {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: 0.04em;
  line-height: 1;
}
.hud__counter em {
  font-style: normal;
  color: var(--magenta);
}
.hud__counter small {
  font-size: 0.5em;
  color: var(--lav);
}
.hud__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hud__meter {
  text-align: right;
}
.hud__points {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* The big countdown block. Gold until the last quarter, then it goes
 * magenta and pulses — the "live show" pressure cue. */
.clock {
  width: clamp(64px, 14vw, 84px);
  height: clamp(64px, 14vw, 84px);
  background: var(--gold);
  color: var(--stage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 54px);
  line-height: 1;
  transform: skewX(-8deg);
  box-shadow: 8px 8px 0 var(--magenta);
}
.clock > span {
  display: inline-block;
  transform: skewX(8deg);
}
.clock[data-low='true'] {
  background: var(--magenta);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--gold);
  animation: clock-pulse 0.6s steps(2, end) infinite;
}
@keyframes clock-pulse {
  50% {
    opacity: 0.55;
  }
}

.question-panel {
  position: relative;
  padding: clamp(20px, 4vw, 30px) clamp(20px, 4vw, 34px);
  background: var(--ink);
  color: var(--stage);
  transform: skewX(var(--skew));
  box-shadow: 12px 12px 0 var(--magenta);
}
.question-panel__text {
  transform: skewX(var(--unskew));
  font-family: var(--display);
  font-size: clamp(26px, 5.2vw, 52px);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.play-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.answer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 2px solid var(--volt);
  color: var(--ink);
  min-height: 60px;
  text-align: left;
  cursor: pointer;
  font-family: var(--body);
  transform: skewX(var(--skew));
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.answer > * {
  transform: skewX(var(--unskew));
}
.answer__key {
  font-family: var(--display);
  font-size: 26px;
  color: var(--volt);
  flex: 0 0 auto;
  min-width: 1ch;
}
.answer__text {
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.15;
}
.answer:hover:not(:disabled) {
  background: #2e1636;
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--volt);
  transform: skewX(var(--skew)) translate(-2px, -2px);
}
.answer:disabled {
  cursor: default;
}

/* Reveal states. Selected-correct and selected-wrong both get the hard
 * shadow so the chosen tile stays the loudest thing on the board. */
.answer[data-state='correct'] {
  background: var(--magenta);
  border-color: var(--ink);
  color: var(--stage);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--gold);
}
.answer[data-state='correct'] .answer__key {
  color: var(--stage);
}
.answer[data-state='wrong'] {
  background: var(--deep);
  border-color: var(--magenta);
  color: var(--magenta-soft);
}
.answer[data-state='wrong'] .answer__key {
  color: var(--magenta);
}
.answer[data-state='muted'] {
  opacity: 0.45;
}
/* Struck by Ask Tesla/Edison — dashed, faded, line-through. */
.answer[data-state='struck'] {
  background: var(--deep);
  border: 2px dashed var(--dim);
  opacity: 0.55;
  cursor: not-allowed;
}
.answer[data-state='struck'] .answer__key {
  color: var(--dim);
}
.answer[data-state='struck'] .answer__text {
  text-decoration: line-through;
  color: var(--lav);
}
.answer__strike {
  margin-left: auto;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--gold);
  white-space: nowrap;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.genius {
  padding: 14px 16px;
  background: rgba(35, 17, 42, 0.9);
  border-left: 6px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.genius[data-side='b'] {
  border-left-color: var(--volt);
}
.genius__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* Your champion stays visible while you play, not just during setup. */
.genius__avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--deep);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--lav);
}
.genius__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.genius[data-side='b'] .genius__avatar {
  border-color: var(--volt);
}

.genius__name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1.1;
}
.genius[data-side='b'] .genius__name {
  color: var(--volt);
}
.charges {
  display: flex;
  gap: 3px;
}
.genius__line {
  font-size: 14px;
  line-height: 1.45;
  color: var(--prose);
  min-height: 2.9em;
}
.genius__line em {
  font-style: italic;
  color: var(--lav);
}

.scoreboard {
  padding: 14px 16px;
  background: rgba(35, 17, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.score-row__label {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.08em;
}
.score-row__label small {
  color: var(--lav);
  font-size: 14px;
}
.score-row--you .score-row__label {
  color: var(--magenta);
}
.score-row--them .score-row__label {
  color: var(--volt);
}
.score-row__value {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1;
}
.score-row--you .score-row__value {
  color: var(--ink);
}
.score-row--them .score-row__value {
  color: var(--lav);
}

/* --------------------------------------------------------------- verdict */

.verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--panel);
  border-left: 6px solid var(--magenta);
}
.verdict[data-correct='true'] {
  border-left-color: var(--gold);
}
.verdict__stamp {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.06em;
  padding: 8px 16px;
  transform: skewX(var(--skew));
  background: var(--magenta);
  color: var(--stage);
  white-space: nowrap;
}
.verdict[data-correct='true'] .verdict__stamp {
  background: var(--gold);
}
.verdict__stamp > span {
  display: inline-block;
  transform: skewX(var(--unskew));
}
.verdict__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.verdict__points {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.verdict__why {
  font-size: 15px;
  line-height: 1.5;
  color: var(--prose);
}
.verdict__why b {
  color: var(--gold);
  font-weight: 700;
}
.verdict__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.verdict__timer {
  font-size: 13px;
  color: var(--lav);
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- over -- */

.final-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--panel);
  padding: 16px;
  border-left: 6px solid var(--volt);
}
.stat__label {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--lav);
}
.stat__value {
  font-family: var(--display);
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1;
  color: var(--ink);
}
.stat--gold {
  border-left-color: var(--gold);
}
.stat--gold .stat__value {
  color: var(--gold);
}

.result-banner {
  padding: clamp(18px, 4vw, 28px);
  background: var(--ink);
  color: var(--stage);
  transform: skewX(var(--skew));
  box-shadow: 12px 12px 0 var(--magenta);
}
.result-banner__text {
  transform: skewX(var(--unskew));
  font-family: var(--display);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
}

.breakdown {
  background: var(--panel);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--prose);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(167, 139, 216, 0.18);
}
.breakdown__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.breakdown__row b {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.breakdown__row--miss b {
  color: var(--lav);
}

.footnote {
  color: var(--lav);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(167, 139, 216, 0.16);
  padding-top: 12px;
  margin-top: auto;
}
.footnote b {
  color: var(--prose);
}

/* -------------------------------------------------------------- narrow -- */

@media (max-width: 900px) {
  .play-grid {
    grid-template-columns: 1fr;
  }
}

/* Below 720px the skew and the hard shadows come off entirely — the canvas
 * note flags skewed tiles as the risk of this direction on small screens.
 * The palette and Bebas headlines carry the identity on their own. */
@media (max-width: 720px) {
  :root {
    --skew: 0deg;
    --unskew: 0deg;
    --shadow-step: 4px;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  /* Two portraits plus a VS will not fit across a phone, and stage 3's
     side-by-side becomes a stack. */
  .versus {
    gap: 6px;
  }
  .vs {
    padding-bottom: 30%;
  }
  .champ__plate,
  .champ__bio-btn {
    transform: none;
  }
  .champ__plate > span,
  .champ__bio-btn > span {
    transform: none;
  }
  .step--go {
    flex-direction: column;
    align-items: center;
  }
  .chosen__panel {
    width: 100%;
  }
  .bio {
    box-shadow: 6px 6px 0 var(--magenta);
  }
  .question-panel,
  .result-banner {
    box-shadow: 6px 6px 0 var(--magenta);
  }
  .clock {
    transform: none;
    box-shadow: 5px 5px 0 var(--magenta);
  }
  .clock > span {
    transform: none;
  }
  .flag {
    transform: none;
  }
  .flag > span {
    transform: none;
  }
  .verdict {
    grid-template-columns: 1fr;
  }
  .verdict__stamp {
    justify-self: start;
  }
}

/* ----------------------------------------------------------- leaving early
 * Deliberately quiet: it sits in the HUD next to the clock, so it is always
 * findable, but it must never compete with the answers for attention.
 */
.btn--quit {
  align-self: center;
  padding: 7px 12px;
  font-size: 15px;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.btn--quit:hover,
.btn--quit:focus-visible {
  opacity: 1;
  border-color: var(--magenta);
  color: var(--magenta-soft);
}

.quit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
/* Keep playing is the safe answer, so it is the one under the thumb on a
   phone and the one that takes the focus when the dialog opens. */
.quit-actions .btn {
  flex: 1 1 160px;
}

/* A note that runs the width of the step rather than sitting in a column.
 *
 * .setup-note caps itself at 46ch, which is right for a hint beside a
 * control but wrong for a footnote under a full-width row of captains: it
 * left the line boxed into the left-hand side of the page. This one spans
 * the step, sits under a hairline rule like the other footers, and hangs its
 * asterisk in the margin so a wrapped second line starts under the text and
 * not under the star. */
.setup-note--rule {
  max-width: none;
  width: 100%;
  margin-top: 16px;
  padding-top: 10px;
  padding-left: 1em;
  text-indent: -1em;
  border-top: 1px solid rgba(167, 139, 216, 0.16);
}
