/* ==========================================================================
   2048 Games Hub - Core Design System & Global Styles
   Modern Typography, Glassmorphism, Responsive Grid, Curated Palettes
   ========================================================================== */


:root {
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Light Theme (Default) */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-muted: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --primary: #f59e0b;
    --primary-hover: #d97706;
    --primary-light: #fef3c7;
    --primary-dark: #b45309;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #e0e7ff;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px -2px rgba(15,23,42,0.08), 0 2px 6px -2px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 32px -4px rgba(15,23,42,0.12), 0 4px 12px -2px rgba(15,23,42,0.06);
    --shadow-glow: 0 0 24px rgba(245, 158, 11, 0.35);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1200px;
}

[data-theme="dark"] {
    --bg-page: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-elevated: #1f2937;
    --bg-muted: #1e293b;
    --border-color: #334155;
    --border-subtle: #1e293b;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --primary: #fbbf24;
    --primary-hover: #f59e0b;
    --primary-light: rgba(251, 191, 36, 0.15);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.5);
    --shadow-lg: 0 14px 36px rgba(0,0,0,0.65);
    --shadow-glow: 0 0 28px rgba(251, 191, 36, 0.25);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

button, input, select, textarea {
    font: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

/* Header & Navigation */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .site-header {
    background-color: rgba(17, 24, 39, 0.92);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 0.88rem;
    letter-spacing: -0.03em;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-icon {
    transform: scale(1.05);
}

.brand-logo-c {
    color: #fef08a;
    font-weight: 900;
    margin-left: 1px;
}

.brand-accent {
    color: var(--primary);
}

.brand-domain {
    color: var(--text-muted);
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-left: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
    transform: scale(1.05);
}

.mobile-nav-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 3rem 1.25rem 2.5rem;
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), transparent 70%);
    text-align: center;
}

.hero-container {
    max-width: 860px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .hero-pill {
    color: var(--primary);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-muted);
    transform: translateY(-2px);
}

/* Filter & Search Bar */
.filter-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0.5rem;
}

.filter-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.search-input-wrap {
    position: relative;
    min-width: 240px;
    flex: 1;
    max-width: 320px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.3rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.search-icon-svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Games Grid */
.games-section {
    max-width: var(--max-width);
    margin: 1.5rem auto 3rem;
    padding: 0 1.25rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.65rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Game Card */
.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.4);
}

.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.game-grid-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.game-featured-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

[data-theme="dark"] .game-featured-badge {
    color: var(--primary);
}

