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

/* ---- 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 42%, rgba(0,0,0,.8) 100%); }
#flash { position:fixed; inset:0; pointer-events:none; z-index:30; background:#f33; opacity:0; transition:opacity .08s; }

/* ---- fight HUD ---- */
#fightbar { position:fixed; top:0; left:0; right:0; z-index:12; display:flex; align-items:flex-start;
  justify-content:space-between; gap:16px; padding:12px 18px; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,.7), transparent); }
#fightbar .side { flex:1; max-width:44vw; }
#fightbar .side.right { text-align:right; }
#fightbar .name { font-size:15px; font-weight:bold; letter-spacing:2px; color:#fff; text-shadow:0 0 8px #000; }
#fightbar .sub { font-size:11px; color:#aab; }
#fightbar .bar.big { height:20px; background:#160b0b; border:2px solid #400; border-radius:3px; overflow:hidden; margin-top:3px;
  box-shadow:0 0 14px rgba(120,0,0,.5); }
#fightbar .fill { height:100%; transition:width .25s ease; }
#fightbar .side.right .bar.big { transform:scaleX(-1); } /* mirror so it drains toward center */
#fightbar .side.right .bar.big .fill { transition:width .25s ease; }
#fightbar .mid { width:90px; text-align:center; }
#roundClock { font-size:30px; font-weight:bold; color:#f33; letter-spacing:2px; text-shadow:0 0 14px #f00;
  animation:clockpulse 1s infinite; }
@keyframes clockpulse { 50% { opacity:.6; } }
#comboTag { font-size:13px; color:#ffd34d; height:16px; font-weight:bold; text-shadow:0 0 10px #fa0; }

/* ---- live feed tag ---- */
#hud { position:fixed; top:88px; left:16px; color:#9f0; font-size:11px; text-shadow:0 0 6px #4f0;
  pointer-events:none; z-index:11; line-height:1.5; max-width:300px; }
.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; } }
.j { color:#9f0; }

/* ---- character select ---- */
#select { position:fixed; inset:0; z-index:25; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:18px; background:radial-gradient(ellipse at center,#1a0206,#000 80%); text-align:center; }
#select h1 { color:#f33; font-size:44px; margin:0; letter-spacing:6px; text-shadow:0 0 30px #f00; }
#select .tag { color:#d9a; font-family:Georgia,serif; font-style:italic; margin:0; }
#select .fighters { display:flex; gap:30px; margin-top:10px; }
#select .fighter { width:240px; padding:22px 16px; background:rgba(30,4,6,.9); border:2px solid #500;
  border-radius:12px; cursor:pointer; color:#fff; display:flex; flex-direction:column; gap:6px;
  transition:transform .15s, box-shadow .15s, border-color .15s; font-family:inherit; }
#select .fighter:hover { transform:translateY(-8px) scale(1.04); border-color:#f33; box-shadow:0 0 40px rgba(255,40,40,.6); }
#select .fighter .emoji { font-size:56px; }
#select .fighter b { font-size:24px; letter-spacing:3px; }
#select .fighter i { font-size:12px; color:#e88; }
#select .fighter .tagline { font-size:11px; color:#b99; font-family:Georgia,serif; font-style:italic; margin-top:6px; }
#select .vs { position:absolute; color:#f33; font-size:40px; font-weight:bold; pointer-events:none;
  text-shadow:0 0 20px #f00; animation:clockpulse 1.4s infinite; }

/* ---- move bar ---- */
#moves { position:fixed; bottom:0; left:0; right:0; z-index:12; display:flex; gap:9px; padding:12px 16px;
  justify-content:center; flex-wrap:wrap; background:linear-gradient(0deg, rgba(0,0,0,.82), transparent); }
