/* ============================================================
   wordunscrambler.guru — site.css
   Design system, layout, components
   Font: DM Sans (body) + DM Mono (results)
   ============================================================ */
.fc-adsense-placeholder.fc-adsense-rect {
    display: none !important;
}

/* ---- 1. CSS Custom Properties (Design Tokens) ---- */
:root {
    /* Colors — Light Mode */
    --color-primary:   #1E3A5F;
    --color-secondary: #2E6DA4;
    --color-accent:    #27AE60;
    --color-bg:        #FFFFFF;
    --color-surface:   #F5F7FA;
    --color-surface-2: #EDF0F5;
    --color-text:      #1A1A2E;
    --color-muted:     #6B7280;
    --color-border:    #E5E7EB;
    --color-error:     #E53E3E;

    /* Category colors */
    --color-financial: #1E3A5F;
    --color-financial-light: #EBF2FA;
    --color-health:    #0F6648;
    --color-health-light: #E8F5EF;
    --color-math:      #6B21A8;
    --color-math-light: #F3E8FF;
    --color-other:     #92400E;
    --color-other-light: #FEF3C7;

    /* Typography */
    --font-body:   'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono:   'DM Mono', 'Fira Code', monospace;

    /* Spacing */
    --spacing-unit: 8px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-card:     0 2px 12px rgba(30, 58, 95, 0.08);
    --shadow-elevated: 0 8px 32px rgba(30, 58, 95, 0.12);
    --shadow-hero:     0 24px 64px rgba(30, 58, 95, 0.16);

    /* Transitions */
    --transition-fast:    150ms ease;
    --transition-default: 250ms ease;
    --transition-slow:    400ms ease;

    /* Navbar height */
    --navbar-h: 64px;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-primary:   #4A90D9;
    --color-secondary: #5BA3E0;
    --color-accent:    #2ECC71;
    --color-bg:        #1A1A2E;
    --color-surface:   #16213E;
    --color-surface-2: #0F1726;
    --color-text:      #E8EAF6;
    --color-muted:     #9CA3AF;
    --color-border:    #2D3748;
    --color-error:     #FC8181;

    --color-financial: #4A90D9;
    --color-financial-light: #1a2a3d;
    --color-health:    #2ECC71;
    --color-health-light: #0d2618;
    --color-math:      #C084FC;
    --color-math-light: #2d1b4e;
    --color-other:     #FBBF24;
    --color-other-light: #2d1e08;

    --shadow-card:     0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hero:     0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ---- 2. Base Reset & Typography ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background var(--transition-slow), color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Skip link for accessibility */
.fc-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
    transition: top var(--transition-fast);
}
.fc-skip-link:focus { top: 16px; }

/* ---- 3. Navbar ---- */
.fc-navbar {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: var(--navbar-h);
    transition: background var(--transition-slow), border-color var(--transition-slow);
    z-index: 1030;
}

.fc-navbar.scrolled {
    box-shadow: var(--shadow-card);
}

/* Brand */
.fc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.fc-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.fc-brand-text { color: var(--color-text); }
.fc-brand-dot { color: var(--color-accent); }

/* Nav links */
.fc-nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-nav-link:hover, .fc-nav-link.active {
    color: var(--color-primary) !important;
    background: var(--color-surface);
}

.fc-nav-icon { font-size: 0.875rem; }

/* Dropdown */
.fc-dropdown {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    padding: 8px;
    min-width: 220px;
}

.fc-dropdown .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.fc-dropdown .dropdown-item:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.fc-view-all {
    color: var(--color-secondary) !important;
    font-weight: 500;
}

.fc-dropdown .dropdown-divider { border-color: var(--color-border); margin: 6px 0; }

