/* NexShooter – CS2-Inspired Style */

/* ─── Page Layout ─── */
.ns-page {
  padding: 1.5rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.ns-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.ns-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.ns-back-btn:hover { color: #fff; border-color: rgba(255,255,255,0.28); }
.ns-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
}
.ns-title span { color: #4cafdb; }
.ns-subtitle { color: rgba(255,255,255,0.28); font-size: 0.84rem; margin-left: auto; }

/* ─── Game Container ─── */
.ns-game-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0d1117;
  cursor: crosshair;
}
#ns-canvas { display: block; width: 100%; height: 100%; }

/* ─── Fullscreen Button ─── */
#ns-fullscreen-btn {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  z-index: 30;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.12s, color 0.12s;
}
#ns-fullscreen-btn:hover { background: rgba(0,0,0,0.85); color: #fff; }

/* ─── HUD ─── */
#ns-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

/* Damage vignette */
#ns-damage-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, transparent 20%, rgba(220,40,40,0.55) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s;
}

/* ─── Enemy HP Bar – top center ─── */
#ns-enemy-hp-section {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
}
.ns-enemy-label {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.35);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.ns-enemy-track {
  height: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
#ns-enemy-hp-bar {
  height: 100%;
  width: 100%;
  background: #e05252;
  transition: width 0.12s ease, background 0.2s;
}

/* Kill / notification */
#ns-notif {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s;
}

/* ─── CS2-Style Crosshair ─── */
#ns-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
}
#ns-crosshair::before {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 7px;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(100, 255, 100, 0.9);
  box-shadow: 0 16px 0 0 rgba(100, 255, 100, 0.9);
}
#ns-crosshair::after {
  content: '';
  position: absolute;
  height: 1.5px;
  width: 7px;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(100, 255, 100, 0.9);
  box-shadow: 16px 0 0 0 rgba(100, 255, 100, 0.9);
}

/* Hit Marker */
#ns-hitmarker {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.0rem;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  line-height: 1;
  transition: opacity 0.06s;
}

/* Muzzle Flash */
#ns-muzzleflash {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  background: radial-gradient(circle, rgba(255,200,50,0.9) 0%, rgba(255,100,10,0.45) 45%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.04s;
}

/* Reload Bar */
#ns-reload-bar {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  text-align: center;
  display: none;
}
.ns-reload-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ns-reload-track {
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
#ns-reload-fill {
  height: 100%;
  width: 0;
  background: rgba(255,255,255,0.55);
}

/* ─── Bottom HUD (CS2 Style) ─── */
#ns-bottom-hud {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 1.4rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  gap: 0.8rem;
}

/* Player HP – big number on left, label below, thin bar */
.ns-hp-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}
.ns-hp-label {
  display: flex;
  flex-direction: column-reverse; /* value large on top, label below */
  align-items: flex-start;
  gap: 1px;
}
.ns-hp-label span:first-child { /* "LEBEN" label */
  color: rgba(255,255,255,0.32);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#ns-hp-val {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ns-hp-track {
  height: 2px;
  background: rgba(255,255,255,0.1);
}
#ns-hp-bar {
  height: 100%;
  width: 100%;
  background: #78c278;
  transition: width 0.1s ease, background 0.25s;
}

/* Score/Round – compact center */
.ns-kd-section {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
}
.ns-kd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ns-kd-val {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ns-kd-label {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ns-kd-kills  .ns-kd-val   { color: #4cafdb; }
.ns-kd-kills  .ns-kd-label { color: rgba(76,175,219,0.45); }
.ns-kd-deaths .ns-kd-val   { color: #e89841; }
.ns-kd-deaths .ns-kd-label { color: rgba(232,152,65,0.45); }
.ns-kd-divider {
  color: rgba(255,255,255,0.22);
  font-size: 1.0rem;
  font-weight: 300;
  padding-bottom: 2px;
  text-align: center;
  line-height: 1.1;
}

/* Weapon – ammo big, right aligned */
.ns-weapon-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.ns-ammo-display {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}
.ns-ammo-display small {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}
.ns-wpn-name {
  color: rgba(255,255,255,0.35);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ns-weapon-slots { display: flex; gap: 4px; margin-top: 1px; }
.ns-weapon-slot {
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.26);
  font-size: 0.60rem;
  font-weight: 600;
  background: rgba(0,0,0,0.2);
  transition: all 0.1s;
}
.ns-weapon-slot.active {
  border-color: rgba(76,175,219,0.65);
  color: #4cafdb;
  background: rgba(76,175,219,0.08);
}

/* ─── Main Menu Overlay ─── */
#ns-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 20;
}

/* ─── Menu Card – CS2 Style ─── */
.ns-mm-card {
  background: rgba(11,14,18,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 2rem 2.1rem;
  width: min(370px, 92vw);
  box-shadow: 0 24px 64px rgba(0,0,0,0.95);
}
.ns-mm-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ns-mm-icon {
  font-size: 1.5rem;
  color: #4cafdb;
  margin-bottom: 0.3rem;
  filter: none;
}
.ns-mm-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}
.ns-mm-title span {
  color: #4cafdb;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.ns-mm-tag {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.22);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
.ns-mm-actions { display: flex; flex-direction: column; gap: 0.28rem; margin-bottom: 1.2rem; }
.ns-mm-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.72rem 1rem;
  border-radius: 4px;
  font-size: 0.91rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  border: 1px solid transparent;
  position: relative;
}
.ns-mm-btn i { font-size: 0.82rem; width: 18px; text-align: center; }
.ns-mm-btn:active { opacity: 0.85; }
.ns-mm-btn-primary { background: #4cafdb; color: #0b0e12; border-color: #4cafdb; }
.ns-mm-btn-primary:hover { background: #60c2e8; border-color: #60c2e8; }
.ns-mm-btn-rooms {
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.06);
  cursor: default;
}
.ns-mm-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.42);
  border-color: rgba(255,255,255,0.09);
}
.ns-mm-btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.18);
}
.ns-mm-soon {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 0.07rem 0.38rem;
  border-radius: 3px;
  margin-left: auto;
}
.ns-mm-hint { text-align: left; font-size: 0.64rem; color: rgba(255,255,255,0.16); margin: 0; }

