/* BossLevel homepage styles.
 * Extracted from index.html on 2026-05-18 (C2.1).
 * Loaded via <link rel="stylesheet"> on index.html so it caches between visits.
 * Do not duplicate these rules inline.
 */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg: #FFFFFF;
            --bg-secondary: #F8F9FA;
            --bg-card: #FFFFFF;
            --text: #1A1A2E;
            --text-secondary: #6B7280;
            --text-muted: #9CA3AF;
            --accent: #FF6B4A;
            --accent-hover: #E85A3A;
            --accent-soft: #FFF5F3;
            --accent-glow: rgba(255, 107, 74, 0.15);
            --success: #10B981;
            --warning: #F59E0B;
            --border: #F1F1F4;
            --border-hover: #E5E5EA;
            --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
            --shadow-glow: 0 8px 24px rgba(255, 107, 74, 0.2);
            --radius: 14px;
            --radius-lg: 20px;
            --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        [data-theme="dark"] {
            --bg: #0F0F14;
            --bg-secondary: #16161D;
            --bg-card: #1C1C26;
            --text: #F4F4F6;
            --text-secondary: #A1A1AA;
            --text-muted: #8C8C95; /* C3.2 2026-05-18: was #71717A (3.95:1 on bg, failed AA). Now 5.73:1. */
            --accent: #FF7A5C;
            --accent-hover: #FF8E74;
            --accent-soft: rgba(255, 122, 92, 0.1);
            --accent-glow: rgba(255, 122, 92, 0.2);
            --border: #65656F;       /* C3.2 2026-05-18: was #27272F (1.29:1, invisible). Now 3.32:1, hits UI threshold. */
            --border-hover: #737380; /* C3.2 2026-05-18: was #3F3F46 (1.83:1). Now 4.09:1. */
            --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
            --shadow-glow: 0 8px 24px rgba(255, 122, 92, 0.25);
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            transition: background 0.4s ease, color 0.4s ease;
        }

        ::selection {
            background: var(--accent-soft);
            color: var(--accent);
        }

        /* ============================================
           HEADER
        ============================================ */
        header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            transition: background 0.4s ease, border-color 0.4s ease;
        }

        [data-theme="dark"] header {
            background: rgba(15, 15, 20, 0.9);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .header-content {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0.875rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .logo {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.625rem;
            transition: var(--transition);
        }

        .logo:hover { transform: scale(1.02); }

        .logo-icon {
            width: 38px;
            height: 38px;
            background: var(--accent);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
            box-shadow: var(--shadow-sm);
            animation: logoFloat 4s ease-in-out infinite;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-2px) rotate(2deg); }
        }

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

        .icon-btn {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--bg-card);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
            transition: var(--transition);
        }

        .icon-btn:hover {
            border-color: var(--border-hover);
            color: var(--text);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .icon-btn:active { transform: translateY(0) scale(0.96); }

        .random-btn {
            height: 42px;
            padding: 0 1.125rem;
            background: var(--text);
            color: var(--bg);
            border: none;
            border-radius: 10px;
            font-family: 'Nunito', sans-serif;
            font-weight: 700;
            font-size: 0.875rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .random-btn {
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff (2.56:1 on accent, failed AA). Now 6.65:1. */
        }

        .random-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        [data-theme="dark"] .random-btn::before {
            background: var(--accent-hover);
        }

        .random-btn:hover::before { transform: scaleX(1); }
        .random-btn span { position: relative; z-index: 1; }
        .random-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
        .random-btn:active { transform: translateY(0) scale(0.98); }

        .dice-icon {
            display: inline-block;
            font-size: 1rem;
        }

        .random-btn:hover .dice-icon {
            animation: diceRoll 0.6s ease;
        }

        @keyframes diceRoll {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ============================================
           HERO SECTION
        ============================================ */
        .hero {
            max-width: 1140px;
            margin: 0 auto;
            padding: 3rem 1.5rem 2rem;
            text-align: center;
        }

        .hero-content {
            opacity: 0;
            animation: fadeUp 0.7s ease forwards;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(24px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero h1 {
            font-family: 'Fredoka', sans-serif;
            font-size: clamp(1.875rem, 5vw, 2.75rem);
            font-weight: 600;
            color: var(--text);
            margin-bottom: 0.5rem;
            letter-spacing: -0.25px;
        }

        .hero h1 .wave {
            display: inline-block;
            animation: wave 2.5s ease-in-out infinite;
            transform-origin: 70% 70%;
        }

        @keyframes wave {
            0%, 100% { transform: rotate(0deg); }
            20% { transform: rotate(14deg); }
            40% { transform: rotate(-8deg); }
            60% { transform: rotate(10deg); }
            80% { transform: rotate(-4deg); }
        }

        .hero p {
            font-size: 1.0625rem;
            color: var(--text-secondary);
            max-width: 420px;
            margin: 0 auto;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            margin-top: 1.75rem;
            opacity: 0;
            animation: fadeUp 0.7s ease 0.15s forwards;
        }

        .stat-value {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--accent);
        }

        .stat-label {
            font-size: 0.8125rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* ============================================
           SEARCH & FILTERS
        ============================================ */
        .controls {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 1.5rem 1.5rem;
        }

        .search-wrapper {
            position: relative;
            max-width: 400px;
            margin: 0 auto 1.25rem;
            opacity: 0;
            animation: fadeUp 0.7s ease 0.25s forwards;
        }

        .search-input {
            width: 100%;
            padding: 0.875rem 1rem 0.875rem 2.75rem;
            background: var(--bg-secondary);
            border: 1px solid transparent;
            border-radius: 12px;
            color: var(--text);
            font-family: 'Nunito', sans-serif;
            font-size: 0.9375rem;
            transition: var(--transition);
        }

        .search-input::placeholder { color: var(--text-muted); }

        .search-input:focus {
            outline: none;
            background: var(--bg-card);
            border-color: var(--border-hover);
            box-shadow: var(--shadow-md);
        }

        .search-input:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

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

        .category-filters {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
            opacity: 0;
            animation: fadeUp 0.7s ease 0.35s forwards;
        }

        .category-btn {
            padding: 0.5rem 1rem;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 20px;
            color: var(--text-secondary);
            font-family: 'Nunito', sans-serif;
            font-weight: 700;
            font-size: 0.8125rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .category-btn:hover {
            border-color: var(--border-hover);
            color: var(--text);
            transform: translateY(-1px);
        }

        .category-btn.active {
            background: var(--text);
            color: var(--bg);
            border-color: var(--text);
        }

        [data-theme="dark"] .category-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.65:1 on warm-accent. */
        }

        .category-btn:active { transform: scale(0.97); }

        .category-icon {
            font-size: 0.875rem;
        }

        /* ============================================
           FEATURED GAME
        ============================================ */
        .featured-section {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 1.5rem 1.5rem;
            display: none;
        }

        .featured-section.visible { display: block; }

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

        .section-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .section-badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.625rem;
            background: var(--accent-soft);
            color: var(--accent);
            border-radius: 6px;
            font-family: 'Nunito', sans-serif;
            font-weight: 700;
        }

        .featured-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1fr;
            cursor: pointer;
            transition: var(--transition);
            opacity: 0;
            animation: fadeUp 0.7s ease 0.4s forwards;
        }

        .featured-card:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
        }

        .featured-visual {
            height: 220px;
            background: linear-gradient(135deg, var(--accent) 0%, #FF9A7B 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .featured-visual::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.2) 0%, transparent 50%);
        }

        .featured-emoji {
            font-size: 5rem;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
            transition: var(--transition-bounce);
        }

        .featured-card:hover .featured-emoji {
            transform: scale(1.1) rotate(-5deg);
        }

        .featured-info {
            padding: 1.75rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .featured-badges {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .badge {
            padding: 0.25rem 0.625rem;
            border-radius: 6px;
            font-size: 0.6875rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-hot {
            background: #FEF3C7;
            color: #D97706;
        }

        [data-theme="dark"] .badge-hot {
            background: rgba(251, 191, 36, 0.15);
            color: #FBBF24;
        }

        .badge-new {
            background: #D1FAE5;
            color: #059669;
        }

        [data-theme="dark"] .badge-new {
            background: rgba(16, 185, 129, 0.15);
            color: #34D399;
        }

        .featured-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.375rem;
            color: var(--text);
        }

        .featured-desc {
            color: var(--text-secondary);
            font-size: 0.9375rem;
            margin-bottom: 1.25rem;
            line-height: 1.5;
        }

        .featured-meta {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            margin-bottom: 1.25rem;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.875rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .meta-item .stars { color: #FBBF24; letter-spacing: -1px; }

        .play-btn-large {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.875rem 1.5rem;
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. */
            border: none;
            border-radius: 12px;
            font-family: 'Nunito', sans-serif;
            font-weight: 800;
            font-size: 0.9375rem;
            cursor: pointer;
            transition: var(--transition);
            width: fit-content;
        }

        .play-btn-large:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
        }

        .play-btn-large:active { transform: scale(0.98); }

        /* ============================================
           RECENT GAMES
        ============================================ */
        .recent-section {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 1.5rem 1.5rem;
            display: none;
        }

        .recent-section.visible { display: block; }

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

        .recent-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.875rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .recent-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .recent-card:active { transform: scale(0.98); }

        .recent-thumb {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent) 0%, #FF9A7B 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.375rem;
            flex-shrink: 0;
        }

        .recent-info h3 {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 0.125rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .recent-info p {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* ============================================
           GAMES GRID
        ============================================ */
        .games-section {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 1.5rem 3rem;
        }

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

        .game-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            opacity: 0;
            animation: cardReveal 0.5s ease forwards;
        }

        @keyframes cardReveal {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .game-card:nth-child(1) { animation-delay: 0.05s; }
        .game-card:nth-child(2) { animation-delay: 0.1s; }
        .game-card:nth-child(3) { animation-delay: 0.15s; }
        .game-card:nth-child(4) { animation-delay: 0.2s; }
        .game-card:nth-child(5) { animation-delay: 0.25s; }
        .game-card:nth-child(6) { animation-delay: 0.3s; }
        .game-card:nth-child(7) { animation-delay: 0.35s; }
        .game-card:nth-child(8) { animation-delay: 0.4s; }

        .game-card:hover {
            border-color: var(--accent);
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
        }

        .game-card:active { transform: translateY(-2px) scale(0.99); }

        .game-card:focus { outline: none; }
        .game-card:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 3px;
            border-color: var(--accent);
        }

        .game-thumbnail {
            width: 100%;
            height: 140px;
            background: linear-gradient(135deg, var(--accent) 0%, #FF9A7B 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .game-thumbnail::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
        }

        .game-emoji {
            font-size: 3.5rem;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
            transition: var(--transition-bounce);
        }

        .game-card:hover .game-emoji {
            transform: scale(1.15) rotate(-3deg);
        }

        .card-badges {
            position: absolute;
            top: 0.625rem;
            right: 0.625rem;
            display: flex;
            gap: 0.375rem;
        }

        .game-info {
            padding: 1rem 1.125rem 1.125rem;
        }

        .game-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.0625rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: var(--text);
        }

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

        /* Difficulty Indicators */
        .difficulty {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            font-weight: 700;
            font-size: 0.75rem;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
        }

        .difficulty-easy {
            background: #D1FAE5;
            color: #059669;
        }

        .difficulty-medium {
            background: #FEF3C7;
            color: #D97706;
        }

        .difficulty-hard {
            background: #FEE2E2;
            color: #DC2626;
        }

        [data-theme="dark"] .difficulty-easy {
            background: rgba(16, 185, 129, 0.15);
            color: #34D399;
        }

        [data-theme="dark"] .difficulty-medium {
            background: rgba(251, 191, 36, 0.15);
            color: #FBBF24;
        }

        [data-theme="dark"] .difficulty-hard {
            background: rgba(239, 68, 68, 0.15);
            color: #F87171;
        }

        /* Players Online Indicator */
        .online-stat .stat-value {
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .online-dot {
            width: 8px;
            height: 8px;
            background: #10B981;
            border-radius: 50%;
            animation: pulse-online 2s ease-in-out infinite;
        }

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

        /* Quick Play Hover Effect */
        .game-card .play-btn {
            position: relative;
            overflow: hidden;
        }

        .game-card.quick-play-ready .play-btn {
            animation: quickPlayPulse 0.8s ease-in-out infinite;
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. */
        }

        @keyframes quickPlayPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(255, 107, 74, 0); }
        }

        /* First Play Celebration */
        .confetti-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
            overflow: hidden;
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            opacity: 0;
        }

        .confetti.animate {
            animation: confettiFall 3s ease-out forwards;
        }

        @keyframes confettiFall {
            0% {
                opacity: 1;
                transform: translateY(0) rotate(0deg);
            }
            100% {
                opacity: 0;
                transform: translateY(100vh) rotate(720deg);
            }
        }

        /* Welcome Toast */
        .welcome-toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: var(--bg-card);
            border: 2px solid var(--accent);
            border-radius: var(--radius-lg);
            padding: 2rem 2.5rem;
            text-align: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: var(--shadow-lg);
        }

        .welcome-toast.visible {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .welcome-toast-icon {
            font-size: 3rem;
            margin-bottom: 0.75rem;
        }

        .welcome-toast h3 {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.25rem;
            color: var(--text);
            margin-bottom: 0.25rem;
        }

        .welcome-toast p {
            color: var(--text-secondary);
            font-size: 0.9375rem;
        }

        .game-description {
            color: var(--text-secondary);
            font-size: 0.875rem;
            line-height: 1.45;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .play-btn {
            width: 100%;
            padding: 0.75rem;
            background: var(--bg-secondary);
            border: none;
            border-radius: 10px;
            color: var(--text);
            font-family: 'Nunito', sans-serif;
            font-weight: 800;
            font-size: 0.875rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
        }

        .play-btn:hover {
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. */
        }

        .game-card:hover .play-btn {
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. */
        }

        /* ============================================
           FAVORITES BUTTON
        ============================================ */
        .fav-btn {
            position: absolute;
            top: 0.625rem;
            left: 0.625rem;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: rgba(255,255,255,0.9);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: var(--transition);
            opacity: 0;
            transform: scale(0.8);
        }

        [data-theme="dark"] .fav-btn {
            background: rgba(28, 28, 38, 0.9);
        }

        .game-card:hover .fav-btn {
            opacity: 1;
            transform: scale(1);
        }

        .fav-btn:hover { transform: scale(1.1) !important; }
        .fav-btn:active { transform: scale(0.95) !important; }

        .fav-btn.active {
            opacity: 1;
            transform: scale(1);
            color: #EF4444;
        }

        /* ============================================
           LOADING & EMPTY STATES
        ============================================ */
        .loading {
            text-align: center;
            padding: 3rem;
            color: var(--text-muted);
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        .no-results {
            text-align: center;
            padding: 4rem 1.5rem;
            display: none;
        }

        .no-results.visible { display: block; }

        .no-results-icon {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            opacity: 0.4;
        }

        .no-results h3 {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.25rem;
            margin-bottom: 0.375rem;
            color: var(--text);
        }

        .no-results p { color: var(--text-muted); }

        /* ============================================
           FOOTER
        ============================================ */
        footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border);
            margin-top: 2rem;
            transition: background 0.4s ease, border-color 0.4s ease;
        }

        .footer-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: var(--text-muted);
        }

        /* ============================================
           MOBILE RESPONSIVE
        ============================================ */
        @media (max-width: 768px) {
            .header-content { padding: 0.75rem 1rem; }
            
            .logo { font-size: 1.25rem; }
            .logo-icon { width: 34px; height: 34px; font-size: 1rem; }
            
            .random-btn .btn-text { display: none; }
            .random-btn { padding: 0 0.875rem; }
            
            .hero { padding: 2rem 1rem 1.5rem; }
            .hero h1 { font-size: 1.625rem; }
            .hero p { font-size: 0.9375rem; }
            .hero-stats { gap: 1.5rem; margin-top: 1.25rem; }
            .stat-value { font-size: 1.25rem; }
            
            .controls { padding: 0 1rem 1.25rem; }
            .search-wrapper { max-width: 100%; }
            
            .category-filters { 
                flex-wrap: nowrap; 
                overflow-x: auto; 
                justify-content: flex-start;
                padding-bottom: 0.5rem;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .category-filters::-webkit-scrollbar { display: none; }
            .category-btn { flex-shrink: 0; }
            
            .featured-section { padding: 0 1rem 1.25rem; }
            .featured-card { grid-template-columns: 1fr; }
            .featured-visual { height: 160px; }
            .featured-emoji { font-size: 4rem; }
            .featured-info { padding: 1.25rem; }
            .featured-title { font-size: 1.25rem; }
            
            .recent-section { padding: 0 1rem 1.25rem; }
            .recent-games { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
            .recent-card { padding: 0.75rem; }
            .recent-thumb { width: 40px; height: 40px; font-size: 1.125rem; }
            .recent-info h3 { font-size: 0.8125rem; }
            
            .games-section { padding: 0 1rem 2rem; }
            .games-grid { 
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
                gap: 1rem; 
            }
            
            .game-thumbnail { height: 120px; }
            .game-emoji { font-size: 3rem; }
            .game-info { padding: 0.875rem 1rem 1rem; }
            .game-title { font-size: 1rem; }
            
            .fav-btn { opacity: 1; transform: scale(1); }
        }

        @media (max-width: 480px) {
            .games-grid { grid-template-columns: 1fr; }
            .recent-games { grid-template-columns: 1fr 1fr; }
        }

        /* ============================================
           SCROLLBAR STYLING
        ============================================ */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-secondary); }
        ::-webkit-scrollbar-thumb { 
            background: var(--border-hover); 
            border-radius: 4px; 
        }
        ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

        /* ============================================
           TOOLTIP
        ============================================ */
        [data-tooltip] {
            position: relative;
        }

        [data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%) scale(0.9);
            padding: 0.5rem 0.75rem;
            background: var(--text);
            color: var(--bg);
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 6px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: var(--transition);
        }

        [data-tooltip]:hover::after {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }

        /* ============================================
           MODAL PAGES (About, Privacy, Contact)
        ============================================ */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 560px;
            max-height: 85vh;
            overflow: hidden;
            z-index: 2001;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
            box-shadow: var(--shadow-lg);
        }

        .modal.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

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

        .modal-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .modal-close {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. */
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            max-height: calc(85vh - 70px);
        }

        .modal-body h3 {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.0625rem;
            font-weight: 600;
            color: var(--text);
            margin: 1.25rem 0 0.5rem 0;
        }

        .modal-body h3:first-child {
            margin-top: 0;
        }

        .modal-body p {
            color: var(--text-secondary);
            font-size: 0.9375rem;
            line-height: 1.7;
            margin-bottom: 0.75rem;
        }

        .modal-body ul {
            color: var(--text-secondary);
            font-size: 0.9375rem;
            line-height: 1.7;
            margin: 0.5rem 0 0.75rem 1.25rem;
        }

        .modal-body li {
            margin-bottom: 0.375rem;
        }

        .modal-body a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .modal-body a:hover {
            text-decoration: underline;
        }

        .modal-highlight {
            background: var(--accent-soft);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            margin: 1rem 0;
        }

        .modal-highlight p {
            margin: 0;
            color: var(--text);
        }

        /* Contact Form */
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

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

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

        .form-group input,
        .form-group textarea {
            padding: 0.875rem 1rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text);
            font-family: 'Nunito', sans-serif;
            font-size: 0.9375rem;
            transition: var(--transition);
        }

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

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .submit-btn {
            padding: 0.875rem 1.5rem;
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. */
            border: none;
            border-radius: 10px;
            font-family: 'Nunito', sans-serif;
            font-weight: 800;
            font-size: 0.9375rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .submit-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
        }

        .submit-btn:active {
            transform: scale(0.98);
        }

        .contact-alt {
            text-align: center;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .contact-alt p {
            font-size: 0.875rem;
            margin-bottom: 0.25rem;
        }

        .success-message {
            text-align: center;
            padding: 2rem 1rem;
        }

        .success-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .success-message h3 {
            color: var(--success);
            margin-bottom: 0.5rem;
        }

        /* ============================================
           BACK TO TOP BUTTON
        ============================================ */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 48px;
            height: 48px;
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. The ↑ arrow is large/bold-equivalent. */
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: var(--transition);
            z-index: 999;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Hide when near footer */
        .back-to-top.near-footer {
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
        }

        .back-to-top:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-glow);
        }

        .back-to-top:active {
            transform: scale(0.95);
        }

        @media (max-width: 768px) {
            .back-to-top {
                bottom: 1.25rem;
                right: 1.25rem;
                width: 44px;
                height: 44px;
            }
        }

        /* ============================================
           NOTIFICATION DOT (New Games)
        ============================================ */
        .logo {
            position: relative;
        }

        .notification-dot {
            position: absolute;
            top: -4px;
            right: -8px;
            width: 12px;
            height: 12px;
            background: #EF4444;
            border-radius: 50%;
            border: 2px solid var(--bg);
            animation: pulse-dot 2s ease-in-out infinite;
        }

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

        .new-games-banner {
            background: linear-gradient(135deg, var(--accent-soft) 0%, #FFF 100%);
            border: 1px solid var(--accent);
            border-radius: 12px;
            padding: 0.75rem 1rem;
            margin: 0 auto 1rem;
            max-width: 400px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            animation: slideDown 0.4s ease;
        }

        [data-theme="dark"] .new-games-banner {
            background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-card) 100%);
        }

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

        .new-games-banner span {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--text);
        }

        .new-games-banner button {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.25rem;
            font-size: 1rem;
            transition: var(--transition);
        }

        .new-games-banner button:hover {
            color: var(--text);
        }

        /* ============================================
           PLAY STREAK
        ============================================ */
        .streak-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
            color: #D97706;
            padding: 0.375rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8125rem;
            font-weight: 700;
            margin-left: 0.75rem;
            animation: bounceIn 0.5s ease;
        }

        [data-theme="dark"] .streak-badge {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
            color: #FBBF24;
        }

        @keyframes bounceIn {
            0% { transform: scale(0); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        /* ============================================
           SORT & FILTER CONTROLS
        ============================================ */
        .games-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
            max-width: 1140px;
            margin: 0 auto 1rem;
        }

        .games-header-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 0.5rem 0.875rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-secondary);
            font-family: 'Nunito', sans-serif;
            font-weight: 700;
            font-size: 0.8125rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

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

        .filter-btn.active {
            background: var(--accent-soft);
            border-color: var(--accent);
            color: var(--accent);
        }

        .sort-select {
            padding: 0.5rem 2rem 0.5rem 0.75rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: 'Nunito', sans-serif;
            font-weight: 600;
            font-size: 0.8125rem;
            cursor: pointer;
            transition: var(--transition);
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
        }

        .sort-select:hover {
            border-color: var(--border-hover);
        }

        .sort-select:focus {
            outline: none;
            border-color: var(--accent);
        }

        .sort-select:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        /* ============================================
           SHARE BUTTON
        ============================================ */
        .share-btn {
            position: absolute;
            top: 0.625rem;
            left: 3rem;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: rgba(255,255,255,0.9);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            transition: var(--transition);
            opacity: 0;
            transform: scale(0.8);
        }

        [data-theme="dark"] .share-btn {
            background: rgba(28, 28, 38, 0.9);
        }

        .game-card:hover .share-btn {
            opacity: 1;
            transform: scale(1);
        }

        .share-btn:hover {
            transform: scale(1.1) !important;
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was #fff. Now 6.05:1 on warm-accent. */
        }

        .share-btn:active {
            transform: scale(0.95) !important;
        }

        /* Share Toast */
        .toast {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--text);
            color: var(--bg);
            padding: 0.875rem 1.5rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.9375rem;
            box-shadow: var(--shadow-lg);
            z-index: 3000;
            opacity: 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .toast.visible {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ============================================
           SKELETON LOADING
        ============================================ */
        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.25rem;
        }

        .skeleton-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
        }

        .skeleton-thumb {
            height: 140px;
            background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }

        .skeleton-info {
            padding: 1rem 1.125rem 1.125rem;
        }

        .skeleton-line {
            height: 14px;
            background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 0.625rem;
        }

        .skeleton-line.title {
            width: 70%;
            height: 18px;
        }

        .skeleton-line.meta {
            width: 50%;
        }

        .skeleton-line.desc {
            width: 100%;
        }

        .skeleton-line.btn {
            width: 100%;
            height: 42px;
            margin-top: 0.5rem;
            margin-bottom: 0;
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        /* ============================================
           FAVORITES EMPTY STATE
        ============================================ */
        .empty-favorites {
            text-align: center;
            padding: 3rem 1.5rem;
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            border: 2px dashed var(--border);
        }

        .empty-favorites-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .empty-favorites h3 {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.125rem;
            color: var(--text);
            margin-bottom: 0.375rem;
        }

        .empty-favorites p {
            color: var(--text-muted);
            font-size: 0.9375rem;
        }

        /* ============================================
           CLEAR RECENT BUTTON
        ============================================ */
        .clear-recent-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-family: 'Nunito', sans-serif;
            font-size: 0.8125rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
        }

        .clear-recent-btn:hover {
            color: var(--accent);
            background: var(--accent-soft);
        }

        /* ============================================
           CATEGORY COUNT BADGES
        ============================================ */
        .category-count {
            background: var(--border);
            color: var(--text-muted);
            font-size: 0.6875rem;
            font-weight: 700;
            padding: 0.125rem 0.375rem;
            border-radius: 4px;
            margin-left: 0.25rem;
        }

        .category-btn.active .category-count {
            background: rgba(255,255,255,0.2);
            color: inherit;
        }

        /* ============================================
           KEYBOARD HINTS
        ============================================ */
        .keyboard-hint {
            position: fixed;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.75rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: var(--shadow-sm);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 100;
        }

        .keyboard-hint.visible {
            opacity: 1;
            visibility: visible;
        }

        .keyboard-hint kbd {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            padding: 0.125rem 0.5rem;
            border-radius: 4px;
            font-family: monospace;
            font-weight: 600;
            color: var(--text);
        }

        @media (max-width: 768px) {
            .keyboard-hint { display: none; }
            .share-btn { opacity: 1; transform: scale(1); }
            .games-header { padding: 0 1rem; }
            .filter-btn span { display: none; }
            .games-header-left { gap: 0.375rem; }
        }

        /* ============================================
           GAME CARD ENHANCED TAP FEEDBACK
        ============================================ */
        .game-card:active {
            transform: scale(0.98);
        }

        .recent-card:active {
            transform: scale(0.97);
        }

        .category-btn:active {
            transform: scale(0.95);
        }

        /* ============================================
           PROGRESS BAR FOR GAME LOADING
        ============================================ */
        .loading-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: var(--accent);
            z-index: 9999;
            transition: width 0.3s ease;
        }

        .loading-progress.active {
            animation: loadProgress 0.8s ease forwards;
        }

        @keyframes loadProgress {
            0% { width: 0%; }
            20% { width: 30%; }
            50% { width: 60%; }
            80% { width: 85%; }
            100% { width: 100%; }
        }

        /* ============================================
           STICKY CATEGORIES ON MOBILE
        ============================================ */
        @media (max-width: 768px) {
            .controls {
                position: sticky;
                top: 57px;
                z-index: 99;
                background: var(--bg);
                padding-top: 1rem;
                margin-top: -0.5rem;
                border-bottom: 1px solid var(--border);
            }

            [data-theme="dark"] .controls {
                background: rgba(15, 15, 20, 0.95);
                backdrop-filter: blur(10px);
            }
        }

        /* ============================================
           SUBTLE GRADIENT ANIMATION ON THUMBNAILS
        ============================================ */
        .game-thumbnail {
            background: linear-gradient(135deg, var(--accent) 0%, #FF9A7B 50%, var(--accent) 100%);
            background-size: 200% 200%;
            animation: gradientShift 8s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Pause animation when not hovered for performance */
        .game-card:not(:hover) .game-thumbnail {
            animation-play-state: paused;
        }

        /* ============================================
           COOKIE CONSENT BANNER
        ============================================ */
        /* Cookie banner styles moved to /assets/consent.js (#blCookieBanner). */

        /* ============================================
           SEO CONTENT SECTIONS - Below the fold
        ============================================ */
        .seo-section {
            padding: 3rem 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .seo-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.75rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 0.5rem;
            color: var(--text);
        }

        .seo-subtitle {
            text-align: center;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-size: 1rem;
        }

        /* How It Works */
        .steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .step-card {
            text-align: center;
            padding: 1.5rem 1rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            position: relative;
        }

        .step-number {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 24px;
            background: var(--accent);
            color: #1A1A2E; /* C3.2 2026-05-18: was white (2.82:1 on warm-accent, failed AA). Now 6.05:1. */
            border-radius: 50%;
            font-size: 0.75rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .step-icon {
            font-size: 2rem;
            margin-bottom: 0.75rem;
        }

        .step-card h3 {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text);
        }

        .step-card p {
            font-size: 0.875rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* Why BossLevel Features */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

        .feature-card {
            padding: 1.25rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            transition: var(--transition);
        }

        .feature-card:hover {
            border-color: var(--accent);
        }

        .feature-icon {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .feature-card h3 {
            font-family: 'Fredoka', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.375rem;
            color: var(--text);
        }

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

        /* FAQ Section */
        .faq-list {
            max-width: 700px;
            margin: 0 auto;
        }

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

        .faq-question {
            padding: 1rem 1.25rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text);
            font-size: 0.9375rem;
            list-style: none;
        }

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

        .faq-question::after {
            content: '+';
            font-size: 1.25rem;
            color: var(--accent);
            font-weight: 600;
            transition: transform 0.2s;
        }

        .faq-item[open] .faq-question::after {
            content: '−';
        }

        .faq-answer {
            padding: 0 1.25rem 1rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
            line-height: 1.6;
        }

        .faq-answer a {
            color: var(--accent);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .seo-section {
                padding: 2rem 1rem;
            }

            .seo-title {
                font-size: 1.5rem;
            }

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

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

            .feature-card {
                padding: 1rem;
            }
        }

        @media (max-width: 480px) {
            .features-grid {
                grid-template-columns: 1fr;
            }
        }
