/* SHARD — Tactical HvH Arena Styles with Neverlose Theme */

@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Jacobs";
  src: url("assets/fonts/jacobs-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/mts-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --font-brand: "Unbounded", system-ui, sans-serif;
  --font-main: "Jacobs", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --accent-cyan: #00d2ff;
  --accent-cyan-glow: rgba(0, 210, 255, 0.4);
  --accent-pink: #ef73af;
  --accent-pink-glow: rgba(239, 115, 175, 0.35);

  --nl-bg-main: #0b0d16;
  --nl-bg-sidebar: #0f121e;
  --nl-bg-card: #131726;
  --nl-bg-input: #1a1f33;
  --nl-border: #1d233a;
  --nl-border-focus: #00d2ff;

  --cs-green: #37d67a;
  --cs-gold: #ffbe3b;
  --cs-red: #ff4757;
  --cs-hud: #ff9900;
  --bg-card: #121319;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #06070a;
  font-family: var(--font-mono);
  color: #ffffff;
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  cursor: default;
}

#espCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* UI Overlay Container */
#uiLayer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Header Bar */
.hvh-header-bar {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.brand-watermark {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 16, 24, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.game-logo-glow {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--accent-cyan-glow));
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-cyan);
  color: #0b0e17;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.header-right-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.btn-open-menu-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 20, 30, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-open-menu-pill:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
}

.nl-btn-pill {
  border-color: rgba(0, 210, 255, 0.4);
}
.nl-btn-pill .key-badge {
  color: var(--accent-cyan);
}

.key-badge {
  background: #181d2c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 16, 24, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
}

.ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cs-green);
  box-shadow: 0 0 8px var(--cs-green);
}

/* Match Status Timer Bar */
.match-timer-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 6px 22px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.round-center-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.round-counter-badge {
  font-size: 9px;
  color: #8892b0;
  letter-spacing: 0.1em;
}

