/* Game Screen Styles - FULLSCREEN VERSION */
.game-screen {
  background: #000;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-hud {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: var(--backdrop-blur);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--primary-yellow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  height: 60px;
  flex-shrink: 0;
}

/* Responsive HUD adjustments */
@media (max-width: 767px) {
  .game-hud {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    height: auto;
    min-height: 80px;
  }
  
  .hud-left,
  .hud-right {
    justify-content: center;
    width: 100%;
  }
  
  .hud-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .level-indicator {
    font-size: 0.875rem;
  }
  
  .score-value {
    font-size: 1.5rem;
  }
  
  .score-label {
    font-size: 0.875rem;
  }
}

@media (max-width: 479px) {
  .game-hud {
    padding: 0.4rem;
    min-height: 70px;
  }
  
  .hud-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    gap: 0.25rem;
  }
  
  .level-indicator {
    font-size: 0.75rem;
  }
  
  .score-value {
    font-size: 1.25rem;
  }
  
  .score-label {
    font-size: 0.75rem;
  }
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-family: "Orbitron", monospace;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-left .hud-btn {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

/* Efectos de hover removidos */

.hud-right .hud-btn {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

/* Efectos de hover removidos */

.level-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1rem;
}

.score-display {
  text-align: center;
}

.score-label {
  color: var(--primary-yellow);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.score-value {
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 900;
}

.game-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 120px); /* Account for HUD and instructions */
  overflow: hidden;
  background-image: url("../images/leveleasy.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Responsive game area adjustments - PANORÁMICO */
@media (max-width: 767px) {
  .game-area {
    height: calc(100vh - 140px); /* Account for larger mobile HUD */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .game-area {
    height: calc(100vh - 120px); /* Account for smaller mobile HUD */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .game-area {
    height: calc(100vh - 100px); /* Account for landscape mode */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.game-area.hard-mode {
  background-image: url("../images/space-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#gameCanvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pause-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.game-over-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/background_kokok-04.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.pause-content {
  background: linear-gradient(135deg, #581c87, #7c3aed);
  padding: 3rem;
  border-radius: 0;
  border: none;
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.game-over-content {
  background: rgba(0, 0, 0, 0.8);
  padding: 3rem;
  border-radius: 0;
  border: none;
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.pause-content h2,
.game-over-content h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.final-score,
.best-score {
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.final-score span,
.best-score span {
  color: var(--primary-yellow);
  font-size: 1.5rem;
}

.unlock-notification {
  background: rgba(34, 197, 94, 0.2);
  border: none;
  border-radius: 0;
  padding: 1rem;
  margin: 1rem 0;
}

.unlock-notification p:first-child {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.unlock-notification p:last-child {
  color: #86efac;
  font-size: 0.875rem;
}

.pause-buttons,
.game-over-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.pause-btn,
.game-over-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  cursor: pointer;
}

.continue-btn,
.play-again-btn {
  background-image: url("../images/buttons/playagain.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  color: transparent;
}

/* Efectos de hover removidos */

.pause-buttons .menu-btn,
.game-over-buttons .menu-btn {
  background-image: url("../images/buttons/mainmenu.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  color: transparent;
}

/* Efectos de hover removidos */

.game-over-buttons .leaderboards-btn {
  background-image: url("../images/LEADERBOARDS_MENU-07.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  color: transparent;
}

/* Efectos de hover removidos */

.game-instructions {
  text-align: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  border-top: 2px solid var(--primary-yellow);
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-instructions p {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* Responsive instructions adjustments */
@media (max-width: 767px) {
  .game-instructions {
    padding: 0.5rem;
    height: auto;
    min-height: 50px;
  }
  
  .game-instructions p {
    font-size: 0.875rem;
    line-height: 1.3;
  }
}

@media (max-width: 479px) {
  .game-instructions {
    padding: 0.4rem;
    min-height: 45px;
  }
  
  .game-instructions p {
    font-size: 0.75rem;
  }
}

/* Estilos específicos para desktop - PANORÁMICO */
@media (min-width: 1024px) {
  .game-area {
    min-height: 500px;
  }
  
  #gameCanvas {
    min-width: 1000px;
    min-height: 500px;
    aspect-ratio: 2/1; /* Formato panorámico 2:1 */
  }
}

/* 🎯 OCULTAR HUD Y INSTRUCCIONES CUANDO GAME OVER ESTÉ ACTIVO */
.game-screen.game-over-active .game-hud,
.game-screen.game-over-active .game-instructions {
  display: none !important;
}

