/* ==========================================================================
   FLAPPY BIRTHDAY - GAME CSS
   Canvas container, game overlays, HUD progress bar
   ========================================================================== */

#game-screen {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 700px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#game-screen.active {
  display: flex;
}

.game-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 620px;
  background: #100e26;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
  border: 2px solid rgba(0, 240, 255, 0.3);
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Game HUD - Progress Bar */
.game-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.hud-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-between;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  padding: 2px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-gold), var(--accent-cyan));
  border-radius: 8px;
  transition: width 0.2s ease-out;
}

/* Controls hint */
.controls-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  animation: pulseHint 1.5s infinite ease-in-out;
  z-index: 10;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(0.98); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.02); }
}

/* Game Over Overlay */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 38, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 20;
  animation: fadeIn 0.3s ease-out forwards;
}

.game-overlay.active {
  display: flex;
}

.overlay-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.overlay-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-pink);
  margin-bottom: 10px;
}

.overlay-title.win {
  color: var(--accent-gold);
}

.overlay-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
