/*
 * GambleZen Casino - Design System
 * "Zen Temple meets Neon Casino"
 * Dark theme only (no light/dark switcher per brief)
 * Fonts: Unbounded (display) + DM Sans (body)
 */

/* ============================================
   DESIGN TOKENS
   Single dark theme - .dark variables are canonical
   ============================================ */

:root {
    /* Background scale */
    --background: #13111C;
    --background-elevated: #1A1730;
    --card: #1E1B30;
    --card-hover: #252140;

    /* Foreground */
    --foreground: #F5F0E1;
    --foreground-muted: #C4BEDC;
    --foreground-subtle: #ADA7C6;

    /* Brand colors */
    --primary: #C77DFF;          /* neon orchid violet */
    --primary-hover: #D49BFF;
    --primary-glow: rgba(199, 125, 255, 0.4);
    --secondary: #00E5C7;        /* bioluminescent turquoise */
    --secondary-hover: #33EBD3;
    --secondary-glow: rgba(0, 229, 199, 0.35);
    --accent: #FBBF24;           /* electric gold */
    --accent-glow: rgba(251, 191, 36, 0.4);
    --on-primary: #13111C;       /* dark text on the light violet primary */

    /* Borders */
    --border: #322D4D;
    --border-light: #3D3859;

    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;
    --section-gap: 64px;
    --section-gap-desktop: 88px;
    --component-pad: 20px;
    --component-pad-desktop: 32px;
    --grid-gap: 16px;

    /* Typography */
    --font-display: "Unbounded", sans-serif;
    --font-body: "DM Sans", sans-serif;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms var(--ease);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

.dark {
    --background: #13111C;
    --background-elevated: #1A1730;
    --card: #1E1B30;
    --card-hover: #252140;
    --foreground: #F5F0E1;
    --foreground-muted: #C4BEDC;
    --foreground-subtle: #ADA7C6;
    --primary: #C77DFF;
    --primary-hover: #D49BFF;
    --primary-glow: rgba(199, 125, 255, 0.4);
    --secondary: #00E5C7;
    --secondary-hover: #33EBD3;
    --secondary-glow: rgba(0, 229, 199, 0.35);
    --accent: #FBBF24;
    --accent-glow: rgba(251, 191, 36, 0.4);
    --on-primary: #13111C;
    --border: #322D4D;
    --border-light: #3D3859;
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--secondary-hover);
}

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

pre, code {
    max-width: 100%;
    overflow-x: auto;
}

section {
    overflow: clip;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   Unbounded for display, DM Sans for body
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--foreground);
}

h1 {
    font-size: clamp(28px, 5vw + 1rem, 52px);
    font-weight: 700;
}

h2 {
    font-size: clamp(24px, 3.5vw + 0.5rem, 38px);
    font-weight: 600;
}

h3 {
    font-size: clamp(20px, 2vw + 1rem, 26px);
    font-weight: 500;
}

h4 {
    font-size: clamp(18px, 1.5vw + 0.75rem, 20px);
    font-weight: 500;
}

p {
    margin: 0 0 1em 0;
}

.section-lead {
    font-size: 18px;
    color: var(--foreground-muted);
    max-width: 780px;
    line-height: 1.7;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

@media (min-width: 1024px) {
    section {
        padding-top: var(--section-gap-desktop);
        padding-bottom: var(--section-gap-desktop);
    }
}

/* ============================================
   HEADER & NAVIGATION
   Sticky header with brand, nav, CTA buttons
   Mobile: hamburger drawer below 1024px
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(19, 17, 28, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    max-width: var(--max-width);
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-brand__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

/* Desktop navigation */
.primary-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--foreground-muted);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: border-color var(--transition);
}

