@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Space Mono', monospace;
    background: #000000 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #9370DB !important;
    overflow: hidden;
    position: relative;
    image-rendering: pixelated;
    padding: 2rem 0;
}

body.playing .brand,
body.playing .coming-soon,
body.playing .music-player {
    display: flex;
}

body:not(.playing) .brand,
body:not(.playing) .coming-soon,
body:not(.playing) .music-player {
    display: none;
}

.click-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.3rem;
    color: #9370DB;
    text-shadow: 1px 1px 0px #4B0082;
    z-index: 100;
    text-transform: lowercase;
    opacity: 1;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    padding: 15px 30px;
    border: 2px solid #2a0845;
    background: rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.click-hint.exploding {
    animation: pixelExplosion 1s ease-out forwards;
}

@keyframes pixelExplosion {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0px);
        text-shadow: 1px 1px 0px #4B0082;
        border-color: #2a0845;
        background: rgba(0, 0, 0, 0.9);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(0px);
        text-shadow: 0 0 15px #9370DB, 2px 2px 0px #4B0082;
        border-color: #9370DB;
        background: rgba(147, 112, 219, 0.1);
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
        filter: blur(1px);
        text-shadow: 0 0 25px #9370DB, 0 0 10px #4B0082, -2px -2px 0px #4B0082;
        border-color: #9370DB;
        background: rgba(147, 112, 219, 0.2);
    }
    40% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.8) rotate(5deg);
        filter: blur(2px);
        text-shadow: 0 0 35px #9370DB, 0 0 15px #4B0082, 2px -2px 0px #4B0082, -2px 2px 0px #4B0082;
        border-color: #6A0DAD;
        background: rgba(106, 13, 173, 0.3);
    }
    60% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(2.2) rotate(-3deg);
        filter: blur(4px);
        text-shadow: 0 0 50px #9370DB, 0 0 25px #4B0082, 4px 4px 0px #4B0082, -4px -4px 0px #4B0082;
        border-color: #8A2BE2;
        background: rgba(138, 43, 226, 0.4);
    }
    80% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(2.5) rotate(2deg);
        filter: blur(8px);
        text-shadow: 0 0 70px #9370DB, 0 0 35px #4B0082;
        border-color: #9370DB;
        background: rgba(147, 112, 219, 0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3) rotate(0deg);
        filter: blur(15px);
        text-shadow: 0 0 100px #9370DB, 0 0 50px #4B0082;
        border-color: transparent;
        background: transparent;
    }
}

.explosion-particle {
    position: fixed;
    pointer-events: none;
    z-index: 99;
    width: 4px;
    height: 4px;
    background: #9370DB;
    box-shadow: 0 0 4px #9370DB;
    image-rendering: pixelated;
}

@keyframes explodeOutward {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.5);
    }
}

.click-effect {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 1000;
    image-rendering: pixelated;
}

.star {
    width: 100%;
    height: 100%;
    background: #9370DB;
    box-shadow: 0 0 6px #9370DB;
}

.pixel-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #9370DB;
    opacity: 0.6;
    animation: fadeOut 1s ease-out forwards;
}

@keyframes bounceUpDown {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--up-y))) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx) * 2), calc(-50% + var(--down-y))) scale(0.6);
        opacity: 0;
    }
}

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

