/* NEON SIEGE - web UI. Accent cyan #19D3FF, magenta #FF2E88, warning #FFB020, danger #FF3B4E */
:root {
  --accent: #19d3ff;
  --magenta: #ff2e88;
  --warn: #ffb020;
  --danger: #ff3b4e;
  --green: #2ee68c;
  --text: #e6f1ff;
  --dim: #8fa3bf;
  --team0: #19d3ff;
  --team1: #ff731a;
  --gold: #ffc733;
  --panel: rgba(6, 12, 24, 0.62);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: "Segoe UI", "Bahnschrift", Arial, sans-serif; font-weight: 700; color: var(--text); user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
button, input { font-family: inherit; }

.screen { position: absolute; inset: 0; display: none; opacity: 0; transition: opacity 0.25s; }
.screen.visible { display: flex; }
.screen.shown { opacity: 1; }
.screen.overlay, .screen.menu-screen { pointer-events: auto; }
.layer { position: absolute; inset: 0; pointer-events: none; }

.caption { font-size: 12px; letter-spacing: 4px; color: var(--dim); }
.caption.right { text-align: right; }

.panel {
  position: absolute;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 10px 16px;
}

/* bars */
.bar { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
.bar.thin { height: 5px; }
.bar.health { height: 12px; width: 280px; margin-top: 6px; }
.fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }
.fill.accent { background: var(--accent); }
.fill.chip { background: rgba(255, 255, 255, 0.75); }
.fill.health { background: var(--green); transition: background-color 0.3s; }
.fill.health.low { background: var(--danger); }

/* vignettes */
.vignette { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.vignette--damage { background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 20, 40, 0.85) 100%); }
.vignette--lowhp { background: radial-gradient(ellipse at center, transparent 40%, rgba(140, 0, 20, 0.9) 100%); }

