/* ========================================================
   AstralJoyField — Main Stylesheet
   Aesthetic: Premium editorial cosmic. Warm, dreamy, joyful.
   --------------------------------------------------------
   Perf notes (rewrite):
   - body::before: dropped mix-blend-mode: overlay. Blending a
     viewport-sized fixed overlay forces every frame through an
     extra compositor pass; on mid-range mobile that's the single
     biggest scroll FPS hit on the site. Plain low-opacity grain
     looks near-identical on a dark palette.
   - .prose on legal pages uses content-visibility: auto so the
     browser skips layout + paint for off-screen sections. Huge
     win on terms.php / privacy.php which are long-form.
   - Added `contain: layout paint` to large self-clipping blocks
     (.hero, .responsibly, .game-card, .age-gate__card). They
     already had overflow: hidden; contain formalises that so
     the browser can skip their subtree when nothing inside
     changed.
   ======================================================== */

/* -------- Fonts -------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* -------- Design tokens -------- */
:root {
    /* Colors — cosmic dreamscape */
    --void:        #0B0B1E;
    --void-soft:   #13122B;
    --void-2:      #1B1A38;
    --nebula:      #2A1F4D;
    --star-gold:   #F5B85A;
    --star-gold-d: #E29A38;
    --nebula-pink: #E66FD2;
    --aether:      #7BD9E6;
    --cream:       #F3EEE3;
    --cream-dim:   #C9C2B0;
    --muted:       #9E9BB5;
    --ink:         #0B0B1E;

    /* Gradients */
    --grad-hero: radial-gradient(ellipse at 20% 30%, rgba(230,111,210,0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(123,217,230,0.15), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(245,184,90,0.18), transparent 55%),
    linear-gradient(180deg, #0B0B1E 0%, #13122B 60%, #0B0B1E 100%);
    --grad-gold: linear-gradient(135deg, #F5B85A 0%, #E29A38 60%, #B77219 100%);
    --grad-pink: linear-gradient(135deg, #E66FD2 0%, #A84CD4 100%);
    --grad-aether: linear-gradient(135deg, #7BD9E6 0%, #4F8EC9 100%);

    /* Shadows */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.4);
    --shadow-glow-gold: 0 0 0 1px rgba(245,184,90,0.2), 0 20px 60px -20px rgba(245,184,90,0.5);
    --shadow-glow-pink: 0 0 0 1px rgba(230,111,210,0.2), 0 20px 60px -20px rgba(230,111,210,0.5);

    /* Type scale */
    --fs-hero: clamp(3rem, 9vw, 7.5rem);
    --fs-h1: clamp(2.25rem, 5vw, 3.75rem);
    --fs-h2: clamp(1.75rem, 3.5vw, 2.75rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.6rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9rem;

    /* Spacing */
    --container: 1240px;
    --gutter: clamp(1.25rem, 3vw, 2.5rem);
    --section: clamp(4.5rem, 10vw, 8rem);

    /* Radii & misc */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 24px;
    --r-xl: 40px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- Reset-ish -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* -------- Base -------- */
body {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--cream);
    background: var(--void);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Subtle noise/grain overlay — no blend mode, just a very low-opacity
   fixed layer. Costs a single static raster that composites like any
   other semi-transparent image. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    color: var(--cream);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }

.display {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    font-size: var(--fs-hero);
    line-height: 0.98;
    letter-spacing: -0.035em;
}
.display em {
    font-style: italic;
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    background: linear-gradient(120deg, var(--star-gold) 20%, var(--nebula-pink) 60%, var(--aether) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--star-gold);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--star-gold);
    opacity: 0.6;
}

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--cream-dim);
    max-width: 58ch;
    line-height: 1.55;
}

/* -------- Layout primitives -------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 2;
}
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }

/* -------- Starfield background -------- */
.starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.starfield__layer {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    will-change: transform;
}
.starfield__layer--1 {
    background-image:
            radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.9), transparent),
            radial-gradient(1px 1px at 34% 62%, rgba(255,255,255,0.7), transparent),
            radial-gradient(1.5px 1.5px at 58% 22%, rgba(245,184,90,0.8), transparent),
            radial-gradient(1px 1px at 72% 78%, rgba(255,255,255,0.85), transparent),
            radial-gradient(1px 1px at 88% 38%, rgba(123,217,230,0.85), transparent),
            radial-gradient(1px 1px at 18% 82%, rgba(255,255,255,0.7), transparent),
            radial-gradient(1.5px 1.5px at 46% 8%, rgba(230,111,210,0.7), transparent),
            radial-gradient(1px 1px at 92% 90%, rgba(255,255,255,0.8), transparent);
    background-size: 900px 900px;
    animation: driftA 220s linear infinite;
}
.starfield__layer--2 {
    background-image:
            radial-gradient(0.8px 0.8px at 24% 34%, rgba(255,255,255,0.55), transparent),
            radial-gradient(0.8px 0.8px at 66% 14%, rgba(255,255,255,0.45), transparent),
            radial-gradient(0.8px 0.8px at 82% 56%, rgba(255,255,255,0.55), transparent),
            radial-gradient(0.8px 0.8px at 8% 72%, rgba(255,255,255,0.5), transparent),
            radial-gradient(0.8px 0.8px at 44% 92%, rgba(255,255,255,0.5), transparent);
    background-size: 600px 600px;
    animation: driftB 140s linear infinite;
    opacity: 0.7;
}
.starfield__glow {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.starfield__glow--1 { top: -150px; left: -200px; background: radial-gradient(circle, var(--nebula-pink), transparent 70%); }
.starfield__glow--2 { bottom: -200px; right: -200px; background: radial-gradient(circle, var(--aether), transparent 70%); }
.starfield__glow--3 { top: 40%; left: 60%; background: radial-gradient(circle, var(--star-gold), transparent 70%); opacity: 0.22; width: 500px; height: 500px; }

@keyframes driftA {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-900px, 200px, 0); }
}
@keyframes driftB {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(600px, -300px, 0); }
}

