/* ============================================================
   BOUNTYWARZ — Master Stylesheet
   Extracted from live_root.html (lines 112-1956)
   ============================================================ */

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

:root {
  --gold: #FFD700;
  --gold-light: #ffee88;
  --cyan: #00ffff;
  --purple: #aa00ff;
  --bg-dark: #000000;
  --bg-void: #0a0a1a;
  --success: #00CED1;
  --danger: #ff4444;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.7;
  touch-action: manipulation;
  overscroll-behavior: none;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== ANIMATED SPACE BACKGROUND ========== */
.space-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #0a0a2a 0%, #000000 100%);
  overflow: hidden;
}

.stars { position: absolute; width: 100%; height: 100%; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,215,0,0.08);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 10001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  letter-spacing: 3px;
  transition: color 0.3s;
}

.mobile-drawer a:hover {
  color: var(--gold);
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

#hero-logo {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  background: linear-gradient(135deg, #FFD700 0%, #ffaa00 40%, #FFD700 70%, #ffee88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(255,215,0,0.3));
  margin-bottom: 0.5rem;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  padding-right: 0.06em;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--cyan);
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 20px rgba(0,255,255,0.3);
  font-weight: 400;
}

.hero-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 20px;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide {
  min-width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,215,0,0.03) 0%, rgba(0,255,255,0.03) 100%);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 20px;
}

.hero-slide-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-slide h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.hero-slide p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 3px;
}

.carousel-dot.active {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
  transform: scale(1.2);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #ffaa00 100%);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 25px rgba(255,215,0,0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255,215,0,0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--cyan);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: 2px solid var(--cyan);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 25px rgba(0,255,255,0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* ========== SECTION TITLES ========== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.section-title p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== ATHELGARD SECTION ========== */
.ath-section {
  padding: 4rem 2rem;
  position: relative;
}

.ath-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ath-portrait {
  flex: 0 0 200px;
  text-align: center;
}

.ath-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 40px rgba(255,215,0,0.2);
  margin-bottom: 1rem;
}

.ath-name {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.ath-title {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.ath-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.ath-stat {
  text-align: center;
  padding: 0.5rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.1);
}

.ath-stat-value {
  font-family: 'Cinzel', serif;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 700;
}

.ath-stat-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.ath-dialogue {
  flex: 1;
  min-width: 280px;
}

.ath-dialogue-box {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 200px;
  position: relative;
}

.ath-dialogue-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#ath-dialogue-body {
  min-height: 180px;
  max-height: 300px;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 8px;
}

#ath-dialogue-body::-webkit-scrollbar {
  width: 4px;
}

#ath-dialogue-body::-webkit-scrollbar-track {
  background: transparent;
}

#ath-dialogue-body::-webkit-scrollbar-thumb {
  background: rgba(255,215,0,0.3);
  border-radius: 2px;
}

.ath-message {
  margin-bottom: 1rem;
  animation: msg-fade 0.4s ease;
}

@keyframes msg-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ath-message-role {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.ath-message-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ath-message-text.system {
  color: var(--cyan);
  font-style: italic;
}

.ath-continue-btn {
  display: none;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #ffaa00 100%);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.ath-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

.ath-continue-btn.show {
  display: inline-block;
}

.ath-modes {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ath-mode-btn {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 20px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

.ath-mode-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,215,0,0.05);
}

.ath-mode-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,215,0,0.1);
}

/* ========== MOST WANTED / BOSSES ========== */
.bosses-section {
  padding: 4rem 2rem;
}

.bosses-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.boss-card {
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  background: rgba(255,0,0,0.03);
  border: 1px solid rgba(255,68,68,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.boss-card:hover {
  border-color: rgba(255,68,68,0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255,68,68,0.1);
}

.boss-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.boss-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--danger);
  margin-bottom: 0.5rem;
}

.boss-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  line-height: 1.6;
}

.boss-bounty {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-family: 'Cinzel', serif;
}

/* ========== PLANETS GRID (18 NATIONS) ========== */
.planets-section {
  padding: 4rem 2rem;
}

.planets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.planet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 90px;
}

.planet-card:hover {
  border-color: rgba(255,215,0,0.3);
  background: rgba(255,215,0,0.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.06);
}

.planet-card.locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.planet-card.locked:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255,215,0,0.08);
}

.planet-emoji, .planet-flag {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.planet-name {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.planet-card.locked .planet-name {
  color: rgba(255,255,255,0.3);
}

.planet-lock-icon {
  font-size: 0.7rem;
  margin-top: 0.2rem;
  opacity: 0.5;
}

/* ========== FEATURES SECTION ========== */
.features-section {
  padding: 4rem 2rem;
  position: relative;
}

.features-grid {
  display: flex;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.features-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 1.5rem;
}

.feature-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,255,0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,255,255,0.05);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ========== KILL CHAIN SECTION ========== */
.kc-section {
  padding: 4rem 2rem;
}

.kc-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.kc-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 1rem;
}

.kc-card {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 200px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.kc-card:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-3px);
}

.kc-number {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.kc-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.kc-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.kc-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  line-height: 1.5;
}