.mouse-glow {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid #9370DB;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.3;
    animation: mousePulse 2s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes mousePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(138, 43, 226, 0.08) 1px, rgba(138, 43, 226, 0.08) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(75, 0, 130, 0.08) 1px, rgba(75, 0, 130, 0.08) 2px),
        radial-gradient(circle at 25% 25%, rgba(138, 43, 226, 0.12) 0%, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(75, 0, 130, 0.12) 0%, transparent 3px),
        radial-gradient(circle at 50% 10%, rgba(186, 85, 211, 0.10) 0%, transparent 3px),
        radial-gradient(circle at 10% 90%, rgba(147, 112, 219, 0.08) 0%, transparent 3px),
        radial-gradient(circle at 85% 20%, rgba(255, 105, 180, 0.06) 0%, transparent 3px),
        radial-gradient(circle at 15% 70%, rgba(0, 191, 255, 0.06) 0%, transparent 3px),
        radial-gradient(circle at 40% 40%, rgba(138, 43, 226, 0.04) 0%, transparent 2px),
        radial-gradient(circle at 60% 60%, rgba(75, 0, 130, 0.04) 0%, transparent 2px),
        radial-gradient(circle at 30% 70%, rgba(186, 85, 211, 0.03) 0%, transparent 2px),
        radial-gradient(circle at 70% 30%, rgba(255, 105, 180, 0.03) 0%, transparent 2px);
    background-size: 100% 100%, 100% 100%, 250px 250px, 250px 250px, 200px 200px, 200px 200px, 220px 220px, 180px 180px, 150px 150px, 160px 160px, 170px 170px, 190px 190px;
    animation: spaceFloat 40s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(138, 43, 226, 0.08) 0%, transparent 2px),
        radial-gradient(circle at 85% 30%, rgba(75, 0, 130, 0.08) 0%, transparent 2px),
        radial-gradient(circle at 45% 70%, rgba(186, 85, 211, 0.06) 0%, transparent 2px),
        radial-gradient(circle at 65% 15%, rgba(147, 112, 219, 0.06) 0%, transparent 2px),
        radial-gradient(circle at 25% 85%, rgba(138, 43, 226, 0.04) 0%, transparent 2px),
        radial-gradient(circle at 75% 55%, rgba(75, 0, 130, 0.04) 0%, transparent 2px),
        radial-gradient(circle at 35% 35%, rgba(255, 105, 180, 0.04) 0%, transparent 2px),
        radial-gradient(circle at 55% 65%, rgba(0, 191, 255, 0.04) 0%, transparent 2px),
        radial-gradient(circle at 5% 50%, rgba(138, 43, 226, 0.03) 0%, transparent 1px),
        radial-gradient(circle at 95% 50%, rgba(75, 0, 130, 0.03) 0%, transparent 1px),
        radial-gradient(circle at 50% 5%, rgba(186, 85, 211, 0.03) 0%, transparent 1px),
        radial-gradient(circle at 50% 95%, rgba(255, 105, 180, 0.03) 0%, transparent 1px);
    background-size: 350px 350px, 300px 300px, 250px 250px, 220px 220px, 200px 200px, 270px 270px, 210px 210px, 230px 230px, 180px 180px, 190px 190px, 160px 160px, 170px 170px;
    animation: spaceFloat 60s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

@keyframes spaceFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(4px, -4px); }
    50% { transform: translate(-4px, 4px); }
    75% { transform: translate(2px, -2px); }
}

.brand {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    color: #9370DB;
    text-shadow: 
        1px 1px 0px #4B0082,
        2px 2px 0px rgba(138, 43, 226, 0.3),
        3px 3px 0px rgba(186, 85, 211, 0.2);
    animation: pixelShimmer 8s ease-in-out infinite, glitch 4s infinite;
    text-transform: lowercase;
    opacity: 1;
    position: relative;
    z-index: 10;
}

.ascii-art {
    margin: 0;
    padding: 0;
    line-height: 1;
    font-family: 'Space Mono', monospace;
    white-space: pre;
    display: inline-block;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 
            1px 1px 0px #4B0082,
            2px 2px 0px rgba(138, 43, 226, 0.3),
            3px 3px 0px rgba(186, 85, 211, 0.2);
        transform: translate(0, 0);
    }
    2% {
        text-shadow: 
            -2px 1px 0px #FF69B4,
            2px -2px 0px #00BFFF,
            1px 1px 0px #4B0082;
        transform: translate(-2px, 2px);
    }
    4% {
        text-shadow: 
            2px -1px 0px #00BFFF,
            -2px 2px 0px #FF69B4,
            1px 1px 0px #4B0082;
        transform: translate(2px, -2px);
    }
    6% {
        text-shadow: 
            1px 1px 0px #4B0082,
            2px 2px 0px rgba(138, 43, 226, 0.3),
            3px 3px 0px rgba(186, 85, 211, 0.2);
        transform: translate(0, 0);
    }
    8% {
        text-shadow: 
            -1px 2px 0px #FF69B4,
            1px -1px 0px #00BFFF,
            2px 1px 0px #4B0082;
        transform: translate(1px, -1px);
    }
    10% {
        text-shadow: 
            1px 1px 0px #4B0082,
            2px 2px 0px rgba(138, 43, 226, 0.3),
            3px 3px 0px rgba(186, 85, 211, 0.2);
        transform: translate(0, 0);
    }
    54% {
        text-shadow: 
            1px 1px 0px #4B0082,
            2px 2px 0px rgba(138, 43, 226, 0.3),
            3px 3px 0px rgba(186, 85, 211, 0.2);
        transform: translate(0, 0);
    }
    56% {
        text-shadow: 
            2px -2px 0px #00BFFF,
            -1px 1px 0px #FF69B4,
            1px 2px 0px #4B0082;
        transform: translate(-1px, 2px);
    }
    58% {
        text-shadow: 
            -2px 1px 0px #FF69B4,
            2px -1px 0px #00BFFF,
            -1px -2px 0px #4B0082;
        transform: translate(2px, 1px);
    }
    60% {
        text-shadow: 
            1px 1px 0px #4B0082,
            2px 2px 0px rgba(138, 43, 226, 0.3),
            3px 3px 0px rgba(186, 85, 211, 0.2);
        transform: translate(0, 0);
    }
}

