.game-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 80vh;
  background-color: #0a1a2a; /* Deep ocean dark */
  color: white;
}

.game-header {
  margin-bottom: 2rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(30, 155, 215, 0.2);
  border: 2px solid #1e3a5a;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#start-screen, #game-over-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.hidden {
  opacity: 0;
  pointer-events: none !important;
  z-index: -1;
}

.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

#start-screen h2,
#game-over-screen h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

#start-screen p,
#game-over-screen p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.game-hud {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 2rem;
  pointer-events: none;
  z-index: 5;
}

.hud-item {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 155, 215, 0.3);
}

.hud-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hud-item span:last-child {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-accent);
}

#game-over-message {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: var(--color-accent);
}

