:root {
    --bg-deep: #030305;
    --bg-panel: rgba(20, 20, 35, 0.6);
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --phantom-gold: #ffd700;
    --text-main: #ffffff;
    --text-dim: #8892b0;
    --font-display: 'Cinzel', 'Zen Kaku Gothic New', sans-serif;
    --font-tech: 'Zen Kaku Gothic New', sans-serif;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    /* Responsive Spacing */
    --space-sm: clamp(10px, 2vw, 20px);
    --space-md: clamp(20px, 4vw, 40px);
    --space-lg: clamp(40px, 6vw, 80px);

    /* Safe Area Insets - iPhone 16 Pro Max (Dynamic Island) needs ~59px */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}


/* PWA Standalone Mode - Force safe area padding */
@supports (padding-top: env(safe-area-inset-top)) {
    :root {
        --safe-top: env(safe-area-inset-top, 0px);
    }
}

/* PWA Standalone Mode specific adjustments */
@media all and (display-mode: standalone) {
    :root {
        --safe-top: env(safe-area-inset-top, 59px);
        --safe-bottom: env(safe-area-inset-bottom, 34px);
    }
}

.wireframe {
    border: 2px dashed var(--neon-cyan);
    background: rgba(0, 0, 0, 0.2);
    transform: perspective(800px) rotateX(15deg) rotateY(-15deg);
    transform-origin: center;
    transition: transform 0.3s ease;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    min-height: 100svh;
    /* Modern mobile viewport unit */
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* Subtle grid background */
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    padding-top: calc(60px + var(--safe-top));
}

/* HUD Overlay - Fix pointer events to allow clicking behind */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    /* High Z-index but allow clicks through */
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.neon-text {
    color: #fff;
    text-shadow:
        0 0 2px #fff,
        0 0 5px var(--neon-cyan),
        0 0 10px var(--neon-cyan);
}

/* Navigation - Cyber Top Bar */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(60px + var(--safe-top));
    padding-top: var(--safe-top);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: var(--glass-border);
    border-right: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.cyber-nav.nav-stacked {
    height: 100px;
    flex-direction: column;
}