/* Sub-pages */
.ns-mm-subheader { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; }
.ns-mm-back {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 3px;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.ns-mm-back:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ns-mm-subtitle { font-size: 1.05rem; font-weight: 700; margin: 0; color: #fff; }

/* Settings */
.ns-mm-settings { display: flex; flex-direction: column; gap: 1.2rem; }
.ns-mm-setting  { display: flex; flex-direction: column; gap: 0.48rem; }
.ns-mm-setting-info { display: flex; flex-direction: column; gap: 0.1rem; }
.ns-mm-setting-label {
  font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.68);
  display: flex; align-items: center; gap: 0.42rem;
}
.ns-mm-setting-label i { color: #4cafdb; font-size: 0.78rem; }
.ns-mm-setting-hint { font-size: 0.66rem; color: rgba(255,255,255,0.22); }
.ns-mm-setting-ctrl { display: flex; align-items: center; gap: 0.8rem; }
.ns-mm-slider {
  flex: 1; height: 2px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.12); outline: none; cursor: pointer;
}
.ns-mm-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #4cafdb; cursor: pointer; border: none;
}
.ns-mm-slider::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%;
  background: #4cafdb; cursor: pointer; border: none;
}
.ns-mm-slider-val {
  font-size: 0.80rem; font-weight: 700; color: #4cafdb;
  min-width: 34px; text-align: right; font-variant-numeric: tabular-nums;
}

/* Rooms placeholder */
.ns-mm-rooms-soon {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; padding: 1.2rem 0.5rem; text-align: center;
}
.ns-mm-rooms-soon > i  { font-size: 1.8rem; color: rgba(255,255,255,0.1); }
.ns-mm-rooms-soon > p  { font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.22); margin: 0; }
.ns-mm-rooms-soon > span { font-size: 0.74rem; color: rgba(255,255,255,0.14); line-height: 1.6; max-width: 260px; }

/* ─── Difficulty Buttons – Main Menu ─── */
.ns-mm-diff-btns { display: flex; gap: 0.28rem; }
.ns-mm-diff-btn {
  flex: 1; padding: 0.38rem 0.5rem; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.09); background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.32); font-size: 0.76rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.12s;
}
.ns-mm-diff-btn:hover { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.2); }
.ns-mm-diff-btn.active {
  background: rgba(76,175,219,0.12); border-color: rgba(76,175,219,0.38); color: #4cafdb;
}

/* ─── Match Result Banner ─── */
#ns-match-result {
  padding: 0.58rem 1rem; border-radius: 3px;
  font-size: 0.82rem; font-weight: 700; text-align: center;
  letter-spacing: 0.04em; margin-bottom: 1rem;
}
#ns-match-result.win {
  background: rgba(76,175,219,0.1); border: 1px solid rgba(76,175,219,0.28); color: #4cafdb;
}
#ns-match-result.lose {
  background: rgba(224,82,82,0.09); border: 1px solid rgba(224,82,82,0.25); color: #e05252;
}

/* ─── In-Game Pause Menu ─── */
#ns-pause-menu {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 25;
}
#ns-pause-menu.visible { display: flex; }

