/* =============================================================
   LUCKY365 MALAYSIA — Wayfinding / Urban Transit System theme
   A single gold/yellow family, run light to dark, against a dark,
   near-black ground — with metallic gradients standing in for a
   second hue. No red, no green, no brown.
   Loaded on the homepage as /main.css
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
    /* Surfaces — near-black, warm charcoal, signage-at-night feel */
    --bg: #171310;
    --surface: #2A2119;

    /* Typography — warm off-white */
    --ink: #F7F1E4;
    --ink-soft: #E3D9C4;
    --ink-faint: #8B8171;

    /* Lines */
    --line: rgba(247, 241, 228, 0.12);
    --line-strong: rgba(247, 241, 228, 0.7);

    /* Brand identity — one gold/yellow family, light to dark */
    --gold-pale: #FFE8AD;
    --gold-bright: #FFCF3F;
    --gold: #F2A900;
    --gold-deep: #C97F00;
    --gold-muted: #B8901F;
    --gold-dark: #7A4E00;
    --gold-dark-deep: #5C3B00;

    --on-gold: #211703;
    --on-gold-dark: #FBF0D9;
    --on-gold-dark-soft: rgba(251, 240, 217, 0.82);

    /* Typography */
    --font-head: 'Archivo', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --fs-base: 16px;
    --fs-h1: clamp(2.4rem, 6vw, 4.6rem);
    --fs-h2: clamp(1.7rem, 4vw, 2.6rem);
    --fs-h3: clamp(1.05rem, 2.4vw, 1.25rem);
    --fs-sm: 0.92rem;
    --fs-xs: 0.78rem;
    --lh: 1.65;

    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2.25rem;
    --sp-7: 3.5rem;
    --sp-8: 5.5rem;
    --sp-9: 8rem;

    /* Structure */
    --container: 1100px;
    --rail-w: 64px;
    --rail-w-sm: 34px;
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Keeps anchor-jump targets (route-nav links) clear of the fixed header. */
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh);
    color: var(--ink-soft);
    /* One shared background for the whole site, fixed to the viewport so it
       doesn't scroll — every section above it (header, hero, stations,
       footer) is transparent, so content reads as floating over it rather
       than each section sitting in its own solid-colored block. */
    background-image: linear-gradient(rgba(23, 19, 16, 0.55), rgba(23, 19, 16, 0.55)), url('image/lucky365-background.webp');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

@media (max-width: 899px) {
    body {
        /* The background photo's focal point (slot reel) sits on its right
           edge — on narrow viewports, cover crops in tight, so anchor left
           to show its plain dark side instead of a sliver of the reel. */
        background-position: center, left center;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--gold-pale);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.08;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--fs-h1);
    text-transform: uppercase;
}

h2 {
    font-size: var(--fs-h2);
    text-transform: uppercase;
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin-bottom: var(--sp-4);
    color: var(--ink-soft);
    max-width: 62ch;
}

ul,
ol {
    margin-bottom: var(--sp-4);
}

strong {
    font-weight: 700;
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--gold-deep);
    outline-offset: 2px;
}

/* -------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-5);
}

main {
    display: block;
}

.rule {
    border: 0;
    height: 2px;
    background: var(--line-strong);
    margin-block: 0;
}

/* -------------------------------------------------------------
   4. HEADER — flat signage bar, route-line nav
   ------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: var(--sp-4);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    /* max-width: 1300px; */
    z-index: 50;
    /* A floating pill over the hero, not a full-width bar — inset from every
       edge, fully rounded, lifted off the image with a soft shadow. */
    background: rgba(23, 19, 16, 0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: 10px var(--sp-5);
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

.brand img {
    height: 38px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 26px 8px 0;
}

.nav__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-faint);
    position: relative;
    z-index: 2;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--line);
    transform: translateY(-50%);
    z-index: 1;
}

.nav a:hover {
    color: var(--gold);
}

.nav a:hover .nav__dot {
    background: var(--gold);
}

.nav a[aria-current="page"] {
    color: var(--ink);
}

