/* ============================================
   REALZ CASINO - DESIGN SYSTEM
   Retro-Hollywood 1920s Egyptian Expedition
   Sepia, Gold, Torch-lit, Art Deco
   ============================================ */

/* ============================================
   THEME VARIANTS - torch-lit (dark) / daylight (light parchment)
   Default = dark. Light variant warms tones to sepia/parchment.
   ============================================ */
html.theme-light {
    --background: #f5e8cf;
    --foreground: #2a1810;
    --card: #efddb8;
    --card-foreground: #2a1810;
    --popover: #efddb8;
    --popover-foreground: #2a1810;
    --primary: #b8862c;
    --primary-foreground: #fff8e8;
    --primary-bright: #d4a44a;
    --secondary: #8b5a3c;
    --secondary-foreground: #fff8e8;
    --muted: #e6d3a8;
    --muted-foreground: #5c4226;
    --accent: #2a8b8b;
    --accent-foreground: #fff8e8;
    --border: #c9a86a;
    --input: #efddb8;
    --ring: #b8862c;
    --parchment: #fff8e8;
    --parchment-dark: #efddb8;
    --espresso: #2a1810;
    --gold: #b8862c;
    --gold-bright: #d4a44a;
    --sepia-deep: #8b5a3c;
    --shadow-sm: 0 2px 8px rgba(60, 30, 10, 0.18);
    --shadow-md: 0 8px 24px rgba(60, 30, 10, 0.22);
    --shadow-lg: 0 16px 48px rgba(60, 30, 10, 0.28);
    --shadow-gold: 0 0 24px rgba(184, 134, 44, 0.45);
}
html.theme-light body {
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(212, 164, 74, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 155, 61, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #f5e8cf 0%, #e8d9b8 100%);
}
html.theme-light .site-header {
    background: rgba(245, 232, 207, 0.94);
}
html.theme-light h1,
html.theme-light h2,
html.theme-light h3,
html.theme-light h4,
html.theme-light h5,
html.theme-light h6 {
    color: var(--sepia-deep);
    text-shadow: 0 2px 8px rgba(184, 134, 44, 0.18);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1.5px solid var(--gold);
    background: rgba(212, 164, 74, 0.08);
    color: var(--gold-bright);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    transition: background 280ms ease-out, transform 280ms ease-out, box-shadow 280ms ease-out;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(212, 164, 74, 0.18);
    box-shadow: var(--shadow-gold);
    transform: rotate(-12deg);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}
.theme-toggle .theme-icon { display: none; }
html.theme-dark .theme-toggle .theme-icon-dark { display: inline; }
html.theme-light .theme-toggle .theme-icon-light { display: inline; }

@media (min-width: 1024px) {
    .theme-toggle { margin-left: var(--space-sm); }
}

/* ============================================
   RESET & 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 { max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 0; }

p, li, td, th { overflow-wrap: break-word; }
input, textarea, select { max-width: 100%; }

section { overflow: clip; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "Inter Tight", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(212, 164, 74, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 155, 61, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, #1a0f08 0%, #14090a 100%);
    background-attachment: fixed;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.75rem 1rem;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ============================================
   TYPOGRAPHY
   Limelight (Art Deco display) + Cormorant Garamond (italic intertitle) + Inter Tight (body)
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: "Limelight", "Cormorant Garamond", serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    line-height: 1.15;
    margin: 0 0 var(--space-md);
    text-shadow: 0 2px 12px rgba(212, 164, 74, 0.25);
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem); letter-spacing: 0.05em; }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1.5vw + 1rem, 2.25rem); }
h4 { font-size: clamp(1.15rem, 0.5vw + 1rem, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; letter-spacing: 0.08em; }

p { margin: 0 0 var(--space-md); max-width: 68ch; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 280ms ease-out;
}
a:hover { color: var(--gold-bright); text-decoration: underline; }
a:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Inline links inside paragraphs / prose / callouts / faq answers
   must be visually distinguishable without relying on color alone. */
.prose p a,
.prose li a,
.callout p a,
.callout li a,
.faq-answer p a,
.faq-answer li a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.prose p a:hover,
.prose li a:hover,
.callout p a:hover,
.callout li a:hover,
.faq-answer p a:hover,
.faq-answer li a:hover {
    text-decoration-thickness: 2px;
}

.deck, .intertitle {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: clamp(1.125rem, 0.5vw + 1rem, 1.5rem);
    color: var(--parchment);
    line-height: 1.5;
}

.eyebrow {
    font-family: "Inter Tight", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8125rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.text-center { text-align: center; }

/* ============================================
   LAYOUT - containers & sections
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--space-md);
}
@media (min-width: 768px) {
    .container { padding-inline: var(--space-xl); }
}

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

.section-head {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.section-head .deck { margin: 0 auto; max-width: 60ch; }

/* Decorative gilded double rule */
.gilded-rule {
    height: 8px;
    border: none;
    background:
        linear-gradient(180deg, transparent 0, transparent 2px, var(--gold) 2px, var(--gold) 3px, transparent 3px, transparent 5px, var(--gold) 5px, var(--gold) 6px, transparent 6px);
    margin: var(--space-xl) auto;
    max-width: 240px;
    opacity: 0.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    min-height: 48px;
    font-family: "Limelight", serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: transform 280ms ease-out, box-shadow 280ms ease-out, background 280ms ease-out, color 280ms ease-out;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
    color: var(--espresso);
    border-color: var(--gold-bright);
    box-shadow: 0 4px 16px rgba(212, 164, 74, 0.35);
    font-weight: 600;
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    transition: left 700ms ease-out;
    pointer-events: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 164, 74, 0.55);
    color: var(--espresso);
}
.btn-primary:hover::before { left: 125%; }

.btn-ghost {
    background: transparent;
    color: var(--gold-bright);
    border-color: var(--gold);
}
.btn-ghost:hover {
    background: rgba(212, 164, 74, 0.12);
    color: var(--gold-bright);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    min-height: 56px;
    font-size: 1.125rem;
}

.btn-block { width: 100%; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(20, 9, 10, 0.92);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
@media (min-width: 1024px) {
    .site-header { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

body { padding-top: 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: var(--space-md);
}
@media (min-width: 768px) {
    .header-inner { padding: 0 var(--space-xl); }
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--gold-bright);
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--gold-bright); }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-name {
    font-family: "Limelight", serif;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--parchment);
    line-height: 1;
}
.brand-accent { color: var(--gold); margin-left: 0.25em; }
@media (min-width: 768px) {
    .brand-name { font-size: 1.375rem; }
}

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

/* Mobile nav drawer */
.main-nav {
    display: none;
}
.main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--background);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(212, 164, 74, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #1a0f08 0%, #100805 100%);
    z-index: 999;
    overflow-y: auto;
    padding: var(--space-xl) var(--space-md);
    border-top: 2px solid var(--gold);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
.nav-list li {
    border-bottom: 1px solid rgba(212, 164, 74, 0.2);
}
.nav-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0.75rem 0.5rem;
    font-family: "Limelight", serif;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--parchment);
    text-decoration: none;
    transition: color 280ms ease-out, padding-left 280ms ease-out;
}
.nav-link:hover, .nav-link:focus-visible {
    color: var(--gold-bright);
    padding-left: 1rem;
    text-decoration: none;
}

