/* ==========================================================================
   OzPlayHub - design system
   Dark, bold and playful, modelled on the Zaift Webflow template: Kanit
   display type, Geist UI type, one yellow-to-red brand gradient, pill
   buttons with rolling labels, gradient-edged cards and soft glow blobs.

   Mobile-first. Breakpoints: 640 / 768 / 960 (nav) / 1024 / 1280.
   Motion animates transform + opacity only and switches off entirely
   under prefers-reduced-motion (see the last sections).

   Contents
     0.  Fonts (self-hosted)
     1.  Tokens
     2.  Base & typography
     3.  Layout & utilities
     4.  Icons & gradient paint
     5.  Gradient-ring recipe
     6.  Buttons
     7.  Notice bar & header
     8.  Sections & section heads
     9.  Cards & icon chips
     10. Home - hero
     11. Home - marquee
     12. Home - trust strip & stats
     13. Home - categories, steps, features
     14. Home - about, devices, promises
     15. Home - FAQ, responsible play, final CTA
     16. Page heads
     17. Games library
     18. Player
     19. Forms & alerts (incl. flash messages, checkboxes, honeypot)
     20. Auth split layout
     21. Contact & legal pages (incl. tables, summary box, company details)
     21b. Account pages
     22. Footer
     23. Cookie banner
     24. Motion - keyframes & scroll reveal
     25. Reduced motion & forced colours
   ========================================================================== */


/* ---------- 0. Fonts (self-hosted) ----------
   Kanit (headings) and Geist (body), served from /assets/fonts so pages make
   no requests to Google Fonts. Latin + Latin Extended subsets only; the
   unicode-range values match Google Fonts, so a browser downloads a file
   only when the page uses one of its characters. Geist is a variable font:
   one file covers weights 400-600. Licence: SIL Open Font License 1.1
   (assets/fonts/OFL-Kanit.txt, assets/fonts/OFL-Geist.txt).
   header.php preloads geist-variable-latin and kanit-700-latin - keep those
   URLs identical if the files are ever renamed. */
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/kanit-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/kanit-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/kanit-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/kanit-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/kanit-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/kanit-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/geist-variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/geist-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- 1. Tokens ---------- */
:root {
    /* Brand gradient (+ its two stops, for places a gradient can't paint) */
    --grad: linear-gradient(90deg, #EBCB49 0%, #F75448 100%);
    --grad-diag: linear-gradient(135deg, #EBCB49 0%, #F75448 100%);
    --grad-vert: linear-gradient(180deg, #EBCB49 0%, #F75448 100%);
    --grad-a: #EBCB49;
    --grad-b: #F75448;

    /* Surfaces & text - muted tones are white at reduced opacity only */
    --bg: #1A1A1A;
    --bg-glass: rgba(26, 26, 26, .78);
    --surface: #212121;
    --white: #FFFFFF;
    --text: rgba(255, 255, 255, .62);
    --text-faint: rgba(255, 255, 255, .5);
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .18);
    --fill: rgba(255, 255, 255, .04);

    /* Glows - the gradient stops at low alpha */
    --glow-a: rgba(235, 203, 73, .28);
    --glow-b: rgba(247, 84, 72, .36);

    /* Form validation & destructive states only */
    --success: #1e9e6a;
    --error: #d64545;
    --error-text: #ff8a80;   /* small error text on dark surfaces (7:1 contrast) */
    --danger: #c13a3a;       /* .btn-danger fill - white label at 5.3:1 contrast */

    /* Shape & type */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    --font-display: 'Kanit', system-ui, sans-serif;
    --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --container: 1240px;
    --gutter: 20px;
    --header-h: 72px;
    --section-y: 56px;

    --ease: cubic-bezier(.22, .7, .2, 1);

    /* Lets the FAQ animate to/from height:auto where supported */
    interpolate-size: allow-keywords;
}

@media (min-width: 768px) {
    :root { --gutter: 32px; --section-y: 80px; }
}


/* ---------- 2. Base & typography ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    color-scheme: dark;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    scrollbar-color: rgba(255, 255, 255, .22) var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font: 400 1rem/1.65 var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.5px;
    color: var(--white);
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.75rem + 3.2vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
strong, b { font-weight: 600; color: var(--white); }
ul, ol { padding-left: 1.25rem; }

a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    text-decoration-color: rgba(235, 203, 73, .6);
    transition: color .2s, text-decoration-color .2s;
}
a:hover { text-decoration-color: var(--grad-b); }

::selection { background: rgba(247, 84, 72, .35); color: var(--white); }

/* Global focus ring; buttons and cards upgrade this to a gradient ring */
:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 12px; top: 12px; z-index: 1000;
    padding: .8rem 1.2rem; border-radius: var(--radius-pill);
    background: var(--grad); color: var(--bg);
    font-weight: 600; text-decoration: none;
    transform: translateY(-200%);
    transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }


/* ---------- 3. Layout & utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow { max-width: 880px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Holds the shared <linearGradient> used to stroke icons (header.php) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }


/* ---------- 4. Icons & gradient paint ---------- */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; flex-shrink: 0; }
.icon-lg { width: 1.35em; height: 1.35em; }
.icon-2x { width: 1.75em; height: 1.75em; }

/* Gradient-stroked icons inside dark chips (falls back to the first stop).
   :where() keeps specificity low so gradient-filled tiles can switch back
   to a dark currentColor stroke. */
:where(.trust-icon, .category-icon, .hero-icon-tile, .auth-tile, .device-chip,
    .hero-trust li, .trust-badges li, .auth-showcase-trust li, .promise-list li) .icon * {
    stroke: url(#oz-grad) var(--grad-a);
}

/* Gradient text */
.grad-text, .accent, .brand-name em, .stat b, .contact-email, .footer-tagline, .not-found-code {
    background: var(--grad);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
}


/* ---------- 5. Gradient-ring recipe ----------
   A 1-2px gradient border drawn by a masked pseudo-element. Each component
   sets the pseudo's inset, padding (= ring width) and opacity. */
.btn-outline::before, .btn-ghost::before, .btn::after,
:where(.category-card, .feature-card, .step, .promise-card, .game-card, .about-panel)::before,
:where(.trust-icon, .category-icon, .hero-icon-tile, .auth-tile, .device-chip, .age-notice)::before {
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}


/* ---------- 6. Buttons ----------
   Pill buttons. The label sits in .btn-label > span: on hover the text
   rolls up and an identical copy (a text-shadow, so screen readers still
   read the label once) rolls in from below. */
.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 50px;
    padding: .9rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--white);
    font: 600 .95rem/1 var(--font-body);
    letter-spacing: .01em;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .35s var(--ease);
}
.btn::before, .btn::after {
    content: ''; position: absolute; border-radius: inherit;
    pointer-events: none; opacity: 0;
    transition: opacity .35s var(--ease);
}
/* ::after - gradient focus ring */
.btn::after { inset: -5px; padding: 2px; background: var(--grad); }
.btn:focus-visible { outline: none; }
.btn:focus-visible::after { opacity: 1; }

.btn-label { display: block; flex: none; overflow: hidden; line-height: 1.3; }
.btn-label > span {
    display: block;
    text-shadow: 0 1.3em 0 currentColor;
    transition: transform .55s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }

/* Primary: gradient fill, dark label, glow on hover (::before) */
.btn-primary { background: var(--grad); color: var(--bg); }
.btn-primary::before {
    inset: 0; z-index: -1;
    box-shadow: 0 14px 34px -10px var(--glow-b), 0 6px 24px -8px var(--glow-a);
}

/* Outline / ghost: hairline border that turns into the gradient on hover */
.btn-outline, .btn-ghost { border-color: var(--line); background: transparent; color: var(--white); }
.btn-outline::before, .btn-ghost::before { inset: -1px; padding: 1px; background: var(--grad); }

.btn:focus-visible .btn-label > span { transform: translateY(-1.3em); }
@media (hover: hover) {
    .btn:hover .btn-label > span { transform: translateY(-1.3em); }
    .btn:hover .icon { transform: translateX(3px); }
    .btn-primary:hover { transform: translateY(-2px); }
    .btn-primary:hover::before,
    .btn-outline:hover::before,
    .btn-ghost:hover::before { opacity: 1; }
}
.btn:active { transform: translateY(0) scale(.98); }

.btn-sm { min-height: 44px; padding: .7rem 1.2rem; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* Danger: destructive actions (delete account, delete user). Solid red
   with a white label, red glow on hover, red focus ring. */
.btn-danger { background: var(--danger); border-color: transparent; color: var(--white); }
.btn-danger::before {
    inset: 0; z-index: -1;
    box-shadow: 0 14px 34px -12px rgba(214, 69, 69, .65);
}
.btn-danger::after { background: var(--error); }
@media (hover: hover) {
    .btn-danger:hover { transform: translateY(-2px); }
    .btn-danger:hover::before { opacity: 1; }
}

/* Google sign-in: Google's light button on dark, per their branding rules */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    width: 100%; min-height: 50px; padding: .8rem 1.4rem; margin-bottom: .4rem;
    background: var(--white); color: var(--bg);
    border: 1px solid var(--white); border-radius: var(--radius-pill);
    font: 600 .95rem/1 var(--font-body); text-decoration: none;
    transition: transform .3s var(--ease);
}
.btn-google:hover { transform: translateY(-1px); }


/* ---------- 7. Notice bar & header ---------- */
.notice-bar {
    padding: .5rem var(--gutter);
    background: var(--grad);
    color: var(--bg);
    font: 600 .72rem/1.4 var(--font-body);
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}
.notice-bar span { white-space: nowrap; }   /* wrap between phrases, never inside one */
.notice-bar i { margin-inline: .45rem; font-style: normal; opacity: .55; }
@media (max-width: 639px) {
    .notice-bar { padding-inline: 12px; letter-spacing: .04em; }
    .notice-bar i { margin-inline: .3rem; }
}

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: background-color .3s, border-color .3s;
}
/* Toggled by main.js once the page scrolls */
.site-header.is-scrolled {
    background: var(--bg-glass);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
            backdrop-filter: blur(16px) saturate(150%);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex; align-items: center; gap: .65rem;
    min-height: 44px;
    font: 700 1.4rem/1 var(--font-display); letter-spacing: -.5px;
    color: var(--white); text-decoration: none;
}
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 12px; background: var(--grad-diag); color: var(--bg);
    font-size: 1.3rem;
    transform: rotate(-8deg);
    transition: transform .45s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(0deg) scale(1.06); }
.brand-name em { font-style: normal; }

/* Hamburger (mobile + tablet) */
.nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); cursor: pointer;
}
.nav-toggle span {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white);
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: surface panel under the header, opened via .nav-open */
.site-nav {
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    display: none; flex-direction: column; gap: 2px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.site-nav.nav-open { display: flex; animation: menu-in .3s var(--ease) both; }
.site-nav > a:not(.btn) {
    position: relative;
    display: flex; align-items: center; gap: .55rem;
    min-height: 48px; padding: 0 14px; border-radius: 8px;
    color: var(--white); font-weight: 500; text-decoration: none;
}
.site-nav > a:not(.btn):hover,
.site-nav > a:not(.btn)[aria-current="page"] { background: var(--fill); }
.site-nav .nav-games::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad); box-shadow: 0 0 10px var(--glow-b);
}
.site-nav .nav-account .icon { width: 1.1em; height: 1.1em; }
.site-nav .btn { margin-top: 8px; }
/* "Log out" is a small POST form (CSRF-protected) holding one button */
.nav-logout { display: flex; flex-direction: column; margin: 0; }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex; flex-direction: row; align-items: center; gap: 12px;
        padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
        animation: none;
    }
    .site-nav > a:not(.btn) {
        justify-content: center;
        min-width: 44px; min-height: 44px; padding: 0 8px;
        border-radius: 0; font-size: .95rem;
    }
    .site-nav > a:not(.btn):hover,
    .site-nav > a:not(.btn)[aria-current="page"] { background: none; }
    /* Gradient hover underline (kept visible under the current page's link) */
    .site-nav > a:not(.btn)::after {
        content: ''; position: absolute; left: 8px; right: 8px; bottom: 8px;
        height: 2px; border-radius: 2px; background: var(--grad);
        transform: scaleX(0); transform-origin: right;
        transition: transform .4s var(--ease);
    }
    .site-nav > a:not(.btn):hover::after,
    .site-nav > a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
    .site-nav .btn { margin: 0 0 0 4px; }
    .nav-logout { flex-direction: row; }
}


/* ---------- 8. Sections & section heads ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-flush { padding-top: 0; }

.section-head { max-width: 46rem; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { max-width: 38rem; margin: 0 auto; font-size: 1.0625rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }

/* Eyebrow above section titles: uppercase Geist with gradient rule(s) */
.section-tag {
    display: inline-flex; align-items: center; gap: .7rem;
    margin-bottom: 1rem;
    font: 500 .75rem/1 var(--font-body);
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--white);
}
.section-tag::before,
.section-head .section-tag::after {
    content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--grad);
}

/* Hero eyebrow pill with a glowing gradient dot */
.eyebrow {
    display: inline-block;
    margin: 0 0 1.5rem; padding: .5rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--fill);
    font: 500 .72rem/1.3 var(--font-body);
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--white);
}
.eyebrow::before {
    content: ''; display: inline-block; vertical-align: .1em;
    width: 8px; height: 8px; margin-right: .6rem; border-radius: 50%;
    background: var(--grad); box-shadow: 0 0 12px var(--glow-b);
}
.eyebrow span { white-space: nowrap; }


/* ---------- 9. Cards & icon chips ----------
   Cards: surface + hairline. Hover: lift 4px, the edge picks up the
   gradient (::before) and a soft gradient glow appears (::after). */
:where(.category-card, .feature-card, .step, .promise-card, .game-card, .about-panel) {
    position: relative;
    isolation: isolate;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .45s var(--ease);
}
:where(.category-card, .feature-card, .step, .promise-card, .game-card, .about-panel)::before {
    content: ''; position: absolute; inset: -1px; padding: 1px;
    border-radius: inherit; background: var(--grad-diag);
    opacity: 0; pointer-events: none;
    transition: opacity .45s var(--ease);
}
:where(.category-card, .feature-card, .step, .promise-card, .game-card, .about-panel)::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit;
    box-shadow: 0 26px 60px -26px var(--glow-b), 0 14px 40px -22px var(--glow-a);
    opacity: 0; pointer-events: none;
    transition: opacity .45s var(--ease);
}
@media (hover: hover) {
    :where(.category-card, .feature-card, .step, .promise-card, .game-card):hover { transform: translateY(-4px); }
    :where(.category-card, .feature-card, .step, .promise-card, .game-card):hover::before,
    :where(.category-card, .feature-card, .step, .promise-card, .game-card):hover::after { opacity: 1; }
}
:where(.category-card, .game-card):focus-within::before { opacity: 1; }

/* Cards sitting on a surface band get a touch of lift */
.section-alt :where(.step, .faq-item, .about-panel) {
    background: linear-gradient(var(--fill), var(--fill)), var(--surface);
}

/* Dark chips with a gradient border + gradient icon */
:where(.trust-icon, .category-icon, .hero-icon-tile, .auth-tile, .device-chip, .age-notice) { position: relative; }
:where(.trust-icon, .category-icon, .hero-icon-tile, .auth-tile, .device-chip, .age-notice)::before {
    content: ''; position: absolute; inset: 0; padding: 1px;
    border-radius: inherit; background: var(--grad-diag);
    pointer-events: none;
}

/* Gradient-filled chips with a dark icon */
.feature-icon, .step-num, .promise-icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--grad-diag); color: var(--bg);
    font-size: 1.4rem;
    box-shadow: 0 12px 30px -12px var(--glow-b);
}


/* ---------- 10. Home - hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* Faint grid, faded out towards the edges */
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -3;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, #000 15%, transparent 72%);
            mask-image: radial-gradient(ellipse 75% 70% at 65% 35%, #000 15%, transparent 72%);
    opacity: .6;
}
/* Big glow blob */
.hero::after {
    content: ''; position: absolute; z-index: -2;
    top: -18%; right: -30%;
    width: min(980px, 140vw); aspect-ratio: 1;
    background: radial-gradient(closest-side, var(--glow-b), rgba(235, 203, 73, .10) 55%, transparent);
    pointer-events: none;
}
.hero-deco {
    position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%;
    opacity: .35; pointer-events: none;
}
.hero-deco path, .hero-deco circle,
.cta-deco path, .cta-deco circle { vector-effect: non-scaling-stroke; }
.hero-deco-spark { display: none; }   /* only on the two-column layout, where it sits between columns */

.hero-inner {
    display: grid; gap: 40px; align-items: center;
    padding-block: 48px 32px;
}

.hero-title {
    font-size: clamp(2.75rem, 1.1rem + 6.2vw, 5.75rem);
    line-height: 1.02;
    margin-bottom: .35em;
}
/* Staggered word reveal on load (words wrapped in index.php) */
.hero-title .w { display: inline-block; animation: word-in .9s var(--ease) both; }
.hero-title .w:nth-child(1) { animation-delay: .05s; }
.hero-title .w:nth-child(2) { animation-delay: .12s; }
.hero-title .w:nth-child(3) { animation-delay: .19s; }
.hero-title .w:nth-child(4) { animation-delay: .26s; }
.hero-title .w:nth-child(5) { animation-delay: .33s; }
.hero-title .w:nth-child(6) { animation-delay: .40s; }
.hero-title .w:nth-child(7) { animation-delay: .47s; }

.hero .eyebrow { animation: fade-up .8s var(--ease) both; }
.hero-sub {
    max-width: 34rem;
    font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    animation: fade-up .9s .45s var(--ease) both;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin: 32px 0 28px;
}
.hero-actions .btn { flex: 1 1 auto; }
.hero .hero-actions { animation: fade-up .9s .55s var(--ease) both; }
.hero-trust {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin: 0; padding: 0; list-style: none;
    font-size: .9rem; color: var(--white);
    animation: fade-up .9s .65s var(--ease) both;
}
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .icon { width: 1.15em; height: 1.15em; }

/* Floating, gradient-bordered icon tiles (icons only - no game art) */
.hero-art {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
    width: 100%; max-width: 520px; margin-inline: auto;
    padding-block: 12px 32px;
    animation: fade-in 1.2s .3s var(--ease) both;
}
.hero-art::before {
    content: ''; position: absolute; inset: -12% -18%; z-index: -1;
    background: radial-gradient(closest-side, var(--glow-b), rgba(235, 203, 73, .12) 60%, transparent);
}
.hero-icon-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
    aspect-ratio: 1;
    border-radius: 20px;
    background: radial-gradient(120% 90% at 50% 0%, rgba(235, 203, 73, .10), transparent 60%), var(--surface);
    color: var(--white);
    font-size: clamp(1rem, .7rem + 1.3vw, 1.45rem);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
    animation: float 6s ease-in-out infinite;
}
.hero-icon-tile span {
    font: 500 clamp(.68rem, .62rem + .25vw, .8rem)/1.2 var(--font-body);
    text-align: center; padding-inline: 4px;
}
.hero-icon-tile-hot { background: var(--grad-diag); color: var(--bg); box-shadow: 0 24px 60px -20px var(--glow-b); }
.hero-icon-tile-hot::before { display: none; }
.hero-icon-tile-hot .icon * { stroke: currentColor; }
/* Middle column sits lower; each tile gets its own tilt and float phase */
.hero-icon-tile:nth-child(3n+2) { translate: 0 28px; }
.hero-icon-tile:nth-child(1) { rotate: -6deg; animation-delay: -1s; }
.hero-icon-tile:nth-child(2) { rotate: 4deg;  animation-delay: -2.6s; }
.hero-icon-tile:nth-child(3) { rotate: 5deg;  animation-delay: -4.1s; }
.hero-icon-tile:nth-child(4) { rotate: 3deg;  animation-delay: -.4s; }
.hero-icon-tile:nth-child(5) { rotate: -4deg; animation-delay: -3.3s; }
.hero-icon-tile:nth-child(6) { rotate: -6deg; animation-delay: -5.2s; }

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1.08fr .92fr; gap: 56px;
        padding-block: 88px 112px;
    }
    .hero-actions .btn { flex: 0 0 auto; }
    .hero-deco { opacity: .55; }
    .hero-deco-spark { display: inline; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .hero-art { max-width: 460px; }
}


