* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: manipulation;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.swipe-guard {
    position: fixed;
    top: 0; left: 0;
    width: 30px;
    height: 100%;
    z-index: 9999;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100%;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.back-btn, .fullscreen-btn {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    flex: 1;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    gap: 10px;
    overflow: hidden;
}

.xylophone {
    flex: 1;
    display: flex;
    gap: 6px;
    padding: 8px;
    align-items: stretch;
    min-height: 0;
}

.bar {
    flex: 1;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
    user-select: none;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.3);
    min-width: 44px;
    min-height: 44px;
}

.bar:active, .bar.active {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.4);
    filter: brightness(1.2);
}

.bar.pulse {
    animation: barPulse 0.3s ease;
}

@keyframes barPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.drums-section {
    flex-shrink: 0;
}

.drums-label {
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.drums {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 8px 0;
}

.drum {
    font-size: 48px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(3px);
    cursor: pointer;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    user-select: none;
}

.drum:active {
    transform: scale(0.9);
}

.drum.active {
    animation: drumHit 0.2s ease;
}

@keyframes drumHit {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.floating-notes {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.note-particle {
    position: absolute;
    font-size: 28px;
    animation: floatNote 3s ease-out forwards;
    pointer-events: none;
}

@keyframes floatNote {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-120px) scale(0.5); opacity: 0; }
}

/* Background floating notes */
.bg-note {
    position: fixed;
    font-size: 24px;
    opacity: 0.15;
    animation: driftNote 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes driftNote {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0.15; }
    50% { opacity: 0.2; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}