/* Bolada Bingo · Broadcast Studio Theme for Television Display */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-obsidian: #08090d;
  --bg-studio-radial: radial-gradient(130% 90% at 50% -10%, rgba(195, 145, 45, 0.16) 0%, rgba(13, 16, 23, 0.96) 55%, #08090d 100%);
  
  --surface-panel: linear-gradient(175deg, rgba(22, 26, 36, 0.88) 0%, rgba(12, 15, 21, 0.96) 100%);
  --surface-card: linear-gradient(165deg, rgba(28, 33, 46, 0.9) 0%, rgba(15, 18, 26, 0.98) 100%);
  --surface-glass: rgba(26, 32, 45, 0.7);
  
  --border-gold: rgba(226, 186, 92, 0.3);
  --border-gold-bright: rgba(255, 222, 120, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --gold-primary: #f5d372;
  --gold-light: #fff2c6;
  --gold-deep: #c99327;
  --gold-shadow: rgba(245, 211, 114, 0.35);
  
  --text-pure: #ffffff;
  --text-gold: #fbe6a8;
  --text-muted: #9aa5b8;
  --text-dim: #647087;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  font-family: var(--font-body);
  color: var(--text-pure);
  background-color: var(--bg-obsidian);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-studio-radial);
  background-attachment: fixed;
  color: #f6f2e8;
  overflow-x: hidden;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Some TV WebViews let an author display rule override the browser's default
   handling of the HTML `hidden` attribute. Keep hidden panels truly removed
   from the broadcast layout so the previous-round results cannot show while
   the current partida is running. */
body.tv-broadcast-body [hidden] {
  display: none !important;
}

/* Base interactive elements */
button, a {
  touch-action: manipulation;
  font-family: var(--font-body);
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 8px var(--gold-shadow);
}

button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, rgba(38, 44, 60, 0.8) 0%, rgba(20, 24, 34, 0.9) 100%);
  color: #f1ebd8;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

button:hover {
  background: linear-gradient(180deg, rgba(55, 62, 85, 0.9) 0%, rgba(30, 36, 50, 0.95) 100%);
  border-color: var(--border-gold-bright);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(245, 211, 114, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 3px;
}

.btn-icon {
  font-size: 14px;
}

body.tv-broadcast-body #refresh.is-refreshing .btn-icon {
  display: inline-block;
  animation: tv-refresh-spin 0.75s linear infinite;
}

@keyframes tv-refresh-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   TOPBAR / BROADCAST HEADER
   ========================================================================== */