/* crosshair */
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ch-line { position: absolute; background: rgba(255, 255, 255, 0.92); border-radius: 1px; box-shadow: 0 0 3px rgba(0, 0, 0, 0.6); }
.ch-v { width: 2px; height: 10px; left: -1px; }
.ch-h { width: 10px; height: 2px; top: -1px; }
.ch-dot { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 2px; background: var(--accent); }
#hitmarker { position: absolute; left: 0; top: 0; opacity: 0; transform: scale(0.8); transition: transform 0.08s; }
#hitmarker.active { transform: scale(1.15); }
.hm { position: absolute; width: 3px; height: 12px; background: #fff; border-radius: 1px; }
#hitmarker.kill .hm { background: var(--danger); }
.hm.tl { left: -16px; top: -18px; transform: rotate(-45deg); }
.hm.tr { left: 13px; top: -18px; transform: rotate(45deg); }
.hm.bl { left: -16px; top: 6px; transform: rotate(45deg); }
.hm.br { left: 13px; top: 6px; transform: rotate(-45deg); }

/* wave panel */
.wave-panel { top: 24px; left: 24px; display: flex; align-items: center; }
.wave-left { display: flex; flex-direction: column; align-items: center; margin-right: 16px; }
.wave-value { font-size: 46px; line-height: 1; color: #fff; text-shadow: 0 0 14px rgba(25, 211, 255, 0.9); }
.wave-right { width: 170px; }
.wave-sub { font-size: 15px; letter-spacing: 2px; margin-bottom: 6px; }
.wave-countdown { font-size: 12px; color: var(--warn); letter-spacing: 2px; margin-top: 6px; min-height: 14px; }

/* top centre */
.top-center { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.team-scores { display: flex; align-items: center; background: var(--panel); padding: 4px 16px; border-radius: 4px; }
.team-name { font-size: 14px; letter-spacing: 4px; }
.t0 { color: var(--team0); }
.t1 { color: var(--team1); }
.team-score { font-size: 34px; margin: 0 12px; min-width: 95px; }
.team-score.t0 { text-align: right; text-shadow: 0 0 12px rgba(25, 211, 255, 0.8); }
.team-score.t1 { text-align: left; text-shadow: 0 0 12px rgba(255, 115, 26, 0.8); }
.team-sep { font-size: 24px; color: var(--dim); }
.personal-score { font-size: 13px; letter-spacing: 3px; margin-top: 6px; text-shadow: 0 0 4px #000; }

/* radar */
.radar-wrap { position: absolute; top: 20px; right: 24px; display: flex; flex-direction: column; align-items: center; }
#radar { width: 170px; height: 170px; border-radius: 50%; border: 2px solid rgba(25, 211, 255, 0.6); background: rgba(4, 14, 26, 0.7); }
.fps-counter { margin-top: 6px; font-size: 12px; color: var(--dim); letter-spacing: 2px; display: none; }

/* kill feed */
#killfeed { position: absolute; right: 24px; top: 230px; display: flex; flex-direction: column; align-items: flex-end; }
.kf-entry {
  display: flex; align-items: center; gap: 8px;
  background: rgba(6, 12, 24, 0.7); border-right: 3px solid var(--danger);
  padding: 5px 10px; margin-bottom: 5px; font-size: 14px;
  opacity: 0; transform: translateX(40px); transition: opacity 0.25s, transform 0.25s;
}
.kf-entry.in { opacity: 1; transform: translateX(0); }
.kf-entry.out { opacity: 0; transform: translateY(-10px); }
.kf-arrow { color: var(--dim); font-size: 12px; }

/* health */
.health-panel { bottom: 24px; left: 24px; display: flex; align-items: center; }
.health-icon { position: relative; width: 34px; height: 34px; margin-right: 12px; }
.cross { position: absolute; background: var(--green); border-radius: 2px; }
.cross.h { left: 3px; right: 3px; top: 12px; height: 10px; }
.cross.v { top: 3px; bottom: 3px; left: 12px; width: 10px; }
.health-row { display: flex; align-items: flex-end; }
.health-value { font-size: 38px; line-height: 0.9; color: #fff; }
.health-value.low { color: var(--danger); }
.health-max { font-size: 15px; color: var(--dim); margin: 0 0 3px 6px; }
.team-badge { font-size: 11px; letter-spacing: 3px; margin: 0 0 4px 12px; padding: 2px 8px; border-radius: 2px; color: #0a0a10; background: var(--team0); }
.team-badge.t1b { background: var(--team1); }
.team-badge.jb { background: var(--gold); }

/* ammo */
.ammo-panel { bottom: 24px; right: 24px; display: flex; flex-direction: column; align-items: flex-end; border-left: 0; border-right: 3px solid var(--accent); border-radius: 6px 0 0 6px; }
.ammo-row { display: flex; align-items: flex-end; }
.ammo-value { font-size: 46px; line-height: 0.9; color: #fff; text-shadow: 0 0 12px rgba(25, 211, 255, 0.6); }
.ammo-value.low { color: var(--danger); text-shadow: 0 0 12px rgba(255, 59, 78, 0.8); }
.ammo-max { font-size: 17px; color: var(--dim); margin: 0 0 4px 8px; }
.ammo-pips { display: flex; margin-top: 8px; }
.ammo-pip { width: 4px; height: 12px; margin-left: 2px; background: var(--accent); border-radius: 1px; }
.ammo-pip.empty { background: rgba(255, 255, 255, 0.12); }
.reload-wrap { width: 200px; margin-top: 8px; display: none; }


/* centre messages */
.banner { position: absolute; top: 20%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scale(1.3); transition: opacity 0.35s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.banner.visible { opacity: 1; transform: scale(1); }
.banner-title { font-size: 70px; letter-spacing: 14px; color: #fff; text-shadow: 0 0 24px rgba(25, 211, 255, 1); text-align: center; }
.banner-title.success { text-shadow: 0 0 24px rgba(46, 230, 140, 1); }
.banner-title.danger { color: #ff7878; text-shadow: 0 0 24px rgba(255, 30, 50, 1); }
.banner-title.boss { color: #ffc740; text-shadow: 0 0 28px rgba(255, 46, 136, 1); }
.banner-line { width: 380px; height: 2px; margin: 6px 0; background: rgba(25, 211, 255, 0.8); }
.banner-sub { font-size: 19px; letter-spacing: 6px; color: var(--warn); text-align: center; }
.reload-hint { position: absolute; top: 58%; left: 0; right: 0; text-align: center; font-size: 17px; letter-spacing: 4px; color: var(--warn); text-shadow: 0 0 10px rgba(255, 140, 0, 0.8); display: none; }
.popup { position: absolute; left: 50%; top: 50%; font-size: 22px; color: var(--warn); text-shadow: 0 0 10px rgba(255, 140, 0, 0.9); transform: translate(30px, -40px); transition: transform 0.9s ease-out, opacity 0.9s ease-out; }
.popup.up { transform: translate(50px, -120px); opacity: 0; }
.dmg-indicator { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.dmg-arrow { position: absolute; left: -55px; top: -170px; width: 110px; height: 9px; border-radius: 5px; background: #ff283c; box-shadow: 0 0 12px #ff283c; }
.respawn-panel { position: absolute; top: 34%; left: 0; right: 0; display: none; flex-direction: column; align-items: center; }
.respawn-title { font-size: 62px; letter-spacing: 16px; color: var(--danger); text-shadow: 0 0 24px rgba(255, 30, 50, 1); }
.respawn-killer { font-size: 20px; letter-spacing: 4px; margin: 4px 0; }
.respawn-timer { font-size: 17px; letter-spacing: 4px; color: var(--warn); }
.click-to-play { position: absolute; top: 62%; left: 0; right: 0; text-align: center; font-size: 22px; letter-spacing: 6px; color: #fff; text-shadow: 0 0 14px var(--accent); display: none; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.nameplate { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); white-space: nowrap; }
.nameplate-name { font-size: 14px; text-shadow: 0 0 6px #000, 0 0 2px #000; }
.nameplate-bar { width: 64px; height: 4px; margin-top: 2px; background: rgba(0, 0, 0, 0.5); position: relative; }
.nameplate-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); }

/* ============================== menus ============================== */
.menu-screen { flex-direction: row; }
.menu-left {
  width: 560px; height: 100%; padding: 56px 0 36px 90px;
  background: rgba(3, 6, 14, 0.82); border-right: 2px solid rgba(25, 211, 255, 0.35);
  display: flex; flex-direction: column; justify-content: space-between;
}
.title { font-size: 96px; letter-spacing: 16px; line-height: 0.95; }
.title.a { color: #fff; text-shadow: 0 0 28px rgba(25, 211, 255, 1); }
.title.b { color: var(--accent); text-shadow: 0 0 28px rgba(255, 46, 136, 0.9); }
.title-line { width: 340px; height: 3px; margin: 22px 0 12px; background: var(--magenta); }
.subtitle { font-size: 13px; letter-spacing: 5px; color: var(--dim); }
.name-row { margin-top: 18px; }
.text-input {
  width: 340px; height: 42px; margin-top: 4px; padding-left: 12px;
  font-size: 20px; font-weight: 700; color: #fff; background: rgba(10, 22, 40, 0.85);
  border: 0; border-bottom: 2px solid var(--accent); border-radius: 3px; outline: none;
}
.menu-buttons { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.menu-btn {
  height: 52px; width: 340px; margin: 5px 0; padding-left: 24px; text-align: left;
  background: rgba(10, 22, 40, 0.75); border: 0; border-left: 4px solid rgba(25, 211, 255, 0.35); border-radius: 3px;
  color: #d8e6f5; font-size: 21px; font-weight: 700; letter-spacing: 5px; cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s;
}
.menu-btn:hover { transform: translateX(12px); background: rgba(25, 211, 255, 0.2); border-left-color: var(--accent); color: #fff; }
.menu-btn:active { transform: translateX(12px) scale(0.97); background: rgba(25, 211, 255, 0.35); }
.menu-btn.primary { background: rgba(25, 211, 255, 0.16); border-left-color: var(--accent); color: #fff; }
.menu-btn.danger:hover { background: rgba(255, 59, 78, 0.22); border-left-color: var(--danger); }
.menu-btn.back { margin-top: 20px; align-self: center; }
.menu-btn.half { width: auto; flex: 1 1 0; min-width: 0; max-width: 270px; margin: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; letter-spacing: 3px; }
.menu-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.menu-status { font-size: 14px; color: #ff7882; min-height: 18px; max-width: 420px; }
.share { margin-top: 10px; }
.share-urls { font-size: 18px; color: var(--warn); letter-spacing: 1px; margin-top: 4px; line-height: 1.4; user-select: text; }
.version { position: absolute; right: 24px; bottom: 18px; font-size: 11px; letter-spacing: 3px; color: rgba(143, 163, 191, 0.7); }

.overlay { background: rgba(2, 5, 12, 0.55); align-items: center; justify-content: center; }
.overlay.light { background: rgba(2, 5, 12, 0.3); pointer-events: none; }
.modal {
  width: 440px; padding: 34px 44px; display: flex; flex-direction: column; align-items: center;
  background: rgba(6, 12, 24, 0.93); border: 1px solid rgba(25, 211, 255, 0.35); border-top: 4px solid var(--accent); border-radius: 6px;
  transform: scale(0.94); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.screen.shown .modal { transform: scale(1); }
.modal.wide { width: min(700px, 94vw); }
.modal.xwide { width: min(980px, 94vw); }
.modal { max-height: 96vh; overflow-y: auto; }
.modal-title { font-size: 48px; letter-spacing: 12px; color: #fff; text-shadow: 0 0 20px rgba(25, 211, 255, 0.9); margin-bottom: 12px; text-align: center; }
.modal-title.small { font-size: 28px; letter-spacing: 9px; }
.modal-title.danger { color: var(--danger); text-shadow: 0 0 24px rgba(255, 30, 50, 1); }
.modal-text { font-size: 15px; font-weight: 400; color: var(--dim); text-align: center; margin-bottom: 14px; line-height: 1.4; }
.modal-text.hint { margin-top: 14px; }
.section-title { align-self: stretch; font-size: 12px; letter-spacing: 5px; color: var(--accent); margin: 14px 0 4px; padding-bottom: 4px; border-bottom: 1px solid rgba(25, 211, 255, 0.3); }
.option-row { display: flex; align-items: center; align-self: stretch; height: 40px; padding: 0 8px; border-radius: 3px; cursor: pointer; }
.option-row:hover { background: rgba(25, 211, 255, 0.07); }
.option-label { width: 300px; font-size: 16px; font-weight: 400; }
.option-row input[type=range] { flex-grow: 1; margin: 0 12px; accent-color: var(--accent); }
.option-value { width: 56px; text-align: right; font-size: 16px; color: var(--accent); }
.toggle { margin-left: auto; width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.keys-grid { align-self: stretch; }
.key-row { display: flex; align-items: center; height: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.key { min-width: 160px; font-size: 15px; letter-spacing: 3px; color: var(--accent); background: rgba(25, 211, 255, 0.1); border: 1px solid rgba(25, 211, 255, 0.4); border-radius: 4px; padding: 3px 10px; margin-right: 22px; text-align: center; }
.key-action { font-size: 16px; font-weight: 400; }
.spinner { position: relative; width: 240px; height: 4px; margin: 8px 0 22px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.spinner-bar { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--accent); animation: spin 1.1s ease-in-out infinite alternate; }
@keyframes spin { from { left: 0; } to { left: 70%; } }

.lobby-address { font-size: 16px; color: var(--warn); letter-spacing: 2px; margin: -4px 0 12px; text-align: center; user-select: text; }
.mode-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mode-btn { height: 40px; padding: 0 18px; font-size: 15px; font-weight: 700; letter-spacing: 3px; color: var(--dim); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(25, 211, 255, 0.3); border-radius: 3px; cursor: pointer; }
.mode-btn:hover:not(:disabled) { color: #fff; background: rgba(25, 211, 255, 0.15); }
.mode-btn.active { color: #fff; background: rgba(25, 211, 255, 0.3); border-color: var(--accent); }
.mode-btn.surprise.active { background: rgba(255, 176, 32, 0.3); border-color: var(--warn); }
.mode-btn:disabled { cursor: default; opacity: 0.75; }
.team-columns { display: flex; align-self: stretch; margin: 6px 0 10px; gap: 14px; }
.team-column { flex: 1; min-height: 170px; padding: 10px 14px; background: rgba(255, 255, 255, 0.04); border-top: 3px solid; border-radius: 4px; }
.team-column.c0 { border-top-color: var(--team0); }
.team-column.c1 { border-top-color: var(--team1); }
.team-column-title { font-size: 17px; letter-spacing: 5px; margin-bottom: 8px; }
.team-entry { font-size: 17px; font-weight: 400; margin: 3px 0; }
.team-entry.me { font-weight: 700; color: #fff; }
.lobby-status { font-size: 16px; color: var(--warn); letter-spacing: 2px; margin: 4px 0 14px; text-align: center; }
.button-row { display: flex; justify-content: center; }

.score-columns { display: flex; align-self: stretch; gap: 14px; margin-bottom: 12px; }
.score-column { flex: 1; }
.score-header { display: flex; justify-content: space-between; padding: 5px 10px; border-bottom: 2px solid; margin-bottom: 4px; font-size: 16px; letter-spacing: 4px; }
.score-row { display: flex; padding: 4px 10px; border-radius: 2px; font-size: 15px; font-weight: 400; }
.score-row.me { background: rgba(25, 211, 255, 0.12); }
.score-row.head { font-size: 11px; color: var(--dim); letter-spacing: 2px; }
.score-row .name { flex: 1; font-weight: 700; }
.score-row .num { width: 64px; text-align: right; }
.end-result { font-size: 21px; letter-spacing: 4px; color: var(--warn); margin: -4px 0 16px; text-align: center; }

.fade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 0.6s; pointer-events: none; }

/* ============================== FRONTLINE (capture du drapeau) ============================== */
.minimap-wrap { position: absolute; top: 18px; left: 22px; display: flex; flex-direction: column; align-items: flex-start; }
#minimap { width: 200px; height: auto; border: 2px solid rgba(25, 211, 255, 0.45); border-radius: 6px; background: rgba(4, 10, 20, 0.72); }
.minimap-caption { margin-top: 4px; font-size: 11px; letter-spacing: 3px; color: var(--dim); }
.minimap-wrap .fps-counter { margin-top: 2px; }

.ctf-score { display: flex; align-items: center; background: var(--panel); padding: 6px 18px; border-radius: 4px; gap: 16px; }
.ctf-team { display: flex; align-items: center; gap: 10px; }
.caps { display: flex; gap: 6px; }
.cap { width: 18px; height: 18px; border-radius: 50%; border: 2px solid; opacity: 0.9; }
.caps.c0 .cap { border-color: var(--team0); }
.caps.c1 .cap { border-color: var(--team1); }
.caps.c0 .cap.on { background: var(--team0); box-shadow: 0 0 12px var(--team0); }
.caps.c1 .cap.on { background: var(--team1); box-shadow: 0 0 12px var(--team1); }
.match-timer { font-size: 30px; min-width: 96px; text-align: center; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.match-timer.sudden { color: var(--danger); font-size: 18px; letter-spacing: 3px; text-shadow: 0 0 12px rgba(255, 30, 50, 0.9); }
.flag-status { display: flex; gap: 14px; margin-top: 6px; }
.flag-line { min-width: 230px; font-size: 12px; letter-spacing: 2px; text-align: center; padding: 3px 8px; border-radius: 3px; background: rgba(6, 12, 24, 0.55); border-bottom: 2px solid transparent; }
.flag-line.home { color: var(--dim); }
.flag-line.taken { color: #fff; animation: pulse 0.8s infinite; }
.flag-line.dropped { color: var(--warn); }

.weapon-slots { display: flex; gap: 4px; margin-top: 8px; }
.weapon-slot { min-width: 64px; padding: 3px 6px; font-size: 11px; letter-spacing: 1px; color: var(--dim); background: rgba(255, 255, 255, 0.05); border-bottom: 2px solid transparent; border-radius: 2px; text-align: center; }
.weapon-slot.active { color: #fff; background: rgba(25, 211, 255, 0.18); border-bottom-color: var(--accent); }
.weapon-slot .slot-key { color: var(--accent); margin-right: 4px; }
.grenade-line { margin-top: 6px; font-size: 12px; letter-spacing: 2px; color: #7dff9a; }
.grenade-line.cooldown { color: var(--dim); }

.vehicle-panel { display: none; min-width: 260px; }
.vehicle-title { font-size: 26px; letter-spacing: 6px; color: #fff; text-shadow: 0 0 12px rgba(25, 211, 255, 0.8); }
.bar.vehicle { width: 240px; height: 10px; margin-top: 6px; }
.vehicle-info { margin-top: 6px; font-size: 14px; letter-spacing: 2px; }
.heat-wrap { width: 240px; margin-top: 6px; }
.fill.heat { background: linear-gradient(90deg, #ffb020, #ff3b4e); }
.vehicle-keys { margin-top: 6px; font-size: 12px; letter-spacing: 2px; color: var(--dim); }

.prompt { position: absolute; top: 60%; left: 0; right: 0; text-align: center; font-size: 18px; letter-spacing: 3px; color: #fff; text-shadow: 0 0 8px #000; display: none; }
.prompt b { color: var(--accent); background: rgba(25, 211, 255, 0.15); border: 1px solid rgba(25, 211, 255, 0.5); padding: 1px 8px; border-radius: 3px; margin-right: 8px; }
.carrier-alert { position: absolute; top: 15%; left: 0; right: 0; text-align: center; font-size: 20px; letter-spacing: 5px; color: var(--gold); text-shadow: 0 0 14px rgba(255, 170, 0, 0.9); display: none; animation: pulse 1s infinite; }
.hint-msg { position: absolute; top: 66%; left: 0; right: 0; text-align: center; font-size: 15px; letter-spacing: 2px; color: var(--warn); opacity: 0; transition: opacity 0.3s; }

.marker { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); white-space: nowrap; }
.marker-icon { width: 16px; height: 16px; transform: rotate(45deg); border: 2px solid; box-shadow: 0 0 10px currentColor; }
.marker-label { margin-top: 5px; font-size: 12px; letter-spacing: 2px; text-shadow: 0 0 4px #000, 0 0 2px #000; }
.marker.edge .marker-icon { opacity: 0.85; }

.scope { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 32%, rgba(0, 10, 20, 0.92) 33%); }
.scope::before, .scope::after { content: ""; position: absolute; background: rgba(102, 230, 255, 0.55); }
.scope::before { left: 50%; top: 18%; bottom: 18%; width: 1px; }
.scope::after { top: 50%; left: 30%; right: 30%; height: 1px; }

.menu-rules { position: absolute; right: 60px; bottom: 90px; width: 420px; padding: 22px 26px; background: rgba(3, 6, 14, 0.78); border-left: 3px solid var(--magenta); border-radius: 0 6px 6px 0; }
.rules-title { font-size: 16px; letter-spacing: 6px; color: var(--magenta); margin-bottom: 12px; }
.rule { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 400; line-height: 1.4; margin-bottom: 10px; }
.rule.dim { color: var(--dim); font-size: 13px; margin-top: 6px; }
.rule-num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgba(255, 46, 136, 0.2); border: 1px solid var(--magenta); color: #fff; font-weight: 700; text-align: center; line-height: 24px; }
.subtitle.frontline { font-size: 20px; letter-spacing: 10px; color: var(--magenta); margin-bottom: 8px; text-shadow: 0 0 14px rgba(255, 46, 136, 0.8); }
.server-info { font-size: 14px; letter-spacing: 2px; color: var(--green); min-height: 18px; }

.medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-self: stretch; margin-bottom: 14px; }
.medal { flex: 1 1 160px; max-width: 220px; padding: 8px 10px; text-align: center; background: rgba(255, 199, 51, 0.08); border: 1px solid rgba(255, 199, 51, 0.4); border-radius: 4px; }
.medal-title { font-size: 12px; letter-spacing: 3px; color: var(--gold); }
.medal-name { font-size: 17px; margin-top: 3px; }
.medal-value { font-size: 12px; color: var(--dim); font-weight: 400; }
.score-row .num.wide { width: 54px; }

.points-row { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; justify-content: center; max-width: 640px; }
.point-chip { position: relative; width: 26px; height: 26px; border-radius: 4px; overflow: hidden; background: rgba(6, 12, 24, 0.7); border: 2px solid rgba(200, 200, 220, 0.5); font-size: 14px; line-height: 22px; text-align: center; color: #fff; }
.point-chip .chip-fill { position: absolute; left: 0; bottom: 0; right: 0; opacity: 0.55; }
.point-chip span { position: relative; }
.point-chip.contested { animation: pulse 0.5s infinite; }
.capture-bar { position: absolute; top: 70%; left: 50%; transform: translateX(-50%); width: 320px; display: none; flex-direction: column; align-items: center; }
.capture-label { font-size: 15px; letter-spacing: 3px; margin-bottom: 5px; text-shadow: 0 0 6px #000; }
.bar.capture { width: 100%; height: 10px; border: 1px solid rgba(255, 255, 255, 0.35); }
@media (max-width: 1250px) { .menu-rules { display: none; } }

.point-letter { width: 26px; height: 26px; border: 2px solid; border-radius: 50%; font-size: 15px; line-height: 22px; text-align: center; background: rgba(6, 12, 24, 0.55); text-shadow: 0 0 6px currentColor; }
.point-marker .marker-label { margin-top: 3px; font-size: 11px; }
.click-to-play { font-size: 17px; letter-spacing: 4px; top: 64%; }
.hint-msg { font-size: 18px; letter-spacing: 4px; text-shadow: 0 0 10px rgba(255, 140, 0, 0.8); }
.vehicle-keys { max-width: 300px; text-align: right; line-height: 1.5; }
.vehicle-panel { max-width: 340px; }

/* V2 */
.dmg-number { position: absolute; transform: translate(-50%, -50%); font-size: 18px; color: #fff; text-shadow: 0 0 6px #000, 0 0 2px #000; pointer-events: none; }
.dmg-number.head { color: var(--gold); font-size: 22px; text-shadow: 0 0 10px rgba(255, 170, 0, 0.9), 0 0 2px #000; }
#hitmarker.head .hm { background: var(--gold); }
.weapon-slot.power { color: #ff8ef0; border-bottom-color: #ff4fd8; }
.spawn-title { margin-top: 18px; font-size: 13px; letter-spacing: 4px; color: var(--dim); }
.spawn-options { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.spawn-option { padding: 6px 14px; font-size: 15px; letter-spacing: 2px; background: rgba(6, 12, 24, 0.75); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; }
.spawn-option b { color: var(--accent); margin-right: 8px; }
.spawn-option.chosen { border-color: var(--green); color: #fff; box-shadow: 0 0 12px rgba(46, 230, 140, 0.5); }
.spawn-option.contested { opacity: 0.5; }
.spectator-footer { display: none; position: absolute; left: 0; right: 0; bottom: 26px; flex-direction: column; align-items: center; }
.spectator-focus { font-size: 26px; letter-spacing: 6px; color: #fff; text-shadow: 0 0 14px rgba(25, 211, 255, 0.9); margin-bottom: 10px; }
.spectator-join { font-size: 22px; letter-spacing: 3px; color: var(--warn); background: rgba(3, 6, 14, 0.8); padding: 8px 22px; border-radius: 6px; border: 1px solid rgba(255, 176, 32, 0.5); }
.spectator-join span { color: #fff; }
#hud.spectator .spectator-footer { display: flex; }
#hud.spectator .health-panel, #hud.spectator #weapon-panel, #hud.spectator #vehicle-panel, #hud.spectator #crosshair,
#hud.spectator #personal-score, #hud.spectator #respawn-panel, #hud.spectator #click-to-play, #hud.spectator #prompt,
#hud.spectator #carrier-alert, #hud.spectator #capture-bar, #hud.spectator #reload-hint, #hud.spectator .vignette { display: none !important; }

/* V3: deploy screen, titans, replay */
.deploy { background: linear-gradient(180deg, rgba(2, 5, 12, 0.35) 0%, rgba(2, 5, 12, 0.15) 40%, rgba(2, 5, 12, 0.85) 100%); flex-direction: column; justify-content: space-between; align-items: center; padding: 3vh 2vw 3vh; }
.deploy-top { display: flex; flex-direction: column; align-items: center; }
.deploy-sub { font-size: 16px; letter-spacing: 3px; color: var(--warn); text-align: center; }
.deploy-panel { display: flex; flex-direction: column; align-items: center; width: min(1100px, 96vw); }
.deploy-caption { align-self: flex-start; font-size: 12px; letter-spacing: 5px; color: var(--dim); margin: 10px 0 6px; }
.class-cards { display: flex; gap: 10px; align-self: stretch; }
.class-card { flex: 1; min-width: 0; padding: 12px 10px; cursor: pointer; text-align: center; background: rgba(6, 12, 24, 0.86); border: 2px solid rgba(25, 211, 255, 0.2); border-radius: 6px; transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.class-card:hover { transform: translateY(-4px); border-color: rgba(25, 211, 255, 0.6); }
.class-card.chosen { border-color: var(--accent); background: rgba(25, 211, 255, 0.16); box-shadow: 0 0 18px rgba(25, 211, 255, 0.4); }
.class-icon { font-size: 28px; color: var(--accent); }
.class-name { font-size: 18px; letter-spacing: 4px; color: #fff; margin: 2px 0 6px; }
.class-weapons { font-size: 12px; letter-spacing: 1px; color: var(--warn); line-height: 1.5; min-height: 36px; }
.class-role { font-size: 12px; font-weight: 400; color: var(--dim); margin-top: 6px; min-height: 30px; }
.class-hp { font-size: 12px; color: var(--green); margin-top: 4px; letter-spacing: 2px; }
.deploy-spawns { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.deploy-spawn { padding: 8px 18px; cursor: pointer; font-size: 15px; letter-spacing: 3px; background: rgba(6, 12, 24, 0.86); border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 4px; }
.deploy-spawn:hover { border-color: rgba(46, 230, 140, 0.6); }
.deploy-spawn.chosen { border-color: var(--green); color: #fff; box-shadow: 0 0 12px rgba(46, 230, 140, 0.45); }
.deploy-spawn.contested { opacity: 0.5; }
.deploy-btn { width: 340px; margin-top: 14px; text-align: center; padding-left: 0; }
.titan-bars { display: flex; gap: 14px; margin-top: 6px; }
.titan-bar { position: relative; width: 230px; height: 16px; background: rgba(6, 12, 24, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 3px; overflow: hidden; }
.titan-bar span { position: relative; display: block; font-size: 10px; letter-spacing: 2px; line-height: 16px; text-align: center; color: #fff; text-shadow: 0 0 4px #000; }
.titan-fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: 0.55; }
.titan-bar.t0 .titan-fill { background: var(--team0); }
.titan-bar.t1 .titan-fill { background: var(--team1); }
.titan-bar.awake { animation: pulse 0.8s infinite; border-color: #fff; }
.replay { pointer-events: none; }
.letterbox { position: absolute; left: 0; right: 0; height: 11vh; background: #000; }
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
.replay-badge { position: absolute; top: 13vh; left: 4vw; font-size: 22px; letter-spacing: 6px; color: #ff3b4e; animation: pulse 1s infinite; }
.replay-label { position: absolute; bottom: 13vh; left: 0; right: 0; text-align: center; font-size: 34px; letter-spacing: 10px; text-shadow: 0 0 18px currentColor; }
#hud.replaying > *:not(#banner) { visibility: hidden; }