.ns-pm-card {
  background: rgba(11,14,18,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 1.6rem 1.8rem;
  min-width: 265px;
  max-width: 330px;
  width: 85%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}
.ns-pm-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ns-pm-icon {
  width: 28px; height: 28px;
  background: rgba(76,175,219,0.1);
  border: 1px solid rgba(76,175,219,0.22);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: #4cafdb; font-size: 0.78rem; flex-shrink: 0;
}
.ns-pm-title { font-size: 1.05rem; font-weight: 700; margin: 0; color: #fff; flex: 1; }
.ns-pm-round-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.38);
  font-size: 0.60rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.16rem 0.5rem; border-radius: 3px; white-space: nowrap;
}
.ns-pm-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
.ns-pm-score-block { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ns-pm-score-val {
  font-size: 1.75rem; font-weight: 800; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.ns-pm-score-lbl {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.26);
}
.ns-pm-score-sep { font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,0.16); margin-bottom: 0.75rem; }
.ns-pm-actions { display: flex; flex-direction: column; gap: 0.28rem; margin-bottom: 0.85rem; }
.ns-pm-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.58rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ns-pm-btn i { font-size: 0.75rem; width: 15px; text-align: center; }
.ns-pm-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: #fff; }
.ns-pm-btn-primary { background: #4cafdb; border-color: #4cafdb; color: #0b0e12; }
.ns-pm-btn-primary:hover { background: #60c2e8; border-color: #60c2e8; color: #0b0e12; }
.ns-pm-btn-danger { border-color: rgba(224,82,82,0.18); color: #e05252; }
.ns-pm-btn-danger:hover { background: rgba(224,82,82,0.08); border-color: rgba(224,82,82,0.36); }
.ns-pm-divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 0.8rem; }

/* ─── Pause Menu Settings ─── */
.ns-pm-settings { margin-bottom: 0.8rem; }
.ns-pm-settings-row { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.ns-pm-settings-row:last-child { margin-bottom: 0; }
.ns-pm-settings-label {
  font-size: 0.66rem; font-weight: 600; color: rgba(255,255,255,0.32);
  min-width: 40px; display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
}
.ns-pm-settings-label i { color: #4cafdb; font-size: 0.60rem; }
.ns-pm-slider {
  flex: 1; height: 2px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.10); outline: none; cursor: pointer;
}
.ns-pm-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #4cafdb; cursor: pointer; border: none;
}
.ns-pm-slider::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%; background: #4cafdb; cursor: pointer; border: none;
}
.ns-pm-slider-val {
  font-size: 0.70rem; font-weight: 700; color: #4cafdb;
  min-width: 24px; text-align: right; font-variant-numeric: tabular-nums;
}
.ns-pm-diff-btns { display: flex; gap: 0.24rem; flex: 1; }
.ns-pm-diff-btn {
  flex: 1; padding: 0.22rem 0.26rem; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.26); font-size: 0.64rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.12s;
}
.ns-pm-diff-btn:hover { color: rgba(255,255,255,0.52); border-color: rgba(255,255,255,0.16); }
.ns-pm-diff-btn.active {
  background: rgba(76,175,219,0.12); border-color: rgba(76,175,219,0.36); color: #4cafdb;
}

/* ─── Controls Mini ─── */
.ns-pm-controls-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.26rem 0.75rem;
}
.ns-pm-controls-mini > div {
  display: flex; align-items: center; gap: 0.32rem;
  font-size: 0.68rem; color: rgba(255,255,255,0.20);
}
.ns-pm-controls-mini kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.09rem 0.36rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 3px;
  color: rgba(255,255,255,0.38);
  font-size: 0.60rem; font-weight: 600; font-family: inherit;
  min-width: 22px; text-align: center; flex-shrink: 0;
}

/* ─── Screen Shake ─── */
@keyframes ns-shake {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3px, 2px); }
  40%  { transform: translate(3px, -2px); }
  60%  { transform: translate(-2px, 3px); }
  80%  { transform: translate(2px, -1px); }
  100% { transform: translate(0,0); }
}
.ns-shake { animation: ns-shake 0.2s ease; }

/* ─── Controls Info (below canvas) ─── */
.ns-controls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 0.85rem;
  padding: 0.75rem 1.1rem;
  background: rgba(11,14,18,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
}
.ns-control-item {
  display: flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.28); font-size: 0.78rem;
}
.ns-control-key {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.13rem 0.42rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.52);
  font-size: 0.66rem; font-weight: 600;
  min-width: 23px; text-align: center;
}

/* ─── Fullscreen adjustments ─── */
:fullscreen .ns-game-container,
:-webkit-full-screen .ns-game-container {
  border-radius: 0;
  max-height: 100vh;
  aspect-ratio: unset;
  width: 100vw;
  height: 100vh;
}

