:root{
  --bg:#050a12;
  --panel:#0a1320e8;
  --line:#1a2b40;
  --text:#eef5ff;
  --muted:#7890a8;
  --cyan:#5be7ff;
  --blue:#67aaff;
  --red:#ff6c78;
  --gold:#ffc56b;
  --shadow:0 30px 80px rgba(0,0,0,.45);
}

*{
  box-sizing:border-box;
}

html,
body,
#app{
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:var(--bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
}

button,
input{
  font:inherit;
}

button{
  border:1px solid var(--line);
  background:#0b1522;
  color:var(--text);
  padding:12px 16px;
  cursor:pointer;
  letter-spacing:.08em;
  font-weight:700;
}

button:hover{
  border-color:#3b5a79;
  background:#102033;
}

.primary{
  background:linear-gradient(180deg,#2a9fc1,#17667e);
  border-color:#54dff5;
  box-shadow:0 8px 30px rgba(47,215,249,.18);
}

#game{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.hidden{
  display:none!important;
}

.screen{
  position:absolute;
  inset:0;
  z-index:5;
}

.lobby-grid{
  height:100%;
  display:grid;
  grid-template-columns:42% 58%;
  background:linear-gradient(
    90deg,
    rgba(3,8,14,.98) 0%,
    rgba(3,8,14,.82) 42%,
    rgba(3,8,14,.2) 100%
  );
}

.brand-block{
  display:flex;
  justify-content:center;
  flex-direction:column;
  padding:7vw;
}

.eyebrow{
  font-size:11px;
  letter-spacing:.28em;
  color:#6f93b4;
}

.brand-block h1{
  font-size:clamp(64px,9vw,150px);
  line-height:.8;
  margin:16px 0 18px;
  letter-spacing:-.07em;
}

.brand-block p{
  max-width:380px;
  color:#9db1c5;
  line-height:1.6;
}

.lobby-buttons{
  display:flex;
  gap:12px;
  margin-top:26px;
}

.mini-status{
  display:flex;
  gap:8px;
  align-items:center;
  color:#66809a;
  font-size:11px;
  letter-spacing:.14em;
  margin-top:32px;
}

.dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#6fffca;
  box-shadow:0 0 14px #6fffca;
}

.operator-stage{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.stage-grid{
  position:absolute;
  inset:10% -20% -15%;
  background:
    linear-gradient(rgba(100,200,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(100,200,255,.06) 1px,transparent 1px);
  background-size:50px 50px;
  transform:
    perspective(600px)
    rotateX(64deg)
    translateY(20%);
}

.stage-label{
  position:absolute;
  right:6%;
  top:8%;
  font-size:11px;
  letter-spacing:.22em;
  color:#82a7c6;
}

.operator-stage:before{
  content:"";
  position:absolute;
  width:min(50vw,650px);
  height:min(50vw,650px);
  border-radius:50%;
  background:
    radial-gradient(
      circle,
      rgba(74,180,255,.13),
      transparent 68%
    );
  filter:blur(10px);
}

#lobbyHint{
  position:absolute;
  bottom:5%;
  right:6%;
  color:#5f7690;
  font-size:10px;
  letter-spacing:.11em;
}

.overlay-screen{
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(
      180deg,
      rgba(2,7,13,.2),
      rgba(2,7,13,.68)
    );
}

.topbar{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:72px;
  background:rgba(3,8,14,.86);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 24px;
}

.topbar>div:first-child{
  display:flex;
  align-items:center;
  gap:18px;
}

.buy-layout{
  width:min(1000px,92vw);
  display:grid;
  grid-template-columns:1.5fr .8fr;
  gap:16px;
}

.buy-card,
.loadout-card,
.settings-card,
.round-end-card{
  background:rgba(7,15,25,.95);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}

.buy-card,
.loadout-card{
  padding:24px;
}

.section-title{
  font-size:12px;
  letter-spacing:.2em;
  color:#7fa1bf;
  margin-bottom:18px;
}

.buy-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.weapon-card{
  padding:16px;
  border:1px solid var(--line);
  background:#0a1624;
  text-align:left;
}

.weapon-card.active{
  border-color:#4ad6e9;
  box-shadow:
    inset 0 0 0 1px
    rgba(74,214,233,.22);
}

.weapon-card strong{
  display:block;
  font-size:17px;
}

.weapon-card small{
  color:#70879d;
  display:block;
  margin-top:4px;
}

.weapon-card .price{
  color:var(--gold);
  margin-top:15px;
  font-weight:800;
}

.buy-actions{
  display:flex;
  gap:10px;
  margin-top:18px;
}

.loadout-item{
  display:flex;
  justify-content:space-between;
  padding:16px 0;
  border-bottom:1px solid #142338;
}

.loadout-item span{
  color:#657d95;
  font-size:11px;
  letter-spacing:.15em;
}

.loadout-item strong{
  font-size:13px;
}

.buy-note{
  color:#6f859a;
  font-size:12px;
  line-height:1.6;
  margin-top:20px;
}

.money{
  justify-self:end;
  color:var(--gold);
  font-weight:900;
  font-size:20px;
}

.settings-screen{
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(12px);
}

.settings-screen.open{
  display:flex;
}

.settings-card{
  width:min(760px,92vw);
}

.settings-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px;
  border-bottom:1px solid var(--line);
}