.nav-row {
    display: flex;
    width: 100%;
    height: 50%;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

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

.fixed-jump-container {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    pointer-events: none;
    white-space: nowrap;
}

/* Hologram Effect */
.hologram-viewport {
    width: 100%;
    margin-bottom: 250px;
    /* Increased to accommodate hanging text */
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hologram-container {
    /* --holo-intensity: 1.0; Default initial state (Full Hologram) - Controlled by JS */
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Changed to full width */
    margin: 0;
    /* transition: none; controlled via direct property update for performance */
    /* Removed overflow: hidden to allow text to hang out */
    cursor: pointer;
    /* Indicate clickable */
}

/* Image Text Overlay */
.holo-text-overlay {
    position: absolute;
    top: 75%;
    /* Start at 75% down the image (25% overlap) */
    bottom: auto;
    left: 20px;
    right: 20px;
    /* Stretch across with padding */
    width: auto;
    /* Override default block width */
    margin: 0 !important;
    /* Override element style margin */
    z-index: 10;
    background: rgba(0, 5, 10, 0.7);
    /* Semi-transparent dark bg */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.holo-text-overlay p {
    color: #e0e0e0 !important;
    /* Match FAQ text color */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    /* Keep varied shadow for legibility over image */
}

/* FAQ Answer Text Contrast */
.faq-content p {
    color: #e0e0e0;
    /* Brighter than dim text */
}

/* Manual Text Contrast */
.glass-panel p {
    color: #e0e0e0;
}

/* Link Colors - Make them distinct */
a {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.holo-img {
    width: 100%;
    display: block;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    border-radius: 20px;

    /* Dynamic Filter Construction */
    /* 
       Intensity 1.0: 
       - Grayscale: 100%
       - Sepia: 100% (with hue-rotate for Blue)
       - Brightness: 1.2 (Glow)
       - Blur: 2px
       
       Intensity 0.0:
       - All 0 (Normal Image)
    */
    filter:
        grayscale(calc(100% * var(--holo-intensity, 1))) sepia(calc(100% * var(--holo-intensity, 1))) hue-rotate(calc(170deg * var(--holo-intensity, 1)))
        /* Cyan Tint */
        brightness(calc(1 + (0.5 * var(--holo-intensity, 1)))) blur(calc(4px * var(--holo-intensity, 1))) drop-shadow(0 0 calc(20px * var(--holo-intensity, 1)) var(--neon-cyan));

    opacity: calc(0.6 + (0.4 * (1 - var(--holo-intensity, 1))));
    /* 0.6 at hologram, 1.0 at real */
    transform: scale(calc(0.95 + (0.05 * (1 - var(--holo-intensity, 1)))));
    /* Slight zoom in on materialization */
    will-change: filter, opacity, transform;
    transition: all 0.1s;
    /* Base transition for smoothness */
}

.holo-img.switching {
    opacity: 0 !important;
    filter: brightness(3) blur(10px) grayscale(100%) !important;
    transform: scale(1.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scanlines Overlay */
.holo-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* Match img radius */
    background: repeating-linear-gradient(0deg,
            rgba(0, 243, 255, 0.1) 0px,
            rgba(0, 243, 255, 0.1) 1px,
            transparent 1px,
            transparent 3px);
    background-size: 100% 3px;
    z-index: 2;
    pointer-events: none;
    opacity: var(--holo-intensity, 1);
    mix-blend-mode: screen;
}

/* Noise/Grit Overlay */
.holo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* Match img radius */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: calc(0.3 * var(--holo-intensity, 1));
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.blink-text {
    font-size: 0.8rem;
    color: rgba(0, 243, 255, 0.5);
    /* Dimmer color */
    letter-spacing: 2px;
    animation: pulse 3s infinite ease-in-out;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* Offset for fixed header (100px + buffer) */
}

.nav-item {
    writing-mode: horizontal-tb;
    padding: 0 20px;
    /* Reduced padding for tighter fit */
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 0.8rem;
    /* Slightly smaller font */
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 3px;
    opacity: 0.6;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Removed underline for anchor tags */
}

/* ... (rest of the file until dungeon styles) ... */
/* Dungeon Styles Removed */

.nav-item:hover,
.nav-item.active {
    color: var(--neon-cyan);
    opacity: 1;
    text-shadow: 0 0 8px var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
}

/* Hero Section */
.v2-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* overflow: hidden; Removed to allow scrolling */
}

.hero-logo-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo-img {
    width: 100%;
    max-width: 900px;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.4));
    animation: float 6s ease-in-out infinite;
    border-radius: 15px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

/* Lineup - Horizontal Scroll */
.v2-section {
    min-height: 100svh;
    padding: clamp(80px, 10vh, 120px) var(--space-md) clamp(100px, 15vh, 150px) var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: calc(var(--safe-left) + var(--space-md));
    padding-right: calc(var(--safe-right) + var(--space-md));
}

.section-header {
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--neon-cyan);
    padding-left: 20px;
}

.section-header h2 {
    font-size: 3rem;
    background: linear-gradient(90deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow items to wrap to next line */
    justify-content: center;
    /* Center items when wrapping */
    gap: 30px;
    padding-bottom: 40px;
    width: 100%;
}

.card-container::-webkit-scrollbar {
    display: none;
}

.char-card {
    flex: 1 1 300px;
    /* Grow 1, Shrink 1, Basis 300px */
    max-width: 400px;
    /* Prevent excessive width on large screens */
    min-width: 300px;
    /* Maintain minimum readable width */
    height: 500px;
    /* Fixed height for consistent grid alignment */
    position: relative;
    overflow: hidden;
    transition: transform 0.4s;
    cursor: pointer;
}

.char-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-cyan);
}

.char-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.char-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

.char-name {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: var(--neon-cyan);
    width: 0;
    transition: width 1s ease-out;
}

.char-card:hover .stat-fill {
    width: 80%;
    /* Demo value */
}

/* Custom Cyber Button for X */
.cyber-btn-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.cyber-btn-magenta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.1);
    cursor: pointer;
}