.nav a[aria-current="page"] .nav__dot {
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-pale);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.btn-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-deep));
    color: var(--on-gold);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 22px;
    line-height: 1;
    white-space: nowrap;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(242, 169, 0, 0.35);
    animation: header-cta-pulse 1.8s ease-in-out infinite;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Diagonal light sweep, looping independently of the pulse so the button
   keeps drawing the eye even mid-pulse-cycle. */
.btn-play::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-20deg);
    animation: header-cta-shimmer 2.6s ease-in-out infinite;
}

.btn-play:hover {
    color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-deep) 55%, var(--gold-dark));
    transform: translateX(2px) scale(1.05);
    animation-play-state: paused;
    box-shadow: 0 2px 16px rgba(242, 169, 0, 0.65);
}

.btn-play:hover::after {
    animation-play-state: paused;
}

@keyframes header-cta-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(242, 169, 0, 0.35), 0 0 0 0 rgba(242, 169, 0, 0.6);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 2px 16px rgba(242, 169, 0, 0.5), 0 0 0 11px rgba(242, 169, 0, 0);
    }
}

@keyframes header-cta-shimmer {

    0% {
        left: -75%;
    }

    45%,
    100% {
        left: 130%;
    }
}

@media (max-width: 560px) {
    .btn-play {
        padding: 10px 14px;
    }
}

@media (max-width: 360px) {
    .btn-play {
        font-size: 0.7rem;
        padding: 9px 10px;
    }
}

@media (max-width: 1023px) {
    .nav {
        display: none;
    }
}

/* -------------------------------------------------------------
   4b. MOBILE NAV SHEET — drag-up panel, replaces the hamburger
   ------------------------------------------------------------- */
.nav-sheet {
    display: none;
}

@media (max-width: 1023px) {
    .nav-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 970;
        /* Closed state ignores pointer events everywhere except the
           handle, which sits inside .nav-sheet__panel and stays clickable. */
        pointer-events: none;
    }

    .nav-sheet__scrim {
        position: absolute;
        inset: 0;
        border: 0;
        margin: 0;
        padding: 0;
        background: rgba(10, 8, 6, 0.6);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-sheet.is-open .nav-sheet__scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-sheet__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(23, 19, 16, 0.97);
        border: 1px solid var(--line-strong);
        border-bottom: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.45);
        /* Peek: only the handle strip (~44px) sits above the bottom edge
           by default; the nav links stay just out of view below it. */
        transform: translateY(calc(100% - 44px));
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        pointer-events: auto;
    }

    .nav-sheet.is-dragging .nav-sheet__panel {
        transition: none;
    }

    .nav-sheet.is-open .nav-sheet__panel {
        transform: translateY(0);
    }

    .nav-sheet__handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 44px;
        background: none;
        border: 0;
        padding: 0;
        cursor: grab;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-sheet.is-dragging .nav-sheet__handle {
        cursor: grabbing;
    }

    html.nav-sheet-lock {
        overflow: hidden;
    }

    .nav-sheet__grip {
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--line-strong);
    }

    .nav-sheet__nav {
        display: flex;
        flex-direction: column;
        padding: 0 var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
    }

    .nav-sheet__nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--ink);
        font-family: var(--font-head);
        font-size: var(--fs-sm);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: var(--sp-4) 0;
        border-top: 1px solid var(--line);
    }

    .nav-sheet__nav a[aria-current="page"] {
        color: var(--gold);
    }

    .nav-sheet__nav a[aria-current="page"] .nav__dot {
        background: var(--gold);
        box-shadow: 0 0 0 4px var(--gold-pale);
    }
}

/* -------------------------------------------------------------
   5. HERO — full-bleed image, text overlay
   ------------------------------------------------------------- */