.settings-head h2{
  margin:8px 0 0;
  font-size:30px;
}

.settings-head button{
  font-size:24px;
  border:none;
  background:transparent;
}

.settings-tabs{
  display:flex;
  border-bottom:1px solid var(--line);
}

.tab{
  flex:1;
  border:none;
  border-right:1px solid var(--line);
  background:#08111d;
  color:#66809a;
}

.tab.active{
  color:#fff;
  background:#0c1b2a;
}

.settings-body{
  padding:20px 24px;
  min-height:350px;
}

.settings-body.hidden{
  display:none;
}

.control-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #102033;
  color:#b9c8d7;
}

.bind{
  min-width:100px;
  padding:8px 12px;
}

.switch{
  position:relative;
  display:inline-block;
  width:46px;
  height:24px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.switch span{
  position:absolute;
  inset:0;
  border:1px solid #27415b;
  border-radius:99px;
  background:#08121e;
}

.switch span:before{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  top:2px;
  left:3px;
  background:#71899f;
  border-radius:50%;
  transition:.15s;
}

.switch input:checked+span:before{
  transform:translateX(20px);
  background:var(--cyan);
}

.range-row{
  display:flex;
  align-items:center;
  gap:24px;
  padding:18px 0;
  border-bottom:1px solid #102033;
}

.range-row>span{
  display:flex;
  justify-content:space-between;
  width:180px;
  color:#a9bacb;
}

.range-row input[type=range]{
  flex:1;
}

.settings-foot{
  display:flex;
  align-items:center;
  gap:10px;
  padding:18px 24px;
  border-top:1px solid var(--line);
}

.settings-foot span{
  margin-right:auto;
  color:#617a93;
  font-size:12px;
}

.hud.hidden{
  display:none;
}

.hud{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
}

.hud-top{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:70px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 22px;
  background:
    linear-gradient(
      180deg,
      rgba(2,8,14,.72),
      transparent
    );
}

.round-label{
  font-size:11px;
  letter-spacing:.16em;
  color:#8da5bb;
}

.round-label span{
  color:#fff;
}

.score-small{
  justify-self:end;
}

.crosshair{
  position:absolute;
  left:50%;
  top:50%;
  width:26px;
  height:26px;
  transform:translate(-50%,-50%);
  opacity:.9;
}

.crosshair>*{
  position:absolute;
  background:#fff;
  box-shadow:0 0 6px rgba(255,255,255,.5);
}

.crosshair span,
.crosshair i{
  width:2px;
  height:7px;
  left:12px;
}

.crosshair span{
  top:0;
}

.crosshair i{
  bottom:0;
}

.crosshair b,
.crosshair em{
  height:2px;
  width:7px;
  top:12px;
}

.crosshair b{
  left:0;
}

.crosshair em{
  right:0;
}

.killfeed{
  position:absolute;
  top:82px;
  right:20px;
  width:270px;
}

.feed{
  font-size:11px;
  padding:8px 10px;
  margin:5px 0;
  background:rgba(7,13,21,.75);
  border-left:2px solid var(--red);
  color:#cad7e3;
}

.hud-bottom{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:120px;
  padding:0 26px 24px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:end;
  background:
    linear-gradient(
      0deg,
      rgba(2,7,12,.8),
      transparent
    );
}

.health-box{
  width:200px;
}

.tiny{
  font-size:10px;
  letter-spacing:.15em;
  color:#6c849b;
}

.health-box strong{
  display:block;
  font-size:34px;
  line-height:1;
}

.healthbar{
  height:5px;
  background:#13202e;
  margin-top:10px;
}

.healthbar i{
  display:block;
  height:100%;
  width:100%;
  background:#6be6b4;
}

.weapon-box{
  text-align:center;
}

.weapon-box span{
  display:block;
  font-size:16px;
  letter-spacing:.14em;
  font-weight:800;
}

.weapon-box small{
  display:block;
  margin-top:5px;
  color:#8ea4ba;
}

.weapon-line{
  height:2px;
  background:#243a50;
  width:120px;
  margin:12px auto 0;
}

.hint-box{
  justify-self:end;
  color:#668199;
  font-size:10px;
  letter-spacing:.1em;
}

.hint-box span{
  color:#dbe8f5;
}

.touch-ui{
  display:none;
  position:absolute;
  inset:0;
}

.joystick{
  position:absolute;
  left:22px;
  bottom:34px;
  width:120px;
  height:120px;
  border:1px solid rgba(155,201,231,.22);
  border-radius:50%;
  background:rgba(5,13,23,.28);
}

#joyKnob{
  position:absolute;
  left:40px;
  top:40px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(149,211,238,.25);
  border:1px solid rgba(149,211,238,.45);
}

