:root {
    --bg-color: #0d0f12;
    --text-color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, #1a1e24 0%, #0d0f12 100%);
}

.header {
    text-align: center;
    margin-bottom: 50px;
    z-index: 10;
}

.header h1 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(90deg, #ff3333, #ffe633, #33ffc2, #c233ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.header p {
    font-size: 1.1rem;
    color: #8a96a3;
    margin-top: 10px;
}

.container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    height: 450px;
    padding: 0 40px;
}

.boomwhacker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.note-label {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.note-label .note {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.note-label .key {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ccc;
    background: #333;
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 5px;
    display: inline-block;
    box-shadow: inset 0 -2px 0 #111;
}

.tube {
    width: 45px;
    border-radius: 0 0 25px 25px; /* Flat top, rounded bottom */
    cursor: pointer;
    position: relative;
    box-shadow: 
        inset -8px 0 15px rgba(0,0,0,0.5), 
        inset 5px 0 15px rgba(255,255,255,0.4),
        0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s ease, filter 0.1s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

/* Hollow Top Opening */
.tube::before {
    content: '';
    position: absolute;
    top: -10px; /* Position above the flat top */
    left: 0;
    width: 100%;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Dark inside */
    border-radius: 50%; /* Oval shape */
    box-shadow: 
        inset 0 -5px 10px var(--color), /* Reflection of inside walls */
        inset 0 10px 10px rgba(0,0,0,0.8), /* Deep shadow */
        0 -1px 2px rgba(255, 255, 255, 0.3); /* Top rim highlight */
    pointer-events: none;
    z-index: 2;
}

/* Simulate plastic shine on the body */
.tube::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 15%;
    width: 15%;
    height: 95%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

.tube-text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    color: rgba(0,0,0,0.3);
    font-weight: 800;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 1px;
    z-index: 1;
}

/* Active State */
.boomwhacker-wrapper.active .tube {
    transform: scale(1.05) translateY(-5px);
    filter: brightness(1.3);
}

.boomwhacker-wrapper.active .note-label {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.boomwhacker-wrapper.active .note-label .key {
    background: var(--color);
    color: #000;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}
