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

body {
    font-family: 'Arial', sans-serif;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1e 50%, #000000 100%);
    color: #d4af37;
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
    animation: ambientPulse 8s ease-in-out infinite;
    z-index: -1;
}

.fire-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.fire-particles::before,
.fire-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ff4500 0%, #ff8c00 50%, transparent 100%);
    border-radius: 50%;
    animation: floatingEmbers 12s linear infinite;
}

.fire-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.fire-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 6s;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes floatingEmbers {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
}

.title {
    text-align: center;
    margin-bottom: 40px;
    z-index: 2;
}

.title h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #d4af37, #ffd700, #d4af37);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

.title p {
    font-size: 1.2rem;
    opacity: 0.8;
    font-style: italic;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.drum-circle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    perspective: 1000px;
}

.drum {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.drum:hover {
    transform: translateY(-10px) rotateX(15deg);
}

.drum-surface {
    position: relative;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #8b4513 0%, #654321 40%, #2f1b14 100%);
    border: 4px solid #d4af37;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 -5px 15px rgba(0, 0, 0, 0.6),
        inset 0 5px 15px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.large-drum .drum-surface {
    width: 120px;
    height: 120px;
}

.medium-drum .drum-surface {
    width: 100px;
    height: 100px;
}

.small-drum .drum-surface {
    width: 80px;
    height: 80px;
}

.drum-surface:active {
    transform: scale(0.95);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.8),
        inset 0 -2px 8px rgba(0, 0, 0, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.1);
}

.drum-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.drum-ripple.active {
    animation: rippleEffect 0.8s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.drum-label {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.individual-volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    min-width: 80px;
}

.drum-volume {
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 5px;
}

.drum-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.drum-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.volume-value {
    font-size: 0.7rem;
    color: #d4af37;
    opacity: 0.8;
    min-width: 20px;
    text-align: center;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #d4af37, #b8941f);
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.control-btn:active {
    transform: translateY(0);
}

.rhythm-visualizer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.beat-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
    transition: all 0.2s ease;
}

.beat-indicator.active {
    background: #d4af37;
    box-shadow: 0 0 20px #d4af37;
    transform: scale(1.3);
}

.variation-selector {
    margin-top: 8px;
    margin-bottom: 5px;
}

.variation-select {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #d4af37;
    border-radius: 4px;
    color: #d4af37;
    font-size: 0.7rem;
    padding: 4px 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-select:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #ffd700;
}

.variation-select option {
    background: #1a1a2e;
    color: #d4af37;
}

.author-credit {
    font-size: 0.9rem !important;
    opacity: 0.6 !important;
    font-style: normal !important;
    margin-top: 8px;
}

.author-credit a {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.author-credit a:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 2rem;
    }
    
    .drum-circle {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .large-drum .drum-surface {
        width: 100px;
        height: 100px;
    }
    
    .medium-drum .drum-surface {
        width: 80px;
        height: 80px;
    }
    
    .small-drum .drum-surface {
        width: 60px;
        height: 60px;
    }
    
    .individual-volume-control {
        margin-top: 8px;
    }
    
    .drum-volume {
        width: 50px;
    }
    
    .variation-select {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}