/* ============================================
   REALZ CASINO - DESIGN SYSTEM
   Anime-manga maximalist · Egyptian motif
   Dark-only brand palette · Mobile-first
   ============================================ */

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }

[class*="grid"] > *, [class*="flex"] > * { min-width: 0; }

pre, code, .code-block, [class*="code"] { max-width: 100%; overflow-x: auto; }
pre code, .code-block code { display: block; min-width: 0; }

.table-wrapper, [class*="table-"] { max-width: 100%; overflow-x: auto; }

p, li, td, th { overflow-wrap: break-word; }

input, textarea, select { max-width: 100%; }

section { overflow: clip; }

/* ============================================
   RESET & BASE
   ============================================ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 60% 40% at 80% -10%, rgba(245, 184, 39, 0.10), transparent 70%),
        radial-gradient(ellipse 50% 30% at 10% 110%, rgba(26, 31, 61, 0.55), transparent 70%),
        linear-gradient(180deg, #060914 0%, #0a0e1f 100%);
    background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary-2); }

ul, ol { padding-left: 1.2rem; }

p { margin: 0 0 1rem; }

::selection { background: var(--primary); color: var(--primary-foreground); }

.skip-link {
    position: absolute;
    left: -10000px;
    top: 8px;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* ============================================
   TYPOGRAPHY - Bangers (display) · Cinzel (eyebrow) · Noto Sans (body)
   ============================================ */
h1, h2, h3, h4 {
    font-family: "Bangers", "Noto Sans", system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: var(--primary);
    text-transform: uppercase;
    margin: 0 0 .6em;
    text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 18px rgba(245, 184, 39, 0.25);
}

h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: clamp(24px, 4.5vw, 34px); }
h3 { font-size: clamp(20px, 3.2vw, 24px); }
h4 { font-size: 18px; letter-spacing: .06em; }

.eyebrow, .cinzel {
    font-family: "Cinzel", "Noto Sans", serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 14px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 12px;
}

strong, b { color: var(--primary-2); font-weight: 700; }

blockquote {
    margin: 1.5rem 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: rgba(245, 184, 39, 0.06);
    color: var(--foreground);
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-style: normal;
    color: var(--muted-foreground);
}

/* ============================================
   LAYOUT - Containers, sections, max-width wrappers
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
@media (min-width: 768px) {
    .container { padding: 0 var(--space-lg); }
}

.section {
    padding: var(--space-2xl) 0;
    position: relative;
}
@media (min-width: 1024px) {
    .section { padding: var(--space-3xl) 0; }
}

.section-narrow { max-width: 860px; margin: 0 auto; }
.section-text { max-width: 800px; margin: 0 auto; }

.section-head {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.section-head .eyebrow { display: block; }
.section-head p { color: var(--muted-foreground); max-width: 640px; margin: 12px auto 0; }

/* ============================================
   BUTTONS - Primary (gold, pulsing), Ghost, XL
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: "Bangers", system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.btn:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(180deg, #ffd862 0%, #f5b827 60%, #c8932b 100%);
    color: var(--primary-foreground);
    box-shadow: 0 6px 20px rgba(245, 184, 39, 0.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245, 184, 39, 0.55), inset 0 1px 0 rgba(255,255,255,.4); color: var(--primary-foreground); }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-ghost:hover { background: rgba(245, 184, 39, 0.12); color: var(--primary-2); }

.btn-xl { min-height: 56px; padding: 16px 30px; font-size: 22px; }
.btn-card { width: 100%; min-height: 44px; font-size: 16px; padding: 10px 18px; }

.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(245, 184, 39, 0.35), inset 0 1px 0 rgba(255,255,255,.4); }
    50% { box-shadow: 0 6px 20px rgba(245, 184, 39, 0.35), 0 0 0 10px rgba(245, 184, 39, 0.08), inset 0 1px 0 rgba(255,255,255,.4); }
}
.btn-pulse { animation: goldPulse 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .btn-pulse { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================
   HEADER - Fixed, dark, gold underglow
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 9, 20, 0.92);
    border-bottom: 1px solid var(--border-gold);
    height: var(--header-h);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
@media (min-width: 768px) {
    .header-inner { padding: 0 var(--space-lg); }
}
.header-glow {
    position: absolute;
    left: 0; right: 0; bottom: -20px;
    height: 20px;
    background: linear-gradient(180deg, rgba(245,184,39,0.25), transparent);
    pointer-events: none;
}

/* push body content below fixed header */
main { padding-top: var(--header-h); }

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--foreground);
    font-weight: 700;
}
.brand-mark {
    position: relative;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1f3d, #0a0e1f);
    border: 1px solid var(--border-gold);
    display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 0 14px rgba(245,184,39,.4);
    flex-shrink: 0;
}
.brand-eye {
    width: 18px; height: 12px;
    border-radius: 50% 50% 0 0;
    background: radial-gradient(circle at 50% 70%, var(--primary-2), var(--primary) 60%, transparent 70%);
    display: block;
    position: relative;
    margin-top: -2px;
}
.brand-eye::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 6px; height: 6px;
    background: #0a0e1f; border-radius: 50%;
    transform: translate(-50%, -30%);
}
.brand-claw {
    position: absolute;
    bottom: 4px; right: 4px;
    width: 8px; height: 8px;
    background: var(--accent-2);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 30% 50%);
    transform: rotate(-30deg);
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: "Bangers", sans-serif;
    font-size: 22px;
    color: var(--primary);
    letter-spacing: .04em;
}
.brand-sub {
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--muted-foreground);
    text-transform: uppercase;
}

