/* 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;
}
.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;
  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;
}

.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.17rem; font-weight: 900; }
.btn-row, .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.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; }
.hero-ball, .mini-ball {
  width: 92px;
  height: 92px;
  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 4px var(--tv-bg), 0 0 0 8px var(--accent-purple), 0 0 0 11px #fff;
  flex-shrink: 0;
  position: relative;
  container-type: size;
}
.mini-ball { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--bg-dark), 0 0 0 6px var(--accent-purple); }
.call {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42cqi;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
}
.now-flag {
  position: absolute;
  top: -6px;
  background: var(--ink);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 6px;
}
.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; }
.play-meta .mini-ball { width: 100px; height: 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,
#table > .text-btn { flex-shrink: 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;
}
.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; }
.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-stage {
  display: grid;
  grid-template-columns: minmax(260px, 32%) minmax(0, 1fr) minmax(240px, 28%);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px 8px;
}
.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-stats { display: flex; gap: 10px; align-items: center; }
.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: 8px;
  background: rgba(19, 27, 46, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px;
}
.tv-left { align-items: stretch; justify-content: flex-start; overflow: hidden; }
.tv-rail { display: flex; flex-direction: column; gap: 12px; }
.tv-right { flex: 1 1 auto; overflow: hidden; }
.tv-right .who { overflow: auto; min-height: 0; }
.caller-stage {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#leftBody { flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.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; gap: 6px; align-items: center; 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-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%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.board-col { display: grid; grid-template-rows: auto repeat(15, minmax(0, 1fr)); gap: 2px; min-height: 0; }
.board-col h3 { text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 1rem; }
.num {
  position: relative;
  border-radius: 50%;
  border: 2px dotted rgba(203, 213, 225, 0.55);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.62rem, 1.5vh, 0.95rem);
  min-height: 0;
}
.num.on {
  background: var(--accent-gold);
  color: var(--ink);
  border-style: solid;
  border-color: var(--ink);
}
.num.on .tick { position: absolute; right: 1px; bottom: -1px; font-size: 0.65em; font-weight: 900; }
.num.now {
  outline: 3px solid #fff;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px var(--accent-purple);
}
.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;
  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(2rem, 6vw, 4.5rem); font-weight: 900; }
.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; }

@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(240px, 1fr) minmax(280px, 1.15fr) minmax(260px, 1fr);
    align-items: start;
    gap: 18px;
  }
  .host-call { position: static; padding: 0; }
  .host-board { padding: 16px 24px 20px; }
}
.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: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.caller-tag {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: #f8fafc;
}
.caller-line {
  flex: 0 0 auto;
  max-width: 100%;
  background: #f8fafc;
  color: #090d16;
  border: 3px solid #f59e0b;
  border-radius: 14px;
  padding: 4px 8px;
  font-weight: 800;
  font-size: 0.75rem;
  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: auto; height: auto; max-width: 100%; max-height: calc(100% - 52px); 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(18vh, 176px);
  height: min(18vh, 176px);
  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 .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: clamp(140px, 16vh, 184px);
  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.5rem, 3.2vh, 2.3rem);
  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 (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