.nav-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--gold);
}

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .main-nav,
    .main-nav.is-open {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        border: none;
        align-items: center;
        gap: var(--space-xl);
        overflow: visible;
    }
    .nav-list {
        flex-direction: row;
        gap: var(--space-md);
    }
    .nav-list li { border: none; }
    .nav-link {
        min-height: 40px;
        font-size: 0.9375rem;
        padding: 0.5rem 0.25rem;
        position: relative;
    }
    .nav-link:hover { padding-left: 0.25rem; }
    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0; left: 50%;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: width 280ms ease-out, left 280ms ease-out;
    }
    .nav-link:hover::after { width: 100%; left: 0; }
    .nav-cta {
        flex-direction: row;
        margin: 0;
        padding: 0;
        border: none;
        gap: var(--space-sm);
    }
    .nav-cta .btn { padding: 0.625rem 1.125rem; min-height: 44px; font-size: 0.875rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, #100805 0%, #06030a 100%);
    border-top: 3px double var(--gold);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
    color: var(--parchment);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
@media (min-width: 768px) { .footer-inner { padding: 0 var(--space-xl); } }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}
@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-tagline {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--muted-foreground);
    font-size: 1rem;
    margin-top: var(--space-sm);
}

.footer-heading {
    font-family: "Limelight", serif;
    color: var(--gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(212, 164, 74, 0.3);
    padding-bottom: var(--space-xs);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-links a {
    color: var(--parchment);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 280ms ease-out, padding-left 280ms ease-out;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--gold-bright);
    padding-left: 4px;
    text-decoration: none;
}

.payments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.payments-list li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--parchment);
    letter-spacing: 0.04em;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(212, 164, 74, 0.25);
    border-bottom: 1px solid rgba(212, 164, 74, 0.25);
    align-items: center;
    justify-content: center;
    text-align: center;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.trust-badge a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.badge-circle, .badge-license, .badge-help {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--gold);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}
