/* Variable names mirror V-TriviaNow public/play.css.
   BingoNow's signature accent is violet; gold is V-CHARGE and highlights.
   --accent-green is kept for family parity and is not used to mark state. */
:root {
  --bg-dark: #090d16;
  --tv-bg: #070a13;
  --card-bg: #131b2e;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-cyan: #00f2fe;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-purple: #8b5cf6;
  --focus: #fbbf24;
  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --ink: #090d16;
  --btn-primary-bg: #f59e0b;
  --btn-primary-text: #090d16;
  --btn-secondary-bg: #131b2e;
  --btn-secondary-text: #ffffff;
  --btn-danger-border: #f59e0b;
  --font-display: 'Outfit', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 500;
}

button, input, a { font: inherit; }
input, a { color: inherit; }
button, .btn { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; }

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  font-size: 1.35rem;
}
.text-purple { color: var(--accent-purple); }
.text-white { color: var(--text-white); }
.text-gold { color: var(--accent-gold); }
.text-dim { color: var(--text-dim); }

.motto {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-align: center;
}
.venue-line {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  font-size: 0.78rem;
}
.pill-row {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: var(--text-white);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.mobile-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom));
  background: var(--bg-dark);
  overflow: hidden;
}
.brand-header { text-align: center; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.logo-full { height: 28px; width: auto; object-fit: contain; }
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  flex-shrink: 0;
}
.header-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.app-header .btn-leave { padding: 3px 8px; font-size: 0.72rem; line-height: 1.15; }
.team-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-badge {
  background: var(--ink);
  border: 2px solid var(--accent-gold);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}
