:root {
            --bg-color: #050508;
            --card-bg: rgba(10, 10, 18, 0.65);
            --border-color: rgba(0, 255, 204, 0.15);
            --neon-cyan: #00ffcc;
            --neon-pink: #ff007f;
            --neon-purple: #9d4edd;
            --text-main: #f0f0f5;
            --text-muted: #8e8e9f;
            --font-display: 'Orbitron', sans-serif;
            --font-body: 'Outfit', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;

            /* Reference sheet extras */
            --violet: #3D1F56;
            --violet-bright: #7c3aed;
            --gold: #f5b731;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-color);
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(0, 255, 204, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.08) 0%, transparent 40%),
                linear-gradient(rgba(18, 18, 28, 0.3) 1px, transparent 1px),
                linear-gradient(90deg, rgba(18, 18, 28, 0.3) 1px, transparent 1px);
            background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
            color: var(--text-main);
            font-family: var(--font-body);
            line-height: 1.6;
            overflow-x: hidden;
            padding: 20px;
        }

        /* Scanline simulation overlay */
        body::after {
            content: " ";
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
            z-index: 99999;
            background-size: 100% 3px, 6px 100%;
            pointer-events: none;
            opacity: 0.4;
        }

        header {
            max-width: 1400px;
            margin: 20px auto 0 auto;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 20px;
        }

        .header-title-container h1 {
            font-family: var(--font-display);
            font-size: 3rem;
            font-weight: 900;
            letter-spacing: 5px;
            text-transform: uppercase;
            background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
        }

        .header-title-container p {
            font-family: var(--font-display);
            font-size: 0.9rem;
            color: var(--neon-pink);
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-top: 5px;
            text-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
        }

        .header-status {
            font-family: var(--font-mono);
            font-size: 0.85rem;
            background: rgba(0, 255, 204, 0.05);
            border: 1px dashed var(--neon-cyan);
            padding: 8px 15px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: var(--neon-cyan);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--neon-cyan);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 0.4; }
            50% { opacity: 1; }
            100% { opacity: 0.4; }
        }

        /* ═══════════════════════════════════════════
           TAB NAVIGATION
           ═══════════════════════════════════════════ */
        .tab-nav {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            gap: 0;
            padding-top: 24px;
            padding-bottom: 0;
        }

        .tab-btn {
            font-family: var(--font-display);
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 14px 32px;
            background: transparent;
            color: var(--text-muted);
            border: 1px solid var(--border-color);
            border-bottom: none;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
            margin-bottom: -1px;
        }

        .tab-btn:hover {
            color: var(--neon-cyan);
            background: rgba(0, 255, 204, 0.05);
        }

        .tab-btn.active {
            color: var(--neon-cyan);
            background: var(--bg-color);
            border-color: var(--neon-cyan);
            box-shadow: 0 -4px 15px rgba(0, 255, 204, 0.1);
        }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--bg-color);
        }

        .tab-btn .tab-icon {
            margin-right: 8px;
            font-style: normal;
        }

        .tab-divider {
            flex: 1;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: -1px;
        }

        .tab-content {
            display: none;
            animation: fadeTab 0.4s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeTab {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ═══════════════════════════════════════════
           LORE TAB (original styles)
           ═══════════════════════════════════════════ */
        .lore-main {
            max-width: 1400px;
            margin: 40px auto 0 auto;
            display: grid;
            grid-template-columns: 380px 1fr;
            gap: 40px;
            align-items: start;
        }

        /* Dossier Sidebar */
        .sidebar {
            position: sticky;
            top: 20px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 25px;
            backdrop-filter: blur(12px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .avatar-container {
            position: relative;
            width: 100%;
            border-radius: 6px;
            overflow: hidden;
            border: 2px solid var(--neon-cyan);
            box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
            margin-bottom: 25px;
            aspect-ratio: 9/13;
        }

        .avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .avatar-container:hover .avatar-img {
            transform: scale(1.05);
        }

        /* Sci-Fi scanner line effect */
        .scanner-line {
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, transparent, var(--neon-cyan), transparent);
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0.8;
            box-shadow: 0 0 10px var(--neon-cyan);
            animation: scan 4s linear infinite;
        }

        @keyframes scan {
            0% { top: 0%; }
            50% { top: 100%; }
            100% { top: 0%; }
        }

        .dossier-header {
            font-family: var(--font-display);
            font-size: 1.2rem;
            color: var(--neon-cyan);
            border-bottom: 1px solid rgba(0, 255, 204, 0.3);
            padding-bottom: 8px;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .info-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
            font-size: 0.95rem;
        }

        .info-row {
            display: flex;
            flex-direction: column;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 8px;
        }

        .info-label {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 3px;
        }

        .info-value {
            color: var(--text-main);
            font-weight: 600;
        }

        .info-value.neon-glow {
            color: var(--neon-cyan);
            text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
        }

        /* Content area (Chapters) */
        .content-area {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .chapter-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 35px;
            backdrop-filter: blur(12px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            position: relative;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .chapter-card:hover {
            border-color: rgba(255, 0, 127, 0.3);
            box-shadow: 0 15px 35px rgba(255, 0, 127, 0.08);
        }

        /* Decorative HUD angles */
        .hud-corner {
            position: absolute;
            width: 15px;
            height: 15px;
            border: 2px solid transparent;
            pointer-events: none;
        }
        .corner-tl {
            top: -1px; left: -1px;
            border-top-color: var(--neon-pink);
            border-left-color: var(--neon-pink);
        }
        .corner-br {
            bottom: -1px; right: -1px;
            border-bottom-color: var(--neon-pink);
            border-right-color: var(--neon-pink);
        }

        .chapter-num {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--neon-pink);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 5px;
        }

        .chapter-title {
            font-family: var(--font-display);
            font-size: 1.8rem;
            color: var(--text-main);
            margin-bottom: 25px;
            letter-spacing: 1px;
            border-left: 3px solid var(--neon-pink);
            padding-left: 15px;
        }

        .chapter-body {
            font-size: 1.05rem;
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .chapter-body p strong {
            color: var(--neon-cyan);
            font-family: var(--font-display);
            font-size: 1.1rem;
            display: block;
            margin-bottom: 5px;
        }

        .story-img-row {
            margin: 25px 0;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid rgba(0, 255, 204, 0.2);
            box-shadow: 0 8px 25px rgba(0,0,0,0.5);
            max-height: 480px;
        }

        .story-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .img-caption {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--neon-cyan);
            background: rgba(10, 10, 18, 0.95);
            padding: 8px 15px;
            border-top: 1px solid rgba(0, 255, 204, 0.2);
            display: flex;
            justify-content: space-between;
        }

        blockquote {
            background: rgba(157, 78, 221, 0.05);
            border-left: 4px solid var(--neon-purple);
            padding: 20px 25px;
            margin: 25px 0 10px 0;
            border-radius: 0 8px 8px 0;
            font-family: var(--font-body);
            font-style: italic;
            font-size: 1.1rem;
            position: relative;
        }

        blockquote::before {
            content: "\201C";
            font-family: var(--font-display);
            font-size: 3.5rem;
            color: rgba(157, 78, 221, 0.15);
            position: absolute;
            top: -10px;
            left: 10px;
        }

        .quote-cite {
            display: block;
            font-family: var(--font-mono);
            font-style: normal;
            font-size: 0.8rem;
            color: var(--neon-purple);
            margin-top: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* ═══════════════════════════════════════════
           REFERENCE SHEET TAB
           ═══════════════════════════════════════════ */
        .ref-container {
            max-width: 1400px;
            margin: 40px auto 0 auto;
        }

        .ref-section {
            margin-bottom: 56px;
        }

        .ref-section-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 28px;
        }

        .ref-section-num {
            font-family: var(--font-display);
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--neon-cyan);
            background: var(--card-bg);
            border: 1px solid rgba(0, 255, 204, 0.3);
            border-radius: 6px;
            padding: 4px 12px;
            letter-spacing: 2px;
        }

        .ref-section-header h2 {
            font-family: var(--font-display);
            font-size: 1.3rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--text-main);
        }

        .ref-section-line {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, var(--border-color), transparent);
        }

        /* Turnaround Gallery */
        .turnaround-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }

        .view-card {
            position: relative;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            backdrop-filter: blur(12px);
        }

        .view-card:hover {
            border-color: var(--neon-cyan);
            box-shadow: 0 0 20px rgba(0, 255, 204, 0.2), 0 0 40px rgba(0, 255, 204, 0.1);
            transform: translateY(-4px);
        }

        .view-card img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.4s ease;
        }

        .view-card:hover img {
            transform: scale(1.03);
        }

        .view-label {
            position: absolute;
            top: 10px;
            left: 10px;
            font-family: var(--font-display);
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            background: rgba(0, 0, 0, 0.85);
            border: 1px solid var(--neon-cyan);
            color: var(--neon-cyan);
            padding: 4px 12px;
            border-radius: 4px;
            backdrop-filter: blur(8px);
        }

        .concept-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.4s ease;
            cursor: pointer;
            max-width: 480px;
            margin: 0 auto;
            backdrop-filter: blur(12px);
        }

        .concept-card:hover {
            border-color: var(--neon-pink);
            box-shadow: 0 0 20px rgba(255, 0, 127, 0.2);
            transform: translateY(-4px);
        }

        .concept-card img {
            width: 100%;
            height: auto;
            display: block;
        }

        .concept-label {
            padding: 14px;
            text-align: center;
            font-family: var(--font-display);
            font-size: 0.7rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--neon-pink);
            border-top: 1px solid var(--border-color);
        }

        /* Spec Cards */
        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 20px;
        }

        .spec-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 28px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(12px);
        }

        .spec-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 3px;
            height: 100%;
            border-radius: 3px 0 0 3px;
        }

        .spec-card.hair::before { background: linear-gradient(180deg, var(--violet-bright), var(--neon-pink)); }
        .spec-card.face::before { background: linear-gradient(180deg, var(--gold), #f59e0b); }
        .spec-card.upper::before { background: linear-gradient(180deg, var(--neon-cyan), #0ea5e9); }
        .spec-card.lower::before { background: linear-gradient(180deg, var(--neon-pink), #ec4899); }
        .spec-card.accessories::before { background: linear-gradient(180deg, #10b981, #34d399); }
        .spec-card.effects::before { background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink)); }

        .spec-card:hover {
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        .spec-icon {
            font-size: 26px;
            margin-bottom: 10px;
        }

        .spec-title {
            font-family: var(--font-display);
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .spec-card.hair .spec-title { color: var(--violet-bright); }
        .spec-card.face .spec-title { color: var(--gold); }
        .spec-card.upper .spec-title { color: var(--neon-cyan); }
        .spec-card.lower .spec-title { color: var(--neon-pink); }
        .spec-card.accessories .spec-title { color: #34d399; }
        .spec-card.effects .spec-title { color: var(--neon-cyan); }

        .spec-item {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--text-muted);
        }

        .spec-item .label {
            font-weight: 600;
            color: var(--text-main);
            min-width: 80px;
            flex-shrink: 0;
        }

        .spec-item .dot {
            color: var(--text-muted);
            flex-shrink: 0;
        }

        /* Color Palette */
        .palette-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 16px;
        }

        .color-swatch {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(12px);
        }

        .color-swatch:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        }

        .swatch-color {
            height: 70px;
            position: relative;
        }

        .swatch-color::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0;
            width: 100%; height: 25px;
            background: linear-gradient(transparent, var(--card-bg));
        }

        .swatch-info {
            padding: 12px 14px;
        }

        .swatch-name {
            font-family: var(--font-display);
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 3px;
        }

        .swatch-hex {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .swatch-usage {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 3px;
        }

        /* Prompt Blocks */
        .prompt-block {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-bottom: 16px;
            overflow: hidden;
            backdrop-filter: blur(12px);
        }

        .prompt-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 22px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .prompt-header:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .prompt-label {
            font-family: var(--font-display);
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .prompt-label.positive { color: var(--neon-cyan); }
        .prompt-label.negative { color: #f87171; }

        .prompt-toggle {
            font-size: 12px;
            color: var(--text-muted);
            transition: transform 0.3s ease;
        }

        .prompt-content {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            line-height: 1.8;
            color: var(--text-muted);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.4s ease;
            padding: 0 22px;
        }

        .prompt-block.open .prompt-content {
            max-height: 600px;
            padding: 18px 22px;
            border-top: 1px solid var(--border-color);
        }

        .prompt-block.open .prompt-toggle {
            transform: rotate(180deg);
        }

        .copy-btn {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-size: 0.7rem;
            padding: 3px 10px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-left: 12px;
        }

        .copy-btn:hover {
            border-color: var(--neon-cyan);
            color: var(--neon-cyan);
        }

        .copy-btn.copied {
            border-color: #34d399;
            color: #34d399;
        }

        /* Story Card (ref tab) */
        .story-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 30px;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(12px);
        }

        .story-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 3px;
            background: linear-gradient(90deg, var(--violet-bright), var(--neon-pink), var(--neon-cyan));
        }

        .story-quote {
            font-size: 1.1rem;
            font-style: italic;
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 14px;
            padding-left: 18px;
            border-left: 2px solid var(--violet-bright);
        }

        .story-text {
            font-size: 0.95rem;
            color: var(--text-muted);
            line-height: 1.8;
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(20px);
            z-index: 100000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .lightbox.active {
            opacity: 1;
            visibility: visible;
        }

        .lightbox img {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            box-shadow: 0 0 60px rgba(0, 255, 204, 0.15);
        }

        .lightbox-close {
            position: absolute;
            top: 24px; right: 24px;
            font-family: var(--font-display);
            font-size: 0.85rem;
            color: var(--text-muted);
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .lightbox-close:hover {
            border-color: var(--neon-cyan);
            color: var(--neon-cyan);
        }

        /* Footer */
        footer {
            max-width: 1400px;
            margin: 60px auto 20px auto;
            text-align: center;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-muted);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 20px;
        }

        /* Responsive */
        @media (max-width: 1100px) {
            .lore-main {
                grid-template-columns: 1fr;
            }
            .sidebar {
                position: relative;
                top: 0;
                margin-bottom: 20px;
            }
            .avatar-container {
                max-width: 320px;
                margin-left: auto;
                margin-right: auto;
            }
        }

        @media (max-width: 768px) {
            .turnaround-grid {
                grid-template-columns: 1fr;
            }
            .specs-grid {
                grid-template-columns: 1fr;
            }
            .palette-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            body {
                padding: 10px;
            }
            header {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 15px;
                margin-top: 10px;
            }
            .header-title-container h1 {
                font-size: 2rem;
                letter-spacing: 3px;
            }
            .header-status {
                width: 100%;
                justify-content: center;
                font-size: 0.75rem;
            }
            .tab-nav {
                justify-content: center;
                width: 100%;
                gap: 4px;
                padding-top: 15px;
            }
            .tab-btn {
                padding: 8px 10px;
                font-size: 0.7rem;
                flex: 1;
                text-align: center;
                display: flex;
                justify-content: center;
                align-items: center;
                letter-spacing: 0px;
                border-radius: 6px 6px 0 0;
            }
            .tab-btn .tab-icon {
                margin-right: 4px;
            }
            .tab-divider {
                display: none;
            }
            .chapter-title {
                font-size: 1.25rem;
            }
            .chapter-body p {
                font-size: 0.9rem;
            }
            .img-caption {
                flex-direction: column;
                gap: 5px;
                font-size: 0.7rem;
            }
            /* Terminal responsive */
            .terminal-container {
                padding: 12px;
                min-height: 350px;
                margin-top: 20px;
            }
            .terminal-header {
                font-size: 0.7rem;
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            .terminal-window {
                font-size: 0.8rem;
            }
            .terminal-input-line {
                font-size: 0.8rem;
            }
            /* Music player responsive */
            .music-player-floating {
                right: 15px;
                left: 15px;
                bottom: 15px;
                border-radius: 15px;
                padding: 10px 15px;
                gap: 10px;
                max-width: none;
            }
            .music-player-floating.collapsed {
                width: 48px;
                height: 48px;
                border-radius: 50%;
                left: auto;
                right: 15px;
                padding: 0;
            }
            .volume-container {
                display: none; /* Hide volume slider on mobile to fit screen */
            }
            .music-info {
                min-width: 100px;
                max-width: 130px;
            }
        }

        /* Scroll reveal */
        .reveal {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ═══════════════════════════════════════════
           SIMULATED WEB TERMINAL & MUSIC PLAYER
           ═══════════════════════════════════════════ */
        .terminal-container {
            background: rgba(10, 10, 18, 0.85);
            border: 1px solid var(--neon-cyan);
            border-radius: 8px;
            padding: 20px;
            font-family: var(--font-mono);
            box-shadow: 0 0 20px rgba(0, 255, 204, 0.15), inset 0 0 10px rgba(0, 255, 204, 0.05);
            backdrop-filter: blur(12px);
            margin-top: 40px;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
            min-height: 400px;
            display: flex;
            flex-direction: column;
        }

        .terminal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px dashed rgba(0, 255, 204, 0.3);
            padding-bottom: 10px;
            margin-bottom: 15px;
            font-size: 0.8rem;
            color: var(--neon-cyan);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .terminal-window {
            flex: 1;
            overflow-y: auto;
            max-height: 400px;
            font-size: 0.9rem;
            line-height: 1.5;
            color: #d1f4ff;
            margin-bottom: 15px;
            padding-right: 5px;
        }

        .terminal-window::-webkit-scrollbar {
            width: 4px;
        }
        .terminal-window::-webkit-scrollbar-thumb {
            background: rgba(0, 255, 204, 0.3);
            border-radius: 2px;
        }

        .terminal-row {
            margin-bottom: 8px;
        }

        .terminal-prompt {
            color: var(--neon-pink);
        }

        .terminal-input-line {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
        }

        .terminal-input-prompt {
            color: var(--neon-cyan);
        }

        .terminal-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-main);
            font-family: var(--font-mono);
            font-size: 0.9rem;
        }

        /* Ambient Music Player */
        .music-player-floating {
            position: fixed;
            bottom: 25px;
            right: 25px;
            background: rgba(10, 10, 18, 0.95);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 9999;
            backdrop-filter: blur(12px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 127, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-color: rgba(255, 0, 127, 0.2);
            overflow: hidden;
        }

        .music-player-floating:hover {
            border-color: var(--neon-pink);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 0, 127, 0.2);
        }

        .music-player-floating.collapsed {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            padding: 0;
            justify-content: center;
            align-items: center;
            border-color: var(--neon-pink);
            box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
            cursor: pointer;
        }

        .music-player-full {
            display: flex;
            align-items: center;
            gap: 15px;
            width: 100%;
        }

        .music-player-mini {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            color: var(--neon-pink);
            animation: pulse-mini 2s infinite alternate;
        }

        @keyframes pulse-mini {
            0% { transform: scale(1); text-shadow: 0 0 5px var(--neon-pink); }
            100% { transform: scale(1.1); text-shadow: 0 0 15px var(--neon-pink); }
        }

        .music-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .music-btn {
            background: transparent;
            border: none;
            color: var(--neon-pink);
            font-size: 1rem;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 0, 127, 0.3);
            transition: all 0.2s ease;
            outline: none;
        }

        .music-btn:hover {
            background: rgba(255, 0, 127, 0.1);
            border-color: var(--neon-pink);
            transform: scale(1.05);
        }

        .music-info {
            font-size: 0.75rem;
            font-family: var(--font-mono);
            color: var(--text-muted);
            min-width: 130px;
            max-width: 160px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
        }

        .volume-container {
            display: flex;
            align-items: center;
            gap: 8px;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            padding-left: 12px;
        }

        .volume-icon {
            font-size: 0.85rem;
            color: var(--neon-pink);
            cursor: pointer;
        }

        .volume-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 60px;
            height: 3px;
            border-radius: 2px;
            background: rgba(255, 255, 255, 0.15);
            outline: none;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--neon-pink);
            box-shadow: 0 0 5px var(--neon-pink);
            transition: transform 0.1s ease;
        }

        .volume-slider::-webkit-slider-thumb:hover {
            transform: scale(1.3);
        }

        .music-visualizer {
            display: flex;
            align-items: flex-end;
            gap: 2px;
            height: 12px;
            width: 20px;
        }

        .visualizer-bar {
            width: 3px;
            background-color: var(--neon-pink);
            border-radius: 1px;
            height: 2px;
            transition: height 0.1s ease;
        }

        .music-player-floating.playing .visualizer-bar {
            animation: bounce 0.8s ease-in-out infinite alternate;
        }

        .music-player-floating.playing .visualizer-bar:nth-child(1) { animation-delay: 0.1s; }
        .music-player-floating.playing .visualizer-bar:nth-child(2) { animation-delay: 0.4s; }
        .music-player-floating.playing .visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
        .music-player-floating.playing .visualizer-bar:nth-child(4) { animation-delay: 0.6s; }

        @keyframes bounce {
            0% { height: 2px; }
            100% { height: 12px; }
        }