:root {
  --bg: #0f0f0f;
  --panel: #212121;
  --panel-2: #272727;
  --text: #f1f1f1;
  --muted: #aaaaaa;
  --line: #3f3f3f;
  --red: #ff0033;
  --cyan: #3ea6ff;
  --yellow: #fbbc04;
  --ink: #0f0f0f;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.hidden { display: none !important; }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 4px;
}

.game-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .13em;
}

.brand-face {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--red);
  background: var(--red);
}

.brand-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 77% 19%;
  transform: scale(1.75);
}

.about-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.about-link:hover, .about-link:focus-visible { color: var(--cyan); }

.game-wrap {
  width: min(100%, 1180px);
  min-height: calc(100vh - 60px);
  margin: 0 auto;
  padding: 16px 20px 22px;
}

.loading-screen, .fatal-error {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.loading-screen span { color: var(--red); font-size: 3rem; }
.loading-screen p, .fatal-error strong { font-size: .72rem; font-weight: 950; letter-spacing: .14em; }
.fatal-error p { color: var(--muted); }

.game-screen { width: 100%; }
.game-heading { text-align: center; }
.round-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.prize-pill {
  padding: 5px 10px;
  border: 1px solid rgba(251, 188, 4, .55);
  border-radius: 999px;
  color: #111;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(251, 188, 4, .16);
  letter-spacing: .06em;
}
.game-heading h1 {
  margin: 9px 0 16px;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: .9;
  letter-spacing: -.06em;
  font-weight: 1000;
}
.game-heading em { color: var(--red); font-style: normal; }

.matchup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.voice-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.7;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  color: inherit;
  background: #000;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.voice-card:hover .card-play,
.voice-card:focus-visible .card-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,0,51,.92); }
.voice-card:focus-visible { outline: 3px solid white; outline-offset: 3px; }

.voice-card.is-playing {
  z-index: 2;
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 0, 51, .18), 0 0 28px rgba(255, 0, 51, .4);
  animation: active-card .72s ease-in-out infinite alternate;
}

@keyframes active-card {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.video-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  transform: translate(-50%, -50%);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.card-play::after {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;
  content: "";
  transform: translate(-50%, -50%);
}
.voice-card.is-playing .card-play { opacity: 0; }

.card-letter {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--red);
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 1000;
}

.reference-flag,
.clip-tag {
  position: absolute;
  z-index: 3;
  padding: 6px 9px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,.55);
  font-size: .58rem;
  font-weight: 1000;
  letter-spacing: .08em;
}

.reference-flag {
  top: 11px;
  right: 11px;
  color: #111;
  background: var(--yellow);
}

.clip-tag {
  bottom: 12px;
  left: 11px;
  max-width: calc(100% - 22px);
  color: white;
  background: rgba(15,15,15,.9);
  backdrop-filter: blur(7px);
}

.audio-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: rgba(255,255,255,.12);
}
.audio-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
}

.vote-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
}

.vote-actions {
  display: grid;
  gap: 8px;
}

.vote-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: white;
  background: #3f3f3f;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.vote-button:hover, .vote-button:focus-visible { border-color: #777; transform: translateY(-2px); }
.vote-button[data-vote="same"]:hover, .vote-button[data-vote="same"]:focus-visible { background: #2f6f94; }
.vote-button[data-vote="different"]:hover, .vote-button[data-vote="different"]:focus-visible { background: #8a2637; }
.unsure-button:hover, .unsure-button:focus-visible { color: var(--ink); background: var(--yellow); }
.vote-button:disabled { cursor: default; opacity: .55; transform: none; }
.vote-button.is-selected {
  border-color: white;
  color: white;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255,0,51,.18);
  opacity: 1;
}

.compact-result {
  display: grid;
  gap: 5px;
  text-align: center;
}
.compact-result > span {
  color: var(--cyan);
  font-size: .54rem;
  font-weight: 1000;
  letter-spacing: .11em;
}
.compact-result > strong {
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.compact-poll {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 900;
}
.compact-poll em {
  color: var(--cyan);
  font-style: normal;
  letter-spacing: .04em;
}
.compact-poll b { color: white; }
#next-now {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--red);
  cursor: pointer;
  font-size: .55rem;
  font-weight: 1000;
  letter-spacing: .05em;
}
#next-now:hover { background: #e4002c; }

.player-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: min(100%, 560px);
  margin: 12px auto 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #181818;
  box-shadow: inset 0 3px 0 var(--red);
}