/* ─── Mode Selection ─── */
.ns-mode-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ns-mode-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
  width: 100%;
}
.ns-mode-card:hover {
  background: rgba(76,175,219,0.06);
  border-color: rgba(76,175,219,0.28);
}
.ns-mode-icon {
  width: 36px; height: 36px;
  background: rgba(76,175,219,0.1);
  border: 1px solid rgba(76,175,219,0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #4cafdb; font-size: 1.0rem; flex-shrink: 0;
}
.ns-mode-info { flex: 1; }
.ns-mode-name { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ns-mode-desc { font-size: 0.68rem; color: rgba(255,255,255,0.28); }
.ns-mode-arrow { color: rgba(255,255,255,0.15); font-size: 0.72rem; flex-shrink: 0; }

/* ─── Skin Selector ─── */
.ns-skin-section { margin-bottom: 1.1rem; }
.ns-skin-section:last-child { margin-bottom: 0; }
.ns-skin-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.ns-skin-label i { color: #4cafdb; }
.ns-skin-row { display: flex; gap: 0.35rem; }
.ns-skin-btn {
  flex: 1;
  padding: 0.55rem 0.4rem;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.38);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: all 0.12s;
  text-align: center;
}
.ns-skin-btn::before {
  content: '';
  display: block;
  width: 22px; height: 12px;
  border-radius: 2px;
  background: var(--clr, #1e2d3d);
  margin: 0 auto 5px;
  border: 1px solid rgba(255,255,255,0.12);
}
.ns-skin-btn:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.ns-skin-btn.active {
  border-color: #4cafdb;
  color: #4cafdb;
  background: rgba(76,175,219,0.08);
}

/* ─── Settings Button inside setting row ─── */
.ns-mm-setting-btn {
  padding: 0.42rem 0.8rem;
  font-size: 0.78rem;
  justify-content: flex-start;
}

/* ─── DM Scoreboard ─── */
#ns-dm-scoreboard {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  min-width: 130px;
  pointer-events: none;
}
.ns-dm-sb-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.38);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ns-dm-sb-row:last-child { border-bottom: none; }
.ns-dm-sb-row.ns-dm-sb-you { color: #4cafdb; }
.ns-dm-sb-rank { font-size: 0.56rem; min-width: 12px; color: rgba(255,255,255,0.2); }
.ns-dm-sb-name { flex: 1; font-weight: 600; }
.ns-dm-sb-kills { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 20px; text-align: right; }

/* ─── Responsive (original) ─── */
@media (max-width: 640px) {
  .ns-page { padding: 1rem 0.75rem 2rem; }
  .ns-game-container { aspect-ratio: 4/3; max-height: 58vh; }
  .ns-subtitle { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CS:GO / CS2 Complete Style Overhaul
   Font: Rajdhani (loaded in HTML head)
   Colors: --cs-orange #de9934 · --cs-ct #4b9cd3 · --cs-t #c8300a
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --cs-orange: #de9934;
  --cs-ct:     #4b9cd3;
  --cs-t:      #c8300a;
  --cs-panel:  rgba(16,19,24,0.98);
  --cs-border: rgba(255,255,255,0.07);
}

/* ── CS Crosshair (4 separate lines, no dot) ── */
#ns-crosshair { width: 0; height: 0; }
#ns-crosshair::before, #ns-crosshair::after { display: none; }
.cch {
  position: absolute;
  background: rgba(80,255,60,0.94);
  box-shadow: 0 0 2px rgba(0,0,0,0.9);
  pointer-events: none;
}
.cch.t { width: 2px; height: 9px; top: -13px; left: -1px; }
.cch.b { width: 2px; height: 9px; top:   4px; left: -1px; }
.cch.l { width: 9px; height: 2px; top:  -1px; left: -13px; }
.cch.r { width: 9px; height: 2px; top:  -1px; left:   4px; }

/* ── Kill Feed (top-right) ── */
#ns-killfeed {
  position: absolute;
  top: 62px; right: 10px;
  display: flex; flex-direction: column; gap: 3px;
  pointer-events: none; z-index: 8;
  max-width: 240px;
}
.cs-kf-entry {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.68);
  border-left: 3px solid var(--cs-orange);
  padding: 3px 8px 3px 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.80rem; font-weight: 600;
  color: #ccc; letter-spacing: 0.03em;
  animation: kfIn 0.15s ease;
  transition: opacity 0.3s, transform 0.3s;
}
.cs-kf-you  { border-left-color: #57d99a; color: #fff; }
.cs-kf-dead { border-left-color: var(--cs-t); }
@keyframes kfIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Bottom HUD grid ── */
#ns-bottom-hud {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  padding: 0 20px 16px;
  gap: 0;
}

/* LEFT – Health */
.cs-hud-left { display: flex; flex-direction: column; gap: 4px; }
.cs-hp-row   { display: flex; align-items: baseline; gap: 7px; }
.cs-hp-icon  { font-size: 1.1rem; color: rgba(255,255,255,0.38); line-height: 1; }
.cs-hp-num {
  font-family: 'Rajdhani', sans-serif; font-size: 3.6rem; font-weight: 700;
  color: #fff; line-height: 1; font-variant-numeric: tabular-nums;
}
.cs-hp-bar-wrap { height: 3px; background: rgba(255,255,255,0.1); width: 110px; }
#ns-hp-bar   { height: 100%; background: #57a958; transition: width 0.1s, background 0.25s; }

/* CENTER – Score */
.cs-hud-center {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding-bottom: 6px;
}
.cs-score-row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Rajdhani', sans-serif; font-size: 2.0rem; font-weight: 700; line-height: 1;
}
.cs-score-ct  { color: var(--cs-ct); font-variant-numeric: tabular-nums; }
.cs-score-sep { color: rgba(255,255,255,0.20); font-size: 1.4rem; }
.cs-score-t   { color: var(--cs-orange); font-variant-numeric: tabular-nums; }
.cs-round-row {
  font-family: 'Rajdhani', sans-serif; font-size: 0.60rem; font-weight: 700;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.26); text-transform: uppercase;
}

/* RIGHT – Ammo */
.cs-hud-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cs-ammo-display {
  font-family: 'Rajdhani', sans-serif; font-size: 3.6rem; font-weight: 700;
  color: #fff; line-height: 1; font-variant-numeric: tabular-nums; text-align: right;
}
.cs-ammo-display small { font-size: 1.25rem; color: rgba(255,255,255,0.32); font-weight: 500; }
.cs-wpn-name {
  font-family: 'Rajdhani', sans-serif; font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28);
}
.cs-wpn-slots { display: flex; gap: 3px; margin-top: 3px; }
.cs-wpn-slot {
  padding: 2px 9px;
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.20);
  font-family: 'Rajdhani', sans-serif; font-size: 0.72rem; font-weight: 700;
  background: rgba(0,0,0,0.22); transition: all 0.1s;
}
.cs-wpn-slot.active { border-color: var(--cs-ct); color: var(--cs-ct); background: rgba(75,156,211,0.12); }