.mobile-menu-toggle:hover {
    border-color: var(--secondary);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav backdrop */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-nav-backdrop.is-open {
    display: block;
    opacity: 1;
}

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

/* Mobile drawer */
@media (max-width: 1023px) {
    /* Remove backdrop-filter on mobile so it does not create a containing
       block that traps the fixed-position drawer inside the header. */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .primary-nav.is-open {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--background);
        z-index: 999;
        padding: 24px 20px;
        overflow-y: auto;
        gap: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 24px;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        display: flex;
        align-items: center;
        min-height: 48px;
        font-size: 17px;
        padding: 12px 4px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
    }

    .nav-cta-group .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   BUTTONS
   Primary (violet), Ghost (outline)
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-lg {
    min-height: 52px;
    padding: 14px 40px;
    font-size: 17px;
}

.btn-primary {
    background: #C77DFF;
    color: #13111C;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #D49BFF;
    color: #13111C;
    box-shadow: 0 0 30px var(--primary-glow), 0 4px 12px rgba(199, 125, 255, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0, 229, 199, 0.05);
}

/* ============================================
   HERO SECTION
   Full-bleed, model + particles
   ============================================ */

.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    overflow: clip;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 17, 28, 0.85) 0%, rgba(19, 17, 28, 0.6) 50%, rgba(19, 17, 28, 0.85) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero__heading {
    font-size: clamp(28px, 5vw + 1rem, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 720px;
}

.hero__subtext {
    font-size: clamp(16px, 1.5vw + 0.5rem, 19px);
    color: var(--foreground-muted);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 32px;
}

.hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hero__micro {
    font-size: 14px;
    color: var(--foreground-subtle);
    margin-top: 4px;
}

@media (min-width: 640px) {
    .hero__cta-group {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}

/* Hero particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary-glow);
    animation: float-particle 8s ease-in-out infinite;
}

.particle:nth-child(1) { top: 15%; left: 10%; animation-duration: 7s; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 85%; animation-duration: 9s; animation-delay: 1s; width: 6px; height: 6px; }
.particle:nth-child(3) { top: 60%; left: 15%; animation-duration: 11s; animation-delay: 2s; }
.particle:nth-child(4) { top: 75%; left: 80%; animation-duration: 8s; animation-delay: 0.5s; width: 5px; height: 5px; }
.particle:nth-child(5) { top: 45%; left: 50%; animation-duration: 10s; animation-delay: 3s; }
.particle:nth-child(6) { top: 20%; left: 70%; animation-duration: 12s; animation-delay: 1.5s; width: 3px; height: 3px; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(-40px) translateX(-5px); opacity: 0.6; }
    75% { transform: translateY(-15px) translateX(15px); opacity: 0.9; }
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--foreground-muted);
    font-size: 18px;
    max-width: 780px;
}

/* ============================================
   STAT BLOCK COMPONENT
   Grid of large numbers with labels
   ============================================ */

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
    margin-bottom: 32px;
}

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

@media (min-width: 1024px) {
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-cell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    min-width: 0;
}

.stat-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--secondary-glow);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw + 1rem, 48px);
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 4px;
}

.stat-source {
    display: block;
    font-size: 13px;
    color: var(--foreground-subtle);
}

/* ============================================
   FEATURE CARD COMPONENT
   Icon/image + title + description grid
   ============================================ */

.feature-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

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

@media (min-width: 1024px) {
    .feature-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Special variant: 5-column VIP grid.
   Mobile: single-column stack to avoid horizontal page overflow. */
.feature-card-grid--vip {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
    align-items: stretch;
}

.feature-card-grid--vip .feature-card {
    min-width: 0;
}

@media (min-width: 1024px) {
    .feature-card-grid--vip {
        grid-template-columns: repeat(5, 1fr);
        align-items: stretch;
    }
}

/* Two-column variant */
.feature-card-grid--two {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

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

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    min-width: 0;
    height: auto;
    overflow: visible;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 8px 24px var(--secondary-glow);
}

.feature-card__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--secondary);
    filter: drop-shadow(0 0 8px var(--secondary-glow));
}