.footer-bottom p { margin: 0.25rem 0; }
.footer-disclaimer { font-style: italic; opacity: 0.85; }

/* ============================================
   HERO - generic hero pattern used on all pages
   ============================================ */
.hero {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    overflow: clip;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255, 155, 61, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(212, 164, 74, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #1a0f08 0%, #14090a 100%);
    border-bottom: 1px solid rgba(212, 164, 74, 0.25);
}
@media (min-width: 1024px) {
    .hero { padding: var(--space-4xl) 0; }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
.hero-content h1 {
    margin-bottom: var(--space-md);
}
.hero-content .deck {
    margin-bottom: var(--space-lg);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ============================================
   GILDED ART DECO FRAMES - universal poster border
   ============================================ */
.deco-frame, .card-frame {
    position: relative;
    background: var(--card);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}
.deco-frame::before, .card-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 164, 74, 0.5);
    border-radius: 4px;
    pointer-events: none;
}
.deco-frame::after, .card-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(212, 164, 74, 0.0) 0%, rgba(212, 164, 74, 0.0) 50%, rgba(212, 164, 74, 0.15) 100%);
}

/* Corner ornaments */
.deco-frame .corner, .card-frame .corner {
    position: absolute;
    width: 16px; height: 16px;
    border-color: var(--gold-bright);
    border-style: solid;
    border-width: 0;
}

/* ============================================
   BONUS CARD
   ============================================ */
