/* =============================================================
   PolarStarLanding — Aurora theme
   Single local stylesheet. No external imports, no CDN.
   ============================================================= */

:root {
  /* palette */
  --bg:            #0B1530;
  --bg-deep:       #070D22;
  --surface:       #11193A;
  --surface-2:     #161F47;
  --border:        rgba(244, 246, 251, 0.10);
  --border-strong: rgba(244, 246, 251, 0.18);

  --text:          #F4F6FB;
  --text-dim:      #B7BFD5;
  --text-mute:     #7D88A8;
  --text-faint:    #5D6783;

  --accent:        #E8B14A;
  --accent-soft:   #FFD06B;
  --accent-ink:    #1A1300;
  --star-pale:     #CFE3FF;

  --aurora-blue:   rgba(94, 160, 255, 0.42);
  --aurora-violet: rgba(132, 90, 220, 0.36);
  --aurora-teal:   rgba(56, 200, 180, 0.26);

  /* type */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --transition: 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* If a Manrope woff2 is dropped into assets/fonts/, it will be picked up
   automatically; otherwise we fall back to the system stack above. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local("Manrope");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  /* ambient aurora wash on every page */
  background:
    radial-gradient(60% 50% at 18% 0%, var(--aurora-violet) 0%, transparent 60%),
    radial-gradient(50% 40% at 85% 5%, var(--aurora-blue) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 21, 48, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand svg { flex-shrink: 0; }

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav a:hover, .nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text-mute);
  cursor: pointer;
  transition: border-color var(--transition);
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle .lang-en, .lang-toggle .lang-fr { transition: color var(--transition); }
.lang-toggle[data-lang="en"] .lang-en { color: var(--text); }
.lang-toggle[data-lang="fr"] .lang-fr { color: var(--text); }
.lang-toggle .sep { color: var(--text-faint); }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(232, 177, 74, 0.0);
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -10px rgba(232, 177, 74, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* =============================================================
   Layout
   ============================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section-narrow { padding: 64px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "★";
  color: var(--accent);
  font-size: 12px;
}
.eyebrow.no-star::before { content: none; }

.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.section-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 620px;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  padding: 88px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 90%;
  background:
    radial-gradient(60% 50% at 30% 25%, var(--aurora-blue) 0%, transparent 60%),
    radial-gradient(50% 40% at 78% 35%, var(--aurora-violet) 0%, transparent 60%),
    radial-gradient(55% 45% at 60% 80%, var(--aurora-teal) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  animation: auroraShift 22s ease-in-out infinite;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 880px;
}
.hero h1 .accent { color: var(--accent-soft); }

.hero-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* starfield (decorative, JS-generated) */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.starfield .star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  animation: starTwinkle 5s ease-in-out infinite;
}
.starfield .star.dim { background: var(--star-pale); opacity: 0.4; }
.polaris {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 16px 4px rgba(255, 208, 107, 0.55);
}

@keyframes auroraShift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50%      { transform: translate(-3%, 1.5%) scale(1.06); opacity: 0.72; }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.9; }
}

/* =============================================================
   Section: Stats
   ============================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 25, 58, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.is-open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  padding: 22px 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent-soft);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
/* No-JS: FAQ answers stay visible (content visible without JS).
   With JS, .js on <html> activates accordion behaviour. */
.faq-a {
  overflow: hidden;
  padding: 0 26px 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.js .faq-a {
  max-height: 0;
  padding: 0 26px;
  transition: max-height 320ms ease, padding 320ms ease;
}
.js .faq-item.is-open .faq-a {
  max-height: 320px;
  padding: 0 26px 22px;
}

/* =============================================================
   Who We Are
   ============================================================= */
.who {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
.who-text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.who-text p:last-child { margin-bottom: 0; }

.who-image {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

/* =============================================================
   Games carousel — two cards
   ============================================================= */
.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.game-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.game-card-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.game-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.game-card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.game-card-meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.game-card-meta span::before { content: "·"; margin-right: 10px; color: var(--text-faint); }
.game-card-meta span:first-child::before { content: none; margin: 0; }
.game-card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}
.game-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

/* =============================================================
   18+ Badge
   ============================================================= */
.badge-18 {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
  background: rgba(232, 177, 74, 0.04);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.badge-18::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(232, 177, 74, 0.25);
}
.badge-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.badge-row-text {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.55;
}
.badge-row-text strong { color: var(--text); }

/* =============================================================
   Important Information — 6 cards
   ============================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232, 177, 74, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.info-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* =============================================================
   Form
   ============================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 580px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field textarea, .field select {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: #FF8A8A; font-size: 12px; }

/* form toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.5);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================================
   Play Responsible — 4 help cards
   ============================================================= */
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition), transform var(--transition);
  color: var(--text);
}
.help-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.help-card .name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.help-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.help-card .blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  flex: 1;
}
.help-card .visit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.help-card:hover .visit { color: var(--accent-soft); }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin: 14px 0 0;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 4px 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.6;
}
.footer-disclaimer p { margin: 0; max-width: 720px; }

/* =============================================================
   Legal / narrow content pages
   ============================================================= */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px 80px;
}
.legal h1 {
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}
.legal .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 48px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--text);
}
.legal h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-right: 12px;
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 14px; }
.legal strong { color: var(--text); }