.cyber-btn-magenta:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188, 19, 254, 0.4), transparent);
    transition: left 0.5s;
}

.cyber-btn-magenta:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-purple), 0 0 40px rgba(188, 19, 254, 0.4);
    text-shadow: 0 0 5px #fff;
}

.cyber-btn-magenta:hover:before {
    left: 100%;
    transition: left 0.5s ease-in-out;
}

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

.cyber-btn-x:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cyber-btn-x:hover {
    background: var(--neon-cyan);
    color: #030305;
    /* Deep background color for contrast */
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0, 243, 255, 0.4);
    text-shadow: none;
}

.cyber-btn-x:hover:before {
    left: 100%;
    transition: left 0.5s ease-in-out;
}

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

/* 3D Tilt Effect */
.interactive-tilt {
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.interactive-tilt>* {
    transform-style: preserve-3d;
    /* Ensure children can pop out */
    pointer-events: none;
    /* Let clicks pass through to container or button */
}

.interactive-tilt .card-actions,
.interactive-tilt button,
.interactive-tilt a {
    pointer-events: auto;
    /* Re-enable pointer events for interactive children */
    transform: translateZ(20px);
    /* Pop out buttons slightly */
}

/* System Boot Sequence */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    /* Highest priority */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    pointer-events: all;
    /* Block interaction during boot */
}

#boot-log {
    color: var(--neon-cyan);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.boot-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--neon-cyan);
    animation: blink 0.8s infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Fade out animation for boot screen */
#boot-screen.boot-complete {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
}

/* Specs - Blueprint Style */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.blueprint-box {
    border: 1px dashed var(--text-dim);
    padding: 40px;
    position: relative;
}

.blueprint-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
}

