.wave-drawing-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drawing-area {
    position: relative;
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 12px;
    cursor: crosshair;
    touch-action: none;
}

.drawing-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(6, 182, 212, 0.12);
    pointer-events: none;
}

.drawing-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    text-align: center;
    line-height: 1.6;
}

.drawing-hint.hidden {
    display: none;
}

.keyboard-area {
    display: flex;
    gap: 3px;
    margin-top: 16px;
    padding: 0 20px;
}

.key-btn {
    padding: 10px 0;
    min-width: 40px;
    border-radius: 6px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    background: rgba(6, 182, 212, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.12s;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.key-btn:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.key-btn:active,
.key-btn.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.6);
    color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.key-btn.sharp {
    background: rgba(6, 182, 212, 0.02);
    min-width: 32px;
    font-size: 9px;
}

.control-panel {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(10, 10, 15, 0.94);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    z-index: 10;
    max-width: 96vw;
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
}

.panel-row + .panel-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.section-value {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(6, 182, 212, 0.7);
    min-width: 32px;
}

input[type="range"] {
    width: 72px;
    height: 3px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--toy-accent, #06b6d4);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--toy-accent, #06b6d4);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.3);
}

.action-btn {
    padding: 5px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.action-btn:hover {
    border-color: rgba(6, 182, 212, 0.4);
    color: white;
}

.action-btn.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--toy-accent, #06b6d4);
}

.preset-btn {
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-btn:hover {
    border-color: var(--toy-accent, #06b6d4);
    color: rgba(255, 255, 255, 0.8);
}

.preset-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--toy-accent, #06b6d4);
    color: var(--toy-accent, #06b6d4);
}

.playback-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .control-panel {
        bottom: 8px;
        left: 8px;
        right: 8px;
        transform: none;
    }

    .panel-row {
        flex-wrap: wrap;
        padding: 6px 10px;
        gap: 4px 8px;
    }

    .keyboard-area {
        padding: 0 8px;
    }

    .key-btn {
        min-width: 28px;
        padding: 8px 0;
        font-size: 9px;
    }

    .key-btn.sharp {
        min-width: 24px;
    }
}