/* ---------- 11. Home - marquee ---------- */
.marquee {
    position: relative; overflow: hidden;
    padding-block: clamp(22px, 2.6vw, 60px);
}
.marquee-band {
    margin-inline: -48px;
    padding-block: 16px;
    background: var(--grad);
    transform: rotate(-1.5deg);
    box-shadow: 0 24px 60px -24px var(--glow-b);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
    display: flex; flex: none; align-items: center; gap: 28px;
    padding-right: 28px;
    font: 600 clamp(1.5rem, 1rem + 2.4vw, 2.75rem)/1 var(--font-display);
    letter-spacing: -.5px; text-transform: uppercase; white-space: nowrap;
    color: var(--bg);
}
/* Alternate solid and outlined words */
.marquee-group > span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--bg); }
.marquee-group i { font-style: normal; font-size: .55em; }


/* ---------- 12. Home - trust strip & stats ---------- */
.trust-strip { border-bottom: 1px solid var(--line); }
.trust-strip-inner {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px;
    padding-block: 40px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-icon {
    display: grid; place-items: center; width: 48px; height: 48px;
    margin-bottom: 12px; border-radius: 14px;
    background: var(--surface); font-size: 1.35rem;
}
.trust-item strong { font: 600 1.1rem/1.2 var(--font-display); letter-spacing: -.3px; }
.trust-item > span:not(.trust-icon) { font-size: .88rem; }

@media (min-width: 768px) {
    .trust-item { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: center; }
    .trust-icon { grid-row: span 2; margin: 0; }
}
@media (min-width: 1024px) {
    .trust-strip-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 48px; }
}

.stats-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 32px 12px; text-align: center; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat b {
    display: block; margin-bottom: 8px;
    font: 700 clamp(2.75rem, 1.7rem + 4.2vw, 4.75rem)/1 var(--font-display);
    letter-spacing: -.5px;
}
.stat span {
    font: 500 .78rem/1.3 var(--font-body);
    letter-spacing: .12em; text-transform: uppercase;
}
@media (min-width: 768px) {
    .stats-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat { padding: 44px 12px; }
    .stat:nth-child(n+3) { border-top: 0; }
    .stat + .stat { border-left: 1px solid var(--line); }
}


/* ---------- 13. Home - categories, steps, features ---------- */
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 28px 14px 24px;
    text-align: center; color: var(--white); text-decoration: none;
}
.category-icon {
    display: grid; place-items: center; width: 60px; height: 60px;
    margin-bottom: 14px; border-radius: 16px;
    background: var(--bg);
    transition: transform .45s var(--ease);
}
@media (hover: hover) {
    .category-card:hover .category-icon { transform: rotate(-8deg) scale(1.06); }
}
.category-card strong { font: 600 1.1rem/1.2 var(--font-display); letter-spacing: -.3px; }
.category-count { font-size: .85rem; color: var(--text); }

/* "Unlock all" - the gradient card */
.category-card-more { background: var(--grad-diag); border-color: transparent; }
.category-card-more::before { display: none; }
.category-card-more strong,
.category-card-more .category-count { color: var(--bg); }
.category-card-more .category-count { font-weight: 500; }

.steps {
    display: grid; gap: 16px;
    margin: 0; padding: 0; list-style: none;
}
.step { padding: 28px 24px; }
.step-num { margin-bottom: 20px; font: 700 1.4rem/1 var(--font-display); }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; }
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .step { padding: 36px 30px; }
}

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.feature-card { padding: 28px 24px; }
.feature-card h3 { margin: 22px 0 8px; }
.feature-card p { margin: 0; font-size: .95rem; }
.feature-icon-center { margin: 0 auto 22px; }


/* ---------- 14. Home - about, devices, promises ---------- */
.about-grid { display: grid; gap: 40px; align-items: start; }
.about-copy > p { font-size: 1.0625rem; }

/* Check list with gradient check badges (no text glyphs for SRs to read) */
.check-list { display: grid; gap: 14px; margin: 24px 0 1.25em; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 2px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--grad-diag);
}
.check-list li::after {
    content: ''; position: absolute; left: 8px; top: 7px;
    width: 6px; height: 10px;
    border: solid var(--bg); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.about-panel {
    padding: 32px 26px;
    border-color: transparent;
    border-radius: var(--radius-lg);
}
.section-alt .about-panel {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(247, 84, 72, .12), transparent 55%),
        linear-gradient(var(--fill), var(--fill)),
        var(--surface);
}
.about-panel::before { opacity: 1; }
.about-panel::after { opacity: .8; }
.about-panel h3 { font-size: 1.5rem; margin-bottom: 16px; }
.promise-list { margin: 0; padding: 0; list-style: none; }
/* Block layout (not flex) so inline links stay in the sentence flow */
.promise-list li {
    position: relative;
    padding: 12px 0 12px 2rem; border-bottom: 1px solid var(--line);
    color: var(--white); overflow-wrap: anywhere;
}
.promise-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.promise-list .icon { position: absolute; left: 0; top: calc(12px + .2em); width: 1.25em; height: 1.25em; }

@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
    .about-panel { position: sticky; top: calc(var(--header-h) + 24px); padding: 40px 36px; }
}