/* Theme toggle */
.fc-theme-toggle {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.fc-theme-toggle:hover {
    background: var(--color-border);
}

.fc-theme-icon {
    line-height: 1;
    color: var(--color-text);
}

[data-theme="dark"] .fc-theme-toggle {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: #E8EAF6;
}

[data-theme="dark"] .fc-theme-toggle:hover {
    background: var(--color-border);
}

[data-theme="light"] .fc-icon-moon,
[data-theme="dark"] .fc-icon-sun { display: none; }
[data-theme="light"] .fc-icon-sun,
[data-theme="dark"] .fc-icon-moon { display: block; }

/* Hamburger */
.fc-toggler {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fc-hamburger {
    width: 18px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition-fast);
}
.fc-hamburger::before,
.fc-hamburger::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-default);
}
.fc-hamburger::before { top: -6px; }
.fc-hamburger::after { top: 6px; }

/* ---- 4. Hero Section ---- */
.fc-hero {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 9);
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
    position: relative;
    overflow: hidden;
}

.fc-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 109, 164, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.fc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 24px;
    animation: fadeInUp 0.5s ease both;
}

.fc-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.fc-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s 0.1s ease both;
}

.fc-hero-accent {
    color: var(--color-secondary);
    position: relative;
}

.fc-hero-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: 2px;
    opacity: 0.4;
}

.fc-hero-sub {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp 0.5s 0.15s ease both;
}

.fc-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: fadeInUp 0.5s 0.2s ease both;
}

.fc-hero-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s 0.25s ease both;
}

.fc-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.fc-feature-pill svg { color: var(--color-accent); flex-shrink: 0; }

/* Hero Visual */
.fc-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.6s 0.2s ease both;
}

.fc-calc-preview {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hero);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.fc-calc-preview-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-calc-dots {
    display: flex;
    gap: 5px;
}

.fc-calc-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.fc-calc-dots span:nth-child(1) { background: #FF5F57; }
.fc-calc-dots span:nth-child(2) { background: #FFBD2E; }
.fc-calc-dots span:nth-child(3) { background: #28C840; }

.fc-calc-preview-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
}

.fc-calc-preview-body { padding: 24px; }

.fc-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.fc-preview-row:last-of-type { border-bottom: none; }

.fc-preview-label {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.fc-preview-val {
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--color-text);
}

.fc-preview-result {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fc-result-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.fc-result-value {
    font-family: var(--font-mono);
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Floating badges */
.fc-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    padding: 12px 16px;
    min-width: 170px;
}

.fc-float-1 { top: -16px; right: -24px; animation: float 4s ease-in-out infinite; }
.fc-float-2 { bottom: 40px; left: -28px; animation: float 4s 2s ease-in-out infinite; }

.fc-float-icon { font-size: 1.375rem; flex-shrink: 0; }
.fc-float-title { font-size: 0.8125rem; font-weight: 600; color: var(--color-text); }
.fc-float-sub { font-size: 0.75rem; color: var(--color-accent); font-family: var(--font-mono); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- 5. Buttons ---- */
.fc-btn-primary {
    background: var(--color-primary);
    color: #fff !important;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fc-btn-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
}

.fc-btn-ghost {
    background: transparent;
    color: var(--color-text) !important;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.fc-btn-ghost:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.fc-btn-white {
    background: #fff;
    color: var(--color-primary) !important;
    border: 2px solid #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fc-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.fc-btn-outline-white {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.fc-btn-outline-white:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.fc-btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.fc-btn-arrow { transition: transform var(--transition-fast); }
.fc-btn-primary:hover .fc-btn-arrow { transform: translateX(3px); }

/* ---- 6. Section Shared ---- */
.fc-popular,
.fc-categories,
.fc-why {
    padding: calc(var(--spacing-unit) * 9) 0;
}

.fc-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}

.fc-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.fc-section-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-secondary);
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.fc-section-link:hover { color: var(--color-primary); }

/* ---- 7. Calculator Cards (Popular) ---- */
.fc-calc-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    transition: transform var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fc-calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--transition-default);
}

.fc-card-financial::before { background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); }
.fc-card-health::before { background: linear-gradient(90deg, #0F6648, var(--color-accent)); }
.fc-card-math::before { background: linear-gradient(90deg, #6B21A8, #C084FC); }
.fc-card-other::before { background: linear-gradient(90deg, #92400E, #FBBF24); }

.fc-calc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: transparent;
}

.fc-calc-card:hover::before { opacity: 1; }

.fc-card-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    line-height: 1;
}

.fc-card-body { flex: 1; }

.fc-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.fc-card-desc {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.4;
}

.fc-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 100px;
    margin-top: 12px;
    align-self: flex-start;
}

.fc-card-financial .fc-card-tag { background: var(--color-financial-light); color: var(--color-financial); }
.fc-card-health .fc-card-tag { background: var(--color-health-light); color: var(--color-health); }
.fc-card-math .fc-card-tag { background: var(--color-math-light); color: var(--color-math); }
.fc-card-other .fc-card-tag { background: var(--color-other-light); color: var(--color-other); }

/* ---- 8. Category Cards ---- */
.fc-categories { background: var(--color-surface); }

.fc-category-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    height: 100%;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    position: relative;
    overflow: hidden;
}

.fc-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.fc-cat-icon-wrap {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-default);
}

.fc-category-card:hover .fc-cat-icon-wrap { transform: scale(1.1); }

.fc-cat-financial .fc-cat-icon-wrap { background: var(--color-financial-light); }
.fc-cat-health .fc-cat-icon-wrap { background: var(--color-health-light); }
.fc-cat-math .fc-cat-icon-wrap { background: var(--color-math-light); }
.fc-cat-other .fc-cat-icon-wrap { background: var(--color-other-light); }

.fc-cat-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.fc-cat-desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.fc-cat-count {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.fc-cat-financial .fc-cat-count { color: var(--color-financial); }
.fc-cat-health .fc-cat-count { color: var(--color-health); }
.fc-cat-math .fc-cat-count { color: var(--color-math); }
.fc-cat-other .fc-cat-count { color: var(--color-other); }

.fc-cat-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fc-cat-tools span {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--color-surface);
    color: var(--color-muted);
    border: 1px solid var(--color-border);
}

/* ---- 9. Why Section ---- */
.fc-why-intro {
    font-size: 1.05rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-top: 16px;
}

.fc-why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-default);
    height: 100%;
}

