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

/* ─────────────────────────────────────────────
   Design tokens
   ───────────────────────────────────────────── */
:root {
  --bg:          270 50% 3%;
  --fg:          0 0% 100%;
  --card:        270 40% 6%;
  --card-fg:     0 0% 100%;
  --primary:     0 0% 100%;
  --primary-fg:  270 50% 3%;
  --secondary:   270 30% 12%;
  --muted:       270 25% 15%;
  --muted-fg:    270 15% 62%;
  --border:      275 35% 22%;
  --input:       270 30% 14%;
  --ring:        285 80% 55%;
  --hero-sub:    210 17% 95%;

  --accent-purple: #b24dff;
  --accent-pink:   #ff4daf;
  --gradient-accent: linear-gradient(135deg, #b24dff 0%, #ff4daf 100%);

  --font-sans:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-full: 9999px;

  --transition: 0.2s ease;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─────────────────────────────────────────────
   Reset
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ─────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted    { color: hsl(var(--muted-fg)); }
.text-sm       { font-size: 0.875rem; }
.text-xs       { font-size: 0.75rem; }
.tracking-wide { letter-spacing: 0.1em; }
.uppercase     { text-transform: uppercase; }

/* ─────────────────────────────────────────────
   Liquid glass
   ───────────────────────────────────────────── */
.liquid-glass {
  background: rgba(178, 77, 255, 0.03);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(178, 77, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(178,77,255,0.5) 0%,
    rgba(178,77,255,0.18) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,77,175,0.18) 80%,
    rgba(255,77,175,0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spinOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }
[data-delay="7"] { transition-delay: 0.7s; }
[data-delay="8"] { transition-delay: 0.8s; }

/* ─────────────────────────────────────────────
   Layout helpers
   ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (min-width: 768px) {
  .container { padding: 0 7rem; }
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────
   Navbar
   ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
@media (min-width: 768px) {
  #navbar { padding: 1rem 7rem; }
}
#navbar.scrolled {
  background: rgba(14, 5, 28, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(178, 77, 255, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(178, 77, 255, 0.75);
}
.nav-logo-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 77, 175, 0.75);
  position: relative;
  z-index: 1;
}
.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-links li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links li::after {
  content: '•';
  color: hsl(var(--muted-fg));
  font-size: 0.5rem;
  margin-left: 0.25rem;
}
.nav-links li:last-child::after { display: none; }
.nav-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: hsl(var(--fg)); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.nav-social-btn:hover { color: #fff; }
.nav-social-btn svg { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────
   Age gate
   ───────────────────────────────────────────── */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: hsl(270 50% 3%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}
#age-gate.hidden { display: none; }

.age-gate-logo {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.age-gate-logo-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(178, 77, 255, 0.7);
  animation: spinOrbit 8s linear infinite;
}
.age-gate-logo-inner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 77, 175, 0.7);
}

.age-gate-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.age-gate-text {
  color: hsl(var(--muted-fg));
  max-width: 380px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.age-gate-btn {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 2.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.15s, opacity 0.15s;
  box-shadow: 0 4px 24px rgba(178, 77, 255, 0.4);
}
.age-gate-btn:hover  { transform: scale(1.03); opacity: 0.92; }
.age-gate-btn:active { transform: scale(0.97); }
.age-gate-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  opacity: 0.6;
  max-width: 340px;
}

/* ─────────────────────────────────────────────
   Cookie banner
   ───────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: calc(100% - 2rem);
  max-width: 640px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeUp 0.4s var(--ease-out);
}
#cookie-banner.hidden { display: none; }
.cookie-text {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  line-height: 1.5;
}
.cookie-text a {
  color: hsl(var(--fg));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-btn {
  flex-shrink: 0;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}
.cookie-btn:hover { opacity: 0.85; }


.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: hsl(var(--fg));
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(178, 77, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(178, 77, 255, 0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsl(var(--muted-fg));
  opacity: 0.6;
}


.btn-primary {
  display: block;
  width: 100%;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  transition: transform 0.15s, opacity 0.15s;
  box-shadow: 0 4px 20px rgba(178, 77, 255, 0.3);
}
.btn-primary:hover  { transform: scale(1.01); opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-error {
  color: rgba(255, 100, 100, 0.9);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}
.form-success {
  text-align: center;
  padding: 1rem 0;
}
.form-success p { color: hsl(var(--muted-fg)); font-size: 0.9rem; margin-top: 0.5rem; }

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Dark scrim so text is always legible regardless of video content */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(10,3,22,0.68) 0%, rgba(10,3,22,0.3) 55%, rgba(10,3,22,0.1) 100%),
    linear-gradient(to bottom, rgba(10,3,22,0.4) 0%, transparent 25%, transparent 65%, rgba(10,3,22,0.3) 100%);
  z-index: 1;
}
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22rem;
  background: linear-gradient(to top, hsl(var(--bg)) 10%, rgba(10,3,22,0.75) 50%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 7rem 1.5rem 0;
  max-width: 900px;
}

