/* ====== NEON STRIKE — UI ====== */
:root {
  --cyan: #00f0ff;
  --magenta: #ff2d78;
  --orange: #ff9a3d;
  --bg-deep: #05060f;
  --panel: rgba(8, 12, 28, 0.72);
  --panel-border: rgba(0, 240, 255, 0.25);
  --text: #dfe9ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  color: var(--text);
  user-select: none;
}

#game { position: fixed; inset: 0; display: block; }

.hidden { display: none !important; }

/* ================= MENU ================= */
.menu {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 45, 120, 0.12), transparent 55%),
    radial-gradient(ellipse at 50% -20%, rgba(0, 240, 255, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(5, 6, 15, 0.55) 0%, rgba(5, 6, 15, 0.82) 100%);
  z-index: 50;
  backdrop-filter: blur(2px);
}

.menu-inner {
  max-height: 96vh;
  overflow: auto;
  text-align: center;
  animation: menuIn 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.logo-neon {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.85), 0 0 60px rgba(0, 240, 255, 0.4);
}

.logo-strike {
  color: #fff;
  margin-left: 0.18em;
  text-shadow: 0 0 14px rgba(255, 45, 120, 0.9), 0 0 50px rgba(255, 45, 120, 0.45);
  -webkit-text-stroke: 1px rgba(255, 45, 120, 0.6);
}

.tagline {
  margin-top: 10px;
  font-size: 17px; font-weight: 500;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: rgba(223, 233, 255, 0.55);
}

.menu-card {
  margin: 42px auto 0;
  width: min(380px, 86vw);
  padding: 28px 26px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.07), inset 0 1px 0 rgba(255,255,255,0.06);
}

#nameInput {
  width: 100%; padding: 13px 16px;
  font-family: inherit; font-size: 18px; font-weight: 600;
  color: var(--text); letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#nameInput:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

#passInput {
  width: 100%; margin-top: 10px; padding: 11px 16px;
  font-family: inherit; font-size: 16px; font-weight: 500;
  color: var(--text); letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#passInput:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 154, 61, 0.12);
}
.pass-hint {
  margin-top: 7px; font-size: 12.5px; line-height: 1.4;
  color: rgba(223, 233, 255, 0.4); text-align: left;
}

.play-btn {
  width: 100%; margin-top: 16px; padding: 15px;
  font-family: 'Orbitron', sans-serif;
  font-size: 19px; font-weight: 700; letter-spacing: 0.22em;
  color: #02131a; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #36ffb5);
  border: none; border-radius: 8px;
  box-shadow: 0 4px 26px rgba(0, 240, 255, 0.35);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}

.play-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 34px rgba(0, 240, 255, 0.5); }
.play-btn:active { transform: translateY(0); }

.menu-status { margin-top: 12px; min-height: 18px; font-size: 14px; color: var(--magenta); }

.controls-help {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  max-width: 620px;
  font-size: 14px; color: rgba(223, 233, 255, 0.5);
}

.controls-help b { color: rgba(0, 240, 255, 0.8); font-weight: 600; }

/* ================= HUD ================= */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

/* --- crosshair --- */
.crosshair {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  --gap: 7px;
}

.ch-line {
  position: absolute; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 4px rgba(0, 240, 255, 0.8);
  transition: none;
}

.ch-t { left: -1px; top: calc(-1 * var(--gap) - 9px); width: 2px; height: 9px; }
.ch-b { left: -1px; top: var(--gap); width: 2px; height: 9px; }
.ch-l { top: -1px; left: calc(-1 * var(--gap) - 9px); width: 9px; height: 2px; }
.ch-r { top: -1px; left: var(--gap); width: 9px; height: 2px; }
.ch-dot { position: absolute; left: -1.5px; top: -1.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); }