/* Hamburger Toggle */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px; height: 48px;
    background: transparent;
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
}

/* Nav */
.main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--background);
    background-image:
        radial-gradient(circle at 80% 0%, rgba(245,184,39,.08), transparent 60%),
        linear-gradient(180deg, #0a0e1f 0%, #060914 100%);
    z-index: 999;
    padding: var(--space-xl) var(--space-md);
    overflow-y: auto;
    flex-direction: column;
    gap: var(--space-lg);
}
.main-nav.is-open { display: flex; }

.nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--foreground);
    font-family: "Bangers", sans-serif;
    font-size: 22px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
}
.nav-list a:hover { background: rgba(245,184,39,.08); color: var(--primary); border-color: var(--border-gold); }

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--space-md);
}
.nav-actions .btn { width: 100%; }

@media (min-width: 1024px) {
    .main-nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        align-items: center;
        background: transparent;
        background-image: none;
        padding: 0;
        gap: var(--space-lg);
        overflow: visible;
    }
    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }
    .nav-list a {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 16px;
    }
    .nav-actions {
        flex-direction: row;
        margin-top: 0;
    }
    .nav-actions .btn { width: auto; min-height: 40px; padding: 8px 18px; font-size: 14px; }
    .nav-actions .btn-xl { font-size: 16px; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #060914 0%, #03050d 100%);
    border-top: 1px solid var(--border-gold);
    padding: var(--space-2xl) 0 0;
    margin-top: var(--space-3xl);
    color: var(--foreground);
}
.footer-petals {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(245,184,39,.08), transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(245,184,39,.06), transparent 50%);
    pointer-events: none;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .footer-inner {
        padding: 0 var(--space-lg);
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}
.footer-col { min-width: 0; }
.footer-tag { color: var(--muted-foreground); font-size: 15px; margin: 12px 0 18px; }
.footer-heading {
    font-family: "Bangers", sans-serif;
    font-size: 18px;
    color: var(--primary);
    letter-spacing: .08em;
    margin: 0 0 14px;
}
.footer-heading-sm { font-size: 14px; margin-top: 18px; }
.footer-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    gap: 8px;
}
.footer-links a { color: var(--foreground); font-size: 15px; }
.footer-links a:hover { color: var(--primary); }

