body {
    margin: 0;
    overflow: hidden;
    background: #000;
    font-family: 'Courier New', monospace;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

canvas {
    display: block;
    touch-action: none;
    width: 100vw;
    height: 100vh;
}

/* Camera switch button - small rectangular button */
#camera-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid #666;
    color: #ccc;
    padding: 6px 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

#camera-switch:hover {
    background: rgba(60, 60, 60, 0.95);
    border-color: #888;
}

#camera-switch:active {
    background: rgba(30, 30, 30, 0.95);
}

#controls {
    position: fixed;
    top: 12px;
    left: 12px;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid #666;
    color: #ccc;
    font-size: 11px;
    user-select: none;
    z-index: 1000;
    max-height: calc(100vh - 24px);
    overflow: hidden;
}

#controls-header {
    padding: 6px 8px;
    background: #2a2a2a;
    border-bottom: 1px solid #666;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#controls-header:hover {
    background: #333;
}

#controls-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#controls.minimized #controls-body {
    display: none;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.control-label {
    color: #999;
    font-size: 10px;
    min-width: 130px;
}

.control-label.category {
    font-weight: bold;
}

.control-value {
    color: #fff;
    min-width: 45px;
    text-align: right;
}

input[type="range"] {
    width: 120px;
    height: 3px;
    background: #555;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #ccc;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #ccc;
    cursor: pointer;
    border: none;
}

button {
    background: #555;
    border: 1px solid #777;
    color: #ccc;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    min-width: 60px;
}

button:hover {
    background: #666;
    color: #fff;
}

button:active {
    background: #444;
}

button.active {
    background: #777;
    color: #fff;
}

.toggle-indicator {
    color: #666;
    font-size: 10px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    #camera-switch {
        bottom: 16px;
        right: 16px;
        padding: 8px 12px;
        font-size: 11px;
    }

    #controls {
        top: 8px;
        left: 8px;
        right: 8px;
        max-width: calc(100vw - 16px);
        font-size: 14px;
    }

    #controls-header {
        padding: 12px 14px;
        font-size: 14px;
    }

    #controls-body {
        padding: 12px;
        gap: 10px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .control-row {
        gap: 10px;
        flex-wrap: wrap;
    }

    .control-label {
        font-size: 13px;
        min-width: 100%;
        margin-bottom: 4px;
    }

    .control-label.category {
        font-size: 14px;
    }

    .control-value {
        font-size: 14px;
        min-width: 50px;
    }

    input[type="range"] {
        width: 100%;
        height: 6px;
        min-width: 200px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }

    button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 80px;
        min-height: 44px;
    }

    .toggle-indicator {
        font-size: 14px;
    }
}