/* Individual twinkling stars */
.twinkle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 0 8px var(--cream);
    animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%      { opacity: 1;   transform: scale(1.3); }
}

/* -------- Header -------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(11,11,30,0.55);
    border-bottom: 1px solid rgba(245,238,227,0.06);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.brand__mark {
    width: 42px; height: 42px;
    flex-shrink: 0;
}
.brand__name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    font-size: 1.35rem;
    letter-spacing: -0.015em;
    line-height: 1;
}
.brand__name em {
    font-style: italic;
    font-weight: 400;
    color: var(--star-gold);
}
.brand__tag {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.nav a {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--cream-dim);
    border-radius: 999px;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
    position: relative;
}
.nav a:hover { color: var(--cream); background: rgba(245,238,227,0.05); }
.nav a.is-active { color: var(--star-gold); }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(245,238,227,0.12);
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--cream);
    position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
    content: ''; position: absolute;
    left: 0; width: 18px; height: 1.5px; background: var(--cream);
    transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* -------- Buttons -------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    position: relative;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
    background: var(--grad-gold);
    color: var(--ink);
    box-shadow: var(--shadow-glow-gold);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 25px 70px -15px rgba(245,184,90,0.7); }
.btn--ghost {
    border: 1px solid rgba(245,238,227,0.25);
    color: var(--cream);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(245,238,227,0.06); transform: translateY(-2px); }
.btn--pink {
    background: var(--grad-pink);
    color: var(--cream);
    box-shadow: var(--shadow-glow-pink);
}
.btn--pink:hover { transform: translateY(-2px); }

/* -------- Hero -------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
    contain: layout paint;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    pointer-events: none;
    z-index: 0;
}
.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.hero__copy { max-width: 660px; }
.hero__title { margin: 0 0 1.5rem; }
.hero__lead { margin-bottom: 2.25rem; font-size: 1.15rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero__badge svg { width: 16px; height: 16px; color: var(--star-gold); }

/* Hero visual — orbiting planets */
.orb-scene {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    margin-left: auto;
}
.orb-scene__ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(245,238,227,0.12);
    border-radius: 50%;
    animation: spinSlow 80s linear infinite;
}
.orb-scene__ring--2 {
    inset: 12%;
    border-color: rgba(230,111,210,0.18);
    animation: spinSlow 55s linear infinite reverse;
    border-style: dashed;
}
.orb-scene__ring--3 {
    inset: 26%;
    border-color: rgba(123,217,230,0.2);
    animation: spinSlow 35s linear infinite;
}
.orb-scene__planet {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.orb-scene__planet--a {
    top: 0; left: 50%;
    background: var(--grad-gold);
    box-shadow: 0 0 30px rgba(245,184,90,0.8);
}
.orb-scene__planet--b {
    top: 12%; left: 88%;
    width: 14px; height: 14px;
    background: var(--nebula-pink);
    box-shadow: 0 0 20px var(--nebula-pink);
}
.orb-scene__planet--c {
    top: 74%; left: 22%;
    width: 10px; height: 10px;
    background: var(--aether);
    box-shadow: 0 0 20px var(--aether);
}
.orb-scene__core {
    position: absolute;
    top: 50%; left: 50%;
    width: 36%; height: 36%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff7e0, var(--star-gold) 40%, var(--star-gold-d) 80%);
    box-shadow: 0 0 80px rgba(245,184,90,0.55), inset -20px -20px 40px rgba(0,0,0,0.25);
    animation: pulseCore 6s ease-in-out infinite;
}
.orb-scene__core::before {
    content: '';
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,184,90,0.4), transparent 60%);
    filter: blur(20px);
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulseCore {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.04); }
}