/* Enemy HP bar (1v1 mode) */
#ns-enemy-hp-section {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cs-ehp-inner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.58); border: 1px solid rgba(255,255,255,0.07); padding: 4px 12px;
}
.cs-ehp-label {
  font-family: 'Rajdhani', sans-serif; font-size: 0.57rem; font-weight: 700;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.25);
}
.cs-ehp-bar-wrap { width: 100px; height: 3px; background: rgba(255,255,255,0.1); }
#ns-enemy-hp-bar { height: 100%; background: var(--cs-t); transition: width 0.12s; }
.cs-ehp-val {
  font-family: 'Rajdhani', sans-serif; font-size: 0.80rem; font-weight: 700;
  color: rgba(255,255,255,0.50); min-width: 22px;
}

/* Reload bar */
#ns-reload-bar {
  position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%);
  width: 120px; text-align: center; display: none;
}
.cs-rl-label {
  font-family: 'Rajdhani', sans-serif; font-size: 0.57rem; font-weight: 700;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.32); display: block; margin-bottom: 4px;
}
.cs-rl-track { height: 2px; background: rgba(255,255,255,0.12); overflow: hidden; }
#ns-reload-fill { height: 100%; width: 0; background: var(--cs-orange); }

/* DM scoreboard — top-LEFT so it doesn't collide with kill feed (top-right) */
#ns-dm-scoreboard {
  position: absolute; top: 8px; left: 10px;
  background: rgba(0,0,0,0.70); border: 1px solid rgba(255,255,255,0.08);
  padding: 5px 8px; min-width: 148px; pointer-events: none;
}

/* Kill feed — top-RIGHT, clear of scoreboard */
#ns-killfeed {
  top: 8px; right: 10px;
}

/* ── Minimap (CS:GO radar, bottom-left) ── */
#ns-minimap {
  position: absolute;
  bottom: 100px;
  left: 10px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 3px;
  display: none;
  pointer-events: none;
  z-index: 6;
  image-rendering: pixelated;
}
#ns-minimap-label {
  position: absolute;
  bottom: 256px;
  left: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.22);
  pointer-events: none;
  z-index: 6;
  display: none;
}
.ns-dm-sb-row {
  display: flex; align-items: center; gap: 5px; padding: 2px 0;
  font-family: 'Rajdhani', sans-serif; font-size: 0.70rem; font-weight: 600;
  color: rgba(255,255,255,0.32); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ns-dm-sb-row:last-child { border-bottom: none; }
.ns-dm-sb-row.ns-dm-sb-you { color: var(--cs-ct); }
.ns-dm-sb-rank { font-size: 0.54rem; min-width: 11px; color: rgba(255,255,255,0.18); }
.ns-dm-sb-name { flex: 1; }
.ns-dm-sb-kills { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }

/* Notification */
#ns-notif {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   MAIN MENU  –  CS:GO Left Panel
   ══════════════════════════════════════════════════════ */
#ns-overlay {
  background: rgba(0,0,0,0.87);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
}
.cs-menu-wrap {
  width: 100%; height: 100%;
  display: flex; align-items: stretch;
}
.cs-menu-left {
  width: min(300px, 85%);
  min-height: 100%;
  background: var(--cs-panel);
  border-right: 1px solid var(--cs-border);
  display: flex; flex-direction: column;
  overflow-y: auto;
}

/* Logo */
.cs-logo { padding: 1.4rem 1.4rem 1.1rem; border-bottom: 1px solid var(--cs-border); }
.cs-logo-icon { font-size: 1.5rem; color: var(--cs-orange); margin-bottom: 0.35rem; }
.cs-logo-text {
  font-family: 'Rajdhani', sans-serif; font-size: 2.1rem; font-weight: 700;
  line-height: 1; letter-spacing: 0.04em;
}
.cs-logo-nex   { color: #fff; }
.cs-logo-shoot { color: var(--cs-orange); }
.cs-logo-tag {
  font-family: 'Rajdhani', sans-serif; font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.20); margin-top: 4px;
}

