/* ==========================================================================
   PUZZLE 15 — NOWEY
   ========================================================================= */

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

.p15-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px 30px 10px;
}

.p15-viewport {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p15-hud {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  color: #e2e8f0;
  padding: 8px 4px;
}
.hud-movs { color: #ff7b00; text-shadow: 0 0 6px rgba(255, 123, 0, 0.5); }
.hud-tiempo { color: #00b7ff; text-shadow: 0 0 6px rgba(0, 183, 255, 0.5); }

.p15-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #04080c;
  border: 1px solid rgba(255, 123, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 123, 0, 0.08) inset;
}

.p15-grid {
  position: absolute;
  inset: 3%;
}

.ficha15 {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(255,123,0,0.18), rgba(255,123,0,0.05));
  border: 1px solid rgba(255, 123, 0, 0.4);
  color: #ff7b00;
  text-shadow: 0 0 8px rgba(255, 123, 0, 0.5);
  cursor: pointer;
  transition: left 0.12s ease, top 0.12s ease;
  user-select: none;
}
.ficha15:active { background: rgba(255, 123, 0, 0.3); }
.ficha15.bien-ubicada {
  background: linear-gradient(135deg, rgba(57,255,20,0.18), rgba(57,255,20,0.05));
  border-color: rgba(57, 255, 20, 0.5);
  color: #39ff14;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

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

.overlay-inicio, .overlay-fin {
  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 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #ff7b00;
  text-shadow: 0 0 12px rgba(255, 123, 0, 0.6);
  margin-bottom: 12px;
}
.overlay-fin h2 { color: #39ff14; text-shadow: 0 0 12px rgba(57, 255, 20, 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: 300px;
}

.record-chip {
  font-family: 'Chakra Petch', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #94a3b8;
  border: 1px solid rgba(255, 123, 0, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 14px;
  background: rgba(255, 123, 0, 0.06);
}
.record-chip span { color: #ff7b00; font-weight: 800; text-shadow: 0 0 6px rgba(255, 123, 0, 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, #ff7b00, #b35700);
  color: #1a0d00;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 123, 0, 0.4);
  margin-bottom: 10px;
}
.btn-mate:active { transform: scale(0.96); }
.btn-salir {
  display: inline-block;
  color: #94a3b8;
  text-decoration: none;
  font-family: 'Chakra Petch', monospace;
  font-size: 0.8rem;
}

.btn-mezclar {
  margin-top: 16px;
  font-size: 0.85rem;
  padding: 10px 20px;
}

.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; }