.payment-row {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.pay-chip {
    display: inline-flex; align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(245,184,39,.08);
    border: 1px solid var(--border-gold);
    color: var(--foreground);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
}

.license-line { color: var(--muted-foreground); font-size: 13px; line-height: 1.5; margin: 0; }

.brand-footer { margin-bottom: 8px; }

.trust-badges-row {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.trust-pill {
    background: rgba(245,184,39,.10);
    border: 1px solid var(--border-gold);
    color: var(--foreground);
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}
.trust-pill strong { color: var(--primary); margin-right: 4px; }
.age-pill { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.5); color: #ffb4b4; }

.footer-bottom {
    margin-top: var(--space-xl);
    padding: 18px var(--space-md);
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.5;
}
.footer-bottom .hotline { color: var(--primary); font-weight: 700; }

/* ============================================
   COMPONENT - CTA BANNER (Hero & section CTA)
   ============================================ */
.cta-banner {
    position: relative;
    padding: var(--space-2xl) var(--space-md);
    margin: var(--space-xl) 0;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 80% 60% at 80% 20%, rgba(245,184,39,.18), transparent 60%),
        linear-gradient(180deg, #121a33 0%, #060914 100%);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-card), 0 0 60px rgba(245,184,39,.08);
    overflow: hidden;
}
.cta-banner__petals {
    position: absolute; inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(245,184,39,.10) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(245,184,39,.08) 0 1px, transparent 2px),
        radial-gradient(circle at 90% 20%, rgba(245,184,39,.10) 0 1px, transparent 2px);
    background-size: 240px 240px, 320px 320px, 200px 200px;
}
.cta-banner__inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 768px) {
    .cta-banner { padding: var(--space-3xl) var(--space-xl); }
    .cta-banner__inner { grid-template-columns: 1fr 1.2fr; }
}

.cta-banner__mascot {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 50%, rgba(245,184,39,.25) 0%, rgba(245,184,39,.05) 40%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
}
.mascot-img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(245,184,39,.35));
    position: relative; z-index: 2;
}

.mascot-fallback {
    position: relative;
    width: 70%; height: 70%;
}
.mascot-aura {
    position: absolute; inset: -10%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(245,184,39,.4) 90deg, transparent 180deg, rgba(245,184,39,.3) 270deg, transparent 360deg);
    border-radius: 50%;
    filter: blur(20px);
    animation: vortexSpin 12s linear infinite;
}
.mascot-eye {
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, 0);
    width: 60%; aspect-ratio: 2 / 1;
    background: radial-gradient(ellipse at 50% 70%, var(--primary-2), var(--primary) 50%, transparent 80%);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 40px rgba(245,184,39,.6);
}
.mascot-eye::after {
    content: "";
    position: absolute; left: 50%; top: 60%;
    width: 30%; aspect-ratio: 1; background: #0a0e1f;
    border-radius: 50%;
    transform: translate(-50%, -30%);
}
.mascot-crab {
    position: absolute;
    bottom: 18%; right: 10%;
    width: 36%; aspect-ratio: 1;
    background: radial-gradient(circle at 40% 30%, var(--accent-2), var(--accent) 70%);
    border-radius: 40% 40% 50% 50%;
    box-shadow: 0 0 30px rgba(239,68,68,.5);
}
.mascot-crab::before, .mascot-crab::after {
    content: "";
    position: absolute;
    width: 30%; height: 60%;
    background: var(--accent);
    border-radius: 50% 50% 20% 20%;
    top: -30%;
}
.mascot-crab::before { left: 15%; transform: rotate(-25deg); }
.mascot-crab::after { right: 15%; transform: rotate(25deg); }

@keyframes vortexSpin {
    to { transform: rotate(360deg); }
}

/* Manga speed lines radiating from mascot on scroll into view */
.speed-lines {
    position: absolute; inset: 0;
    background:
        repeating-conic-gradient(from 0deg at 50% 50%,
            transparent 0deg, rgba(245,184,39,.15) 1deg, transparent 4deg, transparent 14deg);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .8s ease, transform .8s ease;
    pointer-events: none;
}
.cta-banner.is-visible .speed-lines { opacity: 1; transform: scale(1); }

