.sorteos-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 70% 25%, rgba(205, 24, 54, 0.24), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(212, 245, 0, 0.08), transparent 50%),
    linear-gradient(160deg, #090d1d 0%, #140914 48%, #0a1024 100%);
  color: #f6f7fb;
  overflow-x: hidden;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
}

.sorteos-strip {
  background: linear-gradient(90deg, #3c0713, #8f0e25 50%, #3c0713);
  border-bottom: 1px solid rgba(255, 140, 158, 0.25);
}

.sorteos-header {
  background: rgba(16, 12, 28, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sorteos-header .header-inner {
  height: 82px;
  border-bottom: 0;
}

.sorteos-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sorteos-select,
.sorteos-chip-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #eef1fa;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.sorteos-select option {
  background: #121830;
  color: #fff;
}

.sorteos-chip-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(212, 245, 0, 0.45);
}

.sorteos-chip-btn.operator-btn {
  border-color: rgba(212, 245, 0, 0.4);
  color: #d4f500;
}

.sorteos-stage-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 34px 0 52px;
}

.sorteos-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 44px;
  align-items: center;
}

.sorteos-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sorteos-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sorteos-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8dce1;
}

.sorteos-live-pill.ready {
  background: rgba(212, 245, 0, 0.16);
  border-color: #d4f500;
  color: #d4f500;
  box-shadow: 0 0 22px rgba(212, 245, 0, 0.22);
}

.sorteos-live-pill.drawn {
  background: rgba(39, 194, 108, 0.18);
  border-color: #4be38f;
  color: #96ffbe;
}

.sorteos-operator-tag {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #d4f500;
  color: #11182f;
}

.sorteos-title {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 0;
  color: #ffffff;
}

.sorteos-prize {
  font-size: 16px;
  color: #e6c6cf;
  line-height: 1.6;
  margin: 0;
}

.sorteos-photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 160, 175, 0.28);
  max-height: 210px;
  background: #121830;
}

.sorteos-photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sorteos-photo-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(12, 16, 34, 0.8);
  color: #d4f500;
  backdrop-filter: blur(6px);
}

.sorteos-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sorteos-stat-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.sorteos-stat-box small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f1aebe;
  margin-bottom: 6px;
}

.sorteos-stat-box strong {
  display: block;
  font-size: 26px;
  color: #ffffff;
  line-height: 1.2;
}

.sorteos-stat-box span {
  display: block;
  font-size: 11px;
  color: #b5bdd3;
  margin-top: 4px;
}

.sorteos-hash-box {
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(10, 15, 32, 0.72);
  border: 1px solid rgba(212, 245, 0, 0.22);
}

.sorteos-hash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sorteos-hash-head small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #d4f500;
}

.sorteos-hash-head span {
  font-size: 9px;
  font-weight: 800;
  color: #a9b5d1;
}

.sorteos-hash-box code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #dce3f7;
  word-break: break-all;
}

.operator-console {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(169, 14, 39, 0.34), rgba(20, 26, 54, 0.88));
  border: 1.5px solid rgba(212, 245, 0, 0.5);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.operator-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.operator-console-head strong {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #d4f500;
}

.operator-logout {
  background: none;
  border: 0;
  color: #f3bcc6;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.operator-hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: #eef1fb;
  margin: 0 0 14px;
}

.operator-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-spin-bolillero {
  width: 100%;
  min-height: 58px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(115deg, #d4f500, #f0ff85);
  color: #121830;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 35px rgba(212, 245, 0, 0.38);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.btn-spin-bolillero:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(212, 245, 0, 0.6);
}

.btn-spin-bolillero:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* GRAN BOLILLERO DIGITAL */
.bolillero-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.bolillero-dome-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bolillero-halo {
  position: absolute;
  width: 490px;
  height: 490px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 245, 0, 0.18) 0%, rgba(199, 25, 49, 0.22) 45%, transparent 72%);
  filter: blur(22px);
  pointer-events: none;
  transition: transform 0.4s, opacity 0.4s;
}

.bolillero-dome-container.spinning .bolillero-halo {
  transform: scale(1.12);
  background: radial-gradient(circle, rgba(212, 245, 0, 0.42) 0%, rgba(232, 56, 74, 0.38) 50%, transparent 74%);
}

.bolillero-ring {
  position: relative;
  width: min(440px, calc(100vw - 44px));
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 12px;
  background: conic-gradient(from 45deg, #f6d365, #c71931, #4a0a18, #d4f500, #c71931, #f6d365);
  box-shadow:
    0 0 0 6px rgba(17, 24, 48, 0.92),
    0 0 0 8px rgba(212, 245, 0, 0.35),
    0 28px 80px rgba(0, 0, 0, 0.65);
}

.bolillero-ring canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #25325c 0%, #101732 58%, #070b19 100%);
}

