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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Discrete branding area - bottom right */
#branding-area {
    position: fixed;
    bottom: 20px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

#branding {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Subtle joystick indicator */
#joystick {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    position: relative;
    opacity: 0.4;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

#joystick:hover,
#joystick.active {
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.3);
}

#joystick-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease;
}

#joystick.active #joystick-dot {
    background: rgba(255, 255, 255, 0.8);
}

/* Control sliders - bottom left */
#controls {
    position: fixed;
    bottom: 20px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

#controls:hover {
    opacity: 0.9;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-group label {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.15rem;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.6);
    width: 45px;
    text-align: right;
}

.control-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    outline: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading span {
    font-size: 0.85rem;
    letter-spacing: 0.3rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: lowercase;
}

.loader {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(150, 180, 255, 0.6);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Soft dreamy vignette with subtle color tint */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(5, 5, 20, 0.25) 100%
    );
    pointer-events: none;
    z-index: 50;
}