/* Nav */
.cs-nav { display: flex; flex-direction: column; padding: 0.5rem 0; flex: 1; }
.cs-nav-btn {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.88rem 1.4rem;
  font-family: 'Rajdhani', sans-serif; font-size: 0.90rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(200,198,192,0.50);
  background: transparent; border: none; border-left: 3px solid transparent;
  cursor: pointer; transition: all 0.12s; text-align: left; width: 100%; position: relative;
}
.cs-nav-btn i { font-size: 0.78rem; width: 16px; text-align: center; flex-shrink: 0; }
.cs-nav-btn:hover { color: #fff; background: rgba(255,255,255,0.04); border-left-color: rgba(255,255,255,0.18); }
.cs-nav-play {
  background: rgba(222,153,52,0.12); color: var(--cs-orange); border-left-color: var(--cs-orange);
  font-size: 1.02rem;
}
.cs-nav-play:hover { background: rgba(222,153,52,0.22); color: #f0ab48; border-left-color: #f0ab48; }
.cs-nav-dimmed { opacity: 0.30; cursor: default; pointer-events: none; }
.cs-badge-soon {
  font-size: 0.50rem; font-weight: 700; letter-spacing: 0.1em;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  padding: 1px 5px; color: rgba(255,255,255,0.22); margin-left: auto;
}
.cs-nav-sm {
  padding: 0.5rem 0.85rem; font-size: 0.78rem; border-left-width: 0;
  border: 1px solid rgba(255,255,255,0.09); margin: 0 1.4rem;
  width: calc(100% - 2.8rem); justify-content: flex-start; border-radius: 1px;
}
.cs-nav-sm:hover { border-color: rgba(255,255,255,0.2); border-left-width: 0; }
.cs-hint-bar {
  padding: 0.65rem 1.4rem; border-top: 1px solid var(--cs-border); margin-top: auto;
  font-family: 'Rajdhani', sans-serif; font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.09em; color: rgba(255,255,255,0.12);
}

/* Match result */
#ns-match-result {
  margin: 0.6rem 1.4rem 0; padding: 0.55rem 0.9rem; border-radius: 1px;
  font-family: 'Rajdhani', sans-serif; font-size: 0.84rem; font-weight: 700;
  letter-spacing: 0.04em; text-align: center;
}
#ns-match-result.win  { background: rgba(75,156,211,0.10); border: 1px solid rgba(75,156,211,0.24); color: var(--cs-ct); }
#ns-match-result.lose { background: rgba(200,48,10,0.09);  border: 1px solid rgba(200,48,10,0.22);  color: #e06050; }

/* Sub-page shared */
.cs-sub .cs-menu-left { padding: 0; }
.cs-sub-header {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.0rem 1.4rem; border-bottom: 1px solid var(--cs-border);
}
.cs-back-btn {
  width: 26px; height: 26px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09); color: rgba(255,255,255,0.38);
  font-size: 0.72rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-family: inherit; transition: all 0.12s; flex-shrink: 0;
}
.cs-back-btn:hover { background: rgba(255,255,255,0.10); color: #fff; }
.cs-sub-title {
  font-family: 'Rajdhani', sans-serif; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.50); text-transform: uppercase;
}

/* Mode cards */
.cs-mode-list { display: flex; flex-direction: column; padding: 0.4rem 0; }
.cs-mode-card {
  display: flex; align-items: center; gap: 0; padding: 0;
  cursor: pointer; font-family: inherit; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05); color: #fff; text-align: left;
  width: 100%; transition: background 0.12s; overflow: hidden;
}
.cs-mode-card:hover { background: rgba(255,255,255,0.04); }
.cs-mode-img { width: 80px; height: 56px; flex-shrink: 0; background-size: cover; background-position: center; }
.cs-mode-img-duel { background: linear-gradient(135deg, #141c2e 0%, #1a2a40 100%); }
.cs-mode-img-dm   { background: linear-gradient(135deg, #251508 0%, #38200a 100%); }
.cs-mode-info { padding: 0.7rem 0.9rem; flex: 1; }
.cs-mode-name {
  font-family: 'Rajdhani', sans-serif; font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.04em; color: #fff; margin-bottom: 2px;
}
.cs-mode-desc { font-size: 0.60rem; color: rgba(255,255,255,0.26); line-height: 1.4; }
.cs-mode-arrow { color: rgba(255,255,255,0.14); font-size: 0.68rem; padding-right: 1rem; }

/* Settings */
.cs-settings-list { display: flex; flex-direction: column; padding: 0.3rem 0; }
.cs-setting {
  padding: 0.85rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.cs-setting-label {
  font-family: 'Rajdhani', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.05em; color: rgba(200,198,192,0.68);
  display: flex; align-items: center; gap: 0.4rem;
}
.cs-setting-label i { color: var(--cs-ct); font-size: 0.74rem; }
.cs-setting-hint { font-size: 0.60rem; color: rgba(255,255,255,0.19); }
.cs-setting-ctrl { display: flex; align-items: center; gap: 0.7rem; }
.cs-slider {
  flex: 1; height: 2px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.12); outline: none; cursor: pointer;
}
.cs-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--cs-orange); cursor: pointer; border: none;
}
.cs-slider::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%; background: var(--cs-orange); cursor: pointer; border: none;
}
.cs-slider-val {
  font-family: 'Rajdhani', sans-serif; font-size: 0.80rem; font-weight: 700;
  color: var(--cs-orange); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums;
}
.cs-diff-row { display: flex; gap: 0.25rem; }
.cs-diff-btn {
  flex: 1; padding: 0.36rem 0.35rem; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02); color: rgba(255,255,255,0.28); font-size: 0.70rem;
  font-weight: 700; cursor: pointer; font-family: 'Rajdhani', sans-serif; transition: all 0.12s;
}
.cs-diff-btn:hover { color: rgba(255,255,255,0.62); border-color: rgba(255,255,255,0.18); }
.cs-diff-btn.active { background: rgba(222,153,52,0.12); border-color: rgba(222,153,52,0.38); color: var(--cs-orange); }

