:root {
  --bg-color: #06060e;
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.6);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.6);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.6);
  --gold: #f59e0b;
  --red: #ef4444;
  --border-glass: rgba(130, 170, 255, 0.3);
  --card-glass: rgba(13, 16, 36, 0.78);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
}

/* ENVOLTORIO PRINCIPAL VERTICAL 9:16 (TIKTOK LIVE) */
.stream-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 9 / 16);
  background: radial-gradient(circle at 50% 25%, #180e35 0%, #080816 65%, #030308 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
}

/* CAPAS CÓSMICAS DE FONDO */
.space-nebula {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 70%, rgba(0, 240, 255, 0.12) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.stars-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ARCO LUMINOSO CÓSMICO (TRAZO CURVO DE LA MAQUETA) */
.cosmic-light-arc {
  position: absolute;
  top: -100px;
  right: -120px;
  width: 600px;
  height: 700px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.15);
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 3;
}

/* SHOCKWAVE FLASH AL REVELAR VEREDICTO */
.shockwave-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.5) 0%, transparent 75%);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.4s ease-out;
}

.shockwave-flash.active {
  opacity: 1;
}

/* SUPERNOVA CANVAS PARA CONFETI / ESTRELLAS DE ORO EN TIER S+ */
.supernova-canvas {
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

/* OVERLAY DE ALERTA DE PELIGRO NUCLEAR / TIER TÓXICO */
.danger-glitch-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 52;
  opacity: 0;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, transparent 75%);
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}

.danger-glitch-overlay.active {
  opacity: 1;
  animation: glitchStrobe 0.8s infinite alternate;
}

@keyframes glitchStrobe {
  0% { opacity: 0.9; }
  50% { opacity: 0.2; }
  100% { opacity: 0.8; }
}

/* =======================================================
   1. TIKTOK LIVE TOP BAR (1:1 CON LA MAQUETA ORIGINAL)
   ======================================================= */
.tt-top-bar {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 6px 14px;
}

/* BADGE DEL HOST (IZQUIERDA) */
.tt-host-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 10px 3px 4px;
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.tt-avatar-ring {
  position: relative;
  width: 34px;
  height: 34px;
}

.tt-host-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ec4899;
}

.live-tag {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff2d55;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tt-host-info {
  display: flex;
  flex-direction: column;
}

.tt-host-name {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.tt-viewers {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.tt-follow-btn {
  background: #ff2d55;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  margin-left: 2px;
  transition: transform 0.15s;
}

.tt-follow-btn:hover {
  transform: scale(1.05);
}

/* TOP RIGHT (MONEDAS, CERRAR, LOGO TIKTOK LIVE) */
.tt-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-coin-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
}

.tt-close-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
}

.tt-live-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.tt-note-icon {
  font-size: 0.75rem;
  color: #00f0ff;
}

.tt-logo-text strong {
  color: #ff2d55;
  margin-left: 2px;
}

/* STATUS DISCRETO DE COLA / VIP */
.queue-status-bar {
  position: relative;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  padding: 2px 16px;
  font-size: 0.65rem;
  font-weight: 700;
}

.queue-pill {
  color: #cbd5e1;
}

.sound-unlock {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  z-index: 40;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: 700 16px/1 "Plus Jakarta Sans", sans-serif;
  color: #041018;
  background: #fde047;
  box-shadow: 0 0 24px rgba(253, 224, 71, 0.65);
  cursor: pointer;
}

.vip-jump-pill {
  color: #fde047;
  text-shadow: 0 0 8px rgba(253, 224, 71, 0.5);
}

/* TOAST ALERTA VIP SALTO DE FILA */
.vip-alert-toast {
  position: absolute;
  top: 60px;
  left: 16px;
  right: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  border: 1.5px solid #ffffff;
  border-radius: 14px;
  padding: 8px 14px;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
  z-index: 60;
  transform: translateY(-90px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-alert-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* BANNER DE ESPERA (IDLE) */
.idle-banner {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 16, 36, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 8px 18px;
  text-align: center;
  z-index: 35;
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.idle-banner.active {
  opacity: 1;
}

.idle-banner h3 {
  font-size: 0.72rem;
  font-family: 'Orbitron', sans-serif;
  color: var(--cyan);
  margin-bottom: 2px;
}

.idle-banner p {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* =======================================================
   2. ESCENARIO CENTRAL CÓSMICO (CENTRO)
   ======================================================= */
.cosmic-stage {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: -10px;
}

/* A) VENTANA CIBERNÉTICA CON LA PAREJA */
.cyber-window-frame {
  position: relative;
  width: 86%;
  height: 245px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8),
              0 0 25px rgba(0, 240, 255, 0.14),
              inset 0 0 16px rgba(0, 240, 255, 0.08);
  background: #090b1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bisel cyberpunk izquierdo con LED e indicadores */
.bezel-indicators {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.bezel-led {
  width: 4px;
  height: 12px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
}

.bezel-line {
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
}

.window-viewport {
  width: 100%;
  height: 100%;
  position: relative;
}

.couple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.96);
  border-radius: 18px;
}

/* B) GRAN RUEDA ZODIACAL CELESTIAL (SUPERPUESTA ARRIBA - GRANDE & MONUMENTAL) */
.celestial-wheel-container {
  position: absolute;
  top: -95px;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 450px;
  z-index: 12;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.22));
}

/* C) TARJETA HUD DE CRISTAL FLOTANTE (SUPERPUESTA ABAJO - 2 COLUMNAS) */
.glass-hud-card {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: var(--card-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--border-glass);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.3),
              0 0 30px rgba(0, 240, 255, 0.15);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 18;
  transition: border-color 0.4s, box-shadow 0.4s;
}

/* GAMIFICACIÓN: BORDES Y RESPLANDOR POR TIER */
.glass-hud-card.tier-s-plus {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85),
              0 0 40px rgba(251, 191, 36, 0.45),
              inset 0 0 18px rgba(251, 191, 36, 0.2);
}

