#pixel-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 200, 220, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 220, 0.02) 1px, transparent 1px);
    background-size: var(--pixel-size) var(--pixel-size);
    pointer-events: none;
    z-index: 10000;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

#ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#grain-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.split-char {
    display: inline-block;
    opacity: 0;
    animation: splitIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splitIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotateZ(8deg) scale(0.6);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateZ(0) scale(1);
        filter: blur(0);
    }
}

.link-card {
    transform-style: preserve-3d;
    transition: transform 0.2s ease, margin 0.3s ease, box-shadow 0.3s;
}

#visualizer-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

#music-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9998;
    background: rgba(14, 14, 24, 0.7);
    border: 1px solid rgba(42, 138, 138, 0.2);
    color: var(--text-secondary);
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#music-toggle:hover {
    border-color: rgba(42, 138, 138, 0.5);
    color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(42, 138, 138, 0.15);
}

#music-toggle.playing {
    border-color: rgba(42, 138, 138, 0.4);
    color: var(--accent-teal);
    animation: cursorPulse 2s ease infinite;
}

.pixel-avatar {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.pixel-text {
    font-family: var(--font-pixel);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.pixel-icon {
    shape-rendering: crispEdges;
    image-rendering: pixelated;
}

#scanline {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(42, 138, 138, 0.015) 50%,
            transparent 100%);
    height: 30%;
    pointer-events: none;
    z-index: 9999;
    animation: scanMove 4s linear infinite;
}