.blueprint-box::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* Main Content Area */
#main-content {
    /* Ensure content clears fixed header and bottom elements */
    padding-top: 80px;
    padding-bottom: 150px;
    /* Increased bottom padding */
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cyber-nav {
        width: 100%;
        height: auto;
        min-height: calc(60px + var(--safe-top));
        padding-top: var(--safe-top);
        padding-left: var(--safe-left);
        padding-right: var(--safe-right);
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .v2-section {
        padding: 80px 20px 100px 20px;
        /* Fallback */
        padding: calc(60px + var(--safe-top)) var(--space-sm) calc(100px + var(--safe-bottom)) var(--space-sm);
    }


    .card-container {
        flex-direction: column;
        align-items: center;
        /* Center cards in column */
    }

    .char-card {
        width: 100%;
        /* Fill available width up to max-width */
        max-width: 350px;
        /* Limit width to keep portrait feel */
        min-width: auto;
        /* Remove 100% force */
        height: 550px;
        /* Taller height for distinct vertical look */
        flex: none;
        /* Disable flex grow/shrink in this mode */
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    /* Fix mobile layout overlap */
    .hologram-viewport {
        margin-bottom: 60px;
        flex-direction: column;
    }

    .holo-text-overlay {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        margin-top: -20px !important;
        margin-bottom: 40px !important;
        background: rgba(0, 5, 10, 0.85);
    }

    /* --- Mobile Audio Module (Fixed Width & Compact) --- */
    .music-player {
        position: relative;
        width: 100%;
        height: auto;
        left: 0;
        bottom: 0;
        margin: 0 !important;
        padding: 5px 10px;
        padding-bottom: calc(5px + var(--safe-bottom, 20px));
        background: rgba(0, 5, 10, 0.95);
        border: none;
        border-top: 1px solid rgba(0, 243, 255, 0.2);

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        z-index: 100;
    }

    /* Restore Visibility */
    .player-header,
    .volume-control,
    .seek-wrapper,
    .track-meta {
        display: flex !important;
        width: 100%;
        justify-content: center;
    }

    .player-header {
        justify-content: space-between;
        margin-bottom: 2px;
        font-size: 0.6rem;
        /* Smaller Header */
    }

    /* Fixed Width Title for Stability */
    .track-display {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 2px;
        order: 0;
    }

    .track-name-container {
        width: 160px;
        /* FIXED WIDTH as requested */
        min-width: 160px;
        max-width: 160px;
        overflow: hidden;
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.3);
        /* Slight bg to see area */
        border-radius: 4px;
        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    }

    .track-name {
        font-size: 0.7rem;
        /* Smaller Title */
        display: inline-block;
        padding-left: 100%;
        animation: marquee 15s linear infinite;
        /* Use Global marquee */
        white-space: nowrap;
        background: transparent;
    }

    .track-meta {
        font-size: 0.6rem;
        /* Tiny meta */
    }

    /* Controls */
    .controls-wrapper {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 5px;
        order: 0;
    }

    .player-controls {
        flex: 1;
        justify-content: center;
    }

    .ctrl-btn {
        font-size: 0.7rem;
        /* Smaller Buttons */
        padding: 2px 8px;
    }

    .volume-control {
        width: 100%;
        margin-top: 2px;
        transform: scale(0.9);
        /* Scale down volume slider */
    }

    .volume-control span {
        font-size: 0.6rem;
    }

    .seek-wrapper {
        margin-top: 2px;
    }

    /* Playlist Toggle */
    .playlist-container {
        display: block !important;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }

    .playlist-toggle-btn {
        font-size: 0.6rem;
        padding: 2px;
        height: 20px;
        line-height: 14px;
        background: rgba(0, 5, 10, 0.8);
        border: 1px solid var(--neon-cyan);
        width: 100%;
    }

    /* --- Mobile Typography & Spacing Fixes --- */
    .cyber-nav {
        padding: 5px;
        padding-top: calc(5px + var(--safe-top));
        height: auto;
        min-height: calc(60px + var(--safe-top));
        flex-wrap: wrap;
        /* Allow wrap if needed */
    }

    .nav-item {
        font-size: 0.8rem;
        /* Smaller nav text */
        padding: 5px 8px;
        /* Reduce padding */
        margin: 0 2px;
    }

    .hero-logo-container p.neon-text {
        font-size: 0.9rem !important;
        /* Smaller FDM subtitle */
        letter-spacing: 3px !important;
        margin-top: 10px !important;
    }

    .scroll-indicator {
        font-size: 0.8rem;
        bottom: 80px;
        /* Move up slightly */
    }

    .fixed-jump-container {
        font-size: 0.8rem !important;
        top: 70px !important;
    }

    /* Ensure hologram text doesn't overlap header */
    .section-header h2 {
        font-size: 2rem;
    }

    .controls-wrapper {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    /* Hide obscuring elements on mobile */
    .console-log,
    .system-monitor-bl {
        display: none !important;
    }
}

/* 3D Moving Grid */
.cyber-grid {
    position: fixed;
    bottom: -100px;
    /* Hide bottom edge */
    left: -50%;
    /* Center the expanded grid */
    width: 200%;
    /* Make it wider to cover perspective edges */
    height: 60vh;
    background:
        linear-gradient(transparent 0%, var(--bg-deep) 100%),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    /* Ensure center alignment */
    transform: perspective(500px) rotateX(60deg) scale(1.5);
    animation: gridMove 2s linear infinite;
    /* Faster, smoother loop */
    z-index: -1;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        background-position: center 0;
    }

    100% {
        background-position: center 40px;
    }
}

/* Comet Animation */
.comet {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    animation: comet-move 25s infinite linear;
    animation-delay: 5s;
}

.comet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
    transform: translateY(-50%);
    transform-origin: left center;
}