.cta-banner__title {
    font-size: clamp(28px, 5.5vw, 48px);
    line-height: 1.05;
    margin: 0 0 14px;
    text-shadow: 0 3px 0 rgba(0,0,0,.6), 0 0 30px rgba(245,184,39,.3);
}
.cta-banner__subtitle {
    color: var(--foreground);
    font-size: 17px;
    margin: 0 0 24px;
    max-width: 56ch;
}
.cta-banner__cta { width: 100%; }
@media (min-width: 480px) {
    .cta-banner__cta { width: auto; }
}
.cta-banner__micro {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted-foreground);
    letter-spacing: .04em;
}

.cta-banner--compact { padding: var(--space-xl) var(--space-md); }
.cta-banner--epic {
    background:
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(239,68,68,.18), transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(245,184,39,.22), transparent 70%),
        linear-gradient(180deg, #1a0a14 0%, #060914 100%);
}

/* ============================================
   COMPONENT - INFO CARD
   ============================================ */
.info-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a2447 0%, #121a33 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    min-width: 0;
    height: 100%;
    box-shadow: var(--shadow-card);
}
.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 14px 32px rgba(0,0,0,.55), 0 0 32px rgba(245,184,39,.25);
    cursor: pointer;
}
.info-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1f3d, #060914);
    overflow: hidden;
}
.info-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.info-card:hover .info-card__img { transform: scale(1.05); }
.info-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(245,184,39,.35);
    font-size: 64px;
    background: radial-gradient(circle at 50% 50%, rgba(245,184,39,.12), transparent 70%);
}
.info-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: "Bangers", sans-serif;
    font-size: 14px;
    letter-spacing: .08em;
    padding: 6px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.info-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
@media (min-width: 1024px) {
    .info-card__body { padding: 28px; }
}
.info-card__title {
    font-size: 22px;
    margin: 0;
}
.info-card__desc {
    color: var(--foreground);
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}
.info-card__meta {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: auto;
}
.info-card__meta .chip {
    background: rgba(245,184,39,.10);
    border: 1px solid var(--border-gold);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.info-card .btn-card { margin-top: 4px; }

/* card grids */
.card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* tone variants */
.info-card--gold {
    border-color: var(--border-gold);
    background: linear-gradient(180deg, #1f2747 0%, #15193a 100%);
}
.info-card--accent { border-color: rgba(239,68,68,.45); }

/* ============================================
   COMPONENT - STAT BLOCK
   ============================================ */
.stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

.stat-block {
    background: linear-gradient(180deg, #1a1f3d 0%, #0e1228 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 0 24px rgba(245,184,39,.05);
    min-width: 0;
}
.stat-block::after {
    content: "";
    position: absolute;
    left: 20%; right: 20%; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    filter: blur(2px);
    opacity: .6;
}
.stat-block__eyebrow {
    display: block;
    font-family: "Cinzel", serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 6px;
}
.stat-block__number {
    display: block;
    font-family: "Bangers", sans-serif;
    font-size: clamp(40px, 9vw, 64px);
    color: var(--primary);
    line-height: 1;
    letter-spacing: .03em;
    transform: rotate(-2deg);
    text-shadow: 0 3px 0 rgba(0,0,0,.55), 0 0 24px rgba(245,184,39,.45);
    margin: 4px 0 8px;
}
.stat-block__context {
    display: block;
    color: var(--foreground);
    font-size: 14px;
    line-height: 1.4;
}
.stat-block__source {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted-foreground);
    letter-spacing: .04em;
}

/* ============================================
   COMPONENT - FAQ ACCORDION
   ============================================ */
.faq-accordion {
    background: linear-gradient(180deg, #121a33 0%, #0a0e1f 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
}
@media (min-width: 1024px) {
    .faq-accordion { padding: 32px; }
}
.faq-accordion__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}
.faq-accordion__heading { margin: 0 0 4px; }
.faq-accordion__intro { margin: 0; color: var(--muted-foreground); font-size: 15px; }

.faq-pharaoh {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 35%, var(--primary-2), var(--primary) 50%, transparent 70%),
        linear-gradient(135deg, #1a1f3d, #0a0e1f);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 14px rgba(245,184,39,.4);
    position: relative;
}
.faq-pharaoh::after {
    content: "";
    position: absolute; left: 50%; top: 55%;
    width: 12px; height: 12px;
    background: #0a0e1f; border-radius: 50%;
    transform: translate(-50%, -50%);
}

.faq-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
}
.faq-item + .faq-item { border-top: 1px solid var(--border); }

.faq-details {
    padding: 6px 0;
}
.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 4px;
    cursor: pointer;
    list-style: none;
    min-height: 48px;
    font-family: "Bangers", sans-serif;
    font-size: 18px;
    letter-spacing: .04em;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1.25;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: var(--primary-2); }