/* -------- Feature cards / UTP -------- */
.utp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
.utp-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: linear-gradient(155deg, rgba(245,238,227,0.04) 0%, rgba(245,238,227,0.01) 100%);
    border: 1px solid rgba(245,238,227,0.08);
    border-radius: var(--r-lg);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.utp-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(245,184,90,0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}
.utp-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245,184,90,0.4);
    background: linear-gradient(155deg, rgba(245,184,90,0.06) 0%, rgba(245,238,227,0.02) 100%);
}
.utp-card:hover::before { opacity: 1; }
.utp-card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,184,90,0.2), rgba(230,111,210,0.18));
    display: flex; align-items: center; justify-content: center;
    color: var(--star-gold);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245,184,90,0.2);
}
.utp-card__icon svg { width: 26px; height: 26px; }
.utp-card h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.utp-card p  { margin: 0; color: var(--cream-dim); font-size: 0.97rem; }

/* -------- Section heads -------- */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}
.section-head__text { max-width: 620px; }
.section-head h2 { margin: 0; }
.section-head h2 em {
    font-style: italic;
    color: var(--star-gold);
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.section-head p { margin-top: 0.75rem; color: var(--cream-dim); }

/* -------- Games showcase -------- */
.games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.game-card {
    position: relative;
    padding: 2.25rem;
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 5/4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(245,238,227,0.1);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    isolation: isolate;
    contain: layout paint;
}
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, var(--void-2) 0%, var(--nebula) 100%);
    z-index: -2;
}
.game-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at var(--mx, 30%) var(--my, 30%), rgba(245,184,90,0.25), transparent 55%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.game-card:hover::after { opacity: 1; }
.game-card__art {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 140px; height: 140px;
    opacity: 0.9;
}
.game-card__tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--star-gold);
    margin-bottom: 1rem;
}
.game-card h3 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin: 0 0 0.6rem; max-width: 70%; }
.game-card p  { color: var(--cream-dim); max-width: 70%; margin: 0 0 1.5rem; font-size: 0.96rem; }
.game-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cream);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(245,238,227,0.3);
    align-self: flex-start;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.game-card:hover .game-card__cta { color: var(--star-gold); border-color: var(--star-gold); gap: 0.9rem; }

