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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Google Sans Flex', sans-serif;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#ui {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#nameInput {
    width: 200px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 15px;
    font-weight: 100;
    text-align: center;
    outline: none;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

#nameInput:focus {
    border-color: rgba(100, 180, 255, 0.5);
}

#nameInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.controls-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

select, button {
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 11px;
    font-weight: 100;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

select:hover, button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

select option {
    background: #1a1a2e;
    color: #fff;
}

#countSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#countSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #88aaff;
    border-radius: 50%;
    cursor: pointer;
}

#countSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #88aaff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#credits {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

#credits a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    font-style: italic;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 12px;
    font-weight: 100;
    transition: color 0.3s;
}

#credits a:hover {
    color: rgba(255, 255, 255, 0.9);
}
