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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a0f;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    font-family: 'Courier New', monospace;
    color: #c8ffc8;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(200, 255, 200, 0.15);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    user-select: none;
    line-height: 1.6;
    text-shadow: 0 0 8px rgba(200, 255, 200, 0.3);
}

#ui-overlay .key {
    display: inline-block;
    background: rgba(200, 255, 200, 0.12);
    border: 1px solid rgba(200, 255, 200, 0.25);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    margin: 0 2px;
}

#camera-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    font-family: 'Courier New', monospace;
    color: #c8ffc8;
    background: rgba(10, 10, 20, 0.75);
    border: 1px solid rgba(200, 255, 200, 0.25);
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 280px;
    user-select: none;
}

#camera-panel h3 {
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(200, 255, 200, 0.2);
    padding-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-group {
    margin-bottom: 12px;
}

.control-group label {
    display: block;
    margin-bottom: 4px;
    opacity: 0.8;
    font-size: 11px;
}

.control-group select,
.control-group input[type="range"] {
    width: 100%;
    background: rgba(200, 255, 200, 0.1);
    border: 1px solid rgba(200, 255, 200, 0.3);
    color: #c8ffc8;
    border-radius: 4px;
    padding: 6px;
    font-family: inherit;
    outline: none;
}

.control-group select option {
    background: #1a1a2e;
    color: #c8ffc8;
}

.control-group input[type="range"] {
    height: 6px;
    background: rgba(200, 255, 200, 0.15);
    border: none;
    border-radius: 3px;
    margin-top: 6px;
    padding: 0;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #5cf0a0;
    cursor: pointer;
    box-shadow: 0 0 6px #5cf0a0;
}

.control-value {
    float: right;
    font-weight: bold;
    color: #5cf0a0;
}