.hero--overlay {
    position: relative;
    overflow: hidden;
    /* The floating pill header (bottom edge at ~76px, plus breathing room)
       reserves its own strip via padding-top; min-height adds that back so
       the centered content still gets the full clamp() sizing below it.
       No background of its own — it shares the page's fixed background. */
    padding-top: 92px;
    min-height: calc(clamp(400px, 60vh, 620px) + 92px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .hero--overlay {
        flex-direction: row;
        align-items: center;
    }
}

/* Below 1200px it's a normal in-flow banner stacked above the title —
   still full width, just a shorter fixed-ratio strip rather than the
   desktop version's absolutely-positioned side panel. */
.hero__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1080 / 922;
    overflow: hidden;
}

.hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 78%, rgba(23, 19, 16, 0.55) 100%);
}

.hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hero__visual img.img--contain {
    object-fit: contain;
    object-position: center bottom;
}

/* Carousel: slides stack on top of each other and crossfade — only
   .is-active is visible, main.js swaps the class on an interval. */
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(247, 241, 228, 0.4);
    transition: background 0.3s ease;
}

.hero__dots span.is-active {
    background: var(--gold);
}

@media (min-width: 1200px) {
    .hero__visual {
        position: absolute;
        top: 92px;
        right: 0;
        bottom: 0;
        width: min(52%, 820px);
        aspect-ratio: auto;
        z-index: 1;
        pointer-events: none;
    }

    .hero__visual::after {
        background: none;
    }

    .hero__visual img {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 25%);
        mask-image: linear-gradient(90deg, transparent 0%, black 25%);
        object-position: center;
    }

    .hero__visual img.img--contain {
        object-position: center bottom;
    }

    .hero__dots {
        bottom: 20px;
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    padding: var(--sp-6) var(--sp-5);
}

@media (min-width: 1200px) {
    .hero__content {
        max-width: 760px;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-pale);
    margin-bottom: var(--sp-5);
}

.hero__eyebrow-line {
    width: 30px;
    height: 2px;
    background: var(--gold-pale);
}

.hero--overlay h1 {
    color: var(--ink);
    margin-bottom: var(--sp-5);
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero__sub {
    color: var(--ink-soft);
    font-size: 1.08rem;
    margin-bottom: var(--sp-6);
    max-width: 46ch;
}

.hero__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
}

@media (min-width: 560px) {
    .hero__cta-wrap {
        flex-direction: row;
        align-items: center;
        gap: var(--sp-5);
    }
}

.link-secondary--invert {
    color: var(--ink-soft);
    border-color: var(--line-strong);
}

.link-secondary--invert:hover {
    color: var(--gold-pale);
    border-color: var(--gold-pale);
}

/* -------------------------------------------------------------
   5b. PAGE HERO — inner pages, no full-bleed image
   ------------------------------------------------------------- */
.page-hero {
    /* Clears the floating pill header the same way .hero--overlay does. */
    padding: 92px 0 var(--sp-7);
}

.page-hero h1 {
    color: var(--ink);
    margin-bottom: var(--sp-5);
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-bottom: var(--sp-5);
}

.breadcrumb a {
    color: var(--gold-pale);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--gold);
}

/* -------------------------------------------------------------
   6. BUTTONS — flat signage blocks, no rounding
   ------------------------------------------------------------- */
.btn-cta,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-deep));
    color: var(--on-gold);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 17px 34px;
    border: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

/* Scoped to the hero CTA row specifically. Stacked on mobile (below the
   hero__cta-wrap row breakpoint), the button is the only thing on its line,
   so it stretches full-width for an easy, thumb-friendly tap target instead
   of sitting as a small pill with dead space beside it. Once it moves
   alongside the text link at 560px+, it goes back to holding its own shape
   rather than getting flex-shrunk into a word-wrapped mess — buttons
   elsewhere (e.g. the longer-text APK download button) still wrap normally
   on narrow screens. */
.hero__cta-wrap .btn-cta {
    width: 100%;
    text-align: center;
}

@media (min-width: 560px) {
    .hero__cta-wrap .btn-cta {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Station action buttons (guide links, register/login shortcuts, etc.)
   sit among the now much smaller station text — the hero-sized default
   looked oversized next to it, so this scales them down to match. */
.station .btn-cta {
    font-size: var(--fs-xs);
    padding: 9px 18px;
    letter-spacing: 0.03em;
}

.btn-cta:hover,
.btn-primary:hover {
    color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-deep) 55%, var(--gold-dark));
    transform: translateX(3px);
}

