html, body { margin:0; overflow:hidden; background:#000; font-family:'Courier New', monospace; }
#stage { position:fixed; inset:0; }

/* ---- HUD ---- */
#hud { position:fixed; top:12px; left:12px; color:#9f0; font-size:13px; text-shadow:0 0 6px #4f0;
  pointer-events:none; z-index:8; max-width:360px; line-height:1.5; }
.rec { display:inline-block; width:9px; height:9px; background:#f00; border-radius:50%;
  animation:blink 1s infinite; margin-right:5px; box-shadow:0 0 8px #f00; }
@keyframes blink { 50% { opacity:.15; } }

/* SAW countdown clock */
#clock { margin-top:8px; font-size:30px; font-weight:bold; color:#f33; letter-spacing:3px;
  text-shadow:0 0 12px #f00, 0 0 3px #600; font-family:'Courier New',monospace;
  animation:clockpulse 1s infinite; }
@keyframes clockpulse { 50% { opacity:.6; text-shadow:0 0 20px #f00; } }

/* ---- Log ---- */
#log { position:fixed; bottom:12px; left:12px; width:min(38vw,430px); height:36vh; overflow-y:auto;
  background:linear-gradient(180deg, rgba(0,18,0,.9), rgba(0,8,0,.9)); border:1px solid #3a0;
  border-radius:4px; padding:10px; font-size:11.5px; color:#bfb; z-index:8;
  box-shadow:0 0 20px rgba(0,80,0,.3), inset 0 0 40px rgba(0,40,0,.2); }
#log::-webkit-scrollbar { width:5px; }
#log::-webkit-scrollbar-thumb { background:#3a0; }
.t { color:#ffa028; } .h { color:#ee5555; } .j { color:#9f0; }
.log-entry { margin-bottom:5px; animation:fadein .3s; }
@keyframes fadein { from { opacity:0; transform:translateY(5px); } to { opacity:1; } }

/* ---- Control panel ---- */
#panel { position:fixed; top:12px; right:12px; width:262px; background:rgba(2,14,2,.92);
  border:1px solid #3a0; border-radius:4px; padding:14px; color:#9f0; z-index:8; font-size:12px;
  box-shadow:0 0 25px rgba(0,90,0,.25); }
#panel h3 { margin:0 0 8px; font-size:12px; letter-spacing:2px; color:#cf9;
  border-bottom:1px solid #360; padding-bottom:5px; }
#panel h3 i, .hp-label i { font-weight:normal; opacity:.6; letter-spacing:0; font-size:9px; }
button { background:#02180a; font-family:inherit; color:#9f0; border:1px solid #3a0;
  padding:6px 8px; cursor:pointer; margin:3px 0; width:100%; border-radius:3px; font-size:11px; transition:all .15s; }
button:hover { background:#0f3; box-shadow:0 0 10px #3f6; }
button:active { transform:scale(.97); }
input[type=number], input[type=text], input[type=password] { width:100%; background:#010; color:#9f0;
  border:1px solid #3a0; padding:4px 6px; font-family:inherit; border-radius:3px; box-sizing:border-box; font-size:11px; }
.bar { height:12px; background:#0a0a0a; border:1px solid #444; border-radius:2px; overflow:hidden; }
.fill { height:100%; transition:width .4s; }
.hp-label { display:flex; justify-content:space-between; margin:7px 0 3px; font-size:10px; letter-spacing:1px; }
.sect { border-top:1px dashed #360; margin-top:10px; padding-top:9px; }
#voiceStatus { font-size:10px; color:#cf9; margin-top:4px; min-height:13px; }

/* ---- Effects overlays ---- */
#vhs { position:fixed; inset:0; pointer-events:none; z-index:9; opacity:.07;
  background:repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); }
#vignette { position:fixed; inset:0; pointer-events:none; z-index:9;
  background:radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%); }
#flash { position:fixed; inset:0; pointer-events:none; z-index:10; background:#f33; opacity:0; transition:opacity .08s; }

/* ---- Winner overlay ---- */
#winner { position:fixed; inset:0; z-index:20; background:rgba(0,0,0,.88); color:#9f0;
  display:none; align-items:center; justify-content:center; flex-direction:column;
  font-size:26px; text-align:center; text-shadow:0 0 15px #4f0; }
#winner .sub { font-size:15px; color:#cf9; margin-top:8px; }
#winner .ok { font-size:64px; margin-bottom:10px; animation:bounce 1s infinite alternate; }
@keyframes bounce { to { transform:scale(1.15); } }