.game-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.game-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.game-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-play-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-play-card:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* How to play & strategy sections */
.guide-section {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.guide-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.guide-box h2 {
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.guide-step-card {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.guide-step-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.guide-step-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-section {
    max-width: 860px;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.faq-chevron {
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   Comprehensive SEO Game Guide Section & Accordions
   ========================================================================== */
.game-seo-guide {
    max-width: 860px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

.seo-guide-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.seo-guide-h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.seo-guide-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.seo-guide-intro strong {
    color: var(--text-primary);
}

.seo-guide-h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 2.25rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-guide-body p,
.seo-guide-container > p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.seo-guide-body ul,
.seo-guide-body ol {
    margin: 0.75rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.seo-guide-body li {
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
}

.seo-guide-body strong,
.seo-guide-container strong {
    color: var(--text-primary);
}

/* Responsive Comparison Table */
.seo-guide-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.seo-guide-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
    min-width: 560px;
}

.seo-guide-table th {
    background: var(--bg-muted);
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.seo-guide-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.seo-guide-table tbody tr:last-child td {
    border-bottom: none;
}

.seo-guide-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .seo-guide-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Semantic Details / Summary FAQ Accordion */
.seo-faqs-accordion {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

details.seo-faq-item {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

details.seo-faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

summary.seo-faq-summary {
    padding: 1.1rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    list-style: none;
}

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

.seo-faq-chevron {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

details.seo-faq-item[open] .seo-faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.seo-faq-answer {
    padding: 0 1.4rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

.seo-faq-answer p {
    margin: 0;
}

@media (max-width: 640px) {
    .seo-guide-container {
        padding: 1.5rem 1.15rem;
        border-radius: var(--radius-lg);
    }
    .seo-guide-h1 {
        font-size: 1.35rem;
    }
    .seo-guide-h2 {
        font-size: 1.15rem;
    }
    summary.seo-faq-summary {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    .seo-faq-answer {
        padding: 0.75rem 1rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Google AdSense Layout Stability & Zero CLS (Cumulative Layout Shift)
   ========================================================================== */
.ad-container {
    width: 100%;
    margin: 1.5rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    contain: layout;
    content-visibility: auto;
    box-sizing: border-box;
}

.ad-slot-home_hero {
    min-height: 90px;
    max-width: 728px;
}

.ad-slot-above_game {
    min-height: 90px;
    max-width: 728px;
}

.ad-slot-below_game {
    min-height: 280px;
    max-width: 336px;
}

.ad-slot-content_middle {
    min-height: 250px;
    max-width: 728px;
}

.ad-slot-footer_banner {
    min-height: 90px;
    max-width: 970px;
}

.ad-placeholder {
    width: 100%;
    min-height: inherit;
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.ad-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.ad-box {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

ins.adsbygoogle {
    display: block !important;
    min-height: inherit;
    width: 100%;
}

@media (max-width: 768px) {
    .ad-slot-home_hero,
    .ad-slot-above_game {
        min-height: 50px;
        max-width: 320px;
    }
    .ad-slot-below_game {
        min-height: 250px;
        max-width: 300px;
    }
    .ad-slot-content_middle {
        min-height: 250px;
        max-width: 300px;
    }
    .ad-slot-footer_banner {
        min-height: 50px;
        max-width: 320px;
    }
}

/* ==========================================================================
   Breadcrumb Navigation (SEO & UX)
   ========================================================================== */
.breadcrumbs {
    margin: 1rem 0 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--border-color);
    font-weight: 700;
    user-select: none;
}

.breadcrumb-item.active span {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Popular & Related 2048 Variants Silo Widget
   ========================================================================== */
.related-variants-section {
    margin: 3.5rem auto 2.5rem;
    max-width: var(--max-width);
}

.related-variants-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.related-variants-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem 0;
}

.related-variants-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

.related-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.related-variant-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    contain: content;
}

.related-variant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

[data-theme="dark"] .related-variant-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.related-thumb-wrap {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.related-game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-badge-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-muted) 100%);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.related-badge-grid {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.related-variant-info {
    flex: 1;
    min-width: 0;
}

.related-variant-badge-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.related-grid-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.related-variant-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-variant-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.related-variant-action span.arrow {
    transition: transform 0.2s ease;
}

.related-variant-card:hover .related-variant-action span.arrow {
    transform: translateX(4px);
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 3rem 1.25rem 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 0.75rem;
    max-width: 340px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-muted);
    font-size: 0.86rem;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-legal-links {
        gap: 0.85rem 1.25rem;
    }
}

/* Responsive Styles */
@media (max-width: 868px) {
    .hero-section {
        padding: 1.25rem 0.75rem 1.5rem !important;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .header-container {
        padding: 0.65rem 0.85rem;
    }

    .brand-link {
        font-size: 1.15rem;
        gap: 0.5rem;
    }

    .brand-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 0.65rem 0.85rem;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
        z-index: 9999;
        gap: 0.35rem;
    }

    .nav-menu.open {
        display: flex;
        animation: mobileMenuSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        font-weight: 700;
        border-radius: var(--radius-sm);
        min-height: 44px;
    }

    .mobile-nav-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }

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

    .footer-links a {
        padding: 0.35rem 0;
        display: inline-block;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .filter-pills {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.4rem 0.75rem;
    }

    .search-input-wrap {
        max-width: none;
        width: 100%;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 0.65rem 1rem 0.65rem 2.6rem;
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.85rem;
    }

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

    .game-card {
        padding: 1.15rem 1rem;
    }

    .game-card-title {
        font-size: 1.15rem;
    }

    .btn-play-card {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .site-footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 0.6rem 1rem;
    }

    .seo-guide-container table,
    .blog-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Header Dropdown & Trending Showcase Styles
   ========================================================================== */

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    list-style: none;
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition-fast);
}

.dropdown-toggle:hover {
    background-color: var(--bg-muted);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 1000;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nav-dropdown:hover .dropdown-menu {
    display: grid;
}

.dropdown-group-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dropdown-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dropdown-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-sm);
    display: block;
    transition: all var(--transition-fast);
}

.dropdown-links a:hover {
    color: var(--primary);
    background: var(--bg-muted);
    padding-left: 0.6rem;
}

@media (max-width: 868px) {
    .dropdown-menu {
        position: static;
        min-width: auto;
        grid-template-columns: 1fr;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0;
    }
}

/* ==========================================================================
   Blog & Strategy Guides Styles
   ========================================================================== */

.blog-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.blog-breadcrumbs {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.blog-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.blog-article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.blog-article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.blog-article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.blog-article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 1rem 0 1.5rem 1.75rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
}

.blog-callout {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    font-size: 0.98rem;
    line-height: 1.65;
    border-left: 4px solid;
}

.blog-callout-info {
    background: rgba(99, 102, 241, 0.08);
    border-left-color: var(--accent);
    color: var(--text-primary);
}

.blog-callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
    color: var(--text-primary);
}

.blog-board-demo {
    margin: 1.5rem 0;
    text-align: center;
}

.blog-grid-table {
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.blog-grid-table td {
    width: 60px;
    height: 60px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    font-size: 1rem;
    border: 3px solid var(--bg-surface);
    color: var(--text-primary);
}

.blog-grid-table .highlight-row td {
    background: rgba(245, 158, 11, 0.15);
}

.blog-grid-table td.anchor-cell {
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
}

.table-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.blog-eras-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.era-item {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.era-item.highlight-era {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.15));
    border-color: #f59e0b;
    color: var(--text-primary);
    font-weight: 600;
}

.blog-game-cta {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.12));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2.5rem 0 1rem;
    text-align: center;
}

.blog-game-cta h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-game-cta p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 1.25rem;
    font-size: 0.98rem;
}

.btn-cta-play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta-play:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-article-content code {
    background: var(--bg-muted);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-family: monospace;
}

.blog-article-content pre {
    background: var(--bg-muted);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.25rem 0;
}

/* ==========================================================================
   Table of Contents (TOC), Checklists & Blog Tables
   ========================================================================== */
.blog-toc {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0 2.5rem;
    box-shadow: var(--shadow-sm);
}

.blog-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-toc-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-toc-icon {
    font-size: 1.25rem;
}

.blog-toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.blog-toc-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition-fast);
}

.blog-toc-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.blog-toc.collapsed .blog-toc-list {
    display: none;
}

.blog-toc.collapsed .toc-toggle-label::after {
    content: "Show";
}
.blog-toc.collapsed .toc-toggle-label {
    visibility: hidden;
    position: relative;
}
.blog-toc.collapsed .toc-toggle-label::after {
    visibility: visible;
    position: absolute;
    left: 0;
}
.blog-toc.collapsed .toc-chevron {
    transform: rotate(-90deg);
}

.blog-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-primary);
}

.blog-toc-list > li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.blog-toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.blog-toc-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.blog-toc-sublist {
    margin: 0.35rem 0 0.5rem 1.25rem;
    padding-left: 0.5rem;
    list-style-type: disc;
}

.blog-toc-sublist li {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

.blog-toc-sublist a {
    color: var(--text-secondary);
}

.blog-toc-sublist a:hover {
    color: var(--primary);
}

/* Blog Checklist */
.blog-checklist {
    list-style: none;
    padding-left: 0 !important;
    margin: 1.25rem 0 1.75rem !important;
}

.blog-checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem !important;
    line-height: 1.6;
}

.blog-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Blog Tables */
.blog-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
    min-width: 580px;
}

.blog-table th {
    background: var(--bg-muted);
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.blog-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

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

.blog-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .blog-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* =============================================================
   LEGAL PAGES & ESSENTIAL PAGES STYLING (ABOUT, PRIVACY, TERMS)
   ============================================================= */
.legal-page-article {
    max-width: 960px;
    margin: 0 auto;
}

.legal-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.legal-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.legal-section {
    margin-bottom: 2.75rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary);
}

.legal-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.15rem;
}

.legal-list {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-list li {
    margin-bottom: 0.65rem;
}

.legal-list strong {
    color: var(--text-primary);
}

/* Four Pillars Grid */
.legal-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.pillar-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pillar-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Legal Callout Highlight Box */
.legal-highlight-box {
    background: rgba(245, 158, 11, 0.06);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0 2rem;
}

[data-theme="dark"] .legal-highlight-box {
    background: rgba(245, 158, 11, 0.08);
}

.legal-highlight-box h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.legal-highlight-box p {
    margin-bottom: 0.75rem;
}

.legal-highlight-box p:last-child {
    margin-bottom: 0;
}

.legal-contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-top: 1.5rem;
}

.legal-contact-box h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* =============================================================
   CONTACT US PAGE & FORM STYLING
   ============================================================= */
.contact-page-container {
    max-width: 1040px;
    margin: 0 auto;
}

.contact-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2.5rem;
    align-items: flex-start;
}