/* -------- Responsible gaming banner -------- */
.responsibly {
    position: relative;
    padding: clamp(3rem, 6vw, 5rem);
    border-radius: var(--r-xl);
    background:
            radial-gradient(ellipse at 80% 20%, rgba(230,111,210,0.2), transparent 60%),
            linear-gradient(135deg, #1B1A38 0%, #0B0B1E 80%);
    border: 1px solid rgba(230,111,210,0.2);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    contain: layout paint;
}
.responsibly::before {
    content: '';
    position: absolute;
    right: -100px; bottom: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,111,210,0.3), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.responsibly h2 { margin: 0 0 1rem; }
.responsibly p  { color: var(--cream-dim); max-width: 54ch; margin: 0 0 1.5rem; }

/* -------- Steps / How it works -------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: var(--r-lg);
    background: rgba(245,238,227,0.02);
    border: 1px solid rgba(245,238,227,0.06);
    counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    font-style: italic;
    font-size: 3rem;
    color: var(--star-gold);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
}
.step h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.step p  { margin: 0; color: var(--cream-dim); font-size: 0.95rem; }

/* -------- FAQ -------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
    border-top: 1px solid rgba(245,238,227,0.1);
    padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(245,238,227,0.1); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 400;
    transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    width: 18px; height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B85A' stroke-width='1.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.4s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary          { color: var(--star-gold); }
.faq-item__body {
    color: var(--cream-dim);
    padding-top: 0.75rem;
    max-width: 72ch;
}

/* -------- Legal pages -------- */
.prose {
    max-width: 760px;
    margin: 0 auto;
    color: var(--cream-dim);
    font-size: 1.04rem;
    line-height: 1.75;
}
.prose h2 {
    color: var(--cream);
    margin-top: 2.75rem;
    font-size: 1.7rem;
}
.prose h3 { color: var(--cream); margin-top: 1.75rem; font-size: 1.25rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a  { color: var(--star-gold); border-bottom: 1px dashed rgba(245,184,90,0.4); }
.prose a:hover { border-color: var(--star-gold); }
.prose strong  { color: var(--cream); }

/* Skip layout + paint for off-screen prose blocks on long legal pages.
   Progressive enhancement — browsers without support behave as before.
   The intrinsic size hint keeps the scrollbar from jumping. */
@supports (content-visibility: auto) {
    .prose > h2,
    .prose > h3,
    .prose > p,
    .prose > ul {
        content-visibility: auto;
        contain-intrinsic-size: auto 120px;
    }
}

.page-hero {
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
}
.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    margin: 0 0 1rem;
}
.page-hero h1 em {
    font-style: italic;
    background: linear-gradient(120deg, var(--star-gold), var(--nebula-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-hero p { color: var(--cream-dim); max-width: 620px; margin: 0 auto; }

/* -------- Contact form -------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}
.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form__group { display: flex; flex-direction: column; gap: 0.45rem; }
.form__group label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--star-gold);
}
.form__group input, .form__group textarea {
    padding: 0.9rem 1rem;
    background: rgba(245,238,227,0.03);
    border: 1px solid rgba(245,238,227,0.12);
    border-radius: var(--r-md);
    color: var(--cream);
    font-size: 1rem;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form__group input:focus, .form__group textarea:focus {
    outline: 0;
    border-color: var(--star-gold);
    background: rgba(245,184,90,0.05);
}
.form__group textarea { resize: vertical; min-height: 150px; }
.form__consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--cream-dim);
}
.form__consent input { margin-top: 4px; accent-color: var(--star-gold); }
.form__note {
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    background: rgba(245,184,90,0.08);
    border: 1px solid rgba(245,184,90,0.2);
    color: var(--cream);
    font-size: 0.92rem;
}
.form__note.is-error { background: rgba(230,111,210,0.08); border-color: rgba(230,111,210,0.3); }

.contact-card {
    padding: 2.25rem;
    border-radius: var(--r-lg);
    background: linear-gradient(155deg, rgba(245,238,227,0.04), rgba(245,238,227,0.01));
    border: 1px solid rgba(245,238,227,0.08);
}
.contact-card h3 { margin-top: 0; }
.contact-card dl { margin: 0; display: grid; gap: 1.25rem; }
.contact-card dt {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--star-gold);
    margin-bottom: 0.25rem;
}
.contact-card dd { margin: 0; color: var(--cream); font-size: 0.98rem; line-height: 1.5; }

/* -------- Footer -------- */
.site-footer {
    margin-top: var(--section);
    padding: 5rem 0 2.5rem;
    border-top: 1px solid rgba(245,238,227,0.08);
    background: linear-gradient(180deg, transparent 0%, rgba(13,10,30,0.6) 100%);
    position: relative;
    z-index: 2;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.site-footer h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--star-gold);
    margin: 0 0 1.25rem;
    font-weight: 400;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.site-footer a  { color: var(--cream-dim); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--star-gold); }
.site-footer__about   { color: var(--cream-dim); font-size: 0.92rem; max-width: 42ch; }
.site-footer__address { margin-top: 1rem; font-style: normal; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245,238,227,0.06);
    flex-wrap: wrap;
}
.site-footer__bottom p { margin: 0; color: var(--muted); font-size: 0.82rem; font-family: 'Space Mono', monospace; }
.age-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--nebula-pink);
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nebula-pink);
}
.age-chip strong { color: var(--cream); }

