body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

#kaleidoscope {
    display: block;
    cursor: crosshair;
}

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    user-select: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

#ui:hover {
    opacity: 1;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

input[type="range"] {
    width: 150px;
    cursor: pointer;
}

button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s, border 0.2s;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hint {
    font-size: 11px;
    opacity: 0.5;
    font-style: italic;
    text-align: center;
}