@keyframes comet-move {
    0% {
        top: 20%;
        left: 110%;
        opacity: 0;
        transform: rotate(-10deg) scale(0.5);
    }

    10% {
        opacity: 1;
    }

    20% {
        top: 40%;
        left: -10%;
        opacity: 0;
        transform: rotate(-10deg) scale(1);
    }

    100% {
        top: 40%;
        left: -10%;
        opacity: 0;
    }
}

/* HUD Overlay */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
    padding: 20px;
}

.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-cyan);
    opacity: 0.5;
}

.hud-tl {
    top: 80px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.hud-tr {
    top: 80px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.hud-bl {
    bottom: 20px;
    left: 100px;
    border-right: none;
    border-top: none;
}

.hud-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.hud-line {
    display: none;
}

/* Glitch Effect */
/* Glitch Effect - SVG Filter Method */
/* Glitch Effect - Standard (CSS Pseudo-elements) for Page Sections */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    /* Use background to mask main text */
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-purple);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 1px 0 var(--neon-cyan);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
    }

    40% {
        clip-path: inset(30% 0 10% 0);
    }

    60% {
        clip-path: inset(50% 0 80% 0);
    }

    80% {
        clip-path: inset(10% 0 40% 0);
    }

    100% {
        clip-path: inset(40% 0 10% 0);
    }
}

/* Specific Override for Audio Player Track Name (SVG Noise) */
.track-name.glitch {
    filter: url(#svg-glitch);
    will-change: transform;
}

.track-name.glitch::before,
.track-name.glitch::after {
    display: none;
    /* Disable CSS glitch for track name */
}

/* Console Log */
.console-log {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: fit-content;
    max-width: 400px;
    height: 70px;
    /* Approximately 4 lines plus padding */
    min-height: 70px;
    /* Fixed height to prevent resizing */
    overflow: hidden;
    font-family: monospace;
    font-size: 0.55rem;
    /* Reduced from 0.6rem to fix clipping */
    line-height: 1.4;
    /* Adjusted line height */
    color: var(--neon-cyan);
    text-shadow: 0 0 2px var(--neon-cyan);
    background: rgba(0, 0, 0, 0.0);
    padding: 10px;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: auto;
    margin: 0 auto;
}

.log-entry {
    margin-bottom: 0;
    padding: 1px 0;
    opacity: 0;
    /* Start hidden */
    animation: slideIn 0.3s forwards;
    /* Animate in */
    flex-shrink: 0;
    /* Prevent shrinking */
    width: 100%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* System Monitor (Bottom Left) */
.system-monitor-bl {
    position: absolute;
    bottom: 100px;
    left: 40px;
    width: 200px;
    font-family: monospace;
    color: var(--neon-cyan);
}

.monitor-label {
    font-size: 0.6rem;
    margin-bottom: 2px;
    opacity: 0.7;
}

.monitor-bar {
    width: 60%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.monitor-fill {
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}



/* Card Hologram Effect */
.char-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 243, 255, 0.05) 0px,
            rgba(0, 243, 255, 0.05) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 1;
}

/* Expanded Card State */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

body.has-expanded-card .overlay-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.char-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 1000;
    width: 80vw;
    max-width: 500px;
    height: 70vh;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
    cursor: default;
}

.char-card.expanded:hover {
    transform: translate(-50%, -50%) scale(1.2);
    /* Override hover scale */
}

.specs-list {
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 15px;
    line-height: 1.6;
}

.specs-list div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
}

.specs-list span {
    color: var(--neon-cyan);
}

/* Reveal hidden content in expanded state */
.card-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s 0.3s;
    /* Delay */
    position: absolute;
    bottom: 250px;
    left: 0;
    width: 100%;
    text-align: center;
}

.char-card.expanded .card-actions {
    opacity: 1;
    pointer-events: auto;
}

.enter-btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--neon-cyan);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.enter-btn:hover {
    background: #fff;
}