.hero-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.25rem;
}
.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid hsl(var(--bg));
  overflow: hidden;
  margin-left: -8px;
}
.hero-avatar:first-child { margin-left: 0; }
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-avatar-label {
  margin-left: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.hero-heading {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 32px rgba(0,0,0,0.9), 0 1px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0,0,0,0.75);
}

.hero-form-btn {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.7rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(178, 77, 255, 0.4);
}
.hero-form-btn:hover  { transform: scale(1.03); opacity: 0.92; }
.hero-form-btn:active { transform: scale(0.97); }

/* ─────────────────────────────────────────────
   "Changed" section  (now sits after games lobby)
   ───────────────────────────────────────────── */
#changed-section {
  padding: 8rem 0 2rem;
  text-align: center;
  border-top: 1px solid hsl(var(--border) / 0.3);
}
.changed-heading {
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.25rem;
}
.changed-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-fg));
  max-width: 540px;
  margin: 0 auto 5rem;
  line-height: 1.7;
}
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius-md);
  background: hsl(var(--card));
  transition: border-color var(--transition), box-shadow var(--transition);
}
.platform-card:hover {
  border-color: rgba(178, 77, 255, 0.5);
  box-shadow: 0 0 24px rgba(178, 77, 255, 0.1);
}
.platform-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-icon img,
.platform-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.platform-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.platform-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  text-align: center;
  line-height: 1.6;
}
.changed-tagline {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  text-align: center;
  padding-bottom: 2rem;
}

/* ─────────────────────────────────────────────
   Mission section
   ───────────────────────────────────────────── */
#mission-section {
  padding: 0 0 10rem;
}
.mission-video-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}
.mission-video-wrap video {
  width: min(800px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.word-reveal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.word-reveal-p1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: hsl(var(--hero-sub));
  margin-bottom: 2rem;
}
.word-reveal-p2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: hsl(var(--hero-sub));
}
.word-reveal-p1 .word,
.word-reveal-p2 .word {
  opacity: 0.15;
  transition: opacity 0.15s ease;
  display: inline;
}
.word-reveal-p1 .word.lit,
.word-reveal-p2 .word.lit {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   Lobby / solution section
   ───────────────────────────────────────────── */
#lobby-section {
  padding: 4rem 0 8rem;
  /* no border-top — flows seamlessly from hero */
  position: relative;
}
#lobby-section::before {
  content: '';
  position: absolute;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(178, 77, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#lobby-section > .container { position: relative; z-index: 1; }
.lobby-heading {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
}
.lobby-video-wrap {
  margin-bottom: 3rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 1;
}
.lobby-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature-item { }
.feature-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.feature-desc {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  line-height: 1.55;
}

/* Game grid */
.games-grid-heading {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsl(var(--border) / 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(178, 77, 255, 0.15);
}
@media (min-width: 600px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
}

.game-card {
  position: relative;
  background: hsl(var(--card));
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.game-card:hover {
  box-shadow: inset 0 0 0 2px rgba(178, 77, 255, 0.5), 0 0 30px rgba(178, 77, 255, 0.2);
  z-index: 1;
}
.game-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.game-card:hover .game-card-cover {
  transform: scale(1.06);
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 3, 28, 0.92) 0%, rgba(60, 10, 100, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}
.game-card-meta {
  font-size: 0.7rem;
  color: hsl(var(--muted-fg));
  margin-bottom: 0.6rem;
}
.game-card-play {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.game-card-play::after {
  content: '→';
  transition: transform 0.2s;
}
.game-card:hover .game-card-play::after {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────
   CTA section
   ───────────────────────────────────────────── */
#cta-section {
  position: relative;
  padding: 8rem 0 11rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
  overflow: hidden;
  text-align: center;
}
#cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 18, 0.62);
  z-index: 1;
}
.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-icon-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(178, 77, 255, 0.75);
}
.cta-icon-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 77, 175, 0.75);
}
.cta-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0;
}
.cta-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-fg));
  max-width: 440px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-cta-primary {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  box-shadow: 0 4px 24px rgba(178, 77, 255, 0.45);
}
.btn-cta-primary:hover { opacity: 0.9; transform: scale(1.02); }
.btn-cta-secondary {
  border-radius: var(--radius-md);
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: hsl(var(--fg));
  transition: opacity 0.15s;
}
.btn-cta-secondary:hover { opacity: 0.75; }

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
#site-footer {
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--border) / 0.25);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-brand-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(178, 77, 255, 0.5);
}
.footer-brand-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 77, 175, 0.5);
}
.footer-copy {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
}