.control-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 1000;
}
.control-button:hover { background: #3f3f3f; }
.primary-control { color: white; background: transparent; }
.back-control { color: white; background: transparent; }
.control-button:disabled { opacity: .3; cursor: default; }
.control-button:focus-visible, .vote-button:focus-visible, #next-now:focus-visible, #play-again:focus-visible, .about-link:focus-visible, .back-to-game:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.playback-route { display: flex; align-items: center; margin-left: 2px; }
.route-node {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--panel);
  font-size: .72rem;
  font-weight: 1000;
}
.route-node.is-active { border-color: var(--red); color: white; background: var(--red); }
.route-node.is-done { border-color: white; color: var(--ink); background: white; }
.route-line { width: 44px; height: 2px; background: var(--line); }

.now-playing {
  margin-left: auto;
  padding-right: 4px;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.player-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}
.primary-control[data-state="play"] .player-glyph {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid white;
}
.primary-control[data-state="pause"] .player-glyph::before,
.primary-control[data-state="pause"] .player-glyph::after {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 6px;
  border-radius: 1px;
  background: white;
  content: "";
}
.primary-control[data-state="pause"] .player-glyph::before { left: 2px; }
.primary-control[data-state="pause"] .player-glyph::after { right: 2px; }
.primary-control[data-state="replay"] .player-glyph::before {
  position: absolute;
  inset: -7px;
  display: grid;
  place-items: center;
  color: white;
  content: "↻";
  font-size: 1.8rem;
  line-height: 1;
}

.back-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}
.back-glyph::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 1px;
  width: 3px;
  border-radius: 1px;
  background: white;
  content: "";
}
.back-glyph::after {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-right: 14px solid white;
  border-bottom: 9px solid transparent;
  content: "";
  transform: translateY(-50%);
}

.final-screen {
  width: 100%;
  display: grid;
  gap: 12px;
}
.final-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050914;
}
.final-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.final-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,7,14,.96) 0%, rgba(3,7,14,.72) 38%, transparent 72%);
}
.final-copy {
  position: absolute;
  top: 50%;
  left: 5%;
  width: min(52%, 590px);
  transform: translateY(-50%);
}
.final-copy > span {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 1000;
  letter-spacing: .14em;
}
.final-copy h2 {
  margin: 8px 0;
  font-size: clamp(3rem, 8vw, 7.3rem);
  line-height: .78;
  letter-spacing: -.075em;
  text-shadow: 0 7px 26px black;
}
.final-copy h2 em { color: var(--red); font-style: normal; }
.final-copy p { margin: 0; color: white; font-size: clamp(.8rem, 1.6vw, 1.2rem); }

.final-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
}
.final-summary > div {
  min-height: 66px;
  display: grid;
  place-content: center;
  padding: 8px;
  border-radius: 9px;
  text-align: center;
  background: var(--panel);
}
.final-summary span {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .09em;
}
.final-summary strong { font-size: 1.5rem; }
#play-again {
  min-width: 160px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--red);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .09em;
}
#play-again:hover { background: #e4002c; }