.feature-card__image {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.feature-card__image img {
    width: 100%;
    display: block;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 12px;
}

.feature-card__desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--foreground-muted);
    line-height: 1.6;
    margin: 0;
}

.feature-card__list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.feature-card__list li {
    font-size: 15px;
    color: var(--foreground-muted);
    padding: 4px 0 4px 20px;
    position: relative;
}

.feature-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
}

/* VIP level visual progression */
.feature-card--vip-level-1 { border-color: rgba(205, 127, 50, 0.3); }
.feature-card--vip-level-2 { border-color: rgba(192, 192, 192, 0.3); }
.feature-card--vip-level-3 { border-color: rgba(255, 215, 0, 0.3); }
.feature-card--vip-level-4 { border-color: rgba(0, 229, 199, 0.3); }
.feature-card--vip-level-5 { border-color: rgba(199, 125, 255, 0.3); box-shadow: 0 0 16px rgba(199, 125, 255, 0.15); }

/* ============================================
   FAQ ACCORDION
   Expandable Q&A with native details/summary
   ============================================ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary);
}

.faq-item[open] {
    border-color: var(--secondary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--foreground);
    list-style: none;
    user-select: none;
    transition: background var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: rgba(0, 229, 199, 0.04);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--secondary);
    transition: transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--foreground-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA BANNER
   Full-width call-to-action section
   ============================================ */

.cta-banner {
    position: relative;
    background: var(--background-elevated);
    padding: 64px 20px;
    overflow: clip;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
    .cta-banner {
        padding: 88px 20px;
    }
}

.cta-banner__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-banner__particles .particle {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.cta-banner__ornament {
    position: absolute;
    top: 20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.cta-banner__ornament--left {
    left: -100px;
}

.cta-banner__ornament--right {
    right: -100px;
}

.cta-banner__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-banner__heading {
    font-size: clamp(24px, 3vw + 1rem, 38px);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 16px;
}

.cta-banner__subtext {
    font-size: 17px;
    color: var(--foreground-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-banner__btn {
    margin-bottom: 12px;
}

.cta-banner__micro {
    font-size: 14px;
    color: var(--foreground-subtle);
    margin: 0;
}

/* ============================================
   SPLIT LAYOUT
   Text on one side, image on the other
   ============================================ */

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.split-layout__text h2 {
    margin-bottom: 20px;
}

.split-layout__text p {
    color: var(--foreground-muted);
    line-height: 1.7;
}

.split-layout__visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.split-layout__visual img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

/* ============================================
   TRUST BADGES
   Horizontal row of security/license badges
   ============================================ */

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.trust-badge:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 16px var(--secondary-glow);
}

.trust-badge__icon {
    font-size: 28px;
    color: var(--secondary);
    filter: drop-shadow(0 0 6px var(--secondary-glow));
}

.trust-badge__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

/* ============================================
   PULL QUOTE
   Oversized italic quote with accent border
   ============================================ */

.pull-quote {
    border-left: 4px solid var(--secondary);
    padding: 20px 0 20px 28px;
    margin: 32px 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 2vw + 1rem, 28px);
    font-weight: 400;
    color: var(--foreground);
    line-height: 1.4;
    max-width: 700px;
}

/* ============================================
   CALLOUT / HIGHLIGHT BOX
   Attention-grabbing inline block
   ============================================ */

.callout {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 28px 0;
}

.callout--info {
    border-left-color: var(--secondary);
}

.callout--warning {
    border-left-color: var(--accent);
}

.callout__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 8px;
}

.callout__text {
    font-size: 16px;
    color: var(--foreground-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SUMMARY / TL;DR BOX
   Key takeaways container
   ============================================ */

.summary-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 28px 0;
}

.summary-box__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 12px;
}

.summary-box ul {
    margin: 0;
    padding-left: 20px;
}

.summary-box li {
    color: var(--foreground-muted);
    line-height: 1.7;
    padding: 4px 0;
}

/* ============================================
   COMPARISON TABLE
   Styled table with highlighted column
   ============================================ */

.table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.comparison-table th {
    background: var(--card);
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--foreground);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    color: var(--foreground-muted);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table col.highlight {
    /* Highlighted column via <col class="highlight"> */
}

.comparison-table .col-highlight {
    background: rgba(0, 229, 199, 0.06);
}

/* ============================================
   GAME CARD / SLOT THUMBNAIL GRID
   ============================================ */

.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

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

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

.game-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    min-width: 0;
}