/* Music Player */
/* Music Player - Bottom Bar */
.music-player {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: calc(80px + var(--safe-bottom));
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--neon-cyan);
    padding: 15px var(--space-md) calc(15px + var(--safe-bottom)) var(--space-md);
    z-index: 900;
    font-family: monospace;
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    pointer-events: auto;
}

.seek-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    /* Adjust as needed */
    margin: 0;
    padding: 0;
}

.seek-wrapper .cyber-slider {
    width: 100%;
    margin: 0;
    display: block;
    height: 4px;
    /* Match slider height */
}

.player-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border: none;
    padding: 0;
    min-width: 120px;
}

.player-title {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    /* Reduced from 1.0rem */
    letter-spacing: 2px;
    filter: url(#audio-glitch-filter);
    will-change: transform;
    display: inline-block;
}

.player-status {
    font-size: 0.7rem;
    /* Reduced from 0.9rem */
    color: var(--text-dim);
}

.player-status.active {
    color: var(--neon-purple);
    animation: blink 1s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    /* Thinner */
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.9);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

/* Track Name Scrolling (Desktop/Global) */
.track-name-container {
    overflow: hidden;
    white-space: nowrap;
    max-width: 200px;
    /* Limit width */
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Ensure track name uses this globally */
.track-name {
    display: inline-block;
    padding-left: 100%;
    /* Start from right edge */
    animation: marquee 15s linear infinite;
    /* Slower 15s */
    white-space: nowrap;
    font-family: var(--font-tech);
    color: var(--text-main);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 6px;
    border: 2px solid var(--bg-deep);
    /* Adds spacing look */
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.track-display {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reduced gap from 20px */
    justify-content: center;
}

.track-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.track-name-container {
    width: auto;
    /* Flexible width */
    max-width: 40vw;
    /* Prevent taking up too much space */
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.track-name {
    color: #fff;
    font-size: 1.0rem;
    /* Reduced from 1.2rem */
    white-space: nowrap;
    margin: 0;
    display: inline-block;
    padding-left: 0;
    /* Remove padding for marquee start */
    animation: none;
    /* Disable marquee per request for static one-line display? Or keep it? User said "font size adjustment so it fits in one line" - maybe implies static fitting. I'll disable marquee and let it be static. If it overflows, max-width handles it. */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.track-meta {
    display: flex;
    flex-direction: column;
    /* Changed to column for 2 lines */
    gap: 2px;
    align-items: center;
}

.track-time {
    color: var(--neon-cyan);
    font-size: 0.7rem;
    /* Reduced from 0.9rem */
    margin: 0;
    text-align: center;
    opacity: 0.8;
}

.track-credits {
    color: var(--text-dim);
    font-size: 0.65rem;
    /* Reduced from 0.8rem */
    opacity: 0.8;
}

.player-controls {
    display: flex;
    gap: 10px;
    margin: 0;
}

.ctrl-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 5px 10px;
    /* Reduced padding from 15px */
    font-family: monospace;
    cursor: pointer;
    font-size: 0.65rem;
    /* Reduced from 0.8rem */
    transition: all 0.2s;
}

.ctrl-btn:hover {
    background: var(--neon-cyan);
    color: #000;
}






.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--neon-cyan);
    width: auto;
}

.cyber-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* Playlist Container */
.playlist-container {
    position: absolute;
    bottom: calc(100px + var(--safe-bottom));
    right: 20px;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through container area */
}

.playlist-toggle-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    /* Match list width */
    height: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 0.7rem;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1002;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.playlist-toggle-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.track-list {
    position: absolute;
    bottom: 35px;
    /* Above toggle button */
    right: 0;
    width: 180px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px 8px 0 0;
    padding: 10px;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    pointer-events: auto;

    /* Animation */
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s;
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
}

.track-list.collapsed {
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
}

/* Toggle Icon Rotation */
.playlist-toggle-btn.collapsed i,
.playlist-toggle-btn.collapsed::before {
    /* If using pseudo elements for icon */
}

.track-item {
    padding: 4px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s;
}

.track-item:hover {
    color: #fff;
}

.track-item.active {
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Video Overlay */
#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#intro-video {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 100px 50px #000;
    border-radius: 20px;
    mask-image: radial-gradient(circle, black 50%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 90%);
    outline: none;
}

/* --- 3D Dungeon Crawler Styles --- */
/* Global Cyan Theme */
:root {
    --main-color: #00ffff;
    --dark-color: #002222;
    --bg-color: #000000;
}

body {
    background-color: var(--bg-color);
    color: var(--main-color);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    /* height: 100vh;  Removed to allow global scrolling */
    /* overflow: hidden; Removed to allow global scrolling */
    text-shadow: 0 0 5px var(--main-color);
}

.dungeon-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    position: relative;
}

/* ... (skip unchanged parts) ... */

.viewport-frame {
    flex: 1;
    position: relative;
    border-bottom: 2px solid var(--main-color);
    overflow: hidden;
}

#minimap-canvas {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    height: 100px;
    border: 1px solid var(--main-color);
    background: rgba(0, 20, 20, 0.8);
    z-index: 20;
    image-rendering: pixelated;
}

