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

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', cursive, sans-serif;
    background: #FFE4A1;
    background-image: 
        linear-gradient(45deg, transparent 48%, #FFDB88 48%, #FFDB88 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, #FFDB88 48%, #FFDB88 52%, transparent 52%);
    background-size: 50px 50px, 50px 50px;
    background-position: 0 0, 25px 25px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.container {
    width: calc(100% - 20px);
    max-width: 600px;
    background: linear-gradient(135deg, #FFE8CC 0%, #FFF5E6 50%, #FFEDDB 100%);
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: 
        0 0 0 8px #FF6B6B,
        0 0 0 16px #4ECDC4,
        0 0 0 24px #FFD93D,
        0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 10px auto 60px auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 200px;
    max-width: 80%;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(4px 4px 0px #FFD93D) drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

h1 {
    color: #FF6B6B;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        3px 3px 0px #FFD93D,
        -1px -1px 0px #4ECDC4,
        2px 2px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    margin-top: 10px;
}

.soundboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 15px;
}

.sound-btn {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid #333;
    border-radius: 20px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        6px 6px 0px #333,
        6px 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    transform: rotate(-1deg);
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.sound-btn:nth-child(even) {
    transform: rotate(1deg);
}

.sound-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    z-index: 0;
}

.sound-btn:active::before {
    background: rgba(0, 0, 0, 0.3);
}

.sound-btn:active {
    transform: scale(0.95) rotate(0deg);
    box-shadow: 
        2px 2px 0px #333,
        2px 2px 10px rgba(0, 0, 0, 0.15);
}

.sound-btn.playing {
    animation: pulse 0.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1) rotate(-1deg);
    }
    25% {
        transform: scale(1.05) rotate(1deg);
    }
    50% {
        transform: scale(1.08) rotate(-1deg);
    }
    75% {
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        transform: scale(1) rotate(-1deg);
    }
}

.sound-btn:nth-child(even).playing {
    animation: pulse-reverse 0.8s infinite;
}

@keyframes pulse-reverse {
    0% {
        transform: scale(1) rotate(1deg);
    }
    25% {
        transform: scale(1.05) rotate(-1deg);
    }
    50% {
        transform: scale(1.08) rotate(1deg);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(1deg);
    }
}


.btn-label {
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 0px #333,
        3px 3px 0px #FF6B6B;
    z-index: 1;
    position: relative;
    padding: 8px 14px;
    background: linear-gradient(135deg, #FFD93D, #FFA500);
    border: 3px solid #333;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transform: rotate(-3deg);
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .soundboard {
        gap: 15px;
    }
    
    .sound-btn {
        min-height: 120px;
    }
    
}

@media (hover: hover) {
    .sound-btn:hover {
        transform: scale(1.02) rotate(-2deg);
        box-shadow: 
            8px 8px 0px #333,
            8px 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .sound-btn:nth-child(even):hover {
        transform: scale(1.02) rotate(2deg);
    }
    
    .sound-btn:hover::before {
        background: rgba(255, 255, 255, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sound-btn,
    .sound-btn::before {
        transition: none;
    }
    
    .sound-btn.playing {
        animation: none;
    }
}

.disclaimer {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: rgba(51, 51, 51, 0.5);
    text-align: center;
    padding: 3px 8px;
    background: rgba(255, 228, 161, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    max-width: 90%;
    z-index: 10;
}