/* Nexus Ascension Live map & test-player telemetry styles — matches Ascension.axaml glass + teal/orange palette. */
main{max-width:1240px;margin:0 auto;padding:24px 24px 52px}
@media (max-width:640px){main{padding:18px 16px 40px}}

.live-head{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;
  padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line-soft);
}
.live-head h1{margin:6px 0 4px}
.live-head .lede{font-size:15px;max-width:660px}
.statusline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.dim{color:var(--dim);font-size:13px}

.pill{
  display:inline-flex;align-items:center;gap:8px;
  font:700 12px/1 var(--text);letter-spacing:.08em;text-transform:uppercase;
  padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--glass);
}
.pill::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--todo)}
.pill.on{color:var(--good);border-color:rgba(61,220,132,.45)}
.pill.on::before{background:var(--good);box-shadow:0 0 0 3px rgba(61,220,132,.22)}
.pill.off{color:var(--bad);border-color:rgba(255,90,95,.45)}
.pill.off::before{background:var(--bad)}
.pill.wait{color:var(--soft)}

.grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
@media (max-width:960px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:540px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stat{
  background:var(--glass);border:1px solid var(--line);border-radius:12px;padding:11px 13px;
}
.stat b{display:block;font:800 24px/1.1 var(--display);color:var(--ink);font-variant-numeric:tabular-nums}
.stat small{color:var(--soft);font-size:12.5px}

.zonetabs{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.zonetabs button{
  font:600 13px/1 var(--text);display:inline-flex;align-items:center;gap:7px;
  min-height:36px;padding:6px 13px;color:var(--soft);
  background:var(--glass);border:1px solid var(--line);border-radius:999px;cursor:pointer;
  transition:border-color .14s ease,color .14s ease,background .14s ease;
}
.zonetabs button:hover{border-color:var(--teal-dim);color:var(--ink)}
.zonetabs button[aria-selected="true"]{
  color:var(--orange-hi);border-color:var(--orange);background:rgba(255,149,26,.12);
}
.zonetabs button small{font-size:11.5px;font-weight:600;color:var(--dim);font-variant-numeric:tabular-nums}
.zonetabs button[aria-selected="true"] small{color:var(--orange-hi)}

.live{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;margin-top:12px;align-items:start}
.mapwrap{
  position:relative;background:#04070B;border:1px solid var(--line);border-radius:14px;
  overflow:hidden;height:min(68vh,660px);min-height:360px;
}
#map{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
#map.drag{cursor:grabbing}
.mapbar{
  position:absolute;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding:10px 12px;background:linear-gradient(rgba(5,8,13,.88),rgba(5,8,13,0));pointer-events:none;
  font-size:14px;font-weight:700;color:var(--ink);
}
.tools{display:flex;gap:6px;pointer-events:auto}
.tools button{
  font:600 14px/1 var(--text);min-width:34px;height:32px;padding:0 10px;
  color:var(--ink);background:rgba(11,21,32,.9);border:1px solid var(--line);border-radius:8px;cursor:pointer;
}
.tools button:hover{border-color:var(--teal)}
.tools button[aria-pressed="true"]{color:var(--teal);border-color:var(--teal)}

.offline{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:8px;text-align:center;padding:24px;background:rgba(5,8,13,.84);
}
.offline[hidden]{display:none}
.offline b{font-size:19px;color:var(--ink)}
.offline span{color:var(--soft);max-width:420px;font-size:14.5px}

.roster h2{margin:0 0 8px;font-size:12px}
.bots{
  list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;
  max-height:min(68vh,660px);overflow:auto;padding-right:3px;
}
.bot{
  background:var(--glass);border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;
  transition:border-color .14s ease,background .14s ease;
}
.bot:hover{border-color:var(--teal-dim);background:var(--glass-hi)}
.bot.sel{border-color:var(--orange)}
.bot.dead{opacity:.7}
.bot .top{display:flex;align-items:center;gap:8px}
.bot .dot{width:11px;height:11px;border-radius:50%;flex:none;border:2px solid #05080D;box-shadow:0 0 0 1px rgba(255,255,255,.5)}
.bot .name{font-weight:700;color:var(--ink);font-size:14.5px}
.bot .cls{color:var(--dim);font-size:12.5px;margin-left:auto;white-space:nowrap}
.bot .hp{height:4px;border-radius:2px;background:rgba(28,52,64,.85);margin:6px 0 5px;overflow:hidden}
.bot .hp i{display:block;height:100%;background:var(--good)}
.bot .hp.low i{background:var(--bad)}
.bot .hp.unknown i{background:#3a4456}
.bot .doing{font-size:13.5px;color:var(--soft)}
.bot .questline{font-size:14px;font-weight:700;color:var(--orange-hi);margin-top:2px;line-height:1.35}
.bot .questline.between{color:var(--dim);font-weight:500;font-size:13.5px}
.bot .objective{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--soft);margin:2px 0 3px}
.bot .meter{flex:0 0 70px;height:5px;border-radius:3px;background:rgba(28,52,64,.85);overflow:hidden;margin:0}
.bot .meter i{display:block;height:100%;background:var(--orange)}
.bot .prog{font-variant-numeric:tabular-nums;color:var(--dim)}
.bot .counts{display:block;margin:2px 0 0;font-size:12px;color:var(--dim);font-variant-numeric:tabular-nums}
.bot .why{list-style:none;margin:5px 0 0;padding:0;font-size:12.5px;color:var(--dim)}
.bot .why li{padding-left:11px;position:relative;line-height:1.42}
.bot .why li::before{content:"";position:absolute;left:2px;top:.6em;width:4px;height:4px;border-radius:50%;background:var(--todo)}
.bot .why li:first-child{color:var(--soft)}

.live-notes-card{margin-top:24px;padding:18px 20px}
.live-notes-card h2{margin:0 0 10px}
.notes{
  list-style:none;padding:0;margin:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;
}
@media (max-width:820px){.notes{grid-template-columns:1fr}}
.notes li{color:var(--soft);font-size:14px;line-height:1.48;padding-left:14px;position:relative}
.notes li::before{content:"";position:absolute;left:0;top:.55em;width:6px;height:6px;border-radius:50%;background:var(--teal)}
.notes b{color:var(--ink)}

@media (max-width:940px){
  .zonetabs{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:16px;padding-bottom:4px;scrollbar-width:thin}
  .zonetabs button{flex:none}
  .live{grid-template-columns:1fr}
  .mapwrap{height:58vh}
  .bots{max-height:none}
}