.faq-icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: relative;
    transition: transform .3s ease, background .25s ease;
}
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: transform .3s ease, opacity .25s ease;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }

.faq-details[open] .faq-icon { background: rgba(245,184,39,.15); transform: rotate(180deg); }
.faq-details[open] .faq-icon::after { opacity: 0; }

.faq-answer {
    padding: 4px 4px 18px;
    color: var(--foreground);
    font-size: 17px;
    line-height: 1.6;
    animation: faqReveal .5s cubic-bezier(.2,.8,.2,1);
}
.faq-answer p { margin: 0 0 16px; }
.faq-answer p:last-child { margin: 0; }
.faq-answer a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245,184,39,.4); }
.faq-answer a:hover { text-decoration-color: var(--primary); color: var(--primary-2); }
.faq-answer ul, .faq-answer ol { margin: 0 0 16px; padding-left: 22px; }
.faq-answer li { margin-bottom: 6px; }

@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); }
    to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

/* ============================================
   ENGAGEMENT PATTERNS - TL;DR, Callout, Pull Quote, Stat Highlight
   ============================================ */
.tldr {
    background: linear-gradient(180deg, rgba(245,184,39,.08), rgba(245,184,39,.02));
    border: 1px solid var(--border-gold);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 0 0 var(--space-xl);
}
.tldr h3 {
    font-family: "Cinzel", serif;
    font-size: 14px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 8px;
    text-shadow: none;
}
.tldr p { margin: 0; color: var(--foreground); }