.bolillero-glass-glare {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 60%),
    inset 0 -22px 42px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.bolillero-center-badge {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(11, 16, 35, 0.84);
  border: 1px solid rgba(212, 245, 0, 0.45);
  text-align: center;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.bolillero-center-badge span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #f3bcc6;
  font-weight: 700;
}

.bolillero-center-badge strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #d4f500;
}

.bolillero-chute {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -6px;
  z-index: 2;
}

.bolillero-chute-neck {
  width: 54px;
  height: 20px;
  background: linear-gradient(90deg, #271528, #7b162c, #271528);
  border-inline: 2px solid rgba(212, 245, 0, 0.45);
}

.bolillero-extracted-ball {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: #11182f;
  background: radial-gradient(circle at 32% 28%, #ffffff, #e8ff6e 45%, #b8d800 100%);
  box-shadow: 0 8px 26px rgba(212, 245, 0, 0.45), inset 0 -4px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  transition: transform 0.25s;
}

.bolillero-extracted-ball.pop {
  transform: scale(1.22);
}

/* Tablero de 6 tambores digitales */
.digital-board {
  width: 100%;
  max-width: 590px;
  padding: 20px 22px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 29, 60, 0.92), rgba(11, 15, 33, 0.96));
  border: 1.5px solid rgba(255, 165, 180, 0.28);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.digital-board-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f3bcc6;
  margin-bottom: 14px;
}

.digital-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slot-hash {
  font-size: 32px;
  font-weight: 900;
  color: #d4f500;
  margin-right: 2px;
}

.digit-drum {
  width: clamp(46px, 8.5vw, 68px);
  height: clamp(62px, 11vw, 86px);
  border-radius: 12px;
  background: linear-gradient(180deg, #070b18 0%, #151e3f 50%, #070b18 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.digit-drum.rolling {
  border-color: #ff6276;
  color: #ffd8de;
}

.digit-drum.locked {
  border-color: #d4f500;
  background: linear-gradient(180deg, #1b2814 0%, #2a3e13 50%, #141e0d 100%);
  color: #d4f500;
  box-shadow: 0 0 24px rgba(212, 245, 0, 0.35), inset 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* Tarjeta Ganador Oficial */
.winner-announcement {
  width: 100%;
  max-width: 590px;
  padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(125, 12, 33, 0.92), rgba(20, 26, 55, 0.96));
  border: 2px solid #d4f500;
  box-shadow: 0 0 55px rgba(212, 245, 0, 0.22), 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: winnerRevealIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes winnerRevealIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.winner-crown {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #d4f500;
  color: #121830;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.winner-ticket-huge {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 900;
  color: #d4f500;
  letter-spacing: 2px;
  margin: 10px 0 4px;
  text-shadow: 0 0 28px rgba(212, 245, 0, 0.35);
}

.winner-announcement h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.8px;
}

.winner-sub {
  font-size: 14px;
  color: #f0ced5;
  margin: 0 0 16px;
}

.winner-audit-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #cbd3e8;
}

.winner-link-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.winner-link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.broadcast-report {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 16, 35, 0.72);
  border: 1px solid rgba(114, 243, 159, 0.38);
  text-align: left;
}

.broadcast-report-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #8effb8;
  margin-bottom: 5px;
}

.broadcast-report p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #e4ebf8;
  margin: 0;
}

.sorteos-footer {
  padding: 20px 0;
  background: rgba(8, 11, 24, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #96a1bd;
}

.sorteos-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sorteos-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.sorteos-footer nav a:hover {
  color: #d4f500;
}

.sorteos-login-dialog {
  width: min(440px, calc(100vw - 28px));
  padding: 32px 28px;
  border-radius: 18px;
  background: #131a35;
  color: #f5f7fc;
  border: 1px solid rgba(212, 245, 0, 0.35);
}

.sorteos-login-dialog h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 6px 0 10px;
}

.sorteos-login-dialog p:not(.eyebrow) {
  color: #c8d0e6;
  font-size: 13px;
}

.sorteos-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.sorteos-login-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #e9ecf7;
}

.sorteos-login-form input {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0b1024;
  color: #ffffff;
  font: inherit;
}

.sorteos-login-error {
  color: #ff8b99;
  font-size: 12px;
  min-height: 16px;
}

@media (max-width: 980px) {
  .sorteos-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bolillero-arena {
    order: -1;
  }
}
