:root {
    --void-black: #000000;
    --deep-space: #0A0E1A;
    --cyan-electric: #00F0FF;
    --magenta-glow: #FF006E;
    --purple-deep: #7209B7;
    --text-dim: #A8B2D1;
    --unicorn-shimmer: #F0E6FF;
    --labradorite: #4A7C9E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Space Mono', monospace;
    background: var(--void-black);
    color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   CANVAS CONTAINER
   ═══════════════════════════════════════════════════════════════ */

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particleCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   VOID INTERFACE
   ═══════════════════════════════════════════════════════════════ */

.void-interface {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 900px);
    min-height: 500px;
    z-index: 10;
    background: rgba(10, 14, 26, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow:
        0 0 80px rgba(0, 240, 255, 0.15),
        0 0 40px rgba(255, 0, 110, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: borderPulse 8s ease-in-out infinite, labradoriteShift 20s ease-in-out infinite;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.void-interface.active {
    opacity: 1;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(0, 240, 255, 0.3);
        box-shadow:
            0 0 80px rgba(0, 240, 255, 0.2),
            0 0 40px rgba(255, 0, 110, 0.1);
    }
    50% {
        border-color: rgba(255, 0, 110, 0.3);
        box-shadow:
            0 0 80px rgba(255, 0, 110, 0.2),
            0 0 40px rgba(0, 240, 255, 0.1);
    }
}

@keyframes labradoriteShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(15deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL HEADER
   ═══════════════════════════════════════════════════════════════ */

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.hex-stream {
    font-family: 'Space Mono', monospace;
    color: var(--cyan-electric);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.void-symbol {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--magenta-glow);
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
    animation: symbolPulse 3s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   QUOTE ZONE
   ═══════════════════════════════════════════════════════════════ */

.quote-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.quote-wrapper {
    max-width: 700px;
    position: relative;
}

.quote-text {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    line-height: 1.8;
    text-align: center;
    font-weight: 400;
    color: var(--text-dim);
    text-shadow: 0 0 20px rgba(168, 178, 209, 0.3);
    opacity: 0;
    filter: blur(10px);
    font-style: italic;
}

.quote-cursor {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 1.8rem;
    background: var(--cyan-electric);
    opacity: 0;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   CONSTELLATION MARKERS
   ═══════════════════════════════════════════════════════════════ */

.constellation-markers {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    opacity: 0.4;
}

.marker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 3px;
}

.marker-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-electric);
    box-shadow: 0 0 10px var(--cyan-electric);
    animation: dotPulse 2s ease-in-out infinite;
}

.marker[data-const="canis"] .marker-dot {
    background: var(--magenta-glow);
    box-shadow: 0 0 10px var(--magenta-glow);
    animation-delay: 1s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.marker-label {
    color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   AUDIO VISUALIZER BARS
   ═══════════════════════════════════════════════════════════════ */

.audio-bars {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 40px;
    opacity: 0.3;
}

.bar {
    width: 3px;
    background: linear-gradient(to top, var(--cyan-electric), var(--magenta-glow));
    border-radius: 2px;
    height: 10px;
    transition: height 0.1s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
   INIT SCREEN
   ═══════════════════════════════════════════════════════════════ */

.init-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--void-black);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 2s ease-out;
}

.init-screen:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.init-content {
    text-align: center;
}

.init-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: 8px;
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--cyan-electric);
    text-shadow:
        0 0 20px rgba(0, 240, 255, 0.8),
        0 0 40px rgba(0, 240, 255, 0.4);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(0, 240, 255, 0.8),
            0 0 40px rgba(0, 240, 255, 0.4);
    }
    50% {
        text-shadow:
            0 0 30px rgba(255, 0, 110, 0.8),
            0 0 60px rgba(255, 0, 110, 0.4);
        color: var(--magenta-glow);
    }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: var(--magenta-glow);
    animation: glitch1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: var(--cyan-electric);
    animation: glitch2 2s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    92% { opacity: 0.8; transform: translate(-3px, 2px); }
}

@keyframes glitch2 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    93% { opacity: 0.8; transform: translate(3px, -2px); }
}

.init-btn {
    padding: 20px 60px;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 4px;
    background: transparent;
    color: var(--cyan-electric);
    border: 2px solid var(--cyan-electric);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.init-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.init-btn:hover::before {
    left: 100%;
}

.init-btn:hover {
    border-color: var(--magenta-glow);
    color: var(--magenta-glow);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.init-hint {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .void-interface {
        width: 95vw;
        padding: 35px 25px;
        min-height: 400px;
    }

    .terminal-header {
        margin-bottom: 40px;
    }

    .quote-text {
        font-size: 1rem;
    }

    .constellation-markers {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .audio-bars {
        bottom: 15px;
        right: 15px;
        height: 30px;
    }

    .init-btn {
        padding: 15px 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .void-interface {
        padding: 25px 20px;
    }

    .terminal-header {
        flex-direction: column;
        gap: 10px;
    }

    .quote-text {
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR (MINIMAL)
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan-electric);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--magenta-glow);
}