.callout {
    background: rgba(26,31,61,.5);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
}
.callout--accent { border-left-color: var(--accent); background: rgba(239,68,68,.08); }
.callout--success { border-left-color: #4ade80; }
.callout strong { color: var(--primary-2); }

.pull-quote {
    margin: var(--space-xl) auto;
    max-width: 720px;
    text-align: center;
    font-family: "Bangers", sans-serif;
    font-size: clamp(22px, 3.6vw, 30px);
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 22px;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    text-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.pull-quote cite {
    display: block;
    margin-top: 10px;
    font-family: "Cinzel", serif;
    font-size: 13px;
    letter-spacing: .25em;
    color: var(--muted-foreground);
    font-style: normal;
}

.stat-highlight {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}
.stat-highlight__num {
    font-family: "Bangers", sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    color: var(--primary);
    text-shadow: 0 0 20px rgba(245,184,39,.4);
}
.stat-highlight__lbl {
    font-size: 13px;
    color: var(--muted-foreground);
    letter-spacing: .12em;
    text-transform: uppercase;
}

details.disclosure {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 12px 0;
    background: rgba(26,31,61,.4);
}
details.disclosure summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after {
    content: "+";
    color: var(--primary);
    font-family: "Bangers", sans-serif;
    font-size: 24px;
    transition: transform .25s ease;
}
details.disclosure[open] summary::after { content: "−"; }
details.disclosure[open] { background: rgba(245,184,39,.06); border-color: var(--border-gold); }

/* ============================================
   CRO PATTERNS - Trust badges, comparison table, social proof
   ============================================ */
.cta-section {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background: linear-gradient(180deg, rgba(245,184,39,.08), transparent);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    margin: var(--space-2xl) 0;
}
.cta-section h2 { margin: 0 0 12px; }
.cta-section p { color: var(--muted-foreground); margin: 0 auto 22px; max-width: 560px; }
.cta-section .btn { margin: 0 auto; }
.cta-section small { display: block; margin-top: 12px; color: var(--muted-foreground); font-size: 13px; }

.trust-row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 12px;
    padding: 18px 0;
}
.trust-row .trust-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    color: var(--foreground);
    background: rgba(245,184,39,.06);
    font-size: 14px;
    font-weight: 600;
}
.trust-row .trust-item strong { color: var(--primary); }

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    font-size: 15px;
}
.compare-table thead {
    background: linear-gradient(180deg, #1a2447, #121a33);
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.compare-table th {
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(245,184,39,.04); }
.compare-table .col-recommended {
    background: rgba(245,184,39,.08);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.table-wrapper { margin: 20px 0; border-radius: var(--radius); }
.table-wrapper:focus { outline: 2px solid var(--ring); outline-offset: 3px; }

.testimonial {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.testimonial__quote { color: var(--foreground); font-style: italic; margin: 0 0 12px; }
.testimonial__author { display: flex; align-items: center; gap: 10px; }
.testimonial__avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.testimonial__name { font-weight: 700; color: var(--foreground); display: block; }
.testimonial__meta { color: var(--muted-foreground); font-size: 13px; }

/* ============================================
   ANIMATIONS - Scroll reveal, golden petals
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}
.animate-on-scroll[data-anim="vortex"] {
    transform: translateY(24px) scale(.96) rotate(-1deg);
}
.animate-on-scroll[data-anim="panel"] {
    transform: translateY(24px);
    clip-path: inset(0 100% 0 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), clip-path .8s cubic-bezier(.2,.8,.2,1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
    .mascot-aura { animation: none; }
}

/* Falling golden papyrus petals */
.petals-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.petal {
    position: absolute;
    top: -40px;
    width: 14px; height: 22px;
    background: linear-gradient(135deg, var(--primary-2), var(--primary) 60%, #c8932b);
    border-radius: 60% 40% 60% 40% / 60% 50% 50% 40%;
    opacity: .35;
    filter: drop-shadow(0 0 6px rgba(245,184,39,.5));
    animation: petalFall 16s linear infinite;
}
.petal-1 { left: 8%; animation-delay: 0s; animation-duration: 18s; }
.petal-2 { left: 24%; animation-delay: 3s; animation-duration: 22s; width: 10px; height: 16px; opacity: .25; }
.petal-3 { left: 45%; animation-delay: 6s; animation-duration: 20s; }
.petal-4 { left: 62%; animation-delay: 2s; animation-duration: 24s; width: 12px; height: 18px; opacity: .3; }
.petal-5 { left: 78%; animation-delay: 9s; animation-duration: 17s; }
.petal-6 { left: 92%; animation-delay: 5s; animation-duration: 19s; opacity: .28; }

@keyframes petalFall {
    0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: .35; }
    90% { opacity: .35; }
    100% { transform: translateY(110vh) translateX(40px) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .petal { animation: none; display: none; }
}

/* ============================================
   PAGE-SPECIFIC HELPERS - Hero, providers strip, payments, leaderboard
   ============================================ */

/* Provider/payment strip */
.logo-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}
@media (min-width: 640px) { .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .logo-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo-tile {
    display: flex; align-items: center; justify-content: center;
    min-height: 64px;
    padding: 12px;
    background: rgba(26,31,61,.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted-foreground);
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: .12em;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    transition: color .25s ease, border-color .25s ease, background .25s ease;
    text-decoration: none;
}
.logo-tile:hover { color: var(--primary); border-color: var(--border-gold); background: rgba(245,184,39,.08); }

/* VIP ladder stepper */
.vip-ladder {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    counter-reset: vip;
}
@media (min-width: 768px) { .vip-ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
.vip-tier {
    counter-increment: vip;
    padding: 18px;
    background: linear-gradient(180deg, #1a2447, #121a33);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-card);
}
.vip-tier::before {
    content: counter(vip);
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px;
    background: var(--primary); color: var(--primary-foreground);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: "Bangers", sans-serif;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(245,184,39,.5);
}
.vip-tier h3 { margin: 6px 0 4px; font-size: 18px; color: var(--primary); }
.vip-tier .vip-symbol { font-size: 32px; display: block; margin: 4px 0; }
.vip-tier ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--foreground); }
.vip-tier li { padding: 4px 0; border-top: 1px dashed var(--border); }
.vip-tier li:first-child { border-top: none; }

/* Leaderboard mockup */
.leaderboard {
    background: var(--card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.leaderboard__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(245,184,39,.18), rgba(239,68,68,.18));
    border-bottom: 1px solid var(--border);
}
.leaderboard__title { margin: 0; font-size: 18px; color: var(--primary); }
.leaderboard__countdown {
    background: #b91c1c;
    color: #ffffff;
    font-family: "Bangers", sans-serif;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: .06em;
    animation: goldPulse 2s ease-in-out infinite;
}
.leaderboard table { width: 100%; border-collapse: collapse; font-size: 14px; }
.leaderboard th, .leaderboard td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.leaderboard th { font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-foreground); }
.leaderboard tr:last-child td { border-bottom: none; }
.leaderboard td.rank { font-family: "Bangers", sans-serif; color: var(--primary); font-size: 18px; width: 50px; }
.leaderboard tr.top-1 { background: rgba(245,184,39,.10); }
.leaderboard tr.top-2 { background: rgba(245,184,39,.06); }
.leaderboard tr.top-3 { background: rgba(245,184,39,.04); }

/* Hero common */
.hero {
    padding-top: var(--space-xl);
}
.hero__intro {
    color: var(--muted-foreground);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 22px;
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md);
    display: flex; flex-wrap: wrap; gap: 6px;
    font-size: 13px;
    color: var(--muted-foreground);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--primary); }
.breadcrumbs a { color: var(--muted-foreground); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--foreground); }

/* SEO text block */
.seo-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--foreground);
    font-size: 17px;
    line-height: 1.7;
}
.seo-text h2, .seo-text h3 { text-align: left; }
.seo-text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245,184,39,.4); }