.glass-hud-card.tier-toxic {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85),
              0 0 40px rgba(239, 68, 68, 0.5),
              inset 0 0 18px rgba(239, 68, 68, 0.25);
  animation: cardToxicPulse 1.2s infinite alternate;
}

@keyframes cardToxicPulse {
  0% { border-color: rgba(239, 68, 68, 0.6); }
  100% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 45px rgba(239, 68, 68, 0.65); }
}

/* COLUMNA IZQUIERDA: PENTÁGONO RADAR 5D (RUBROS) */
.hud-left-radar {
  width: 165px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* COLUMNA DERECHA: MATCH + STATS + SCORE FINAL */
.hud-right-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.match-title {
  font-family: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.match-title span {
  color: #ffffff;
}

/* GRUPOS DE ESTADÍSTICA (CHEMISTRY / DESTINY) */
.stat-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.stat-label {
  color: #cbd5e1;
}

.stat-val.cyan {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
  margin-left: 4px;
}

.stat-val.purple {
  color: #e879f9;
  text-shadow: 0 0 8px #e879f9;
  margin-left: 4px;
}

.stat-subval {
  font-size: 0.65rem;
  color: #e879f9;
  font-weight: 700;
}

/* PÍLDORAS / CÁPSULAS DE BARRA DE PROGRESO DE NEÓN */
.capsule-track {
  height: 15px;
  border-radius: 999px;
  padding: 2px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cyan-track {
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.purple-track {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.capsule-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyan-fill {
  background: linear-gradient(90deg, #00b4d8, #00f0ff);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.95);
}

.purple-fill {
  background: linear-gradient(90deg, #9333ea, #e879f9);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.95);
}

/* MEDIDOR GIGANTE DEL % FINAL (GAMIFICADO) */
.overall-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1.2px solid rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  margin-top: 2px;
  transition: all 0.4s ease-out;
}

.overall-badge.gold {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.55);
}

.overall-badge.toxic {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.overall-badge-left {
  display: flex;
  flex-direction: column;
}

.badge-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.4px;
}

.badge-sub {
  font-size: 0.52rem;
  color: var(--text-muted);
}

.overall-badge-val {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff;
  transition: color 0.4s, text-shadow 0.4s;
}

.overall-badge.gold .badge-num {
  color: #fbbf24;
  text-shadow: 0 0 14px #fbbf24;
}

.overall-badge.toxic .badge-num {
  color: #ef4444;
  text-shadow: 0 0 14px #ef4444;
}

.badge-sparkle {
  font-size: 0.8rem;
  animation: pulse-sparkle 1.4s infinite alternate;
}

@keyframes pulse-sparkle {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* VEREDICTO KÁRMICO Y TIER RANK */
.verdict-banner {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 10, 26, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  z-index: 20;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.tier-badge {
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.3px;
}

.tier-badge.tier-s-plus {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #000;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.tier-badge.tier-toxic {
  background: linear-gradient(90deg, #dc2626, #991b1b);
  color: #fff;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

.verdict-tag {
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}

.flags-preview {
  color: #fca5a5;
  font-size: 0.58rem;
}

/* CONCLUSIÓN Y ANÁLISIS DEL LLM (CITA DEL ORÁCULO) */
.oracle-quote-card {
  position: absolute;
  bottom: -98px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(8, 10, 26, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
  z-index: 21;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.oracle-quote-card.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.oracle-quote-icon {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.9));
}

.oracle-quote-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oracle-quote-tag {
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.5px;
}

.oracle-quote-text {
  font-size: 0.62rem;
  color: #f1f5f9;
  line-height: 1.35;
  font-weight: 500;
  font-style: italic;
}

/* =======================================================
   3. ZONA INFERIOR DE TIKTOK LIVE (CHAT, SUBTÍTULOS, ACCIONES)
   ======================================================= */
.tt-bottom-area {
  position: relative;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px 14px;
}

/* SUBTÍTULOS KARAOKE EN TIEMPO REAL */
.subtitles-pill {
  background: rgba(10, 12, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.subtitles-icon {
  font-size: 0.9rem;
}

.karaoke-text {
  font-size: 0.68rem;
  line-height: 1.35;
  color: #e2e8f0;
  font-weight: 500;
  flex: 1;
}

.word-highlight {
  color: var(--cyan);
  font-weight: 800;
  text-shadow: 0 0 8px var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
}

/* FILA DE INTERACCIÓN: CHAT A LA IZQUIERDA, BOTONES A LA DERECHA */
.tt-interaction-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

/* COMENTARIOS FLOTANTES (ESTILO TIKTOK) */
.tt-floating-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 70%;
}

.chat-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.65rem;
  backdrop-filter: blur(8px);
  animation: slide-in-chat 0.3s ease-out;
}

@keyframes slide-in-chat {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-user-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
}

.chat-name {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  margin-right: 4px;
}

.chat-text {
  color: #ffffff;
}

/* BOTONES DE ACCIÓN LATERALES (DERECHA) */
.tt-side-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tt-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.action-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
}

.action-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #fff;
  object-fit: cover;
}

.action-plus-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff2d55;
  color: #fff;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
}

.action-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  backdrop-filter: blur(8px);
}

.action-icon-circle.heart {
  color: #ff2d55;
}

.action-count {
  font-size: 0.6rem;
  font-weight: 700;
  color: #e2e8f0;
}

/* BARRA DE INPUT TIKTOK INFERIOR */
.tt-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-input-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.tt-input-action-btn {
  background: rgba(0, 0, 0, 0.45);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ESCENARIO CON FONDO, RUEDA Y HOMBRE */
body[data-scene="live"] .space-nebula,
body[data-scene="live"] .stars-canvas,
body[data-scene="live"] .cosmic-light-arc,
body[data-scene="live"] .tt-top-bar,
body[data-scene="live"] .idle-banner,
body[data-scene="live"] .cosmic-stage,
body[data-scene="live"] .tt-bottom-area {
  display: none !important;
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: #05010f;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.stage-bg.is-on {
  opacity: 1;
}

.stage-wheel-wrap {
  position: absolute;
  top: 3%;
  left: 8%;
  width: 84%;
  pointer-events: none;
}

.stage-wheel {
  width: 100%;
  display: block;
  mix-blend-mode: screen;
}

.stage-dim {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.42);
}

.stream-container.intro-osito .stage-dim {
  background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.82) 62%);
}

.stream-container.intro-dona .stage-wheel-wrap,
.stream-container.intro-osito .stage-wheel-wrap {
  z-index: 11;
}

.stream-container.intro-dona .stage-host,
.stream-container.intro-dona .stage-woman,
.stream-container.intro-dona .stage-score,
.stream-container.intro-osito .stage-host,
.stream-container.intro-osito .stage-woman,
.stream-container.intro-osito .stage-score {
  opacity: 0;
}

.stream-container.intro-osito .wheel-center,
.stream-container.intro-dona .wheel-center {
  opacity: 0;
}

.stream-container.intro-dona .stage-wheel {
  filter: sepia(0.65) saturate(2.1) brightness(1.25);
}

.stream-container.intro-osito .stage-wheel {
  filter: hue-rotate(-32deg) saturate(1.8) brightness(1.08);
  animation: wheelPulse 1.15s ease-in-out 3;
}

@keyframes wheelPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.tier-intro {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28%;
  z-index: 12;
  text-align: center;
  pointer-events: none;
}

.tier-kicker {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.tier-name {
  margin: 6px 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.tier-intro.dona {
  top: 46%;
  background: linear-gradient(90deg, transparent, rgba(120, 72, 8, 0.94), transparent);
  padding: 16px 12px;
  color: #fff7d6;
}

.tier-intro.osito {
  top: 20%;
  background: rgba(24, 4, 32, 0.78);
  border: 1px solid rgba(244, 114, 182, 0.85);
  border-radius: 18px;
  padding: 18px 12px 16px;
  box-shadow: 0 0 32px rgba(244, 114, 182, 0.45);
}

.tier-intro.osito .tier-kicker {
  color: #fbcfe8;
  font-size: 0.92rem;
}

.tier-intro.osito .tier-name {
  font-size: 1.85rem;
  color: #fff;
  text-shadow: 0 0 18px rgba(244, 114, 182, 0.95);
}

.advice-card {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 28%;
  z-index: 14;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  background: rgba(42, 8, 58, 0.9);
  border: 1px solid rgba(244, 114, 182, 0.9);
  box-shadow: 0 0 28px rgba(232, 121, 249, 0.45);
}

.advice-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f9a8d4;
}

#adviceText {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

#queueList li.osito {
  color: #f9a8d4;
}

.wheel-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.wheel-who {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.wheel-signs {
  max-width: 100%;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: #7ef6ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.65);
}

.wheel-slam {
  display: none;
  margin: 1px 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.85);
}

.wheel-slam.show {
  display: block;
  animation: slamIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wheel-slam.gold { color: #fbbf24; text-shadow: 0 0 16px rgba(251, 191, 36, 0.9); }
.wheel-slam.danger { color: #f87171; text-shadow: 0 0 16px rgba(239, 68, 68, 0.9); }

@keyframes slamIn {
  from { transform: scale(0.55); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.stage-host,
.stage-woman {
  position: absolute;
  bottom: 0;
  width: 48%;
  height: 42%;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

.stage-host {
  right: -5%;
  width: 40%;
  height: 35%;
}

.stage-woman {
  left: 1%;
  bottom: -6%;
}

.stage-host video,
.stage-woman video {
  display: none;
}

.stage-host canvas,
.stage-woman canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stage-woman canvas {
  object-position: left bottom;
}

.stage-host canvas {
  object-position: center bottom;
}

/* Objeto del día, entre los dos, solo en la espera. */
.stage-mesa {
  position: absolute;
  left: 50%;
  bottom: 1.5%;
  width: 36%;
  height: 30%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.stage-mesa.is-off,
.stream-container.intro-dona .stage-mesa,
.stream-container.intro-osito .stage-mesa {
  visibility: hidden;
}

.stage-mesa video {
  display: none;
}

.stage-mesa canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

body[data-scene="live"] .queue-status-bar {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  z-index: 30;
  justify-content: flex-end;
}

.stage-score {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 54%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 2px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(120, 170, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  pointer-events: none;
}

.stage-score.level-base #scoreRadar,
.stage-score.level-base .score-destiny,
.stage-score.level-dona #scoreRadar {
  display: none;
}

.stage-score.level-dona {
  background: rgba(48, 32, 6, 0.82);
  border-color: rgba(251, 191, 36, 0.95);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.45);
  animation: donaSheen 1.1s ease;
}

.stage-score.level-dona .score-title,
.stage-score.level-dona .score-perk,
.stage-score.level-dona .score-metric {
  color: #fef3c7;
}

.stage-score.level-dona .score-track.cyan .score-fill,
.stage-score.level-dona .score-track.purple .score-fill {
  background: linear-gradient(90deg, #b45309 0%, #fbbf24 55%, #fff7d6 100%);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.95);
}

@keyframes donaSheen {
  0% { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}

.stage-score.level-osito {
  background: rgba(42, 8, 58, 0.78);
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow: 0 0 28px rgba(232, 121, 249, 0.55);
  animation: ositoGlow 1.4s ease;
}

.stage-score.level-osito #scoreRadar {
  animation: radarPop 0.7s ease;
}

@keyframes ositoGlow {
  0% { box-shadow: 0 0 0 rgba(244, 114, 182, 0); }
  40% { box-shadow: 0 0 36px rgba(244, 114, 182, 0.85); }
  100% { box-shadow: 0 0 28px rgba(232, 121, 249, 0.55); }
}

@keyframes radarPop {
  0% { transform: scale(0.82); }
  100% { transform: scale(1); }
}

.score-perk:empty {
  display: none;
}

.tap-goal {
  position: absolute;
  top: 36px;
  left: 12px;
  right: 12px;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tap-follow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  background: #ff2d55;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.tap-follow.hit {
  animation: followPop 0.45s ease;
}

@keyframes followPop {
  50% { transform: scale(1.12); }
}

.tap-meter {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.tap-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #00f0ff, #f472b6);
  transition: width 0.25s linear;
}

.tap-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #e2e8f0;
  white-space: nowrap;
}

.tap-goal.boom .tap-follow {
  background: #fbbf24;
  color: #111;
}

.gift-banner {
  position: absolute;
  top: 72px;
  left: 8%;
  right: 8%;
  z-index: 40;
  text-align: center;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 10px 12px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.gift-banner.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.25s ease;
}

.gift-banner.dona {
  background: rgba(236, 72, 153, 0.92);
  color: #fff;
}

.gift-banner.osito {
  background: linear-gradient(90deg, #fbbf24, #f472b6);
  color: #1a1204;
  font-size: 0.95rem;
}

.gift-banner.rosa {
  background: rgba(15, 18, 36, 0.88);
  color: #fecdd3;
  border: 1px solid rgba(244, 114, 182, 0.5);
}

.gift-rain {
  position: absolute;
  inset: 0;
  z-index: 36;
  pointer-events: none;
  overflow: hidden;
}

.gift-rain span {
  position: absolute;
  top: -8%;
  font-size: 1.6rem;
  animation: giftFall 1.8s ease-in forwards;
}

.gift-rain.on span {
  animation-name: giftFall;
}

@keyframes giftFall {
  to { transform: translateY(110vh) rotate(18deg); opacity: 0.2; }
}

#scoreRadar {
  flex: 0 0 auto;
  display: block;
}

.score-stats {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.score-queue {
  flex: 0 0 30%;
  min-width: 0;
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 8px;
}

.score-queue-title {
  margin: 0 0 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fde047;
}

#queueList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#queueList li {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#queueList li.vip {
  color: #fde047;
}

#queueList li.empty {
  color: #94a3b8;
  font-weight: 600;
}

.score-title {
  margin: 0 0 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.score-perk {
  margin: 0 0 2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fde047;
}

.score-metric {
  margin: 2px 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.score-metric-split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.score-track {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(4, 8, 24, 0.35);
}

.score-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-track.cyan .score-fill {
  background: linear-gradient(90deg, #0891b2 0%, #22d3ee 42%, #ecfeff 100%);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.95), inset 0 0 8px rgba(255, 255, 255, 0.45);
}

.score-track.purple .score-fill {
  background: linear-gradient(90deg, #6d28d9 0%, #a855f7 48%, #f0abfc 100%);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.95), inset 0 0 8px rgba(255, 255, 255, 0.35);
}