.kc-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.kc-arrow:hover {
  background: rgba(255,215,0,0.3);
  transform: translateY(-50%) scale(1.1);
}

.kc-arrow-left { left: -20px; }
.kc-arrow-right { right: -20px; }

/* ========== ARSENAL SECTION ========== */
.arsenal-section {
  padding: 4rem 2rem;
}

.arsenal-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.arsenal-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 1rem;
}

.arsenal-card {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 200px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(170,0,255,0.15);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.arsenal-card:hover {
  border-color: rgba(170,0,255,0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(170,0,255,0.08);
}

.arsenal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.arsenal-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.arsenal-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  line-height: 1.5;
}

.arsenal-detail {
  display: none;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(170,0,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.arsenal-card.expanded .arsenal-detail {
  display: block;
}

/* ========== YOUR JOURNEY (GAME FLOW) ========== */
.skills-section {
  padding: 4rem 2rem;
}

.game-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.flow-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.flow-step:hover {
  border-color: rgba(255,215,0,0.25);
  transform: translateY(-3px);
}

.flow-step-number {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.flow-step-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.flow-step h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.flow-step p {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  line-height: 1.4;
}

/* ========== TERMINAL / MISSION STORY ========== */
.terminal-section {
  padding: 4rem 2rem;
}

.terminal-preview {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(0,255,255,0.15);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.terminal-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,255,255,0.08);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(0,255,255,0.7);
}

.terminal-content .prompt {
  color: var(--gold);
}

.terminal-content .cmd {
  color: #fff;
}

.terminal-content .output {
  color: rgba(255,255,255,0.5);
  display: block;
  padding-left: 1.5rem;
}

.terminal-content .highlight {
  color: var(--cyan);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

/* ========== EMAIL CAPTURE ========== */
.email-section {
  padding: 3rem 2rem;
  text-align: center;
}

.email-form {
  display: flex;
  gap: 0.8rem;
  max-width: 450px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.email-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
}

.email-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255,215,0,0.1);
}

.email-form input::placeholder {
  color: #666;
}

.email-form button {
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--gold) 0%, #ffaa00 100%);
  color: #000;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.email-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,215,0,0.3);
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 2rem auto;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: 14px;
}

.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-top: 0.3rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  #landing-volume, #landing-movie-btn { display: none !important; }
  #music-progress { display: none !important; }
  .hero { padding-top: 8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .planets-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .planet-card { padding: 0.6rem; }
  .planet-emoji, .planet-flag { font-size: 1.6rem; }
  .planet-name { font-size: 0.75rem; }
  #hero-logo { font-size: clamp(2.2rem, 12vw, 4rem) !important; letter-spacing: 0.08em !important; padding-right: 0.08em !important; }
  .hero-tagline { font-size: 1rem !important; letter-spacing: 1px !important; }
  .hero-subtitle { font-size: 0.9rem !important; padding: 0 10px; }
  .carousel-dot { width: 10px !important; height: 10px !important; padding: 2px !important; }
  #hero-carousel-dots { gap: 5px !important; max-width: 90vw; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 4rem 1rem 4.5rem !important; }
  .terminal-section { padding: 3rem 0.8rem !important; }
  .terminal-preview { border-radius: 14px !important; }
  .section-title h2 { font-size: clamp(1.2rem, 5vw, 2rem) !important; }
}

@media (max-width: 480px) {
  .planets-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .planet-card { padding: 0.5rem 0.3rem; min-height: 70px; }
  .planet-flag, .planet-emoji { font-size: 1.3rem; }
  .planet-name { font-size: 0.65rem; }
  #hero-logo { font-size: 2rem !important; }
  .hero-tagline { font-size: 0.85rem !important; }
  .nav { padding: 0.5rem 0.8rem !important; }
  #landing-volume { display: none !important; }
  .nav > div:first-child { min-width: 0; flex: 1; overflow: hidden; gap: 8px !important; }
  .nav > div:first-child > div:last-child { display: none !important; }
  .nav .hamburger { flex-shrink: 0; }
  .hero { padding-top: 5.5rem !important; }
  section:not(.learn-section):not(.skills-section):not(.planets-section), div[style*="max-width"] { max-width: 100vw !important; overflow-x: hidden !important; }
  .bosses-row, .planets-grid, .learn-grid { overflow-x: auto !important; }
  .features-grid { overflow: hidden !important; }
  #ath-dialogue-body { min-height: 360px !important; max-height: 420px !important; }
  .skills-section { padding-left: 1rem !important; padding-right: 1rem !important; }
  .game-flow { grid-template-columns: 1fr !important; gap: 10px !important; }
}

@media (max-width: 375px) {
  .planets-grid { grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
  .planet-card { padding: 0.4rem 0.2rem; min-height: 60px; }
  .planet-flag, .planet-emoji { font-size: 1.1rem; }
  .planet-name { font-size: 0.6rem; letter-spacing: 0; }
  #hero-logo { font-size: 1.6rem !important; }
  .hero-tagline { font-size: 0.75rem !important; }
  .hero { padding-top: 5rem !important; }
  .hero-subtitle { font-size: 0.7rem !important; }
  .features-grid { gap: 0.5rem !important; }
  .feature-card { padding: 0.8rem !important; }
  .feature-card h3 { font-size: 0.9rem !important; }
  .feature-card p { font-size: 0.7rem !important; }
  section { padding: 2rem 0.8rem !important; }
  h2 { font-size: 1.2rem !important; }
}

/* ========== SCROLL-TRIGGERED REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== HOW IT WORKS — 3-STEP SECTION ========== */
.how-it-works {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(255,215,0,0.02) 50%, transparent 100%);
}

.how-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
}

