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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f0f0;
}

.container {
    position: relative;
}

.sound-button {
    position: relative;
    width: 300px;
    height: 80px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creature {
    position: relative;
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.music-note {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    display: none;
    color: white;
}

.music-note::before {
    content: '♪';
    font-size: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sound-button.active .music-note {
    display: block;
    animation: noteAnimation 0.3s infinite ease-in-out;
}

@keyframes noteAnimation {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.sound-button.active .eyes {
    display: none;
}

.sound-button:not(.active) .music-note {
    display: none;
}

.sound-button:not(.active) .eyes {
    display: flex;
}

.sound-button.active .creature {
    animation: none;
}

@keyframes blobAnimation {
    0%, 100% {
        border-radius: 50%;
        transform: scale(1) rotate(0deg);
    }
    15% {
        border-radius: 45% 55% 60% 40% / 40% 60% 40% 60%;
        transform: scale(1.1) rotate(3deg);
    }
    30% {
        border-radius: 60% 40% 30% 70% / 50% 40% 60% 50%;
        transform: scale(0.95) rotate(-3deg);
    }
    45% {
        border-radius: 40% 60% 55% 45% / 60% 55% 45% 40%;
        transform: scale(1.05) rotate(2deg);
    }
    60% {
        border-radius: 55% 45% 35% 65% / 45% 50% 50% 55%;
        transform: scale(0.98) rotate(-2deg);
    }
    75% {
        border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
        transform: scale(1.08) rotate(1deg);
    }
    90% {
        border-radius: 45% 55% 50% 50% / 50% 50% 50% 50%;
        transform: scale(0.92) rotate(-1deg);
    }
}

.eyes {
    position: absolute;
    top: 30%;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.eye {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    animation: blinkAnimation 3s infinite;
}

.eye::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes blinkAnimation {
    0%, 95%, 100% {
        transform: scaleY(1);
    }
    97% {
        transform: scaleY(0.1);
    }
}

.sound-button.active .eye {
    animation: blinkAnimation 3s infinite;
}

.waves-container {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    pointer-events: none;
}

.waves {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 2px;
    transition: all 0.5s ease-in-out;
}

.waves.right {
    transform: scaleX(-1);
}

.wave {
    background: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    transform: scaleX(1) translateX(0);
    opacity: 1;
}

.sound-button:not(.active) .wave {
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: all 0.5s ease-in-out !important;
    margin: 0 !important;
}

.waves.left .wave {
    --collapse-direction: 50px;
}

.waves.right .wave {
    --collapse-direction: -50px;
}

.wave1 { height: 55px; width: 8px; }
.wave2 { height: 50px; width: 7px; }
.wave3 { height: 45px; width: 7px; }
.wave4 { height: 40px; width: 6px; }
.wave5 { height: 35px; width: 6px; }
.wave6 { height: 30px; width: 5px; }
.wave7 { height: 25px; width: 5px; }
.wave8 { height: 20px; width: 4px; }
.wave9 { height: 15px; width: 4px; }
.wave10 { height: 10px; width: 3px; }

.sound-button.active .wave {
    animation: soundWave 0.3s infinite ease-in-out;
}

.sound-button.active .wave:nth-child(1) { animation-duration: 0.2s; }
.sound-button.active .wave:nth-child(2) { animation-duration: 0.3s; }
.sound-button.active .wave:nth-child(3) { animation-duration: 0.25s; }
.sound-button.active .wave:nth-child(4) { animation-duration: 0.35s; }
.sound-button.active .wave:nth-child(5) { animation-duration: 0.28s; }
.sound-button.active .wave:nth-child(6) { animation-duration: 0.32s; }
.sound-button.active .wave:nth-child(7) { animation-duration: 0.22s; }
.sound-button.active .wave:nth-child(8) { animation-duration: 0.38s; }
.sound-button.active .wave:nth-child(9) { animation-duration: 0.26s; }
.sound-button.active .wave:nth-child(10) { animation-duration: 0.34s; }

@keyframes soundWave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.3);
    }
}

.sound-button.active .wave:nth-child(odd) {
    animation-name: soundWaveStrong;
}

@keyframes soundWaveStrong {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.2);
    }
}

.sound-button:hover .creature {
    transform: scale(1.1);
}

.sound-button:active .creature {
    transform: scale(0.9);
}

.sound-button:not(.active) .waves {
    gap: 0;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    z-index: 3;
}

.small-particle {
    position: absolute;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    z-index: 3;
}

@keyframes particleFade {
    0% {
        transform: translate(0, 0) scale(1.5);
        opacity: 1;
    }
    50% {
        transform: translate(0, 0) scale(0.3);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) scale(0.1);
        opacity: 0;
    }
}

@keyframes smallParticleFade {
    0% {
        transform: translate(0, 0) scale(2);
        opacity: 1;
    }
    50% {
        transform: translate(var(--moveX), var(--moveY)) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--moveX), var(--moveY)) scale(0);
        opacity: 0;
    }
} 