body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: #111;
    color: #fff;
}

h1 {
    margin-top: 40px;
}

#counter {
    font-size: 4rem;
    margin: 20px;
}

#totalClicksDisplay {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ccc;
}

/* 3D button effect */
.btn3d {
    padding: 15px 30px;
    font-size: 1.2rem;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background: #4CAF50;
    color: white;
    box-shadow: 0px 6px 0px #2e7031;
    transition: all 0.1s ease;
}

.btn3d:active {
    box-shadow: 0px 2px 0px #2e7031;
    transform: translateY(4px);
}

/* Floating +1 particles */
.float {
    position: absolute;
    color: #0f0;
    font-size: 20px;
    animation: rise 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes rise {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-40px); }
}

/* Crit text */
.crit {
    position: absolute;
    color: #ff3333;
    font-size: 32px;
    font-weight: bold;
    animation: rise 1s ease-out forwards;
    pointer-events: none;
}

/* Explosion particles */
.explosion {
    position: absolute;
    pointer-events: none;
    font-size: 18px;
    color: #0f0;
    opacity: 1;
    animation: explode 0.6s ease-out forwards;
}

.explosion.critParticle {
    color: #ff3333;
    font-size: 26px;
}

@keyframes explode {
    from { transform: translate(0, 0) scale(1); opacity: 1; }
    to { transform: translate(var(--dx), var(--dy)) scale(0.5); opacity: 0; }
}

/* Confetti */
.confetti {
    position: absolute;
    pointer-events: none;
    width: 10px;
    height: 10px;
    opacity: 1;
    animation: confettiFall 1s ease-out forwards;
}

@keyframes confettiFall {
    from { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    to { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; }
}

/* Audio controls */
.audio-controls {
    margin-top: 40px;
}

#volumeSlider {
    width: 200px;
    margin-left: 10px;
}
