/* ==========================================================================
   LOTERÍA — NOWEY
   ========================================================================= */

.titulo-juego {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: #b388ff;
  text-shadow: 0 0 12px rgba(179, 136, 255, 0.6);
  letter-spacing: 2px;
  margin: 20px 0 10px 0;
}

.lot-container { display: flex; flex-direction: column; align-items: center; padding: 0 10px 30px 10px; }
.lot-viewport { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; }

.lot-hud {
  width: 100%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 8px 4px;
}
.hud-item span { color: #b388ff; text-shadow: 0 0 6px rgba(179, 136, 255, 0.5); }
.hud-premio span { color: #39ff14; text-shadow: 0 0 6px rgba(57, 255, 20, 0.5); }
.hud-rivales span { color: #ffe94d; text-shadow: 0 0 6px rgba(255, 233, 77, 0.5); }
.hud-item span.lbl { color: #94a3b8; text-shadow: none; }

.lot-board {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: #04080c;
  border: 1px solid rgba(179, 136, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(179, 136, 255, 0.08) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 14px 8px;
  box-sizing: border-box;
}

.lot-logo-fondo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.btn-icono {
  position: absolute;
  top: 8px;
  z-index: 25;
  background: rgba(4, 8, 12, 0.7);
  border: 1px solid rgba(179, 136, 255, 0.35);
  color: #b388ff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icono:hover { background: rgba(179, 136, 255, 0.15); }
.btn-fullscreen-mate { right: 8px; }
.btn-pausa-mate { right: 50px; }
.btn-sonido-mate { right: 92px; }

.lot-cantada {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 30px;
  min-height: 140px;
}
.cantada-bola {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: #12062b;
  background: radial-gradient(circle at 35% 30%, #f3eaff, #b388ff 55%, #7c4dff);
  box-shadow: 0 0 22px rgba(179, 136, 255, 0.6), inset -6px -8px 14px rgba(40, 10, 90, 0.35);
}
.cantada-nombre {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #b388ff;
  text-shadow: 0 0 10px rgba(179, 136, 255, 0.7);
  margin-top: 4px;
}
.lot-cantada.pop .cantada-bola {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: #12062b;
  background: radial-gradient(circle at 35% 30%, #f3eaff, #b388ff 55%, #7c4dff);
  box-shadow: 0 0 22px rgba(179, 136, 255, 0.6), inset -6px -8px 14px rgba(40, 10, 90, 0.35);
}
@keyframes cantada-pop {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.lot-historial {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 6px;
  justify-content: center;
  min-height: 30px;
  margin: 4px 0 2px 0;
}
.hist-chip {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(179, 136, 255, 0.08);
  border: 1px solid rgba(179, 136, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.lot-aviso {
  position: relative;
  z-index: 3;
  min-height: 22px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffe94d;
  text-shadow: 0 0 10px rgba(255, 233, 77, 0.7);
  text-align: center;
  margin: 2px 0 6px 0;
}

.lot-carton {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  box-sizing: border-box;
  padding: 6px;
  background: rgba(179, 136, 255, 0.06);
  border: 1px solid rgba(179, 136, 255, 0.35);
  border-radius: 10px;
}

.celda {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(160deg, #1a0f30, #0a0614);
  border: 1px solid rgba(179, 136, 255, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(0.85rem, 4.4vw, 1.2rem);
  color: #e9ddff;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}
.celda:active { transform: scale(0.93); }
.celda.vacia { background: transparent; border: 1px dashed rgba(179, 136, 255, 0.12); cursor: default; }
.celda.vacia:active { transform: none; }
.celda.marcada { border-color: rgba(57, 255, 20, 0.7); color: #04080c; background: radial-gradient(circle at 35% 30%, #8dff6e, #1fae10); box-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }
.celda.error { animation: celda-error 0.25s ease; }
@keyframes celda-error {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.btn-loteria {
  position: relative;
  z-index: 4;
  margin-top: 16px;
  width: 100%;
  max-width: 320px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.btn-loteria:disabled { opacity: 0.4; cursor: default; }

.overlay-inicio, .overlay-fin, .overlay-pausa {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(4, 8, 12, 0.94);
  padding: 20px;
}
.oculto { display: none !important; }

.overlay-inicio h2, .overlay-fin h2, .overlay-pausa h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: #b388ff;
  text-shadow: 0 0 12px rgba(179, 136, 255, 0.6);
  margin-bottom: 12px;
}
.overlay-fin h2.perdio { color: #ff2b5e; text-shadow: 0 0 12px rgba(255, 43, 94, 0.6); }

.overlay-inicio p, .overlay-fin p {
  font-family: 'Chakra Petch', monospace;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 320px;
}

.vel-selector { display: flex; gap: 8px; margin-bottom: 16px; }
.btn-vel {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  background: rgba(179, 136, 255, 0.06);
  border: 1px solid rgba(179, 136, 255, 0.3);
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-vel.activo {
  background: rgba(179, 136, 255, 0.2);
  border-color: #b388ff;
  color: #b388ff;
  box-shadow: 0 0 10px rgba(179, 136, 255, 0.35);
}

.record-chip {
  font-family: 'Chakra Petch', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #94a3b8;
  border: 1px solid rgba(179, 136, 255, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 14px;
  background: rgba(179, 136, 255, 0.06);
}
.record-chip span { color: #b388ff; font-weight: 800; text-shadow: 0 0 6px rgba(179, 136, 255, 0.5); }

.record-nuevo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  color: #ffe94d;
  text-shadow: 0 0 10px rgba(255, 233, 77, 0.7);
  font-size: 0.9rem;
  margin: -6px 0 14px 0 !important;
  animation: record-brillo 0.9s ease-in-out infinite;
}
@keyframes record-brillo { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.btn-mate {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #b388ff, #7c4dff);
  color: #12062b;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(179, 136, 255, 0.4);
  margin-bottom: 10px;
}
.btn-mate:active { transform: scale(0.96); }
.btn-salir {
  display: inline-block;
  background: none;
  box-shadow: none;
  color: #94a3b8;
  text-decoration: none;
  font-family: 'Chakra Petch', monospace;
  font-size: 0.8rem;
}

.lot-board.sacudida { animation: sacudida-tablero 0.3s ease; }
@keyframes sacudida-tablero {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}

.staff-footer-note { margin-top: 18px; text-align: center; }
.staff-footer-note a { color: #64748b; text-decoration: none; font-family: 'Chakra Petch', monospace; font-size: 0.8rem; }