.move { position:relative; width:150px; min-height:70px; padding:8px 10px; border-radius:8px; cursor:pointer;
  background:linear-gradient(160deg,#2a0308,#120003); border:1px solid #600; color:#fdd; text-align:left;
  font-family:inherit; overflow:hidden; transition:transform .08s, box-shadow .12s, border-color .12s; }
.move:hover { border-color:#f33; box-shadow:0 0 18px rgba(255,40,40,.5); }
.move:active { transform:scale(.96); }
.move .mname { font-size:12.5px; font-weight:bold; color:#fff; line-height:1.2; }
.move .mdesc { font-size:9.5px; color:#c99; margin-top:4px; line-height:1.25; }
.move .cd { position:absolute; inset:0; background:rgba(0,0,0,.65); display:flex; align-items:center;
  justify-content:center; font-size:20px; color:#f33; font-weight:bold; }
.move.ready { border-color:#a00; }
.move .key { position:absolute; top:4px; right:6px; font-size:9px; color:#a77; }
.move.heavy { border-color:#a33; background:linear-gradient(160deg,#3a0410,#16000a); }
.move.super { border-color:#ff0; background:linear-gradient(160deg,#3a2a00,#160a00); }
.move.super .mname { color:#ffd; }

/* ---- log ---- */
#log { position:fixed; bottom:96px; left:12px; width:min(36vw,400px); height:26vh; overflow-y:auto;
  background:linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.5)); border:1px solid #300;
  border-radius:4px; padding:8px 10px; font-size:11px; color:#caa; z-index:10; }
#log::-webkit-scrollbar { width:5px; } #log::-webkit-scrollbar-thumb { background:#600; }
.t { color:#ffa028; } .h { color:#ee5555; } .j { color:#9f0; }
.log-entry { margin-bottom:4px; animation:fadein .3s; }
@keyframes fadein { from { opacity:0; transform:translateY(5px); } to { opacity:1; } }

/* ---- winner ---- */
#winner { position:fixed; inset:0; z-index:28; background:rgba(0,0,0,.9); color:#f33; display:none;
  align-items:center; justify-content:center; flex-direction:column; font-size:34px; text-align:center;
  text-shadow:0 0 20px #f00; letter-spacing:2px; }
#winner .sub { font-size:15px; color:#d9a; margin-top:10px; font-family:Georgia,serif; letter-spacing:0; line-height:1.7; }
#winner .ok { font-size:70px; margin-bottom:10px; animation:bounce 1s infinite alternate; }
#winner button { margin-top:20px; }
@keyframes bounce { to { transform:scale(1.15) rotate(-5deg); } }

/* ---- settings ---- */
#settingsBtn { position:fixed; top:10px; right:14px; z-index:14; width:38px; height:38px; padding:0;
  border-radius:50%; font-size:18px; background:#1a0004; color:#f88; border:1px solid #600; cursor:pointer; }
#settings { position:fixed; top:56px; right:14px; z-index:14; width:250px; background:rgba(10,0,2,.96);
  border:1px solid #500; border-radius:6px; padding:12px; display:none; font-size:11px; color:#caa; }
#settings.open { display:block; }
#settings h3 { margin:6px 0; font-size:11px; letter-spacing:2px; color:#f99; border-bottom:1px solid #400; padding-bottom:3px; }
input { width:100%; background:#150003; color:#fbb; border:1px solid #500; padding:4px 6px;
  font-family:inherit; border-radius:3px; box-sizing:border-box; font-size:11px; margin-bottom:4px; }
button { font-family:inherit; background:#1a0004; color:#f88; border:1px solid #600; padding:7px 10px;
  border-radius:5px; cursor:pointer; font-size:12px; transition:all .12s; width:100%; margin-top:5px; }
button:hover { background:#3a0410; box-shadow:0 0 10px rgba(255,40,40,.4); }
button:active { transform:scale(.97); }
#voiceStatus { font-size:10px; color:#caa; margin-top:4px; }

/* ---- fighting-game extras: pips, banner, damage pops, combo ---- */
.pips { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:2px; }
.pipset { display:flex; gap:4px; }
.pipvs { font-size:9px; color:#a77; margin:0 3px; }
.pip { width:11px; height:11px; border-radius:50%; background:#2a1010; border:1px solid #600; display:inline-block; }
.pip.on { background:#ff3b2f; box-shadow:0 0 10px #f33; border-color:#f66; }
.pip.on:first-child { background:#ffd34d; box-shadow:0 0 10px #fa0; }

#banner { position:fixed; top:36%; left:0; right:0; z-index:26; text-align:center; pointer-events:none;
  font-size:clamp(40px,9vw,110px); font-weight:900; letter-spacing:6px; color:#fff; opacity:0;
  font-family:'Impact','Arial Black',sans-serif; text-transform:uppercase;
  text-shadow:0 0 30px #f00,0 0 60px #a00,4px 4px 0 #400; }
#banner.show { animation:bannerIn .9s ease-out forwards; }
@keyframes bannerIn { 0%{opacity:0; transform:scale(2.2) rotate(-4deg)} 20%{opacity:1; transform:scale(1) rotate(0)} 80%{opacity:1; transform:scale(1)} 100%{opacity:0; transform:scale(1.1)} }

.dmgpop { position:fixed; top:42%; z-index:27; font-family:'Impact','Arial Black',sans-serif; font-size:34px;
  font-weight:900; pointer-events:none; text-shadow:0 0 10px #000,2px 2px 0 #400;
  animation:dmgfly .9s ease-out forwards; }
@keyframes dmgfly { 0%{opacity:0; transform:translateY(20px) scale(.6)} 15%{opacity:1; transform:translateY(0) scale(1.3)} 100%{opacity:0; transform:translateY(-70px) scale(1)} }

#comboTag.pop { animation:comboPop .35s ease-out; }
@keyframes comboPop { 0%{transform:scale(1.6); color:#fff} 100%{transform:scale(1)} }

/* tilt the health bars like a fighter HUD */
#fightbar .side.left .bar.big { transform:skewX(-8deg); }
#fightbar .side.right .bar.big { transform:scaleX(-1) skewX(-8deg); }
#fightbar .side.left { padding-left:10px; }
#fightbar .side.right { padding-right:10px; }

.onlinebtn { margin-top:18px; width:auto; padding:10px 22px; font-size:14px; border-color:#2a6; color:#8fd; background:#04201a; }
.onlinebtn:hover { background:#063a1e; box-shadow:0 0 14px rgba(40,200,120,.5); }