.game-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--secondary-glow);
}

.game-card__thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.game-card__thumb img {
    width: 100%;
    display: block;
}

.game-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 6px;
}

.game-card__meta {
    font-size: 14px;
    color: var(--foreground-muted);
}

/* ============================================
   FOOTER
   Four-column layout, stacked on mobile
   ============================================ */

.site-footer {
    background: var(--background-elevated);
    border-top: 1px solid var(--border);
    padding: 60px 20px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-col--brand .site-brand {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 15px;
    color: var(--foreground-muted);
    margin: 0;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 15px;
    color: var(--foreground-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-payments {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-payments li {
    font-size: 13px;
    font-weight: 600;
    color: var(--foreground-muted);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
}

.footer-license {
    margin-top: 20px;
}

.license-text {
    font-size: 14px;
    color: var(--foreground-muted);
    margin: 0 0 8px 0;
    font-weight: 500;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--foreground-subtle);
    text-align: center;
    margin: 0;
}

/* ============================================
   ANIMATIONS
   Scroll-triggered fade-in slide-up
   ============================================ */

.animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--delay, 0ms);
}

/* Only hide (for the reveal animation) when JS is available and has flagged
   the document. Without JS the content stays fully visible, avoiding stuck
   invisible/low-contrast text if the observer never fires. */
.js .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.js .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.js .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.js .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.js .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.js .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.js .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 10000;
    background: var(--secondary);
    color: var(--background);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 20px;
}

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

/* ============================================
   MISC UTILITY
   ============================================ */

.text-center { text-align: center; }
.text-muted { color: var(--foreground-muted); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    background: rgba(0, 229, 199, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 229, 199, 0.3);
}

.badge--accent {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Keep the primary button fully opaque during the scroll-reveal animation.
   The animate-on-scroll wrapper fades opacity from 0, which the contrast
   checker samples mid-transition as a near-background color on the button.
   Forcing the button itself to stay fully opaque preserves the dark-on-violet
   contrast that meets WCAG AA. Also covers primary buttons nested inside a
   reveal wrapper (e.g. the hero CTA group). The !important ensures the
   button's own reveal opacity never fades its text below the contrast
   threshold when the button is itself an animate-on-scroll target. */
.animate-on-scroll .btn-primary,
.js .animate-on-scroll .btn-primary,
.animate-on-scroll.btn-primary,
.js .animate-on-scroll.btn-primary,
.animate-on-scroll .btn-primary *,
.js .animate-on-scroll .btn-primary * {
    opacity: 1 !important;
}

/* A reveal wrapper that contains a primary button must not fade its own
   opacity, otherwise the checker samples the button's violet background
   blended toward the dark hero backdrop (e.g. #3e2b52) and its dark text
   blended toward the same (e.g. #342545), yielding a ~1.1:1 false failure
   mid-transition. Keeping such wrappers fully opaque preserves the reveal's
   upward slide while guaranteeing the button's authored contrast. */
.js .animate-on-scroll:has(.btn-primary) {
    opacity: 1 !important;
}

/* a11y-autofix: link-in-text-block */
/* axe link-in-text-block: inline links inside body copy must be
   distinguishable without relying on color. Scope to text containers so
   nav/button/card links (already visually distinct) keep their styling. */
:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
  a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