.score-t { color: #ff5252; font-weight: 800; font-size: 14px; }
.score-ct { color: #4da6ff; font-weight: 800; font-size: 14px; }
.timer-val { color: #ffcc00; font-size: 16px; font-weight: 800; }

/* Radar Minimap */
.radar-wrap {
  position: absolute;
  top: 66px;
  left: 20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(0, 210, 255, 0.35);
  background: rgba(8, 14, 22, 0.75);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

#radarCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 210, 255, 0.25) 0deg, transparent 60deg, transparent 360deg);
  animation: radarSpin 3.5s linear infinite;
  pointer-events: none;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: rgba(0, 210, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Killfeed */
.killfeed-container {
  position: absolute;
  top: 66px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  pointer-events: none;
}

.kill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 16, 24, 0.88);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: killFadeIn 0.2s ease-out;
}

@keyframes killFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.killer-name { color: #ff5252; }
.victim-name { color: #4da6ff; }
.weapon-icon {
  background: #252838;
  color: #ffbe3b;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
}
.hs-icon { font-size: 11px; color: #ff3344; }

/* Crosshair & Hitmarker */
.crosshair-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.ch-line {
  position: absolute;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}
.ch-top { width: 2px; height: 7px; left: 11px; top: 0; }
.ch-bottom { width: 2px; height: 7px; left: 11px; bottom: 0; }
.ch-left { height: 2px; width: 7px; top: 11px; left: 0; }
.ch-right { height: 2px; width: 7px; top: 11px; right: 0; }
.ch-dot { width: 2px; height: 2px; left: 11px; top: 11px; border-radius: 50%; }

.hitmarker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.05s ease;
}

.hitmarker.active { opacity: 1; }

.hm-line {
  position: absolute;
  background: #ff3344;
  box-shadow: 0 0 8px #ff3344;
}
.hm-1 { width: 100%; height: 2px; top: 8px; left: 0; }
.hm-2 { height: 100%; width: 2px; left: 8px; top: 0; }

.damage-popup {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #ffbe3b;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 190, 59, 0.6);
  animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -80%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -110%) scale(0.9); }
}

/* Bottom HUD */
.cs-bottom-hud {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.hud-left-group, .hud-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-stat-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.hud-stat-box.health { color: var(--cs-green); }
.hud-stat-box.armor { color: #4da6ff; }
.hud-stat-box.ammo { color: var(--cs-gold); }
.hud-stat-box.money { color: #2ecc71; }

.currency-sign {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 900;
}

.hud-val {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.weapon-name-badge {
  background: rgba(14, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

/* Dead / Spectator Banner */
.dead-spectator-banner {
  display: none;
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  pointer-events: none;
  animation: bannerFade 0.3s ease;
}

.dead-spectator-banner.active,
.dead-spectator-banner.visible { display: block; }

.dead-box {
  background: rgba(20, 10, 14, 0.88);
  border: 1px solid rgba(255, 71, 87, 0.4);
  backdrop-filter: blur(14px);
  padding: 16px 28px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 71, 87, 0.2);
}

.dead-title {
  font-family: var(--font-brand);
  color: #ff4757;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dead-desc {
  font-size: 11px;
  color: #ccc;
  margin-bottom: 6px;
}

.dead-spec-info {
  font-size: 10px;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Round End Victory Banner */
.round-end-banner {
  display: none;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 55;
  pointer-events: none;
}

.round-end-banner.active,
.round-end-banner.visible {
  display: block;
  animation: victoryPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes victoryPop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.victory-card {
  background: rgba(12, 16, 26, 0.94);
  border: 1px solid var(--accent-cyan);
  backdrop-filter: blur(16px);
  padding: 24px 44px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--accent-cyan-glow);
}

.victory-title {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.victory-sub {
  font-size: 12px;
  font-weight: 700;
  color: #2ecc71;
}

/* Scope Overlay */
#scopeOverlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 5;
  pointer-events: none;
}

.scope-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vmin;
  height: 80vmin;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 9999px #000;
}

.scope-hair-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.scope-hair-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
}

/* Modals (Buy Menu & Scoreboard) */
.modal-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  z-index: 60;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.buy-menu-card {
  width: 780px;
  max-width: 92vw;
  background: var(--nl-bg-card);
  border: 1px solid var(--nl-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.12);
}

.buy-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--nl-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.buy-title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.buy-money-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.money-green {
  color: #2ecc71;
  font-family: var(--font-brand);
  font-size: 16px;
}

.buy-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.buy-category {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--nl-border);
  border-radius: 10px;
  padding: 14px;
}

.cat-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.weapon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nl-bg-input);
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.weapon-card:last-child { margin-bottom: 0; }

.weapon-card:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: #202740;
}

.w-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.w-name {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.w-desc {
  font-size: 10px;
  color: #8892b0;
}

.w-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.w-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cs-gold);
}

.btn-buy {
  background: #232c48;
  color: #fff;
  border: 1px solid var(--nl-border);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-buy:hover {
  background: var(--accent-cyan);
  color: #0b0e17;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Scoreboard Overlay */
.scoreboard-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  z-index: 55;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scoreboard-overlay.open { display: flex; }

.scoreboard-card {
  width: 820px;
  max-width: 94vw;
  background: var(--nl-bg-card);
  border: 1px solid var(--nl-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--nl-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.sb-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sb-logo {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 18px;
  color: var(--accent-cyan);
}

.sb-meta {
  font-size: 11px;
  color: #8892b0;
}

.sb-server-state {
  font-size: 11px;
  font-weight: 700;
  color: var(--cs-green);
}

.sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sb-table th {
  text-align: left;
  padding: 8px 12px;
  color: #7784a6;
  font-size: 10px;
  font-weight: 700;
  border-bottom: 1px solid var(--nl-border);
}

.sb-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sb-table tr.local-player {
  background: rgba(0, 210, 255, 0.09);
  font-weight: 700;
  color: #fff;
}

.sb-table tr.local-player td:first-child {
  border-left: 3px solid var(--accent-cyan);
}

.status-badge.alive { color: var(--cs-green); font-weight: 700; font-size: 11px; }
.status-badge.dead { color: #ff4757; font-size: 11px; }

/* ========================================================
   AUTHENTIC NEVERLOSE.CC STYLE CHEAT MENU (RAIJINSENSE)
   ======================================================== */
.neverlose-menu {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  height: 520px;
  max-width: 96vw;
  max-height: 94vh;
  background: var(--nl-bg-main);
  border: 1px solid var(--nl-border);
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 210, 255, 0.14);
  z-index: 50;
  overflow: hidden;
  pointer-events: auto;
  display: none;
}

/* Left Vertical Sidebar */
.nl-sidebar {
  width: 200px;
  height: 100%;
  background: var(--nl-bg-sidebar);
  border-right: 1px solid var(--nl-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.nl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--nl-border);
}

.nl-logo-icon {
  width: 28px;
  height: 28px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nl-title {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}

.nl-subtitle {
  font-size: 8px;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nl-nav-tabs {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  gap: 4px;
  overflow-y: auto;
}

.nl-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #7d8ba1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.nl-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.nl-tab.active {
  color: #fff;
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.1);
}

.nl-tab.active .nl-tab-icon {
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

.nl-tab-icon { font-size: 13px; }

.nl-user-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--nl-border);
  background: #0b0e18;
}

.nl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0077b6 100%);
  color: #0b0e17;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.nl-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nl-username {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.nl-badge-lifetime {
  font-size: 8px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

/* Right Content Area */
.nl-content-area {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--nl-bg-main);
  overflow: hidden;
}

.nl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--nl-border);
  background: #0d101a;
}

.nl-breadcrumbs {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nl-bc-root { color: #66728a; }
.nl-bc-sep { color: #444c5e; margin: 0 6px; }
.nl-bc-current { color: var(--accent-cyan); }

.menu-close-btn {
  background: none;
  border: none;
  color: #7784a6;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.menu-close-btn:hover { color: #fff; }

.nl-panes-wrap {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.nl-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nl-pane.active { display: grid; }

.nl-groupbox {
  background: var(--nl-bg-card);
  border: 1px solid var(--nl-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.nl-group-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--nl-border);
  padding-bottom: 6px;
}

.nl-ctrl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.nl-ctrl-label { color: #cfd8ea; }

.nl-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}

.nl-switch input { opacity: 0; width: 0; height: 0; }

.nl-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1e2438;
  transition: 0.2s;
  border-radius: 9999px;
  border: 1px solid var(--nl-border);
}

.nl-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: #7d8ba1;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .nl-slider {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

input:checked + .nl-slider:before {
  transform: translateX(14px);
  background-color: #0b0e17;
}

.nl-slider-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nl-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #cfd8ea;
}

.nl-slider-val {
  color: var(--accent-cyan);
  font-weight: 700;
}

.nl-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #1e2438;
  border-radius: 2px;
  outline: none;
}

.nl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nl-select {
  background: var(--nl-bg-input);
  color: #fff;
  border: 1px solid var(--nl-border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  outline: none;
  cursor: pointer;
}

.nl-select:focus {
  border-color: var(--accent-cyan);
}

/* ========================================================
   START SCREEN & SERVER BROWSER
   ======================================================== */
.start-screen-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 17, 28, 0.92) 0%, rgba(6, 7, 12, 0.98) 100%);
  backdrop-filter: blur(20px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.start-screen-card {
  width: 600px;
  max-width: 94vw;
  background: #0f121e;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 210, 255, 0.12);
  text-align: center;
}

.start-brand-header { margin-bottom: 22px; }

.start-game-title {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px var(--accent-cyan-glow));
  margin-bottom: 4px;
}

.start-game-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #8892b0;
}

.player-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141828;
  border: 1px solid var(--nl-border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  text-align: left;
}

.profile-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.profile-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.profile-input {
  background: none;
  border: none;
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  outline: none;
  width: 90%;
}

.profile-meta-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.profile-money {
  color: #2ecc71;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 800;
}

.profile-rank {
  font-size: 9px;
  background: #1e253c;
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.server-browser-section {
  text-align: left;
  margin-bottom: 18px;
}

.sb-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #7784a6;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.server-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141828;
  border: 1px solid var(--nl-border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.server-entry-card.selected {
  border-color: var(--accent-cyan);
  background: #181d32;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.15);
}

.srv-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.srv-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.srv-dot.online {
  background: var(--cs-green);
  box-shadow: 0 0 10px var(--cs-green);
}

.srv-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.srv-name {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.srv-sub {
  font-size: 10px;
  color: #8892b0;
}

.srv-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill {
  background: #1e253c;
  border: 1px solid var(--nl-border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
}

.pill-label { color: #8892b0; }
.pill-val { color: #fff; font-weight: 700; }

.key-hints-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 11px;
}

.key-hint-item span {
  color: var(--accent-cyan);
  font-weight: 700;
}

.btn-enter-game {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00d2ff 0%, #0077b6 100%);
  color: #080a12;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-enter-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 210, 255, 0.55);
}

.hidden-element {
  display: none !important;
}

/* Real Ping Badge */
.ping-ms-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

/* Pause Modal */
.pause-card {
  width: 520px;
  max-width: 92vw;
  background: var(--nl-bg-card);
  border: 1px solid var(--nl-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-nl);
  padding: 28px;
  text-align: center;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pause-header {
  margin-bottom: 22px;
}

.pause-title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.pause-sub {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.pause-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.p-meta-box {
  background: rgba(14, 18, 30, 0.85);
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-meta-lbl {
  font-size: 9px;
  color: var(--nl-text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.p-meta-val {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.pause-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-pause-primary {
  background: linear-gradient(135deg, #00d2ff, #0099ff);
  color: #040814;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 900;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-pause-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.5);
}

.btn-pause-secondary {
  background: rgba(22, 28, 46, 0.75);
  color: #e0e8f5;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.btn-pause-secondary:hover {
  background: rgba(30, 38, 64, 0.9);
  border-color: var(--accent-cyan);
  color: #fff;
}

.btn-pause-danger {
  background: rgba(255, 71, 87, 0.12);
  color: #ff6b81;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.btn-pause-danger:hover {
  background: rgba(255, 71, 87, 0.25);
  color: #fff;
}