.interface-panel {
    height: 200px;
    display: flex;
    border-top: 2px solid var(--main-color);
}

.status-box,
.log-box,
.command-box {
    padding: 10px;
    border-right: 2px solid var(--main-color);
    background: #000505;
}

.command-box {
    border-right: none;
}

.retro-header {
    margin: 0 0 10px 0;
    text-align: center;
    border-bottom: 1px dashed var(--main-color);
    padding-bottom: 5px;
    font-size: 1.2em;
    letter-spacing: 2px;
}

.retro-btn {
    background: var(--dark-color);
    border: 1px solid var(--main-color);
    color: var(--main-color);
    padding: 10px 0;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.1s;
    width: 100%;
    text-shadow: 0 0 5px var(--main-color);
}

.retro-btn:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 10px var(--main-color);
}

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

/* Scanlines */
.scanline-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 255, 255, 0),
            rgba(0, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
}

#view-canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
}

.status-box {
    flex: 1;
}

.log-box {
    flex: 2;
    overflow-y: auto;
}

.command-box {
    flex: 1;
}

.retro-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.retro-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.cmd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 5px;
    align-items: center;
    grid-template-areas:
        ". forward ."
        "left back right"
        "action . camp";
}

#btn-forward {
    grid-area: forward;
}

#btn-left {
    grid-area: left;
}

#btn-back {
    grid-area: back;
}

#btn-right {
    grid-area: right;
}

#btn-action {
    grid-area: action;
}

#btn-camp {
    grid-area: camp;
}

.retro-btn:active {
    transform: translateY(2px);
}

.back-link {
    margin-top: 20px;
    color: #008888;
    text-decoration: none;
    font-size: 0.8rem;
}

.back-link:hover {
    color: #00ffff;
    text-decoration: underline;
}

/* --- LOG Section --- */
.log-container {
    padding: 20px;
    font-family: monospace;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
}

.log-entry-row {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.log-entry-row:last-child {
    border-bottom: none;
}

.log-date {
    color: var(--neon-cyan);
    opacity: 0.8;
}

.log-content {
    color: var(--text-main);
}

/* --- VISUAL Section --- */
.visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.visual-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
}

.visual-item:hover {
    transform: scale(1.02);
    border-color: var(--neon-cyan);
}

.visual-img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 243, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.5rem;
}

.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--neon-cyan);
    font-size: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.visual-item:hover .visual-overlay {
    transform: translateY(0);
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    padding: 15px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: bold;
    list-style: none;
    position: relative;
    transition: color 0.3s;
}

.faq-item summary:hover {
    color: var(--neon-cyan);
}

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

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    color: var(--neon-cyan);
}

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

