:root {
  --bg: #090c15; --bg2: #0f1422; --panel: rgba(18, 23, 38, .86); --line: #262e45; --line2: #343e5c;
  --text: #e9ecf5; --muted: #8a93ad; --accent: #8b5cff; --accent2: #c4b0ff;
  --alpha: #19e3c4; --beta: #ff4f6d; --gold: #ffcf5a; --ok: #6dff9c;
  --head: 'Chakra Petch', 'Segoe UI', sans-serif; --body: 'Rajdhani', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; overflow: hidden; user-select: none; }
button, input, select { font-family: inherit; color: inherit; }
#bg-fx { position: fixed; inset: 0; background:
  radial-gradient(900px 600px at 80% -10%, rgba(139, 92, 255, .28), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(25, 227, 196, .16), transparent 60%),
  linear-gradient(180deg, #0a0d18, #070910); z-index: -1; }
#bg-fx::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%); }
.screen { display: none; position: fixed; inset: 0; }
.screen.active { display: block; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--head); letter-spacing: .08em; margin: 0; }
h2 { font-size: 20px; } h3 { font-size: 15px; }

/* ---------- barre du haut ---------- */
.topbar { height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(9, 12, 21, .7); backdrop-filter: blur(8px); }
.logo { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: .3em; display: flex; align-items: center; gap: 10px; }
.logo-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 65% 35%, var(--bg) 42%, transparent 44%), linear-gradient(135deg, var(--accent), var(--alpha)); box-shadow: 0 0 18px rgba(139, 92, 255, .6); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav button { white-space: nowrap; background: none; border: 0; padding: 22px 16px; font-family: var(--head); font-weight: 600; letter-spacing: .12em; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.nav button:hover { color: var(--text); }
.nav button.active { color: var(--text); border-bottom-color: var(--accent); }
.nav.locked button { pointer-events: none; opacity: .3; }
.profile { display: flex; align-items: center; gap: 16px; }
.currency { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; color: var(--gold); }
.gem { display: inline-block; width: 14px; height: 14px; transform: rotate(45deg); background: linear-gradient(135deg, #fff2b5, var(--gold) 50%, #c48a1d); box-shadow: 0 0 10px rgba(255, 207, 90, .5); }
.gem.small { width: 10px; height: 10px; }
.pname { font-family: var(--head); font-weight: 600; }
.conn { font-size: 12px; padding: 3px 8px; border-radius: 10px; background: #3a1b25; color: #ff8fa3; }
.conn.on { background: #13352b; color: var(--ok); }

.tab { display: none; position: absolute; top: 64px; left: 0; right: 0; bottom: 0; overflow: auto; padding: 28px; }
.tab.active { display: block; }

/* ---------- boutons ---------- */
.btn { background: #1c2236; border: 1px solid var(--line2); padding: 10px 20px; font-family: var(--head); font-weight: 600; letter-spacing: .1em; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: .15s; }
.btn:hover { background: #262e48; }
.btn.primary { background: linear-gradient(90deg, var(--accent), #6d3df0); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.on { background: #1a4a3e; border-color: var(--ok); }

/* ---------- accueil ---------- */
.hero { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-size: clamp(56px, 12vw, 140px); letter-spacing: .25em; background: linear-gradient(180deg, #fff, #9c8cff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 60px rgba(139, 92, 255, .35); padding-left: .25em; }
.tag { color: var(--muted); font-size: 20px; letter-spacing: .1em; }
.auth-card { width: min(400px, 92vw); margin-top: 30px; background: var(--panel); border: 1px solid var(--line); padding: 20px; text-align: left; }
.auth-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.auth-card input { background: #0d1220; border: 1px solid var(--line2); padding: 12px 14px; font-size: 17px; outline: none; color: var(--text); }
.auth-card input:focus { border-color: var(--accent); }
.auth-error { color: #ff8fa3; min-height: 20px; font-weight: 600; }
.quick-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.me-card { display: flex; gap: 14px; align-items: center; }
.me-card .nm { font-family: var(--head); font-weight: 700; font-size: 20px; }
.me-card .st { color: var(--muted); font-size: 14px; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 8px; background: rgba(139, 92, 255, .25); color: var(--accent2); margin-left: 6px; letter-spacing: .05em; }
.badge.guest { background: #2a2f40; color: var(--muted); }
#quick-duel { font-size: 16px; padding: 12px 22px; }
.pill.duel { background: #2c1840; color: #d6b3ff; }

/* ---------- panneaux ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.panel label { display: block; margin: 12px 0 6px; color: var(--muted); font-weight: 600; letter-spacing: .05em; }
.panel input[type=text], .panel input:not([type]), .panel select { width: 100%; background: #0d1220; border: 1px solid var(--line2); padding: 9px 10px; font-size: 16px; margin-top: 6px; outline: none; color: var(--text); }
.panel label.check { display: flex; align-items: center; gap: 8px; }
.hint { color: var(--muted); font-size: 14px; }
.seg { display: flex; margin-top: 6px; }
.seg button { flex: 1; background: #0d1220; border: 1px solid var(--line2); padding: 9px; cursor: pointer; font-family: var(--head); font-size: 13px; letter-spacing: .08em; }
.seg button + button { border-left: 0; }
.seg button.active { background: rgba(139, 92, 255, .25); border-color: var(--accent); color: #fff; }

.play-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; max-width: 1200px; margin: 0 auto; }
.room-list { display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.room-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 12px 14px; background: #0e1322; border: 1px solid var(--line); cursor: pointer; }
.room-item:hover { border-color: var(--accent); }
.room-item .rn { font-weight: 700; font-size: 18px; }
.pill { font-size: 12px; padding: 3px 8px; background: #1c2236; border-radius: 10px; letter-spacing: .05em; }
.pill.playing { background: #3a2a10; color: var(--gold); }
.empty { color: var(--muted); text-align: center; padding: 40px; }
.map-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.map-card { border: 2px solid var(--line); cursor: pointer; position: relative; background: #0d1220; }
.map-card canvas { width: 100%; display: block; }
.map-card span { position: absolute; bottom: 4px; left: 6px; font-family: var(--head); font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.map-card.active { border-color: var(--accent); }

/* ---------- salon ---------- */
.room-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; max-width: 1300px; margin-left: auto; margin-right: auto; gap: 16px; flex-wrap: wrap; }
.room-actions { display: flex; gap: 10px; }
.room-grid { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 16px; max-width: 1300px; margin: 0 auto; }
.room-grid.ffa { grid-template-columns: 1fr 300px; }
.room-grid.ffa #team-beta { display: none; }
.t-alpha { color: var(--alpha); } .t-beta { color: var(--beta); }
.team-btns { display: flex; gap: 6px; }
.members { display: flex; flex-direction: column; gap: 6px; }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #0d1220; border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line)); }
.member.me { background: #171d33; }
.member .mn { flex: 1; font-weight: 700; font-size: 17px; }
.member .ma { font-size: 13px; color: var(--muted); }
.member .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.member .host { color: var(--gold); font-size: 12px; }
.member .rdy { font-size: 12px; color: var(--ok); }
.agent-icon { width: 38px; height: 38px; flex: none; border-radius: 4px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; color: #0b0e17; background: var(--c); position: relative; overflow: hidden; }
.agent-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.45), transparent 50%, rgba(0,0,0,.35)); }
.agent-icon.lg { width: 64px; height: 64px; font-size: 26px; }
.agent-icon.sm { width: 26px; height: 26px; font-size: 12px; }
.map-preview { position: relative; margin-bottom: 10px; }
.map-preview canvas { width: 100%; display: block; border: 1px solid var(--line); background: #0b0f1b; }
.map-preview .map-name { position: absolute; left: 10px; bottom: 8px; font-family: var(--head); font-weight: 700; font-size: 20px; text-shadow: 0 2px 6px #000; }
.chat { margin-top: 14px; }
.chat-log { height: 130px; overflow-y: auto; background: #0b0f1b; border: 1px solid var(--line); padding: 6px 8px; font-size: 14px; }
.chat-log div { margin: 2px 0; } .chat-log b { color: var(--accent2); }
.chat input { width: 100%; margin-top: 6px; background: #0d1220; border: 1px solid var(--line2); padding: 8px; outline: none; }
.agent-select { max-width: 1300px; margin: 18px auto 0; }
.agent-pick { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.agent-card { width: 108px; padding: 10px; background: #0d1220; border: 2px solid var(--line); cursor: pointer; text-align: center; transition: .15s; }
.agent-card:hover { transform: translateY(-2px); border-color: var(--line2); }
.agent-card.active { border-color: var(--c); box-shadow: 0 0 20px -6px var(--c); }
.agent-card.taken { opacity: .35; pointer-events: none; }
.agent-card .agent-icon { margin: 0 auto 6px; }
.agent-card .an { font-family: var(--head); font-weight: 700; font-size: 13px; }
.agent-card .ar { font-size: 12px; color: var(--muted); }
.agent-pick-info { margin-top: 10px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.agent-pick-info b { color: var(--text); }

/* ---------- agents ---------- */
.agents-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; }
.agents-list { display: flex; flex-direction: column; gap: 8px; }
.agent-row { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; border-left: 3px solid transparent; }
.agent-row.active { border-left-color: var(--c); background: #171d33; }
.agent-row .an { font-family: var(--head); font-weight: 700; }
.agent-row .ar { font-size: 13px; color: var(--muted); }
.agent-detail { background: var(--panel); border: 1px solid var(--line); padding: 26px; position: relative; overflow: hidden; min-height: 460px; }
.agent-detail .big { font-family: var(--head); font-size: 64px; font-weight: 700; letter-spacing: .1em; color: var(--c); }
.agent-detail .role { letter-spacing: .2em; color: var(--muted); font-weight: 700; }
.agent-detail .bio { font-size: 19px; margin: 12px 0 20px; max-width: 520px; }
.agent-detail canvas { position: absolute; right: 0; top: 0; width: 46%; height: 100%; }
.ab-list { display: flex; flex-direction: column; gap: 10px; max-width: 520px; position: relative; z-index: 1; }
.ab { display: flex; gap: 12px; align-items: flex-start; background: rgba(13, 18, 32, .85); border: 1px solid var(--line); padding: 10px 12px; }
.ab .key { width: 34px; height: 34px; flex: none; border: 1px solid var(--c); color: var(--c); display: grid; place-items: center; font-family: var(--head); font-weight: 700; }
.ab .nm { font-weight: 700; font-size: 17px; }
.ab .ds { color: var(--muted); font-size: 15px; }

/* ---------- collection ---------- */
.coll-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; max-width: 1200px; margin: 0 auto; }
.coll-weapons { display: flex; flex-direction: column; gap: 6px; }
.coll-weapons button { text-align: left; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; font-family: var(--head); font-weight: 600; letter-spacing: .08em; }
.coll-weapons button.active { border-color: var(--accent); background: #1a1736; }
.coll-weapons small { display: block; color: var(--muted); font-family: var(--body); letter-spacing: 0; }
.coll-preview { position: relative; height: 320px; background: radial-gradient(circle at 50% 60%, #1e1a3d, #0b0e18 70%); border: 1px solid var(--line); }
.coll-preview canvas { width: 100%; height: 100%; display: block; }
.coll-title { position: absolute; left: 16px; top: 12px; font-family: var(--head); font-size: 22px; font-weight: 700; letter-spacing: .1em; }
.coll-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.skin-card { background: var(--panel); border: 2px solid var(--line); padding: 10px; cursor: pointer; }
.skin-card:hover { border-color: var(--line2); }
.skin-card.selected { border-color: var(--accent); }
.skin-card .sw { height: 46px; border-radius: 3px; margin-bottom: 8px; }
.skin-card .sn { font-weight: 700; }
.skin-card .sp { font-size: 14px; color: var(--gold); display: flex; align-items: center; gap: 5px; }
.skin-card .sp.owned { color: var(--muted); }
.skin-card .sp.eq { color: var(--ok); }

/* ---------- paramètres ---------- */
.settings-wrap { max-width: 1100px; margin: 0 auto; }
.settings { display: grid; grid-template-columns: 190px 1fr; gap: 18px; font-family: var(--body); text-align: left; }
.set-nav { display: flex; flex-direction: column; gap: 6px; }
.set-nav button { text-align: left; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; font-family: var(--head); font-weight: 600; letter-spacing: .1em; font-size: 14px; }
.set-nav button:hover { background: #1a2034; }
.set-nav button.active { border-left-color: var(--accent); background: #1a1736; }
.set-body { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; min-height: 420px; }
.set-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.set-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr); gap: 16px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.set-label { font-weight: 600; font-size: 16px; }
.set-label small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.set-ctrl { display: flex; align-items: center; gap: 12px; }
.set-ctrl input[type=range] { flex: 1; accent-color: var(--accent); }
.set-ctrl .val { min-width: 64px; text-align: right; color: var(--accent2); font-family: var(--head); font-size: 14px; }
.set-ctrl .num { width: 80px; background: #0d1220; border: 1px solid var(--line2); padding: 5px 8px; color: var(--text); font-family: var(--head); outline: none; }
.set-ctrl .num:focus { border-color: var(--accent); }
.set-ctrl select { flex: 1; background: #0d1220; border: 1px solid var(--line2); padding: 8px; color: var(--text); font-size: 15px; outline: none; }
.set-ctrl input[type=color] { width: 48px; height: 32px; border: 1px solid var(--line2); background: #0d1220; padding: 2px; cursor: pointer; }
.switch { position: relative; width: 46px; height: 24px; display: inline-block; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #262e45; border-radius: 12px; transition: .15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #9aa3bd; transition: .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(22px); background: #fff; }
.set-note { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.set-note.warn { color: #ffb26b; margin-top: 14px; }
.keys-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.keys-grid .set-row { grid-template-columns: 1fr 150px; }
.keybtn { width: 100%; padding: 8px 10px; background: #0d1220; border: 1px solid var(--line2); color: var(--text); font-family: var(--head); font-weight: 600; cursor: pointer; }
.keybtn:hover { border-color: var(--accent); }
.keybtn.wait { border-color: var(--gold); color: var(--gold); animation: pulse 1s infinite; }
.ch-top { display: grid; grid-template-columns: 260px 1fr; gap: 18px; margin-bottom: 8px; }
.ch-preview { position: relative; height: 170px; border: 1px solid var(--line2); overflow: hidden; }
.ch-preview.bg-0 { background: #20242e; }
.ch-preview.bg-1 { background: linear-gradient(135deg, #e9eef5, #c9d3df); }
.ch-preview.bg-2 { background: linear-gradient(180deg, #f0c290 0 45%, #b88a5a 45% 70%, #d8b585 70%); }
.ch-preview.bg-3 { background: radial-gradient(circle at 30% 40%, #ff3fa4 0 8%, transparent 9%), linear-gradient(160deg, #1a1838, #0b0820); }
.ch-preview .xhair { position: absolute; left: 50%; top: 50%; }
.xhair i, #crosshair i { position: absolute; display: block; }
.ch-bgs { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.ch-bgs button { width: 18px; height: 18px; border: 1px solid #fff8; cursor: pointer; }
.ch-bgs button:nth-child(1) { background: #20242e; } .ch-bgs button:nth-child(2) { background: #e9eef5; }
.ch-bgs button:nth-child(3) { background: #d8b585; } .ch-bgs button:nth-child(4) { background: #ff3fa4; }
.ch-side .set-label { margin-bottom: 6px; }
.ch-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ch-code { display: flex; gap: 6px; }
.ch-code input { flex: 1; min-width: 0; background: #0d1220; border: 1px solid var(--line2); padding: 6px 8px; color: var(--muted); font-size: 12px; font-family: monospace; outline: none; }
.settings-float { width: min(1100px, 96vw); max-height: 92vh; overflow-y: auto; background: rgba(12, 15, 26, .97); border: 1px solid var(--line2); padding: 18px; }
.sf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
@media (max-width: 900px) {
  .settings, .ch-top, .keys-grid { grid-template-columns: 1fr; }
  .set-nav { flex-direction: row; flex-wrap: wrap; }
  .set-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- HUD ---------- */
#game { background: #000; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--head); }
#hud .overlay { pointer-events: auto; }
#flash-overlay { position: absolute; inset: 0; background: #fff; opacity: 0; }
#damage-overlay { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(255, 30, 50, .55)); }
#smoke-overlay { position: absolute; inset: 0; opacity: 0; background: #7d8597; }
#scope-overlay { position: absolute; inset: 0; display: none; background: radial-gradient(circle at center, transparent 0, transparent 34vh, #000 34.3vh); }
#scope-overlay::before, #scope-overlay::after { content: ''; position: absolute; background: #000; }
#scope-overlay::before { left: 0; right: 0; top: 50%; height: 1px; }
#scope-overlay::after { top: 0; bottom: 0; left: 50%; width: 1px; }
#top-hud { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.score-box { display: flex; align-items: stretch; background: rgba(8, 10, 18, .7); border: 1px solid rgba(255, 255, 255, .08); }
.sc { width: 58px; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.sc-left { color: var(--alpha); } .sc-right { color: var(--beta); }
.score-box .mid { padding: 4px 18px; text-align: center; min-width: 120px; }
#timer { font-size: 28px; font-weight: 700; }
#timer.planted { color: var(--beta); animation: pulse 1s infinite; }
#round-label { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.team-icons { display: flex; gap: 4px; min-width: 150px; }
#icons-left { justify-content: flex-end; }
.team-icons .agent-icon { width: 28px; height: 28px; font-size: 12px; border: 2px solid rgba(0,0,0,.4); }
.team-icons .agent-icon.dead { filter: grayscale(1) brightness(.35); }
@keyframes pulse { 50% { opacity: .55; } }
#minimap { position: absolute; left: 14px; top: 14px; width: 220px; height: 220px; background: rgba(8, 10, 18, .6); border: 1px solid rgba(255, 255, 255, .1); border-radius: 4px; }
#killfeed { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.kf { background: rgba(8, 10, 18, .75); padding: 5px 10px; font-size: 15px; display: flex; gap: 8px; align-items: center; border-right: 3px solid transparent; animation: kfin .2s; }
.kf.mine { border-right-color: var(--gold); background: rgba(60, 45, 10, .75); }
.kf .ally { color: var(--alpha); } .kf .enemy { color: var(--beta); }
.kf .w { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
@keyframes kfin { from { transform: translateX(20px); opacity: 0; } }
#crosshair { position: absolute; left: 50%; top: 50%; }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0; background:
  linear-gradient(45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%);
  mask: radial-gradient(circle, transparent 5px, #000 6px); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); }
#hitmarker.head { filter: drop-shadow(0 0 2px #ff3); background: linear-gradient(45deg, transparent 46%, #ffd84a 46%, #ffd84a 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #ffd84a 46%, #ffd84a 54%, transparent 54%); }
#hitmarker.kill { background: linear-gradient(45deg, transparent 44%, var(--beta) 44%, var(--beta) 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--beta) 44%, var(--beta) 56%, transparent 56%); }
#center-msg { position: absolute; top: 28%; width: 100%; text-align: center; font-size: 20px; letter-spacing: .25em; text-shadow: 0 2px 8px #000; }
#banner { position: absolute; top: 22%; left: 0; right: 0; text-align: center; opacity: 0; transition: opacity .3s; }
#banner.show { opacity: 1; }
#banner .b-title { display: inline-block; font-size: 54px; font-weight: 700; letter-spacing: .25em; padding: 6px 60px; background: linear-gradient(90deg, transparent, rgba(8, 10, 18, .8), transparent); }
#banner.win .b-title { color: var(--alpha); } #banner.lose .b-title { color: var(--beta); }
#banner .b-sub { font-size: 16px; letter-spacing: .3em; color: #cfd5e6; margin-top: 6px; }
#progress { position: absolute; top: 60%; left: 50%; transform: translateX(-50%); width: 280px; text-align: center; display: none; }
#progress .p-label { font-size: 14px; letter-spacing: .2em; margin-bottom: 6px; }
#progress .p-bar { height: 8px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); }
#progress .p-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
#core-hint { position: absolute; top: 66%; width: 100%; text-align: center; font-size: 15px; letter-spacing: .15em; color: var(--gold); text-shadow: 0 2px 6px #000; }
#bottom-hud { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: center; gap: 26px; padding: 0 20px; }
.credits { position: absolute; left: 20px; bottom: 0; font-size: 22px; color: var(--gold); display: flex; align-items: center; gap: 8px; text-shadow: 0 2px 4px #000; }
.vitals { display: grid; grid-template-columns: auto auto; align-items: end; gap: 0 12px; background: rgba(8, 10, 18, .65); padding: 8px 14px; min-width: 200px; }
.armor-val { font-size: 18px; color: #8ec5ff; }
.armor-val::before { content: '◆ '; font-size: 12px; }
.hp-val { font-size: 40px; font-weight: 700; line-height: 1; text-align: right; }
.hp-bar { grid-column: 1 / 3; height: 5px; background: rgba(255,255,255,.1); margin-top: 6px; position: relative; }
.hp-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; transition: width .15s; }
.hp-bar b { position: absolute; left: 0; top: -4px; height: 2px; background: #8ec5ff; }
.vitals.low .hp-val { color: var(--beta); } .vitals.low .hp-bar i { background: var(--beta); }
.abilities { display: flex; gap: 8px; }
.ability { width: 62px; text-align: center; background: rgba(8, 10, 18, .65); padding: 6px 4px; position: relative; border-bottom: 2px solid transparent; }
.ability .ic { width: 34px; height: 34px; margin: 0 auto; display: grid; place-items: center; font-size: 20px; border-radius: 50%; border: 2px solid var(--c); color: var(--c); }
.ability.empty { opacity: .35; }
.ability.ready { border-bottom-color: var(--c); }
.ability .k { font-size: 11px; color: var(--muted); margin-top: 3px; }
.ability .ch { position: absolute; top: 3px; right: 5px; font-size: 12px; }
.ability .pips { display: flex; gap: 2px; justify-content: center; margin-top: 3px; }
.ability .pips i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(255,255,255,.18); }
.ability .pips i.on { background: var(--c); }
.ability.ult.ready .ic { animation: ultglow 1.2s infinite; }
@keyframes ultglow { 50% { box-shadow: 0 0 16px var(--c); } }
.ammo { background: rgba(8, 10, 18, .65); padding: 8px 14px; min-width: 170px; text-align: right; }
.ammo .weapon-name { font-size: 13px; letter-spacing: .15em; color: var(--muted); }
#mag { font-size: 40px; font-weight: 700; line-height: 1; }
.ammo .res { font-size: 18px; color: var(--muted); margin-left: 6px; }
.slots { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.slots span { font-size: 11px; padding: 1px 6px; border: 1px solid rgba(255,255,255,.2); color: var(--muted); }
.slots span.on { border-color: #fff; color: #fff; }
#death-info { position: absolute; bottom: 140px; width: 100%; text-align: center; font-size: 18px; letter-spacing: .15em; text-shadow: 0 2px 6px #000; }
#death-info b { color: var(--beta); }
#fps { position: absolute; right: 10px; bottom: 6px; font-size: 12px; color: #9f9; }
#game-chat { position: absolute; left: 14px; bottom: 120px; width: 380px; font-family: var(--body); }
#game-chat .log div { background: rgba(8, 10, 18, .55); padding: 2px 8px; margin-top: 2px; font-size: 15px; animation: fadeout 9s forwards; }
#game-chat.open .log div { animation: none; opacity: 1; }
#game-chat input { display: none; width: 100%; margin-top: 4px; background: rgba(8, 10, 18, .85); border: 1px solid var(--accent); padding: 6px 8px; outline: none; pointer-events: auto; }
#game-chat.open input { display: block; }
@keyframes fadeout { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
#click-to-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, 40px); font-size: 16px; letter-spacing: .3em; color: #fff; background: rgba(0,0,0,.5); padding: 8px 18px; display: none; }

.overlay { position: absolute; inset: 0; display: none; background: rgba(5, 7, 14, .72); backdrop-filter: blur(3px); align-items: center; justify-content: center; }
.overlay.show { display: flex; }
.buy-inner { width: min(1100px, 94vw); }
.buy-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.buy-money { font-size: 26px; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.buy-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.buy-col h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.buy-item { background: rgba(18, 23, 38, .95); border: 1px solid var(--line); padding: 12px; margin-bottom: 8px; cursor: pointer; transition: .1s; font-family: var(--body); }
.buy-item:hover { border-color: var(--accent); background: #1e1a3a; }
.buy-item.owned { border-color: var(--ok); }
.buy-item.poor { opacity: .4; }
.buy-item .bn { font-family: var(--head); font-weight: 700; font-size: 17px; }
.buy-item .bp { color: var(--gold); font-weight: 700; }
.buy-item .bs { font-size: 13px; color: var(--muted); }
.sb-inner, .end-inner, .pause-inner { background: rgba(14, 18, 30, .96); border: 1px solid var(--line2); padding: 22px; }
.sb-inner { width: min(900px, 94vw); }
.sb-team { margin-bottom: 14px; }
.sb-row { display: grid; grid-template-columns: 34px 1fr 70px 46px 46px 46px 60px 70px 60px; align-items: center; gap: 8px; padding: 5px 8px; font-family: var(--body); font-size: 16px; background: rgba(255,255,255,.03); margin-bottom: 3px; border-left: 3px solid var(--c, transparent); }
.sb-row.head { background: none; color: var(--muted); font-size: 12px; letter-spacing: .15em; font-family: var(--head); }
.sb-row.me { background: rgba(139, 92, 255, .18); }
.sb-row.dead { opacity: .5; }
.pause-inner { width: 360px; }
.pause-inner h2 { margin-bottom: 14px; }
.pause-inner label { display: block; margin: 14px 0; color: var(--muted); font-family: var(--body); font-weight: 600; }
.pause-inner input[type=range] { width: 100%; accent-color: var(--accent); }
.pause-inner .btn { margin-top: 8px; }
.end-inner { width: min(800px, 94vw); text-align: center; }
.end-title { font-size: 64px; font-weight: 700; letter-spacing: .25em; }
.end-title.win { color: var(--alpha); } .end-title.lose { color: var(--beta); }
.end-score { font-size: 26px; margin-bottom: 8px; }
.end-reward { color: var(--gold); font-size: 20px; display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 14px; }
.end-stats { text-align: left; margin-bottom: 12px; }

#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #2a1830; border: 1px solid var(--beta); padding: 10px 20px; display: none; z-index: 10; }
#toast.show { display: block; }

@media (max-width: 900px) {
  .play-grid, .room-grid, .agents-layout, .coll-layout { grid-template-columns: 1fr; }
  .nav button { padding: 22px 8px; font-size: 12px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .logo { font-size: 16px; }
  .tab { padding: 16px; }
}
.agent-detail .agent-text { position: relative; z-index: 1; }

/* messages du staff */
#sys-notice { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(640px, 92vw); background: rgba(20, 16, 44, .96); border: 1px solid var(--accent); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); padding: 12px 44px 12px 16px; display: none; font-family: var(--body); pointer-events: auto; }
#sys-notice.show { display: block; animation: snin .25s; }
#sys-notice.kick { border-color: var(--beta); background: rgba(48, 14, 24, .97); }
#sys-notice .sn-kind { font-family: var(--head); font-size: 12px; letter-spacing: .2em; color: var(--accent2); margin-bottom: 4px; }
#sys-notice.kick .sn-kind { color: #ff9db0; }
#sys-notice .sn-text { font-size: 17px; font-weight: 600; white-space: pre-wrap; word-break: break-word; }
#sys-notice .sn-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
@keyframes snin { from { transform: translate(-50%, -10px); opacity: 0; } }
.motd { max-width: 1200px; margin: 0 auto 18px; padding: 12px 16px; background: linear-gradient(90deg, rgba(139, 92, 255, .22), rgba(25, 227, 196, .12)); border: 1px solid rgba(139, 92, 255, .5); font-size: 17px; font-weight: 600; }
.motd::before { content: '📣  '; }

/* indicateur de direction des dégâts */
#dmg-dir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#dmg-dir i { position: absolute; left: -80px; top: -150px; width: 160px; height: 150px; transform-origin: 80px 150px; animation: dmgdir 1.3s ease-out forwards; }
#dmg-dir i::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 34px; border-top: 6px solid rgba(255, 50, 70, .95); border-radius: 50% 50% 0 0 / 100% 100% 0 0; filter: drop-shadow(0 0 6px rgba(255, 0, 40, .8)); }
@keyframes dmgdir { 0% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 0; } }
#ping { position: absolute; right: 10px; bottom: 22px; font-size: 12px; color: #9f9; text-shadow: 0 1px 2px #000; }
#ping.mid { color: var(--gold); } #ping.bad { color: var(--beta); }

/* ======================= 1.5 : progression, social ======================= */
.hidden { display: none !important; }
.grow { flex: 1; }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.up { color: var(--ok); } .down { color: var(--beta); }
.xp { color: #b9a4ff; }
.link { cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.35); text-underline-offset: 3px; }
.link:hover { color: var(--accent2); }
.title-tag { font-size: 11px; font-family: var(--head); letter-spacing: .08em; color: var(--gold); border: 1px solid rgba(255, 207, 90, .4); padding: 0 5px; white-space: nowrap; }
.tag { font-family: var(--head); font-size: 10px; letter-spacing: .12em; padding: 0 4px; margin-right: 6px; border: 1px solid currentColor; }
.tag.team { color: var(--alpha); } .tag.radio { color: var(--gold); } .tag.mp { color: #ff9cf0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #4a5068; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.empty-big { text-align: center; padding: 50px 20px; font-size: 18px; color: var(--muted); max-width: 700px; margin: 40px auto; }
.badge.lvl { background: rgba(139, 92, 255, .25); color: var(--accent2); }

/* barre du haut : niveau, badge amis */
.lvl-badge { display: flex; align-items: center; gap: 8px; }
.lvl-badge b { width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--head); font-size: 15px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, var(--accent), #4b2bb8); }
.lvl-badge div { width: 70px; height: 5px; background: #23283c; }
.lvl-badge i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--alpha)); }
.nav-badge { display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 4px; border-radius: 8px; background: var(--alpha); color: #04211b; font-size: 11px; line-height: 16px; text-align: center; }
.nav-badge:empty { display: none; }
.nav-badge.warn { background: var(--beta); color: #fff; }

/* jouer : événement, actions rapides, quêtes */
.event-banner { max-width: 1200px; margin: 0 auto 18px; padding: 12px 16px; background: linear-gradient(90deg, rgba(255, 207, 90, .22), rgba(255, 79, 109, .14)); border: 1px solid rgba(255, 207, 90, .55); font-size: 17px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.qa-group { display: flex; gap: 4px; align-items: stretch; }
.qa-group select, .qa-group input { background: #0d1220; border: 1px solid var(--line2); color: var(--text); padding: 0 8px; font-size: 14px; }
.qa-group input { width: 90px; text-transform: uppercase; letter-spacing: .15em; font-family: var(--head); }
.quests { margin-bottom: 18px; }
.q-guest { padding: 12px 14px; border: 1px dashed var(--line2); color: var(--muted); }
.q-head { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 6px; }
.q-item { background: rgba(255,255,255,.03); border-left: 3px solid var(--accent); padding: 7px 10px; margin-bottom: 5px; }
.q-item.done { border-left-color: var(--ok); opacity: .75; }
.q-top, .q-bot { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.q-rew { color: var(--gold); white-space: nowrap; font-size: 14px; display: flex; gap: 5px; align-items: center; }
.q-bar { height: 5px; background: #23283c; margin: 5px 0 3px; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--alpha)); }
.q-item.done .q-bar i { background: var(--ok); }
.q-rr { background: none; border: 0; color: var(--accent2); cursor: pointer; font-size: 13px; }

/* salon */
.room-code { font-family: var(--head); letter-spacing: .12em; padding: 6px 12px; border: 1px solid var(--gold); color: var(--gold); display: flex; gap: 10px; align-items: center; }
.room-code b { font-size: 20px; letter-spacing: .3em; color: #fff; }
.mlvl { display: inline-block; min-width: 22px; text-align: center; font-size: 11px; font-family: var(--head); background: rgba(139, 92, 255, .3); margin-right: 6px; padding: 1px 3px; }
.member .x.rep { color: var(--muted); }
.member .x.rep:hover { color: var(--beta); }
.chat-log .sys { color: var(--gold); }
.chat-log .whisper { color: #ff9cf0; }

/* collection */
.sp.lock { color: var(--accent2); }

/* profil */
.profile-wrap, .lb-wrap, .friends-wrap { max-width: 1200px; margin: 0 auto; }
.profile-wrap > .panel, .pf-grid, .pf-stats { margin-bottom: 16px; }
.pf-head { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 24px; align-items: center; }
.pf-id { display: flex; gap: 14px; align-items: center; }
.pf-name { font-family: var(--head); font-size: 28px; font-weight: 700; letter-spacing: .06em; }
.pf-title { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 4px; }
.pf-title select, .fr-mp select { background: #0d1220; border: 1px solid var(--line2); color: var(--text); padding: 4px 6px; }
.pf-lv { font-family: var(--head); letter-spacing: .15em; color: var(--muted); }
.pf-lv b { font-size: 30px; color: var(--text); }
.pf-bar { height: 10px; background: #23283c; margin: 6px 0; }
.pf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--alpha)); box-shadow: 0 0 12px rgba(139, 92, 255, .6); }
.pf-rank { text-align: center; border: 1px solid var(--rc); padding: 12px; }
.pf-rank .rk { font-family: var(--head); font-size: 26px; font-weight: 700; color: var(--rc); letter-spacing: .15em; }
.pf-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pf-stat { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; }
.pf-stat b { display: block; font-size: 22px; font-family: var(--head); }
.pf-stat span { color: var(--muted); font-size: 13px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tbl th { text-align: left; color: var(--muted); font-family: var(--head); font-size: 11px; letter-spacing: .12em; padding: 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,.04); }
.tbl td .agent-icon, .h-row .agent-icon, .end-mvp .agent-icon, .fr-row .agent-icon { display: inline-grid; vertical-align: middle; margin-right: 6px; }
.hist { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.h-row { display: grid; grid-template-columns: 150px 1.6fr 110px 1fr 140px 110px; gap: 10px; align-items: center; padding: 6px 10px; background: rgba(255,255,255,.03); border-left: 3px solid var(--beta); font-size: 15px; }
.h-row.win { border-left-color: var(--alpha); }
.h-res { font-family: var(--head); font-size: 13px; letter-spacing: .1em; }
.h-row.win .h-res { color: var(--alpha); } .h-row.lose .h-res { color: var(--beta); }
.hist.mini .h-row { grid-template-columns: 130px 1.5fr 90px 1fr; font-size: 14px; }
.hist.mini .h-row span:nth-child(n+5) { display: none; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.ach { display: flex; gap: 10px; padding: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); opacity: .55; }
.ach.got { opacity: 1; border-color: rgba(255, 207, 90, .5); background: rgba(255, 207, 90, .06); }
.ach .ai { font-size: 24px; }
.pf-sec .pw-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pw-form input, .fr-add input { background: #0d1220; border: 1px solid var(--line2); padding: 9px 12px; color: var(--text); font-size: 15px; outline: none; flex: 1; min-width: 180px; }
#pw-msg { min-height: 20px; margin-bottom: 8px; font-weight: 600; }
#pw-msg.ok { color: var(--ok); } #pw-msg.err { color: #ff8fa3; }
.mvp-badge { font-family: var(--head); font-size: 12px; letter-spacing: .15em; background: linear-gradient(90deg, #ffcf5a, #ff9d3a); color: #2a1600; padding: 2px 7px; font-weight: 700; }
.mvp-badge.small { font-size: 9px; padding: 0 4px; }

/* classement */
.lb-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tbl.lb tr[data-name] { cursor: pointer; }
.tbl.lb tr[data-name]:hover td { background: rgba(139, 92, 255, .08); }
.tbl.lb tr.me td { background: rgba(139, 92, 255, .18); }
.tbl.lb .pos { font-family: var(--head); font-weight: 700; width: 50px; }
.tbl.lb .p1 { color: #ffd76a; } .tbl.lb .p2 { color: #d8e0ec; } .tbl.lb .p3 { color: #e0a070; }
.tbl.lb .v { font-weight: 700; }
.tbl.lb tr.sep td { text-align: center; color: var(--muted); }

/* amis */
.fr-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.fr-grid .panel { margin-bottom: 14px; }
.fr-add { display: flex; gap: 8px; margin-top: 10px; }
.fr-row { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.fr-row:not(.on) .fr-who { opacity: .6; }
.mp-to { margin: 10px 0; color: var(--muted); }
.mp-log { height: 300px; overflow: auto; background: #0b0f1b; border: 1px solid var(--line); padding: 8px; font-size: 15px; user-select: text; }
.mp-log .out b { color: var(--alpha); } .mp-log .in b { color: #ff9cf0; }

/* notifications */
#notifs { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; width: min(360px, 92vw); }
.notif { position: relative; background: rgba(20, 16, 44, .97); border: 1px solid var(--accent); border-left-width: 4px; padding: 10px 30px 10px 12px; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: nin .25s; font-family: var(--body); }
.notif.gold { border-color: var(--gold); }
.notif .nk { font-family: var(--head); font-size: 11px; letter-spacing: .18em; color: var(--accent2); }
.notif.gold .nk { color: var(--gold); }
.notif .nt { font-weight: 600; margin-top: 3px; word-break: break-word; }
.notif .na { display: flex; gap: 6px; margin-top: 8px; }
.notif .nx { position: absolute; right: 6px; top: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; }
@keyframes nin { from { transform: translateX(30px); opacity: 0; } }

/* fenêtre modale du menu */
.mmodal { position: fixed; inset: 0; z-index: 65; background: rgba(5, 7, 14, .7); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; }
.mmodal.show { display: flex; }
.mmodal-in { position: relative; width: min(640px, 94vw); max-height: 88vh; overflow: auto; background: rgba(14, 18, 30, .98); border: 1px solid var(--line2); padding: 22px; }
.mmodal-in h2 { margin-bottom: 12px; }
.mmodal-in h3 { margin: 14px 0 6px; color: var(--muted); font-size: 12px; letter-spacing: .15em; }
.mmodal-in label { display: block; margin: 10px 0; color: var(--muted); font-weight: 600; }
.mmodal-in select, .mmodal-in input { display: block; width: 100%; margin-top: 4px; background: #0d1220; border: 1px solid var(--line2); padding: 9px 10px; color: var(--text); font-size: 15px; }
.mmodal-in .mx { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.mmodal-in .code { font-family: var(--head); letter-spacing: .3em; color: var(--gold); }
.pp-head { display: flex; gap: 14px; align-items: center; }
.pp-name { font-family: var(--head); font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 10px; }
.pp-stats div { background: rgba(255,255,255,.04); padding: 8px; }
.pp-stats b { display: block; font-family: var(--head); font-size: 18px; }
.pp-stats span { color: var(--muted); font-size: 12px; }
.pp-ach { display: flex; flex-wrap: wrap; gap: 5px; }
.ach-chip { font-size: 12px; padding: 2px 7px; border: 1px solid rgba(255, 207, 90, .4); color: var(--gold); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.badge-ok { color: var(--ok); font-family: var(--head); letter-spacing: .15em; font-size: 12px; }

/* en partie */
.buy-item.locked { opacity: .45; cursor: not-allowed; }
.buy-item .lock { font-size: 11px; color: var(--accent2); letter-spacing: .05em; }
#radio-menu { position: absolute; left: 14px; top: 40%; display: none; background: rgba(8, 10, 18, .88); border: 1px solid var(--gold); padding: 10px 14px; font-family: var(--body); font-size: 16px; min-width: 260px; }
#radio-menu.show { display: block; }
#radio-menu h4 { margin: 0 0 6px; font-family: var(--head); font-size: 12px; letter-spacing: .15em; color: var(--gold); }
#radio-menu b { display: inline-block; width: 20px; color: var(--gold); }
#game-chat.team input { border-color: var(--alpha); }
#game-chat .log div.team { border-left: 2px solid var(--alpha); }
#game-chat .log div.radio { border-left: 2px solid var(--gold); }
#game-chat .log div.whisper { border-left: 2px solid #ff9cf0; }
#report-inner label { display: block; margin: 12px 0; color: var(--muted); font-weight: 600; }
#report-inner select, #report-inner input { display: block; width: 100%; margin-top: 4px; background: #0d1220; border: 1px solid var(--line2); padding: 8px; color: var(--text); font-size: 15px; }
.sb-lvl { display: inline-block; min-width: 22px; text-align: center; font-size: 11px; font-family: var(--head); background: rgba(139, 92, 255, .3); margin-right: 6px; }
.sb-title { font-size: 10px; color: var(--gold); font-family: var(--head); letter-spacing: .08em; }
.end-mvp { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 17px; }
.end-progress { margin: 0 auto 14px; max-width: 620px; text-align: left; }
.ep-row { padding: 6px 10px; margin-bottom: 4px; background: rgba(255,255,255,.04); font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ep-row.lvlup { color: var(--gold); font-family: var(--head); letter-spacing: .08em; border-left: 3px solid var(--gold); }
.ep-row.quest { border-left: 3px solid var(--ok); }
.ep-row.ach { border-left: 3px solid #ff9d3a; }

@media (max-width: 900px) {
  .pf-head, .pf-grid, .fr-grid { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .h-row { grid-template-columns: 1fr 1fr; }
  .lvl-badge div { display: none; }
}

/* barre du haut : 8 onglets sur les écrans de portable */
.profile { flex: none; }
.conn { white-space: nowrap; }
@media (max-width: 1500px) {
  .topbar { gap: 16px; padding: 0 18px; }
  .nav button { padding: 22px 9px; letter-spacing: .07em; font-size: 14px; }
  .profile { gap: 10px; }
  .profile .badge { display: none; }
  .lvl-badge div { width: 46px; }
}
@media (max-width: 1180px) {
  .logo { font-size: 18px; letter-spacing: .2em; }
  .nav button { padding: 22px 6px; font-size: 12px; }
  .pname { display: none; }
}

/* guide « Comment jouer » */
.guide p { margin: 6px 0; line-height: 1.4; }
.g-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 15px; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 2px; text-align: center; font-family: var(--head); font-size: 12px; background: #1c2236; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 3px; }
.mmodal-in .btn.wide { margin-top: 14px; }

/* pied de page légal (accueil) */
.site-legal { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 13px; color: var(--muted); pointer-events: auto; z-index: 2; }
.site-legal a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.site-legal a:hover { color: var(--text); text-decoration: underline; }

/* ralentissement (givre) */
#frost-overlay { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(158,231,255,.38) 100%); box-shadow: inset 0 0 90px rgba(190,240,255,.45); }
#frost-overlay.on { opacity: 1; }

/* marqueurs de position */
.mark-tag { position: absolute; left: 0; top: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--mc); text-shadow: 0 1px 3px #000; font-weight: 700; will-change: transform; }
.mark-tag .mi { font-size: 22px; line-height: 1; filter: drop-shadow(0 0 6px var(--mc)); }
.mark-tag .mn { font-size: 11px; color: #fff; }
.mark-tag .md { font-size: 11px; color: #fff; opacity: .85; }
.mark-tag.danger .mi { animation: markPulse .5s ease-in-out infinite alternate; }
.mark-tag.edge .mn { display: none; }
@keyframes markPulse { from { transform: scale(1); } to { transform: scale(1.3); } }

/* killcam */
#killcam { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: none; min-width: 320px; text-align: center; padding: 10px 18px; background: rgba(8,10,20,.72); border: 1px solid rgba(255,79,109,.5); border-radius: 10px; }
#killcam.on { display: block; }
#killcam .kc-top { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 15px; color: #fff; }
#killcam .kc-tag { background: #ff4f6d; color: #fff; font-weight: 800; letter-spacing: .12em; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
#killcam .kc-bar { height: 3px; background: rgba(255,255,255,.15); margin: 8px 0 6px; border-radius: 2px; overflow: hidden; }
#killcam .kc-bar i { display: block; height: 100%; width: 0; background: #ff4f6d; }
#killcam .kc-skip { font-size: 11px; color: rgba(255,255,255,.6); }
body.killcam-on #hud::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(255,40,80,.35); }

/* clans */
.clan-tag { color: #ffcf5a; font-weight: 700; letter-spacing: .02em; }
.cl-form { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; margin-top: 10px; }
.cl-head { display: flex; gap: 16px; align-items: center; }
.cl-head h2 { margin: 0 0 4px; }
.cl-tag { font: 800 34px var(--head); color: #ffcf5a; padding: 10px 14px; border: 2px solid rgba(255,207,90,.45); }
.cl-desc { margin: 8px 0 0; }
.cl-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.tag.clan { color: #ffcf5a; }
.tbl.lb tr.me td { background: rgba(255,207,90,.08); }
@media (max-width: 640px) { .cl-form { grid-template-columns: 1fr; } .cl-head { flex-direction: column; align-items: flex-start; } }

/* tournois */
.tr-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.tr-grid .panel { margin-bottom: 14px; }
.tr-item { padding: 10px; border: 1px solid var(--line); margin-top: 8px; cursor: pointer; }
.tr-item.sel { border-color: var(--alpha); background: rgba(25,227,196,.06); }
.tr-item.st-done, .tr-item.st-cancelled { opacity: .65; }
.tr-players { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tr-mine { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; padding: 12px; border: 1px solid rgba(255,207,90,.5); background: rgba(255,207,90,.07); }
.tr-champ { margin-top: 12px; font-size: 18px; color: #ffcf5a; }
.tr-bracket { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; }
.tr-round { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 170px; }
.tr-rname { font: 700 13px var(--head); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.tr-match { border: 1px solid var(--line); background: #0b0f1b; }
.tr-match.st-ready { border-color: rgba(255,207,90,.6); } .tr-match.st-playing { border-color: var(--alpha); }
.tr-p { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; font-size: 14px; }
.tr-p + .tr-p { border-top: 1px solid rgba(255,255,255,.06); }
.tr-p.w { color: #fff; font-weight: 700; } .tr-p.l { opacity: .45; text-decoration: line-through; } .tr-p.tbd { color: var(--muted); font-style: italic; }
.tr-p.me { background: rgba(25,227,196,.08); }
.tr-p i { font-style: normal; color: var(--muted); font-size: 12px; }
.tr-note { font-size: 11px; padding: 2px 8px; color: var(--muted); } .tr-note.live { color: var(--alpha); }
.gold { color: #ffcf5a; }
@media (max-width: 900px) { .tr-grid { grid-template-columns: 1fr; } }

/* ---------- commandes tactiles ---------- */
#touch-ui { position: absolute; inset: 0; pointer-events: none; --ts: 1; --to: .55; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#touch-ui > * { pointer-events: auto; touch-action: none; }
#touch-ui .t-look { position: absolute; top: 0; right: 0; bottom: 0; left: 38%; }
#touch-ui .t-stick-zone { position: absolute; left: 0; bottom: 0; width: 38%; height: 72%; }
#touch-ui .t-stick { position: fixed; width: calc(120px * var(--ts)); height: calc(120px * var(--ts)); margin: calc(-60px * var(--ts)) 0 0 calc(-60px * var(--ts)); left: calc(110px * var(--ts)); top: calc(100% - 110px * var(--ts)); border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(10,14,28,.25); opacity: var(--to); pointer-events: none; }
#touch-ui .t-stick.on { opacity: .9; }
#touch-ui .t-knob { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; margin: -23% 0 0 -23%; border-radius: 50%; background: rgba(255,255,255,.55); }
#touch-ui .t-btn { position: absolute; width: calc(54px * var(--ts)); height: calc(54px * var(--ts)); border-radius: 50%; border: 2px solid rgba(255,255,255,.4); background: rgba(10,14,28,.45); color: #fff; font: 700 calc(18px * var(--ts)) var(--head); opacity: var(--to); display: grid; place-items: center; padding: 0; }
#touch-ui .t-btn.on { opacity: 1; background: rgba(25,227,196,.45); transform: scale(.94); }
#touch-ui .t-btn.lit { background: rgba(25,227,196,.35); border-color: var(--alpha); opacity: .9; }
#touch-ui .b-fire { width: calc(84px * var(--ts)); height: calc(84px * var(--ts)); right: calc(36px * var(--ts)); bottom: calc(70px * var(--ts)); font-size: calc(30px * var(--ts)); border-color: rgba(255,79,109,.7); background: rgba(255,79,109,.25); }
#touch-ui .b-fire2 { left: calc(24px * var(--ts)); top: 38%; border-color: rgba(255,79,109,.6); background: rgba(255,79,109,.2); }
#touch-ui .b-jump { right: calc(130px * var(--ts)); bottom: calc(40px * var(--ts)); }
#touch-ui .b-crouch { right: calc(190px * var(--ts)); bottom: calc(18px * var(--ts)); }
#touch-ui .b-reload { right: calc(140px * var(--ts)); bottom: calc(110px * var(--ts)); }
#touch-ui .b-scope { right: calc(48px * var(--ts)); bottom: calc(170px * var(--ts)); display: none; }
#touch-ui.has-scope .b-scope { display: grid; }
#touch-ui .b-q { right: calc(210px * var(--ts)); bottom: calc(160px * var(--ts)); }
#touch-ui .b-e { right: calc(150px * var(--ts)); bottom: calc(185px * var(--ts)); }
#touch-ui .b-x { right: calc(90px * var(--ts)); bottom: calc(230px * var(--ts)); border-color: rgba(255,207,90,.7); }
#touch-ui .b-cycle { right: calc(36px * var(--ts)); bottom: calc(10px * var(--ts)); width: calc(46px * var(--ts)); height: calc(46px * var(--ts)); }
#touch-ui .b-use { right: calc(250px * var(--ts)); bottom: calc(90px * var(--ts)); }
#touch-ui .b-mark { right: calc(260px * var(--ts)); bottom: calc(220px * var(--ts)); width: calc(44px * var(--ts)); height: calc(44px * var(--ts)); }
#touch-ui .b-buy, #touch-ui .b-score, #touch-ui .b-chat, #touch-ui .b-pause { width: calc(42px * var(--ts)); height: calc(42px * var(--ts)); border-radius: 10px; top: calc(10px * var(--ts)); font-size: calc(15px * var(--ts)); }
#touch-ui .b-pause { right: calc(10px * var(--ts)); }
#touch-ui .b-score { right: calc(60px * var(--ts)); }
#touch-ui .b-chat { right: calc(110px * var(--ts)); }
#touch-ui .b-buy { right: calc(160px * var(--ts)); }
#touch-ui.no-buy .b-buy, #touch-ui.no-use .b-use { display: none; }
#touch-ui.dead .t-btn:not(.b-pause):not(.b-score):not(.b-chat):not(.b-fire) { display: none; }
#touch-ui.dead .t-stick-zone { display: none; }
#rotate-hint { display: none; position: fixed; inset: 0; z-index: 200; background: #070a14; color: #fff; font: 600 20px var(--head); text-align: center; padding: 30px; place-content: center; gap: 14px; }
#rotate-hint div { font-size: 54px; animation: rot 1.6s ease-in-out infinite; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 70%, 100% { transform: rotate(90deg); } }
@media (orientation: portrait) { body.touch-game #rotate-hint { display: grid; } }
/* en mode tactile, le HUD est compacté pour laisser la place aux boutons */
body.touch-game #click-to-play { display: none !important; }
body.touch-game #abilities .k { display: none; }
body.touch-game #game-chat { top: 60px; bottom: auto; max-width: 38vw; font-size: 12px; }
body.touch-game #minimap { width: 120px; height: 120px; }
body.touch-game .kc-skip { display: none; }
@media (pointer: coarse) { #game-canvas { touch-action: none; } }
/* HUD compact sur écran tactile : bandeau du bas centré et réduit, fil des éliminations sous les boutons */
body.touch-game #bottom-hud { left: 46%; right: auto; bottom: 4px; transform: translateX(-50%) scale(.62); transform-origin: bottom center; width: max-content; justify-content: center; }
body.touch-game .slots { display: none; }
body.touch-game #killfeed { top: 80px; right: auto; left: 50%; transform: translateX(-50%) scale(.55); transform-origin: top center; align-items: center; }
body.touch-game #ping, body.touch-game #fps { display: none; }
body.touch-game #killcam { bottom: 90px; min-width: 0; }
/* menu : défilement horizontal quand les onglets ne tiennent pas (9 onglets) */
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.topbar > :not(.nav) { flex-shrink: 0; }
/* le pied de page légal a sa propre bande : il ne recouvre plus le contenu des onglets */
#menu .tab { bottom: 26px; }
.site-legal { bottom: 0; height: 26px; line-height: 26px; background: rgba(9, 12, 21, .85); border-top: 1px solid var(--line); font-size: 12px; }
body.killcam-on #death-info { opacity: 0; }

/* observation staff */
#spec-panel { position: absolute; right: 12px; top: 90px; width: 330px; max-height: calc(100vh - 110px); overflow: auto; pointer-events: auto; background: rgba(8,10,20,.88); border: 1px solid rgba(255,207,90,.5); padding: 12px; font-family: var(--body); font-size: 13px; z-index: 6; }
#spec-panel .sp-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
#spec-panel .sp-tag { background: #ffcf5a; color: #1a1300; font-weight: 800; padding: 2px 8px; letter-spacing: .08em; font-size: 11px; }
#spec-panel .sp-name { font-size: 16px; margin-bottom: 6px; }
#spec-panel .sp-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin-bottom: 8px; }
#spec-panel .sp-grid span { color: var(--muted); }
#spec-panel .bad { color: #ff4f6d; }
#spec-panel .sp-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
#spec-panel .sp-row select, #spec-panel .sp-row input { flex: 1; min-width: 0; }
body.spectating #bottom-hud .credits, body.spectating #abilities .k { opacity: .6; }
body.spectating #killfeed { top: 90px; right: 360px; }

/* paramètres : taille de l'interface, chat, filtres daltoniens, mouvements réduits, mode streamer */
#bottom-hud, #minimap, #killfeed, #top-hud, #abilities { zoom: var(--hs, 1); }
#game-chat { font-size: calc(15px * var(--chs, 1)); }
body[data-cb="protan"] #game-canvas { filter: url(#cb-protan); }
body[data-cb="deutan"] #game-canvas { filter: url(#cb-deutan); }
body[data-cb="tritan"] #game-canvas { filter: url(#cb-tritan); }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
body.streamer #room-code b { filter: blur(6px); }
#netgraph { position: absolute; left: 14px; bottom: 120px; display: none; pointer-events: none; border: 1px solid rgba(255,255,255,.1); }
.dmg-num { position: absolute; top: calc(50% - 40px); transform: translateX(-50%); font: 800 18px var(--head); color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; animation: dmgUp .8s ease-out forwards; }
.dmg-num.head { color: #ffcf5a; font-size: 22px; } .dmg-num.kill { color: #ff4f6d; }
@keyframes dmgUp { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -46px; } }
/* paramètres : recherche et profils */
.set-search { width: 100%; margin-bottom: 8px; }
.set-sec { color: var(--muted); font-size: 12px; }
.prof-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.prof-slot { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.prof-acts { display: flex; gap: 6px; flex-wrap: wrap; }
#touch-ui.lefty { transform: scaleX(-1); }
#touch-ui.lefty .t-btn { transform: scaleX(-1); }
#touch-ui.lefty .t-btn.on { transform: scaleX(-1) scale(.94); }

/* jeu : nouveaux éléments d'interface */
.radio-like, #emote-menu { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); background: rgba(8,10,18,.85); border: 1px solid var(--line); padding: 10px 14px; display: none; font-family: var(--body); font-size: 15px; }
#emote-menu.show { display: block; }
#emote-menu h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; }
#emote-menu b { color: var(--alpha); margin-right: 6px; }
.emote-bubble { position: absolute; left: 0; top: 0; background: rgba(8,10,18,.85); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 3px 9px; font: 600 15px var(--body); white-space: nowrap; pointer-events: none; }
#streak { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); font: 800 16px var(--head); letter-spacing: .1em; color: #ffcf5a; text-shadow: 0 1px 3px #000; }
#leader { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); font: 700 13px var(--head); color: #ffcf5a; letter-spacing: .08em; text-shadow: 0 1px 3px #000; }
#ult-warn { position: absolute; left: 50%; top: 116px; transform: translateX(-50%); font: 800 15px var(--head); color: #ff4f6d; letter-spacing: .1em; text-shadow: 0 1px 3px #000; }
#nade-warn { position: absolute; left: 50%; top: 50%; display: none; font-size: 30px; color: #ff9a3d; text-shadow: 0 0 8px #000; pointer-events: none; }
#obj-tag { position: absolute; left: 0; top: 0; display: none; flex-direction: column; align-items: center; pointer-events: none; color: #ff2f6d; text-shadow: 0 1px 3px #000; font-weight: 700; }
#obj-tag .mi { font-size: 22px; } #obj-tag .md { font-size: 11px; color: #fff; }
#obj-tag.planted .mi { animation: markPulse .5s ease-in-out infinite alternate; }
#combat { position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%); display: none; background: rgba(8,10,18,.75); border: 1px solid var(--line); padding: 8px 14px; font: 14px var(--body); max-width: 90vw; text-align: center; }
#tip { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); background: rgba(8,10,18,.75); border: 1px solid var(--line); padding: 8px 16px; font: 14px var(--body); max-width: min(560px, 90vw); text-align: center; opacity: 0; transition: opacity .4s; pointer-events: none; }
#tip.show { opacity: 1; }
.sb-hist { display: flex; gap: 3px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.sb-hist i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; border-radius: 3px; background: #2a3045; }
.sb-hist i.won { background: rgba(25,227,196,.6); } .sb-hist i.lost { background: rgba(255,79,109,.6); }
.end-row { grid-template-columns: 30px 1.6fr .7fr .9fr .6fr .6fr .8fr .6fr 1fr !important; }
.end-vote { margin: 14px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.end-vote .ev-title { font: 700 13px var(--head); letter-spacing: .12em; color: var(--muted); }
.end-vote .ev-maps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rs-opts { margin: 8px 0; } .rs-opts summary { cursor: pointer; color: var(--muted); }
body.touch-game #streak { bottom: 70px; } body.touch-game #tip { bottom: 90px; font-size: 12px; }
#emote-menu { pointer-events: auto; } #emote-menu [data-emote] { cursor: pointer; padding: 2px 0; }
#touch-ui .b-emote { width: calc(42px * var(--ts)); height: calc(42px * var(--ts)); border-radius: 10px; top: calc(10px * var(--ts)); right: calc(210px * var(--ts)); font-size: calc(16px * var(--ts)); }

/* social et profil */
.pf-custom { background: linear-gradient(rgba(10,14,26,.82), rgba(10,14,26,.92)), var(--bn); }
.pf-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.pf-banners .bn { height: 46px; border: 2px solid transparent; color: #fff; font: 700 11px var(--head); display: flex; align-items: flex-end; justify-content: center; padding: 4px; cursor: pointer; text-shadow: 0 1px 2px #000; position: relative; }
.pf-banners .bn.on { border-color: #fff; } .pf-banners .bn.locked { filter: grayscale(.8) brightness(.6); }
.pf-show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.pp-banner { height: 70px; margin: -18px -18px 10px; }
.rank-frame { display: inline-block; padding: 3px; border: 3px solid var(--rc, #8a93ad); border-radius: 8px; box-shadow: 0 0 12px -2px var(--rc, transparent); }
.pp-motto { font-style: italic; color: #d8dcf0; margin-top: 4px; }
.pp-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.sc-item { border: 1px solid rgba(255,207,90,.4); background: rgba(255,207,90,.06); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pp-extra { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0; font-size: 14px; }
.endorse-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.endorse { border: 1px solid var(--line); padding: 3px 8px; font-size: 13px; }
.tbl.cmp td.gold { font-weight: 700; }
.fr-row .pin { background: none; border: 0; color: #59617a; cursor: pointer; font-size: 16px; padding: 0 2px; }
.fr-row .pin.on { color: #ffcf5a; }
.badge-ok.small { font-size: 10px; padding: 1px 5px; }
.daily-shop { border: 1px solid rgba(255,207,90,.35); background: rgba(255,207,90,.04); padding: 10px 12px; margin-bottom: 12px; }
.shop-head { margin-bottom: 8px; }
.shop-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.shop-item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.shop-item .sw { width: 100%; height: 34px; }
.cl-motd { margin: 6px 0 0; color: #ffcf5a; }
.end-endorse { margin: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.end-endorse .ev-title { font: 700 13px var(--head); letter-spacing: .12em; color: var(--muted); }
.ee-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
/* menu à 9 onglets : plus compact sur les écrans moyens */
@media (max-width: 1600px) { .nav button { padding: 22px 8px; letter-spacing: .05em; font-size: 13px; } .topbar { gap: 14px; } }
@media (max-width: 1500px) { #conn-status { display: none; } .logo span, .brand-text { letter-spacing: .2em; } }

/* ---------- accessibilité (1.8) ---------- */
#menu .tab { zoom: var(--uif, 1); }
body.hi-contrast { --muted: #c9d0e2; --line: #4a5577; --line2: #6a78a0; --text: #ffffff; }
body.hi-contrast .panel { border-color: #6a78a0; }
body.hi-contrast #hud { text-shadow: 0 0 2px #000, 0 0 3px #000; }
body.hi-contrast[data-cb="none"] #game-canvas { filter: contrast(1.18) saturate(1.25); }
body.no-flash #flash-overlay { background: #111522 !important; }
#captions { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; z-index: 6; }
#captions .cap { background: rgba(0, 0, 0, .72); color: #fff; font: 600 calc(15px * var(--hs, 1)) var(--body); padding: 3px 12px; border-radius: 4px; letter-spacing: .03em; animation: capIn .15s ease-out; }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.reduce-motion #captions .cap { animation: none; }

/* ---------- lot B (1.9) : social et interface ---------- */
.tag.party { color: #7dff6b; }
.room-item { grid-template-columns: auto 1fr auto auto auto; }
.fav-star { background: none; border: 0; color: #4a5577; font-size: 18px; cursor: pointer; padding: 0 2px; line-height: 1; }
.fav-star:hover, .fav-star.on { color: var(--gold); }
.room-item.fav { border-color: rgba(255, 207, 90, .45); }
#party-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; padding: 8px 12px; border: 1px solid rgba(125, 255, 107, .35); background: rgba(125, 255, 107, .06); }
#party-bar.hidden { display: none; }
#party-bar .pb-m { padding: 2px 8px; background: rgba(255, 255, 255, .06); border-radius: 10px; font-size: 14px; }
#party-bar .pb-m.lead { color: var(--gold); }
.party-panel { border-color: rgba(125, 255, 107, .35); }
.btn.unread { border-color: var(--gold); color: var(--gold); }
#name-menu { position: fixed; z-index: 60; min-width: 180px; background: #121829; border: 1px solid var(--line2); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); display: flex; flex-direction: column; padding: 6px; }
#name-menu b { padding: 4px 8px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#name-menu button { background: none; border: 0; color: var(--text); text-align: left; padding: 6px 8px; cursor: pointer; font: inherit; }
#name-menu button:hover { background: rgba(139, 92, 255, .2); }
.chat-log .cn { cursor: pointer; text-decoration: underline dotted rgba(255, 255, 255, .3); }
#tour { position: fixed; inset: 0; z-index: 80; }
#tour .tour-spot { position: fixed; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(4, 6, 12, .72), 0 0 18px rgba(139, 92, 255, .6); border-radius: 4px; pointer-events: none; transition: all .2s; }
#tour .tour-box { position: fixed; width: 340px; background: #141a2c; border: 1px solid var(--accent); padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
#tour .tour-box h3 { margin: 4px 0 6px; } #tour .tour-box p { margin: 0 0 12px; line-height: 1.4; }
#react-hint { position: absolute; right: 16px; top: 190px; background: rgba(0, 0, 0, .65); padding: 6px 12px; border-left: 3px solid var(--alpha); font-size: 15px; opacity: 0; transform: translateX(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
#react-hint.show { opacity: 1; transform: none; } #react-hint.sent { border-left-color: var(--gold); }
#react-hint kbd { background: #fff; color: #000; padding: 0 5px; border-radius: 3px; font-weight: 700; margin-right: 4px; }
#react-recv { position: absolute; left: 50%; top: 200px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; align-items: center; pointer-events: none; }
#react-recv .rr { background: rgba(0, 0, 0, .7); padding: 6px 14px; border-radius: 16px; font-size: 16px; animation: capIn .2s ease-out; }
#react-recv .re { font-size: 20px; }
#round-sum { position: absolute; left: 50%; top: 318px; transform: translateX(-50%); min-width: 300px; background: rgba(8, 11, 20, .82); border: 1px solid var(--line2); padding: 10px 18px; text-align: center; opacity: 0; transition: opacity .25s; pointer-events: none; }
#round-sum.show { opacity: 1; } #round-sum.win { border-color: var(--alpha); } #round-sum.lose { border-color: var(--beta); }
#round-sum .rs-score { font: 800 34px var(--head); display: flex; justify-content: center; gap: 14px; }
#round-sum .rs-score .ally { color: var(--alpha); } #round-sum .rs-score .enemy { color: var(--beta); } #round-sum .rs-score i { color: var(--muted); font-style: normal; }
#round-sum .rs-me { display: flex; justify-content: center; gap: 22px; margin: 4px 0; }
#round-sum .rs-me div { display: flex; flex-direction: column; } #round-sum .rs-me b { font-size: 20px; } #round-sum .rs-me span { font-size: 12px; color: var(--muted); }
#round-sum .rs-goal { font-size: 13px; }
#match-prog { position: relative; height: 4px; margin: 4px auto 0; width: 100%; background: rgba(255, 255, 255, .1); display: flex; justify-content: space-between; }
#match-prog i { display: block; height: 100%; transition: width .4s; }
#match-prog .mp-a { background: var(--alpha); } #match-prog .mp-b { background: var(--beta); }
/* lecture simple */
body.readable, body.readable button, body.readable input, body.readable select { font-family: Verdana, 'Segoe UI', Arial, sans-serif !important; letter-spacing: .02em; }
body.readable p, body.readable .muted, body.readable .set-label, body.readable .chat-log, body.readable .notif { line-height: 1.55; word-spacing: .08em; }
/* thème clair du menu */
body.theme-light #menu { --bg: #eef1f7; --bg2: #e2e7f1; --panel: rgba(255, 255, 255, .92); --line: #c8cfde; --line2: #aab4c9; --text: #161b2a; --muted: #4f5a74; --accent2: #5b34d6; color: var(--text); }
body.theme-light #bg-fx { background: linear-gradient(160deg, #f4f6fb, #dfe5f2); }
body.theme-light #bg-fx::after { opacity: 0; }
body.theme-light #menu .topbar { background: rgba(255, 255, 255, .8); }
body.theme-light #menu .room-item, body.theme-light #menu input, body.theme-light #menu select, body.theme-light #menu textarea { background: #fff; color: var(--text); border-color: var(--line2); }
body.theme-light #menu .btn.ghost { color: var(--text); border-color: var(--line2); }
body.theme-light #menu .hero h1 { background: linear-gradient(180deg, #2b2f45, #6b4be0); -webkit-background-clip: text; background-clip: text; }
body.theme-light #menu .chat-log, body.theme-light #menu .q-item, body.theme-light #menu .set-row, body.theme-light #menu .fr-row { color: var(--text); }
body.theme-light #menu .set-nav button { background: #fff; color: var(--text); }
body.theme-light #menu .set-nav button.active { background: rgba(91, 52, 214, .12); }
body.theme-light .notif { background: #fff; color: #161b2a; }
body.theme-light #menu .badge { color: #5b34d6; }
body.theme-light:has(#menu.active) { background: #e9edf5; }
body.theme-light #menu { background: #e9edf5; }
body.theme-light #menu .mp-log, body.theme-light #menu .chat-log, body.theme-light #menu .room-list .empty { background: #f7f9fd; color: var(--text); border-color: var(--line); }
body.theme-light #menu .btn:not(.primary):not(.ghost):not(.danger) { background: #dfe4ef; color: var(--text); }
body.theme-light #menu .set-nav button.active { background: rgba(91, 52, 214, .14); color: #3a1fa8; }
body.theme-light #menu .currency, body.theme-light #menu .gold { color: #9a6a00; }
body.theme-light #name-menu { background: #fff; color: #161b2a; } body.theme-light #name-menu button { color: #161b2a; }

/* ---------- 1.11 : boutique, HUD et outils en partie ---------- */
#buy-extra { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
#buy-extra .buy-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
#buy-extra h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
#buy-extra h4 .muted { letter-spacing: 0; font-size: 11px; }
.buy-gear { flex: 1 1 320px; background: rgba(18, 23, 38, .9); border: 1px solid var(--line); padding: 10px 12px; min-height: 40px; }
.buy-gear:empty { display: none; }
.bg-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 0; font-family: var(--body); }
.buy-acts { flex: 2 1 420px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.buy-acts kbd { font-size: 10px; padding: 0 4px; }
.buy-favs { display: flex; gap: 6px; flex-wrap: wrap; }
.bfav { display: inline-flex; } .bfav [data-fav] { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bfav [data-fav].empty { opacity: .6; }
.bfav [data-favsave] { padding-left: 6px; padding-right: 6px; border-left: 0; }
.buy-eco { flex: 1 1 320px; font-size: 13px; font-family: var(--body); } .buy-eco b { color: var(--gold); }
.buy-team { flex: 1 1 360px; } .buy-team:empty { display: none; }
.bt-row { display: grid; grid-template-columns: 1.4fr .7fr 1fr .6fr; gap: 8px; font: 14px var(--body); padding: 2px 0; } .bt-row.dead { opacity: .45; } .bt-row .ok { color: var(--ok); }
.buy-item:focus-visible, #buy-extra button:focus-visible, .gp-focus { outline: 2px solid var(--gold) !important; outline-offset: 2px; }
.team-icons > div { position: relative; }
.team-icons .hpb { position: absolute; left: 2px; right: 2px; bottom: -5px; height: 3px; background: rgba(0, 0, 0, .6); }
.team-icons .hpb b { display: block; height: 100%; width: 100%; background: var(--alpha); transition: width .2s; } .team-icons .hpb.low b { background: var(--beta); }
#alive-count { font: 700 12px var(--head); letter-spacing: .08em; color: #d8dcef; margin-top: 2px; } #alive-count .ally { color: var(--alpha); } #alive-count .enemy { color: var(--beta); }
#buffs { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; zoom: var(--hs, 1); }
#buffs .buff { background: rgba(8, 10, 18, .75); border: 1px solid var(--line2); padding: 2px 9px; font: 600 13px var(--body); border-radius: 3px; }
#buffs .b-pr { border-color: var(--alpha); color: var(--alpha); } #buffs .b-rv { border-color: var(--beta); color: var(--beta); animation: blink .8s infinite; } #buffs .b-sl { color: #9ee7ff; }
@keyframes blink { 50% { opacity: .45; } }
#ammo-warn { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); font: 800 14px var(--head); letter-spacing: .14em; color: var(--gold); text-shadow: 0 1px 4px #000; pointer-events: none; animation: blink 1s infinite; }
#ammo-warn:empty { display: none; }
#crosshair.on-enemy i { background: #ff3355 !important; }
#minimap.big { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(2.6); z-index: 8; background: rgba(8, 10, 18, .85); zoom: 1; }
#dmg-report { position: absolute; left: 16px; top: 250px; min-width: 230px; background: rgba(8, 11, 20, .85); border: 1px solid var(--line2); padding: 8px 12px; font: 14px var(--body); opacity: 0; transition: opacity .25s; pointer-events: none; zoom: var(--hs, 1); }
#dmg-report.show { opacity: 1; } #dmg-report h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.dr-row { display: grid; grid-template-columns: 1fr 52px 52px; gap: 6px; } .dr-row.dead span:first-child { color: var(--muted); }
.dr-out { color: var(--ok); text-align: right; } .dr-in { color: var(--beta); text-align: right; }
#chal { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); text-align: center; font: 15px var(--body); text-shadow: 0 1px 3px #000; pointer-events: none; }
#chal:empty { display: none; } #chal .ch-t { font: 800 26px var(--head); color: var(--gold); }
#core-hint.warn { color: var(--beta); font-weight: 700; animation: blink .7s infinite; }
.mute-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.spec-hp { color: var(--ok); }
.pad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 18px; margin-bottom: 14px; }
body.touch-game #buffs { bottom: 60px; } body.touch-game #dmg-report { top: 140px; transform: scale(.8); transform-origin: top left; }
body.pad-mode #click-to-play { display: none !important; } body.pad-mode { cursor: none; }
.gp-focus { box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(255, 207, 90, .45) !important; }