/* Inline anchor pill list (for cross-linking) */
.cross-links {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}
.cross-links a {
    display: inline-flex; align-items: center;
    padding: 6px 12px;
    background: rgba(26,31,61,.6);
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.cross-links a:hover { background: rgba(245,184,39,.12); color: var(--primary-2); }

/* Bonus stub page (bonus.html) */
.bonus-stub {
    min-height: calc(100vh - var(--header-h));
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}
.bonus-stub__inner {
    max-width: 520px;
    background: linear-gradient(180deg, #121a33, #060914);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-card), 0 0 60px rgba(245,184,39,.18);
}
.bonus-stub__mascot {
    width: 180px; height: 180px;
    margin: 0 auto var(--space-md);
    position: relative;
}
.spinner {
    width: 56px; height: 56px;
    margin: var(--space-md) auto 0;
    border-radius: 50%;
    border: 3px solid rgba(245,184,39,.18);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.text-center { text-align: center; }
.muted { color: var(--muted-foreground); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.full-bleed {
    width: 100vw; max-width: 100vw;
    margin-left: 50%; transform: translateX(-50%);
}

/* Hieroglyph decorative */
.hieroglyph {
    font-family: "Noto Sans", sans-serif;
    color: rgba(245,184,39,.35);
}

/* Focus visibility */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }