/*
 * GSAP Animated Auth Page Styles
 * Project: GenericBaseApp
 * Stack: Tailwind CSS + DaisyUI
 */

/* =========================================
   1. Scroll Progress Bar
   ========================================= */
.gsap-progress-bar {
    position: fixed;
    top: 56px; /* Below fixed header */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: oklch(var(--p)); /* Primary color */
    transform: scaleX(0);
    transform-origin: left;
    z-index: 100;
    will-change: transform;
}

/* =========================================
   2. Section Base Styles
   ========================================= */
.gsap-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* =========================================
   3. Hero Section
   ========================================= */
.gsap-hero {
    min-height: calc(100vh - 3.5rem);
    /* In-flow banner automatically positions above hero; gentle breathing room */
    padding-top: 2rem;
    padding-bottom: 2rem;
    
    /* Overlay gradient: Dark at the top, getting lighter towards the bottom */
    background-image: linear-gradient(
        170deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
}

.gsap-hero .hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.gsap-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.gsap-hero .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gsap-hero .btn-outline:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.gsap-hero .gsap-scroll-indicator,
.gsap-hero .gsap-scroll-indicator * {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* =========================================
   3b. Welcome Hero + Quick Login (Login page)
   Clean "gamified social" launcher look:
   - dark theme-tinted canvas, drifting aurora, grid floor, brand + game chips
   - mascot inside a level ring, feature menu tiles, login card beside it
   - theme-driven via DaisyUI vars (--n, --p, --a, --b1, --bc)
   - only transform/opacity animate; paused off-screen (.hero-anim-paused)
   ========================================= */
.gsap-hero.hero-animated {
    height: auto;
    min-height: calc(100svh - 3.5rem);
    padding: 2.5rem 0 3rem;
    color: #ffffff;
    background-color: #12141b;
    background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%);
}
@supports (color: color-mix(in oklch, red, blue)) {
    .gsap-hero.hero-animated {
        background-color: color-mix(in oklch, color-mix(in oklch, oklch(var(--n)) 78%, oklch(var(--p)) 22%) 82%, #05060a);
    }
}
/* Keep the canvas dark in every theme (light themes have light neutrals) so the aurora and white text read */
@supports (color: oklch(from red l c h)) {
    .gsap-hero.hero-animated {
        background-color: oklch(from color-mix(in oklch, oklch(var(--n)) 78%, oklch(var(--p)) 22%) min(l, 0.24) min(c, 0.07) h);
    }
}
.gsap-hero.hero-animated .hero-title {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.02em;
}
.gsap-hero.hero-animated .hero-subtitle {
    color: rgba(255, 255, 255, 0.72) !important;
    text-shadow: none;
}

/* ---- Theme hooks for the mascot ----------------------------------------
   Any DaisyUI theme can override these, e.g.
   [data-theme="synthwave"] { --mascot-sleeve: #ff7edb; }
   Defaults tint the brand colours toward the active theme.            */
@supports (color: color-mix(in oklab, red, blue)) {
    :where(:root) {
        --mascot-sleeve: color-mix(in oklch, #c9a06c 82%, oklch(var(--a)) 18%);
        --mascot-sleeve-shade: color-mix(in oklch, #9a7346 82%, oklch(var(--a)) 18%);
        --mascot-blush: color-mix(in oklch, #f58e8b 75%, oklch(var(--s)) 25%);
        --mascot-steam: color-mix(in oklch, #ece4d8 80%, oklch(var(--a)) 20%);
        --mascot-leaf: color-mix(in oklch, #58c424 85%, oklch(var(--a)) 15%);
        --mascot-leaf-light: color-mix(in oklch, #84e549 85%, oklch(var(--a)) 15%);
        --mascot-stem: color-mix(in oklch, #3c9416 85%, oklch(var(--a)) 15%);
    }
}
/* Trim + shoes take the theme's accent colour outright */
:where(:root) {
    --mascot-trim: oklch(var(--a));
    --mascot-shoe: oklch(var(--a));
}

/* ---- Backdrop: aurora, light beams, grid floor, fireflies ------------
   Layers back to front: theme aurora (primary / secondary / accent blobs),
   soft light beams swaying over the mascot, a slow perspective grid floor,
   an edge vignette and wandering fireflies. hero-backdrop.js sets --px/--py
   (pointer, -1..1) for depth and toggles .bg-happy / .bg-calm / .bg-oops.
   Landing: the inline script in Login.cshtml adds .hero-intro-full (first
   visit this session) or .hero-intro-short. Intro keyframes use "backwards"
   fill so the resting values below stay in charge once they finish. */
.hero-anim-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero-aurora-wrap {
    position: absolute;
    inset: 0;
    translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px);
    transition: translate 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-intro-full .hero-aurora-wrap { animation: hero-bloom 2.4s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero-intro-short .hero-aurora-wrap { animation: hero-fade-in 0.8s ease-out backwards; }
@keyframes hero-bloom {
    from { opacity: 0; transform: scale(1.18); }
}
@keyframes hero-fade-in {
    from { opacity: 0; }
}
.hero-aurora {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    transition: opacity 1s ease;
}
.hero-aurora--p {
    width: 72vmax;
    height: 72vmax;
    left: -24vmax;
    top: -32vmax;
    background: radial-gradient(circle closest-side, oklch(var(--p) / 0.5), oklch(var(--p) / 0.16) 55%, oklch(var(--p) / 0));
    opacity: 0.8;
    animation: hero-aurora-p 34s ease-in-out infinite alternate;
}
.hero-aurora--s {
    width: 62vmax;
    height: 62vmax;
    right: -22vmax;
    top: -20vmax;
    background: radial-gradient(circle closest-side, oklch(var(--s) / 0.42), oklch(var(--s) / 0.12) 55%, oklch(var(--s) / 0));
    opacity: 0.75;
    animation: hero-aurora-s 42s ease-in-out infinite alternate;
}
.hero-aurora--a {
    width: 80vmax;
    height: 46vmax;
    left: 10%;
    bottom: -26vmax;
    background: radial-gradient(closest-side, oklch(var(--a) / 0.36), oklch(var(--a) / 0.1) 55%, oklch(var(--a) / 0));
    opacity: 0.7;
    animation: hero-aurora-a 50s ease-in-out infinite alternate;
}
@keyframes hero-aurora-p {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(9vw, 5vh, 0) scale(1.12); }
    100% { transform: translate3d(3vw, 12vh, 0) scale(0.94); }
}
@keyframes hero-aurora-s {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-8vw, 10vh, 0) scale(0.9); }
    100% { transform: translate3d(-3vw, 4vh, 0) scale(1.1); }
}
@keyframes hero-aurora-a {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-12vw, -4vh, 0) scale(1.08); }
    100% { transform: translate3d(8vw, -8vh, 0) scale(0.96); }
}

/* Soft light beams fanning down onto the mascot. --mc = the mascot's x: centred on
   phones, about 29% into the 74rem content frame beside the login card. */
.hero-beams {
    position: absolute;
    inset: 0;
    --mc: 50%;
}
@media (min-width: 1024px) {
    .hero-beams { --mc: calc(50% - min(50%, 37rem) + min(29%, 21.5rem)); }
}
.hero-intro-full .hero-beams { animation: hero-fade-in 2.6s ease-out 0.5s backwards; }
.hero-beam {
    position: absolute;
    top: -12%;
    left: calc(var(--mc) - 75px);
    width: 150px;
    height: 95%;
    transform-origin: 50% 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0) 85%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 35%, #000 65%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 35%, #000 65%, transparent);
    animation: hero-beam 15s ease-in-out infinite alternate;
    will-change: transform, opacity;
}
.hero-beam:nth-child(1) { left: calc(var(--mc) - 190px); --r: -14deg; animation-duration: 13s; }
.hero-beam:nth-child(2) { width: 110px; left: calc(var(--mc) - 55px); --r: 0deg; animation-duration: 17s; animation-delay: -6s; }
.hero-beam:nth-child(3) { width: 130px; left: calc(var(--mc) + 60px); --r: 13deg; animation-duration: 15s; animation-delay: -10s; }
@keyframes hero-beam {
    from { transform: rotate(calc(var(--r, 0deg) - 4deg)); opacity: 0.45; }
    to   { transform: rotate(calc(var(--r, 0deg) + 4deg)); opacity: 1; }
}

/* Grid floor: a plane laid flat (rotateX 90deg about its bottom edge) under a camera
   at the top of .hero-floor, so its lines meet at the horizon; it slides one cell
   toward the viewer per loop, slowly. */
.hero-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(200px, 36%, 360px);
    overflow: hidden;
    perspective: 260px;
    perspective-origin: 50% 0%;
    -webkit-mask-image: radial-gradient(ellipse 70% 115% at 50% 100%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 115% at 50% 100%, #000 35%, transparent 100%);
    opacity: 0.55;
    transition: opacity 1s ease;
}
.hero-intro-full .hero-floor { animation: hero-floor-in 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards; }
@keyframes hero-floor-in {
    from { opacity: 0; transform: translateY(70px); }
}
.hero-floor-grid {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: 0;
    height: 1400px;
    transform-origin: 50% 100%;
    transform: rotateX(90deg);
    background-image:
        linear-gradient(to right, oklch(var(--p) / 0.4) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, oklch(var(--p) / 0.4) 1.5px, transparent 1.5px);
    background-size: 72px 72px;
    background-position: center bottom;
    animation: hero-floor-run 9s linear infinite;
    will-change: transform;
}
@keyframes hero-floor-run {
    from { transform: rotateX(90deg) translate3d(0, 0, 0); }
    to   { transform: rotateX(90deg) translate3d(0, 72px, 0); }
}
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 95% at 50% 38%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}
/* Red flash on a failed sign-in (hero-backdrop.js adds .is-on) */
.hero-alert {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, oklch(var(--er) / 0.28), transparent 70%);
    opacity: 0;
}
.hero-alert.is-on { animation: hero-alert 1.2s ease-out; }
@keyframes hero-alert {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    100% { opacity: 0; }
}
/* Fireflies: two out-of-step sways (x on the span, y on the dot) make a lazy loop; the dot twinkles */
.hero-fly {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: hero-fly-x var(--t1, 13s) ease-in-out var(--d, 0s) infinite alternate;
    will-change: transform;
}
.hero-intro-full .hero-fly {
    animation: hero-fly-x var(--t1, 13s) ease-in-out var(--d, 0s) infinite alternate, hero-fade-in 2s ease-out 1.2s backwards;
}
.hero-fly i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fef3c7;
    box-shadow: 0 0 6px 2px rgba(253, 230, 138, 0.75), 0 0 18px 5px rgba(253, 230, 138, 0.22);
    animation: hero-fly-y var(--t2, 9s) ease-in-out var(--d, 0s) infinite alternate, hero-fly-glow 4.5s ease-in-out var(--d, 0s) infinite;
    will-change: transform, opacity;
}
.hero-fly--p i {
    background: oklch(var(--p));
    box-shadow: 0 0 6px 2px oklch(var(--p) / 0.7), 0 0 18px 5px oklch(var(--p) / 0.22);
}
@keyframes hero-fly-x {
    from { transform: translateX(calc(var(--ax, 30px) * -1)); }
    to   { transform: translateX(var(--ax, 30px)); }
}
@keyframes hero-fly-y {
    from { transform: translateY(calc(var(--ay, 24px) * -1)); }
    to   { transform: translateY(var(--ay, 24px)); }
}
@keyframes hero-fly-glow {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 1; }
}
/* Happy (signed in): the room lights up for a moment */
.hero-animated.bg-happy .hero-aurora { opacity: 1; }
.hero-animated.bg-happy .hero-floor { opacity: 0.9; }

