:root {
    --accent: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.5);
    --bg: #050505;
    --font-ui: 'Courier New', Courier, monospace;
    --font-head: 'Helvetica Neue', sans-serif;
}

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

body {
    background: var(--bg);
    color: white;
    font-family: var(--font-head);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

#webcam { display: none; }

/* --- HUD & UI --- */
#hud {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none; /* Let touches pass through */
    padding: 20px;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 1px;
}

.hud-panel { position: absolute; }
.top-left { top: 20px; left: 20px; }
.bottom-left { bottom: 30px; left: 20px; }
.bottom-right { bottom: 30px; right: 20px; text-align: right; }

.stat-row { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.label { color: #888; font-weight: bold; }
.value { color: var(--accent); font-weight: bold; transition: color 0.3s; }
.glow-text { text-shadow: 0 0 8px var(--accent-glow); }
.action-text { color: #fff; background: rgba(0, 255, 204, 0.2); padding: 2px 6px; border-radius: 4px; }

.stat-block { margin-top: 15px; width: 140px; }
.meter {
    height: 4px;
    background: #333;
    margin-top: 6px;
    border-radius: 2px;
    overflow: hidden;
}
.meter div {
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.1s linear, background 0.3s;
}

.dev-credit { 
    position: absolute; top: 20px; right: 20px; 
    opacity: 0.4; font-size: 10px; 
}

/* --- LOADER --- */
#loader {
    position: absolute; z-index: 100;
    background: #000; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease;
}
.loader-content { text-align: center; width: 80%; max-width: 400px; }
h1 { font-weight: 200; letter-spacing: 8px; margin-bottom: 15px; font-size: 24px; }
p { color: #666; font-size: 11px; margin-bottom: 25px; font-family: var(--font-ui); }
.privacy-text { color: #ffaa00; margin-bottom: 15px; }

.bar-container {
    width: 100%; height: 2px; background: #333; margin: 0 auto;
    overflow: hidden;
}
.bar {
    width: 100%; height: 100%; background: var(--accent);
    transform: translateX(-100%);
    animation: load 2s ease forwards;
}
@keyframes load { 100% { transform: translateX(0); } }

button {
    background: transparent; border: 1px solid var(--accent);
    color: var(--accent); padding: 12px 35px;
    font-family: var(--font-ui); cursor: pointer;
    font-weight: bold; letter-spacing: 2px;
    transition: all 0.3s; pointer-events: auto;
}
button:hover { background: var(--accent); color: #000; box-shadow: 0 0 25px var(--accent-glow); }
.hidden { display: none; }
.visible { display: block; animation: fadeIn 0.5s; }
.fade-out { opacity: 0; pointer-events: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }