/* ============================================================================
   styles/menu.css — Premium Wide Launcher Main Menu & Mode Cards (Part 6)
   ============================================================================ */

.screen-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.28) 0%, rgba(2, 6, 23, 0.80) 100%);
  backdrop-filter: blur(3px);
}

/* Large 90–92% Viewport Width Launcher Container */
.home-menu-container {
  width: min(92vw, 1260px);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.90) 0%, rgba(9, 13, 22, 0.94) 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.34);
  border-radius: 26px;
  padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 38px);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vh, 24px);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.game-hero-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
  background: linear-gradient(95deg, #ffffff 0%, #facc15 52%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-hero-subtitle {
  font-size: clamp(14px, 1.6vw, 18px);
  color: #cbd5e1;
  font-weight: 600;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.mode-card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  min-height: 188px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid rgba(148, 163, 184, 0.30);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-card-btn:hover,
.mode-card-btn:focus-visible {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.28);
  outline: none;
}

.mode-card-btn.featured {
  background: linear-gradient(165deg, rgba(249, 115, 22, 0.26) 0%, rgba(225, 29, 72, 0.22) 45%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(251, 146, 60, 0.65);
}

.mode-card-btn.featured:hover {
  border-color: #facc15;
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.36);
}

.mode-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.mode-card-title {
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.mode-card-desc {
  font-size: clamp(13px, 1.15vw, 15px);
  color: #cbd5e1;
  line-height: 1.45;
}

.mode-card-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #facc15;
}

.menu-secondary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
}

.menu-nav-btn {
  padding: 11px 18px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

.option-pill-group {
  display: flex;
  gap: 10px;
}

.option-pill {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.88);
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.16s ease;
}

.option-pill.selected {
  background: rgba(14, 165, 233, 0.26);
  border-color: #38bdf8;
  color: #ffffff;
}

@media (max-width: 900px) {
  .mode-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mode-card-btn {
    min-height: auto;
    padding: 16px 18px;
  }
  .home-menu-container {
    width: 95vw;
    padding: 18px 20px;
    gap: 14px;
  }
}