/* ---- Orbit lobby (_HeroOrbit.cshtml) ----------------------------------
   Collectibles circle the mascot on two tilted rings; hero-backdrop.js sets
   each orb's transform, opacity and .is-front. Orbs behind the mascot sit
   under it (z 1), orbs in front over it (z 4), and so do the dotted tracks. */
.hero-orbit,
.hero-orbit-fx {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}
.hero-orbit-fx { z-index: 5; }
.hero-orbit-track {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: visible;
    z-index: 0;
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.3;
    stroke-dasharray: 1.5 7;
    stroke-linecap: round;
}
.hero-orbit-track--front { z-index: 3; }
.hero-intro-full .hero-orbit-track { animation: hero-fade-in 1.6s ease-out 0.6s backwards; }
.hero-orb {
    --orb: 46px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--orb);
    height: var(--orb);
    margin: calc(var(--orb) / -2) 0 0 calc(var(--orb) / -2);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0) 62%),
        rgba(16, 18, 28, 0.45);
    box-shadow:
        inset 0 -8px 16px rgba(0, 0, 0, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 12px 24px -12px rgba(0, 0, 0, 0.75),
        0 0 30px -8px var(--glow, #fff);
    opacity: 0; /* hero-backdrop.js brings it in */
    will-change: transform, opacity;
}
.hero-orb.is-front { z-index: 4; }
/* Tint from below in the orb's own colour */
.hero-orb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 115%, var(--glow, #fff), transparent 65%);
    opacity: 0.35;
}
/* Ring that bursts once when an orb lands in its orbit */
.hero-orb::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--glow, #fff);
    opacity: 0;
}
.hero-orb.is-landed::after { animation: hero-orb-land 0.9s ease-out; }
@keyframes hero-orb-land {
    0%   { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(1.9); opacity: 0; }
}
/* Own layer: the icon's idle animation repaints only the icon, not the orb's glow */
.hero-orb svg {
    position: relative;
    width: 72%;
    height: 72%;
    overflow: visible;
    will-change: transform;
}
.hero-animated.bg-oops .hero-orb svg { animation: hero-wobble 0.6s ease-in-out; }
@keyframes hero-wobble {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-14deg); }
    55%      { transform: rotate(10deg); }
    80%      { transform: rotate(-4deg); }
}
/* Portal behind the mascot: opens on landing, pulses on a successful sign-in */
.hero-portal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle, transparent 52%, oklch(var(--a) / 0.7) 60%, oklch(var(--p) / 0.35) 66%, transparent 74%);
}
.hero-intro-full .hero-portal { animation: hero-portal 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.hero-portal.is-pulse { animation: hero-portal 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes hero-portal {
    0%   { transform: scale(0.15); opacity: 0; }
    22%  { opacity: 1; }
    100% { transform: scale(2.1); opacity: 0; }
}
/* Reactions drifting up from the heart */
.hero-react {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
    animation: hero-react 3.4s cubic-bezier(0.33, 0, 0.2, 1) both;
}
@keyframes hero-react {
    0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    12%  { transform: translate(-50%, calc(-50% - 14px)) scale(1.1); opacity: 1; }
    50%  { transform: translate(calc(-50% + var(--sway, 12px)), calc(-50% - 80px)) scale(1); opacity: 0.95; }
    100% { transform: translate(calc(-50% - var(--sway, 12px) * 0.4), calc(-50% - 170px)) scale(0.85); opacity: 0; }
}
/* Welcome message popping from the chat bubble (follows it round the orbit) */
.hero-say {
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}
.hero-say-bubble {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 0.9rem 0.9rem 0.9rem 0.25rem;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 700;
    color: #111827;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.85);
    transform-origin: 50% 100%;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-say.is-on .hero-say-bubble {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* ---- Collectibles (_HeroCollectibles.cshtml) ----------------------------
   .hero-collect-pos = position, scroll parallax (GSAP transform) and pointer depth (translate)
   .hero-bob         = idle float
   .hero-collect     = the illustration (lands with the intro) */
.hero-collectibles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    container-type: inline-size; /* --wide items need room beside the frame, not just a wide window */
    transition: opacity 0.6s ease;
}
/* Password focus: the room quiets down while the mascot covers its eyes */
.hero-animated.bg-calm .hero-collectibles { opacity: 0.45; }
.hero-collectibles-frame {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(100%, 74rem);
    transform: translateX(-50%);
}
.hero-scrim {
    position: absolute;
    left: 0;
    right: 0;
    top: 28%;
    height: 48%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}
.hero-collect-pos {
    display: none;
    left: var(--tx-sm, var(--tx));
    top: var(--ty-sm, var(--ty));
    translate: calc(var(--px, 0) * var(--depth, 0.5) * -26px) calc(var(--py, 0) * var(--depth, 0.5) * -16px);
    transition: translate 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) {
    .hero-collect-pos--tab { display: block; }
}
@media (min-width: 1024px) {
    .hero-collect-pos { left: var(--tx); top: var(--ty); }
    .hero-scrim { right: 46%; }
    @container (min-width: 1420px) {
        .hero-collect-pos--wide { display: block; }
    }
}
.hero-bob {
    display: block;
    animation: hero-bob 7s ease-in-out infinite;
    will-change: transform;
}
.hero-bob--slow { animation-duration: 10s; animation-delay: -3s; }
@keyframes hero-bob {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-12px) rotate(4deg); }
}
.hero-collect {
    position: relative;
    display: block;
    width: 3.4rem;
    height: 3.4rem;
}
/* Soft pool of the item's colour underneath (stands in for a drop shadow, which would re-blur every frame) */
.hero-collect::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -18%;
    height: 28%;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow, #fff), rgba(0, 0, 0, 0.25) 60%, transparent);
    opacity: 0.5;
}
.hero-collect svg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    will-change: transform;
}
.hero-intro-full .hero-collect { animation: hero-collect-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) calc(1.1s + var(--i, 0) * 0.14s) backwards; }
.hero-intro-short .hero-collect { animation: hero-collect-in 0.6s ease-out calc(0.2s + var(--i, 0) * 0.05s) backwards; }
@keyframes hero-collect-in {
    from { opacity: 0; transform: translateY(36px) scale(0.5); }
}

