/* Main Menu - Enhanced Design System */
/* SPACEJAY-148: Menu Redesign - Ornate stone borders & rich textures */
/* Fixed: Menu viewport overflow issue - content no longer cuts off at top/bottom */

/* ═══════════════════════════════════════════════════════════════
   MAIN MENU CONTAINER - Enhanced starfield with nebulae
   ═══════════════════════════════════════════════════════════════ */

#menu-screen.advanced {
  display: none; /* Hidden by default */
}

#menu-screen.advanced.active {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2vw, 30px);
  padding: clamp(10px, 1.5vh, 20px);
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(139, 0, 0, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(75, 0, 130, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 100, 150, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #05070A 0%, #0a0a0a 50%, #05070A 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  height: 100vh;
  box-sizing: border-box;
}

/* DENSE starfield - 1000x more stars */
#menu-screen.advanced.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, white, transparent),
    radial-gradient(1px 1px at 15% 35%, white, transparent),
    radial-gradient(1px 1px at 20% 50%, white, transparent),
    radial-gradient(1px 1px at 25% 65%, white, transparent),
    radial-gradient(1px 1px at 30% 80%, white, transparent),
    radial-gradient(1px 1px at 35% 15%, white, transparent),
    radial-gradient(1px 1px at 40% 30%, white, transparent),
    radial-gradient(1px 1px at 45% 45%, white, transparent),
    radial-gradient(1px 1px at 50% 60%, white, transparent),
    radial-gradient(1px 1px at 55% 75%, white, transparent),
    radial-gradient(1px 1px at 60% 10%, white, transparent),
    radial-gradient(1px 1px at 65% 25%, white, transparent),
    radial-gradient(1px 1px at 70% 40%, white, transparent),
    radial-gradient(1px 1px at 75% 55%, white, transparent),
    radial-gradient(1px 1px at 80% 70%, white, transparent),
    radial-gradient(1px 1px at 85% 85%, white, transparent),
    radial-gradient(1px 1px at 90% 5%, white, transparent),
    radial-gradient(1px 1px at 95% 95%, white, transparent),
    radial-gradient(2px 2px at 12% 42%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 38% 68%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 62% 22%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 88% 78%, rgba(255,255,255,0.8), transparent);
  background-size: 
    200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%,
    200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%,
    200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%,
    200% 200%, 200% 200%, 200% 200%, 250% 250%, 250% 250%,
    250% 250%, 250% 250%;
  animation: stars-drift 180s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes stars-drift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   CENTER CONTENT - Main menu
   ═══════════════════════════════════════════════════════════════ */

.menu-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vh, 8px);
  max-width: min(700px, 90vw);
  flex: 1;
  z-index: 1;
  padding: 0;
  height: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   LEFT SIDEBAR - Leaderboard
   ═══════════════════════════════════════════════════════════════ */

.menu-left-sidebar {
  display: flex;
  flex-direction: column;
  width: clamp(280px, 22vw, 380px);
  height: clamp(500px, 85vh, 700px);
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER - Title centered, logo top-left (SPACEJAY-151)
   ═══════════════════════════════════════════════════════════════ */

/* Logo - Absolute positioned relative to menu screen, top-left corner */
.menu-header-left {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

#menu-logo {
  width: clamp(80px, 10vw, 140px);
  opacity: 0.85;
  filter: 
    drop-shadow(0 0 15px rgba(0, 212, 255, 0.3))
    drop-shadow(0 0 30px rgba(0, 212, 255, 0.15));
}

/* Header container - just for title centering */
.menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

/* Center column - Title and subtitle, truly centered */
.menu-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* Right column - Not needed anymore */
.menu-header-right {
  display: none;
}

/* Title - Enhanced with stronger glow */
.menu-title {
  font-size: clamp(1.8rem, 4vw, 2.975rem);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #C0C5CC;
  text-shadow: 
    0 0 30px rgba(0, 212, 255, 0.6),
    0 0 60px rgba(0, 212, 255, 0.3),
    0 0 90px rgba(0, 212, 255, 0.15),
    0 4px 0 #1A1C20,
    0 8px 0 #05070A,
    2px 2px 4px rgba(0, 0, 0, 0.9);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.menu-title img {
  height: 1.2em;
  vertical-align: middle;
  filter: 
    drop-shadow(0 0 15px rgba(0,255,136,0.8))
    drop-shadow(0 0 30px rgba(0,255,136,0.4));
  animation: ship-pulse 2s ease-in-out infinite;
}

@keyframes ship-pulse {
  0%, 100% { 
    filter: 
      drop-shadow(0 0 15px rgba(0,255,136,0.8))
      drop-shadow(0 0 30px rgba(0,255,136,0.4));
  }
  50% { 
    filter: 
      drop-shadow(0 0 25px rgba(0,255,136,1))
      drop-shadow(0 0 50px rgba(0,255,136,0.6));
  }
}

.subtitle {
  color: #5C626B;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #000;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   SHIP SELECTOR - SPACEJAY-151
   ═══════════════════════════════════════════════════════════════ */

.ship-selector-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  width: 100%;
  max-width: 600px;
}

/* Navigation Arrows - Using custom background image */
.ship-nav-arrow {
  background-image: url('../../assets/menus/LeftnRightButtonBackground.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  filter: drop-shadow(0 0 15px rgba(255, 140, 66, 0.6));
}

.ship-nav-arrow::before {
  content: '<';
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFF;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 200, 100, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.ship-nav-right::before {
  content: '>';
}

.ship-nav-arrow:hover {
  filter: drop-shadow(0 0 25px rgba(255, 140, 66, 1));
  transform: scale(1.08);
}

.ship-nav-arrow:hover::before {
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 200, 100, 1),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.ship-nav-arrow:active {
  transform: scale(0.95);
  filter: drop-shadow(0 0 10px rgba(255, 140, 66, 0.4));
}

/* Pulse animation for arrows to draw attention */
@keyframes arrow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 140, 66, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 140, 66, 1));
  }
}

