/* ═══════════════════════════════════════════════════════════
   DominosOnline.org - CSS Global
   Premium Online Dominoes Game Platform
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Primary Brand Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.3);

    /* Secondary / Accent */
    --secondary: #f59e0b;
    --secondary-hover: #d97706;
    --danger: #ef4444;
    --success: #10b981;

    /* Accent - Emerald (gaming table green) */
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.35);

    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    --bg-card: #ffffff;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #f1f5f9;
    --text-on-dark-muted: #94a3b8;

    /* Borders & Surfaces */
    --border-light: #e2e8f0;
    --border-dark: #334155;
    --surface-glass: rgba(255, 255, 255, 0.05);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-primary-btn: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Spacing */
    --section-padding-y: clamp(4rem, 8vw, 7rem);
    --container-padding-x: clamp(1rem, 4vw, 2rem);

    /* Navbar */
    --navbar-height: 70px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bangers', cursive;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.highlight {
    color: var(--accent-light);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0.75rem auto 0;
    text-align: center;
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

.container--narrow {
    max-width: 800px;
}

section {
    padding: var(--section-padding-y) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar:not(.scrolled) {
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-on-dark);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Nav CTA */
.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--accent-glow);
    background: linear-gradient(135deg, var(--accent-hover) 0%, #047857 100%) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: none;
}

.btn:hover::after {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-light);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--secondary);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

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

.hero-stat .stat-value {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--accent-light);
    letter-spacing: 0.02em;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating dominoes */
.floating-dominos {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-domino {
    position: absolute;
    opacity: 0.06;
    animation: float-domino 20s ease-in-out infinite;
}

.floating-domino:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; animation-duration: 22s; }
.floating-domino:nth-child(2) { top: 20%; right: 8%; animation-delay: -4s; animation-duration: 18s; }
.floating-domino:nth-child(3) { bottom: 15%; left: 12%; animation-delay: -8s; animation-duration: 25s; }
.floating-domino:nth-child(4) { bottom: 25%; right: 15%; animation-delay: -2s; animation-duration: 20s; }
.floating-domino:nth-child(5) { top: 50%; left: 50%; animation-delay: -6s; animation-duration: 24s; }
.floating-domino:nth-child(6) { top: 35%; right: 25%; animation-delay: -10s; animation-duration: 19s; }

@keyframes float-domino {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* ── Game Section ── */
.game-section {
    background: var(--bg-dark);
    padding: var(--section-padding-y) 0;
    position: relative;
}

.game-section .section-header h2 {
    color: #fff;
}

.game-section .section-subtitle {
    color: var(--text-on-dark-muted);
}


/* CRITICAL: No transforms on game-wrapper ancestors for fullscreen iframe */
.game-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

.game-wrapper.reveal.visible {
    transform: none !important;
}

.game-frame {
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1), 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(15, 15, 26, 0.95);
    overflow: hidden;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-dark);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.player-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.game-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.game-container #msmbgamecontainer iframe {
    border: none;
}

.game-benefits {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border-dark);
    flex-wrap: wrap;
}

.game-benefits span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-on-dark-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Game Modes Section ── */
.modes-section {
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
}

/* Smooth transition from dark modes to light testimonials */
.modes-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-body) 100%);
    pointer-events: none;
}

.modes-section h2,
.modes-section h3 {
    color: #fff;
}

.modes-section .section-subtitle {
    color: var(--text-on-dark-muted);
}

.modes-label {
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mode-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mode-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-4px);
}

.mode-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mode-card .badge {
    margin-bottom: 0.75rem;
}

.mode-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.mode-card p {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Testimonials Section ── */
.testimonials-section {
    background: var(--bg-body);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.testimonial-card p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Features Section ── */
.features-section {
    background: var(--bg-body);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── CTA Section ── */
.cta-section {
    background: var(--gradient-hero);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── SEO Content Section ── */
.seo-section {
    background: var(--bg-body);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.article-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    transition: gap 0.2s ease;
}

.article-card:hover .read-more {
    gap: 0.6rem;
}

/* ── Footer ── */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand svg {
    width: 28px;
    height: 28px;
}

.footer-desc {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-on-dark);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-on-dark-muted);
    font-size: 0.8rem;
}

/* ── Page Hero (Article/Utility pages) ── */
.page-hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: calc(var(--navbar-height) + 3rem) 0 3rem;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ── Article Section ── */
.article-section {
    padding: var(--section-padding-y) 0;
}

.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

.article-wrapper h2 {
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-wrapper h3 {
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.article-wrapper p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-wrapper ul,
.article-wrapper ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-wrapper ul {
    list-style: disc;
}

.article-wrapper ol {
    list-style: decimal;
}

.article-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.article-wrapper blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ── FAQ Accordion ── */
.faq-section {
    margin-top: 3rem;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(16, 185, 129, 0.05);
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ── Contact Form ── */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.form-check input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-check label a {
    color: var(--primary);
    text-decoration: underline;
}

.form-message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ── Legal Pages ── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

.legal-content h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.6rem;
}

.legal-content h3 {
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Scroll Reveal ── */
/* JS adds .js-reveal-ready to html when IntersectionObserver is set up */
html.js-reveal-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-reveal-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid children */
html.js-reveal-ready .reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js-reveal-ready .reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
html.js-reveal-ready .reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
html.js-reveal-ready .reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
html.js-reveal-ready .reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
html.js-reveal-ready .reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
html.js-reveal-ready .reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

html.js-reveal-ready .reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Accessibility ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

/* Skip to content */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ── Reduced Motion ── */
@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;
    }
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--navbar-height) + 1rem) 1.5rem 2rem;
        gap: 0.25rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
    }

    .nav-dropdown-toggle {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
    }

    .nav-separator {
        height: 1px;
        background: var(--border-dark);
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Grids */
    .variants-grid,
    .modes-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hero stats */
    .hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .game-benefits {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ── Article CTA Section ── */
.article-cta {
    background: var(--gradient-hero);
    color: #fff;
    text-align: center;
    padding: 3rem 0;
}

.article-cta h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* ── Internal links in articles ── */
.article-nav {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.article-nav h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.article-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    transition: gap 0.2s ease;
}

.article-nav-links a:hover {
    gap: 0.6rem;
    color: var(--accent-hover);
}

/* ── Sticky Mobile Play Button ── */
.mobile-play-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-dark);
    z-index: 998;
    text-align: center;
}

.mobile-play-btn .btn {
    width: 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .mobile-play-btn {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }
}