.touch-actions{
  position:absolute;
  right:18px;
  bottom:24px;
  display:flex;
  gap:8px;
}

.touch-actions button{
  pointer-events:auto;
  border-radius:50%;
  width:62px;
  height:62px;
  padding:0;
  background:rgba(6,13,22,.45);
}

#touchFire{
  width:86px;
  height:86px;
  border-color:#da6674;
}

.death-banner{
  position:absolute;
  left:50%;
  top:18%;
  transform:translateX(-50%);
  padding:12px 18px;
  background:rgba(18,7,10,.78);
  border:1px solid #7b303a;
  color:#ff9aa3;
  letter-spacing:.14em;
  font-size:12px;
}

.round-end-card{
  width:min(460px,90vw);
  text-align:center;
  padding:40px;
}

.round-end-card h2{
  font-size:48px;
  margin:12px 0;
}

.round-end-card p{
  color:#8fa5ba;
}

.end-score{
  font-size:46px;
  font-weight:900;
  margin:22px;
}

.end-score b{
  padding:0 16px;
  color:#57708a;
}

.muted{
  color:#647c93;
}

@media(max-width:900px){

  .lobby-grid{
    grid-template-columns:1fr;
    background:
      linear-gradient(
        180deg,
        rgba(3,8,14,.92),
        rgba(3,8,14,.3)
      );
  }

  .brand-block{
    padding:10vw 7vw;
    justify-content:flex-end;
    padding-bottom:18vh;
  }

  .operator-stage{
    position:absolute;
    inset:0;
    z-index:-1;
    opacity:.75;
  }

  .buy-layout{
    grid-template-columns:1fr;
  }

  .loadout-card{
    display:none;
  }

  .hud-bottom{
    grid-template-columns:1fr 1fr;
    height:90px;
    padding:0 15px 12px;
  }

  .hint-box{
    display:none;
  }

  .touch-ui{
    display:block;
  }

  .buy-grid{
    grid-template-columns:1fr 1fr;
  }

}