.ship-nav-arrow {
  animation: arrow-pulse 2s ease-in-out infinite;
}

/* Ship Selector Panel - Panel frame without background */
.ship-selector-panel {
  position: relative;
  width: min(380px, 90vw);
  min-height: clamp(350px, 45vh, 420px);
  padding: clamp(18px, 2.5vh, 25px);
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Panel frame - ornate border only, no background fill */
.ship-selector-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../assets/menus/panel-frame2-clean.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content is above the frame */
.ship-selector-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Ship Icon Display */
.ship-icon-display {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.ship-icon-display img {
  max-width: 100%;
  max-height: 100%;
  animation: ship-float 3s ease-in-out infinite;
  transition: filter 0.3s ease;
}

@keyframes ship-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Ship Name */
.ship-selector-name {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-shadow: 
    0 0 10px currentColor,
    2px 2px 0 rgba(0, 0, 0, 0.8);
  margin: 0;
  transition: color 0.3s ease;
}

/* Ship Description */
.ship-selector-description {
  font-size: 0.85rem;
  color: #8A8F96;
  text-align: center;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

/* Ship Stats */
.ship-selector-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}

.ship-selector-stats .stat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ship-selector-stats .stat-label {
  font-size: 0.75rem;
  font-weight: bold;
  color: #8A8F96;
  min-width: 45px;
  letter-spacing: 1px;
}

.ship-selector-stats .stat-bar-container {
  flex: 1;
  height: 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(138, 143, 150, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.ship-selector-stats .stat-bar-fill {
  height: 100%;
  transition: width 0.4s ease;
  box-shadow: 
    0 0 10px currentColor,
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
}

.ship-selector-stats .stat-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

/* Old ship preview styles - kept for backwards compatibility */
.ship-preview-simple {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.ship-preview-simple img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
  animation: ship-float 3s ease-in-out infinite;
}

/* Menu options */
.menu-options {
  display: flex;
  gap: 30px;
  font-size: 0.765rem;
  color: #8A8F96;
  margin: 10px 0;
}

.menu-options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.menu-options select {
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 30, 40, 0.8) 50%, rgba(0, 0, 0, 0.9) 100%);
  color: #00D4FF;
  border: 2px solid;
  border-image: linear-gradient(135deg, #1a3a4a 0%, #00D4FF 50%, #1a3a4a 100%) 1;
  border-radius: 0;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 
    inset -3px -3px 6px rgba(0, 0, 0, 0.8),
    inset 3px 3px 6px rgba(0, 212, 255, 0.1),
    0 0 15px rgba(0, 212, 255, 0.2),
    0 3px 0 rgba(0, 0, 0, 0.8);
  transition: all 0.2s;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
  clip-path: polygon(
    6px 0%, calc(100% - 6px) 0%, 
    100% 6px, 100% calc(100% - 6px),
    calc(100% - 6px) 100%, 6px 100%,
    0% calc(100% - 6px), 0% 6px
  );
}

.menu-options select:hover {
  border-image: linear-gradient(135deg, #00D4FF 0%, #00FFFF 50%, #00D4FF 100%) 1;
  color: #fff;
  box-shadow: 
    inset -3px -3px 6px rgba(0, 0, 0, 0.8),
    inset 3px 3px 6px rgba(0, 212, 255, 0.15),
    0 0 25px rgba(0, 212, 255, 0.4),
    0 3px 0 rgba(0, 0, 0, 0.8);
  text-shadow: 0 0 12px rgba(0, 212, 255, 1);
}

/* Buttons */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vh, 8px);
  align-items: center;
  margin: 0;
}

/* Enhanced button styling - Neutral default, Cyan on hover */
.btn-primary,
.btn-secondary,
.btn-quit {
  position: relative;
  padding: clamp(8px, 1.2vh, 12px) clamp(30px, 3vw, 40px);
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: clamp(240px, 25vw, 280px);
  min-height: clamp(50px, 6vh, 60px);
  image-rendering: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #8A8F96;
  text-shadow: 
    0 0 8px rgba(138, 143, 150, 0.4),
    2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Default state - Neutral button background */
.btn-primary::before,
.btn-secondary::before,
.btn-quit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../assets/menus/button-neutral-clean.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

/* Cyan button overlay (hidden by default) */
.btn-primary::after,
.btn-secondary::after,
.btn-quit::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../assets/menus/button-cyan-clean.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover state - Show cyan button and change text color */
.btn-primary:hover,
.btn-secondary:hover,
.btn-quit:hover {
  color: #00D4FF;
  text-shadow: 
    0 0 15px rgba(0, 212, 255, 1),
    0 0 30px rgba(0, 212, 255, 0.6),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-quit:hover::after {
  opacity: 1;
}

/* Secondary and Quit buttons removed - now using unified button styling above */

/* Leaderboard - Responsive size to fit all data horizontally */
#leaderboard {
  position: relative;
  border: none;
  border-radius: 0;
  padding: clamp(70px, 10vh, 90px) clamp(35px, 4vw, 50px) clamp(55px, 8vh, 70px) clamp(35px, 4vw, 50px);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
}

/* Panel frame background - fixed size */
#leaderboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../assets/menus/panel-frame2-clean.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: auto;
  z-index: -1;
}

/* Scrollable content area */
#lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100% - 80px);
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom scrollbar for leaderboard */
#lb-list::-webkit-scrollbar {
  width: 6px;
}

#lb-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

#lb-list::-webkit-scrollbar-thumb {
  background: #3A3E45;
  border-radius: 3px;
}