/* Skin selector */
.cs-skin-group { padding: 0.85rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cs-skin-label {
  font-family: 'Rajdhani', sans-serif; font-size: 0.60rem; font-weight: 700;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.24); text-transform: uppercase; margin-bottom: 0.48rem;
}
.cs-skin-row { display: flex; gap: 0.28rem; }
.cs-skin-btn {
  flex: 1; padding: 0.52rem 0.32rem; border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02); color: rgba(255,255,255,0.32); font-size: 0.58rem;
  font-weight: 700; cursor: pointer; font-family: 'Rajdhani', sans-serif;
  position: relative; transition: all 0.12s; text-align: center;
}
.cs-skin-btn::before {
  content: ''; display: block; width: 22px; height: 10px; border-radius: 1px;
  background: var(--clr, #1e2d3d); margin: 0 auto 4px; border: 1px solid rgba(255,255,255,0.10);
}
.cs-skin-btn:hover { border-color: rgba(255,255,255,0.20); color: rgba(255,255,255,0.70); }
.cs-skin-btn.active { border-color: var(--cs-orange); color: var(--cs-orange); background: rgba(222,153,52,0.08); }

/* Server browser */
.cs-coming-soon-panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; padding: 2rem 1.4rem; text-align: center; flex: 1;
}
.cs-coming-soon-panel > i    { font-size: 2rem; color: rgba(255,255,255,0.08); }
.cs-coming-soon-panel > p    { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.18); margin: 0; letter-spacing: 0.05em; }
.cs-coming-soon-panel > span { font-size: 0.70rem; color: rgba(255,255,255,0.13); line-height: 1.6; max-width: 210px; }

/* ══════════════════════════════════════════════════════
   PAUSE MENU  –  CS:GO Style
   ══════════════════════════════════════════════════════ */
#ns-pause-menu {
  background: rgba(0,0,0,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cs-pm-card {
  background: var(--cs-panel); border: 1px solid var(--cs-border);
  padding: 1.4rem 1.6rem; min-width: 258px; max-width: 308px; width: 85%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.95);
}
.cs-pm-top {
  display: flex; align-items: center; gap: 0.8rem;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--cs-border); margin-bottom: 0.9rem;
}
.cs-pm-logo  { font-size: 1.3rem; color: var(--cs-orange); }
.cs-pm-title {
  font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: #fff; letter-spacing: 0.08em;
}
.cs-pm-sub {
  font-family: 'Rajdhani', sans-serif; font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.26); text-transform: uppercase; margin-top: 1px;
}
.cs-pm-score {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.7rem 0.8rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); margin-bottom: 0.9rem;
}
.cs-pm-score-block { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cs-pm-sv {
  font-family: 'Rajdhani', sans-serif; font-size: 1.85rem; font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.cs-pm-sv.ct { color: var(--cs-ct); }
.cs-pm-sv.t  { color: var(--cs-orange); }
.cs-pm-sl {
  font-family: 'Rajdhani', sans-serif; font-size: 0.50rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.22);
}
.cs-pm-colon { font-size: 1.2rem; font-weight: 300; color: rgba(255,255,255,0.13); margin-bottom: 0.5rem; }
.cs-pm-actions { display: flex; flex-direction: column; gap: 0.24rem; margin-bottom: 0.8rem; }
.cs-pm-btn {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.56rem 0.85rem; border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.48);
  font-family: 'Rajdhani', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all 0.12s;
}
.cs-pm-btn i { font-size: 0.70rem; width: 14px; text-align: center; }
.cs-pm-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); color: #fff; }
.cs-pm-play    { background: rgba(222,153,52,0.11); border-color: rgba(222,153,52,0.32); color: var(--cs-orange); }
.cs-pm-play:hover { background: rgba(222,153,52,0.20); color: #f0ab48; }
.cs-pm-restart { border-color: rgba(200,48,10,0.16); color: #c06050; }
.cs-pm-restart:hover { background: rgba(200,48,10,0.07); border-color: rgba(200,48,10,0.32); }
.cs-pm-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0.75rem 0; }
.cs-pm-settings { display: flex; flex-direction: column; gap: 0.48rem; margin-bottom: 0.75rem; }
.cs-pm-row { display: flex; align-items: center; gap: 0.55rem; }
.cs-pm-lbl {
  font-family: 'Rajdhani', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.10em; color: rgba(255,255,255,0.28); min-width: 54px;
  display: flex; align-items: center; gap: 0.3rem;
}
.cs-pm-lbl i { color: var(--cs-ct); font-size: 0.56rem; }
.cs-pm-slider {
  flex: 1; height: 2px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.10); outline: none; cursor: pointer;
}
.cs-pm-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%;
  background: var(--cs-orange); cursor: pointer; border: none;
}
.cs-pm-slider::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%; background: var(--cs-orange); cursor: pointer; border: none;
}
.cs-pm-val {
  font-family: 'Rajdhani', sans-serif; font-size: 0.70rem; font-weight: 700;
  color: var(--cs-orange); min-width: 24px; text-align: right; font-variant-numeric: tabular-nums;
}
.cs-pm-diff { display: flex; gap: 0.22rem; flex: 1; }
.cs-pm-diff-btn {
  flex: 1; padding: 0.20rem 0.22rem; border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.24); font-size: 0.58rem;
  font-weight: 700; cursor: pointer; font-family: 'Rajdhani', sans-serif; transition: all 0.12s;
}
.cs-pm-diff-btn:hover { color: rgba(255,255,255,0.52); }
.cs-pm-diff-btn.active { background: rgba(222,153,52,0.12); border-color: rgba(222,153,52,0.36); color: var(--cs-orange); }
.cs-pm-controls {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.20rem 0.55rem;
}
.cs-pm-controls > div {
  display: flex; align-items: center; gap: 0.30rem;
  font-family: 'Rajdhani', sans-serif; font-size: 0.62rem; color: rgba(255,255,255,0.17);
}
.cs-pm-controls kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.08rem 0.30rem; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09); color: rgba(255,255,255,0.34);
  font-size: 0.56rem; font-weight: 700; font-family: 'Rajdhani', sans-serif;
  min-width: 22px; flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .cs-menu-left { width: 100%; }
  .cs-hp-num, .cs-ammo-display { font-size: 2.4rem; }
  .cs-logo-text { font-size: 1.7rem; }
  #ns-bottom-hud { padding: 0 12px 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   HUD Layout — Patch v2
   Radar: top-left · Score: top-center · Killfeed: below radar
   Scoreboard: middle-left
   ═══════════════════════════════════════════════════════════════ */