.devices-band { padding-block: 44px; border-bottom: 1px solid var(--line); }
.devices-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.device-chip {
    display: inline-flex; align-items: center; gap: .65rem;
    min-height: 52px; padding: 10px 20px 10px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface); color: var(--white);
}
.device-chip .icon { width: 1.5em; height: 1.5em; }
.device-chip strong { font: 500 .95rem/1 var(--font-body); }
.devices-inner p {
    flex-basis: 100%; max-width: 30rem;
    margin: 12px auto 0; text-align: center;
}
@media (min-width: 1024px) {
    .devices-inner { justify-content: flex-start; gap: 16px; }
    .devices-inner p {
        flex-basis: auto; margin: 0 0 0 auto;
        font: 500 1.15rem/1.4 var(--font-display); letter-spacing: -.2px;
        color: var(--white); text-align: right;
    }
}

/* Promise cards (#testimonials) */
.promise-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.promise-card { padding: 32px 26px; overflow: hidden; }
.promise-icon { width: 56px; height: 56px; margin-bottom: 24px; }
.promise-card h3 { margin-bottom: .4em; }
.promise-card p { margin: 0; }
.promise-num {
    position: absolute; top: 18px; right: 22px;
    font: 700 3.5rem/1 var(--font-display); letter-spacing: -.5px;
    color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}


/* ---------- 15. Home - FAQ, responsible play, final CTA ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--surface);
    background-repeat: no-repeat;
    transition: border-color .3s;
}
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 64px; padding: 14px 18px 14px 24px;
    border-radius: inherit;
    font: 600 1.0625rem/1.4 var(--font-body);
    color: var(--white);
    list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Plus icon drawn with two bars; rotates into a close icon when open */
.faq-item summary::after {
    content: ''; flex: none; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(var(--white), var(--white)) center / 12px 2px no-repeat,
        linear-gradient(var(--white), var(--white)) center / 2px 12px no-repeat;
    transition: transform .45s var(--ease);
}
/* Keyboard focus: ring the whole rounded item rather than the summary box */
@supports selector(:has(*)) {
    .faq-item summary:focus-visible { outline: none; }
    .faq-item:has(summary:focus-visible) { outline: 2px solid var(--grad-a); outline-offset: 3px; }
}
.faq-item[open] { border-color: var(--line-strong); }
.section-alt .faq-item[open] {
    background-image: var(--grad-vert), linear-gradient(var(--fill), var(--fill));
    background-size: 3px 100%, auto;
}
.faq-item[open] summary::after {
    transform: rotate(135deg);
    border-color: transparent;
    background:
        linear-gradient(var(--bg), var(--bg)) center / 12px 2px no-repeat,
        linear-gradient(var(--bg), var(--bg)) center / 2px 12px no-repeat,
        var(--grad-diag);
}
.faq-item p { margin: 0; padding: 0 24px 22px; }
.faq-item[open] p { animation: faq-in .45s var(--ease) both; }
/* Smooth height on browsers that expose ::details-content */
@supports selector(::details-content) {
    .faq-item::details-content {
        block-size: 0; overflow: hidden;
        transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
    }
    .faq-item[open]::details-content { block-size: auto; }
}

.responsible-play { text-align: center; }
.responsible-play > p:not(.age-notice) { max-width: 40rem; margin-inline: auto; font-size: 1.0625rem; }
.age-notice {
    display: inline-block; margin: 12px 0 0; padding: 12px 22px;
    border-radius: var(--radius-pill);
    background: var(--surface); font-size: .92rem;
}

.cta-band { padding-block: var(--section-y); }
.cta-inner {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 64px 22px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}
.cta-inner::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 75%);
    opacity: .6;
}
.cta-inner::after {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(40% 60% at 12% 0%, rgba(235, 203, 73, .14), transparent 70%),
        radial-gradient(50% 80% at 90% 100%, var(--glow-b), transparent 70%);
}
.cta-deco { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.cta-inner h2 { font-size: clamp(2.5rem, 1.4rem + 4.8vw, 5rem); }
.cta-inner > p { max-width: 34rem; margin-inline: auto; font-size: 1.125rem; }
.cta-inner .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-inner .cta-fine { margin: 24px auto 0; font-size: .875rem; color: var(--text-faint); }
@media (min-width: 768px) {
    .cta-inner { padding: 96px 48px; }
    .cta-inner .hero-actions .btn { flex: 0 0 auto; }
}


/* ---------- 16. Page heads ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding-block: 56px 32px; }
.page-head::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 10%, transparent 70%);
            mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 10%, transparent 70%);
    opacity: .6;
}
/* Glow confined to the head's own box so it fades out before the edge */
.page-head::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(45% 85% at 90% 0%, rgba(247, 84, 72, .30), rgba(235, 203, 73, .06) 55%, transparent 80%);
    pointer-events: none;
}
.page-head h1 { margin-bottom: .25em; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); }
.page-head p { max-width: 42rem; margin: 0; font-size: 1.0625rem; }
.page-head .section-tag,
.page-head h1,
.page-head p { animation: fade-up .8s var(--ease) both; }
.page-head h1 { animation-delay: .08s; }
.page-head p { animation-delay: .16s; }
.page-head-compact { padding-bottom: 24px; }
@media (min-width: 1024px) {
    .page-head { padding-block: 88px 48px; }
    .page-head-compact { padding-bottom: 32px; }
}


/* ---------- 17. Games library ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-pill {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--text);
    font: 500 .9rem/1 var(--font-body);
    cursor: pointer;
    transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.filter-pill:hover { border-color: var(--line-strong); color: var(--white); }
.filter-pill:active { transform: scale(.97); }
.filter-pill.active { background: var(--grad); border-color: transparent; color: var(--bg); font-weight: 600; }

.card-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr));
}
.game-card { display: flex; flex-direction: column; }
.game-thumb {
    position: relative; overflow: hidden;
    margin: 8px 8px 0; aspect-ratio: 3 / 2;
    border-radius: 12px; background: var(--bg);
}
.game-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease);
}
@media (hover: hover) { .game-card:hover .game-thumb img { transform: scale(1.07); } }
.game-category {
    position: absolute; top: 10px; left: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: var(--radius-pill);
    background: rgba(26, 26, 26, .85); border: 1px solid var(--line);
    color: var(--white);
    font: 600 .68rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.game-category::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.game-body h2, .game-body h3 { margin-bottom: 6px; font-size: 1.25rem; }
.game-body p { flex: 1; margin-bottom: 14px; font-size: .9rem; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
    padding: 4px 10px; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--fill);
    color: var(--text); font: 500 .72rem/1.3 var(--font-body);
}


/* ---------- 18. Player ---------- */
.player-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 16px 24px;
}
.player-head h1 { margin-bottom: .2em; }
.player-head p { max-width: 46rem; margin: 0; }
/* 2px gradient frame + glow around the iframe */
.player-frame-wrap {
    position: relative;
    width: 100%; aspect-ratio: 16 / 9; min-height: 300px;
    border-radius: 20px;
    background: var(--grad-diag);
    box-shadow: 0 40px 100px -40px var(--glow-b), 0 20px 60px -30px var(--glow-a);
}
.player-frame {
    position: absolute; top: 2px; left: 2px;
    width: calc(100% - 4px); height: calc(100% - 4px);
    border: 0; border-radius: 18px;
    background: var(--bg);
}
.player-note { margin: 24px 0 0; text-align: center; font-size: .9rem; }
@media (min-width: 768px) { .player-frame-wrap { min-height: 420px; } }