.topbar {
  padding: 12px 3vw;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.95) 0%, rgba(10, 12, 18, 0.85) 100%);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 50;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.brand {
  color: #fff;
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.brand-logo-frame {
  position: relative;
}

.brand-mark {
  background: radial-gradient(circle at 35% 25%, #fff5d1 0%, #f1c953 45%, #9b6c16 95%);
  color: #1a1205;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  font-family: var(--font-display);
  border: 2px solid #fff6d8;
  box-shadow: 0 0 16px rgba(241, 201, 83, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: linear-gradient(180deg, #ffffff 0%, #fff0bf 50%, #e2b03d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(245, 211, 114, 0.25);
  line-height: 1.1;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--gold-primary);
  margin-top: 3px;
  text-transform: uppercase;
}

.live-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff334b;
  box-shadow: 0 0 8px #ff334b;
  animation: pulse-live-dot 1.5s infinite;
}

@keyframes pulse-live-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

/* Studio Center Status */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-clock-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(220, 185, 95, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.studio-clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46d19b;
  box-shadow: 0 0 6px #46d19b;
}

.studio-clock-label {
  color: var(--text-dim);
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 9px;
}

.studio-clock-chip strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.connection {
  color: #c4ccdc;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 20, 29, 0.7);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.connection:before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9a845;
  box-shadow: 0 0 8px #d9a845;
}

.connection.ok:before {
  background: #46d19b;
  box-shadow: 0 0 10px #46d19b;
}

.connection.error {
  color: #ffb885;
  border-color: rgba(255, 130, 75, 0.3);
}

.connection.error:before {
  background: #ff5252;
  box-shadow: 0 0 10px #ff5252;
  animation: pulse-live-dot 1s infinite;
}

.tv-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  padding: 5px 9px;
  border: 1px solid rgba(91, 190, 255, 0.42);
  border-radius: 20px;
  color: #d9efff;
  background: rgba(15, 42, 76, 0.8);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
}

.tv-account-avatar {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #2584e8, #12428d);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.tv-account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.tv-account-copy strong,
.tv-account-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-account-copy strong {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.1;
}

.tv-account-copy small {
  max-width: 170px;
  color: #a9c7e8;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
}

#tv-account-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */
main {
  padding: 16px 3vw;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 22px;
}

.board, .tickets, .join {
  background: var(--surface-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.board {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

/* Heading section */
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 38px);
  margin: 4px 0 0;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.15;
}

.schedule {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.schedule-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 4px 12px;
  border-radius: 12px;
}

.schedule-icon {
  font-size: 13px;
}

.schedule strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.room-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   WAITING SCREEN / COUNTDOWN MARQUEE
   ========================================================================== */
.waiting-screen {
  flex: 1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(20, 64, 118, 0.96) 0%, rgba(8, 25, 55, 0.98) 72%, rgba(5, 13, 29, 0.99) 100%);
  border: 2px solid rgba(109, 181, 255, 0.58);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 45px rgba(63, 151, 239, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  margin: 14px 0 6px;
}

.waiting-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 32, 0.9);
  padding: 6px 16px;
  border-radius: 24px;
  border: 1px solid rgba(220, 185, 95, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1c953;
  box-shadow: 0 0 10px #f1c953;
  animation: pulse-live-dot 1.8s infinite;
}

.big-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px 0;
  width: 100%;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-unit span, .big-countdown span {
  font-family: var(--font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: clamp(52px, 8.5vw, 125px);
  line-height: 1;
  min-width: 1.95em;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #181d28 0%, #090b10 100%);
  border: 2px solid rgba(220, 185, 95, 0.45);
  box-shadow: 
    inset 0 4px 14px rgba(0, 0, 0, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(245, 211, 114, 0.22);
  color: #fff1be;
  text-shadow: 0 2px 16px rgba(245, 211, 114, 0.5);
  display: inline-block;
  text-align: center;
}

.countdown-unit label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #a49780;
  text-transform: uppercase;
}

.big-countdown b, .countdown-sep {
  font-size: clamp(45px, 6vw, 90px);
  color: #d49c28;
  animation: colon-blink 1.2s infinite ease-in-out;
  line-height: 1;
  margin-top: -24px;
  font-weight: 900;
}

@keyframes colon-blink {
  0%, 100% { opacity: 1; text-shadow: 0 0 12px rgba(245, 211, 114, 0.7); }
  50% { opacity: 0.3; text-shadow: none; }
}

#waiting-hint {
  color: #d5d0c2;
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0 14px;
  letter-spacing: 0.3px;
}

.ticket-price-badge {
  display: inline-block;
}

#ticket-price {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  color: #fff4ca;
  background: linear-gradient(135deg, rgba(74, 56, 20, 0.8) 0%, rgba(32, 24, 9, 0.9) 100%);
  padding: 8px 26px;
  border-radius: 25px;
  border: 1.5px solid rgba(241, 201, 83, 0.5);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 20px rgba(241, 201, 83, 0.25);
  display: inline-block;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   LIVE STRIP & 3D BINGO SPHERE
   ========================================================================== */
.live-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 16px 0;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(25, 30, 42, 0.9) 0%, rgba(13, 16, 22, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.ball-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.last-ball {
  width: clamp(100px, 11vw, 165px);
  height: clamp(100px, 11vw, 165px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, #ffffff 0%, #fff2b8 20%, #f1c953 52%, #b57e17 82%, #684206 100%);
  color: #1a1204;
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 90px);
  font-weight: 900;
  border: 5px solid #fff3cf;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(241, 201, 83, 0.4),
    inset -8px -10px 22px rgba(104, 66, 6, 0.8),
    inset 6px 8px 16px rgba(255, 255, 255, 0.95);
  margin-top: 8px;
  position: relative;
  animation: ball-float 3s infinite ease-in-out;
}

@keyframes ball-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.live-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.phase-row strong, .live-info>strong {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(245, 211, 114, 0.3);
  line-height: 1;
  letter-spacing: -0.5px;
}

.recent-track {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  flex-wrap: wrap;
}

.recent-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.recent {
  display: flex;
  gap: 10px;
}

.recent span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #1a1205;
  background: radial-gradient(circle at 35% 25%, #ffffff 0%, #f6d475 45%, #b5801e 100%);
  border: 2px solid #fff5d8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.called-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   90-BALL MASTER ILLUMINATED LED BOARD
   ========================================================================== */
.number-board {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 6px;
}

.number {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.9);
  color: #636f86;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(12px, 1.45vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.number.called {
  background: linear-gradient(145deg, #ffd768 0%, #d49c28 100%);
  color: #191306;
  border-color: #fff0be;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(245, 211, 114, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.number.latest {
  background: #ffffff;
  color: #0b0d13;
  border-color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 20px #ffffff, 0 0 35px #f5d372;
  transform: none;
  overflow: hidden;
  z-index: 5;
  animation: latest-pulse 1.2s infinite alternate ease-in-out;
}

@keyframes latest-pulse {
  0% { box-shadow: 0 0 14px #ffffff, 0 0 25px #f5d372; }
  100% { box-shadow: 0 0 26px #ffffff, 0 0 45px #f5d372; }
}

.winners {
  margin-top: 12px;
  color: #ffeab0;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(22, 27, 39, 0.7);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(220, 185, 95, 0.2);
}

.winners:empty {
  display: none;
}

/* ==========================================================================
   NEXT ROUND BANNER
   ========================================================================== */
.next-round {
  margin-top: 12px;
  border-top: 1px solid rgba(220, 185, 95, 0.3);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #cdb87d;
  flex-wrap: wrap;
}

.next-round>span>strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  margin-top: 2px;
}

.next-round>strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  background: rgba(30, 36, 52, 0.8);
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid rgba(220, 185, 95, 0.3);
}

.next-round>span:last-child {
  font-size: 11px;
  flex: 1;
  min-width: 160px;
  color: var(--text-muted);
}

/* ==========================================================================
   SIDEBAR: VIP QR CARD & CONFIRMED TICKETS
   ========================================================================== */
aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.join {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(155deg, rgba(34, 30, 20, 0.95) 0%, rgba(14, 17, 24, 0.98) 100%);
  border: 1.5px solid rgba(220, 185, 95, 0.35);
}

.qr-frame {
  background: #ffffff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

#qr {
  display: block;
  width: 124px;
  height: 124px;
  border-radius: 4px;
}

.join-content {
  flex: 1;
}

.join h2 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.join p {
  font-size: 12px;
  line-height: 1.45;
  color: #c8d0df;
  margin: 6px 0 12px;
}

.btn-purchase, .join a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: #181204;
  background: linear-gradient(135deg, #ffd768 0%, #d49c28 100%);
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid #ffe694;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 211, 114, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-purchase:hover, .join a:hover {
  background: linear-gradient(135deg, #ffea9f 0%, #e0ab3b 100%);
  transform: translateY(-1px);
  color: #0d0a02;
}

.tickets {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.tickets-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(220, 185, 95, 0.25);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.tickets-title h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.total-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.total-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

.total {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #171205;
  background: linear-gradient(145deg, #ffd768 0%, #c99327 100%);
  padding: 4px 12px;
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(245, 211, 114, 0.35);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2em;
  text-align: center;
}

.participants {
  flex: 1;
}

.ticket {
  padding: 10px 12px;
  background: linear-gradient(160deg, rgba(28, 33, 46, 0.85) 0%, rgba(16, 19, 27, 0.95) 100%);
  border: 1px solid rgba(220, 185, 95, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.ticket header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ticket-private-position {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(91, 190, 255, 0.55);
  border-radius: 5px;
  color: #9bdcff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .5px;
  vertical-align: middle;
}

.ticket strong {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket small {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(36, 42, 58, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(220, 185, 95, 0.2);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.mini-grid.ticket-grid-90 {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.ticket-grid-labels-90 {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.mini-grid span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
  color: #8c98af;
  background: rgba(20, 24, 34, 0.9);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mini-grid .hit {
  color: #181204;
  background: linear-gradient(135deg, #ffd768 0%, #d49c28 100%);
  font-weight: 900;
  box-shadow: 0 0 6px rgba(245, 211, 114, 0.5);
  border-color: #fff2c4;
}

.tickets footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.players-pill, .pages-pill {
  font-size: 11px;
  font-weight: 700;
}

.empty {
  color: var(--text-muted);
  line-height: 1.6;
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   BROADCAST FOOTER / TICKER
   ========================================================================== */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 3vw 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.broadcast-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46d19b;
  box-shadow: 0 0 8px #46d19b;
}

.trust-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-primary);
  background: rgba(26, 32, 46, 0.7);
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220, 185, 95, 0.2);
}

.bottom-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.offline .number-board, body.offline .last-ball {
  opacity: 0.45;
}

body.offline #notice {
  color: #ff9d66;
}

.tv-maintenance-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 5vw; background: #071b32; color: #fff; text-align: center;
}
.tv-maintenance-overlay[hidden] { display: none; }
.tv-maintenance-overlay > div { max-width: 850px; }
.tv-maintenance-overlay h1 { font-size: 40px; font-size: clamp(28px, 4vw, 60px); color: #ffe48a; }
.tv-maintenance-overlay p { font-size: 24px; font-size: clamp(18px, 2vw, 30px); line-height: 1.5; }