@media (max-width: 820px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.contact-channels-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-channel-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-channel-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.channel-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.channel-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.channel-value:hover {
    text-decoration: underline;
}

.channel-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.contact-form-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-box h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form-box p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
    background: var(--bg-surface);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.contact-submit-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.contact-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* =============================================================
   COOKIE CONSENT BANNER (GDPR / CCPA / GOOGLE ADSENSE COMPLIANT)
   ============================================================= */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.2), 0 -8px 10px -6px rgba(0, 0, 0, 0.15);
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-bar.visible {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cookie-consent-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.cookie-consent-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.cookie-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.cookie-desc {
    margin: 0;
    color: var(--text-secondary);
}

.cookie-desc a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

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

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-decline {
    background: var(--bg-muted);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.cookie-btn-decline:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.cookie-btn-accept {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.cookie-btn-accept:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.15rem 1.25rem;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}


/* Mobile Responsive Fix */
body > header, body > main, body > section, body > footer {
    width: 100%; min-width: 0; max-width: 100%;
}
.game-page-container, .game-seo-guide, .seo-guide-container {
    min-width: 0; box-sizing: border-box;
}
.game-page-container { width: 100%; }
.game-seo-guide { width: 100%; }

.seo-guide-container, .seo-guide-container *,
.blog-content, .blog-content * {
    overflow-wrap: break-word; word-wrap: break-word;
}
img, svg, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }

@media (max-width: 640px) {
    .seo-guide-container { padding: 1.5rem 0.8rem; }
    .seo-guide-table-wrap { max-width: 100%; overflow-x: auto; }
    .seo-guide-container table, .seo-guide-table {
        display: table; width: 100%; min-width: 0;
        font-size: 0.72rem; line-height: 1.35;
    }
    .seo-guide-table th, .seo-guide-table td {
        padding: 0.5rem 0.3rem; white-space: normal; overflow-wrap: break-word;
    }
    .seo-guide-table th { font-size: 0.68rem; }
}
@media (max-width: 360px) {
    .seo-guide-container table, .seo-guide-table { font-size: 0.66rem; }
    .seo-guide-table th { font-size: 0.62rem; }
    .seo-guide-table th, .seo-guide-table td { padding: 0.45rem 0.22rem; }
}
@media (max-width: 768px) { .seo-guide-table { min-width: 0; } }
@media (max-width: 340px) {
    .seo-guide-container table, .seo-guide-table { font-size: 0.6rem; }
    .seo-guide-table th { font-size: 0.56rem; }
    .seo-guide-table th, .seo-guide-table td { padding: 0.4rem 0.16rem; }
}

.blog-articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)) !important;
}
.game-page-container a, .seo-guide-container a, .blog-article-content a {
    overflow-wrap: anywhere;
}

@media (max-width: 868px) {
    .filter-bar { flex-wrap: nowrap; min-width: 0; }
    .filter-pills { min-width: 0; max-width: 100%; }
}