#lb-list::-webkit-scrollbar-thumb:hover {
  background: #00D4FF;
}

/* Ensure content is above the frame */
#leaderboard > * {
  position: relative;
  z-index: 1;
}

#lb-title {
  font-size: 0.6375rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8A8F96;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
  text-align: center;
  margin-bottom: 12px;
  margin-top: 20px;
  flex-shrink: 0;
}

#lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-loading {
  text-align: center;
  color: #555;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 8px 0;
}

.lb-row {
  display: grid;
  grid-template-columns: 24px 60px auto auto 50px 60px;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 3px;
  transition: background 0.15s;
  border-left: 2px solid transparent;
}

.lb-row:hover { 
  background: rgba(0, 212, 255, 0.05);
  border-left-color: rgba(0, 212, 255, 0.3);
}

.lb-row.lb-top { 
  color: #00D4FF;
  border-left-color: #00D4FF;
}

.lb-row.lb-mine { 
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
  border-left-color: #00D4FF;
}

.lb-rank  { color: #5C626B; font-size: 0.7rem; text-align: left; }
.lb-name  { color: #8A8F96; letter-spacing: 1px; overflow: hidden;
            text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.lb-score { color: #00D4FF; font-weight: bold; text-align: left;
            text-shadow: 0 0 8px rgba(0, 212, 255, 0.4); }
.lb-wave  { color: #5C626B; font-size: 0.7rem; text-align: left; }
.lb-date  { color: #5C626B; font-size: 0.7rem; text-align: left; }
.lb-diff  { color: #5C626B; font-size: 0.7rem; text-align: left; }

.lb-row.lb-top .lb-rank  { color: #00D4FF; }
.lb-row.lb-top .lb-name  { color: #fff; }

/* Copyright */
#menu-copyright {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #333;
  text-transform: uppercase;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT SIDEBAR - News, Missions, Events
   ═══════════════════════════════════════════════════════════════ */

.menu-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vh, 12px);
  width: clamp(260px, 18vw, 300px);
  height: clamp(500px, 85vh, 700px);
  overflow: hidden;
  z-index: 1;
}

.info-panel {
  position: relative;
  border: none;
  border-radius: 0;
  padding: clamp(45px, 7vh, 60px) clamp(30px, 3.5vw, 45px) clamp(40px, 6vh, 55px) clamp(30px, 3.5vw, 45px);
  width: 100%;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Panel frame background - fixed size */
.info-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../assets/menus/panel-frame2-clean.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: auto;
  z-index: -1;
}

/* Ensure content is above the frame */
.info-panel > * {
  position: relative;
  z-index: 1;
}

/* Different panel types - no external glows */
.info-panel:nth-child(1),
.info-panel:nth-child(2),
.info-panel:nth-child(3) {
  box-shadow: none;
}

.info-panel-header {
  font-size: 0.7rem;
  font-weight: bold;
  color: #8A8F96;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: none;
}

/* News Feed */
.news-item {
  margin-bottom: 10px;
}

.news-title {
  font-size: 0.65rem;
  color: #00D4FF;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.news-subtitle {
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.news-description {
  font-size: 0.7rem;
  color: #8A8F96;
  line-height: 1.4;
}

/* Daily Mission */
.mission-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #FFB347;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mission-description {
  font-size: 0.7rem;
  color: #8A8F96;
  margin-bottom: 10px;
  line-height: 1.4;
}

.mission-progress {
  margin-bottom: 10px;
}

.mission-progress-bar {
  width: 100%;
  height: 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.mission-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFB347 0%, #FF8C00 100%);
  box-shadow: none;
  transition: width 0.3s ease;
}

.mission-progress-text {
  font-size: 0.65rem;
  color: #8A8F96;
  text-align: right;
}

.mission-reward {
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #FFB347;
  margin-top: auto;
  margin-bottom: -20px;
}

/* Void Event */
.event-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #FF4444;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-description {
  font-size: 0.7rem;
  color: #8A8F96;
  margin-bottom: 10px;
  line-height: 1.4;
}

.event-timer {
  font-size: 0.7rem;
  font-weight: bold;
  color: #FF4444;
  text-align: center;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
  margin-top: auto;
  margin-bottom: -20px;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
   ═══════════════════════════════════════════════════════════════ */

.menu-right-sidebar::-webkit-scrollbar {
  width: 8px;
}

.menu-right-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.menu-right-sidebar::-webkit-scrollbar-thumb {
  background: #3A3E45;
  border-radius: 4px;
}

.menu-right-sidebar::-webkit-scrollbar-thumb:hover {
  background: #00D4FF;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1600px) {
  #menu-screen.advanced.active {
    gap: 20px;
    padding: 15px;
  }
  
  .menu-left-sidebar,
  .menu-right-sidebar {
    width: clamp(250px, 22vw, 350px);
  }
  
  #leaderboard {
    width: clamp(250px, 22vw, 350px);
    height: clamp(450px, 65vh, 650px);
    padding: 80px 40px 60px 40px;
  }
}

@media (max-width: 1400px) {
  #menu-screen.advanced.active {
    gap: 15px;
  }
  
  .menu-left-sidebar,
  .menu-right-sidebar {
    display: none;
  }
  
  #menu-screen.advanced {
    justify-content: center;
  }
  
  .ship-selector-panel {
    width: min(360px, 85vw);
  }
}

@media (max-width: 1200px) {
  .menu-left-sidebar,
  .menu-right-sidebar {
    display: none;
  }
  
  .menu-title {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    letter-spacing: 6px;
  }
  
  .ship-selector-container {
    gap: 15px;
    max-width: 550px;
  }
  
  .ship-nav-arrow {
    width: 60px;
    height: 60px;
  }
  
  .ship-nav-arrow::before {
    font-size: 2rem;
  }
}

@media (max-height: 800px) {
  #menu-screen.advanced.active {
    padding: 10px;
  }
  
  .menu-center-content {
    gap: 6px;
  }
  
  .ship-selector-panel {
    min-height: 380px;
    padding: 20px;
  }
  
  .ship-icon-display {
    height: 100px;
    margin-bottom: 8px;
  }
  
  .ship-icon-display img {
    max-width: 90%;
    max-height: 90%;
  }
  
  .menu-buttons {
    gap: 6px;
    margin: 3px 0;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-quit {
    min-height: 55px;
    padding: 10px 35px;
  }
}

@media (max-height: 700px) {
  .ship-selector-panel {
    min-height: 350px;
    padding: 18px;
  }
  
  .ship-selector-name {
    font-size: 1.2rem;
  }
  
  .ship-selector-description {
    font-size: 0.75rem;
    margin: 0 0 8px 0;
  }
  
  .ship-selector-stats {
    gap: 8px;
  }
  
  .ship-selector-stats .stat-bar-container {
    height: 16px;
  }
}
