/* ═══════════════════════════════════════════════════════════════════
   MENU STYLES - Pesadilla en los Backrooms (index.html)
═══════════════════════════════════════════════════════════════════ */

/* ════ LLUVIA MEJORADA (reducida) ════ */
.rain-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.rain-drop {
  position: absolute;
  bottom: 100%;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent 0%, rgba(80, 85, 90, 0.2) 50%, transparent 100%);
  animation: rainFall linear infinite;
}

@keyframes rainFall {
  to {
    transform: translateY(calc(100vh + 60px));
  }
}

/* ════ FONDO OSCURO CON GRID ════ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 59px, rgba(40, 30, 5, 0.05) 59px, rgba(40, 30, 5, 0.05) 60px),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(40, 30, 5, 0.05) 79px, rgba(40, 30, 5, 0.05) 80px);
  opacity: 0.7;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
}

/* ════ GLITCH EN TÍTULO ════ */
.glitch-text {
  position: relative;
  animation: glitchNormal 8s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text::before {
  color: #ff0000;
  animation: glitchTop 8s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
  color: #00ffff;
  animation: glitchBottom 8s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchNormal {
  0%, 90%, 100% { transform: translate(0); filter: none; }
  91% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
  92% { transform: translate(2px, -1px); filter: none; }
  93% { transform: translate(-1px, 2px); filter: hue-rotate(-90deg); }
  94% { transform: translate(1px, -2px); filter: none; }
  95% { transform: translate(0); }
}

@keyframes glitchTop {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  91% { opacity: 0.8; transform: translate(-3px, 0); }
  92% { opacity: 0; }
  93% { opacity: 0.6; transform: translate(3px, 0); }
  94% { opacity: 0; }
  95% { opacity: 0; }
}

@keyframes glitchBottom {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  91% { opacity: 0; }
  92% { opacity: 0.7; transform: translate(3px, 0); }
  93% { opacity: 0; }
  94% { opacity: 0.5; transform: translate(-3px, 0); }
  95% { opacity: 0; }
}

/* ════ PARTÍCULAS FLOTANTES ════ */
.floating-particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.floating-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(150, 130, 110, 0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ════ NIEBLA DINÁMICA ════ */
.menu-fog {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(80, 70, 60, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(60, 50, 40, 0.08) 0%, transparent 40%);
  animation: fogMove 20s ease-in-out infinite;
}

@keyframes fogMove {
  0%, 100% { 
    background: 
      radial-gradient(ellipse at 20% 50%, rgba(80, 70, 60, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 30%, rgba(60, 50, 40, 0.08) 0%, transparent 40%);
    transform: translateX(0);
  }
  50% { 
    background: 
      radial-gradient(ellipse at 70% 40%, rgba(80, 70, 60, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 60%, rgba(60, 50, 40, 0.1) 0%, transparent 40%);
    transform: translateX(20px);
  }
}

/* ════ CARA DEL MALO 45 GRADOS ════ */
.shadow-figure {
  position: fixed;
  bottom: -5vh;
  right: -50px;
  width: 350px;
  height: 400px;
  pointer-events: none;
  z-index: 400;
  transform: rotate(45deg);
  transform-origin: bottom right;
  animation: facePeekDiagonal 15s ease-in-out infinite 1s;
  filter: drop-shadow(0 0 50px rgba(200, 0, 0, 1));
}

.face-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.face-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 170px;
  background: linear-gradient(180deg, #0a0505 0%, #150808 100%);
  border-radius: 40% 40% 50% 50%;
  box-shadow: 
    0 0 60px rgba(200, 0, 0, 0.7),
    0 0 100px rgba(150, 0, 0, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.9);
  border: 3px solid rgba(80, 0, 0, 0.6);
}

.face-eye {
  position: absolute;
  top: 50px;
  width: 35px;
  height: 25px;
  background: radial-gradient(ellipse, #ff0000 0%, #cc0000 50%, #660000 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 20px #ff0000,
    0 0 40px rgba(255, 0, 0, 1),
    0 0 80px rgba(255, 0, 0, 0.8),
    0 0 120px rgba(255, 0, 0, 0.5);
  animation: eyeGlow 1s ease-in-out infinite;
}

.face-eye.left { left: 20px; }
.face-eye.right { right: 20px; }

.face-mouth {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 50px;
  background: #000;
  border-radius: 0 0 50% 50%;
  overflow: hidden;
  box-shadow: inset 0 10px 30px rgba(100, 0, 0, 0.8);
  border-top: 3px solid rgba(50, 0, 0, 0.8);
}

.face-teeth {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.face-tooth {
  width: 12px;
  height: 22px;
  background: linear-gradient(to bottom, #3a2020, #1a0a0a);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mano sorpresa (pequeña, al lado) */
.shadow-hand {
  position: absolute;
  top: 60px;
  left: -60px;
  width: 70px;
  height: 30px;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(100, 0, 0, 0.4));
}

.shadow-hand::before {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, #1a0808, #0a0505);
  border-radius: 50%;
  border: 1px solid rgba(60, 0, 0, 0.4);
  left: 0;
  top: 5px;
}

.finger {
  position: absolute;
  bottom: 20px;
  background: linear-gradient(to bottom, #1a0808, #0a0505);
  border-radius: 4px 4px 2px 2px;
  border: 1px solid rgba(50, 0, 0, 0.3);
}

.finger:nth-child(1) { left: 0px; width: 6px; height: 25px; top: 8px; }
.finger:nth-child(2) { left: 8px; width: 5px; height: 30px; top: 3px; }
.finger:nth-child(3) { left: 27px; width: 8px; height: 40px; }
.finger:nth-child(4) { left: 38px; width: 7px; height: 32px; }
.finger:nth-child(5) { left: 48px; width: 6px; height: 24px; transform: rotate(15deg); }

@keyframes facePeekDiagonal {
  0%, 82%, 100% { right: -500px; opacity: 0; transform: rotate(45deg) scale(0.8); }
  2%, 75% { right: 80px; opacity: 1; transform: rotate(45deg) scale(1); }
  8%, 60% { right: 200px; opacity: 1; transform: rotate(45deg) scale(1.1); }
  15%, 50% { right: 340px; opacity: 1; transform: rotate(45deg) scale(1.15); }
}

@keyframes eyeGlow {
  0%, 100% { 
    box-shadow: 0 0 15px #ff0000, 0 0 30px rgba(255, 0, 0, 0.9), 0 0 60px rgba(255, 0, 0, 0.5);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 25px #ff0000, 0 0 50px rgba(255, 0, 0, 1), 0 0 80px rgba(255, 0, 0, 0.7);
    transform: scale(1.2);
  }
}

/* ════ RELÁMPAGOS ════ */
.lightning-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.lightning-overlay.flash {
  animation: lightningFlash 0.3s ease-out;
}

.lightning-overlay.double-flash {
  animation: lightningDouble 0.6s ease-out;
}

@keyframes lightningFlash {
  0% { background: rgba(200, 220, 255, 0.3); opacity: 1; }
  30% { background: rgba(150, 180, 255, 0.1); opacity: 0.5; }
  50% { background: rgba(200, 220, 255, 0.25); opacity: 1; }
  100% { background: transparent; opacity: 0; }
}

@keyframes lightningDouble {
  0% { background: rgba(200, 220, 255, 0.35); opacity: 1; }
  20% { background: transparent; opacity: 0; }
  35% { background: rgba(180, 200, 255, 0.3); opacity: 1; }
  60% { background: transparent; opacity: 0; }
  75% { background: rgba(200, 220, 255, 0.15); opacity: 0.5; }
  100% { background: transparent; opacity: 0; }
}

/* ════ PORTADA PRINCIPAL ════ */
#mainCover {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(40, 10, 10, 0.4) 0%, transparent 60%);
}

.cover-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 10vw, 6rem);
  color: #cc0000;
  text-shadow:
    0 0 10px #b00000,
    0 0 30px rgba(180, 0, 0, 0.5),
    0 0 60px rgba(180, 0, 0, 0.3),
    2px 2px 0 #000,
    -2px -2px 0 #000;
  letter-spacing: 6px;
  text-align: center;
  line-height: 1.1;
  animation: titlePulse 3s ease-in-out infinite;
  margin-bottom: 10px;
}

.cover-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: #666;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 50px;
  animation: subtitleFlicker 8s ease-in-out infinite;
}

@keyframes subtitleFlicker {
  0%, 95%, 100% { opacity: 0.6; }
  96%, 98% { opacity: 0.3; }
  97%, 99% { opacity: 0.7; }
}

/* ════ MENÚ PRINCIPAL ════ */
.main-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.menu-btn {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  padding: 14px 60px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 2px solid rgba(180, 50, 50, 0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 3px;
  text-decoration: none;
  min-width: 280px;
  text-align: center;
}

.menu-btn:hover {
  background: var(--btn-hover);
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(255, 100, 100, 0.7);
  box-shadow: 0 0 20px rgba(180, 0, 0, 0.4);
  letter-spacing: 5px;
}

.menu-btn.primary {
  background: linear-gradient(135deg, #5a0208, #7a030a);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  padding: 18px 80px;
  border-color: rgba(255, 100, 100, 0.6);
}

.menu-btn.primary:hover {
  background: linear-gradient(135deg, #7a030a, #9a040c);
  box-shadow: 0 0 30px rgba(200, 0, 0, 0.5);
}

/* ════ MODAL NIVELES ════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--menu-bg);
  border: 2px solid rgba(150, 30, 30, 0.5);
  border-radius: 8px;
  padding: 30px 40px;
  max-width: 500px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(150, 0, 0, 0.3);
  mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content::-webkit-scrollbar {
  width: 3px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(150, 50, 50, 0.3);
  border-radius: 2px;
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: #cc0000;
  text-shadow: 0 0 15px rgba(180, 0, 0, 0.5);
  letter-spacing: 4px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ff4444;
}

/* Dificultad */
.difficulty-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.diff-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}

.diff-btn.easy {
  background: rgba(30, 60, 30, 0.8);
  color: #88ff88;
  border-color: #2a5a2a;
}

.diff-btn.normal {
  background: rgba(60, 40, 20, 0.8);
  color: #ffcc88;
  border-color: #5a4a2a;
}

.diff-btn.nightmare {
  background: rgba(60, 20, 20, 0.8);
  color: #ff8888;
  border-color: #6a2a2a;
}

.diff-btn.active {
  box-shadow: 0 0 12px rgba(255, 200, 100, 0.5);
  transform: scale(1.05);
}

/* Lista de niveles */
.level-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  background: rgba(30, 15, 15, 0.8);
  border: 1px solid rgba(100, 40, 40, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.level-card:hover {
  background: rgba(50, 20, 20, 0.9);
  border-color: rgba(150, 60, 60, 0.6);
  transform: translateX(5px);
}

.level-icon {
  font-size: 1.8rem;
  width: 45px;
  text-align: center;
}

.level-info {
  flex: 1;
}

.level-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: #ddd;
  letter-spacing: 2px;
}

.level-desc {
  font-size: 0.9rem;
  color: #777;
}

.level-ultimate {
  background: linear-gradient(135deg, rgba(80, 10, 10, 0.9), rgba(120, 20, 20, 0.9));
  border-color: rgba(200, 80, 80, 0.5);
}

.level-ultimate:hover {
  background: linear-gradient(135deg, rgba(100, 15, 15, 0.95), rgba(150, 30, 30, 0.95));
}

/* ── Nivel bloqueado ── */
.level-card.locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.6);
}

.level-locked-hint {
  color: #664 !important;
  font-style: italic;
}

/* ── Nivel completado — posición relativa para el badge ── */
.level-card {
  position: relative;
}

.level-done-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1rem;
  color: #00ff88;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0,255,136,0.7);
}

/* ════ MODAL OPCIONES ════ */
.options-section {
  margin-bottom: 15px;
}

.options-section h4 {
  color: #aa6666;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: center;
}

.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(80, 30, 30, 0.15);
}

.option-row:last-child {
  border-bottom: none;
}

.option-label {
  color: #999;
  font-size: 1rem;
}

.option-row input[type="range"] {
  width: 100px;
  accent-color: #cc0000;
}

.option-value {
  color: #ccc;
  min-width: 45px;
  text-align: right;
  font-size: 0.95rem;
}

.toggle-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
}

.toggle-btn.on {
  background: rgba(80, 30, 30, 0.8);
  color: #ff8888;
  border-color: rgba(180, 60, 60, 0.5);
}

.toggle-btn.off {
  background: rgba(30, 30, 30, 0.6);
  color: #666;
  border-color: rgba(80, 80, 80, 0.3);
}

/* ════ MODAL RÉCORDS ════ */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 6px 16px;
  background: rgba(30, 20, 20, 0.8);
  color: #777;
  border: 1px solid rgba(100, 50, 50, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(60, 20, 20, 0.9);
  color: #ffaa88;
  border-color: rgba(150, 60, 60, 0.5);
}

.scores-list {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
}

.scores-list::-webkit-scrollbar {
  width: 3px;
}

.scores-list::-webkit-scrollbar-track {
  background: transparent;
}

.scores-list::-webkit-scrollbar-thumb {
  background: rgba(150, 100, 50, 0.3);
  border-radius: 2px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(100, 50, 50, 0.15);
  font-size: 1rem;
}

.score-item.gold { color: #ffd700; }
.score-item.silver { color: #c0c0c0; }
.score-item.bronze { color: #cd7f32; }

.score-rank { width: 35px; }
.score-pts { color: #ddd; min-width: 80px; text-align: right; }
.score-time { color: #888; min-width: 60px; text-align: right; }

.no-scores {
  text-align: center;
  color: #555;
  padding: 30px;
}

/* ════ MODAL LOGROS ════ */
.achievements-list {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 90%, transparent 100%);
}

.achievements-list::-webkit-scrollbar {
  width: 3px;
}

.achievements-list::-webkit-scrollbar-track {
  background: transparent;
}

.achievements-list::-webkit-scrollbar-thumb {
  background: rgba(150, 50, 50, 0.3);
  border-radius: 2px;
}

.achievements-list::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 50, 50, 0.5);
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-bottom: 1px solid rgba(80, 50, 50, 0.2);
}

.achievement-item.locked {
  opacity: 0.4;
}

.achievement-icon {
  font-size: 1.8rem;
  width: 40px;
  text-align: center;
}

.achievement-name {
  color: #ddd;
  font-size: 1.1rem;
}

.achievement-desc {
  color: #666;
  font-size: 0.9rem;
}

/* ════ NOMBRE MODAL ════ */
#nameModal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.98);
}

.name-card {
  background: rgba(10, 4, 4, 0.98);
  border: 1px solid rgba(150, 30, 30, 0.5);
  border-radius: 6px;
  padding: 40px 50px;
  text-align: center;
  max-width: 450px;
  width: 90%;
}

.name-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: #cc0000;
  text-shadow: 0 0 20px rgba(180, 0, 0, 0.6);
  margin-bottom: 8px;
  line-height: 1;
}

.name-subtitle {
  color: #555;
  font-size: 1rem;
  letter-spacing: 4px;
  margin-bottom: 30px;
}

.name-input {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1.5rem;
  background: rgba(5, 2, 2, 0.9);
  color: #d8b8a0;
  border: 1px solid rgba(120, 40, 40, 0.5);
  border-bottom: 2px solid rgba(180, 50, 50, 0.6);
  border-radius: 4px;
  text-align: center;
  outline: none;
  margin-bottom: 20px;
  caret-color: #cc2222;
}

.name-input:focus {
  border-color: rgba(200, 60, 60, 0.8);
  box-shadow: 0 0 15px rgba(180, 30, 30, 0.3);
}

.name-btn {
  font-family: var(--font-title);
  font-size: 1.4rem;
  padding: 12px 40px;
  background: linear-gradient(135deg, #4a0208, #6a020a);
  color: #e0c0b0;
  border: 1px solid rgba(200, 60, 60, 0.5);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 3px;
  transition: all 0.2s;
}

.name-btn:hover {
  background: linear-gradient(135deg, #6a020a, #8a030c);
  color: #fff;
  letter-spacing: 5px;
  transform: translateY(-2px);
}

/* ════ SCANLINES CRT ════ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.05) 3px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ════ GOTA DE SANGRE ════ */
.blood-drip {
  position: fixed;
  top: 0;
  width: 2px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(to bottom, rgba(160, 0, 0, 0.9) 0%, rgba(80, 0, 0, 0.6) 70%, transparent 100%);
  pointer-events: none;
  z-index: 50;
  animation: drip 4s ease-in infinite;
}

@keyframes drip {
  0% { height: 0; opacity: 0; }
  10% { opacity: 0.8; }
  60% { height: 80px; opacity: 0.6; }
  100% { height: 5px; opacity: 0; margin-top: 80px; }
}

/* ════ FOOTER ════ */
.footer {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(80, 60, 60, 0.4);
  z-index: 10;
  letter-spacing: 2px;
}

/* ════ MODAL AURICULARES ════ */
#headphonesModal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
}

.hp-box {
  background: rgba(15, 5, 5, 0.98);
  border: 2px solid rgba(180, 60, 60, 0.4);
  border-radius: 12px;
  padding: 40px 50px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(180, 0, 0, 0.3);
  animation: hpPulse 2s ease-in-out infinite;
}

.hp-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: hpBounce 1s ease-in-out infinite;
}

.hp-box h2 {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: #cc0000;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(180, 0, 0, 0.5);
}

.hp-box p {
  color: #888;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.hp-box strong {
  color: #cc6666;
}

.hp-btn {
  display: block;
  width: 100%;
  padding: 14px 30px;
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 2px;
}

.hp-btn-primary {
  background: linear-gradient(135deg, #3a1515, #4a1010);
  color: #ff9999;
  border: 2px solid rgba(200, 80, 80, 0.5);
}

.hp-btn-primary:hover {
  background: linear-gradient(135deg, #4a1515, #5a1515);
  color: #ffaaaa;
  border-color: rgba(220, 100, 100, 0.7);
  box-shadow: 0 0 25px rgba(200, 0, 0, 0.4);
  letter-spacing: 3px;
}

.hp-btn-secondary {
  background: transparent;
  color: #666;
  border: 1px solid rgba(80, 60, 60, 0.3);
  font-size: 0.95rem;
}

.hp-btn-secondary:hover {
  color: #888;
  border-color: rgba(100, 80, 80, 0.5);
}

@keyframes hpPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(180, 0, 0, 0.2); }
  50% { box-shadow: 0 0 80px rgba(180, 0, 0, 0.4); }
}

@keyframes hpBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ════ CONTROLES EN OPCIONES ════ */
.controls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(20, 10, 10, 0.5);
  border-radius: 6px;
  border: 1px solid rgba(80, 40, 40, 0.3);
}

.control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(60, 30, 30, 0.2);
}

.control-item:last-child {
  border-bottom: none;
}

.control-key {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #ff9999;
  background: rgba(80, 30, 30, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(150, 60, 60, 0.4);
}

.control-desc {
  font-size: 0.95rem;
  color: #888;
}
