/* ==========================================
   1. RESET Y PROPIEDADES GLOBALES
   ========================================== */
:root {
  --color-neon-green: #00ff66;
  --color-neon-orange: #ff6b00;
  --color-neon-blue: #00d9ff;
  --bg-card: #0d1117;
}

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

body {
  background-color: #050811;
  color: #ffffff;
  font-family: 'Chakra Petch', sans-serif;
  overflow-x: hidden;
}

/* ==========================================
   2. ESTRUCTURA Y CONTENEDOR MESA
   ========================================== */
.staff-section {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  padding: 10px 5px 30px 5px;
}

.mesa {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 102, 0.1);
  color: var(--color-neon-green);
  border: 1px solid var(--color-neon-green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-neon-green);
}

.titulo-juego {
  color: var(--color-neon-green);
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}

.instrucciones-juego {
  font-size: 0.85rem;
  color: #a0a0a0;
  text-align: center;
  margin-bottom: 12px;
}

/* ==========================================
   3. ADAPTACIÓN RESPONSIVA DEL CANVAS (CÁSCARA)
   ========================================== */
.board-relative {
  position: relative;
  width: 100%;
  max-width: 700px;
  display: flex;
  justify-content: center;
}

/* El Canvas escala al 100% del contenedor manteniendo su aspecto */
#solitaire {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  background: #080d1a;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: block;
}

/* Overlay de Victoria */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 17, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  z-index: 10;
}

.oculto {
  display: none !important;
}

.mensaje-alerta {
  text-align: center;
  background: var(--bg-card);
  border: 2px solid var(--color-neon-green);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--color-neon-green);
}

.mensaje-alerta h2 {
  color: var(--color-neon-green);
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ==========================================
   4. MARCADOR Y BOTONES INFERIORES
   ========================================== */
.arcade-dashboard {
  width: 100%;
  max-width: 700px;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.marcador-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 5px;
  border-radius: 8px;
  text-align: center;
}

.stat-item small {
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
}

.stat-item b {
  display: block;
  font-size: 1.2rem;
  color: var(--color-neon-green);
}

#timer {
  color: var(--color-neon-orange) !important;
}

/* ZONA DE BOTONES */
.zona-botones-arcade {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.btn-action {
  flex: 1;
  max-width: 220px;
  background: #000;
  padding: 12px 10px;
  border-radius: 6px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-orange {
  color: var(--color-neon-orange);
  border: 1px solid var(--color-neon-orange);
}

.btn-orange:hover {
  background: var(--color-neon-orange);
  color: #000;
  box-shadow: 0 0 10px var(--color-neon-orange);
}

.btn-blue {
  color: var(--color-neon-blue);
  border: 1px solid var(--color-neon-blue);
}

.btn-blue:hover {
  background: var(--color-neon-blue);
  color: #000;
  box-shadow: 0 0 10px var(--color-neon-blue);
}

.staff-footer-note {
  margin-top: 20px;
  text-align: center;
}

.staff-footer-note a {
  color: var(--color-neon-blue);
  text-decoration: none;
  font-size: 14px;
}

.staff-footer-note a:hover {
  text-decoration: underline;
}