/* Radar top-left */
#ns-minimap {
  bottom: auto !important;
  top: 8px !important;
  left: 10px !important;
}
#ns-minimap-label {
  bottom: auto !important;
  top: 162px !important;
  left: 10px !important;
}

/* Kill feed: top-right */
#ns-killfeed {
  top: 8px !important;
  right: 10px !important;
  left: auto !important;
  max-width: 240px;
}

/* DM Scoreboard: middle-left */
#ns-dm-scoreboard {
  top: 50% !important;
  right: auto !important;
  left: 10px !important;
  transform: translateY(-50%);
}

/* Top-center score display */
#ns-top-score {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.58);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 5px 16px 4px;
  pointer-events: none;
  z-index: 6;
}
.ns-ts-ct  { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--cs-ct); font-variant-numeric: tabular-nums; }
.ns-ts-t   { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--cs-orange); font-variant-numeric: tabular-nums; }
.ns-ts-sep { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 300; color: rgba(255,255,255,0.20); }
.ns-ts-rnd {
  font-family: 'Rajdhani', sans-serif; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.26); text-transform: uppercase;
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}

/* Bottom HUD: only 2 columns (HP left, ammo right) */
#ns-bottom-hud {
  grid-template-columns: auto 1fr auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   INVENTAR page
   ═══════════════════════════════════════════════════════════════ */
.cs-inv-panel {
  width: min(420px, 94vw) !important;
}
.cs-inv-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0 0.8rem;
}
.cs-inv-cat {
  padding: 0.8rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cs-inv-cat:last-child { border-bottom: none; }
.cs-inv-cat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.28); text-transform: uppercase;
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.cs-inv-cat-label i { color: var(--cs-ct); font-size: 0.60rem; }
.cs-inv-row { display: flex; gap: 0.5rem; }
.cs-inv-slot {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.4rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  cursor: pointer; font-family: 'Rajdhani', sans-serif;
  transition: all 0.14s;
  position: relative;
}
.cs-inv-slot:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.05);
}
.cs-inv-owned  { cursor: pointer; }
.cs-inv-active {
  border-color: var(--cs-orange) !important;
  background: rgba(222,153,52,0.08) !important;
}
.cs-inv-locked {
  opacity: 0.38;
  cursor: default !important;
}
.cs-inv-wpn-icon {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.30);
  height: 2rem; display: flex; align-items: center;
}
.cs-inv-active .cs-inv-wpn-icon { color: var(--cs-orange); }
.cs-inv-wpn-name {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.70); text-align: center;
}
.cs-inv-active .cs-inv-wpn-name { color: #fff; }
.cs-inv-wpn-stat {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.28); text-align: center;
}
.cs-inv-wpn-soon {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.10em;
  color: rgba(255,255,255,0.22); text-align: center;
  background: rgba(255,255,255,0.04);
  padding: 1px 5px;
}

/* ── Death Screen ── */
#ns-death-screen {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  z-index: 18; pointer-events: none;
  transition: background 0.45s ease;
}
#ns-death-screen.ns-ds-active { background: rgba(0,0,0,0.88); }
.ns-ds-inner { text-align: center; opacity: 0; transition: opacity 0.4s ease 0.2s; }
#ns-death-screen.ns-ds-active .ns-ds-inner { opacity: 1; }
.ns-ds-label {
  font-family: 'Rajdhani', sans-serif; font-size: 0.70rem; font-weight: 700;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 0.5rem;
}
.ns-ds-killer {
  font-family: 'Rajdhani', sans-serif; font-size: 2.6rem; font-weight: 800;
  color: var(--cs-t); letter-spacing: 0.04em; line-height: 1; margin-bottom: 0.6rem;
}
.ns-ds-timer {
  font-family: 'Rajdhani', sans-serif; font-size: 0.70rem; font-weight: 600;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.22); text-transform: uppercase;
}

/* ── Spawn invincibility flash on HP bar ── */
@keyframes invincFlash {
  0%,100% { opacity: 1; } 50% { opacity: 0.25; }
}
.ns-invincible #ns-hp-bar { animation: invincFlash 0.4s infinite; background: #4b9cd3 !important; }
