/* ========================================
   Overlay Screens (Hello, Loading, Welcome)
   ======================================== */
.overlay-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: var(--black);
  transition: opacity 0.6s ease;
}

.overlay-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* -- Hello Screen -- */
#hello-screen .hello-title {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 16px;
  text-transform: uppercase;
  font-family: var(--font-main);
  animation: fadeInUp 0.8s ease forwards;
}

#hello-screen .hello-subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--orange);
  margin-top: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

/* -- Mode Selection -- */
.mode-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}

.mode-btn {
  width: 260px;
  height: 130px;
  background: #ffcc00;           /* Yellow filled: unmistakably clickable */
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(255, 204, 0, 0.35);
}

.mode-btn:hover {
  background: #ffe033;
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(255, 204, 0, 0.5);
}

.mode-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.4);
}

.mode-btn .mode-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: #0a0a0a;
}

.mode-btn .mode-desc {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* -- Loading Screen -- */
#loading-screen {
  background: var(--black);
}

#loading-screen .loading-title {
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--grey);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.loading-bar-container {
  width: 300px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.15s ease;
}

.loading-percent {
  font-size: 48px;
  font-weight: 300;
  margin-top: 20px;
  font-family: var(--font-mono);
  letter-spacing: 4px;
}

/* -- Welcome Screen -- */
#welcome-screen {
  background: var(--black);
}

#welcome-screen .welcome-title {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 10px;
  text-transform: uppercase;
  font-family: var(--font-main);
  animation: fadeInUp 0.8s ease forwards;
}

#welcome-screen .welcome-subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--grey);
  margin-top: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.controls-info {
  display: flex;
  gap: 0;
  margin-top: 50px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.control-panel {
  width: 260px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.control-panel:first-child {
  border-right: 1px solid var(--border);
}

.control-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
}

.control-panel .control-text {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--grey);
  font-family: var(--font-mono);
  line-height: 1.6;
  text-transform: uppercase;
}

.start-btn {
  margin-top: 50px;
  width: 460px;
  height: 100px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
  position: relative;
  z-index: 999;
}

.start-btn:hover {
  background: var(--white);
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.start-btn .start-label {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 10px;
  font-family: var(--font-main);
  text-transform: uppercase;
}

.start-btn .start-desc {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* -- Pause Screen -- */
#pause-screen {
  background: rgba(4, 4, 8, 0.94);
  backdrop-filter: blur(20px);
  z-index: 9999;
}

/* Pause action buttons: clear two-option layout */
.pause-action-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pause-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 220px;
  height: 100px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  text-transform: uppercase;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
}

.pause-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pause-btn:hover::before { opacity: 1; }

/* PRIMARY: Resume (Yellow: most important action) */
.pause-btn--resume {
  background: #ffcc00;
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(255, 204, 0, 0.3);
}
.pause-btn--resume:hover {
  background: #ffe033;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 204, 0, 0.45), 0 0 20px rgba(255, 204, 0, 0.8), inset 0 0 10px rgba(255, 204, 0, 0.3);
}
.pause-btn--resume .pause-btn-icon { font-size: 25px; }
.pause-btn--resume .pause-btn-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #0a0a0a;
}
.pause-btn--resume .pause-btn-desc {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(0,0,0,0.65);
}

/* SECONDARY: Autopilot (Cyan: cool alternative) */
.pause-btn--autopilot {
  background: rgba(0, 224, 255, 0.06);
  border: 1.5px solid rgba(0, 224, 255, 0.4) !important;
  color: #00e0ff;
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.15);
}
.pause-btn--autopilot:hover {
  background: rgba(0, 224, 255, 0.14);
  border-color: rgba(0, 224, 255, 0.75) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 224, 255, 0.25), 0 0 20px rgba(0, 224, 255, 0.8), inset 0 0 10px rgba(0, 224, 255, 0.3);
}
.pause-btn--autopilot .pause-btn-icon { font-size: 25px; }
.pause-btn--autopilot .pause-btn-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 6px;
}
.pause-btn--autopilot .pause-btn-desc {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(0, 224, 255, 0.65);
}

/* TERTIARY: Back to Landing (subtle ghost) */
.pause-btn--back {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.38);
  width: auto;
  height: auto;
  padding: 12px 34px;
  font-size: 12px;
  letter-spacing: 3.5px;
}
.pause-btn--back:hover {
  border-color: rgba(255,255,255,0.32) !important;
  color: rgba(255,255,255,0.75);
}

/* Volume row in pause */
.pause-volume-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 22px;
}

.pause-resume-btn {
  margin-top: 0;
  width: 480px;
  height: 140px;
  background: var(--white) !important;
  color: var(--black) !important;
  border-radius: 12px;
  animation: none;
  opacity: 1;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pause-resume-btn:hover {
  transform: scale(1.03);
  background: var(--white) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.pause-resume-btn .start-label {
  font-size: 36px;
  letter-spacing: 24px;
  color: var(--black);
  margin-left: 12px;
  margin-bottom: 8px;
}

.pause-resume-btn .start-desc {
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 6px;
}
