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

body {
    background: #000;
    overflow: hidden;
    font-family: 'IBM Plex Mono', monospace;
    color: #fff;
    cursor: crosshair;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#scene-container canvas {
    display: block;
}

#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#hud-title {
    position: absolute;
    top: 28px;
    left: 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-text {
    font-size: 28px;
    font-weight: 200;
    letter-spacing: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 30px rgba(255, 120, 40, 0.4), 0 0 60px rgba(255, 80, 20, 0.15);
}

.title-sub {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.3);
}

#hud-info {
    position: absolute;
    bottom: 32px;
    left: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

.info-row {
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.info-label {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.25);
    min-width: 70px;
}

.info-value {
    font-size: 13px;
    font-weight: 200;
    color: rgba(255, 180, 100, 0.7);
    letter-spacing: 1px;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.slider-group label {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.25);
    min-width: 40px;
}

.slider-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 2px;
    background: rgba(255, 140, 60, 0.2);
    outline: none;
    border-radius: 1px;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 140, 60, 0.6);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 100, 30, 0.5);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 140, 60, 0.6);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(255, 100, 30, 0.5);
}

.slider-val {
    font-size: 10px;
    font-weight: 300;
    color: rgba(255, 180, 100, 0.55);
    min-width: 32px;
    text-align: right;
    letter-spacing: 0.5px;
}

.slider-divider {
    height: 1px;
    background: rgba(255, 140, 60, 0.1);
    margin: 8px 0 4px 0;
    width: 170px;
}

#hud-controls {
    position: absolute;
    bottom: 32px;
    right: 32px;
    text-align: right;
}

#hud-controls span {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.2);
}

#hud-sound {
    position: absolute;
    top: 28px;
    right: 32px;
    pointer-events: auto;
}

#sound-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.35);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 2px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

#sound-toggle:hover {
    border-color: rgba(255, 140, 60, 0.3);
    color: rgba(255, 180, 100, 0.6);
}

#sound-toggle.active {
    border-color: rgba(255, 140, 60, 0.4);
    color: rgba(255, 180, 100, 0.7);
    box-shadow: 0 0 15px rgba(255, 100, 30, 0.15);
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 2s ease;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-text {
    font-size: 11px;
    font-weight: 200;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.4);
    animation: pulse-intro 2s ease-in-out infinite;
}

@keyframes pulse-intro {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

#footer-link {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer-link:hover {
    color: rgba(255, 140, 60, 0.4);
}

@media (max-width: 600px) {
    .title-text {
        font-size: 18px;
        letter-spacing: 8px;
    }
    .title-sub {
        font-size: 8px;
    }
    #hud-title { top: 16px; left: 16px; }
    #hud-info { bottom: 16px; left: 16px; }
    #hud-controls { bottom: 16px; right: 16px; }
    #hud-controls span { font-size: 7px; }
    #hud-sound { top: 16px; right: 16px; }
    .slider-group input[type="range"] { width: 80px; }
}