:root {
    --primary-bg: #000510;
    --neon-purple: #8800ff;
    --glass-bg: rgba(255,255,255, 0.03);
    --text-glow: 0 0 10px rgba(136, 0, 255, 0.6);
}

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

body {
    background: var(--primary-bg);
    color: rgba(255,255,255, 0.9);
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* 3D 层置底 */
#webgl-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; }

/* 危机脉冲层 (去 HUD) */
#vignette-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 5;
    box-shadow: inset 0 0 0px rgba(255, 0, 0, 0);
    transition: box-shadow 0.8s ease-out;
}

#ui-root { position: fixed; z-index: 10; width: 100%; height: 100%; pointer-events: none; }

/* 极简玻璃态按钮 */
.glass-button {
    pointer-events: auto; cursor: pointer; padding: 10px 20px;
    background: transparent; border: none; color: rgba(255,255,255, 0.6);
    letter-spacing: 2px; transition: all 0.3s;
}
.glass-button:hover { color: #fff; text-shadow: var(--text-glow); }

/* 毛玻璃悬浮舱 */
.glass-panel {
    pointer-events: auto; position: absolute; left: 40px; bottom: 40px;
    width: 320px; padding: 25px; border-radius: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 隐形输入框 */
.glass-input {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #00f2ff; font-family: inherit; padding: 8px 0; outline: none;
}
.glass-input:focus { border-bottom-color: var(--neon-purple); }

/* 悬浮感官日志 */
#sensory-log {
    position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
    color: #8800ff; text-shadow: var(--text-glow); letter-spacing: 3px;
    font-size: 14px; pointer-events: none; transition: opacity 1s ease-in-out;
}

/* 纯净开场 - 极简叙事层 */
#landing-overlay {
    position: fixed; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: #000;
    z-index: 100; transition: opacity 2s ease;
}

.consciousness-ring {
    width: 180px; height: 180px; border: 1px solid var(--neon-purple);
    border-radius: 50%; filter: blur(3px);
    box-shadow: 0 0 40px var(--neon-purple), inset 0 0 40px var(--neon-purple);
    animation: breathe 4s infinite ease-in-out, pulse-glow 3s infinite ease-in-out;
    margin-bottom: 60px; position: relative;
}

.consciousness-ring::before {
    content: ''; position: absolute; width: 60%; height: 60%;
    border-radius: 50%; background: radial-gradient(circle, rgba(136, 0, 255, 0.3) 0%, transparent 70%);
    animation: pulse-core 2s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px var(--neon-purple), inset 0 0 40px var(--neon-purple); }
    50% { box-shadow: 0 0 80px var(--neon-purple), inset 0 0 60px var(--neon-purple); }
}

@keyframes pulse-core {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.0); opacity: 0.8; }
}

.sync-prompt {
    display: flex; flex-direction: column; align-items: center; gap: 30px;
}

#project-title {
    font-family: 'Space Mono', monospace; font-weight: 100;
    font-size: 14px; letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* 起源选择界面 */
#origin-selector {
    position: fixed; bottom: 20%; left: 50%;
    transform: translateX(-50%); z-index: 200;
    display: flex; gap: 15px;
}

/* 变异控制台 */
#mutation-console {
    display: flex; flex-direction: column; gap: 20px;
}

.input-group {
    display: flex; flex-direction: column; gap: 8px;
}

.neon-text {
    color: var(--neon-purple);
    text-shadow: var(--text-glow);
    font-size: 18px; font-weight: 600; letter-spacing: 2px;
}