.faq-content {
    padding: 15px;
    color: var(--text-dim);
    background: rgba(0, 243, 255, 0.02);
    line-height: 1.6;
}

/* --- DEVELOPER Section --- */
.dev-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.dev-avatar {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.dev-info h3 {
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.dev-role {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.dev-bio {
    line-height: 1.6;
    margin-bottom: 20px;
}

.dev-links {
    display: flex;
    gap: 20px;
}

.cyber-link {
    color: var(--neon-cyan);
    text-decoration: none;
    border: 1px solid var(--neon-cyan);
    padding: 5px 15px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.cyber-link:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@media (max-width: 768px) {
    .dev-card {
        flex-direction: column;
        text-align: center;
    }

    .log-entry-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- Section Container Padding --- */
.section-container {
    padding-left: 60px;
    /* Added left padding as requested */
    padding-right: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    /* One screen per section */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .section-container {
        padding-left: 20px;
        /* Reset for mobile */
    }
}

/* --- Slideshow Styles --- */
.visual-frame {
    max-width: 1200px;
    /* Increased size */
    width: 95%;
    /* Responsive width */
    margin: 0 auto;
    border: 1px solid var(--neon-cyan);
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    border-radius: 20px;
    /* Rounded corners */
}

.visual-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 15px;
    /* Rounded corners for inner container */
}

.slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
}

.visual-img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 243, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 2rem;
    font-family: var(--font-display);
}

.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    user-select: none;
}

.slide-nav-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.slide-nav-btn.prev {
    left: 0;
    border-left: none;
}

.slide-nav-btn.next {
    right: 0;
    border-right: none;
}

/* --- Visual Metadata --- */
.visual-meta {
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    /* Center horizontally */
    text-align: center;
    font-family: monospace;
    font-size: 1rem;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    gap: 10px;
}

.meta-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.meta-label {
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.meta-value {
    color: var(--neon-cyan);
    font-weight: bold;
    letter-spacing: 2px;
}

.meta-link {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px dashed var(--neon-cyan);
    transition: all 0.3s;
}

.meta-link:hover {
    background: var(--neon-cyan);
    color: #000;
    border-bottom-style: solid;
}

@media (max-width: 600px) {
    .visual-meta {
        padding: 15px;
    }
}

/* Back Button (Global) */
.back-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: 2px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Warp Animation: Shrink then Enlarge */
@keyframes warpSpin {
    0% {
        transform: scale(1) perspective(500px) rotateY(0deg);
        opacity: 1;
    }

    20% {
        transform: scale(0.6) perspective(500px) rotateY(0deg);
        opacity: 1;
    }

    /* Shrink, No Rotate, Fast */
    100% {
        transform: scale(5) perspective(500px) rotateY(720deg);
        opacity: 0;
    }

    /* Enlarge & Rotate */
}

.warp-anim {
    animation: warpSpin 2s ease-in-out forwards;
}

/* --- GARAGE Banner Styles --- */
.garage-banner {
    display: block;
    text-align: center;
    margin: 60px auto 20px;
    /* Center horizontally, spacing */
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 600px;
    padding: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    background: rgba(0, 5, 10, 0.6);
}

.garage-banner:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: scale(1.02);
}

.garage-title {
    font-size: 3rem;
    font-family: var(--font-display);
    color: var(--neon-cyan);
    letter-spacing: 5px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.garage-sub {
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    font-family: monospace;
}

/* Global Reader Content Font */
.content-body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* Mobile Optimization for Readers (Global) */
@media (max-width: 768px) {
    .reader-container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .content-body {
        padding: 20px 20px !important;
    }
}

/* --- Badge Styles (Global) --- */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid currentColor;
    font-weight: bold;
}

.badge-flicker {
    color: #ff9d00;
    border-color: #ff9d00;
}

.badge-fragments {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.badge-fragrance {
    color: #b400ff;
    border-color: #b400ff;
}