body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    color: black;
    height: 100vh;
    overflow: hidden;
}

.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 220px;
    border: 1px solid black;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.controls-header h2 {
    margin: 0;
    font-size: 1.05em;
}

#toggleBtn {
    background: none;
    border: 1px solid black;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#toggleBtn:hover { background: #f0f0f0; }

.controls-content {
    padding: 0 12px 12px 12px;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.controls.collapsed .controls-content { max-height: 0; padding: 0 12px; }

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

label { display: block; font-size: 0.82em; margin-bottom: 4px; }

button.small {
    padding: 6px 8px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
}

.main-content { position: relative; width: 100vw; height: 100vh; }

h1 {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.2em;
    z-index: 50;
}

#canvas-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