.btn-cta:active,
.btn-primary:active {
    transform: translateX(1px);
}

.btn-cta--pulse {
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(242, 169, 0, 0.45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(242, 169, 0, 0);
    }
}

.link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--line-strong);
    padding-bottom: 3px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.link-secondary:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* -------------------------------------------------------------
   6b. HOT GAMES — auto-scrolling teaser strip
   ------------------------------------------------------------- */
.hot-games {
    padding-block: var(--sp-7) var(--sp-6);
    overflow: hidden;
}

.hot-games__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-deep));
    color: var(--on-gold);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 22px;
}

.hot-games__row {
    overflow: hidden;
    margin-top: var(--sp-5);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
}

.hot-games__row+.hot-games__row {
    margin-top: 12px;
}

.hot-games__track {
    display: flex;
    width: max-content;
    gap: 12px;
    /* Duration is scaled to the much longer 30-game track (vs. the
       original 8) so the scroll keeps the same visual speed instead of
       suddenly racing past. */
    animation: hot-games-scroll 120s linear infinite;
}

.hot-games__row--reverse .hot-games__track {
    animation-direction: reverse;
    animation-duration: 143s;
}

.hot-games__row:hover .hot-games__track {
    animation-play-state: paused;
}

.hot-games__track img {
    width: 130px;
    /* Same portrait ratio as the game library grid's cards, just sized a
       bit larger since this strip is the eye-catching teaser up top. */
    aspect-ratio: 256 / 326;
    object-fit: cover;
    flex-shrink: 0;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.hot-games__track img:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

@keyframes hot-games-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 640px) {
    .hot-games__track img {
        width: 170px;
    }
}

/* -------------------------------------------------------------
   6c. GAME LIBRARY — full catalogue with All / Hot Games tabs
   ------------------------------------------------------------- */
.game-library {
    padding-block: var(--sp-6);
}

.game-library__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3) var(--sp-4);
}

.game-library__tagline {
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}

