.start-panel {
  display: flex;
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 15, 0.96);
  border: 4px solid var(--panel-edge);
  color: var(--text);
  padding: 60px 20px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  z-index: 100;
}

.start-panel.hidden {
  display: none;
}

.start-title {
  font-size: 48px;
  color: var(--panel-edge);
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.8), 0 4px 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 0.15em;
  animation: glow 2s ease-in-out infinite alternate;
}

.start-subtitle {
  font-size: 32px;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(255, 65, 125, 0.6);
  letter-spacing: 0.3em;
  margin-top: -16px;
}

.start-tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.25em;
  margin-top: -12px;
  opacity: 0.8;
}

.start-btn {
  padding: 16px 32px;
  font-size: 14px;
  font-family: "Press Start 2P", monospace;
  border: 3px solid var(--panel-edge);
  background: var(--panel);
  color: var(--panel-edge);
  cursor: pointer;
  letter-spacing: 0.2em;
  margin-top: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.start-btn:hover {
  background: var(--panel-edge);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 0 20px rgba(100, 255, 218, 0.5);
}

.start-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.developer {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.15em;
  line-height: 1.8;
  margin-top: 16px;
  opacity: 0.7;
}

.developer-name {
  color: white;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.6), 0 4px 0 rgba(0, 0, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 30px rgba(100, 255, 218, 1),
      0 0 40px rgba(100, 255, 218, 0.5), 0 4px 0 rgba(0, 0, 0, 0.5);
  }
}

/* Pause panel */
.pause-panel {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 15, 0.75);
  backdrop-filter: blur(1px);
  color: var(--text);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 110;
}

.pause-panel.show {
  display: flex;
}

.pause-title {
  font-size: 42px;
  color: #9fd6ff;
  letter-spacing: 0.25em;
  text-shadow: 0 0 16px rgba(79, 162, 255, 0.7), 0 0 2px rgba(0, 0, 0, 0.85);
  animation: pausePulse 1.8s ease-in-out infinite;
}

.pause-subtitle {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes pausePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.85;
  }
}

/* Intro Overlay (Click to Start) */
#intro-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-text {
  color: var(--panel-edge);
  font-size: 14px;
  letter-spacing: 0.2em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Transition Overlay (Menu -> Game) */
.transition-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.transition-text {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.25em;
  text-shadow: 0 0 10px var(--accent);
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--panel-edge);
  position: relative;
  overflow: hidden;
}

.loading-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--panel-edge);
  width: 0%;
  box-shadow: 0 0 10px var(--panel-edge);
}

.transition-overlay.active .loading-progress {
  animation: loadProgress 1s ease-in-out forwards;
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