.bonus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
@media (min-width: 640px) {
    .bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .bonus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

.bonus-card {
    transition: transform 280ms ease-out, box-shadow 280ms ease-out;
    height: 100%;
}
.bonus-card:hover {
    transform: translateY(-4px);
}
.bonus-card:hover .card-frame {
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.bonus-card .card-frame {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    background: linear-gradient(180deg, var(--card) 0%, #1f120a 100%);
}
.bonus-card-featured .card-frame {
    border-width: 3px;
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.card-badge {
    position: absolute;
    top: -10px; right: var(--space-md);
    background: var(--gold-bright);
    color: var(--espresso);
    padding: 0.25rem 0.75rem;
    font-family: "Limelight", serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.bonus-card-mascot {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    background:
        radial-gradient(ellipse at center, rgba(255, 155, 61, 0.18) 0%, transparent 70%),
        linear-gradient(180deg, #2a1810 0%, #1a0f08 100%);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.bonus-card-mascot img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
}
.mascot-emblem {
    font-size: 4rem;
    color: var(--gold-bright);
    text-shadow: 0 0 20px rgba(212, 164, 74, 0.6);
}
.torch {
    position: absolute;
    bottom: 6px;
    width: 8px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffb84d 0%, #ff6b1a 80%, #5c2a0a 100%);
    animation: torchflicker 1800ms infinite ease-in-out;
    opacity: 0.8;
}
.torch-left { left: 12px; }
.torch-right { right: 12px; animation-delay: 600ms; }
@keyframes torchflicker {
    0%, 100% { opacity: 0.7; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

.bonus-amount {
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(212, 164, 74, 0.4);
    margin-bottom: var(--space-xs);
}
.bonus-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
    color: var(--gold);
}
.bonus-sub {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--parchment);
    font-size: 1.0625rem;
    margin-bottom: var(--space-md);
}
.bonus-terms {
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
    flex-grow: 1;
}
.bonus-terms li {
    padding: 0.375rem 0 0.375rem 1.25rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    border-bottom: 1px dotted rgba(212, 164, 74, 0.2);
}
.bonus-terms li:last-child { border-bottom: none; }
.bonus-terms li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ============================================
   GAME CARD
   ============================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}
@media (min-width: 640px) {
    .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
}
@media (min-width: 1024px) {
    .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}

.game-card {
    transition: transform 280ms ease-out;
    height: 100%;
}
.game-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.game-card-link:hover { text-decoration: none; }
.game-card-frame {
    background: var(--card);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 280ms ease-out, box-shadow 280ms ease-out, border-color 280ms ease-out;
}
.game-card:hover .game-card-frame {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    border-color: var(--gold-bright);
}
.game-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #2a1810 0%, #1a0f08 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease-out;
}
.game-card:hover .game-card-image img { transform: scale(1.06); }
.game-placeholder {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.6;
}
.game-poster-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, rgba(20, 9, 10, 0.6) 100%),
        radial-gradient(ellipse at top, transparent 40%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.game-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    z-index: 2;
}
.game-card-meta {
    padding: var(--space-md);
    text-align: center;
    border-top: 1px solid rgba(212, 164, 74, 0.3);
}
.game-title {
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}
.game-provider {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-block {
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}
.faq-group-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}
.faq-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-item {
    border-bottom: 1px solid rgba(212, 164, 74, 0.25);
    transition: background 280ms ease-out;
}
.faq-item:last-child { border-bottom: none; }
.faq-item[open] {
    background: rgba(212, 164, 74, 0.06);
    border-left: 3px solid var(--gold-bright);
}
.faq-question {
    list-style: none;
    cursor: pointer;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    line-height: 1.35;
    min-height: 56px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-q-text { flex-grow: 1; }
.faq-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--background);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: "Inter Tight", sans-serif;
    font-weight: 700;
    transition: transform 280ms ease-out;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--gold-bright);
    color: var(--espresso);
}
.faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--parchment);
    font-size: 1rem;
    line-height: 1.7;
}
.faq-answer p { margin: 0 0 var(--space-md); }
.faq-answer p:last-child { margin: 0; }

/* ============================================
   STAT BLOCK
   ============================================ */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
@media (min-width: 640px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
}
@media (min-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
}
.stat-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stat-block {
    background: linear-gradient(180deg, var(--card) 0%, #1f120a 100%);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: transform 280ms ease-out, border-color 280ms ease-out;
}
.stat-block:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}
.stat-number {
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    line-height: 1;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 12px rgba(212, 164, 74, 0.3);
}
.stat-label {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--parchment);
    font-size: 1.0625rem;
}
.stat-source {
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    padding: var(--space-3xl) 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255, 155, 61, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #2a1810 0%, #1a0f08 100%);
    border-top: 4px double var(--gold);
    border-bottom: 4px double var(--gold);
    overflow: clip;
    text-align: center;
}
@media (min-width: 1024px) {
    .cta-banner { padding: var(--space-4xl) 0; }
}
.cta-banner-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}
@media (min-width: 768px) {
    .cta-banner-inner { padding: 0 var(--space-xl); }
}
@media (min-width: 1024px) {
    .cta-banner-inner { grid-template-columns: 1fr 1.5fr; text-align: left; }
}
.cta-banner-mascot {
    display: flex;
    justify-content: center;
}
.cta-banner-mascot img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6));
}
.cta-banner-content { max-width: 640px; }
@media (min-width: 1024px) {
    .cta-banner-content { margin-left: 0; }
}
.cta-headline {
    font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
    margin-bottom: var(--space-md);
    color: var(--gold-bright);
    text-shadow: 0 2px 16px rgba(212, 164, 74, 0.4);
}
.cta-sub {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--parchment);
    font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
    margin-bottom: var(--space-lg);
}
.cta-microcopy {
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    letter-spacing: 0.04em;
}

/* ============================================
   FEATURE STEP
   ============================================ */
.steps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    position: relative;
}
@media (min-width: 768px) {
    .steps-list { gap: var(--space-xl); }
}