.app-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.app-footer { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.kiosk-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: default;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 8px;
}
.kiosk-icon { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.kiosk-banner-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.kiosk-banner-text span { font-weight: 700; font-size: 0.78rem; }
.kiosk-banner-text small { color: var(--text-dim); font-size: 0.68rem; }
.vcharge-gold { color: var(--accent-gold); font-weight: 800; }
.vcharge-white { color: #fff; font-weight: 800; }
.player-footer-credit {
  text-align: center;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.62rem;
  text-decoration: none;
  cursor: default;
}

.stack { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-dim); font-weight: 700; }
input {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-white);
  font-size: 1.05rem;
}
.btn, button.btn, a.btn {
  border-radius: 14px;
  border: 2px solid #fff;
  padding: 12px 14px;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  text-decoration: none;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
}
button.btn-gold, a.btn-gold,
button.btn-primary, a.btn-primary,
button.btn-call, button.btn-bingo {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 2px solid #fff;
}
button.btn-gold, a.btn-gold, button.btn-primary, a.btn-primary { font-size: 1.15rem; }
button.btn-line, a.btn-line,
button.btn-secondary, a.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 2px solid #fff;
}
button.btn-danger, a.btn-danger {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-danger-border);
}
button.btn-call, button.btn-bingo {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  border-width: 3px;
  border-radius: 16px;
  min-height: 64px;
  font-size: 1.55rem;
}
button.btn-bingo { min-height: 72px; flex-shrink: 0; font-size: 2.82rem; font-weight: 900; }
.btn-row, .pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pills button, button.text-btn {
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  padding: 7px 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
}
.pills button[aria-pressed="true"],
button.text-btn[aria-pressed="true"] {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 2px solid #fff;
}
button.btn-danger.text-btn,
button.text-btn.btn-danger {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-danger-border);
}
button:disabled,
button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  background: transparent;
  color: var(--text-dim);
  border: 2px dashed rgba(255, 255, 255, 0.75);
}
.host-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
.qr-img { width: 96px; height: 96px; background: #fff; border-radius: 8px; object-fit: contain; }
.ball-row { display: flex; align-items: center; gap: 10px; }
.ball {
  width: var(--ball-size, 64px);
  height: var(--ball-size, 64px);
  font-size: var(--ball-size, 64px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #ffe7a3, var(--accent-gold) 58%, #b45309);
  color: var(--ink);
  box-shadow: 0 0 0 0.04em var(--bg-dark), 0 0 0 0.09em var(--accent-purple), 0 0 0 0.12em #fff;
  flex-shrink: 0;
  position: relative;
  container-type: size;
}
.call {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.42em;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
}
.now-flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  background: var(--ink);
  color: #fff;
  border: 0.12em solid #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.16em;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.14em 0.42em;
}
.countdown, .status-line { font-family: var(--font-display); font-weight: 800; }
.one-away { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; }
.one-away strong { font-size: 1.4rem; }
.leader { list-style: none; overflow: auto; min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.leader li, .who li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 8px;
  font-weight: 700;
}
.hint, .error-line { color: var(--text-dim); font-size: 0.82rem; }
.error-line { color: var(--text-white); border: 2px dashed var(--accent-purple); border-radius: 10px; padding: 8px; }

.play-meta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; padding-top: 10px; margin-bottom: 18px; --ball-size: 100px; }
.play-copy { min-width: 0; flex: 1; }
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.play-lines { min-width: 0; }
.play-meta .pattern-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
}
.meta-label { font-weight: 900; }
.mark-help {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  position: static;
  text-align: center;
}
#table > .btn-bingo { flex-shrink: 0; margin-bottom: 0; }
.card-wrap { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
#card.card-grid { min-height: 0; overflow: hidden; }
.col-heads, .card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.col-heads span {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-white);
}
.card-grid { flex: 1; min-height: 260px; grid-template-rows: repeat(5, minmax(0, 1fr)); }
.cell {
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  border: 2px dotted rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 4.2vw, 1.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 1;
  padding: 0;
}
.cell .tag {
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.cell.called {
  border-style: dashed;
  border-width: 3px;
  border-color: var(--accent-purple);
}
.cell.daubed {
  border-radius: 50%;
  border-style: solid;
  border-width: 3px;
  border-color: #fff;
  background: var(--accent-gold);
  color: var(--ink);
}
.cell.daubed .tag { letter-spacing: 0; }
.cell.win {
  border-radius: 12px;
  border-style: dashed;
  border-width: 4px;
  border-color: var(--focus);
  color: #fff;
  background-color: #182033;
  background-image: repeating-linear-gradient(45deg, rgba(245, 158, 11, 0.45) 0 3px, transparent 3px 7px);
}
.cell.free {
  border-style: solid;
  border-width: 3px;
  border-color: var(--accent-gold);
  border-radius: 10px;
  background: #111827;
  color: var(--text-white);
}
.cell.free img { width: 42%; height: auto; aspect-ratio: 1; object-fit: contain; }
.tabs { display: flex; gap: 6px; flex-shrink: 0; }
.tabs button[aria-selected="true"] { background: var(--accent-gold); color: var(--ink); border-color: #fff; }
.toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 92px;
  background: var(--card-bg);
  border: 2px dashed var(--accent-purple);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}
.not-yet {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 13, 22, 0.82);
}
.not-yet-card {
  width: min(100%, 300px);
  background: var(--card-bg);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 28px 18px;
  text-align: center;
}
.not-yet-card h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
}
.not-yet-card p {
  margin-top: 8px;
  color: var(--text-dim);
  font-weight: 700;
}
.overlay {
  position: absolute;
  inset: 0;
  background: #090d16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 12px 12px 10px;
  text-align: center;
  z-index: 3;
  overflow: hidden;
}
.overlay h2,
.overlay .winner-line {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  white-space: nowrap;
}
.overlay h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; letter-spacing: 0.03em; line-height: 1.15; }
.overlay .winner-line { font-size: 1.15rem; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.overlay.night {
  justify-content: center;
  padding: 20px 16px;
}
.night-card {
  width: min(100%, 400px);
  max-width: 430px;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.overlay.night .night-card h2 {
  white-space: normal;
  overflow-wrap: break-word;
  width: auto;
  max-width: 100%;
  font-size: clamp(1.4rem, 6.2vw, 1.85rem);
  line-height: 1.2;
}
.night-sub,
.night-stay,
.night-card .brag-note {
  color: var(--text-dim);
  font-weight: 700;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  margin: 0;
}
.night-sub { font-size: 0.95rem; }
.night-result {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  overflow-wrap: anywhere;
  margin: 4px 0;
}
.night-stay { font-size: 0.82rem; }
.night-card .btn { width: 100%; margin-top: 6px; }
.overlay .win-card {
  flex: 0 1 auto;
  min-height: 0;
  width: min(100%, 340px);
  height: min(42vh, 340px);
  max-height: calc(100dvh - 168px);
}
.overlay .brag-note {
  flex: 0 0 auto;
  margin-top: auto;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.tv-body { background: var(--tv-bg); overflow: hidden; height: 100dvh; }
.tv-opening, .tv-stage { height: 100dvh; }
.tv-opening {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.tv-opening h1 { font-family: var(--font-display); font-weight: 900; font-size: 3rem; letter-spacing: 0.04em; }
.tv-mid { min-height: 0; min-width: 0; height: 100%; display: flex; }
.tv-stage {
  display: grid;
  grid-template-columns: minmax(420px, 36%) minmax(0, 1fr) minmax(210px, 18%);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 6px 8px 4px;
}
.tv-top, .tv-foot { grid-column: 1 / -1; }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tv-brand { display: flex; flex-direction: column; gap: 2px; }
.tv-stage .brand-title { font-size: clamp(1.35rem, 2.6vh, 3.4rem); }
.tv-stage .motto { font-size: clamp(0.72rem, 1.4vh, 1.5rem); }
.tv-stage .stat b { font-size: clamp(1.4rem, 2.4vh, 2.8rem); }
.tv-stage #unlock { font-size: clamp(0.82rem, 1.5vh, 1.5rem); }
.tv-stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
#unlock, #lobbyAudio { flex: 0 0 auto; position: relative; z-index: 4; }
.stat {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px 10px;
  min-width: 92px;
}
.stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; line-height: 1; }
.stat span { color: var(--text-dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tv-left, .tv-mid, .tv-right, .tv-rail { min-height: 0; min-width: 0; }
.tv-left, .tv-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(19, 27, 46, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px;
}
.tv-left {
  display: grid;
  grid-template-columns: minmax(0, min(440px, 40.7vh)) minmax(0, 1fr);
  grid-template-rows: minmax(min(440px, 40.7vh), auto) minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
}
.caller-top { display: contents; }
.hero-slot { grid-column: 1; grid-row: 1; align-self: center; justify-self: center; }
.caller-side {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hopper-wrap { grid-column: 1; grid-row: 2; width: 0; min-width: 100%; max-width: 100%; overflow: hidden; }
.tv-left > .specials {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  margin: 4px 4px 4px 0;
}
.tv-left > .tv-win,
.tv-left > #leftBody { grid-column: 1 / -1; grid-row: 1 / -1; }
.tv-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
  container-type: size;
}
.tv-right { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.tv-right .who {
  overflow: hidden;
  scrollbar-width: none;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 4px;
}
.tv-right #people { flex: 1 1 auto; min-height: 0; }
.tv-right #awayNames {
  flex: 0 1 auto;
  min-height: calc(2 * (max(20px, var(--row-font, 22px)) + 2 * var(--row-pad, 4px) + 4px));
  max-height: 40%;
}
.tv-right .who::-webkit-scrollbar { width: 0; height: 0; display: none; }
.tv-right .who li {
  font-size: max(20px, var(--row-font, 22px));
  line-height: 1.2;
  min-height: calc(1.2em + 2 * var(--row-pad, 4px));
  padding: var(--row-pad, 4px) 0.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  box-sizing: border-box;
}
.tv-right .pill-row,
.tv-right .text-dim,
.tv-right .countdown,
.tv-right .free-note { flex: 0 0 auto; }
.tv-rail .scan-heading { flex: 0 0 auto; }
.hero-slot {
  --ball-size: min(280px, 25.9vh);
  width: var(--ball-size);
  height: var(--ball-size);
  margin-top: calc(var(--ball-size) * 0.14 + 8px);
  margin-left: calc(var(--ball-size) * 0.12 + 8px);
  margin-right: 8px;
  margin-bottom: 4px;
  flex: 0 0 auto;
}
.recent-col { min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.recent {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent li {
  border-radius: 999px;
  background: #f59e0b;
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.78rem, 1.6vh, 1.4rem);
  text-align: center;
  padding: clamp(4px, 0.5vh, 8px) clamp(6px, 0.7vh, 12px);
}
.recent .recent-empty { background: transparent; color: var(--text-dim); font-style: italic; font-weight: 700; }
.hopper-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 0;
  min-width: 100%;
  height: auto;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}
.hopper {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
  position: relative;
  overflow: visible;
  background: transparent;
  display: block;
}
.hopper-stand { display: none; }
.hopper-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 1px 5px;
  border-radius: 999px;
  background: #f59e0b;
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.62rem, 1.05vh, 0.9rem);
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}
.hopper.tumbling .hopper-chip { animation: hopper-spin 1.3s linear infinite; }
@keyframes hopper-spin {
  50% { translate: 0 8px; }
}
.specials {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 8px 12px;
  min-height: 64px;
}
.specials-label { margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--text-dim); }
.specials-text { margin: 0; font-weight: 800; font-size: clamp(0.95rem, 2vh, 1.25rem); overflow-wrap: anywhere; }
.specials-text.is-placeholder { color: var(--text-dim); font-weight: 700; font-style: italic; }
.specials-text.is-fading { opacity: 0; }
.scan-heading { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; font-size: 1.05rem; }
.tv-win {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  overflow: hidden;
  container-type: size;
}
.tv-win h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.15rem, 2.6vh, 2rem); overflow-wrap: anywhere; margin: 0; }
.tv-win-line { margin: 0; font-weight: 800; font-size: clamp(0.85rem, 1.8vh, 1.15rem); overflow-wrap: anywhere; max-width: 100%; }
.tv-win-note { margin: 0; color: var(--text-dim); font-size: 0.82rem; font-weight: 700; }
.tv-win .card-grid {
  min-height: 0;
  width: min(100cqw, 74cqh);
  height: auto;
  aspect-ratio: 1;
  flex: 0 1 auto;
}
.tv-win .cell { font-size: clamp(0.72rem, 1.7vh, 1.15rem); }
.caller-stage {
  display: flex;
  flex-direction: column;
}
.tv-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-hero .hero-ball { width: min(26vh, 220px); height: min(26vh, 220px); }
.recent { display: flex; flex-wrap: nowrap; flex-direction: column; gap: 6px; align-items: stretch; width: 100%; overflow: hidden; }
.recent-label { color: #f8fafc; font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; flex: 0 0 auto; white-space: nowrap; }
.recent-empty { color: var(--text-dim); font-style: italic; font-weight: 700; font-size: 0.85rem; }
.recent-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f59e0b;
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 3px 7px;
  border: 2px solid #090d16;
  white-space: nowrap;
}
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.qr-card img { width: min(28vh, 220px); height: auto; background: #fff; border-radius: 12px; }
.qr-card h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; }
.code-pill {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 1.8rem;
  border: 3px solid #fff;
  border-radius: 12px;
  padding: 2px 10px;
}
.code-pill.compact {
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  align-self: flex-start;
  background: #f8fafc;
  color: #090d16;
  border: 4px solid #f59e0b;
  padding: 4px 12px;
}
.board {
  height: 100%;
  width: 100%;
  overflow: hidden;
  min-height: 0;
  container-type: size;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}
.board-col {
  display: grid;
  grid-template-rows: auto repeat(15, minmax(0, 1fr));
  gap: 0;
  min-height: 0;
  height: 100%;
  justify-items: stretch;
  align-items: stretch;
}
.board-col h3 {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.2vh, 4rem);
  line-height: 1;
}
.num {
  position: relative;
  box-sizing: border-box;
  align-self: stretch;
  justify-self: stretch;
  height: 100%;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  border-radius: 999px;
  border: 2px solid #fff;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.7rem, 2.2vh, 1.15rem);
  line-height: 1;
  padding: 0 0.35em;
  overflow: hidden;
}
.num.on {
  background: var(--accent-gold);
  color: var(--ink);
  border-style: solid;
  border-color: #fff;
}
.num.on .tick { position: absolute; right: 0; bottom: -2px; font-size: 0.55em; font-weight: 900; line-height: 1; }
.num.now {
  outline: 3px solid #fff;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px var(--accent-purple);
}
.num.win-ring {
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px #fff;
}
.who { list-style: none; overflow: auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.tv-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tv-foot .player-footer-credit { text-align: center; }
.tv-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  text-decoration: none;
  cursor: default;
  font-weight: 700;
  font-size: 0.95rem;
}
.tv-ticker img { width: 28px; height: 28px; object-fit: contain; }
.winner-layer {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(7, 10, 19, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.winner-layer h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 4.5rem); font-weight: 900; max-width: min(92vw, 16em); overflow-wrap: anywhere; }
.winner-line { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 2.4rem); margin: 0; }
.winner-layer .win-card { width: min(70vh, 420px); height: min(52vh, 360px); }
.free-note { font-size: 0.75rem; color: var(--text-dim); text-align: center; }