.footer-rg-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border) / 0.15);
  border-bottom: 1px solid hsl(var(--border) / 0.15);
  margin-bottom: 1.25rem;
}
.footer-helpline {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
}
.footer-helpline strong { color: hsl(var(--fg)); }
.footer-rg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}
.footer-rg-link {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  display: inline-flex; align-items: center;
}
.footer-rg-link:has(img) {
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
  border-color: transparent;
}
.footer-rg-link:has(img):hover { background: #fff; }
.footer-rg-link img { height: 24px; width: auto; display: block; }
.footer-rg-link:hover { color: hsl(var(--fg)); border-color: hsl(var(--border)); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  transition: color var(--transition);
}
.footer-links a:hover { color: hsl(var(--fg)); }

.footer-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(178, 77, 255, 0.4);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.65rem;
  color: rgba(178, 77, 255, 0.6);
  letter-spacing: 0;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Game pages
   ───────────────────────────────────────────── */
.game-page {
  padding-top: 5rem;
  min-height: 100vh;
}
.game-page-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-fg));
  transition: color var(--transition);
}
.back-link:hover { color: hsl(var(--fg)); }
.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  background: hsl(var(--secondary));
  border: 1px solid rgba(178, 77, 255, 0.35);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
}
.coin-chip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(178, 77, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--accent-purple);
}
.game-frame-wrap {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1.5rem 0;
  height: calc(100vh - 220px);
  min-height: 480px;
}
.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.game-info {
  padding: 1rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.game-info-title { font-size: 1.25rem; }
.game-info-meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.game-info-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  max-width: 600px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   Legal / compliance pages
   ───────────────────────────────────────────── */
.legal-page {
  padding-top: 7rem;
  padding-bottom: 6rem;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.legal-page .legal-updated {
  font-size: 0.8rem;
  color: hsl(var(--muted-fg));
  margin-bottom: 3rem;
}
.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--fg));
}
.legal-page p {
  font-size: 0.9rem;
  color: hsl(var(--muted-fg));
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-page li {
  font-size: 0.9rem;
  color: hsl(var(--muted-fg));
  line-height: 1.75;
  margin-bottom: 0.25rem;
}
.legal-page a {
  color: hsl(var(--fg));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rg-helpline-box {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}
.rg-helpline-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.rg-helpline-number {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent-purple);
}
.rg-assessment {
  list-style: none;
  padding: 0;
}
.rg-assessment li {
  padding: 0.7rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.2);
  position: relative;
  padding-left: 1.5rem;
}
.rg-assessment li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: hsl(var(--muted-fg));
}

/* ─────────────────────────────────────────────
   Contact page
   ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-info p { font-size: 0.9rem; color: hsl(var(--muted-fg)); line-height: 1.7; }
.contact-info a { color: hsl(var(--fg)); }
.contact-detail {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-detail dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
}
.contact-detail dd {
  font-size: 0.9rem;
  color: hsl(var(--fg));
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────
   Responsive tweaks
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-heading { letter-spacing: -0.03em; }
  .changed-heading { letter-spacing: -0.03em; }
  #mission-section { padding-bottom: 5rem; }
  #lobby-section { padding: 5rem 0 6rem; }
  #cta-section { padding: 5rem 0 6rem; }
  .lobby-video-wrap { aspect-ratio: 16 / 9; }
}