/* "Game not found" state */
.not-found { position: relative; isolation: isolate; padding-block: 24px; text-align: center; }
.not-found::before {
    content: ''; position: absolute; z-index: -1;
    left: 50%; top: 0; width: min(560px, 100vw); aspect-ratio: 1;
    transform: translate(-50%, -30%);
    background: radial-gradient(closest-side, var(--glow-b), transparent);
}
.not-found-code { display: block; margin-bottom: 8px; font: 700 clamp(6rem, 3.5rem + 11vw, 11rem)/1 var(--font-display); letter-spacing: -.5px; }
.not-found h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.not-found p { margin-bottom: 28px; }


/* ---------- 19. Forms & alerts ---------- */
.auth-form label {
    display: block; margin: 20px 0 8px;
    font: 500 .9rem/1.3 var(--font-body); color: var(--white);
}
.auth-form input,
.auth-form textarea {
    display: block; width: 100%; min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 12px;
    background-color: var(--surface);
    background-image: linear-gradient(var(--fill), var(--fill));
    color: var(--white);
    font: 400 1rem/1.4 var(--font-body);
    -webkit-appearance: none; appearance: none;
    transition: border-color .2s, box-shadow .2s;
}
.auth-form textarea { min-height: 160px; resize: vertical; }
.auth-form input:hover,
.auth-form textarea:hover { border-color: var(--line-strong); }
/* Gradient focus ring: gradient painted in the border box behind a solid padding box */
.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: transparent;
    background:
        linear-gradient(var(--fill), var(--fill)) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
    box-shadow: 0 0 0 4px rgba(247, 84, 72, .16);
}
/* Error state (added by main.js / server-side validation) */
.auth-form .input-error,
.auth-form .input-error:focus {
    border-color: var(--error);
    background: linear-gradient(var(--fill), var(--fill)), var(--surface);
    box-shadow: 0 0 0 4px rgba(214, 69, 69, .2);
}
.auth-form input:-webkit-autofill {
    -webkit-text-fill-color: var(--white);
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
    caret-color: var(--white);
}
.auth-form .btn { margin-top: 28px; }

.field-hint { margin: 8px 0 0; font-size: .8rem; color: var(--text-faint); }
.auth-legal { margin: 16px 0 0; font-size: .82rem; color: var(--text-faint); text-align: center; }
.auth-switch { margin: 24px 0 0; font-size: .92rem; text-align: center; }
.auth-switch a { font-weight: 600; }
.auth-sub { margin-bottom: 8px; }

.auth-divider {
    display: flex; align-items: center; gap: 1rem; margin: 20px 0 4px;
    font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint);
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.alert {
    margin-bottom: 20px; padding: 14px 16px 14px 18px;
    border: 1px solid; border-radius: 12px;
    color: var(--white); font-size: .92rem;
}
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-error { border-color: rgba(214, 69, 69, .55); background: rgba(214, 69, 69, .12); box-shadow: inset 3px 0 0 var(--error); }
.alert-success { border-color: rgba(30, 158, 106, .55); background: rgba(30, 158, 106, .12); box-shadow: inset 3px 0 0 var(--success); }
.alert-info { border-color: rgba(235, 203, 73, .45); background: rgba(235, 203, 73, .08); box-shadow: inset 3px 0 0 var(--grad-a); }

/* One-time flash messages, printed by header.php right under the header */
.flash-area { padding-top: 24px; animation: fade-up .6s var(--ease) both; }
.flash-area .alert { margin-bottom: 12px; }
.flash-area .alert:last-child { margin-bottom: 0; }

/* Inline field errors added by main.js */
.field-error { margin: 8px 0 0; font-size: .82rem; line-height: 1.4; color: var(--error-text); }
.check-field + .field-error { padding-left: 34px; }

/* Honeypot spam trap: moved off-screen (not display:none - some bots skip
   hidden fields) and aria-hidden in the markup, so people never meet it. */
.hp-field {
    position: absolute;
    left: -10000px; top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Label row with a small link on the right ("Password" ... "Forgot password?") */
.auth-row {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: 4px 16px;
    margin: 20px 0 8px;
}
.auth-form .auth-row label,
.auth-card .auth-form .auth-row label:first-of-type { margin: 0; }
.auth-forgot {
    display: inline-flex; align-items: center; min-height: 24px;
    color: var(--text);
    font: 500 .82rem/1.3 var(--font-body);
}
.auth-forgot:hover { color: var(--white); }

/* Checkbox rows ("I agree to the Terms..."): box on the left, text wraps */
.auth-form .check-field {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 24px 0 0;
    font: 400 .9rem/1.55 var(--font-body);
    color: var(--text);
    cursor: pointer;
}
.auth-form .check-field + .check-field { margin-top: 14px; }
.check-field a { font-weight: 500; }
/* Custom checkbox. Undoes the full-width text-input styling above; the
   gradient fill + dark tick matches the primary button. */
.auth-form input[type="checkbox"] {
    flex: none;
    width: 22px; height: 22px; min-height: 0;
    margin: 0; padding: 0;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 6px;
    background: var(--bg);
    cursor: pointer;
}
.auth-form input[type="checkbox"]:hover { border-color: rgba(255, 255, 255, .7); }
.auth-form input[type="checkbox"]:focus { outline: none; background: var(--bg); box-shadow: none; }
.auth-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 3px; }
.auth-form input[type="checkbox"]:checked {
    border-color: transparent;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat,
        var(--grad-diag);
}
.auth-form input[type="checkbox"].input-error { border-color: var(--error); box-shadow: 0 0 0 4px rgba(214, 69, 69, .2); }


/* ---------- 20. Auth split layout (login / signup) ---------- */
.auth-split { display: grid; min-height: calc(100svh - var(--header-h) - 34px); }

/* Showcase side: desktop only, decorative (aria-hidden in markup) */
.auth-showcase { display: none; }
.auth-showcase-inner { width: 100%; max-width: 560px; margin-inline: auto; padding: 64px 48px; }
.auth-showcase h2 { font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3.4rem); }
.auth-showcase p { max-width: 30rem; font-size: 1.0625rem; }
.auth-tiles {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
    max-width: 380px; margin: 36px 0 52px;
}
.auth-tile {
    display: grid; place-items: center; aspect-ratio: 1;
    border-radius: 18px;
    background: radial-gradient(120% 90% at 50% 0%, rgba(235, 203, 73, .10), transparent 60%), var(--bg);
    color: var(--white);
    animation: float 6s ease-in-out infinite;
}
.auth-tile:nth-child(3n+2) { translate: 0 18px; }
.auth-tile:nth-child(1) { rotate: -5deg; animation-delay: -1s; }
.auth-tile:nth-child(2) { rotate: 4deg;  animation-delay: -2.6s; background: var(--grad-diag); color: var(--bg); box-shadow: 0 20px 50px -20px var(--glow-b); }
.auth-tile:nth-child(2)::before { display: none; }
.auth-tile:nth-child(2) .icon * { stroke: currentColor; }
.auth-tile:nth-child(3) { rotate: 5deg;  animation-delay: -4.1s; }
.auth-tile:nth-child(4) { rotate: 3deg;  animation-delay: -.4s; }
.auth-tile:nth-child(5) { rotate: -4deg; animation-delay: -3.3s; }
.auth-tile:nth-child(6) { rotate: -6deg; animation-delay: -5.2s; }
.auth-showcase-trust {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin: 0; padding: 0; list-style: none;
    font-size: .9rem; color: var(--white);
}
.auth-showcase-trust li { display: inline-flex; align-items: center; gap: .45rem; }

.auth-panel {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: center;
    padding: 40px var(--gutter) 64px;
}
.auth-panel::before {
    content: ''; position: absolute; z-index: -1;
    left: 50%; top: -10%; width: min(720px, 160vw); aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(247, 84, 72, .22), rgba(235, 203, 73, .06) 55%, transparent);
    pointer-events: none;
}
/* Form card (also the contact form wrapper) with a gradient hairline on top */
.auth-card, .contact-form-wrap {
    position: relative;
    width: 100%;
    padding: 32px 22px;
    border: 1px solid var(--line); border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8);
}
.auth-card { max-width: 460px; }
.auth-card::before, .contact-form-wrap::before {
    content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px;
    background: var(--grad);
}
.auth-card h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.auth-card .auth-form label:first-of-type { margin-top: 24px; }

@media (min-width: 640px) {
    .auth-card, .contact-form-wrap { padding: 44px 40px; }
}
@media (min-width: 1024px) {
    .auth-split { grid-template-columns: 1fr 1fr; }
    .auth-showcase {
        position: relative; overflow: hidden; isolation: isolate;
        display: flex; align-items: center;
        background: var(--surface);
        border-right: 1px solid var(--line);
    }
    .auth-showcase::before {
        content: ''; position: absolute; inset: 0; z-index: -2;
        background-image:
            linear-gradient(var(--line) 1px, transparent 1px),
            linear-gradient(90deg, var(--line) 1px, transparent 1px);
        background-size: 56px 56px;
        -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 60%, #000 10%, transparent 72%);
                mask-image: radial-gradient(ellipse 70% 60% at 30% 60%, #000 10%, transparent 72%);
        opacity: .6;
    }
    .auth-showcase::after {
        content: ''; position: absolute; z-index: -1;
        left: -10%; bottom: -30%; width: 760px; aspect-ratio: 1;
        background: radial-gradient(closest-side, var(--glow-b), rgba(235, 203, 73, .1) 55%, transparent);
    }
    .auth-panel { padding-block: 56px; }
    .auth-panel::before { display: none; }
}


/* ---------- 21. Contact & legal pages ---------- */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-info h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); }
.contact-info h3 { margin: 32px 0 10px; font-size: 1.15rem; }
.contact-email {
    display: inline-flex; align-items: center;
    min-height: 44px;
    font: 600 clamp(1.3rem, 1.1rem + 1vw, 1.75rem)/1.25 var(--font-display);
    letter-spacing: -.5px; overflow-wrap: anywhere;
    text-decoration-color: rgba(247, 84, 72, .6);
}
.contact-form-wrap .auth-form label:first-of-type { margin-top: 0; }
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
}

/* Long-form legal copy: ~72ch measure, clear hierarchy */
.legal-content {
    max-width: calc(72ch + 2 * var(--gutter));
    font-size: 1.0625rem; line-height: 1.75;
}
.legal-content > p:first-child { font-size: 1.15rem; color: var(--white); }
.legal-content h2 {
    margin: 48px 0 16px; padding-top: 32px;
    border-top: 1px solid var(--line);
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
}
.legal-content h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.legal-content ul { display: grid; gap: 10px; margin: 0 0 1.25em; padding: 0; list-style: none; }
.legal-content li { position: relative; padding-left: 26px; }
.legal-content li::before {
    content: ''; position: absolute; left: 6px; top: .72em;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad-diag);
}
.legal-content code {
    padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px;
    background: var(--fill); color: var(--white);
    font: 500 .85em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

/* Tables (cookie list, data retention...). Wrapped in .table-wrap they keep
   readable columns and scroll sideways on narrow screens. */
.legal-content .table-wrap {
    margin: 0 0 1.5em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.legal-content table {
    width: 100%; margin: 0 0 1.5em;
    border-collapse: collapse;
    font-size: .92rem; line-height: 1.55;
}
.legal-content .table-wrap table { min-width: 36rem; margin: 0; }
.legal-content caption {
    caption-side: bottom; padding: 10px 16px;
    font-size: .82rem; color: var(--text-faint); text-align: left;
}
.legal-content th,
.legal-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left; vertical-align: top;
}
.legal-content :is(th, td) + :is(th, td) { border-left: 1px solid var(--line); }
.legal-content thead th {
    background: var(--fill); color: var(--white);
    font: 600 .75rem/1.35 var(--font-body);
    letter-spacing: .1em; text-transform: uppercase;
    white-space: nowrap;
}
.legal-content tbody th { color: var(--white); font-weight: 600; }
.legal-content tbody tr:last-child > * { border-bottom: 0; }

/* Key-points box at the top of a legal page */
.legal-summary {
    position: relative;
    margin: 0 0 40px; padding: 24px 22px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(247, 84, 72, .10), transparent 55%),
        var(--surface);
}
.legal-summary::before {
    content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px;
    background: var(--grad);
}
.legal-summary h2,
.legal-summary h3,
.legal-content .legal-summary h2,
.legal-content .legal-summary h3 { margin: 0 0 12px; padding: 0; border: 0; font-size: 1.25rem; }
.legal-summary > :last-child { margin-bottom: 0; }
@media (min-width: 640px) { .legal-summary { padding: 28px 32px; } }

