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

body {
    overflow: hidden;
    background: #0a0a1a;
    font-family: 'JetBrains Mono', monospace;
}

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

/* CRT 扫描线 */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 10;
}

/* 底部控制栏 */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 28px;
    background: rgba(10, 10, 26, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(5, 217, 232, 0.2);
    border-radius: 16px;
    z-index: 20;
    box-shadow: 0 0 30px rgba(5, 217, 232, 0.1),
                inset 0 0 30px rgba(5, 217, 232, 0.02);
}

.ctrl-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 42, 109, 0.15);
    border: 1px solid rgba(255, 42, 109, 0.5);
    border-radius: 8px;
    color: #ff2a6d;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.ctrl-btn:hover {
    background: rgba(255, 42, 109, 0.3);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.4);
}

.ctrl-btn .btn-icon {
    font-size: 16px;
}

.ctrl-slider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrl-slider label {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: rgba(5, 217, 232, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ctrl-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(5, 217, 232, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.ctrl-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #05d9e8;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(5, 217, 232, 0.6);
    cursor: pointer;
}

.ctrl-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #05d9e8;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(5, 217, 232, 0.6);
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 640px) {
    .controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px 16px;
        bottom: 12px;
        left: 12px;
        right: 12px;
        transform: none;
    }
}