.bingo-lobby {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(139, 92, 246, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 90% 82%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
    var(--tv-bg);
  color: var(--text-white);
}
.bl-header {
  height: 68px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(17, 24, 39, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}
.bl-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bl-brand img { width: 42px; height: 42px; flex: 0 0 auto; }
.bl-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.bl-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.bl-by {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.bl-welcome {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.55);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(245, 158, 11, 0.08));
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bl-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bl-audio, .bl-phase {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}
.bl-audio {
  font-size: 0.95rem;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}
.bl-audio.is-on {
  background: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}
.bl-phase {
  font-size: 1.05rem;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid var(--accent-purple);
  color: #ddd6fe;
}
.bl-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(240px, 0.72fr);
  gap: 28px;
  width: 100%;
  padding: 16px 28px;
}
.bl-card {
  min-height: 0;
  background: #111827;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.bl-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.5vh, 18px);
  padding: clamp(14px, 2vh, 28px) clamp(16px, 2vw, 40px);
  overflow: hidden;
}
.bl-qr h2 {
  margin: 0;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6.6vh, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.bl-frame {
  background: #fff;
  padding: clamp(12px, 1.5vh, 20px);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.28);
  pointer-events: none;
  flex: 0 1 auto;
}
.bl-frame img {
  display: block;
  width: clamp(160px, 44vh, 500px);
  height: clamp(160px, 44vh, 500px);
  pointer-events: none;
}
.bl-browse {
  margin: 0;
  max-width: 100%;
  color: #e2e8f0;
  font-size: clamp(1rem, 3.15vh, 34px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.bl-url {
  color: #fff;
  font-weight: 800;
}
.bl-sep { color: #94a3b8; }
.bl-room {
  color: #fbbf24;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.bl-why {
  margin: 0;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.55vh, 28px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.bl-join {
  margin: 0;
  padding: 0.42em 1.15em;
  border-radius: 999px;
  border: 0.12em solid var(--accent-purple);
  background: #121929;
  color: #e9d5ff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.55vh, 28px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .bl-browse { white-space: normal; }
}
.bl-closed, .bl-wait { margin: 0; font-weight: 800; max-width: min(100%, 28rem); overflow-wrap: anywhere; text-align: center; }
.bl-closed { color: var(--text-white); font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.bl-wait { color: var(--text-dim); font-size: clamp(0.95rem, 2vw, 1.2rem); }
.bl-roster {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}
.bl-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.bl-roster-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #c4b5fd;
}
.bl-pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}
.bl-people {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  overflow: hidden;
}
.bl-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 1.05rem;
  font-weight: 700;
}
.bl-empty {
  margin: auto;
  color: var(--text-dim);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  text-align: center;
}
.bl-foot {
  height: 52px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.bl-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 700;
}
.bl-ticker img { width: 22px; height: 22px; }
@media (min-width: 1600px) {
  .bl-header { height: clamp(72px, 8vh, 88px); padding: 0 32px; }
  .bl-title { font-size: clamp(1.5rem, 2.4vh, 2rem); }
  .bl-grid { gap: clamp(16px, 2vw, 28px); padding: clamp(12px, 1.6vh, 20px) clamp(16px, 2vw, 28px); }
  .bl-foot { height: clamp(48px, 6vh, 64px); padding: 0 32px; font-size: clamp(1rem, 1.8vh, 1.25rem); }
  .bl-roster-head h3 { font-size: clamp(1.3rem, 2.4vh, 1.8rem); }
}

@media (max-width: 900px) {
  .tv-stage { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 100dvh; }
  .tv-top, .tv-foot { grid-column: auto; }
  .tv-body { overflow: auto; }
  .board { height: 70vh; }
  .caller-stage { flex-direction: column; }
}
.host-body { height: auto; min-height: 100%; overflow: auto; }
.host-board {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  background: var(--bg-dark);
}
.host-grid { display: flex; flex-direction: column; gap: 14px; }
.host-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.host-board .leader { overflow: visible; flex: none; min-height: 0; }
.join-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
}
.host-board .qr-img { width: 140px; height: 140px; flex-shrink: 0; }
.host-board .btn,
.host-board .text-btn,
.host-board .pills button,
.host-board .btn-call { min-height: 44px; }
.host-main .btn-call { width: 100%; }
@media (max-width: 899px) {
  .host-main { order: -1; }
}
.host-call {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  background: var(--bg-dark);
}
.key-hints { color: var(--text-dim); font-size: 0.85rem; }
.host-board button:disabled,
.host-board button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  background: transparent;
  color: var(--text-dim);
  border: 2px dashed rgba(255, 255, 255, 0.75);
}
@media (min-width: 900px) {
  .host-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(340px, 1fr);
    grid-template-areas: "prep roster" "prep flow";
    align-items: start;
    gap: 18px;
  }
  .host-settings { grid-area: prep; }
  .host-main { grid-area: flow; }
  .host-join { grid-area: roster; }
  .host-call { position: static; padding: 0; }
  .host-board { padding: 16px 24px 20px; }
}
.deck-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.deck-brand { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.deck-by { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.deck-lock { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent-gold); color: var(--accent-gold); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; }
.deck-lock svg { width: 16px; height: 16px; }
.deck-venue { margin: 0; font-weight: 800; }
.deck-status { display: flex; gap: 8px; flex-wrap: wrap; }
.deck-pill { border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 6px 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em; }
.deck-card { background: #111827; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 14px; }
.deck-stack { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 10px; }
.deck-stack > .deck-label,
.deck-stack > .deck-muted { margin: 0; }
.deck-stack .btn-row { margin: 0; }
#tvLink { align-self: flex-start; margin: 0; }
.deck-card summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em; color: #c4b5fd; }
.deck-muted, .deck-label { color: var(--text-dim); font-weight: 700; margin: 8px 0 4px; }
.deck-flow-line { font-family: var(--font-display); font-weight: 800; margin: 0 0 8px; }
.deck-actions { display: flex; flex-direction: column; gap: 8px; }
.deck-actions .btn-call, .deck-actions .btn, .deck-auto { width: 100%; }
#round { margin-top: 12px; }
#specials { width: 100%; margin-top: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: #0b0f19; color: #fff; padding: 8px; font: inherit; }
.deck-modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(9, 13, 22, 0.82); }
.deck-modal-card { width: min(100%, 420px); background: #131b2e; border: 2px solid rgba(255,255,255,0.16); border-radius: 18px; padding: 20px 16px; text-align: center; }
.deck-modal-card h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 1.7rem); margin-bottom: 8px; }
.deck-modal-card p { color: var(--text-dim); font-weight: 700; margin-bottom: 14px; overflow-wrap: anywhere; }
.deck-modal .btn-row { justify-content: center; }
.deck-auto { min-height: 44px; border-radius: 999px; border: 2px solid var(--accent-gold); background: #131b2e; color: #fff; font-family: var(--font-display); font-weight: 800; }
.deck-auto[aria-pressed="true"] { background: var(--accent-gold); color: #090d16; }
.deck-tip { margin-top: 10px; border: 1px dashed rgba(245,158,11,0.7); border-radius: 12px; padding: 10px; color: var(--text-dim); }
.deck-tip p:first-child { color: var(--accent-gold); font-family: var(--font-display); font-weight: 800; margin-bottom: 4px; }
.deck-roster-title { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 10px; color: #c4b5fd; }
.deck-table { width: 100%; border-collapse: collapse; }
.deck-table th, .deck-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.deck-table th { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.06em; }
.deck-empty { color: var(--text-dim); font-style: italic; }
.deck-foot { display: flex; justify-content: space-between; color: var(--text-dim); font-weight: 700; padding-top: 8px; }
@media (max-width: 899px) {
  .host-main { order: 2; }
  .host-settings { order: 1; }
  .host-join { order: 3; }
}
@media (max-width: 440px) {
  .deck-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #0b0f19;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 10px;
  }
}
.claim-box {
  background: var(--card-bg);
  border: 2px dashed var(--accent-purple);
  border-radius: 12px;
  padding: 10px;
}
.away-pill {
  visibility: hidden;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 0 0 auto;
  display: inline-block;
  width: max-content;
  background: var(--accent-gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 999px;
  padding: 5px 8px;
}
.away-pill.on {
  visibility: visible;
  animation: away-pulse 1.6s ease-in-out infinite;
}
@keyframes away-pulse { 50% { transform: scale(1.05); } }
.cell.shake { animation: shake 0.35s linear; }
@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.caller {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: min(100%, clamp(160px, 22vh, 340px));
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(4px, 0.6vh, 10px);
}
.caller-tag {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: clamp(0.8rem, 1.5vh, 1.25rem);
  color: #f8fafc;
}
.caller-line {
  flex: 0 0 auto;
  max-width: 100%;
  background: #f8fafc;
  color: #090d16;
  border: 3px solid #f59e0b;
  border-radius: 14px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.1vh, 1.8rem);
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.caller-line:empty { display: none; }
.caller svg { width: clamp(100px, 16vh, 260px); height: auto; max-width: 100%; display: block; }
.caller.talking svg { animation: caller-bob 0.28s ease-in-out infinite alternate; }
@keyframes caller-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.caller .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.caller.talking .mouth { transform-box: fill-box; transform-origin: center; animation: talk 0.16s infinite alternate; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes talk { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.tv-draw { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.cage {
  width: min(78%, 340px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #ffe7a3, #f59e0b 58%, #b45309);
  box-shadow: 0 0 0 4px #070a13, 0 0 0 8px #8b5cf6, 0 0 0 11px #fff;
}
.cage > div { width: 100%; height: 100%; }
.cage .ball,
.cage .hero-ball, .cage .mini-ball {
  width: 100%;
  height: 100%;
  box-shadow: none;
  background: transparent;
  color: #090d16;
}
.cage .call { color: #090d16; }
.cage.tumbling {
  background: #111827;
  box-shadow: 0 0 0 4px #070a13, 0 0 0 8px #f59e0b;
}
.tumble {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f59e0b;
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tumble 1.7s linear infinite;
}
.tumble:nth-child(2) { animation-duration: 1.3s; }
.tumble:nth-child(3) { animation-duration: 1.9s; animation-direction: reverse; }
.tumble:nth-child(4) { animation-duration: 1.5s; }
.tumble:nth-child(5) { animation-duration: 1.1s; animation-direction: reverse; }
@keyframes tumble {
  0% { transform: translate(18%, 55%) rotate(0deg); }
  25% { transform: translate(150%, 18%) rotate(160deg); }
  50% { transform: translate(90%, 145%) rotate(320deg); }
  75% { transform: translate(8%, 20%) rotate(500deg); }
  100% { transform: translate(18%, 55%) rotate(720deg); }
}
.qr-badge {
  position: static;
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  background: #fff;
  color: #090d16;
  border-radius: 12px;
  padding: 12px 14px 8px;
  text-align: center;
  cursor: default;
  pointer-events: none;
}
.qr-badge img {
  width: min(100%, clamp(110px, 20cqh, 260px));
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  background: #fff;
  object-fit: contain;
}
.qr-badge span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.4vh, 3.6rem);
  letter-spacing: 0.14em;
  color: #090d16;
  line-height: 1;
}
.join-url { color: var(--text-dim); font-size: 0.85rem; word-break: break-all; text-align: center; }
.who li.pop { animation: pop-in 0.45s ease; }
@keyframes pop-in { from { transform: scale(0.82); } to { transform: scale(1); } }
#awayStat.pulse { animation: pulse 0.8s ease; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.confetti i {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 14px;
  background: #f59e0b;
  animation: fall 1.4s linear forwards;
}
.confetti i:nth-child(odd) { background: #8b5cf6; }
@keyframes fall { to { transform: translateY(100vh) rotate(180deg); opacity: 0.2; } }
@media (min-height: 1000px) {
  .tv-stage {
    grid-template-columns: minmax(520px, 40%) minmax(0, 1fr) minmax(250px, 18%);
    gap: 8px;
    padding: 8px 10px 4px;
  }
  .tv-stage .brand-title { font-size: clamp(1.8rem, 4.2vh, 4.4rem); }
  .tv-stage .motto { font-size: clamp(0.9rem, 2.1vh, 2rem); }
  .tv-stage .stat { padding: 8px 14px; min-width: 120px; }
  .tv-stage .stat b { font-size: clamp(1.8rem, 4vh, 3.8rem); }
  .tv-stage .stat span { font-size: clamp(0.8rem, 1.6vh, 1.4rem); }
  .tv-stage #unlock { font-size: clamp(1rem, 2.4vh, 2rem); padding: 10px 16px; }
  .hero-slot {
    --ball-size: min(280px, 25.9vh);
  }
  .caller { width: min(100%, clamp(200px, 24vh, 420px)); }
  .caller svg { width: clamp(150px, 22vh, 340px); }
  .caller-line { font-size: clamp(1.25rem, 3.1vh, 2.6rem); padding: 8px 14px; }
  .caller-tag { font-size: clamp(0.95rem, 1.9vh, 1.6rem); }
  .recent-label { font-size: clamp(0.9rem, 1.7vh, 1.4rem); }
  .recent li { font-size: clamp(1rem, 2.3vh, 1.9rem); padding: 0.35em 0.55em; }
  .specials { min-height: 0; padding: 10px 14px; }
  .specials-label { font-size: clamp(0.8rem, 1.5vh, 1.2rem); }
  .specials-text { font-size: clamp(1.2rem, 2.9vh, 2.2rem); }
  .hopper-chip { font-size: clamp(0.7rem, 1.15vh, 0.95rem); }
  .board { gap: 3px; }
  .board-col h3 { font-size: clamp(1.8rem, 3.6vh, 3.6rem); }
  .num {
    font-size: 50px;
    line-height: 1;
    height: calc(100% - 6px);
    width: calc(100% - 8px);
    align-self: center;
    justify-self: center;
    padding: 0 0.45em;
  }
  .tv-rail { gap: 10px; }
  .tv-right { gap: 8px; font-size: clamp(1.15rem, 2.3vh, 2rem); }
  .tv-right .pill-row,
  .tv-right .countdown { font-size: 1em; }
  .tv-right .text-dim { font-size: 0.92em; }
  .tv-right .free-note { font-size: 0.85em; }
  .scan-heading { font-size: clamp(1.2rem, 2.6vh, 2.4rem); }
  .qr-badge span { font-size: clamp(2rem, 4.8vh, 4rem); }
  .qr-badge img { width: min(100%, clamp(160px, 24cqh, 340px)); }
  .tv-ticker { font-size: clamp(1.15rem, 2.5vh, 2.2rem); gap: 12px; }
  .tv-ticker img { width: clamp(36px, 4vh, 64px); height: auto; }
  .tv-foot .player-footer-credit { font-size: clamp(0.85rem, 1.7vh, 1.45rem); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
