@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --navy: #070b1a;
  --deep: #0d1225;
  --silver: #c0c7d6;
  --starlight: #818cf8;
  --nova: #6366f1;
  --cosmic: rgba(99,102,241,0.15);
  --dim: #64748b;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--silver);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Starfield pattern */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
              radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.2), transparent),
              radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.25), transparent),
              radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.15), transparent),
              radial-gradient(1px 1px at 25% 90%, rgba(255,255,255,0.2), transparent),
              radial-gradient(1px 1px at 55% 10%, rgba(255,255,255,0.3), transparent),
              radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.2), transparent);
  z-index: -1;
}

.as-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,11,26,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}

.as-nav-wrap {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
}

.as-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.as-brand svg { width: 36px; height: 36px; }
.as-brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--starlight); letter-spacing: 1px; }

.as-links ul { list-style: none; display: flex; gap: 2rem; }
.as-links a { color: var(--dim); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.25s; }
.as-links a:hover, .as-links a.on { color: var(--starlight); }

.as-hb { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.as-hb span { width: 26px; height: 2px; background: var(--starlight); transition: 0.3s; }
.as-hb.on span:first-child { transform: rotate(45deg) translate(5px,5px); }
.as-hb.on span:nth-child(2) { opacity: 0; }
.as-hb.on span:last-child { transform: rotate(-45deg) translate(5px,-5px); }

/* Hero */
.cosmos-hero {
  text-align: center;
  padding: 7rem 2rem 5rem;
  position: relative;
}

.cosmos-hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cosmic), transparent 70%);
}

.cosmos-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}

.cosmos-hero p {
  max-width: 680px; margin: 0 auto 2.5rem;
  color: var(--dim); font-size: 1.1rem;
  position: relative; z-index: 1;
}

.star-btn {
  display: inline-block; padding: 13px 42px;
  background: var(--nova); color: #fff;
  text-decoration: none; border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem;
  transition: 0.3s; position: relative; z-index: 1;
  box-shadow: 0 4px 20px var(--cosmic);
}

.star-btn:hover { background: var(--starlight); transform: translateY(-2px); }

/* Floating cards */
.float-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 1400px; margin: 0 auto; padding: 3rem 2rem;
}

.fcard {
  background: var(--deep); border: 1px solid rgba(99,102,241,0.1);
  border-radius: 16px; padding: 2.5rem; text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.fcard:hover { transform: translateY(-5px); border-color: var(--starlight); }
.fcard .fc-i { font-size: 2.5rem; margin-bottom: 1rem; }
.fcard h3 { font-family: 'Space Grotesk', sans-serif; color: var(--starlight); margin-bottom: 0.6rem; font-size: 1.05rem; }
.fcard p { color: var(--dim); font-size: 0.9rem; }

/* Game */
.game-display {
  max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; text-align: center;
}

.game-display h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem;
  color: var(--starlight); margin-bottom: 2rem;
}

.game-viewport {
  width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(99,102,241,0.2);
  box-shadow: 0 0 40px var(--cosmic);
}

.game-viewport iframe { width: 100%; height: 100%; border: none; }

/* Two col */
.dual-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  max-width: 1400px; margin: 0 auto; padding: 3rem 2rem;
}

.dc-box {
  background: var(--deep); border-radius: 16px; padding: 2.5rem;
  border: 1px solid rgba(99,102,241,0.08);
}

.dc-box h3 { font-family: 'Space Grotesk', sans-serif; color: var(--nova); margin-bottom: 0.7rem; }
.dc-box p { color: var(--dim); font-size: 0.9rem; }

/* Stats */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  max-width: 1400px; margin: 0 auto; padding: 2rem;
}

.stat-pill {
  background: var(--deep); border-radius: 12px; padding: 1.5rem; text-align: center;
  border: 1px solid rgba(99,102,241,0.08);
}

.stat-pill .sp-v { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--starlight); }
.stat-pill .sp-l { color: var(--dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* Page */
.txt-content {
  max-width: 960px; margin: 0 auto; padding: 4rem 2rem;
}

.txt-content h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; color: var(--starlight); margin-bottom: 1.5rem; }
.txt-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; color: var(--nova); margin: 2rem 0 0.7rem; }
.txt-content p { color: var(--dim); margin-bottom: 1rem; }
.txt-content ul { color: var(--dim); margin: 0.5rem 0 1rem 1.5rem; }

/* Play */
.play-zone { text-align: center; padding: 3rem 2rem 1rem; }
.play-zone h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; color: var(--starlight); margin-bottom: 1rem; }
.play-note { max-width: 800px; margin: 0 auto 2rem; background: var(--deep); border-radius: 12px; padding: 1.2rem; border: 1px solid rgba(99,102,241,0.1); }
.play-note p { color: var(--dim); font-size: 0.9rem; }

/* Footer */
.as-footer {
  background: var(--deep); border-top: 1px solid rgba(99,102,241,0.1);
  padding: 2.5rem; text-align: center;
}

.af-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.af-links a { color: var(--dim); text-decoration: none; font-size: 0.85rem; transition: color 0.25s; }
.af-links a:hover { color: var(--starlight); }

.af-rg { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(99,102,241,0.08); }
.af-rg p { color: var(--dim); font-size: 0.8rem; margin-bottom: 0.5rem; }
.af-rg a { color: var(--starlight); text-decoration: none; margin: 0 0.6rem; font-size: 0.8rem; }
.af-rg a:hover { text-decoration: underline; }

.af-copy { margin-top: 1rem; color: var(--dim); font-size: 0.72rem; opacity: 0.5; }

/* Age */
.age-veil { position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.age-dialog { background: var(--deep); border: 2px solid var(--nova); border-radius: 20px; padding: 2.5rem; text-align: center; max-width: 450px; width: 90%; box-shadow: 0 0 50px var(--cosmic); }
.age-dialog h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; color: var(--starlight); margin-bottom: 0.8rem; }
.age-dialog p { color: var(--dim); margin-bottom: 1.8rem; }
.age-picks { display: flex; gap: 1rem; justify-content: center; }
.age-picks button { padding: 11px 34px; border: none; border-radius: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.25s; }
.ap-yes { background: var(--nova); color: #fff; }
.ap-yes:hover { background: var(--starlight); }
.ap-no { background: transparent; border: 2px solid var(--dim) !important; color: var(--dim); }
.ap-no:hover { border-color: #ef4444 !important; color: #ef4444; }

@media (max-width: 768px) {
  .as-hb { display: flex; }
  .as-links ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(7,11,26,0.98); padding: 1rem 0; }
  .as-links ul.open { display: flex; }
  .as-links li { text-align: center; padding: 0.7rem 0; }
  .as-nav-wrap { position: relative; }
  .cosmos-hero h1 { font-size: 2.2rem; }
  .float-cards { grid-template-columns: 1fr; }
  .dual-col { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .cosmos-hero h1 { font-size: 1.7rem; } .stat-row { grid-template-columns: 1fr; } }