.game-tabs {
    display: flex;
    gap: var(--sp-4);
    border-bottom: 2px solid var(--line);
    margin-top: var(--sp-6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.game-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 480px) {
    .game-tabs {
        gap: var(--sp-6);
    }
}

.game-tabs button {
    background: none;
    border: 0;
    padding: var(--sp-3) 0;
    margin-bottom: -2px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.game-tabs button:hover {
    color: var(--ink-soft);
}

.game-tabs button.is-active {
    color: var(--gold);
    border-color: var(--gold);
}

.game-grid.game-grid--library {
    grid-template-columns: repeat(3, 1fr);
    margin-top: var(--sp-6);
    /* A 30-item grid rarely divides evenly into the column count, so the
       shared grid-gap background (used elsewhere for divider lines) would
       show through the empty trailing cell as a stray light box —
       borders on each card instead keep dividers without that artifact. */
    background: none;
    border: 0;
    gap: 2px;
}

.game-grid--library .game-card.is-hidden {
    display: none;
}

.game-grid--library .game-card {
    background: none;
    border: 0;
}

@media (min-width: 480px) {
    .game-grid.game-grid--library {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .game-grid.game-grid--library {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) {
    .game-grid.game-grid--library {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* -------------------------------------------------------------
   6d. APP DOWNLOAD — real APK / H5 access, no storefront badges
   (Lucky365 isn't listed on the App Store or Google Play — see
   the login page's APK station — so this mirrors that, not a
   generic store-badge template.)
   ------------------------------------------------------------- */
.app-download {
    padding-block: var(--sp-6) var(--sp-7);
}

.app-download__panel {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    background: var(--surface);
    border: 2px solid var(--line-strong);
    padding: var(--sp-6);
}

@media (min-width: 768px) {
    .app-download__panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-7);
    }
}

.app-download__copy .hot-games__badge {
    margin-bottom: var(--sp-4);
}

.app-download__copy h3 {
    margin-bottom: var(--sp-3);
}

.app-download__copy p {
    margin-bottom: 0;
    max-width: 52ch;
}

.app-download__qr-group {
    /* A 2-column grid keeps the pair always side by side and always
       exactly equal-width — a flex row would shrink each block by its own
       content size, so a longer label (e.g. "Android APK" vs "iOS H5")
       ended up visibly wider than the other once space got tight. */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Size to content and center, rather than stretching edge to edge —
       only capped down to 100% (both columns shrinking equally) once the
       panel it stretches to fill (column layout on mobile) isn't wide
       enough for the pair's natural size. */
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    gap: var(--sp-4);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .app-download__qr-group {
        gap: var(--sp-6);
    }
}

.app-download__qr {
    display: flex;
    flex-direction: column;
    /* Stretch (not center) so the QR code box below gets a definite,
       column-wide width to size its image against — needed for both
       blocks to shrink in step on narrow phones without one overflowing
       the other. Inline content (label, link) is centered via text-align
       instead of align-items. */
    align-items: stretch;
    text-align: center;
    gap: 10px;
    min-width: 0;
}

.app-download__qr-code {
    display: block;
    padding: 8px;
    background: var(--ink);
    border: 2px solid var(--line-strong);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.app-download__qr-code:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.app-download__qr-code img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 112px;
    margin-inline: auto;
}

@media (min-width: 480px) {
    .app-download__qr-code img {
        max-width: 128px;
    }
}

.app-download__qr-label {
    display: inline-flex;
    /* Icon stacks above the text on narrow phones, where the two side by
       side left the label text wrapping awkwardly next to the icon. */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
}

@media (min-width: 480px) {
    .app-download__qr-label {
        flex-direction: row;
        gap: 10px;
    }
}

.app-download__qr-label-icon {
    width: 30px;
    height: 30px;
}

.app-download__qr-link {
    font-size: var(--fs-xs);
    color: var(--gold-pale);
    border-bottom: 1px solid transparent;
}

.app-download__qr-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* -------------------------------------------------------------
   7. ROUTE SYSTEM — stations, rail line, directional markers
   ------------------------------------------------------------- */
.route {
    position: relative;
}

.station {
    position: relative;
    display: grid;
    grid-template-columns: var(--rail-w) 1fr;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-5);
    padding-block: var(--sp-7);
    border-top: 2px solid var(--line-strong);
}

.station:first-child {
    border-top: 0;
}

.station__rail {
    position: relative;
}

.station__line {
    position: absolute;
    left: calc(var(--rail-w) / 2 - 1.5px);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--station-c, var(--gold));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}

.station__marker {
    position: absolute;
    left: calc(var(--rail-w) / 2 - 20px);
    top: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 3px solid var(--station-c, var(--gold));
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--ink);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s, background 0.25s ease, border-color 0.25s ease;
    z-index: 2;
    /* It's a <button> now — clicking it expands/collapses this station. */
    padding: 0;
    appearance: none;
    cursor: pointer;
}

.station__marker:hover,
.station__marker:focus-visible {
    background: var(--station-c, var(--gold));
    color: var(--on-gold);
}

.station.is-expanded .station__marker {
    background: var(--station-c, var(--gold));
    color: var(--on-gold);
}

.station.is-active .station__line {
    transform: scaleY(1);
}

.station.is-active .station__marker {
    opacity: 1;
    transform: scale(1);
}

.station__content {
    padding-left: var(--sp-6);
}

.station__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--station-c, var(--gold-deep));
    margin-bottom: var(--sp-4);
    /* It's a <button> too, controlling the same collapsed content — a
       second, more discoverable trigger alongside the rail marker. */
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-transform: uppercase;
}

.station__tag::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--station-c, var(--gold-deep));
}

.station__tag:hover {
    color: var(--gold);
}

/* Each title is its own toggle, controlling only its own body — the
   marker/tag above expand or collapse every title in the station at once. */
