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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at bottom, #1e1e36 0%, #080811 100%);
    font-family: 'Inter', sans-serif;
    touch-action: none; /* Prevent scroll on drag */
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.settings-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    touch-action: auto;
    pointer-events: auto;
}

.settings-panel.collapsed {
    height: 48px;
    width: 48px;
}

.settings-panel.collapsed .settings-header {
    justify-content: center;
    padding: 14px;
}

.settings-panel.collapsed .settings-content {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.settings-panel:not(.collapsed) {
    height: 370px; /* Approximate height for content */
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.2);
}

.settings-header svg.settings-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.settings-header .toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.settings-panel.collapsed .toggle-icon {
    display: none;
}

.settings-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-row label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
}

.setting-row span {
    color: white;
    font-weight: 500;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}