.fc-why-item:hover { box-shadow: var(--shadow-card); }

.fc-why-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.fc-why-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
}

.fc-why-desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---- 10. CTA Section ---- */
.fc-cta {
    padding: calc(var(--spacing-unit) * 8) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.fc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.fc-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.fc-cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.fc-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ---- 11. Footer ---- */
.fc-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: calc(var(--spacing-unit) * 7) 0 calc(var(--spacing-unit) * 4);
}

.fc-footer-top { padding-bottom: 40px; border-bottom: 1px solid var(--color-border); }

.fc-footer-brand { margin-bottom: 14px; display: inline-flex; }

.fc-footer-tagline {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 240px;
}

.fc-footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    margin-bottom: 14px;
}

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

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

.fc-footer-links a {
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
    opacity: 0.8;
}

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

.fc-footer-bottom {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    align-items: center;
}

.fc-footer-copy,
.fc-footer-disclaimer {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin: 0;
}

/* ---- 12. Cookie Banner ---- */
.fc-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 16px;
}

.fc-cookie-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fc-cookie-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text);
    min-width: 200px;
}

.fc-cookie-text a { color: var(--color-secondary); }

.fc-cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.fc-btn-accept {
    background: var(--color-primary);
    color: #fff !important;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 18px;
    transition: background var(--transition-fast);
}

.fc-btn-accept:hover { background: var(--color-secondary); border-color: var(--color-secondary); }

.fc-btn-reject {
    background: transparent;
    color: var(--color-text) !important;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 18px;
    transition: border-color var(--transition-fast);
}

.fc-btn-reject:hover { border-color: var(--color-primary); }

.fc-cookie-manage {
    font-size: 0.8125rem;
    color: var(--color-muted);
    transition: color var(--transition-fast);
}

.fc-cookie-manage:hover { color: var(--color-secondary); }

