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

body {
    overflow: hidden;
    background: #0a0a0a;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #ccc;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#hud {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

#hud > * {
    pointer-events: auto;
}

#status {
    font-size: 13px;
    color: #888;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

#gesture-info {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    transition: color 0.15s;
}

#gesture-info.active {
    color: #ff4488;
}

#controls {
    display: flex;
    gap: 4px;
}

#controls button {
    font-family: inherit;
    font-size: 12px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

#controls button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ccc;
}

#controls button.active {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
}

#controls button.toggle {
    margin-left: 8px;
    border-style: dashed;
}

#controls button.toggle.active {
    background: rgba(68, 136, 255, 0.15);
    color: #4488ff;
    border-color: rgba(68, 136, 255, 0.3);
    border-style: solid;
}

#help {
    font-size: 11px;
    color: #555;
    padding: 4px;
    line-height: 1.5;
}

#tuning-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

#tuning-panel .panel-header {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

#tuning-panel label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#tuning-panel label span {
    font-size: 11px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

#tuning-panel .val {
    color: #00ff88;
    font-weight: bold;
}

#tuning-panel input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#tuning-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
}

#tuning-panel input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