.station__heading-btn {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--sp-4);
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.station__heading-btn:hover {
    color: var(--station-c, var(--gold));
}

/* Lets the (possibly multi-line) title wrap on its own while the icon
   stays put beside it, vertically centered — instead of the icon being
   forced onto its own line once the title wraps. */
.station__heading-text {
    flex: 1 1 auto;
    min-width: 0;
}

.station__heading-icon {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2px solid var(--station-c, var(--gold-deep));
    transition: transform 0.3s ease;
}

/* Drawn from two bars rather than a "+" glyph — text characters sit off-
   center within their own line box depending on font metrics, so this is
   the only way to guarantee it lines up with the box on every browser. */
.station__heading-icon::before,
.station__heading-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--station-c, var(--gold-deep));
    transform: translate(-50%, -50%);
}

.station__heading-icon::before {
    width: 14px;
    height: 2px;
}

.station__heading-icon::after {
    width: 2px;
    height: 14px;
}

.station__heading-btn[aria-expanded="true"] .station__heading-icon {
    /* Same fix as the FAQ icon: compensate for the rotated box's larger
       diagonal footprint so it can't poke past a tight layout's edge. */
    transform: rotate(45deg) scale(0.7071);
}

/* Collapsed by default — expands only when its own title, or the station's
   marker/tag, is clicked. grid-template-rows: 0fr → 1fr animates height
   without needing JS to measure the content's actual height. */
.station__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.station__body.is-open {
    grid-template-rows: 1fr;
}

.station__body-inner {
    min-height: 0;
    overflow: hidden;
}

.station article+article {
    margin-top: var(--sp-6);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--line);
}

.station h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    margin-bottom: var(--sp-2);
}

.station h2+p {
    margin-top: 0;
}

/* Sub-headings inside station content (split-grid, benefit cards) —
   still a notch above the body text around them, just much smaller than
   before overall, matching the h2 reduction above. */
.station h3 {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
}

/* Denser station content overall: smaller text, tighter spacing —
   everything except the h2/h3 headings above, which stay a size up so
   the hierarchy still reads clearly, not less. */
.station__body-inner {
    font-size: var(--fs-sm);
}

.station__body-inner p {
    margin-bottom: var(--sp-3);
}

@media (max-width: 720px) {
    .station {
        grid-template-columns: var(--rail-w-sm) 1fr;
        padding-block: var(--sp-6);
    }

    .station__marker {
        left: calc(var(--rail-w-sm) / 2 - 15px);
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .station__line {
        left: calc(var(--rail-w-sm) / 2 - 1.5px);
    }

    .station__content {
        padding-left: var(--sp-4);
    }

    .site-footer {
        margin-top: var(--sp-6);
    }
}

/* -------------------------------------------------------------
   8. POINTS / STEPS — directional signage lists
   ------------------------------------------------------------- */
.points {
    list-style: none;
    padding-left: 0;
}

.points li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--sp-2);
    color: var(--ink-soft);
}

.points li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--gold);
}

.steps {
    list-style: none;
    padding-left: 0;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: var(--sp-2) 0 var(--sp-2) 3rem;
    margin-bottom: var(--sp-1);
    counter-increment: step;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}

.steps li:last-child {
    border-bottom: 0;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: var(--sp-2);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gold-deep);
}

/* -------------------------------------------------------------
   8b. DATA TABLE — flat signage grid
   ------------------------------------------------------------- */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: var(--sp-5);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    border: 2px solid var(--line-strong);
}

.info-table th,
.info-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.info-table th {
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
    color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-deep));
    white-space: nowrap;
}

.info-table td {
    color: var(--ink-soft);
}

.info-table tr:last-child td {
    border-bottom: 0;
}

.data-table {
    min-width: 480px;
}