/* ---- 13. Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- 14. Utility Classes ---- */
.fc-result-mono {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.fc-surface-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

/* ---- 15. Responsive ---- */
@media (max-width: 991.98px) {
    .fc-hero { padding: 56px 0 48px; }
    .fc-hero-title { font-size: 2.25rem; }

    .fc-float-badge { display: none; }

    #navbarMain {
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        padding: 16px 0;
        margin-top: 8px;
    }

    .fc-cta-inner { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
    .fc-hero-actions { flex-direction: column; }
    .fc-btn-lg { width: 100%; justify-content: center; }
    .fc-cta-actions { flex-direction: column; width: 100%; }
    .fc-cta-actions .btn { width: 100%; text-align: center; }
    .fc-cookie-inner { flex-direction: column; align-items: flex-start; }
    .fc-cookie-actions { width: 100%; }
    .fc-btn-accept, .fc-btn-reject { flex: 1; text-align: center; }
}

/* ---- 16. Accessibility ---- */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- 17. Unscrambler – Word Tiles ---- */
.fc-word-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fc-word-tile {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 5px 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.fc-word-tile:hover {
    background: var(--color-surface-2);
    border-color: var(--color-secondary);
}

.fc-word-score {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-accent);
    line-height: 1;
}

.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.8;
    color: var(--color-text, #333);
}

.legal-page h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--color-text);
}

.legal-page h2 {
    font-size: 1.4em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border, #ddd);
    padding-bottom: 8px;
}

.legal-page h3 {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.legal-page section {
    margin-bottom: 30px;
}

.legal-page p {
    margin-bottom: 15px;
}

.legal-page ul, .legal-page ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.legal-page li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-page a {
    color: var(--color-link, #0066cc);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-page code {
    background-color: var(--color-code-bg, #f5f5f5);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.legal-page strong {
    font-weight: 600;
    color: var(--color-text);
}

/* ===== GAME PAGES: CTA box & example box ===== */
.fc-cta-box {
    background: var(--color-primary-faint, rgba(99,102,241,0.08));
    border: 1px solid var(--color-primary, #6366f1);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.fc-example-box {
    background: var(--color-surface);
    border-left: 4px solid var(--color-primary, #6366f1);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.fc-example-box h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.fc-tile-table td:first-child {
    white-space: nowrap;
}

/* ===== BREADCRUMB ===== */
.fc-breadcrumb {
    background: var(--color-card-bg, #f8f9fa);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.fc-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}


    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--color-table-bg, #f9f9f9);
}

.cookie-table thead {
    background-color: var(--color-table-header, #f0f0f0);
}

.cookie-table th, .cookie-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border, #ddd);
}

.cookie-table th {
    font-weight: 600;
    color: var(--color-heading, #000);
}

.cookie-table tr:hover {
    background-color: var(--color-table-hover, #f5f5f5);
}

/* ===== WORD LIST PAGES ===== */
.fc-word-list-tip {
    background: var(--color-surface);
    border-left: 3px solid var(--color-primary);
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.fc-word-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.5rem 0;
}

/* Letter navigation */
.fc-letter-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.fc-letter-nav-bottom {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.fc-letter-nav-btn {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-secondary);
    transition: background 0.15s, color 0.15s;
}

.fc-letter-nav-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.fc-letter-nav-disabled {
    color: var(--color-muted);
    border-color: var(--color-border);
    cursor: default;
}

.fc-letter-nav-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
}

/* Related links grid */
.fc-related-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.fc-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.fc-related-link {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-secondary);
    transition: background 0.15s, color 0.15s;
}

.fc-related-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    text-decoration: none;
}

/* AdSense placeholder (shown while AdSense is pending approval) */
.fc-adsense-placeholder {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    margin: 1.5rem 0;
}

.fc-adsense-rect {
    height: 250px;
    max-width: 300px;
}

/* Stats box */
.fc-stats-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.fc-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5rem;
    flex: 1;
}

.fc-stats-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.fc-stats-label {
    font-size: 0.78rem;
    color: var(--color-muted);
    text-align: center;
    margin-top: 0.2rem;
}

/* FAQ section */
.fc-faq {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.fc-faq h2 {
    margin-bottom: 1rem;
}

.fc-faq-item {
    margin-bottom: 1.25rem;
}

.fc-faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.fc-faq-item p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0;
}