/* ============================================
           PROGRESSIVE LEARNING - ASDF ECOSYSTEM
           V2: With Gamification, FAQ, Glossary, Calculator
           ============================================ */

        :root {
            /* Fire Palette */
            --bg-void: #0a0a0f;
            --bg-dark: #0c0c0c;
            --bg-charred: #2a1005;
            --bg-burnt: #451a03;
            --border-rust: #7c2d12;
            --border-orange: #9a3412;
            --accent-fire: #ea580c;
            --accent-bright: #fb923c;
            --accent-ember: #f97316;
            --text-cream: #ffedd5;
            --text-muted: #a8a29e;
            --green: #22c55e;
            --green-light: #4ade80;
            --purple: #a855f7;
            --blue: #3b82f6;
            --red: #ef4444;
            --gold: #fbbf24;
            --silver: #9ca3af;
            --bronze: #d97706;

            /* Level Colors */
            --level-1: #f97316;
            --level-2: #eab308;
            --level-3: #22c55e;
            --level-4: #3b82f6;
            --level-5: #a855f7;

            /* Typography */
            --font-display: 'Comic Neue', cursive;
            --font-mono: 'JetBrains Mono', monospace;

            /* Spacing */
            --container-max: 900px;
            --radius: 12px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html {
            scroll-behavior: smooth;
            background: var(--bg-void);
        }

        body {
            font-family: var(--font-mono);
            background: var(--bg-void);
            color: var(--text-cream);
            line-height: 1.7;
            overflow-x: hidden;
            min-height: 100vh;
        }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-charred); }
        ::-webkit-scrollbar-thumb { background: var(--border-rust); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--accent-fire); }

        /* ============================================
           NAVIGATION BAR
           ============================================ */

        .nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 12px 24px;
            background: rgba(10, 10, 15, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 2px solid var(--border-rust);
        }

        .nav-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 16px;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--text-cream);
        }

        .nav-logo-text {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 700;
            text-shadow: 2px 2px 0 var(--accent-fire);
        }

        .nav-tabs {
            display: flex;
            gap: 4px;
            background: var(--bg-charred);
            padding: 4px;
            border-radius: 8px;
            border: 1px solid var(--border-rust);
            overflow: visible;
            justify-self: center;
        }

        .nav-tab {
            padding: 8px 12px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .nav-tab:hover { color: var(--text-cream); }
        .nav-tab.active {
            background: var(--accent-fire);
            color: #fff;
        }

        .nav-progress {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-level {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 2px solid var(--border-rust);
            background: var(--bg-charred);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-level.completed { background: var(--green); border-color: var(--green-light); color: #000; }
        .nav-level.current { border-color: var(--accent-fire); color: var(--accent-fire); animation: pulse-border 2s infinite; }
        .nav-level.locked { opacity: 0.4; cursor: not-allowed; }
        .nav-level:hover:not(.locked) { transform: scale(1.15); }

        @keyframes pulse-border {
            0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
            50% { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
        }

        .nav-connector { width: 16px; height: 2px; background: var(--border-rust); }
        .nav-connector.active { background: var(--green); }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;
            justify-self: end;
        }

        .nav-stats {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 11px;
        }

        .nav-xp {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: var(--bg-burnt);
            border: 1px solid var(--gold);
            border-radius: 100px;
            color: var(--gold);
            font-weight: 700;
        }

        /* ============================================
           NAV TAB DROPDOWN - Tools Menu
           ============================================ */

        .nav-tab-dropdown {
            position: relative;
            display: inline-flex;
        }

        .nav-tab-trigger {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tab-dropdown-arrow {
            font-size: 9px;
            transition: transform 0.3s ease;
            opacity: 0.7;
        }

        .nav-tab-dropdown:hover .tab-dropdown-arrow {
            transform: rotate(180deg);
        }

        .nav-tab-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            min-width: 180px;
            background: var(--bg-charred);
            border: 2px solid var(--accent-fire);
            border-radius: 12px;
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 300;
            box-shadow: 0 15px 50px rgba(234, 88, 12, 0.3), 0 5px 20px rgba(0, 0, 0, 0.5);
        }

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

        .nav-tab-dropdown-menu::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            border: 8px solid transparent;
            border-bottom-color: var(--accent-fire);
        }

        .nav-tab-dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: var(--text-cream);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .nav-tab-dropdown-menu a:hover {
            background: var(--accent-fire);
            color: #fff;
            transform: translateX(4px);
        }

        .nav-tab-dropdown-menu .dropdown-icon {
            font-size: 18px;
        }

        .nav-tab-dropdown-menu .tool-status {
            margin-left: auto;
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 700;
        }

        .nav-tab-dropdown-menu .tool-status.live {
            background: var(--green);
            color: #000;
        }

        .nav-tab-dropdown-menu .tool-status.beta {
            background: var(--gold);
            color: #000;
        }

        /* ============================================
           EASTER EGG - Home Link & Pill Modal
           ============================================ */

        .nav-home-link {
            display: none !important;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: linear-gradient(135deg, var(--purple), #6366f1);
            border: 1px solid var(--purple);
            border-radius: 100px;
            color: #fff;
            font-weight: 700;
            font-size: 11px;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            animation: glow-pulse 2s infinite;
        }

        .nav-home-link.unlocked {
            display: flex !important;
        }

        .nav-home-link:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
        }

        @keyframes glow-pulse {
            0%, 100% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.3); }
            50% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.6); }
        }

        /* Badge "Now you can understand" */
        .completion-badge {
            display: none;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            background: linear-gradient(135deg, var(--green), var(--green-light));
            border: 2px solid var(--green-light);
            border-radius: 100px;
            color: #000;
            font-weight: 700;
            font-size: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            animation: badge-shine 3s infinite;
        }

        .completion-badge.unlocked {
            display: flex;
        }

        .completion-badge:hover {
            transform: scale(1.05);
        }

        @keyframes badge-shine {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.2); }
        }

        /* Pill Modal */
        .pill-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 500;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        .pill-modal.active {
            display: flex;
        }

        .pill-modal-content {
            max-width: 420px;
            background: linear-gradient(135deg, var(--bg-charred), #1a0a1f);
            border: 3px solid var(--purple);
            border-radius: 16px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 0 60px rgba(168, 85, 247, 0.3);
        }

        .pill-modal-icon {
            font-size: 64px;
            margin-bottom: 20px;
            animation: float 3s ease-in-out infinite;
        }

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

        .pill-modal-title {
            font-family: var(--font-display);
            font-size: 28px;
            margin-bottom: 16px;
            background: linear-gradient(135deg, var(--purple), #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .pill-modal-text {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 32px;
            line-height: 1.7;
        }

        .pill-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
        }

        .pill-btn {
            padding: 14px 32px;
            font-family: var(--font-mono);
            font-size: 14px;
            font-weight: 700;
            border: 2px solid;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pill-btn.yes {
            background: linear-gradient(135deg, var(--purple), #ec4899);
            border-color: var(--purple);
            color: #fff;
        }

        .pill-btn.yes:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
        }

        .pill-btn.no {
            background: transparent;
            border-color: var(--red);
            color: var(--red);
        }

        .pill-btn.no:hover {
            background: rgba(239, 68, 68, 0.2);
        }

        .pill-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 24px;
            cursor: pointer;
        }

        .pill-close:hover {
            color: var(--accent-fire);
        }

        /* ============================================
           MAIN CONTAINER - SIDEBAR LAYOUT
           ============================================ */

        .main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 90px 24px 60px;
        }

        .main-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 32px;
            align-items: start;
        }

        .sidebar {
            position: sticky;
            top: 90px;
            max-height: calc(100vh - 110px);
            overflow-y: auto;
        }

        .sidebar::-webkit-scrollbar { width: 4px; }
        .sidebar::-webkit-scrollbar-thumb { background: var(--border-rust); border-radius: 2px; }

        /* Hide sidebar when games view is active (full-width layout) */
        .main-layout.games-active {
            grid-template-columns: 1fr;
        }
        .main-layout.games-active .sidebar {
            display: none;
        }
        .main-layout.games-active .content-area {
            max-width: 100%;
        }

        .content-area {
            min-width: 0;
            max-width: var(--container-max);
        }

        @media (max-width: 1024px) {
            .main-layout {
                grid-template-columns: 1fr;
            }
            .sidebar {
                position: relative;
                top: 0;
                max-height: none;
            }
        }

        /* ============================================
           VIEW SECTIONS (Levels, FAQ, Glossary, etc.)
           ============================================ */

        .view-section {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .view-section.active { display: block; }

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

        /* ============================================
           LEVEL SECTIONS
           ============================================ */

        .level-section { display: none; animation: fadeIn 0.5s ease; }
        .level-section.active { display: block; }

        .level-header { text-align: center; margin-bottom: 40px; }

        .level-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 12px;
        }

        .level-1 .level-badge { background: rgba(249, 115, 22, 0.2); border: 1px solid var(--level-1); color: var(--level-1); }
        .level-2 .level-badge { background: rgba(234, 179, 8, 0.2); border: 1px solid var(--level-2); color: var(--level-2); }
        .level-3 .level-badge { background: rgba(34, 197, 94, 0.2); border: 1px solid var(--level-3); color: var(--level-3); }
        .level-4 .level-badge { background: rgba(59, 130, 246, 0.2); border: 1px solid var(--level-4); color: var(--level-4); }
        .level-5 .level-badge { background: rgba(168, 85, 247, 0.2); border: 1px solid var(--level-5); color: var(--level-5); }

        .level-title {
            font-family: var(--font-display);
            font-size: clamp(32px, 7vw, 48px);
            font-weight: 700;
            margin-bottom: 12px;
            text-shadow: 3px 3px 0 var(--accent-fire);
        }

        .level-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            max-width: 450px;
            margin: 0 auto;
        }

        .level-xp {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 12px;
            padding: 4px 12px;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid var(--gold);
            border-radius: 100px;
            font-size: 11px;
            color: var(--gold);
        }

        /* ============================================
           CONTENT CARDS
           ============================================ */

        .content-card {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 28px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }

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

        .content-card h3 {
            font-family: var(--font-display);
            font-size: 22px;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .content-card p {
            color: var(--text-muted);
            font-size: 13px;
            margin-bottom: 14px;
        }

        .content-card p:last-child { margin-bottom: 0; }

        .highlight-box {
            background: var(--bg-burnt);
            border: 1px dashed var(--accent-fire);
            border-radius: 8px;
            padding: 14px;
            margin: 14px 0;
            font-size: 13px;
        }

        .highlight-box strong { color: var(--accent-bright); }

        /* ============================================
           INTERACTIVE ELEMENTS
           ============================================ */

        .reveal-box {
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            overflow: hidden;
            margin: 20px 0;
        }

        .reveal-trigger {
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .reveal-trigger:hover { background: rgba(234, 88, 12, 0.1); }

        .reveal-trigger h4 {
            font-family: var(--font-display);
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .reveal-arrow { transition: transform 0.3s ease; }
        .reveal-box.open .reveal-arrow { transform: rotate(180deg); }

        .reveal-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
            background: var(--bg-charred);
        }

        .reveal-box.open .reveal-content { max-height: 1000px; }

        .reveal-content-inner {
            padding: 20px;
            border-top: 1px solid var(--border-rust);
            font-size: 13px;
        }

        /* ============================================
           VISUAL FLOW DIAGRAM
           ============================================ */

        .visual-flow {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 28px;
            background: var(--bg-burnt);
            border-radius: var(--radius);
            margin: 20px 0;
        }

        .flow-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 14px;
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            min-width: 90px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .flow-step:hover { border-color: var(--accent-fire); transform: translateY(-4px); }
        .flow-step .icon { font-size: 24px; }
        .flow-step .label { font-size: 11px; font-weight: 600; color: var(--text-cream); }
        .flow-step .sublabel { font-size: 9px; color: var(--text-muted); }
        .flow-arrow { font-size: 20px; color: var(--accent-fire); }

        /* ============================================
           QUIZ SYSTEM
           ============================================ */

        .quiz-container {
            background: var(--bg-charred);
            border: 2px solid var(--accent-fire);
            border-radius: var(--radius);
            padding: 28px;
            margin: 28px 0;
        }

        .quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .quiz-xp {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid var(--gold);
            border-radius: 100px;
            font-size: 10px;
            color: var(--gold);
        }

        .quiz-question {
            font-family: var(--font-display);
            font-size: 18px;
            margin-bottom: 20px;
            text-align: center;
        }

        .quiz-options { display: grid; gap: 10px; }

        .quiz-option {
            padding: 14px 18px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 13px;
        }

        .quiz-option:hover { border-color: var(--accent-fire); background: rgba(234, 88, 12, 0.1); }
        .quiz-option.correct { border-color: var(--green); background: rgba(34, 197, 94, 0.2); }
        .quiz-option.wrong { border-color: var(--red); background: rgba(239, 68, 68, 0.2); }

        .quiz-feedback {
            text-align: center;
            margin-top: 20px;
            padding: 14px;
            border-radius: 8px;
            display: none;
            font-size: 13px;
        }

        .quiz-feedback.show { display: block; animation: fadeIn 0.3s ease; }
        .quiz-feedback.success { background: rgba(34, 197, 94, 0.2); border: 1px solid var(--green); color: var(--green-light); }
        .quiz-feedback.error { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--red); color: #fca5a5; }

        /* ============================================
           BADGES & ACHIEVEMENTS
           ============================================ */

        .badges-panel {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 24px;
            margin-bottom: 24px;
        }

        .badges-title {
            font-family: var(--font-display);
            font-size: 20px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .badges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 12px;
        }

        .badge-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 16px 8px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            text-align: center;
            transition: all 0.3s ease;
        }

        .badge-item.locked { opacity: 0.4; filter: grayscale(1); }
        .badge-item.earned { border-color: var(--gold); box-shadow: 0 0 20px rgba(251, 191, 36, 0.2); }

        .badge-icon { font-size: 32px; }
        .badge-name { font-size: 10px; font-weight: 700; color: var(--text-cream); }
        .badge-desc { font-size: 9px; color: var(--text-muted); }

        /* Sidebar specific badges styling */
        .sidebar .badges-panel {
            margin-bottom: 16px;
        }
        .sidebar .badges-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        .sidebar .badge-item {
            padding: 12px 6px;
        }
        .sidebar .badge-icon { font-size: 24px; }
        .sidebar .badge-name { font-size: 9px; }
        .sidebar .badge-desc { font-size: 8px; }

        /* ============================================
           MINI-GAMES SECTION
           ============================================ */

        .minigames-panel {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 16px;
        }

        .minigames-title {
            font-family: var(--font-display);
            font-size: 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .minigame-btn {
            width: 100%;
            padding: 12px;
            margin-bottom: 8px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            color: var(--text-cream);
            font-family: var(--font-mono);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s ease;
        }

        .minigame-btn:hover {
            border-color: var(--accent-fire);
            transform: translateX(4px);
        }

        .minigame-btn:last-child { margin-bottom: 0; }

        .minigame-btn .mg-icon { font-size: 20px; }
        .minigame-btn .mg-info { flex: 1; text-align: left; }
        .minigame-btn .mg-name { display: block; }
        .minigame-btn .mg-reward { font-size: 10px; color: var(--gold); }
        .minigame-btn .mg-arrow { color: var(--accent-fire); }

        /* Game Modal */
        .game-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 300;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .game-modal.active { display: flex; }

        .game-container {
            background: var(--bg-charred);
            border: 3px solid var(--accent-fire);
            border-radius: var(--radius);
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .game-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 2px solid var(--border-rust);
        }

        .game-title {
            font-family: var(--font-display);
            font-size: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .game-close {
            width: 36px;
            height: 36px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            color: var(--text-cream);
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .game-close:hover {
            background: var(--red);
            border-color: var(--red);
        }

        .game-refresh {
            width: 36px;
            height: 36px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            color: var(--text-cream);
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-right: 8px;
        }

        .game-refresh:hover {
            background: var(--green);
            border-color: var(--green);
        }

        .game-header-buttons {
            display: flex;
            align-items: center;
        }

        .game-content {
            padding: 24px;
        }

        .game-score {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 20px;
        }

        .score-item {
            text-align: center;
            padding: 12px 20px;
            background: var(--bg-burnt);
            border: 1px solid var(--border-rust);
            border-radius: 8px;
        }

        .score-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
        .score-value { font-size: 24px; font-weight: 700; color: var(--accent-bright); }
        .score-value.gold { color: var(--gold); }

        .game-area {
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            min-height: 300px;
            position: relative;
            overflow: hidden;
        }

        .game-instructions {
            text-align: center;
            padding: 20px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .game-start-btn {
            display: block;
            margin: 20px auto;
            padding: 16px 40px;
            background: var(--accent-fire);
            border: 2px solid var(--accent-bright);
            border-radius: var(--radius);
            color: #fff;
            font-family: var(--font-mono);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 4px 4px 0 var(--border-rust);
        }

        .game-start-btn:hover {
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 var(--border-rust);
        }

        /* Token Catcher Game */
        .catcher-area {
            height: 350px;
            position: relative;
            background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-burnt) 100%);
        }

        .catcher-basket {
            position: absolute;
            bottom: 10px;
            width: 80px;
            height: 50px;
            background: var(--accent-fire);
            border: 3px solid var(--accent-bright);
            border-radius: 8px 8px 16px 16px;
            transition: left 0.1s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .falling-token {
            position: absolute;
            font-size: 28px;
            animation: fallDown linear forwards;
            cursor: pointer;
        }

        @keyframes fallDown {
            from { top: -40px; }
            to { top: 400px; }
        }

        /* Burn Sequence Game (Simon Says) */
        .sequence-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            padding: 20px;
            max-width: 300px;
            margin: 0 auto;
        }

        .sequence-btn {
            aspect-ratio: 1;
            border-radius: 16px;
            border: 3px solid transparent;
            font-size: 32px;
            cursor: pointer;
            transition: all 0.1s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sequence-btn[data-step="collect"] { background: #3b82f6; border-color: #60a5fa; }
        .sequence-btn[data-step="swap"] { background: #22c55e; border-color: #4ade80; }
        .sequence-btn[data-step="burn"] { background: #f97316; border-color: #fb923c; }
        .sequence-btn[data-step="verify"] { background: #a855f7; border-color: #c084fc; }

        .sequence-btn.flash {
            filter: brightness(1.5);
            transform: scale(1.05);
            box-shadow: 0 0 30px currentColor;
        }

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

        .sequence-display {
            text-align: center;
            padding: 16px;
            font-size: 18px;
            font-family: var(--font-display);
            color: var(--text-cream);
            min-height: 60px;
        }

        /* Speed Match Game */
        .match-container {
            display: grid;
            grid-template-columns: 180px 1fr;
            gap: 20px;
            padding: 20px;
        }

        .match-legend {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 16px;
        }

        .match-legend-title {
            font-family: var(--font-display);
            font-size: 14px;
            margin-bottom: 12px;
            color: var(--accent-bright);
            text-align: center;
        }

        .match-legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-rust);
            font-size: 12px;
        }

        .match-legend-item:last-child { border-bottom: none; }
        .match-legend-item .legend-icon { font-size: 20px; }
        .match-legend-item .legend-text { color: var(--text-muted); }

        .match-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .match-card {
            aspect-ratio: 1;
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            text-align: center;
            padding: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-cream);
            min-height: 70px;
        }

        .match-card:hover { border-color: var(--accent-fire); transform: scale(1.02); }
        .match-card.flipped { background: var(--accent-fire); }
        .match-card.matched { background: var(--green); border-color: var(--green-light); pointer-events: none; }
        .match-card .card-front { display: block; font-size: 28px; }
        .match-card.flipped .card-front { display: none; }
        .match-card .card-back { display: none; font-size: 13px; font-weight: 600; line-height: 1.3; }
        .match-card.flipped .card-back { display: block; }

        @media (max-width: 768px) {
            .match-container {
                grid-template-columns: 1fr;
            }
            .match-legend {
                display: none;
            }
        }

        /* Play Section */
        .play-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .game-card {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .game-card:hover {
            border-color: var(--accent-fire);
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(234, 88, 12, 0.2);
        }

        .game-card-icon {
            font-size: 48px;
            text-align: center;
        }

        .game-card-content h3 {
            font-family: var(--font-display);
            font-size: 20px;
            margin-bottom: 8px;
            text-align: center;
        }

        .game-card-content p {
            font-size: 12px;
            color: var(--text-muted);
            text-align: center;
            line-height: 1.6;
        }

        .game-card-meta {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 12px;
        }

        .game-xp {
            padding: 4px 12px;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid var(--gold);
            border-radius: 100px;
            font-size: 11px;
            color: var(--gold);
        }

        .game-time {
            padding: 4px 12px;
            background: rgba(168, 85, 247, 0.1);
            border: 1px solid var(--purple);
            border-radius: 100px;
            font-size: 11px;
            color: var(--purple);
        }

        .game-card-highscore {
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            padding-top: 8px;
            border-top: 1px solid var(--border-rust);
        }

        .game-card-highscore span {
            color: var(--gold);
            font-weight: 700;
        }

        .game-card-play {
            text-align: center;
            padding: 12px;
            background: var(--accent-fire);
            border-radius: 8px;
            font-weight: 700;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .game-card:hover .game-card-play {
            background: var(--accent-bright);
        }

        /* ============================================
           BURN FIGHTER (2D Combat)
           ============================================ */
        .fighter-arena {
            height: 300px;
            background: linear-gradient(180deg, #1a0a1a 0%, #2d1f3d 50%, #1a1a2e 100%);
            position: relative;
            overflow: hidden;
            border-bottom: 4px solid var(--accent-fire);
        }

        .fighter-ground {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: linear-gradient(180deg, #3d2817 0%, #2a1a0f 100%);
        }

        .fighter-player, .fighter-enemy {
            position: absolute;
            bottom: 40px;
            font-size: 48px;
            transition: left 0.1s ease, right 0.1s ease, bottom 0.15s ease;
        }

        .fighter-player { left: 50px; }
        .fighter-enemy { right: 50px; }

        .fighter-player.jumping {
            animation: fighterJump 0.5s ease-out;
        }

        @keyframes fighterJump {
            0% { bottom: 40px; }
            50% { bottom: 140px; }
            100% { bottom: 40px; }
        }

        .fighter-player.blocking {
            opacity: 0.7;
            filter: brightness(0.8);
        }

        .fighter-player.blocking::after {
            content: '🛡️';
            position: absolute;
            font-size: 32px;
            right: -30px;
            top: 0;
        }

        .fighter-health-bar {
            position: absolute;
            top: 10px;
            height: 20px;
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: 4px;
            overflow: hidden;
        }

        .fighter-health-bar.player { left: 10px; right: 55%; }
        .fighter-health-bar.enemy { left: 55%; right: 10px; }

        .fighter-health-fill {
            height: 100%;
            background: var(--green);
            transition: width 0.2s ease;
        }

        .fighter-health-fill.low { background: var(--red); }

        .fighter-attack {
            position: absolute;
            font-size: 32px;
            animation: attackAnimRight 0.3s ease-out forwards;
        }

        .fighter-attack.left { animation-name: attackAnimLeft; }
        .fighter-attack.up { animation-name: attackAnimUp; }

        @keyframes attackAnimRight {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(2) translateX(50px); opacity: 0; }
        }

        @keyframes attackAnimLeft {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(2) translateX(-50px); opacity: 0; }
        }

        @keyframes attackAnimUp {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(2) translateY(-50px); opacity: 0; }
        }

        .fighter-combo {
            position: absolute;
            top: 40px;
            left: 50%;
            transform: translateX(-50%);
            font-family: var(--font-display);
            font-size: 24px;
            color: var(--gold);
            text-shadow: 0 0 10px var(--gold);
        }

        .fighter-controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            padding: 15px;
            background: var(--bg-charred);
        }

        .fighter-btn {
            padding: 12px 24px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            color: var(--text-cream);
            font-family: var(--font-mono);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.1s ease;
        }

        .fighter-btn:hover { border-color: var(--accent-fire); }
        .fighter-btn:active { transform: scale(0.95); }
        .fighter-btn.attack { background: var(--red); border-color: #f87171; }
        .fighter-btn.special { background: var(--purple); border-color: #c084fc; }

        /* ============================================
           TOKEN RACER (Car Game)
           ============================================ */
        .racer-track {
            height: 350px;
            background: linear-gradient(180deg, #1a2a1a 0%, #0f1f0f 100%);
            position: relative;
            overflow: hidden;
        }

        .racer-road {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 100%;
            background: #333;
            border-left: 4px dashed #666;
            border-right: 4px dashed #666;
        }

        .racer-line {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 40px;
            background: #fff;
            animation: roadMove 0.5s linear infinite;
        }

        @keyframes roadMove {
            from { transform: translateX(-50%) translateY(-40px); }
            to { transform: translateX(-50%) translateY(350px); }
        }

        .racer-car {
            position: absolute;
            bottom: 30px;
            font-size: 40px;
            transition: left 0.1s ease;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
        }

        .racer-obstacle, .racer-coin {
            position: absolute;
            font-size: 28px;
            animation: obstacleMove linear forwards;
        }

        @keyframes obstacleMove {
            from { top: -40px; }
            to { top: 400px; }
        }

        .racer-speed {
            position: absolute;
            bottom: 10px;
            right: 10px;
            padding: 8px 16px;
            background: rgba(0,0,0,0.7);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-fire);
        }

        /* ============================================
           SCAM BLASTER (Shooting Game)
           ============================================ */
        .blaster-arena {
            height: 350px;
            background: radial-gradient(ellipse at center, #1a1a3a 0%, #0a0a1a 100%);
            position: relative;
            overflow: hidden;
            cursor: crosshair;
        }

        .blaster-target {
            position: absolute;
            font-size: 36px;
            cursor: crosshair;
            transition: transform 0.1s ease;
            animation: float 2s ease-in-out infinite;
        }

        .blaster-target:hover { transform: scale(1.2); }

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

        .blaster-explosion {
            position: absolute;
            font-size: 48px;
            animation: explode 0.4s ease-out forwards;
            pointer-events: none;
        }

        @keyframes explode {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }

        .blaster-crosshair {
            position: absolute;
            width: 30px;
            height: 30px;
            border: 2px solid var(--accent-fire);
            border-radius: 50%;
            pointer-events: none;
            transform: translate(-50%, -50%);
        }

        .blaster-crosshair::before, .blaster-crosshair::after {
            content: '';
            position: absolute;
            background: var(--accent-fire);
        }

        .blaster-crosshair::before {
            width: 2px;
            height: 10px;
            left: 50%;
            top: -12px;
            transform: translateX(-50%);
        }

        .blaster-crosshair::after {
            width: 10px;
            height: 2px;
            top: 50%;
            left: -12px;
            transform: translateY(-50%);
        }

        .blaster-wave {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            padding: 8px 20px;
            background: rgba(168, 85, 247, 0.3);
            border: 1px solid var(--purple);
            border-radius: 20px;
            font-size: 14px;
            color: var(--purple);
        }

        /* ============================================
           TREASURY DEFENSE (Strategy)
           ============================================ */
        .defense-field {
            height: 350px;
            background: linear-gradient(180deg, #0a1a2a 0%, #1a2a3a 100%);
            position: relative;
            overflow: hidden;
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            grid-template-rows: repeat(6, 1fr);
            gap: 2px;
        }

        .defense-cell {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .defense-cell:hover:not(.path):not(.tower) { background: rgba(34, 197, 94, 0.3); border-color: var(--green); }
        .defense-cell.path {
            background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
            border: 2px solid #CD853F;
            cursor: not-allowed;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
        }
        .defense-cell.path:hover { background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%); }
        .defense-cell.tower { background: rgba(34, 197, 94, 0.4); border-color: var(--green); cursor: default; }
        .defense-cell.treasury { background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%); border: 2px solid var(--gold); }
        .defense-cell.start { background: linear-gradient(135deg, #228B22 0%, #32CD32 100%); border: 2px solid var(--green); }

        .defense-enemy {
            position: absolute;
            font-size: 24px;
            transition: all 0.5s linear;
            z-index: 10;
        }

        .defense-projectile {
            position: absolute;
            font-size: 16px;
            z-index: 15;
            pointer-events: none;
            animation: projectileFly 0.3s ease-out forwards;
        }

        .defense-projectile.fire { filter: hue-rotate(0deg); }
        .defense-projectile.ice { filter: hue-rotate(180deg); }
        .defense-projectile.lightning { filter: hue-rotate(60deg); }

        @keyframes projectileFly {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(1.5); opacity: 0; }
        }

        .defense-damage {
            position: absolute;
            font-size: 12px;
            font-weight: bold;
            color: #ff4444;
            z-index: 20;
            pointer-events: none;
            animation: damageFloat 0.6s ease-out forwards;
        }

        @keyframes damageFloat {
            0% { transform: translateY(0); opacity: 1; }
            100% { transform: translateY(-20px); opacity: 0; }
        }

        .defense-sidebar {
            padding: 15px;
            background: var(--bg-charred);
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .defense-tower-btn {
            padding: 10px 15px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            color: var(--text-cream);
            font-size: 11px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transition: all 0.2s ease;
        }

        .defense-tower-btn:hover { border-color: var(--accent-fire); }
        .defense-tower-btn.selected { border-color: var(--green); background: rgba(34, 197, 94, 0.2); }
        .defense-tower-btn .tower-icon { font-size: 24px; }
        .defense-tower-btn .tower-cost { color: var(--gold); font-size: 10px; }

        .defense-lives {
            display: flex;
            gap: 4px;
            justify-content: center;
            padding: 8px;
            background: var(--bg-burnt);
        }

        .defense-lives span { font-size: 20px; }

        /* ============================================
           TOKEN STACKER (Build Game)
           ============================================ */
        .stacker-area {
            height: 350px;
            background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2a 100%);
            position: relative;
            overflow: hidden;
        }

        .stacker-viewport {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100%;
            transition: transform 0.3s ease;
        }

        .stacker-platform {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 20px;
            background: var(--accent-fire);
            border-radius: 4px;
        }

        .stacker-block {
            position: absolute;
            height: 30px;
            background: var(--accent-fire);
            border: 2px solid var(--accent-bright);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: background 0.2s ease;
        }

        .stacker-block.falling {
            animation: none;
        }

        .stacker-block.placed {
            background: var(--green);
            border-color: var(--green-light);
        }

        .stacker-block.perfect {
            background: var(--gold);
            border-color: #fcd34d;
            animation: perfectPulse 0.5s ease;
        }

        @keyframes perfectPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
            50% { box-shadow: 0 0 20px 10px rgba(251, 191, 36, 0.3); }
        }

        .stacker-moving {
            position: absolute;
            height: 30px;
            background: var(--accent-fire);
            border: 2px solid var(--accent-bright);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            z-index: 10;
        }

        .stacker-height {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 8px 16px;
            background: rgba(0,0,0,0.7);
            border-radius: 8px;
            font-size: 14px;
            color: var(--gold);
        }

        .stacker-perfect-text {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-family: var(--font-display);
            font-size: 28px;
            color: var(--gold);
            text-shadow: 0 0 20px var(--gold);
            animation: perfectText 0.8s ease-out forwards;
            pointer-events: none;
        }

        @keyframes perfectText {
            0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
            100% { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(1.5); }
        }

        /* Burn Clicker Game */
        .clicker-area {
            text-align: center;
            padding: 24px;
        }

        .burn-counter {
            font-family: var(--font-display);
            font-size: 48px;
            color: var(--accent-bright);
            text-shadow: 0 0 20px var(--accent-fire);
            margin-bottom: 20px;
        }

        .burn-clicker-btn {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, var(--accent-bright), var(--accent-fire), #c2410c);
            border: 4px solid var(--accent-bright);
            font-size: 48px;
            cursor: pointer;
            transition: all 0.1s ease;
            box-shadow: 0 8px 0 #7c2d12, 0 12px 20px rgba(0,0,0,0.4);
            position: relative;
        }

        .burn-clicker-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #7c2d12, 0 16px 24px rgba(0,0,0,0.4); }
        .burn-clicker-btn:active { transform: translateY(4px); box-shadow: 0 4px 0 #7c2d12, 0 6px 12px rgba(0,0,0,0.4); }

        .click-effect {
            position: absolute;
            font-size: 20px;
            font-weight: 700;
            color: var(--gold);
            pointer-events: none;
            animation: floatUp 0.8s ease-out forwards;
        }

        @keyframes floatUp {
            0% { opacity: 1; transform: translateY(0) scale(1); }
            100% { opacity: 0; transform: translateY(-80px) scale(1.5); }
        }

        .clicker-upgrades {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 20px;
        }

        .upgrade-btn {
            padding: 12px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            color: var(--text-cream);
            font-family: var(--font-mono);
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .upgrade-btn:hover { border-color: var(--accent-fire); }
        .upgrade-btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .upgrade-btn .up-name { display: block; font-weight: 700; }
        .upgrade-btn .up-cost { color: var(--gold); font-size: 10px; }

        /* Game Over Screen */
        .game-over {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(10, 10, 15, 0.95);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .game-over h3 {
            font-family: var(--font-display);
            font-size: 32px;
            margin-bottom: 12px;
            color: var(--accent-bright);
        }

        .game-over .final-score {
            font-size: 48px;
            font-weight: 700;
            color: var(--gold);
            margin-bottom: 8px;
        }

        .game-over .xp-earned {
            font-size: 16px;
            color: var(--green);
            margin-bottom: 20px;
        }

        /* Daily Streak */
        .streak-panel {
            background: var(--bg-charred);
            border: 2px solid var(--gold);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 16px;
        }

        .streak-title {
            font-family: var(--font-display);
            font-size: 14px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--gold);
        }

        .streak-days {
            display: flex;
            gap: 4px;
        }

        .streak-day {
            width: 28px;
            height: 28px;
            background: var(--bg-burnt);
            border: 1px solid var(--border-rust);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: var(--text-muted);
        }

        .streak-day.active {
            background: var(--gold);
            border-color: var(--gold);
            color: #000;
        }

        .streak-day.today {
            border-color: var(--accent-fire);
            animation: pulse-border 2s infinite;
        }

        /* Level Progress Panel (in sidebar) */
        .level-progress-panel {
            background: var(--bg-charred);
            border: 2px solid var(--accent-fire);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 16px;
        }

        .level-progress-title {
            font-family: var(--font-display);
            font-size: 14px;
            margin-bottom: 12px;
            color: var(--accent-fire);
        }

        .level-progress-track {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        /* ============================================
           ACHIEVEMENTS POPUP
           ============================================ */

        .achievement-popup {
            position: fixed;
            top: 100px;
            right: 24px;
            width: 300px;
            background: linear-gradient(135deg, var(--bg-burnt), var(--bg-charred));
            border: 2px solid var(--gold);
            border-radius: var(--radius);
            padding: 20px;
            z-index: 200;
            transform: translateX(400px);
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .achievement-popup.show { transform: translateX(0); }

        .achievement-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .achievement-icon { font-size: 40px; }

        .achievement-title {
            font-family: var(--font-display);
            font-size: 16px;
            color: var(--gold);
        }

        .achievement-subtitle { font-size: 11px; color: var(--text-muted); }

        .achievement-xp {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(251, 191, 36, 0.2);
            border-radius: 100px;
            font-size: 12px;
            font-weight: 700;
            color: var(--gold);
        }

        /* ============================================
           LEADERBOARD
           ============================================ */

        .leaderboard-section {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 24px;
            margin: 24px 0;
        }

        .leaderboard-title {
            font-family: var(--font-display);
            font-size: 20px;
            margin-bottom: 16px;
            text-align: center;
        }

        .leaderboard-list { display: flex; flex-direction: column; gap: 8px; }

        .leaderboard-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: var(--bg-burnt);
            border: 1px solid var(--border-rust);
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .leaderboard-item:hover { border-color: var(--accent-fire); }
        .leaderboard-item.you { border-color: var(--accent-fire); background: rgba(234, 88, 12, 0.1); }

        .leaderboard-rank {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
        }

        .leaderboard-rank.gold { background: var(--gold); color: #000; }
        .leaderboard-rank.silver { background: var(--silver); color: #000; }
        .leaderboard-rank.bronze { background: var(--bronze); color: #000; }
        .leaderboard-rank.normal { background: var(--bg-charred); color: var(--text-muted); border: 1px solid var(--border-rust); }

        .leaderboard-name { flex: 1; font-size: 13px; font-weight: 600; }
        .leaderboard-xp { font-size: 12px; color: var(--gold); font-weight: 700; }

        /* ============================================
           FAQ SECTION
           ============================================ */

        .faq-section { padding-top: 20px; }

        .faq-item {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            margin-bottom: 12px;
            overflow: hidden;
        }

        .faq-question {
            padding: 18px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: background 0.2s ease;
        }

        .faq-question:hover { background: rgba(234, 88, 12, 0.1); }

        .faq-arrow { transition: transform 0.3s ease; color: var(--accent-fire); }
        .faq-item.open .faq-arrow { transform: rotate(180deg); }

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

        .faq-item.open .faq-answer { max-height: 500px; }

        .faq-answer-inner {
            padding: 0 20px 20px;
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.8;
        }

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

        /* ============================================
           GLOSSARY SECTION
           ============================================ */

        .glossary-section { padding-top: 20px; }

        .glossary-search {
            width: 100%;
            padding: 14px 20px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            color: var(--text-cream);
            font-family: var(--font-mono);
            font-size: 14px;
            margin-bottom: 20px;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .glossary-search:focus { border-color: var(--accent-fire); }
        .glossary-search::placeholder { color: var(--text-muted); }

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

        .glossary-item {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 20px;
            transition: all 0.2s ease;
        }

        .glossary-item:hover { border-color: var(--accent-fire); }

        .glossary-term {
            font-family: var(--font-display);
            font-size: 18px;
            color: var(--accent-bright);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .glossary-def { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

        /* ============================================
           CALCULATOR SECTION
           ============================================ */

        .calculator-section { padding-top: 20px; }

        .calculator-box {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 28px;
        }

        .calc-title {
            font-family: var(--font-display);
            font-size: 24px;
            text-align: center;
            margin-bottom: 24px;
        }

        .calc-inputs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .calc-input-group { display: flex; flex-direction: column; gap: 6px; }

        .calc-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .calc-input {
            padding: 12px 14px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            color: var(--text-cream);
            font-family: var(--font-mono);
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .calc-input:focus { border-color: var(--accent-fire); }

        .calc-results {
            background: var(--bg-burnt);
            border: 2px solid var(--accent-fire);
            border-radius: var(--radius);
            padding: 20px;
        }

        .calc-result-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-rust);
        }

        .calc-result-row:last-child { border-bottom: none; }

        .calc-result-label { font-size: 13px; color: var(--text-muted); }
        .calc-result-value { font-size: 16px; font-weight: 700; color: var(--accent-bright); }
        .calc-result-value.highlight { font-size: 20px; color: var(--green); }

        .calc-disclaimer {
            margin-top: 16px;
            padding: 12px;
            background: rgba(234, 88, 12, 0.1);
            border: 1px solid var(--accent-fire);
            border-radius: 8px;
            font-size: 11px;
            color: var(--text-muted);
            text-align: center;
        }

        /* ============================================
           ARCHITECTURE DIAGRAM
           ============================================ */

        .architecture-box {
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 28px;
            margin: 20px 0;
        }

        .arch-title {
            font-family: var(--font-display);
            font-size: 18px;
            text-align: center;
            margin-bottom: 20px;
            color: var(--accent-bright);
        }

        .arch-layers { display: flex; flex-direction: column; gap: 12px; }

        .arch-layer {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: 8px;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s ease;
        }

        .arch-layer:hover { border-color: var(--accent-fire); }
        .arch-layer .layer-name { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; }
        .arch-layer .layer-tech { font-size: 11px; color: var(--text-muted); background: var(--bg-burnt); padding: 4px 10px; border-radius: 4px; }

        /* ============================================
           ECOSYSTEM CARDS
           ============================================ */

        .ecosystem-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            margin: 24px 0;
        }

        .eco-card {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .eco-card:hover { border-color: var(--accent-fire); transform: translateY(-4px); }
        .eco-card .icon { font-size: 36px; margin-bottom: 10px; }
        .eco-card h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
        .eco-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

        .eco-card .status {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 100px;
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .status-live { background: rgba(34, 197, 94, 0.2); border: 1px solid var(--green); color: var(--green); }
        .status-beta { background: rgba(234, 179, 8, 0.2); border: 1px solid var(--level-2); color: var(--level-2); }
        .status-soon { background: rgba(168, 85, 247, 0.2); border: 1px solid var(--purple); color: var(--purple); }

        /* ============================================
           BUTTONS
           ============================================ */

        .level-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            font-family: var(--font-mono);
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            background: var(--bg-burnt);
            color: var(--text-cream);
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 4px 4px 0 var(--border-rust);
        }

        .btn:hover {
            background: var(--accent-fire);
            border-color: var(--accent-fire);
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 var(--border-rust);
        }

        .btn:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0 var(--border-rust);
        }

        .btn-primary { background: var(--accent-fire); border-color: var(--accent-bright); }
        .btn-success { background: var(--green); border-color: var(--green-light); color: #000; }
        .btn-share { background: #1DA1F2; border-color: #1DA1F2; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--border-rust); }
        .btn-small { padding: 10px 18px; font-size: 12px; }

        /* ============================================
           COMPLETION BANNER
           ============================================ */

        .completion-banner {
            text-align: center;
            padding: 40px 28px;
            background: linear-gradient(135deg, var(--bg-burnt), var(--bg-charred));
            border: 2px solid var(--accent-fire);
            border-radius: var(--radius);
            margin: 28px 0;
            position: relative;
            overflow: hidden;
        }

        .completion-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
            animation: rotate-glow 10s linear infinite;
        }

        @keyframes rotate-glow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .completion-banner h2 {
            font-family: var(--font-display);
            font-size: 32px;
            margin-bottom: 12px;
            position: relative;
        }

        .completion-banner p {
            color: var(--text-muted);
            margin-bottom: 20px;
            position: relative;
            font-size: 14px;
        }

        .completion-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
        }

        /* ============================================
           SECTION HEADERS
           ============================================ */

        .section-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: 32px;
            margin-bottom: 8px;
        }

        .section-subtitle {
            font-size: 14px;
            color: var(--text-muted);
        }

        /* ============================================
           BUILD VIEW (Builder Board)
           ============================================ */

        .build-intro {
            text-align: center;
            margin-bottom: 32px;
            padding: 24px;
            background: linear-gradient(135deg, rgba(234, 88, 12, 0.1), rgba(249, 115, 22, 0.05));
            border: 1px solid var(--border-rust);
            border-radius: var(--radius);
        }

        .build-intro p {
            font-size: 14px;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto;
        }

        .build-filters {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .filter-btn {
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 600;
            font-family: var(--font-mono);
            background: rgba(234, 88, 12, 0.1);
            border: 1px solid var(--border-rust);
            border-radius: 100px;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s ease;
        }

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

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

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-bottom: 32px;
        }

        .project-card {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 24px;
            transition: all 0.3s ease;
        }

        .project-card:hover {
            border-color: var(--accent-fire);
            transform: translateY(-4px);
        }

        .project-card.hidden {
            display: none;
        }

        .card-header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
        }

        .project-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--accent-fire), var(--accent-ember));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 700;
            color: #fff;
            flex-shrink: 0;
        }

        .project-title {
            flex: 1;
        }

        .project-title h3 {
            font-family: var(--font-display);
            font-size: 18px;
            margin-bottom: 4px;
        }

        .status-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 100px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .status-need_help {
            background: rgba(245, 158, 11, 0.2);
            border: 1px solid #f59e0b;
            color: #f59e0b;
        }

        .status-in_progress {
            background: rgba(99, 102, 241, 0.2);
            border: 1px solid #6366f1;
            color: #6366f1;
        }

        .status-live {
            background: rgba(34, 197, 94, 0.2);
            border: 1px solid var(--green);
            color: var(--green);
        }

        .status-idea {
            background: rgba(168, 85, 247, 0.2);
            border: 1px solid var(--purple);
            color: var(--purple);
        }

        .project-desc {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }

        .tech-tag {
            font-size: 10px;
            padding: 4px 8px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            font-family: var(--font-mono);
            color: var(--text-cream);
        }

        .skills-needed {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
        }

        .skill-tag {
            font-size: 10px;
            padding: 4px 8px;
            background: rgba(234, 88, 12, 0.15);
            border: 1px solid rgba(234, 88, 12, 0.3);
            border-radius: 4px;
            color: var(--accent-bright);
        }

        .builders {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border-rust);
        }

        .builder-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 2px solid var(--accent-fire);
            object-fit: cover;
        }

        .builder-name {
            font-size: 12px;
            color: var(--text-cream);
        }

        .builder-name a {
            color: var(--accent-fire);
            text-decoration: none;
        }

        .builder-name a:hover {
            text-decoration: underline;
        }

        .card-actions {
            display: flex;
            gap: 8px;
            margin-top: 16px;
        }

        .card-actions a {
            flex: 1;
            text-align: center;
            padding: 10px 12px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .btn-secondary {
            background: transparent;
            border: 1px solid var(--border-rust);
            color: var(--text-cream);
        }

        .btn-secondary:hover {
            border-color: var(--accent-fire);
            color: var(--accent-fire);
        }

        .btn-primary {
            background: var(--accent-fire);
            border: 1px solid var(--accent-fire);
            color: #fff;
        }

        .btn-primary:hover {
            background: var(--accent-ember);
            border-color: var(--accent-ember);
        }

        .propose-cta {
            text-align: center;
            padding: 32px;
            border: 2px dashed var(--border-rust);
            border-radius: var(--radius);
            background: rgba(234, 88, 12, 0.05);
            transition: all 0.3s ease;
        }

        .propose-cta:hover {
            border-color: var(--accent-fire);
            background: rgba(234, 88, 12, 0.1);
        }

        .propose-cta a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--accent-fire);
            text-decoration: none;
            font-size: 16px;
            font-weight: 600;
        }

        .propose-cta a:hover {
            text-decoration: underline;
        }

        .propose-cta p {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 8px;
        }

        /* ============================================
           BUILD FILTERS (Skills & Project Type)
           ============================================ */

        .filter-group {
            margin-bottom: 16px;
        }

        .filter-group-title {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 8px;
            text-align: center;
        }

        .filter-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .type-tag {
            font-size: 9px;
            padding: 3px 6px;
            background: rgba(168, 85, 247, 0.15);
            border: 1px solid rgba(168, 85, 247, 0.3);
            border-radius: 4px;
            color: var(--purple);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* ============================================
           SKILLS MARKETPLACE STYLES
           ============================================ */

        .challenge-hero {
            padding: 40px 0;
            background: linear-gradient(180deg, var(--bg-charred) 0%, var(--bg-void) 100%);
            border-bottom: 2px solid var(--border-rust);
        }

        .challenge-card {
            background: linear-gradient(135deg, var(--bg-burnt), rgba(251, 191, 36, 0.05));
            border: 3px solid var(--gold);
            border-radius: 16px;
            padding: 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .challenge-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
            animation: pulse-glow 4s ease-in-out infinite;
        }

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

        .challenge-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--gold);
            color: #000;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            border-radius: 100px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .challenge-badge .pulse-dot {
            width: 8px;
            height: 8px;
            background: var(--green);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

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

        .challenge-title {
            font-family: var(--font-display);
            font-size: 28px;
            font-weight: 700;
            color: var(--text-cream);
            margin-bottom: 12px;
            position: relative;
            z-index: 1;
        }

        .challenge-theme {
            font-size: 18px;
            color: var(--gold);
            margin-bottom: 24px;
            position: relative;
            z-index: 1;
        }

        .challenge-stats {
            display: flex;
            justify-content: center;
            gap: 32px;
            margin-bottom: 24px;
            position: relative;
            z-index: 1;
        }

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

        .challenge-stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-cream);
        }

        .challenge-stat-value.gold { color: var(--gold); }
        .challenge-stat-value.green { color: var(--green); }

        .challenge-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .challenge-countdown {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            font-size: 14px;
            color: var(--accent-bright);
            margin-bottom: 24px;
            position: relative;
            z-index: 1;
        }

        .challenge-actions {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .btn-gold {
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            border-color: var(--gold);
            color: #000;
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 12px;
            box-shadow: 2px 2px 0 var(--border-rust);
        }

        .categories-section {
            padding: 40px 0 20px;
        }

        .categories-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .categories-filter {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 32px;
        }

        .category-pill {
            padding: 10px 20px;
            font-family: var(--font-mono);
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: 100px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .category-pill:hover {
            color: var(--text-cream);
            border-color: var(--accent-fire);
        }

        .category-pill.active {
            color: #000;
            background: var(--accent-fire);
            border-color: var(--accent-fire);
        }

        .creators-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        .creator-card {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 24px;
            transition: all 0.3s ease;
        }

        .creator-card:hover {
            border-color: var(--accent-fire);
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(234, 88, 12, 0.2);
        }

        .creator-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .creator-avatar {
            width: 60px;
            height: 60px;
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
        }

        .creator-info { flex: 1; }

        .creator-name {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 700;
            color: var(--text-cream);
            margin-bottom: 4px;
        }

        .creator-category {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            background: rgba(234, 88, 12, 0.15);
            border-radius: 100px;
            font-size: 11px;
            color: var(--accent-bright);
            text-transform: uppercase;
        }

        .creator-bio {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .creator-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .creator-rating {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: var(--gold);
        }

        .creator-rating .stars { letter-spacing: -2px; }

        .hall-of-fame {
            padding: 40px 0;
            background: var(--bg-charred);
            border-top: 2px solid var(--border-rust);
            border-bottom: 2px solid var(--border-rust);
        }

        .hall-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .hall-header h2 {
            font-family: var(--font-display);
            font-size: 24px;
            margin-bottom: 8px;
        }

        .hall-header p {
            color: var(--text-muted);
            font-size: 14px;
        }

        .hall-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .hall-entry {
            background: var(--bg-burnt);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            transition: all 0.2s ease;
        }

        .hall-entry:hover { border-color: var(--gold); }

        .hall-week {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--gold), var(--bronze));
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #000;
            font-weight: 700;
            flex-shrink: 0;
        }

        .hall-week-label {
            font-size: 9px;
            text-transform: uppercase;
        }

        .hall-week-num {
            font-size: 18px;
            line-height: 1;
        }

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

        .hall-winner {
            font-weight: 600;
            color: var(--text-cream);
            margin-bottom: 4px;
        }

        .hall-challenge {
            font-size: 12px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hall-trophy { font-size: 24px; }

        .how-it-works {
            padding: 40px 0;
        }

        .how-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .how-header h2 {
            font-family: var(--font-display);
            font-size: 24px;
            margin-bottom: 8px;
        }

        .how-header p {
            color: var(--text-muted);
            font-size: 14px;
        }

        .how-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        .how-card {
            background: var(--bg-charred);
            border: 2px solid var(--border-rust);
            border-radius: var(--radius);
            padding: 28px;
            text-align: center;
        }

        .how-icon {
            font-size: 40px;
            margin-bottom: 16px;
        }

        .how-card h3 {
            font-family: var(--font-display);
            font-size: 18px;
            margin-bottom: 12px;
            color: var(--accent-bright);
        }

        .how-card p {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .economy-box {
            max-width: 600px;
            margin: 0 auto;
            background: var(--bg-burnt);
            border: 2px solid var(--accent-fire);
            border-radius: var(--radius);
            padding: 28px;
            text-align: center;
        }

        .economy-box h3 {
            font-family: var(--font-display);
            font-size: 18px;
            margin-bottom: 20px;
            color: var(--accent-bright);
        }

        .economy-split {
            display: flex;
            justify-content: center;
            gap: 24px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .economy-item { text-align: center; }

        .economy-pct {
            font-size: 28px;
            font-weight: 700;
        }

        .economy-pct.creator { color: var(--green); }
        .economy-pct.burn { color: var(--accent-fire); }
        .economy-pct.treasury { color: var(--purple); }

        .economy-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .economy-note {
            font-size: 12px;
            color: var(--text-muted);
            font-style: italic;
        }

        .skills-cta {
            padding: 40px 0;
            text-align: center;
        }

        .skills-cta h2 {
            font-family: var(--font-display);
            font-size: 28px;
            margin-bottom: 12px;
        }

        .skills-cta p {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .skills-cta .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        /* Ecosystem Section (Build the Ecosystem) */
        .ecosystem-section {
            padding: 60px 0 40px;
            margin-top: 40px;
            border-top: 3px solid var(--border-rust);
            background: linear-gradient(180deg, var(--bg-charred) 0%, transparent 100%);
        }

        .ecosystem-section .section-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .ecosystem-section .section-title {
            font-family: var(--font-display);
            font-size: 28px;
            margin-bottom: 8px;
        }

        .ecosystem-section .section-subtitle {
            font-size: 14px;
            color: var(--text-muted);
        }

        /* ============================================
           TECHNICAL DOCUMENTATION MODAL
           ============================================ */

        .doc-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 300;
            overflow-y: auto;
            padding: 40px 20px;
        }

        .doc-modal.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .doc-content {
            max-width: 800px;
            margin: 0 auto;
            background: var(--bg-charred);
            border: 2px solid var(--accent-fire);
            border-radius: var(--radius);
            padding: 32px;
        }

        .doc-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-rust);
        }

        .doc-title {
            font-family: var(--font-display);
            font-size: 28px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .doc-close {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 28px;
            cursor: pointer;
            padding: 8px;
            line-height: 1;
        }

        .doc-close:hover {
            color: var(--accent-fire);
        }

        .doc-section {
            margin-bottom: 24px;
        }

        .doc-section h3 {
            font-family: var(--font-display);
            font-size: 18px;
            color: var(--accent-fire);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .doc-section p, .doc-section li {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.7;
        }

        .doc-section ul {
            list-style: none;
            padding-left: 0;
        }

        .doc-section li {
            padding: 6px 0;
            padding-left: 20px;
            position: relative;
        }

        .doc-section li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: var(--accent-fire);
        }

        .doc-code {
            background: var(--bg-burnt);
            border: 1px solid var(--border-rust);
            border-radius: 8px;
            padding: 16px;
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--text-cream);
            overflow-x: auto;
            margin: 12px 0;
        }

        .doc-code pre {
            margin: 0;
            white-space: pre-wrap;
        }

        .doc-contributors {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 12px;
        }

        .doc-contributor {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: var(--bg-burnt);
            border: 1px solid var(--border-rust);
            border-radius: 8px;
        }

        .doc-contributor img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
        }

        .doc-contributor a {
            color: var(--accent-fire);
            text-decoration: none;
            font-size: 13px;
        }

        .doc-contributor a:hover {
            text-decoration: underline;
        }

        .doc-links {
            display: flex;
            gap: 12px;
            margin-top: 24px;
            flex-wrap: wrap;
        }

        .doc-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background: var(--accent-fire);
            border-radius: 8px;
            color: #fff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .doc-link:hover {
            background: var(--accent-ember);
        }

        .doc-link.secondary {
            background: transparent;
            border: 1px solid var(--border-rust);
            color: var(--text-cream);
        }

        .doc-link.secondary:hover {
            border-color: var(--accent-fire);
            color: var(--accent-fire);
        }

        .btn-docs {
            background: rgba(168, 85, 247, 0.15);
            border: 1px solid var(--purple);
            color: var(--purple);
        }

        .btn-docs:hover {
            background: rgba(168, 85, 247, 0.25);
        }

        .doc-link.deep-learn {
            background: linear-gradient(135deg, var(--purple), #6366f1);
            border: none;
        }

        .doc-link.deep-learn:hover {
            background: linear-gradient(135deg, #9333ea, #4f46e5);
        }

        /* Deep Learn Modal */
        .deep-learn-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 400;
            overflow-y: auto;
            padding: 20px;
        }

        .deep-learn-modal.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .deep-learn-content {
            max-width: 1000px;
            margin: 0 auto;
            background: var(--bg-charred);
            border: 2px solid var(--purple);
            border-radius: var(--radius);
            padding: 40px;
        }

        .deep-learn-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 32px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--purple);
        }

        .deep-learn-title {
            font-family: var(--font-display);
            font-size: 32px;
            display: flex;
            align-items: center;
            gap: 16px;
            color: var(--purple);
        }

        .deep-learn-nav {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 32px;
            padding: 16px;
            background: var(--bg-burnt);
            border-radius: 8px;
        }

        .deep-nav-btn {
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 600;
            background: transparent;
            border: 1px solid var(--border-rust);
            border-radius: 6px;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .deep-nav-btn:hover {
            border-color: var(--purple);
            color: var(--purple);
        }

        .deep-nav-btn.active {
            background: var(--purple);
            border-color: var(--purple);
            color: #fff;
        }

        .deep-section {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .deep-section.active {
            display: block;
        }

        .deep-section h3 {
            font-family: var(--font-display);
            font-size: 22px;
            color: var(--accent-fire);
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-rust);
        }

        .deep-section h4 {
            font-size: 16px;
            color: var(--purple);
            margin: 20px 0 12px;
        }

        .deep-section p {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 16px;
        }

        .deep-section ul {
            list-style: none;
            padding: 0;
            margin-bottom: 16px;
        }

        .deep-section li {
            padding: 8px 0 8px 24px;
            position: relative;
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .deep-section li::before {
            content: "▸";
            position: absolute;
            left: 0;
            color: var(--purple);
        }

        .deep-code {
            background: #1a1a2e;
            border: 1px solid var(--border-rust);
            border-radius: 8px;
            padding: 20px;
            font-family: var(--font-mono);
            font-size: 13px;
            color: #e2e8f0;
            overflow-x: auto;
            margin: 16px 0;
            line-height: 1.6;
        }

        .deep-code .comment { color: #6b7280; }
        .deep-code .keyword { color: #c084fc; }
        .deep-code .string { color: #4ade80; }
        .deep-code .function { color: #60a5fa; }

        .deep-diagram {
            background: var(--bg-burnt);
            border: 2px dashed var(--border-rust);
            border-radius: 12px;
            padding: 24px;
            margin: 20px 0;
            text-align: center;
        }

        .deep-diagram-flow {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .deep-diagram-box {
            padding: 16px 24px;
            background: var(--bg-charred);
            border: 2px solid var(--purple);
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
        }

        .deep-diagram-arrow {
            font-size: 24px;
            color: var(--purple);
        }

        .deep-warning {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid var(--red);
            border-radius: 8px;
            padding: 16px;
            margin: 16px 0;
            font-size: 13px;
            color: var(--red);
        }

        .deep-tip {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid var(--green);
            border-radius: 8px;
            padding: 16px;
            margin: 16px 0;
            font-size: 13px;
            color: var(--green);
        }

        .deep-table {
            width: 100%;
            border-collapse: collapse;
            margin: 16px 0;
            font-size: 13px;
        }

        .deep-table th, .deep-table td {
            padding: 12px;
            text-align: left;
            border: 1px solid var(--border-rust);
        }

        .deep-table th {
            background: var(--bg-burnt);
            color: var(--purple);
            font-weight: 600;
        }

        .deep-table td {
            color: var(--text-muted);
        }

        /* ============================================
           FOOTER
           ============================================ */

        .footer {
            text-align: center;
            padding: 32px 24px;
            border-top: 1px solid var(--border-rust);
            margin-top: 48px;
        }

        .footer p { font-size: 11px; color: var(--text-muted); }
        .footer a { color: var(--accent-fire); text-decoration: none; }
        .footer a:hover { text-decoration: underline; }

        /* ============================================
           RESPONSIVE
           ============================================ */

        @media (max-width: 900px) {
            .nav-content { display: flex; flex-wrap: wrap; justify-content: center; }
            .nav-tabs { flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 8px; order: 2; }
            .nav-logo { order: 1; }
            .nav-right { width: 100%; justify-content: center; margin-top: 8px; order: 3; }
            .nav-progress { order: 1; }
            .nav-stats { order: 2; }
            .visual-flow { flex-direction: column; }
            .flow-arrow { transform: rotate(90deg); }
            .level-actions { flex-direction: column; }
            .btn { width: 100%; }
            .badges-grid { grid-template-columns: repeat(3, 1fr); }
        }