* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  color: #fff;
  padding: 0 16px;
}

#game-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 8 / 5;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Overlay base */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10;
  padding: 5%;
}

.overlay.hidden {
  display: none;
}

.hidden {
  display: none;
}

/* Title screen */
.game-title {
  font-size: clamp(36px, 9vw, 72px);
  letter-spacing: 12px;
  margin-bottom: 0;
}

.game-subtitle {
  font-size: clamp(12px, 2.5vw, 18px);
  letter-spacing: 6px;
  margin-bottom: 40px;
  color: #aaa;
}

.overlay-title {
  font-size: clamp(24px, 6vw, 48px);
  letter-spacing: 8px;
  margin-bottom: 30px;
}

/* Menu sections */
.menu-section {
  margin-bottom: 24px;
  text-align: center;
}

.section-label {
  font-size: 14px;
  letter-spacing: 3px;
  color: #888;
  margin-bottom: 10px;
}

/* Buttons */
.menu-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(14px, 2.5vw, 18px);
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 24px;
  margin: 5px 8px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: background 0.15s, color 0.15s;
}

.menu-btn:hover {
  background: #fff;
  color: #000;
}

.menu-btn.selected {
  background: #fff;
  color: #000;
}

/* Controls */
.controls-section {
  margin-top: 24px;
  text-align: center;
}

.controls-line {
  font-size: 14px;
  color: #ccc;
  margin: 4px 0;
  letter-spacing: 1px;
}

/* Mute button */
.mute-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  background: transparent;
  color: #888;
  border: 1px solid #555;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 1px;
  z-index: 20;
  transition: color 0.15s, border-color 0.15s;
}

.mute-btn:hover {
  color: #fff;
  border-color: #fff;
}

.mute-btn.muted {
  color: #cc0000;
  border-color: #cc0000;
}