.data-table td:first-child {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

/* -------------------------------------------------------------
   8c. SPLIT GRID — two-column comparison
   ------------------------------------------------------------- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-top: var(--sp-5);
}

@media (min-width: 640px) {
    .split-grid {
        grid-template-columns: 1fr 1fr;
    }

    .split-grid>div:first-child {
        border-right: 1px solid var(--line-strong);
        padding-right: var(--sp-6);
    }
}

.split-grid h3 {
    margin-bottom: var(--sp-3);
}

/* -------------------------------------------------------------
   9. GATE GRID — full-bleed signage plates (games)
   ------------------------------------------------------------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--line-strong);
    border: 2px solid var(--line-strong);
    margin-top: var(--sp-5);
}

@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    overflow: hidden;
}

.game-card img {
    /* aspect-ratio: 1 / 1; */
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.game-card:hover img {
    transform: scale(1.06);
}

.game-card__name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    /* Tall enough for the longest title (up to 3 lines at the narrowest,
       2-column mobile width), so every name-plate is the same size
       regardless of column count — short names just sit centered in it. */
    /* min-height: calc(3em * var(--lh) + 20px); */
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-deep));
    color: var(--on-gold);
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.game-card__name-text {
    min-width: 0;
}

/* Homepage's "Popular Games" preview is just the 4 images — no name-plate,
   no grid-gap divider lines or card fill behind them. Scoped by class
   rather than #station-03-body — the slot page's own "Popular Games"
   station happens to share that same id/number. */
.game-grid.game-grid--preview {
    background: none;
    border: 0;
}

.game-grid--preview .game-card {
    background: none;
}

.game-card:nth-child(2n) .game-card__name {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-dark-deep));
    color: var(--on-gold-dark);
}

/* Richer card variant (slot page): adds RTP/theme/feature detail below
   the name-plate, and a placeholder tile for games without art yet. */
.game-card__meta {
    display: block;
    padding: var(--sp-3);
    font-size: var(--fs-xs);
    line-height: 1.55;
}

.game-card__tag {
    display: block;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 2px;
}

.game-card__theme {
    display: block;
    color: var(--ink-soft);
}

.game-card__feature {
    display: block;
    color: var(--ink-faint);
    margin-top: 4px;
}

.game-card--top .game-card__name {
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-deep));
    color: var(--on-gold);
}

/* Badge lives on the artwork itself, not squeezed into the name-plate row
   next to the title — at 2-column mobile widths, the title and a "Top
   Pick" label sharing one flex row both wrapped and collided. */
.game-card--top {
    position: relative;
}

.game-card--top::before {
    content: "\2605" " Top Pick";
    position: absolute;
    /* Kept inside the card's own edges — .game-card clips overflow (to
       contain the image's hover-zoom), so a negative offset here was
       getting cut off instead of overlapping the corner. */
    top: 14px;
    left: 6px;
    z-index: 2;
    background: linear-gradient(135deg, var(--gold-pale), var(--gold) 55%, var(--gold-deep));
    color: var(--on-gold);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px 5px 16px;
    border-radius: 3px;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5);
    /* Angled and corner-flush like an applied sticker, rather than a
       neatly inset pill floating over the artwork. */
    transform: rotate(-8deg);
    transform-origin: left center;
}

.game-card__placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    background: var(--surface);
    color: var(--ink-faint);
}

.game-card__placeholder svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--ink-faint);
    stroke-width: 1.5;
}

.game-card__placeholder span {
    font-size: var(--fs-xs);
    text-align: center;
    padding-inline: var(--sp-3);
}

/* -------------------------------------------------------------
   9b. BENEFIT GRID — flat icon cards
   ------------------------------------------------------------- */
.benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--line-strong);
    border: 2px solid var(--line-strong);
    margin-top: var(--sp-5);
}

@media (min-width: 640px) {
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .benefit-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    background: var(--surface);
    padding: var(--sp-5);
}

.benefit-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--gold-deep);
    color: var(--gold);
    margin-bottom: var(--sp-3);
}

.benefit-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card h3 {
    font-size: 1rem;
    margin-bottom: var(--sp-2);
}

.benefit-card p {
    font-size: var(--fs-sm);
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   10. FAQ ACCORDION — flat signage list
   ------------------------------------------------------------- */
.faq {
    border-top: 2px solid var(--line-strong);
    margin-top: var(--sp-5);
}

.faq__item {
    border-bottom: 2px solid var(--line-strong);
}

.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--sp-4) 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--on-gold);
    background: var(--gold);
    transition: transform 0.3s ease;
}