.how-step:hover {
  border-color: rgba(255,215,0,0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,215,0,0.08);
}

.how-step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffaa00);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.how-step-icon {
  width: 72px;
  height: 72px;
  margin: 0.5rem auto 1.2rem;
  border-radius: 50%;
  background: rgba(255,215,0,0.06);
  border: 2px solid rgba(255,215,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.how-step h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.how-step p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.how-connector {
  display: flex;
  align-items: center;
  color: rgba(255,215,0,0.3);
  font-size: 1.5rem;
  padding-top: 3rem;
}

@media (max-width: 768px) {
  .how-connector { display: none; }
  .how-steps { flex-direction: column; align-items: center; }
  .how-step { max-width: 340px; width: 100%; }
}

/* ========== SOCIAL PROOF SECTION ========== */
.social-proof {
  padding: 3rem 2rem;
  text-align: center;
}

.social-proof-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.proof-stat { text-align: center; }

.proof-stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.proof-stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-top: 0.3rem;
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  flex: 1;
  min-width: 240px;
  max-width: 280px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,206,209,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(0,206,209,0.4);
  transform: translateY(-4px);
}

.testimonial-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 1px;
}

.testimonial-role {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .social-proof-stats { gap: 1.5rem; }
  .testimonial-cards { flex-direction: column; align-items: center; }
  .testimonial-card { max-width: 340px; width: 100%; }
}

/* ========== SCAN-LINE OVERLAY (CSS-only CRT effect for terminal) ========== */
.scanline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,255,0.015) 2px,
    rgba(0,255,255,0.015) 4px
  );
  animation: scanline-scroll 8s linear infinite;
}

.scanline-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(180deg, rgba(0,255,255,0.06), transparent);
  animation: scanline-beam 4s ease-in-out infinite;
}

@keyframes scanline-scroll {
  from { background-position: 0 0; }
  to { background-position: 0 100px; }
}

@keyframes scanline-beam {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { top: 100%; opacity: 0.5; }
}

/* ========== HERO CTA — SINGLE PRIMARY ACTION ========== */
.hero-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.hero-continue-link {
  color: rgba(0,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  display: none;
}

.hero-continue-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,255,255,0.3);
}

.hero-continue-link.show {
  display: inline-block;
}

/* ========== POLISHED FOOTER ========== */
.footer {
  padding: 3rem 2rem 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.95) 100%);
  border-top: 1px solid rgba(255,215,0,0.1);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 15px rgba(255,215,0,0.3);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
  letter-spacing: 0.5px;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: var(--cyan); }

.footer-social {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,255,255,0.15);
  transform: translateY(-2px);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
}

.footer-copy {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
}

.footer-platform {
  display: inline-block;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 20px;
  padding: 4px 14px;
  color: rgba(255,215,0,0.6);
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-family: 'Cinzel', serif;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ========== LOGIN MODAL ========== */
.login-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.login-modal-overlay.active { display: flex; }

.login-modal {
  background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 100%);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 2.5rem;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 60px rgba(255,215,0,0.3), 0 0 120px rgba(0,255,255,0.1);
  animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.login-modal h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.login-modal .subtitle {
  color: var(--cyan);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.login-input-group {
  margin-bottom: 1rem;
  text-align: left;
}

.login-input-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.login-input {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 8px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.login-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.login-input::placeholder { color: #666; font-size: 0.9rem; }

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  cursor: pointer;
}

.remember-me input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.remember-me span { color: #aaa; font-size: 0.9rem; }

.login-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #ffaa00 100%);
  color: #000;
  box-shadow: 0 5px 20px rgba(255,215,0,0.3);
}

.login-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}

.login-btn-secondary {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  margin-top: 0.8rem;
}

.login-btn-secondary:hover {
  background: rgba(0,255,255,0.1);
  transform: translateY(-2px);
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #666;
  font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #444, transparent);
}

.login-divider span { padding: 0 1rem; }

.login-error {
  background: rgba(255,68,68,0.2);
  border: 1px solid var(--danger);
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  color: #ff6b6b;
  font-size: 0.9rem;
  display: none;
}

.login-error.show { display: block; }

.login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-close:hover {
  background: rgba(255,68,68,0.3);
  color: #ff6b6b;
}

.login-modal-container { position: relative; }

/* Volume slider styling */
#landing-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #FFD700; cursor: pointer; border: none; }
#landing-volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #FFD700; cursor: pointer; border: none; }