/* =============================================================
   Game launcher page
   ============================================================= */
.game-page {
  padding: 64px 0 96px;
}
.game-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.game-page-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}
.game-page-head p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 540px;
}
.game-frame {
  position: relative;
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 540px;
}
.game-frame iframe {
  width: 100%; height: 100%; border: 0; display: block; background: var(--bg-deep);
}
.game-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 24px;
}
.game-back:hover { color: var(--accent-soft); }

/* =============================================================
   Reveals
   ============================================================= */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =============================================================
   Mobile
   ============================================================= */
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-right .btn { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 84px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr; gap: 32px; }
  .games { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-disclaimer { flex-direction: column; gap: 16px; }
  .game-page-head { flex-direction: column; align-items: flex-start; }
  .badge-row { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
}

/* =============================================================
   Scroll-life effects (JS-driven, gated by prefers-reduced-motion)
   ============================================================= */

/* hero parallax: starfield translates with --stars-shift */
.hero .starfield {
  will-change: transform;
  transform: translate3d(0, var(--stars-shift, 0), 0);
}

/* Constellation progress rail */
.constellation {
  position: fixed;
  right: 14px;
  top: 0;
  width: 28px;
  height: 100vh;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.constellation.is-on { opacity: 1; }
.constellation .track {
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(244,246,251,0.06) 0%, rgba(244,246,251,0.1) 50%, rgba(244,246,251,0.06) 100%);
}
.constellation .progress {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 1px;
  height: var(--progress, 0%);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--accent-soft) 0%, var(--accent) 100%);
  box-shadow: 0 0 8px rgba(232, 177, 74, 0.5);
}
.constellation .star {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(244,246,251,0.15);
  border: 1px solid rgba(244,246,251,0.2);
  transition: background 260ms ease, border-color 260ms ease, transform 260ms cubic-bezier(0.2,0.6,0.2,1), box-shadow 260ms ease;
}
.constellation .star.is-lit {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 14px 3px rgba(232, 177, 74, 0.5);
}
.constellation .star.is-active {
  transform: scale(1.7);
  box-shadow: 0 0 18px 5px rgba(255, 208, 107, 0.7);
}
.constellation .comet {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fff;
  top: var(--comet, 7%);
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.6), 0 0 22px 10px rgba(94, 160, 255, 0.25);
  transition: top 80ms linear;
}
@media (max-width: 880px) {
  .constellation { display: none; }
}

/* Magnetic CTA */
.btn-primary[data-magnetic] {
  transition: transform 260ms cubic-bezier(0.2, 0.6, 0.2, 1), background 220ms, box-shadow 220ms;
}
.btn-primary[data-magnetic].is-magnet {
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 80ms linear, background 220ms, box-shadow 220ms;
}

/* Card tilt */
.game-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.game-card.is-tilting {
  transition: transform 80ms linear, border-color var(--transition);
}
.game-card .game-card-cover,
.game-card .game-card-body {
  transition: transform 360ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.game-card.is-tilting .game-card-cover { transform: translateZ(18px); }
.game-card.is-tilting .game-card-body  { transform: translateZ(6px); }

/* Reduced motion: cancel scroll-life effects */
@media (prefers-reduced-motion: reduce) {
  .hero .starfield { transform: none; }
  .constellation { display: none; }
  .btn-primary[data-magnetic].is-magnet { transform: none; }
  .game-card.is-tilting { transform: none; }
  .game-card.is-tilting .game-card-cover,
  .game-card.is-tilting .game-card-body { transform: none; }
}

/* =============================================================
   Age gate (JS overlay, never page replacement)
   - Mounted only when JS runs and psl.age is unset
   - Content beneath remains rendered (no-JS safe)
   ============================================================= */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 13, 34, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 240ms ease;
}
.age-gate.is-shown { opacity: 1; }

.age-gate-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  text-align: left;
  position: relative;
  box-shadow: 0 24px 80px -32px rgba(0, 0, 0, 0.7);
  transform: translateY(10px);
  transition: transform 240ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.age-gate.is-shown .age-gate-card { transform: translateY(0); }

.age-gate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.age-gate-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 14px;
}

.age-gate h2 {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text);
}

.age-gate p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 24px;
}

.age-gate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.age-gate-actions .btn { flex: 1; justify-content: center; min-width: 140px; }

.age-gate-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.age-gate-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .age-gate, .age-gate-card { transition: none; }
  .age-gate.is-shown .age-gate-card { transform: none; }
}

/* When the gate is up, lock background scroll */
html.has-age-gate, html.has-age-gate body { overflow: hidden; }

/* =============================================================
   Cookie / storage notice banner
   ============================================================= */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  margin: 0 auto;
  max-width: 720px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 16px 48px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.2, 0.6, 0.2, 1), opacity 320ms ease;
}
.cookie-bar.is-shown { transform: translateY(0); opacity: 1; }
.cookie-bar-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  flex: 1;
}
.cookie-bar-text a {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(232, 177, 74, 0.4);
  white-space: nowrap;
}
.cookie-bar-text a:hover { border-bottom-color: var(--accent-soft); }
.cookie-bar-btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .cookie-bar-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: opacity 200ms ease; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero::before { animation: none; opacity: 0.6; }
  .starfield .star { animation: none; opacity: 0.5; }
}