.about-page { width: min(100%, 980px); margin: 0 auto; padding: 46px 20px 80px; }
.about-hero { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.case-label { margin: 0; color: var(--cyan); font-size: .64rem; font-weight: 950; letter-spacing: .17em; }
.about-hero h1 { max-width: 780px; margin: 10px 0 20px; font-size: clamp(3rem, 9vw, 6.6rem); line-height: .88; letter-spacing: -.075em; }
.about-hero h1 em { color: var(--red); font-style: normal; }
.about-hero p { max-width: 670px; color: var(--muted); line-height: 1.7; }
.back-to-game { display: inline-flex; margin-top: 15px; padding: 13px 17px; border-radius: 9px; color: white; background: var(--red); text-decoration: none; font-size: .73rem; font-weight: 950; letter-spacing: .09em; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.about-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.about-card h2 { margin: 0 0 10px; font-size: 1rem; }
.about-card p, .about-card li { color: var(--muted); font-size: .83rem; line-height: 1.65; }
.about-card ul { margin: 0; padding-left: 18px; }
.label-key { display: grid; gap: 9px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.label-key span { display: grid; gap: 2px; }
.label-key b { color: var(--yellow); }

@media (max-width: 680px) {
  .game-nav { min-height: 48px; padding: 5px 9px; }
  .brand-face { width: 34px; height: 34px; }
  .brand-name { display: none; }
  .game-wrap { min-height: calc(100vh - 48px); padding: 7px 8px 10px; }
  .round-meta { gap: 4px 7px; font-size: .46rem; letter-spacing: .055em; }
  .prize-pill { padding: 3px 6px; }
  .game-heading h1 { margin: 5px 0 8px; font-size: 1.85rem; }
  .matchup { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #card-a { grid-column: 1; grid-row: 1; }
  #card-b { grid-column: 2; grid-row: 1; }
  .voice-card { aspect-ratio: 16 / 9; border-width: 2px; border-radius: 8px; }
  .voice-card.is-playing { box-shadow: 0 0 0 3px rgba(255,0,51,.18), 0 0 18px rgba(255,0,51,.34); }
  .card-letter { top: 5px; left: 5px; width: 27px; height: 27px; border-radius: 4px; font-size: .68rem; }
  .card-play { width: 34px; height: 34px; }
  .card-play::after { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; }
  .reference-flag { top: 5px; right: 5px; max-width: 78px; padding: 3px 5px; font-size: .42rem; letter-spacing: .04em; }
  .clip-tag { bottom: 6px; left: 5px; max-width: calc(100% - 10px); padding: 3px 5px; font-size: .42rem; letter-spacing: .04em; }
  .audio-track { height: 3px; }
  .vote-panel { grid-column: 1 / -1; grid-row: 2; min-height: 43px; gap: 4px; padding: 5px; border-radius: 8px; }
  .vote-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .vote-button { min-height: 34px; padding: 2px; font-size: .53rem; letter-spacing: 0; }
  .compact-result {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    text-align: left;
  }
  .compact-result > span { font-size: .43rem; letter-spacing: .05em; }
  .compact-result > strong { font-size: .85rem; }
  .compact-poll { gap: 5px; font-size: .45rem; }
  #next-now { min-height: 31px; padding: 0 7px; font-size: .46rem; }
  .player-controls { gap: 3px; width: 100%; min-height: 42px; margin-top: 6px; padding: 3px 6px; }
  .control-button { width: 34px; height: 34px; }
  .player-glyph { transform: scale(.78); }
  .back-glyph { transform: scale(.78); }
  .route-node { width: 25px; height: 25px; font-size: .58rem; }
  .route-line { width: 20px; }
  .now-playing { font-size: .44rem; letter-spacing: .055em; }
  .final-screen { gap: 8px; }
  .final-visual { aspect-ratio: 4 / 4.35; }
  .final-visual > img { object-position: 70% center; }
  .final-shade { background: linear-gradient(90deg, rgba(3,7,14,.95) 0%, rgba(3,7,14,.65) 52%, transparent 88%); }
  .final-copy { left: 6%; width: 62%; }
  .final-copy > span { font-size: .52rem; }
  .final-copy h2 { margin: 6px 0; font-size: clamp(3rem, 16vw, 4.6rem); }
  .final-copy p { font-size: .72rem; }
  .final-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .final-summary > div { min-height: 54px; padding: 5px; }
  .final-summary span { font-size: .46rem; }
  .final-summary strong { font-size: 1.15rem; }
  #play-again { grid-column: 1 / -1; min-height: 44px; }
  .about-page { padding: 34px 14px 60px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .game-heading h1 { font-size: 1.65rem; }
  .round-meta { font-size: .41rem; }
  .vote-button { font-size: .48rem; }
  .compact-poll { gap: 3px; font-size: .41rem; }
  #next-now { padding: 0 5px; font-size: .42rem; }
  .now-playing { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
