/**
 * Adaptable - by Uran Khatola
 * Clean, High-Contrast Modern Flight Simulator Design System
 */

:root {
  --bg-main: #060911;
  --bg-card: rgba(13, 19, 33, 0.78);
  --bg-card-hover: rgba(18, 27, 47, 0.94);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-glow-fast: rgba(245, 158, 11, 0.45);
  --border-glow-ball: rgba(16, 185, 129, 0.45);
  
  --color-amber: #f59e0b;
  --color-amber-light: #fbbf24;
  --color-orange: #f97316;
  --color-emerald: #10b981;
  --color-emerald-light: #34d399;
  --color-cyan: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Outfit', 'Space Grotesk', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND AMBIENT GLOWS & GRID */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: 12%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(249, 115, 22, 0.08) 70%, transparent 100%);
}

.glow-2 {
  width: 560px;
  height: 560px;
  bottom: -160px;
  right: 12%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.08) 70%, transparent 100%);
}

/* MAIN CONTAINER WRAPPER */
.main-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(13, 19, 33, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  margin-bottom: 40px;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  font-family: var(--font-display);
}

.brand-byline {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--color-amber);
  font-weight: 600;
}

.audio-test-pill {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--color-amber-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.audio-test-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--color-amber-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* CENTER HERO SECTION */
.launcher-center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0 40px 0;
}

.hero-header {
  text-align: center;
  max-width: 720px;
  margin-bottom: 48px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-emerald-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 16px var(--color-emerald); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.main-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 14px;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}

/* GAME SELECTION CARDS (TWO OPTIONS ONLY) */
.game-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 920px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 34px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.85;
}

/* Card 1: FAST */
.card-fast {
  border-color: rgba(245, 158, 11, 0.2);
}

.card-fast::before {
  background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
}

.card-fast:hover {
  border-color: var(--border-glow-fast);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.25);
  background: var(--bg-card-hover);
}

/* Card 2: Ball */
.card-ball {
  border-color: rgba(16, 185, 129, 0.2);
}

.card-ball::before {
  background: linear-gradient(90deg, var(--color-emerald), var(--color-cyan));
}

.card-ball:hover {
  border-color: var(--border-glow-ball);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.25);
  background: var(--bg-card-hover);
}

/* Card Badges & Header */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.type-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-body {
  margin-bottom: 28px;
}

.game-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Action Buttons */
.launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-fast-theme {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-fast-theme:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
}

.btn-ball-theme {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-ball-theme:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

/* FOOTER */
.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .game-cards-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .main-wrapper {
    padding: 16px;
  }
  .navbar {
    padding: 12px 16px;
    margin-bottom: 24px;
  }
  .game-card {
    padding: 26px 22px;
  }
}