.feature-step {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--card);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
    align-items: start;
    position: relative;
    transition: border-color 280ms ease-out;
}
.feature-step:hover { border-color: var(--gold); }
@media (min-width: 768px) {
    .feature-step {
        grid-template-columns: 100px 1fr;
        gap: var(--space-xl);
        padding: 28px;
    }
}

.step-numeral {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-numeral svg {
    position: absolute;
    inset: 0;
}
.step-num-text {
    position: relative;
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(212, 164, 74, 0.4);
}
.step-content { padding-top: 4px; }
.step-title {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}
.step-icon { font-size: 1rem; opacity: 0.8; margin-left: 0.25rem; }
.step-desc {
    color: var(--parchment);
    margin: 0;
    font-size: 1rem;
}

/* ============================================
   ENGAGEMENT PATTERNS
   ============================================ */

/* TL;DR / Summary box */
.tldr {
    background: linear-gradient(135deg, rgba(212, 164, 74, 0.08) 0%, rgba(255, 155, 61, 0.04) 100%);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}
.tldr-label {
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
    display: block;
}
.tldr p:last-child { margin: 0; }

/* Callout box */
.callout {
    background: var(--card);
    border: 1px solid var(--secondary);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}
.callout-warn { border-left-color: var(--torch); }
.callout-tip { border-left-color: var(--accent); }
.callout-title {
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}
.callout p a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Stat highlight (inline) */
.stat-highlight {
    display: inline-block;
    background: rgba(212, 164, 74, 0.12);
    color: var(--gold-bright);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(212, 164, 74, 0.3);
}

/* Pull quote */
.pull-quote {
    margin: var(--space-2xl) 0;
    padding: var(--space-lg) var(--space-md);
    border-top: 3px double var(--gold);
    border-bottom: 3px double var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
    line-height: 1.4;
    text-align: center;
    color: var(--gold-bright);
    quotes: "“" "”";
}
.pull-quote::before { content: open-quote; opacity: 0.6; }
.pull-quote::after { content: close-quote; opacity: 0.6; }
.pull-quote cite {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    font-style: normal;
    color: var(--muted-foreground);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Inter Tight", sans-serif;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-xl) 0;
    font-size: 0.9375rem;
}
.comparison-table thead {
    background: linear-gradient(180deg, var(--gold) 0%, #b8860b 100%);
    color: var(--espresso);
}
.comparison-table th {
    padding: var(--space-md);
    text-align: left;
    font-family: "Limelight", serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.875rem;
}
.comparison-table td {
    padding: var(--space-md);
    border-top: 1px solid rgba(212, 164, 74, 0.2);
    color: var(--parchment);
}
.comparison-table tbody tr:hover { background: rgba(212, 164, 74, 0.05); }
.comparison-table .recommended {
    background: rgba(212, 164, 74, 0.1);
    color: var(--gold-bright);
    font-weight: 600;
}
.comparison-table .col-recommended {
    background: rgba(212, 164, 74, 0.08);
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

/* Trust badges row */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.trust-row-item {
    background: var(--background);
    color: var(--parchment);
    border: 1px solid var(--border);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Provider logo grid */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}
@media (min-width: 640px) {
    .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .provider-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.provider-logo {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 280ms ease-out, border-color 280ms ease-out;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.provider-logo:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

/* Inline anchor links list */
.anchor-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    margin: var(--space-lg) 0;
    padding: 0;
}
.anchor-links li a {
    background: var(--card);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 280ms ease-out, color 280ms ease-out;
    display: inline-block;
}
.anchor-links li a:hover {
    background: var(--gold-bright);
    color: var(--espresso);
    text-decoration: none;
}

/* SEO text block */
.prose {
    max-width: 760px;
    margin: 0 auto;
    color: var(--parchment);
}
.prose h2, .prose h3 { margin-top: var(--space-2xl); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { font-size: 1.0625rem; line-height: 1.75; }
.prose ul, .prose ol {
    margin: var(--space-md) 0;
    padding-left: 1.5rem;
}
.prose li { margin-bottom: var(--space-xs); }
.prose strong { color: var(--gold-bright); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gold { color: var(--gold-bright); }
.text-muted { color: var(--muted-foreground); }
.bg-card { background: var(--card); }
.no-margin { margin: 0; }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

.lead {
    font-size: 1.125rem;
    color: var(--parchment);
    max-width: 65ch;
}

/* Two-column content layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}
@media (min-width: 1024px) {
    .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
    .two-col-reverse > :first-child { order: 2; }
}

/* Full-width media frame */
.media-frame {
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card);
    position: relative;
    box-shadow: var(--shadow-md);
}
.media-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 164, 74, 0.4);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

/* Loader / spinner (used on spin.html) */
.scarab-loader {
    width: 80px;
    height: 80px;
    margin: var(--space-xl) auto;
    border: 4px solid rgba(212, 164, 74, 0.2);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SPIN.HTML - Redirect stub page
   ============================================ */
.spin-stage {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 155, 61, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 90%, rgba(212, 164, 74, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #1a0f08 0%, #100805 100%);
    overflow: clip;
}
.spin-inner {
    width: 100%;
    max-width: 640px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.spin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: var(--space-xl);
}
.spin-brand-name {
    font-family: "Limelight", serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--parchment);
}
.spin-mascots {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    min-height: 180px;
}
.spin-mascot {
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.6));
    animation: spin-float 4s ease-in-out infinite;
}
.spin-mascot-pharao {
    max-height: 220px;
    width: auto;
}
.spin-mascot-crab {
    max-height: 140px;
    width: auto;
    animation-delay: 0.6s;
}
@media (min-width: 768px) {
    .spin-mascot-pharao { max-height: 280px; }
    .spin-mascot-crab { max-height: 180px; }
    .spin-mascots { min-height: 240px; }
}
@keyframes spin-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.spin-frame {
    position: relative;
    background: linear-gradient(180deg, var(--card) 0%, #1f120a 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.spin-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 164, 74, 0.45);
    border-radius: 4px;
    pointer-events: none;
}
.spin-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gold-bright);
    z-index: 2;
}
.spin-corner-tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.spin-corner-tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.spin-corner-bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.spin-corner-br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.spin-eyebrow {
    font-family: "Inter Tight", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8125rem;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 var(--space-sm);
}
.spin-title {
    font-family: "Limelight", serif;
    color: var(--gold-bright);
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 var(--space-md);
    text-shadow: 0 2px 16px rgba(212, 164, 74, 0.4);
}
.spin-deck {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--parchment);
    font-size: 1.125rem;
    margin: 0 0 var(--space-sm);
    max-width: none;
}
.spin-meta {
    color: var(--gold-bright);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 var(--space-md);
}
.spin-microcopy {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    margin: 0;
}
.spin-frame .scarab-loader {
    margin: var(--space-md) auto;
    width: 64px;
    height: 64px;
    border-width: 3px;
}
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.spin-torch {
    position: absolute;
    bottom: 6%;
    width: 14px;
    height: 56px;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffb84d 0%, #ff6b1a 80%, #5c2a0a 100%);
    filter: blur(0.5px);
    animation: torchflicker 1800ms infinite ease-in-out;
    opacity: 0.85;
    z-index: 1;
}
.spin-torch-left { left: 6%; }
.spin-torch-right { right: 6%; animation-delay: 600ms; }
@media (max-width: 480px) {
    .spin-torch { display: none; }
}

/* Page title block (used at top of inner pages) */
.page-title-block {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.page-title-block h1 { margin-bottom: var(--space-sm); }
.breadcrumbs {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.breadcrumbs li::after { content: "›"; margin-left: 0.5rem; color: var(--gold); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--accent); }

/* ============================================
   HOMEPAGE - Three.js scarab stage & extras
   ============================================ */
.scarab-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(255, 155, 61, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, #2a1810 0%, #14090a 100%);
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-lg), inset 0 0 60px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.scarab-stage::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 164, 74, 0.45);
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 3;
}
.scarab-stage canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: auto;
    z-index: 2;
}
.scarab-fallback {
    position: absolute;
    inset: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.scarab-fallback img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(212, 164, 74, 0.5));
    animation: scarab-spin 24s linear infinite;
}
.scarab-stage.three-active .scarab-fallback { display: none; }
@keyframes scarab-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.scarab-stage .torch {
    position: absolute;
    bottom: 14px;
    width: 10px;
    height: 36px;
    z-index: 4;
}
.scarab-stage .torch-left { left: 18px; }
.scarab-stage .torch-right { right: 18px; }