/* ---- Illustrations: each item's idle micro-animation (hx-*) ----------- */
.hx-brand { fill: oklch(var(--p)); }
.hx-beat { transform-box: fill-box; transform-origin: center; animation: hx-beat 2.8s ease-in-out infinite; }
@keyframes hx-beat {
    0%, 45%, 100% { transform: scale(1); }
    10%           { transform: scale(1.14); }
    20%           { transform: scale(0.98); }
    30%           { transform: scale(1.08); }
}
.hx-flip { transform-box: fill-box; transform-origin: center; animation: hx-flip 5s ease-in-out infinite; }
@keyframes hx-flip {
    0%, 70%, 100% { transform: scaleX(1); }
    77%           { transform: scaleX(-1); }
    84%           { transform: scaleX(1); }
}
.hx-dots circle { animation: hx-dot 1.5s ease-in-out infinite; }
.hx-dots circle:nth-child(2) { animation-delay: 0.18s; }
.hx-dots circle:nth-child(3) { animation-delay: 0.36s; }
@keyframes hx-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
    30%           { transform: translateY(-3px); opacity: 1; }
}
.hx-twinkle { transform-box: fill-box; transform-origin: center; animation: hx-twinkle 3.2s ease-in-out infinite; }
@keyframes hx-twinkle {
    0%, 55%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    70%           { transform: scale(1.2) rotate(45deg); opacity: 1; }
    85%           { transform: scale(0.8) rotate(90deg); opacity: 0.6; }
}
.hx-steam path { opacity: 0; animation: hx-steam 3.2s ease-in-out infinite; }
.hx-steam path:nth-child(2) { animation-delay: 1.05s; }
.hx-steam path:nth-child(3) { animation-delay: 2.1s; }
@keyframes hx-steam {
    0%   { transform: translateY(4px); opacity: 0; }
    35%  { opacity: 0.75; }
    100% { transform: translateY(-5px); opacity: 0; }
}
.hx-sway { transform-box: view-box; transform-origin: 24px 44px; animation: hx-sway 5s ease-in-out infinite alternate; }
@keyframes hx-sway {
    from { transform: rotate(-6deg); }
    to   { transform: rotate(6deg); }
}
.hx-rock { transform-box: view-box; transform-origin: 24px 26px; animation: hx-rock 6s ease-in-out infinite alternate; }
@keyframes hx-rock {
    from { transform: rotate(-8deg); }
    to   { transform: rotate(8deg); }
}
.hx-frost circle { animation: hx-frost 2.4s ease-in-out infinite; }
.hx-frost circle:nth-child(2n) { animation-delay: 0.8s; }
.hx-frost circle:nth-child(3n) { animation-delay: 1.6s; }
@keyframes hx-frost {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}
.hx-btns circle { opacity: 0.55; animation: hx-btn 3.2s ease-in-out infinite; }
.hx-btns circle:nth-child(2) { animation-delay: 0.4s; }
.hx-btns circle:nth-child(3) { animation-delay: 0.8s; }
.hx-btns circle:nth-child(4) { animation-delay: 1.2s; }
@keyframes hx-btn {
    0%, 30%, 100% { opacity: 0.55; }
    10%           { opacity: 1; }
}
.hx-lid { transform-box: view-box; transform-origin: 8px 24px; animation: hx-lid 7s ease-in-out infinite; }
@keyframes hx-lid {
    0%, 62%, 100% { transform: rotate(0deg); }
    70%, 86%      { transform: rotate(-18deg); }
    92%           { transform: rotate(2deg); }
}
.hx-loot { opacity: 0; animation: hx-loot 7s ease-in-out infinite; }
@keyframes hx-loot {
    0%, 62%, 100% { opacity: 0; }
    72%, 86%      { opacity: 1; }
}
.hx-bubbles circle { animation: hx-bubble 2.6s ease-in infinite; }
.hx-bubbles circle:nth-child(2) { animation-delay: 0.9s; }
.hx-bubbles circle:nth-child(3) { animation-delay: 1.7s; }
@keyframes hx-bubble {
    0%   { transform: translateY(0); opacity: 0; }
    20%  { opacity: 0.9; }
    100% { transform: translateY(-11px); opacity: 0; }
}
.hx-swing { transform-box: view-box; transform-origin: 24px 8px; animation: hx-swing 6s ease-in-out infinite; }
@keyframes hx-swing {
    0%, 70%, 100% { transform: rotate(0deg); }
    75%           { transform: rotate(14deg); }
    80%           { transform: rotate(-11deg); }
    85%           { transform: rotate(7deg); }
    90%           { transform: rotate(-4deg); }
    95%           { transform: rotate(2deg); }
}
.hx-online { transform-box: fill-box; transform-origin: center; animation: hx-online 2.4s ease-in-out infinite; }
@keyframes hx-online {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}
.hx-grow { transform-box: view-box; transform-origin: 24px 31px; animation: hx-grow 6s ease-in-out infinite alternate; }
@keyframes hx-grow {
    from { transform: rotate(-5deg) scale(0.97); }
    to   { transform: rotate(5deg) scale(1.04); }
}

@media (max-width: 640px) {
    .hero-fly--desk { display: none; }
    .hero-orb { --orb: 38px; }
    .hero-react { font-size: 1rem; }
}

/* ---- Mascot level ring --------------------------------------------- */
.hero-animated .hero-mascot {
    position: relative;
    isolation: isolate;
    width: 260px;
    height: 260px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-animated .hero-mascot > svg.mascot-svg {
    position: relative;
    z-index: 2;
    width: 230px;
    height: 230px;
}
.hero-level-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: rotate(-90deg);
    overflow: visible;
}
.hero-level-ring .ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.09);
    stroke-width: 1.5;
}
.hero-level-ring .ring-fill {
    fill: none;
    stroke: oklch(var(--a));
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: hero-ring-fill 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    filter: drop-shadow(0 0 6px oklch(var(--a) / 0.55));
}
@keyframes hero-ring-fill {
    to { stroke-dashoffset: 32; }
}
.hero-level-badge {
    position: absolute;
    left: 50%;
    bottom: -2px;
    z-index: 3;
    transform: translateX(-50%);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: oklch(var(--ac));
    background: oklch(var(--a));
    box-shadow: 0 4px 12px -4px oklch(var(--a) / 0.7);
    white-space: nowrap;
}
.hero-mascot-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, oklch(var(--a) / 0.10) 45%, rgba(255, 255, 255, 0) 70%);
}
/* Slowly turning spotlight ring around the level ring (the mascot's "spawn point") */
.hero-mascot-halo {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(from 0deg,
        oklch(var(--a) / 0) 0deg, oklch(var(--a) / 0.6) 70deg, oklch(var(--a) / 0) 140deg,
        oklch(var(--p) / 0) 180deg, oklch(var(--p) / 0.55) 250deg, oklch(var(--p) / 0) 320deg);
    -webkit-mask-image: radial-gradient(closest-side, transparent 80%, #000 88%, transparent 100%);
    mask-image: radial-gradient(closest-side, transparent 80%, #000 88%, transparent 100%);
    animation: hero-halo-spin 18s linear infinite;
    will-change: transform;
}
@keyframes hero-halo-spin {
    to { transform: rotate(1turn); }
}

/* ---- Hero layout: intro (left) + login card (right) ------------------ */
.hero-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 74rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    gap: 2.25rem;
    align-items: center;
}
.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.hero-intro .hero-subtitle { margin-bottom: 1.75rem; }
.hero-intro .gsap-scroll-indicator { margin-top: 1.5rem; }
@media (min-width: 1024px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 4rem;
        padding: 0 2.5rem;
    }
}

/* Feature menu tiles ("what you can unlock") */
.hero-quests {
    width: 100%;
    max-width: 34rem;
}
.hero-quests-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.hero-quests-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
.hero-quest {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.75rem;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    min-width: 0;
}
.hero-quest:hover,
.hero-quest:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: oklch(var(--a) / 0.55);
    transform: translateY(-1px);
    outline: none;
}
.hero-quest-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    font-size: 0.85rem;
    color: oklch(var(--a));
    background: oklch(var(--a) / 0.14);
}
.hero-quest-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.hero-quest-text strong {
    font-size: 0.82rem;
    font-weight: 700;
}
.hero-quest-text small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 640px) {
    .hero-quests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-animated .hero-mascot { width: 210px; height: 210px; }
    .hero-animated .hero-mascot > svg.mascot-svg { width: 185px; height: 185px; }
    .hero-item--desk { display: none; }
}

/* ---- Login card / panel -------------------------------------------- */
.auth-slot {
    width: 100%;
    display: flex;
    justify-content: center;
}
.auth-panel {
    position: relative;
    width: 100%;
    max-width: 26rem;
}
.auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: oklch(var(--b1));
    color: oklch(var(--bc));
    border: 1px solid oklch(var(--bc) / 0.1);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    text-align: left;
    text-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: oklch(var(--a));
}
.auth-card-head h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: oklch(var(--bc));
}
.auth-card-head p {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: oklch(var(--bc) / 0.6);
}
/* Sign-in progress (fills as the fields are completed) */
.auth-progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
}
.auth-progress-bar {
    position: relative;
    flex: 1 1 auto;
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
    background: oklch(var(--bc) / 0.1);
}
.auth-progress-bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, oklch(var(--p)), oklch(var(--a)));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-progress-label {
    flex: 0 0 auto;
    min-width: 3.2rem;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: oklch(var(--bc) / 0.55);
}
.auth-progress.is-complete .auth-progress-label { color: oklch(var(--a)); }
.auth-card--pulse {
    animation: auth-card-pulse 0.8s ease-out;
}
@keyframes auth-card-pulse {
    0%   { box-shadow: 0 0 0 0 oklch(var(--a) / 0.7), 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
    100% { box-shadow: 0 0 0 18px oklch(var(--a) / 0), 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
}
.auth-handle,
.auth-close,
.auth-peek { display: none; }
/* Empty model-level summary renders as a blank red alert; only show it when it has errors */
.auth-card .validation-summary-valid { display: none; }

/* Mobile bottom sheet (JS adds .is-sheet and moves the panel to <body>) */
.auth-panel.is-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--keyboard-inset, 0px);
    max-width: none;
    z-index: 1001;
    transform: translate3d(0, calc(100% + 150px), 0);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.2s ease-out, visibility 0s linear 0.5s;
}
.auth-panel.is-sheet.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.2s ease-out, visibility 0s;
}
.auth-panel.is-sheet .auth-card {
    max-width: 32rem;
    margin: 0 auto;
    max-height: var(--sheet-max-height, calc(100svh - 110px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 1.75rem 1.75rem 0 0;
    padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Compact layout and mascot tuck when mobile keyboard is open */
.auth-panel.is-sheet.is-keyboard-open .auth-peek {
    opacity: 0;
    transform: translateY(24px) scale(0.6);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.auth-panel.is-sheet.is-keyboard-open .auth-card {
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
    scroll-padding-bottom: 2.5rem;
    scroll-padding-top: 1rem;
}

/* Ensure font-size on mobile inputs is >= 16px to prevent iOS Safari auto-zoom */
@media (max-width: 1023px) {
    .auth-card input,
    .auth-card select,
    .auth-card textarea {
        font-size: 16px !important;
    }
}

/* Desktop "log in from anywhere" modal (JS adds .is-floating) */
.auth-panel.is-floating {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(26rem, calc(100vw - 2rem));
    margin-top: 36px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -44%) scale(0.94);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, visibility 0s linear 0.45s;
}
.auth-panel.is-floating.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, visibility 0s;
}
.auth-panel.is-floating .auth-card {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}
.auth-panel.is-sheet .auth-handle {
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 9999px;
    background: oklch(var(--bc) / 0.2);
    margin: 0 auto 0.25rem;
    flex: 0 0 auto;
}
.auth-panel.is-sheet .auth-close,
.auth-panel.is-floating .auth-close {
    display: inline-flex;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}
.auth-panel.is-sheet .auth-peek,
.auth-panel.is-floating .auth-peek {
    display: block;
    position: absolute;
    left: 50%;
    top: -86px;
    width: 124px;
    height: 124px;
    margin-left: -62px;
    z-index: 0;
}
.auth-peek svg {
    width: 100%;
    height: 100%;
}

.auth-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 8, 12, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.auth-backdrop.is-open { opacity: 1; }
.auth-backdrop[hidden] { display: none; }
html.auth-lock,
html.auth-lock body { overflow: hidden; }

/* Floating "Log In" button — reachable from anywhere in the tour */
.auth-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 5rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    background: oklch(var(--p));
    color: oklch(var(--pc));
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.auth-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}
.auth-fab:hover { transform: translateY(-1px); }
@media (min-width: 1024px) {
    .auth-fab { bottom: 2rem; right: 3.75rem; }
}

/* Final "Ready to join" section */
.hero-join .join-mascot { margin-bottom: 0.5rem; }
.hero-join .join-mascot svg { width: 150px; height: 150px; }

/* ---- Mascot moods (driven by wwwroot/js/auth-landing.js) -------------
   data-mood on any .mascot-host: watch | shy | peek | happy | oops     */
.mascot-host { position: relative; }
.mascot-host .m-gaze { transition: transform 0.25s ease-out; }
.mascot-host.is-tracking .m-pupils { animation: none; }
.mascot-host .m-arms,
.mascot-host .m-eyes,
.mascot-host .m-mouth { transition: opacity 0.2s ease; }
.mascot-host .m-cover-l,
.mascot-host .m-cover-r {
    opacity: 0;
    transform: translateY(70px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.mascot-host .m-eyes-happy,
.mascot-host .m-mouth-o,
.mascot-host .m-sweat { transition: opacity 0.2s ease; }
.mascot-host .m-brow-l,
.mascot-host .m-brow-r { transition: transform 0.3s ease; }
.mascot-host .m-brow-l { transform-origin: 216px 228px; }
.mascot-host .m-brow-r { transform-origin: 284px 228px; }

.mascot-host[data-mood="watch"] .m-brow-l,
.mascot-host[data-mood="watch"] .m-brow-r { transform: translateY(-5px); }

.mascot-host[data-mood="shy"] .m-cover-l,
.mascot-host[data-mood="shy"] .m-cover-r,
.mascot-host[data-mood="peek"] .m-cover-l { opacity: 1; transform: none; }
.mascot-host[data-mood="peek"] .m-cover-r { opacity: 1; transform: translate(14px, 26px); }
.mascot-host[data-mood="shy"] .m-arms,
.mascot-host[data-mood="peek"] .m-arms { opacity: 0; }
.mascot-host[data-mood="shy"] .m-blush,
.mascot-host[data-mood="peek"] .m-blush { opacity: 1 !important; }

.mascot-host[data-mood="happy"] .m-eyes { opacity: 0; }
.mascot-host[data-mood="happy"] .m-eyes-happy { opacity: 1; }
.mascot-host[data-mood="happy"] .mascot-svg { animation: m-hop 0.6s ease-in-out 2; }

.mascot-host[data-mood="oops"] .mascot-svg { animation: m-shake 0.55s ease-in-out 1; }
.mascot-host[data-mood="oops"] .m-sweat { opacity: 1; animation: m-sweat 1.2s ease-in infinite; }
.mascot-host[data-mood="oops"] .m-mouth { opacity: 0; }
.mascot-host[data-mood="oops"] .m-mouth-o { opacity: 1; }
.mascot-host[data-mood="oops"] .m-brow-l { transform: translateY(-3px) rotate(14deg); }
.mascot-host[data-mood="oops"] .m-brow-r { transform: translateY(-3px) rotate(-14deg); }

@keyframes m-hop {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    35%      { transform: translateY(-10px); }
    70%      { transform: translateY(0); }
}
@keyframes m-shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20%      { transform: translateX(-8px) rotate(-3deg); }
    40%      { transform: translateX(7px) rotate(3deg); }
    60%      { transform: translateX(-5px) rotate(-2deg); }
    80%      { transform: translateX(3px) rotate(1deg); }
}
@keyframes m-sweat {
    0%   { transform: translateY(-4px); }
    100% { transform: translateY(8px); }
}

/* "+XP" pop when the mascot is tapped */
.m-xp {
    position: absolute;
    left: 50%;
    top: 30%;
    z-index: 5;
    pointer-events: none;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: oklch(var(--ac));
    background: oklch(var(--a));
    box-shadow: 0 6px 16px -6px oklch(var(--a) / 0.8);
    white-space: nowrap;
    animation: m-xp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes m-xp {
    0%   { transform: translate(-50%, 8px) scale(0.8); opacity: 0; }
    20%  { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -46px) scale(1); opacity: 0; }
}

/* Pause animations that are scrolled out of view */
.hero-anim-paused .hero-anim-bg *,
.hero-anim-paused .hero-collectibles *,
.hero-anim-paused .hero-orbit *,
.hero-anim-paused .hero-mascot-halo,
.m-paused * {
    animation-play-state: paused !important;
}

/* Reduced motion: still, calm version (the orbit is placed once, no reactions or messages) */
@media (prefers-reduced-motion: reduce) {
    .hero-aurora,
    .hero-aurora-wrap,
    .hero-beams,
    .hero-beam,
    .hero-floor,
    .hero-floor-grid,
    .hero-mascot-halo,
    .hero-orbit-track,
    .hero-orb::after,
    .hero-orb *,
    .hero-bob,
    .hero-collect,
    .hero-collect * { animation: none !important; }
    .hero-fly,
    .hero-portal,
    .hero-react { display: none; }
    .hero-aurora-wrap,
    .hero-collect-pos { transition: none; }
    .hero-level-ring .ring-fill { animation: none; stroke-dashoffset: 32; }
    .auth-panel.is-sheet,
    .auth-panel.is-floating,
    .auth-backdrop,
    .auth-fab,
    .auth-card,
    .auth-progress-bar > span { transition-duration: 0.01ms !important; }
    .mascot-host[data-mood] .mascot-svg { animation: none !important; }
    .m-xp { animation-duration: 0.01ms; }
}

/* =========================================
   4. Feature Sections
   ========================================= */
.gsap-feature-section {
    min-height: 100vh;
    background-color: oklch(var(--b1));
}
.gsap-feature-section:nth-child(even) {
    background-color: oklch(var(--b2));
}

/* =========================================
   5. Section Content Wrapper
   ========================================= */
.gsap-section-content {
    max-width: 64rem; /* max-w-5xl */
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* =========================================
   6. Feature Cards
   ========================================= */
.gsap-feature-card {
    /* Works in both light and dark themes using DaisyUI base colours */
    background: oklch(var(--b1) / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid oklch(var(--bc) / 0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.gsap-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px oklch(var(--p) / 0.15), 0 4px 12px -4px oklch(var(--bc) / 0.08);
    border-color: oklch(var(--p) / 0.25);
}

/* =========================================
   7. Badge Pills
   ========================================= */
.gsap-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.gsap-badge:hover {
    transform: scale(1.05);
}

/* =========================================
   8. Skip to Login Button
   ========================================= */
.gsap-skip-btn {
    position: fixed;
    bottom: 5rem; /* bottom-20 (above bottom nav on mobile) */
    right: 1.5rem;
    z-index: 50;
    border-radius: 9999px;
    background-color: oklch(var(--p));
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    animation: gsap-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.gsap-skip-btn.visible {
    opacity: 1;
    visibility: visible;
}
.gsap-skip-btn:hover {
    transform: scale(1.05);
}
@keyframes gsap-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(oklch(var(--p)), 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(oklch(var(--p)), 0); }
}

/* =========================================
   9. Scroll Indicator
   ========================================= */
.gsap-scroll-indicator {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* GSAP will handle the bounce — we just need baseline styles */
}

/* =========================================
   10. Counter Animation
   ========================================= */
.gsap-counter {
    font-variant-numeric: tabular-nums;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

/* =========================================
   11. Section Emoji Icon
   ========================================= */
.gsap-section-icon {
    font-size: 4rem; /* text-6xl base */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    margin-bottom: 1rem;
}

/* =========================================
   12. Parallax Leaf
   ========================================= */
.gsap-parallax-leaf {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

/* =========================================
   13. Form Section
   ========================================= */
.gsap-form-section {
    min-height: 100vh;
    border-top: 4px solid;
    border-image: linear-gradient(to right, oklch(var(--p)), oklch(var(--s))) 1;
    background-color: oklch(var(--b1));
}

/* =========================================
   15. Performance Utilities
   ========================================= */
.gsap-animated {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   16. Dark Theme Support
   ========================================= */
[data-theme='night'] .gsap-feature-card,
[data-theme='dark'] .gsap-feature-card,
[data-theme='synthwave'] .gsap-feature-card,
[data-theme='coffee'] .gsap-feature-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='night'] .gsap-feature-section:nth-child(even),
[data-theme='dark'] .gsap-feature-section:nth-child(even),
[data-theme='synthwave'] .gsap-feature-section:nth-child(even),
[data-theme='coffee'] .gsap-feature-section:nth-child(even) {
    background-color: oklch(var(--b2));
}

/* =========================================
   18. Dot Navigation
   ========================================= */
.gsap-dot-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 50;
}
.gsap-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: oklch(var(--bc) / 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}
.gsap-dot.active,
.gsap-dot:hover {
    background-color: oklch(var(--p));
    transform: scale(1.3);
}

/* =========================================
   17. Mobile Responsive Adjustments
   ========================================= */
@media (max-width: 1023px) { /* Below lg breakpoint */
    .gsap-section,
    .gsap-feature-section,
    .gsap-form-section {
        height: auto;
        min-height: 80vh;
        padding: 4rem 0;
    }
    .gsap-counter {
        font-size: 2rem;
    }
    .gsap-section-content {
        padding: 1rem;
    }
    .gsap-dot-nav {
        display: none;
    }
}
@media (min-width: 1024px) { /* lg and up */
    .gsap-skip-btn {
        bottom: 2rem; /* Move down since there's likely no bottom nav */
    }
    .gsap-section-icon {
        font-size: 6rem; /* text-8xl */
    }
}

/* =========================================
   14. Reduced Motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    .gsap-animated,
    .gsap-progress-bar,
    .gsap-skip-btn,
    .gsap-scroll-indicator,
    .gsap-parallax-leaf,
    .gsap-feature-card,
    .gsap-badge {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* =========================================
   19. Customisation Section (Theme Split)
   ========================================= */
.theme-split-container {
    display: flex;
    height: 240px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid oklch(var(--bc) / 0.12);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
    background: oklch(var(--b2));
}

.theme-split-panel {
    flex: 1;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
    position: relative;
    cursor: crosshair;
    filter: grayscale(30%) brightness(0.9);
}

.theme-split-panel:hover {
    flex: 1.8;
    filter: grayscale(0%) brightness(1.1);
    z-index: 10;
}

.theme-panel-inner {
    width: 100%;
    height: 100%;
    padding: 1.25rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-mini-nav {
    height: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.theme-mini-logo {
    width: 2rem;
    height: 0.35rem;
    border-radius: 9999px;
}

.theme-mini-avatar {
    font-size: 0.6rem;
    border: 2px solid;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}

.theme-mini-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-mini-rank-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.15);
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}

.theme-mini-pos {
    font-size: 0.75rem;
    line-height: 1;
}

.theme-mini-border {
    font-size: 0.7rem;
    border: 2px solid;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    line-height: 1;
}

.theme-mini-bar-wrap {
    flex: 1;
    height: 0.35rem;
    background: rgba(0,0,0,0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.theme-mini-bar {
    height: 100%;
    border-radius: 9999px;
}

.theme-label {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-weight: 700;
}

.theme-split-panel:hover .theme-label {
    opacity: 1;
    transform: scale(1.1) translateY(-2px);
}

@keyframes theme-neon-pulse {
    0%, 100% { box-shadow: 0 0 5px #e879f9aa, inset 0 0 2px #e879f955; }
    50% { box-shadow: 0 0 15px #e879f9, inset 0 0 5px #e879f9aa; }
}

.customise-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.customise-card:hover .customise-card-icon {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 639px) {
    .theme-split-container {
        flex-direction: column;
        height: 480px;
    }
    .theme-split-panel {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}
