/* ==========================================================================
   SAUR//UTOPIA — Cyberpunk HUD
   ========================================================================== */

:root {
  --yellow: #fcee0a;
  --cyan: #00f0ff;
  --red: #ff003c;
  --magenta: #ff2bd6;
  --green: #00ff9f;
  --void: #05060a;
  --panel: #0b0d14;
  --rgb: conic-gradient(#ff003c, #ff7a00, #fcee0a, #00ff9f, #00f0ff, #4d5bff, #ff2bd6, #ff003c);
  --cut: 14px;
}

html { scroll-behavior: smooth; }
::selection { background: var(--yellow); color: #000; }

/* ---------- Ambient background ---------- */

.fx-grid {
  position: fixed;
  inset: auto 0 0 0;
  height: 55vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 43, 214, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.25) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 85%);
  animation: grid-scroll 3s linear infinite;
}
@keyframes grid-scroll { to { background-position: 0 60px, 0 0; } }

.fx-orbs span {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
  animation: hue 12s linear infinite;
}
.fx-orbs span:nth-child(1) { width: 520px; height: 520px; top: -160px; left: -140px; background: var(--magenta); }
.fx-orbs span:nth-child(2) { width: 460px; height: 460px; top: 30vh; right: -160px; background: var(--cyan); animation-delay: -4s; }
.fx-orbs span:nth-child(3) { width: 380px; height: 380px; bottom: -120px; left: 35vw; background: var(--yellow); opacity: 0.12; animation-delay: -8s; }

.fx-scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.fx-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.75));
}

