/* ESTILOS CONTROL REMOTO ANFITRIÓN - CASINO LAS VEGAS */
:root {
  --bg-deep: #07090E;
  --bg-surface: #0F172A;
  --bg-card: #1E293B;
  --gold-primary: #F59E0B;
  --gold-light: #FCD34D;
  --emerald: #10B981;
  --red: #EF4444;
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.host-app {
  width: 100%;
  max-width: 480px;
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Encabezado */
.host-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 12px 16px;
}

.host-badge {
  background: var(--gold-primary);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.host-title-block h1 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 2px 0;
}

.host-title-block p {
  font-size: 11px;
  color: var(--text-muted);
}

.host-connected-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}

.host-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Estadísticas Rápidas */
.host-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.stat-val {
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF;
}

.stat-val.highlight {
  color: var(--gold-light);
}

/* BOTÓN GIGANTE GIRAR Y EXTRAER */
.host-main-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.btn-spin-master {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid var(--gold-light);
  background: radial-gradient(circle at 35% 35%, #FEF08A 0%, #F59E0B 45%, #B45309 85%, #78350F 100%);
  color: #000000;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.6), inset 0 4px 15px rgba(255, 255, 255, 0.8), inset 0 -6px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-spin-master:active {
  transform: scale(0.93);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-spin-master.disabled {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.5);
}

.spin-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.spin-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.spin-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.spin-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #3B1F00;
  margin-top: 4px;
}

/* Selector de Voz del Cantador */
.voice-selector-card {
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.voice-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.8px;
}

.voice-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-voice-toggle {
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-voice-toggle:active {
  transform: scale(0.97);
}

.btn-voice-toggle.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.35) 100%);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Selector Modo Automático */
.auto-mode-card {
  width: 100%;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auto-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-label {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.auto-interval-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.auto-interval-row select {
  background: #0F172A;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #475569;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--emerald);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Secciones de Configuración */
.host-section-card {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
}

.section-title-row h2 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.form-group-host {
  margin-bottom: 10px;
}

.form-group-host label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group-host select,
.form-group-host input {
  width: 100%;
  padding: 10px 12px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #FFF;
  font-size: 14px;
  font-family: var(--font-sans);
}

.btn-update-round {
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
}

/* Verificador Rápido */
.verify-input-row {
  display: flex;
  gap: 8px;
}

.verify-input-row input {
  flex: 1;
  padding: 10px 12px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #FFF;
  font-size: 14px;
  font-family: monospace;
}

.btn-quick-verify {
  padding: 10px 18px;
  background: var(--emerald);
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.verify-result-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.4;
}

.verify-result-box.won {
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

.verify-result-box.failed {
  border: 1px solid var(--red);
  color: #FCA5A5;
}

.hidden { display: none !important; }

/* Reinicio */
.host-reset-section {
  margin-top: 10px;
}

.btn-reset-round {
  width: 100%;
  padding: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--red);
  border-radius: 10px;
  color: #FCA5A5;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}