/* -------- Age gate modal -------- */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(5,5,20,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.age-gate.is-open { display: flex; animation: fadeIn 0.5s var(--ease); }
.age-gate__card {
    position: relative;
    max-width: 560px;
    width: 100%;
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    background: linear-gradient(160deg, #1B1A38 0%, #0B0B1E 100%);
    border: 1px solid rgba(245,184,90,0.2);
    border-radius: var(--r-xl);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6);
    animation: slideUp 0.6s var(--ease);
    overflow: hidden;
    contain: layout paint;
}
.age-gate__card::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    width: 320px; height: 320px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(245,184,90,0.25), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}
.age-gate__mark {
    width: 64px; height: 64px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}
.age-gate h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0 0 0.75rem;
    position: relative;
    z-index: 1;
}
.age-gate p { color: var(--cream-dim); max-width: 40ch; margin: 0 auto 2rem; position: relative; z-index: 1; }
.age-gate__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.age-gate__note {
    margin-top: 1.75rem !important;
    font-size: 0.78rem;
    color: var(--muted);
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* -------- Cookie banner -------- */
.cookie-bar {
    position: fixed;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: 480px;
    margin-left: auto;
    z-index: 80;
    padding: 1.25rem 1.5rem;
    background: rgba(19,18,43,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245,184,90,0.25);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-bar.is-visible { display: block; transform: none; opacity: 1; }
.cookie-bar p {
    margin: 0 0 0.9rem;
    font-size: 0.88rem;
    color: var(--cream-dim);
    line-height: 1.5;
}
.cookie-bar p strong { color: var(--cream); }
.cookie-bar__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-bar .btn     { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* -------- Reveal animation on scroll -------- */
/* Progressive enhancement — without JS, content is always visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

/* -------- Responsive -------- */
@media (max-width: 960px) {
    .hero { min-height: auto; padding-top: 3rem; }
    .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
    .orb-scene { max-width: 340px; margin: 0 auto; }
    .utp { grid-template-columns: 1fr; }
    .games { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .responsibly { grid-template-columns: 1fr; padding: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(11,11,30,0.98);
        backdrop-filter: blur(20px);
        padding: 1rem var(--gutter);
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid rgba(245,238,227,0.08);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 0.85rem 1rem; border-radius: var(--r-md); }
    .nav-toggle { display: flex; }
    .nav-toggle.is-open span { background: transparent; }
    .nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }
    .game-card { aspect-ratio: auto; padding: 1.75rem; }
    .game-card__art { width: 100px; height: 100px; top: 1rem; right: 1rem; }
    .game-card h3, .game-card p { max-width: 100%; }
}

@media (max-width: 540px) {
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { justify-content: center; }
    .cookie-bar { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}