/* --- hitmarker --- */
.hitmarker { position: absolute; left: 50%; top: 50%; opacity: 0; }
.hitmarker span {
  position: absolute; width: 11px; height: 2.5px;
  background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.9);
}
.hitmarker span:nth-child(1) { transform: translate(-14px, -10px) rotate(45deg); }
.hitmarker span:nth-child(2) { transform: translate(3px, -10px) rotate(-45deg); }
.hitmarker span:nth-child(3) { transform: translate(-14px, 8px) rotate(-45deg); }
.hitmarker span:nth-child(4) { transform: translate(3px, 8px) rotate(45deg); }
.hitmarker.show { animation: hitPop 0.18s ease-out; }
.hitmarker.headshot span { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
@keyframes hitPop { 0% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(0.9); } }

/* --- panneau PV --- */
.hp-panel {
  position: absolute; left: 26px; bottom: 24px;
  width: 260px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.hp-bar-wrap {
  height: 10px; border-radius: 5px; overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hp-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #36ffb5, var(--cyan));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  transition: width 0.25s ease, background 0.25s;
  border-radius: 5px;
}

.hp-bar.low { background: linear-gradient(90deg, #ff3636, var(--magenta)); box-shadow: 0 0 12px rgba(255, 45, 120, 0.7); }

.hp-row { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; }
.hp-text { font-family: 'Orbitron', sans-serif; font-size: 30px; font-weight: 700; color: #fff; }
.hp-label { font-size: 13px; letter-spacing: 0.3em; color: rgba(223,233,255,0.45); }

/* --- munitions --- */
.ammo-panel {
  position: absolute; right: 26px; bottom: 24px;
  min-width: 220px;
  padding: 14px 20px;
  text-align: right;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.weapon-name {
  font-size: 15px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
}

.ammo-row { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; margin-top: 2px; }
.ammo-mag { font-family: 'Orbitron', sans-serif; font-size: 40px; font-weight: 900; color: #fff; line-height: 1; }
.ammo-mag.empty { color: var(--magenta); }
.ammo-sep, .ammo-max { font-size: 18px; color: rgba(223,233,255,0.45); font-weight: 600; }

.reload-hint { margin-top: 4px; font-size: 13px; letter-spacing: 0.2em; color: var(--orange); animation: blink 0.7s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.grenade-count {
  margin-top: 5px;
  font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--orange);
}
.grenade-count.empty { color: rgba(223,233,255,0.3); }

.weapon-slots { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.slot {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: rgba(223,233,255,0.4);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 5px;
}
.slot.active { color: #02131a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,240,255,0.5); }

/* --- killfeed --- */
.killfeed {
  position: absolute; top: 20px; left: 24px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 15px; font-weight: 600;
}

.kf-entry {
  padding: 6px 12px;
  background: var(--panel);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  animation: kfIn 0.25s ease-out, kfOut 0.5s ease-in 5s forwards;
}
.kf-entry .killer { color: var(--cyan); }
.kf-entry .victim { color: var(--magenta); }
.kf-entry .wpn { color: rgba(223,233,255,0.55); margin: 0 6px; font-weight: 500; }
.kf-entry.me { border-left-color: var(--orange); background: rgba(40, 22, 6, 0.75); }
.kf-entry .hs { color: var(--orange); margin-left: 5px; }
@keyframes kfIn { from { opacity: 0; transform: translateX(-16px); } }
@keyframes kfOut { to { opacity: 0; transform: translateX(-16px); } }

/* --- bannière de kill --- */
.kill-banner {
  position: absolute; left: 50%; top: 26%;
  transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 700; letter-spacing: 0.14em;
  color: #fff; text-align: center;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.9);
  animation: bannerIn 2.2s ease-out forwards;
}
.kill-banner .kb-sub { display: block; font-family: 'Rajdhani'; font-size: 15px; letter-spacing: 0.3em; color: var(--orange); margin-top: 4px; }
@keyframes bannerIn {
  0% { opacity: 0; transform: translateX(-50%) scale(1.3); }
  12% { opacity: 1; transform: translateX(-50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- radar --- */
.radar-wrap { position: absolute; top: 20px; right: 22px; text-align: right; }
#radar {
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(5, 8, 20, 0.72);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.10);
}
.net-stats { margin-top: 6px; font-size: 12.5px; letter-spacing: 0.1em; color: rgba(223,233,255,0.5); }

.quick-score {
  position: absolute; top: 212px; right: 22px;
  font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--text); text-align: right;
}

/* --- menu pause --- */
.pause-menu {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 5, 12, 0.72);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  z-index: 25;
}
.pause-panel {
  width: min(420px, 92vw);
  max-height: 92vh;
  overflow: auto;
  padding: 26px 30px;
  background: rgba(6, 10, 24, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.14);
  animation: menuIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.pause-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px; font-weight: 900; letter-spacing: 0.26em;
  color: var(--cyan); text-align: center; margin-bottom: 16px;
}
.pause-btn {
  width: 100%; margin-top: 9px; padding: 12px;
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: filter 0.15s, transform 0.1s;
}
.pause-btn:hover { filter: brightness(1.3); transform: translateY(-1px); }
.pause-btn.primary { background: linear-gradient(135deg, var(--cyan), #36ffb5); color: #02131a; border: none; }
.pause-btn.danger { color: var(--magenta); border-color: rgba(255, 45, 120, 0.35); margin-top: 18px; }
.pause-section {
  margin: 18px 0 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em;
  color: rgba(223,233,255,0.45);
}
.pause-row { display: flex; gap: 8px; }
.pause-chip {
  flex: 1; padding: 8px;
  font-family: 'Rajdhani', sans-serif; font-size: 14.5px; font-weight: 700;
  color: rgba(223,233,255,0.6); cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
}
.pause-chip.active { color: #02131a; background: var(--cyan); border-color: var(--cyan); }
.pause-controls { font-size: 14px; line-height: 1.8; color: rgba(223,233,255,0.6); }
.pause-controls b { color: rgba(0, 240, 255, 0.85); }

/* styles de viseur */
.crosshair.style-dot .ch-line { display: none; }
.crosshair.style-dot .ch-dot { width: 4px; height: 4px; left: -2px; top: -2px; }
.crosshair.style-off .ch-line, .crosshair.style-off .ch-dot { display: none; }

/* --- flashbang --- */
.flash-blind {
  position: absolute; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}

/* --- dégâts --- */
.damage-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(255, 20, 50, 0.55) 100%);
  opacity: 0; transition: opacity 0.12s;
}

.damage-dir {
  position: absolute; left: 50%; top: 50%;
  width: 120px; height: 120px; margin: -60px 0 0 -60px;
  opacity: 0;
}
.damage-dir::before {
  content: '';
  position: absolute; left: 50%; top: -34px;
  width: 0; height: 0; margin-left: -16px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 24px solid rgba(255, 40, 70, 0.85);
  filter: blur(1px);
}

/* --- scope --- */
.scope { position: absolute; inset: 0; background: transparent; }
.scope-circle {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 31vmin, rgba(0,0,0,0.97) 32vmin);
}
.scope-line { position: absolute; background: rgba(0, 240, 255, 0.65); box-shadow: 0 0 3px rgba(0,240,255,0.8); }
.scope-line.h { left: 50%; top: 50%; width: 62vmin; height: 1px; transform: translate(-50%, -0.5px); }
.scope-line.v { left: 50%; top: 50%; width: 1px; height: 62vmin; transform: translate(-0.5px, -50%); }

/* --- écran de mort --- */
.death-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(60, 0, 12, 0.5), rgba(8, 0, 4, 0.85));
  backdrop-filter: blur(2px) saturate(0.6);
}
.death-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px; font-weight: 900; letter-spacing: 0.3em;
  color: var(--magenta);
  text-shadow: 0 0 30px rgba(255, 45, 120, 0.8);
  animation: deathIn 0.4s ease-out;
}
@keyframes deathIn { from { opacity: 0; transform: scale(1.6); } }
.death-by { margin-top: 10px; font-size: 19px; color: rgba(223,233,255,0.75); }
.death-respawn { margin-top: 26px; font-size: 17px; letter-spacing: 0.12em; color: var(--cyan); }
#respawnTimer { font-family: 'Orbitron', sans-serif; font-weight: 700; }

/* --- scoreboard --- */
.scoreboard {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92vw);
  padding: 26px 30px;
  background: rgba(6, 10, 24, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.12);
}
.sb-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--cyan); text-align: center; margin-bottom: 18px;
}
.scoreboard table { width: 100%; border-collapse: collapse; }
.scoreboard th {
  font-size: 12.5px; letter-spacing: 0.18em; font-weight: 600;
  color: rgba(223,233,255,0.45); text-align: left;
  padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.scoreboard th:not(:first-child), .scoreboard td:not(:first-child) { text-align: right; }
.scoreboard td { padding: 8px 10px; font-size: 17px; font-weight: 600; }
.scoreboard tr.me td { color: var(--cyan); }
.scoreboard tr.team-red.me td { color: #ff4655; }
.scoreboard tr.team-blue.me td { color: #3d9cff; }
.scoreboard tr.dead td:first-child { color: rgba(223,233,255,0.4); text-decoration: line-through; }
.scoreboard tr.team-header td {
  padding-top: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.scoreboard tr.team-header td span { float: right; }
.scoreboard tr.team-header.red td { color: #ff4655; }
.scoreboard tr.team-header.blue td { color: #3d9cff; }

/* --- chat --- */
.chat-log {
  position: absolute; left: 26px; bottom: 130px;
  display: flex; flex-direction: column; gap: 3px;
  max-width: 380px; font-size: 15px;
}
.chat-line { padding: 3px 10px; background: rgba(6, 10, 24, 0.6); border-radius: 4px; animation: kfOut 0.5s ease-in 7s forwards; }
.chat-line .author { color: var(--cyan); font-weight: 700; }
.chat-line.sys { color: rgba(223,233,255,0.55); font-style: italic; }
.chat-input-wrap { position: absolute; left: 26px; bottom: 100px; pointer-events: auto; }
#chatInput {
  width: 320px; padding: 9px 14px;
  font-family: inherit; font-size: 16px; color: var(--text);
  background: rgba(6, 10, 24, 0.9);
  border: 1px solid var(--cyan); border-radius: 6px;
  outline: none;
}

/* --- chrono de match --- */
.match-timer {
  position: absolute; left: 50%; top: 18px;
  transform: translateX(-50%);
  padding: 6px 22px;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 0 0 12px 12px;
  border-top: none;
}
.match-timer.urgent { color: var(--magenta); animation: blink 0.8s infinite; }
.team-score {
  position: absolute; left: calc(50% + 92px); top: 23px;
  padding: 5px 12px;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(223,233,255,0.78);
  background: rgba(6, 10, 24, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
}
.team-score .red, .me-teams .red { color: #ff4655; }
.team-score .blue, .me-teams .blue { color: #3d9cff; }
.team-score .sep { color: rgba(223,233,255,0.42); }

/* --- flash pickup --- */
.pickup-flash {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.pickup-flash.heal { background: radial-gradient(ellipse at center, transparent 55%, rgba(54, 255, 181, 0.35) 100%); }
.pickup-flash.ammo { background: radial-gradient(ellipse at center, transparent 55%, rgba(255, 194, 61, 0.3) 100%); }
.pickup-flash.show { opacity: 1; transition: opacity 0.05s; }

/* --- fin de match --- */
.match-end {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  padding: 32px 36px;
  text-align: center;
  background: rgba(6, 10, 24, 0.94);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 0 80px rgba(0, 240, 255, 0.18);
  animation: menuIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.me-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 30px; font-weight: 900; letter-spacing: 0.22em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.7);
}
.me-winner { margin-top: 8px; font-size: 19px; color: var(--orange); font-weight: 600; }
.me-teams {
  margin-top: 12px;
  display: flex; justify-content: center; gap: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: 0.08em;
}
.me-stats {
  margin-top: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.me-stats span {
  padding: 8px 6px;
  font-size: 11.5px; letter-spacing: 0.12em;
  color: rgba(223,233,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 7px;
}
.me-stats b {
  display: block; margin-top: 3px;
  font-family: 'Orbitron', sans-serif; font-size: 16px;
  color: var(--cyan);
}
.match-end table { width: 100%; margin-top: 18px; border-collapse: collapse; }
.match-end td { padding: 7px 10px; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); }
.match-end td:first-child { text-align: left; }
.match-end td:not(:first-child) { text-align: right; color: rgba(223,233,255,0.7); }
.match-end tr.me td { color: var(--cyan); }
.match-end tr.team-red.me td { color: #ff4655; }
.match-end tr.team-blue.me td { color: #3d9cff; }
.match-end tr:first-child td:first-child::before { content: '👑 '; }
.me-next { margin-top: 18px; font-size: 14px; letter-spacing: 0.14em; color: rgba(223,233,255,0.5); animation: blink 1.4s infinite; }

/* --- leaderboard menu --- */
.menu-leaderboard, .menu-challenges {
  margin: 26px auto 0;
  width: min(380px, 86vw);
  padding: 18px 24px;
  background: var(--panel);
  border: 1px solid rgba(255, 154, 61, 0.25);
  border-radius: 14px;
}
.menu-challenges { margin-top: 14px; border-color: rgba(0, 240, 255, 0.22); }
.mlb-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.26em;
  color: var(--orange); margin-bottom: 10px;
}
.menu-leaderboard ol { list-style: none; counter-reset: rank; }
.menu-leaderboard li {
  counter-increment: rank;
  display: flex; justify-content: space-between;
  padding: 4px 2px; font-size: 16px; font-weight: 600;
}
.menu-leaderboard li::before {
  content: counter(rank);
  width: 22px; text-align: left;
  color: rgba(223,233,255,0.4);
  font-family: 'Orbitron', sans-serif; font-size: 13px;
}
.menu-leaderboard li span.lb-name { flex: 1; text-align: left; }
.menu-leaderboard li span.lb-kills { color: var(--cyan); }
.menu-leaderboard li:first-child span.lb-name { color: var(--orange); }

.challenge-list { display: flex; flex-direction: column; gap: 8px; }
.challenge-row {
  position: relative;
  padding: 8px 9px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
}
.challenge-row.done { border-color: rgba(54, 255, 181, 0.35); opacity: 0.72; }
.challenge-main { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.challenge-main span {
  font-size: 14.5px; font-weight: 700;
  color: rgba(223,233,255,0.78); text-align: left;
}
.challenge-main b {
  flex: 0 0 auto;
  font-family: 'Orbitron', sans-serif; font-size: 11px;
  color: var(--orange);
}
.challenge-progress {
  margin-top: 6px; height: 5px; overflow: hidden;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.challenge-progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyan), #36ffb5);
  border-radius: 4px;
}
.challenge-count {
  margin-top: 4px;
  text-align: right;
  font-size: 11.5px; color: rgba(223,233,255,0.45);
}
.pause-challenges { max-height: 190px; overflow: auto; padding-right: 2px; }

/* --- crédits --- */
.credits-hud {
  position: absolute; top: 244px; right: 22px;
  font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--orange); text-align: right;
  text-shadow: 0 0 10px rgba(255, 154, 61, 0.5);
}

.credit-toast {
  position: absolute; top: 276px; right: 22px;
  max-width: min(360px, 70vw);
  font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 700;
  color: #36ffb5; opacity: 0; text-align: right;
}
.credit-toast.show { animation: creditPop 1.6s ease-out; }
@keyframes creditPop {
  0% { opacity: 0; transform: translateY(8px); }
  15% { opacity: 1; transform: none; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* --- XP / niveaux --- */
.sb-lvl {
  display: inline-block; min-width: 22px;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--orange); text-align: center;
  border: 1px solid rgba(255, 154, 61, 0.35); border-radius: 4px;
  padding: 1px 3px; margin-right: 5px;
}
.xp-toast {
  position: absolute; top: 300px; right: 22px;
  font-family: 'Orbitron', sans-serif; font-size: 13.5px; font-weight: 700;
  color: #9fdcff; opacity: 0; text-align: right;
}
.xp-toast.show { animation: creditPop 1.6s ease-out; }

.menu-profile {
  margin: 18px auto 0;
  width: min(380px, 86vw);
  padding: 14px 22px;
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
}
.mp-row { display: flex; justify-content: space-between; align-items: baseline; }
#mpRank { font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 700; color: var(--cyan); letter-spacing: 0.12em; }
#mpLevel { font-size: 14.5px; font-weight: 700; color: rgba(223,233,255,0.7); }
.mp-bar-wrap { margin-top: 8px; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.mp-bar { height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), #36ffb5); box-shadow: 0 0 8px rgba(0,240,255,0.5); transition: width 0.4s; }
.mp-xp { margin-top: 5px; font-size: 12px; color: rgba(223,233,255,0.45); text-align: right; }

/* --- magasin --- */
.shop {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 5, 12, 0.78);
  backdrop-filter: blur(3px);
  pointer-events: auto;
  z-index: 20;
}
.shop-panel {
  width: min(720px, 94vw);
  padding: 28px 32px;
  background: rgba(6, 10, 24, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 0 80px rgba(0, 240, 255, 0.15);
  animation: menuIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.shop-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 900; letter-spacing: 0.24em;
  color: var(--cyan); text-align: center;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}
.shop-credits {
  margin-top: 6px; text-align: center;
  font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--orange);
}
.shop-grid {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.shop-card {
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}
.shop-card.equipped { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 240, 255, 0.2); }
.shop-card .sc-name { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
.shop-card .sc-stats { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: rgba(223,233,255,0.55); }
.shop-card .sc-btn {
  margin-top: 10px; width: 100%; padding: 8px;
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  border: none; border-radius: 6px; cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.shop-card .sc-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.sc-btn.buy { background: linear-gradient(135deg, var(--orange), #ffc23d); color: #1a1000; }
.sc-btn.buy:disabled { background: rgba(255,255,255,0.08); color: rgba(223,233,255,0.35); cursor: not-allowed; transform: none; filter: none; }
.sc-btn.equip { background: rgba(0, 240, 255, 0.15); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.4); }
.sc-btn.equipped { background: var(--cyan); color: #02131a; cursor: default; }
.shop-section-title {
  margin-top: 22px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.24em;
  color: rgba(223,233,255,0.55);
}
.shop-skins {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.skin-chip {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 12px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
  min-width: 76px;
}
.skin-chip:hover { transform: translateY(-2px); }
.skin-chip.equipped { border-color: var(--skin-color); box-shadow: 0 0 14px color-mix(in srgb, var(--skin-color) 45%, transparent); }
.skin-chip.locked-poor { opacity: 0.45; cursor: not-allowed; }
.skin-swatch {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--skin-color);
  box-shadow: 0 0 12px var(--skin-color);
}
.skin-chip .sk-name { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: rgba(223,233,255,0.75); }
.skin-chip .sk-price { font-size: 12px; font-weight: 700; color: var(--orange); }
.skin-chip .sk-price.owned { color: var(--cyan); }

.shop-hint { margin-top: 18px; text-align: center; font-size: 13.5px; letter-spacing: 0.06em; color: rgba(223,233,255,0.5); }
.shop-hint b { color: var(--cyan); }

/* slot verrouillé */
.slot.locked { opacity: 0.35; position: relative; }
.slot.locked::after { content: '🔒'; position: absolute; font-size: 9px; right: -3px; top: -5px; }

/* écrans étroits */
@media (max-width: 720px) {
  .hp-panel { width: 180px; left: 12px; bottom: 12px; }
  .ammo-panel { right: 12px; bottom: 12px; min-width: 160px; }
  .radar-wrap { display: none; }
  .team-score { left: 50%; top: 58px; transform: translateX(-50%); }
}