.faq__item[open] summary::after {
    /* Rotating a square by 45deg grows its footprint by ~1.41x, which can
       poke past the edge it's flush against — scaling down by the inverse
       keeps the rotated diamond inside the original box's bounds. */
    transform: rotate(45deg) scale(0.7071);
}

.faq__item summary:hover {
    color: var(--gold);
}

.faq__body {
    padding: 0 0 var(--sp-5);
    max-width: 68ch;
}

.faq__body p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   11. CTA STRIP (register / login, apk)
   ------------------------------------------------------------- */
.cta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}

/* -------------------------------------------------------------
   12. ROUTE NAV — fixed interactive station index (desktop)
   ------------------------------------------------------------- */
.route-nav {
    position: fixed;
    right: var(--sp-5);
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.route-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    color: var(--ink-faint);
}

.route-nav a:hover {
    color: var(--ink);
}

.route-nav__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink-faint);
    border: 2px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.route-nav__label {
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: 5px 10px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    pointer-events: none;
}

.route-nav a:hover .route-nav__label,
.route-nav a.is-active .route-nav__label {
    opacity: 1;
    transform: translateX(0);
}

.route-nav a.is-active .route-nav__dot {
    background: var(--gold);
    border-color: var(--on-gold);
    transform: scale(1.3);
}

.route-nav a.is-active {
    color: var(--ink);
}

/* The label carries its own solid background, so it can safely float over
   page content on hover/active without needing empty margin to sit in. */
@media (max-width: 1023px) {
    .route-nav {
        display: none;
    }
}

/* -------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------- */
.site-footer {
    position: relative;
    border-top: 2px solid var(--gold);
    padding-block: var(--sp-7) var(--sp-5);
    margin-top: var(--sp-8);
}

/* A terminus stop sitting on the divider line — the route ends here,
   same visual language as a station marker on the rail. */
.footer-terminus {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--bg);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

@media (min-width: 640px) {
    .footer-top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--sp-7);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    max-width: 320px;
}

.footer-brand img {
    height: 32px;
    width: auto;
}

.footer-brand p {
    font-size: var(--fs-sm);
    color: var(--ink);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-7);
}

@media (min-width: 640px) {
    .footer-links {
        padding-left: var(--sp-7);
        border-left: 1px solid var(--line);
    }
}

.footer-nav-col h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    margin-bottom: var(--sp-4);
}

.footer-nav-col h3::before {
    content: "";
    width: 14px;
    height: 2px;
    background: var(--gold);
}

.footer-nav-col a {
    display: block;
    color: var(--ink);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-3);
}

.footer-nav-col a:hover {
    color: var(--gold);
}

.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
    .footer-bottom-bar {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--sp-6);
    }
}

.footer-bottom-bar__notice {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
}

.age-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 3px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: var(--fs-sm);
}

.disclaimer {
    font-size: var(--fs-xs);
    color: var(--ink);
    line-height: 1.6;
    max-width: 52ch;
}

.footer-copyright {
    font-size: var(--fs-xs);
    color: var(--ink);
}

@media (min-width: 768px) {
    .footer-copyright {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* -------------------------------------------------------------
   14. UTILITIES
   ------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.muted {
    color: var(--ink-faint);
}

/* Matches the logo's gold wordmark, for brand mentions inside headings —
   with the same warm glow the logo's lettering has. */
.text-gold {
    color: var(--gold);
    text-shadow: 0 0 6px rgba(242, 169, 0, 0.4);
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.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;
}

/* -------------------------------------------------------------
   16. SCROLL REVEAL
   ------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.img-reveal {
    overflow: hidden;
}

.img-reveal img {
    transform: translateX(30px);
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.img-reveal.is-visible img {
    transform: none;
    opacity: 1;
}

/* -------------------------------------------------------------
   17. MOTION PREFERENCES
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}