.coming-soon {
    text-align: center;
    z-index: 10;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.3rem;
    margin-bottom: 0;
    color: #4B0082;
    text-shadow: 
        1px 1px 0px #2d1b69,
        2px 2px 0px rgba(75, 0, 130, 0.3),
        3px 3px 0px rgba(138, 43, 226, 0.2);
    animation: pixelShimmer 6s ease-in-out infinite;
    line-height: 1.3;
    text-transform: lowercase;
}

@keyframes pixelShimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.music-player {
    background: #0a0520;
    border: 2px solid #4B0082;
    border-radius: 0;
    padding: 1.5rem 1.5rem;
    box-shadow: 
        2px 1px 0px #2d1b69,
        4px 4px 0px rgba(138, 43, 226, 0.3),
        inset 2px 2px 0px rgba(186, 85, 211, 0.2);
    width: 200px;
    margin: 0;
    transition: all 0.2s ease;
    image-rendering: pixelated;
    z-index: 10;
    position: relative;
    display: inline-block;
    vertical-align: top;
    flex-direction: column;
    justify-content: space-between;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.volume-slider {
    width: 100px;
    height: 8px;
    background: #1a0a40;
    border: 2px solid #4B0082;
    outline: none;
    appearance: none;
    cursor: pointer;
    image-rendering: pixelated;
    box-shadow: 
        1px 1px 0px #2d1b69,
        inset 1px 1px 0px rgba(186, 85, 211, 0.2);
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    background: #9370DB;
    border: 1px solid #4B0082;
    cursor: pointer;
    image-rendering: pixelated;
    border-radius: 0;
    box-shadow: 
        1px 1px 0px #2d1b69,
        inset 1px 1px 0px rgba(186, 85, 211, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #9370DB;
    border: 1px solid #4B0082;
    cursor: pointer;
    image-rendering: pixelated;
    border-radius: 0;
    box-shadow: 
        1px 1px 0px #2d1b69,
        inset 1px 1px 0px rgba(186, 85, 211, 0.3);
}

.volume-label {
    font-size: 0.5rem;
    color: #9370DB;
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-transform: lowercase;
    text-shadow: 1px 1px 0px #4B0082;
    font-family: 'Space Mono', monospace;
}

.control-btn {
    background: #1a0a40;
    border: 2px solid #4B0082;
    color: #9370DB;
    width: 36px;
    height: 36px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        2px 2px 0px #2d1b69,
        inset 2px 2px 0px rgba(138, 43, 226, 0.2);
    image-rendering: pixelated;
}

.control-btn:hover {
    background: #2d1b69;
    border-color: #8A2BE2;
    transform: translate(1px, 1px);
    box-shadow: 
        1px 1px 0px #2d1b69,
        inset 2px 2px 0px rgba(138, 43, 226, 0.4);
}

.control-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

#play-btn {
    width: 42px;
    height: 42px;
    background: #2d1b69;
    border-color: #8A2BE2;
    box-shadow: 
        2px 2px 0px #2d1b69,
        inset 2px 2px 0px rgba(186, 85, 211, 0.3);
}

#play-btn:hover {
    background: #4B0082;
    border-color: #9370DB;
}

.visual-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.bass-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0) 0%, rgba(138, 43, 226, 0) 100%);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.bass-drop-overlay.active {
    opacity: 0.3;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(138, 43, 226, 0.05) 4px, rgba(138, 43, 226, 0.05) 8px),
        radial-gradient(circle at center, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.05) 40%, transparent 70%);
    animation: pixelBassPulse 0.4s ease-out;
    image-rendering: pixelated;
}

@keyframes pixelBassPulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #9370DB;
    border-radius: 0;
    pointer-events: none;
    animation: pixelParticleFloat 4s ease-out forwards;
    box-shadow: none;
    image-rendering: pixelated;
}

.soprano-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #8A2BE2;
    border-radius: 0;
    pointer-events: none;
    animation: pixelSopranoFloat 3s ease-out forwards;
    box-shadow: none;
    image-rendering: pixelated;
}

@keyframes pixelSopranoFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(var(--tx2), var(--ty2)) scale(1);
        opacity: 0;
    }
}

@keyframes pixelParticleFloat {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx2), var(--ty2));
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .brand {
        font-size: 0.4rem;
        letter-spacing: 0.05rem;
    }
    
    .coming-soon h1 {
        font-size: 1.8rem;
        letter-spacing: 0.2rem;
    }
    
    .music-player {
        max-width: 280px;
        padding: 1.2rem 1.5rem;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    #play-btn {
        width: 38px;
        height: 38px;
    }
}