/* Who runs the site: company name, number and registered office */
.company-details {
    position: relative;
    display: block;
    margin: 0 0 1.5em; padding: 18px 22px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--fill);
    color: var(--text);
    font-style: normal;   /* <address> is italic by default */
    line-height: 1.7;
    list-style: none;
}
.company-details::before {
    content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px;
    width: 3px; border-radius: 3px;
    background: var(--grad-vert);
}
.company-details strong, .company-details b { color: var(--white); }
.company-details > :last-child { margin-bottom: 0; }
.legal-content .company-details li { padding-left: 0; }
.legal-content .company-details li::before { display: none; }


/* ---------- 21b. Account pages (account.php, admin.php) ----------
   Two columns of surface cards from 900px; one column on phones. */
.account-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) {
    .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

.account-card {
    position: relative;
    min-width: 0;
    padding: 28px 22px;
    border: 1px solid var(--line); border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);
}
.account-card::before {
    content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px;
    background: var(--grad);
}
.account-card h2 {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: .6em;
    font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem);
}
.account-card h2 .icon { width: 1.1em; height: 1.1em; }
.account-card h2 .icon * { stroke: url(#oz-grad) var(--grad-a); }
.account-card > p { font-size: .95rem; }
.account-card > :last-child { margin-bottom: 0; }
.account-card .auth-form .btn { margin-top: 24px; }
@media (min-width: 640px) { .account-card { padding: 36px 32px; } }

/* Details list: small label above each value, hairline between rows */
.account-meta { margin: 0 0 20px; }
.account-meta dt {
    margin: 0; padding-top: 14px;
    font: 500 .72rem/1.3 var(--font-body);
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-faint);
}
.account-meta dt:first-child,
.account-meta > div:first-child > dt { padding-top: 0; }
.account-meta dd {
    margin: 0; padding: 4px 0 14px;
    border-bottom: 1px solid var(--line);
    color: var(--white);
    overflow-wrap: anywhere;
}
.account-meta > dd:last-child,
.account-meta > div:last-child > dd { padding-bottom: 0; border-bottom: 0; }

/* Destructive actions (delete account): red-tinted edge */
.danger-zone {
    border-color: rgba(214, 69, 69, .45);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(214, 69, 69, .12), transparent 55%),
        var(--surface);
}
.danger-zone::before { background: var(--error); }
.danger-zone h2 .icon * { stroke: var(--error-text); }


/* ---------- 22. Footer ---------- */
.site-footer {
    position: relative; overflow: hidden; isolation: isolate;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.site-footer::before {
    content: ''; position: absolute; z-index: -1;
    left: 50%; top: 0; width: min(900px, 160vw); height: 240px;
    transform: translate(-50%, -60%);
    background: radial-gradient(closest-side, rgba(247, 84, 72, .14), transparent);
    pointer-events: none;
}
.footer-grid { display: grid; gap: 40px 32px; padding-block: 64px 48px; }
.brand-footer { margin-bottom: 4px; }
.footer-brand p { max-width: 22rem; margin-top: 16px; font-size: .95rem; }
.footer-col h2 {
    margin: 0 0 12px;
    font: 600 .78rem/1.2 var(--font-body);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--white);
}
.footer-col a:not(.brand) {
    display: flex; align-items: center; min-height: 44px;
    color: var(--text); font-size: .95rem; text-decoration: none;
    transition: color .2s;
}
.footer-col a:not(.brand):hover { color: var(--white); }
.footer-col p { font-size: .92rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.trust-badges li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--fill);
    color: var(--white); font: 500 .78rem/1 var(--font-body);
}
.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
    padding-block: 24px 32px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-company { display: inline-block; margin-top: 4px; font-size: .8rem; color: var(--text-faint); }
.footer-tagline { font-weight: 600; }

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; padding-block: 80px 56px; }
}


/* ---------- 23. Cookie banner ----------
   Full-width sheet on mobile, floating card bottom-right from 768px. */
.cookie-banner {
    position: fixed; z-index: 150; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 16px;
    padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--surface);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
    animation: cookie-in .5s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner::before {
    content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px;
    background: var(--grad);
}
.cookie-text p { margin: 0; font-size: .88rem; }
.cookie-text p:first-child {
    display: flex; align-items: center; gap: .55rem;
    margin-bottom: 6px; font-size: 1rem; color: var(--white);
}
.cookie-text p:first-child::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--grad); box-shadow: 0 0 10px var(--glow-b);
}
/* Both choices share one style and size: refusing is as easy as accepting */
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1 1 0; }
.cookie-actions .btn-outline { border-color: var(--line-strong); background: var(--fill); }
@media (min-width: 768px) {
    .cookie-banner {
        left: auto; right: 24px; bottom: 24px;
        width: 420px; padding: 24px;
        border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    }
}


/* ---------- 24. Motion - keyframes & scroll reveal ---------- */
@keyframes word-in {
    from { opacity: 0; transform: translateY(.45em) rotate(3deg); }
    to   { opacity: 1; transform: none; }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes menu-in {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
@keyframes cookie-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* Scroll reveal. `js` is set on <html> in header.php before first paint, so
   without JavaScript nothing is ever hidden. main.js adds .is-revealed as
   elements enter the viewport, then removes [data-reveal] once settled. */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal].is-revealed {
    opacity: 1; transform: none;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}


/* ---------- 25. Reduced motion & forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .btn-label > span { transform: none !important; }
}

@media (forced-colors: active) {
    .btn, .filter-pill, .faq-item, .cookie-banner,
    :where(.category-card, .feature-card, .step, .promise-card, .game-card, .about-panel) {
        border: 1px solid CanvasText;
    }
    .btn:focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
    .grad-text, .accent, .brand-name em, .stat b, .contact-email, .footer-tagline, .not-found-code {
        background: none; -webkit-text-fill-color: currentColor; color: CanvasText;
    }
    .alert, .account-card, .legal-summary, .company-details, .legal-content .table-wrap { border: 1px solid CanvasText; }
    /* The custom checkbox relies on backgrounds; use the system one here */
    .auth-form input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; }
}

/* ---------- 21c. Small action rows (account page, 404 page) ---------- */
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.not-found-actions { justify-content: center; margin-bottom: 28px; }