@keyframes hue { to { filter: blur(110px) hue-rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes rgb-cycle { to { filter: hue-rotate(360deg); } }

/* ---------- Header ---------- */

.logo-mark {
  width: 26px;
  height: 26px;
  background: var(--rgb);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  animation: rgb-cycle 4s linear infinite;
  box-shadow: 0 0 18px var(--yellow);
}

.nav-link {
  padding: 8px 14px;
  color: #94a3b8;
  transition: color 0.2s, background 0.2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav-link:hover { color: #000; background: var(--yellow); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  letter-spacing: 0.2em;
  color: #94a3b8;
}
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-chip[data-state='online'] { color: var(--green); }
.status-chip[data-state='online'] i { animation: pulse 1.4s ease-in-out infinite; }
.status-chip[data-state='offline'],
.status-chip[data-state='error'] { color: var(--red); }
@keyframes pulse { 50% { opacity: 0.25; } }

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(252, 238, 10, 0.15);
  background: var(--yellow);
  color: #000;
}
.ticker-track { display: flex; width: max-content; padding: 3px 0; animation: ticker 40s linear infinite; }
.ticker-track span { padding-right: 2rem; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Glitch text ---------- */

.glitch { position: relative; display: inline-block; text-shadow: 0 0 12px rgba(252, 238, 10, 0.45); }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glitch::before { color: var(--cyan); animation: glitch-a 3.2s infinite steps(1); }
.glitch::after { color: var(--red); animation: glitch-b 2.7s infinite steps(1); }
@keyframes glitch-a {
  0%, 88%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  90% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, -1px); }
  93% { clip-path: inset(55% 0 20% 0); transform: translate(3px, 1px); }
  96% { clip-path: inset(30% 0 45% 0); transform: translate(-2px, 0); }
}
@keyframes glitch-b {
  0%, 84%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  86% { clip-path: inset(70% 0 5% 0); transform: translate(3px, 1px); }
  90% { clip-path: inset(20% 0 65% 0); transform: translate(-3px, -1px); }
  94% { clip-path: inset(40% 0 35% 0); transform: translate(2px, 0); }
}

/* ---------- RGB Reactor (the circle) ---------- */

.reactor {
  --size: min(84vw, 420px);
  --pct: 0;
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.reactor-glow,
.reactor-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: var(--rgb);
  animation: spin 5s linear infinite;
}
.reactor-glow { filter: blur(42px); opacity: 0.75; z-index: -1; animation: spin 5s linear infinite, breathe 3.5s ease-in-out infinite; }
.reactor-ring {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
}
.reactor-ring--thin {
  inset: 0;
  animation: spin-rev 9s linear infinite;
  opacity: 0.7;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
@keyframes breathe { 50% { opacity: 0.45; transform: scale(1.06); } }

.reactor-dash {
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  animation: spin-rev 30s linear infinite;
}

.reactor-ticks {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.35) 0 0.6deg, transparent 0.6deg 6deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  animation: spin 60s linear infinite;
}

.reactor-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  animation: rgb-cycle 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}
.arc-track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 5; }
.arc-fill {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 490.09; /* 2πr, r = 78 */
  stroke-dashoffset: calc(490.09 * (1 - var(--pct)));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reactor-core {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(circle, #0d1018 0%, #05060a 75%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 60px rgba(0, 0, 0, 0.8);
}

.reactor-count {
  font-size: clamp(3.4rem, 15vw, 5.6rem);
  line-height: 1;
  background: linear-gradient(90deg, #ff003c, #fcee0a, #00ff9f, #00f0ff, #ff2bd6, #ff003c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: text-flow 4s linear infinite;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.35));
}
@keyframes text-flow { to { background-position: 300% 0; } }

#reactorStatus { color: #94a3b8; }
.reactor[data-state='online'] #reactorStatus { color: var(--green); text-shadow: 0 0 10px var(--green); }
.reactor[data-state='offline'] #reactorStatus,
.reactor[data-state='error'] #reactorStatus { color: var(--red); text-shadow: 0 0 10px var(--red); }
.reactor[data-state='offline'] .reactor-ring,
.reactor[data-state='offline'] .reactor-glow,
.reactor[data-state='error'] .reactor-ring,
.reactor[data-state='error'] .reactor-glow { background: conic-gradient(#ff003c, #5a0016, #ff003c); }
.reactor[data-state='loading'] .reactor-ring,
.reactor[data-state='loading'] .reactor-glow { animation-duration: 1.2s; }

/* ---------- Panels ---------- */

.cy-frame {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 23, 34, 0.85), rgba(8, 9, 14, 0.9));
  border: 1px solid rgba(252, 238, 10, 0.22);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  backdrop-filter: blur(6px);
}
.cy-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}
.cy-frame--cyan { border-color: rgba(0, 240, 255, 0.25); }
.cy-frame--cyan::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.cy-frame--magenta { border-color: rgba(255, 43, 214, 0.25); }
.cy-frame--magenta::before { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }

.label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
}

.stat-tile {
  padding: 14px 16px;
  border-left: 2px solid var(--yellow);
  background: linear-gradient(90deg, rgba(252, 238, 10, 0.07), transparent);
}
.stat-val { margin-top: 4px; font-family: 'Orbitron', sans-serif; font-size: 0.95rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.meter { position: relative; height: 8px; background: rgba(255, 255, 255, 0.06); overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--cyan), var(--magenta));
  background-size: 200% 100%;
  animation: text-flow 3s linear infinite;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.meter--indeterminate .meter-fill { width: 35%; animation: indeterminate 1.3s ease-in-out infinite, text-flow 3s linear infinite; }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

.section-head { display: flex; align-items: flex-end; gap: 18px; }
.section-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--yellow);
  opacity: 0.8;
}
.section-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; color: #fff; letter-spacing: 0.04em; }
.section-sub { color: #94a3b8; font-size: 1.05rem; }

/* ---------- Inputs & buttons ---------- */

.cy-input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cy-input::placeholder { color: #475569; }
.cy-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 22px rgba(0, 240, 255, 0.25); }
.cy-input[aria-invalid='true'] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

.btn-yellow,
.btn-ghost,
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-yellow {
  padding: 10px 18px;
  font-size: 12px;
  color: #000;
  background: var(--yellow);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  box-shadow: 0 0 20px rgba(252, 238, 10, 0.35);
}
.btn-yellow:hover { background: #fff; box-shadow: 0 0 30px rgba(252, 238, 10, 0.6); }
.btn-yellow:active { transform: translateY(1px); }
.btn-yellow:disabled { cursor: wait; opacity: 0.75; }
.btn-lg { padding: 14px 26px; font-size: 13px; min-width: 170px; }

.btn-ghost {
  padding: 9px 14px;
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}
.btn-ghost:hover { background: var(--cyan); color: #000; }

.btn-cyber {
  position: relative;
  padding: 2px;
  background: var(--rgb);
  background-size: 100% 100%;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: rgb-cycle 4s linear infinite;
}
.btn-cyber-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--void);
  clip-path: inherit;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.btn-cyber:hover .btn-cyber-inner { background: transparent; color: #000; }
.btn-cyber:disabled { cursor: wait; }
.btn-cyber[data-loading='true'] .refresh-icon { animation: spin 0.8s linear infinite; }

.btn-download {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  color: #000;
  background: var(--green);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 0 30px rgba(0, 255, 159, 0.5);
  animation: download-pulse 1.8s ease-in-out infinite;
}
.btn-download:hover { background: #fff; }
@keyframes download-pulse { 50% { box-shadow: 0 0 50px rgba(0, 255, 159, 0.85); } }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  animation: spin 0.7s linear infinite;
}

.alert-red {
  padding: 12px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #ffd1db;
  background: rgba(255, 0, 60, 0.1);
  border-left: 3px solid var(--red);
}
.alert-red::before { content: '⚠ ERROR // '; color: var(--red); }

.result-card {
  padding: 18px;
  border: 1px solid rgba(0, 255, 159, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 159, 0.08), transparent);
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.disc {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #05060a 0 18%, transparent 19%), var(--rgb);
  animation: spin 2.5s linear infinite;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.4);
}

/* ---------- Player table ---------- */

.collapsible { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s ease; }
.collapsible > * { overflow: hidden; }
.collapsible[data-open='false'] { grid-template-rows: 0fr; }

#playerRows tr { border-top: 1px solid rgba(255, 255, 255, 0.04); transition: background 0.15s; animation: rise 0.4s both; }
#playerRows tr:hover { background: linear-gradient(90deg, rgba(252, 238, 10, 0.08), transparent); }
#playerRows td { padding: 10px 0; }
.rank { font-family: 'Share Tech Mono', monospace; color: #475569; padding-left: 1rem !important; }
.rank--top { color: var(--yellow); text-shadow: 0 0 8px var(--yellow); }
.nick { font-weight: 600; font-size: 1.05rem; color: #e2e8f0; }
.score { font-family: 'Share Tech Mono', monospace; color: var(--cyan); text-align: right; padding-right: 1rem !important; }

.cy-scroll::-webkit-scrollbar { width: 8px; }
.cy-scroll::-webkit-scrollbar-track { background: transparent; }
.cy-scroll::-webkit-scrollbar-thumb { background: var(--yellow); }
.cy-scroll { scrollbar-color: var(--yellow) transparent; scrollbar-width: thin; }

/* ---------- Misc ---------- */

.tag {
  padding: 3px 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}


.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: text-flow 1.4s linear infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 10px 18px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #000;
  background: var(--yellow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 140%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s, visibility 0.35s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.toast[data-show='true'] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Background music player ---------- */

.music {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(11, 13, 20, 0.85);
  border: 1px solid rgba(255, 43, 214, 0.35);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.music[data-playing='true'] { border-color: var(--magenta); box-shadow: 0 0 24px rgba(255, 43, 214, 0.35); }

.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--magenta);
}
.music-btn:hover { color: #fff; }
.music-btn:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }

.music .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.music .eq span {
  width: 3px;
  height: 100%;
  background: linear-gradient(to top, var(--cyan), var(--magenta));
  transform: scaleY(0.15);
  transform-origin: bottom;
  transition: transform 80ms linear;
}

.music-volume { width: 80px; accent-color: var(--magenta); cursor: pointer; }
@media (max-width: 480px) { .music-volume { display: none; } }

/* ---------- To kill list ---------- */

.kill-list {
  position: relative;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(255, 0, 60, 0.12), rgba(11, 13, 20, 0.85) 60%);
  border: 1px solid rgba(255, 0, 60, 0.35);
  border-left: 3px solid var(--red);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.kill-list[data-hot='true'] {
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.3), inset 0 0 40px rgba(255, 0, 60, 0.08);
  animation: kill-pulse 1.6s ease-in-out infinite;
}
@keyframes kill-pulse { 50% { box-shadow: 0 0 46px rgba(255, 0, 60, 0.5), inset 0 0 40px rgba(255, 0, 60, 0.14); } }

.kill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kill-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 0 12px rgba(255, 0, 60, 0.7);
}
.kill-count { font-family: 'Share Tech Mono', monospace; font-size: 12px; letter-spacing: 0.15em; color: #94a3b8; }
.kill-list[data-hot='true'] .kill-count { color: var(--red); }

.kill-targets { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kill-target {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(5, 6, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  min-width: 0;
}
.kill-name {
  flex-shrink: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 0, 60, 0.6);
}
.kill-status { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kill-target[data-online='true'] { border-color: rgba(255, 0, 60, 0.5); background: rgba(255, 0, 60, 0.08); }
.kill-target[data-online='true'] .kill-name { color: var(--red); text-decoration: none; text-shadow: 0 0 10px rgba(255, 0, 60, 0.6); }
.kill-target[data-online='true'] .kill-status { color: var(--red); }
.kill-nick { color: #fff; }

.row--target { background: rgba(255, 0, 60, 0.1); box-shadow: inset 3px 0 0 var(--red); }
.target-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #000;
  background: var(--red);
  vertical-align: middle;
}

/* ---------- Gang war (SG = cyan, DS = magenta) ---------- */

.gang-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.gang-side { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.gang-side--b { justify-content: flex-end; }

.gang-tag {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.15em;
}
.gang-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 1;
}
.gang-side--a .gang-tag, .gang-side--a .gang-num { color: var(--cyan); text-shadow: 0 0 22px rgba(0, 240, 255, 0.55); }
.gang-side--b .gang-tag, .gang-side--b .gang-num { color: var(--magenta); text-shadow: 0 0 22px rgba(255, 43, 214, 0.55); }
.gang-war[data-leader='b'] .gang-side--a, .gang-war[data-leader='a'] .gang-side--b { opacity: 0.55; }

.gang-vs { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gang-vs-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(252, 238, 10, 0.6);
}
.gang-verdict {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}
.gang-war[data-leader='a'] .gang-verdict { color: var(--cyan); }
.gang-war[data-leader='b'] .gang-verdict { color: var(--magenta); }

.gang-bar { display: flex; height: 10px; margin-top: 22px; background: #111827; overflow: hidden; }
.gang-bar-a, .gang-bar-b { width: 50%; transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gang-bar-a { background: linear-gradient(90deg, rgba(0, 240, 255, 0.4), var(--cyan)); box-shadow: 0 0 16px var(--cyan); }
.gang-bar-b { background: linear-gradient(90deg, var(--magenta), rgba(255, 43, 214, 0.4)); box-shadow: 0 0 16px var(--magenta); }

.gang-roster { padding: 14px 16px; background: rgba(5, 6, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.06); }
.gang-roster--a { border-top: 2px solid var(--cyan); }
.gang-roster--b { border-top: 2px solid var(--magenta); }
.gang-roster--a .label { color: var(--cyan); }
.gang-roster--b .label { color: var(--magenta); }
.gang-roster ul {
  margin-top: 10px;
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px 12px;
  font-weight: 600;
  color: #e2e8f0;
}
.gang-roster li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 0; }
.gang-roster .gang-empty { color: #64748b; font-family: 'Share Tech Mono', monospace; font-weight: 400; }

@media (max-width: 520px) {
  .gang-side { flex-direction: column; align-items: flex-start; gap: 4px; }
  .gang-side--b { align-items: flex-end; }
}
