body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
    z-index: 1;
}

#sidebar-toggle {
    position: absolute;
    top: 15px;
    left: 235px; /* sidebar width + padding */
    z-index: 20;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 20px;
    transition: left 0.3s ease-in-out;
}

#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: transform 0.3s ease-in-out;
}

#sidebar.hidden {
    transform: translateX(-100%);
}

#sidebar h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

#sidebar p {
    margin-top: 0;
}

#target-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.control-btn {
    width: 100%;
    padding: 6px 10px;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s, border-color 0.2s;
}

.control-btn:hover {
    background: #444;
}

.control-btn.active {
    background: #007bff;
    border-color: #007bff;
}

.instructions {
    margin-top: auto;
    font-size: 0.8em;
    color: #aaa;
    border-top: 1px solid #555;
    padding-top: 10px;
}

.instructions p {
    margin: 4px 0;
}