:root { --accent: #ff8a3d; --bg: rgba(14, 17, 22, 0.86); --line: rgba(255,255,255,0.12); --text: #eef2f6; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1014; color: var(--text); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
#game canvas { display: block; }
.hidden { display: none !important; }
.muted { color: #9aa6b2; }
.small { font-size: 12px; }

/* ---------- Menu ---------- */
#menu { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(0,0,0,0.15), rgba(0,0,0,0.6)); }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; width: 380px; backdrop-filter: blur(8px); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.panel.wide { width: 760px; }
.panel h1 { margin: 0; font-size: 42px; letter-spacing: 8px; color: var(--accent); text-shadow: 0 0 18px rgba(255,138,61,0.5); }
.panel h2 { margin-top: 0; }
input { width: 100%; padding: 10px 12px; margin: 5px 0; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--text); font-size: 14px; }
button { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.1); color: var(--text); font-weight: 600; cursor: pointer; transition: background .15s; }
button:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #1a0f05; width: 100%; margin-top: 6px; font-size: 16px; }
button.primary:hover { background: #ffa364; }
button.danger { background: #b3262e; border-color: #b3262e; }
button.ghost { background: transparent; }
button.small { padding: 6px 10px; font-size: 12px; }
.row { display: flex; gap: 8px; margin-top: 10px; }
.row > button { flex: 1; }
#auth-box, #account-box, #play-box { margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.controls { margin-top: 14px; font-size: 13px; color: #b9c3cd; }
.shop { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
#preview { width: 300px; height: 360px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #2a3340, #12161c); }
.list { max-height: 360px; overflow-y: auto; }
.list h4 { margin: 10px 0 6px; color: #9aa6b2; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.item:hover, .item.sel { border-color: var(--line); background: rgba(255,255,255,0.05); }
.item-name { flex: 1; }
.price { color: var(--accent); font-weight: 700; }
.notice { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 8px; background: #263241; z-index: 10; max-width: 80vw; }
.notice.ok { background: #1f6f43; } .notice.error { background: #8f1f26; } .notice.warn { background: #8a5a12; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; user-select: none; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  background: linear-gradient(#fff,#fff) center/2px 8px no-repeat, linear-gradient(#fff,#fff) center/8px 2px no-repeat; opacity: .85; }
#crosshair::after { content: ''; position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.0); }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%) rotate(45deg); opacity: 0;
  background: linear-gradient(#fff,#fff) center/2px 100% no-repeat, linear-gradient(#fff,#fff) center/100% 2px no-repeat;
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
#hitmarker.head { background: linear-gradient(#ff4a4a,#ff4a4a) center/2px 100% no-repeat, linear-gradient(#ff4a4a,#ff4a4a) center/100% 2px no-repeat; }
#hitmarker.show { animation: flash .25s ease-out; }
#damage { position: absolute; inset: 0; box-shadow: inset 0 0 160px rgba(220,20,20,0.85); opacity: 0; }
#damage.show { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
#timer { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 26px; font-weight: 800; text-shadow: 0 2px 6px #000; }
#score { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #d7dee5; text-shadow: 0 1px 4px #000; }
#killfeed { position: absolute; top: 14px; right: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.kf { background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.kf.mine { border: 1px solid var(--accent); }
.kf span { color: #9aa6b2; }
#toasts { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { background: rgba(0,0,0,.55); padding: 6px 14px; border-radius: 6px; font-size: 14px; }
#bottom-left { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; }
#hp-bar { width: 220px; height: 14px; background: rgba(0,0,0,.5); border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
#hp-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #3ddc84, #a4f07a); transition: width .15s; }
#hp-fill.low { background: linear-gradient(90deg, #e53935, #ff7043); }
#hp-text { font-size: 22px; font-weight: 800; text-shadow: 0 2px 6px #000; }
#bottom-right { position: absolute; right: 24px; bottom: 20px; text-align: right; text-shadow: 0 2px 6px #000; }
#weapon-name { font-size: 14px; color: #c9d2da; }
#ammo { font-size: 30px; font-weight: 800; }
.overlay-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
#death h2 { font-size: 44px; color: #ff5252; margin: 0; text-shadow: 0 2px 10px #000; }
#death p { text-shadow: 0 2px 6px #000; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); }
tr.me td { color: var(--accent); font-weight: 700; }
#click-hint { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #c9d2da; opacity: .7; }

.bots-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 14px; }
select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #1b2028; color: var(--text); }
#crosshair { transition: transform .12s, opacity .12s; }
#crosshair.ads { transform: translate(-50%, -50%) scale(0.55); opacity: .5; }

/* ---------- Visée : réticules et lunettes ---------- */
#crosshair.off { opacity: 0 !important; }
#reticle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#reticle.reddot { width: 6px; height: 6px; border-radius: 50%; background: #ff3030; box-shadow: 0 0 6px 2px rgba(255, 40, 40, .85); }
#reticle.holo { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 70, 70, .95); box-shadow: 0 0 6px rgba(255, 40, 40, .8), inset 0 0 6px rgba(255, 40, 40, .6); }
#reticle.holo::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; transform: translate(-50%, -50%); border-radius: 50%; background: #ff4040; box-shadow: 0 0 4px #ff2020; }
#reticle.iron { display: none; }
#scope { position: absolute; inset: 0; }
#scope .scope-mask { position: absolute; inset: 0;
  background: radial-gradient(circle closest-side at 50% 50%, rgba(0,0,0,0) 0 84%, rgba(0,0,0,.55) 91%, #000 93%); }
#scope .scope-ret { position: absolute; left: 50%; top: 50%; width: 90vh; height: 90vh; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, rgba(140,190,255,.05), rgba(0,0,0,.18)); }
/* Mil-dot (lunettes x4 / x8) : fils fins, poteaux épais à l'extérieur, graduations */
#scope.mildot .scope-ret {
  background:
    linear-gradient(#000,#000) center / 100% 1.5px no-repeat,
    linear-gradient(#000,#000) center / 1.5px 100% no-repeat,
    linear-gradient(#000,#000) left center / 32% 7px no-repeat,
    linear-gradient(#000,#000) right center / 32% 7px no-repeat,
    linear-gradient(#000,#000) center bottom / 7px 32% no-repeat,
    radial-gradient(circle, rgba(140,190,255,.05), rgba(0,0,0,.18)); }
#scope.mildot .scope-ret::before { content: ''; position: absolute; left: 50%; top: 50%; width: 36%; height: 9px; transform: translate(-50%, -50%);
  background: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 9.5%) center / 100% 100% no-repeat; }
#scope.mildot .scope-ret::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 36%; transform: translate(-50%, -50%);
  background: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 9.5%); }
/* Lunette x3 type ACOG : chevron lumineux + graduations de chute de balle */
#scope.acog .scope-ret {
  background:
    linear-gradient(#111,#111) center 50% / 46% 1.5px no-repeat,
    linear-gradient(#111,#111) center 60% / 10% 1.5px no-repeat,
    linear-gradient(#111,#111) center 68% / 7% 1.5px no-repeat,
    linear-gradient(#111,#111) center 75% / 5% 1.5px no-repeat,
    linear-gradient(#111,#111) 50% 100% / 1.5px 46% no-repeat,
    radial-gradient(circle, rgba(255,230,180,.05), rgba(0,0,0,.2)); }
#scope.acog .scope-ret::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translateX(-50%);
  border-left: 1.3vh solid transparent; border-right: 1.3vh solid transparent; border-bottom: 2.2vh solid #ff6a1f;
  filter: drop-shadow(0 0 4px rgba(255,110,30,.9)); }
#scope .breath { position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%); width: 160px; text-align: center; opacity: .8; }
#scope .breath span { display: block; height: 4px; border-radius: 2px; background: #9fe0ff; transform-origin: left; }
#scope .breath em { font-size: 11px; color: #cfd8e0; font-style: normal; }

/* ---------- Niveaux / XP ---------- */
.lvl-badge { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: linear-gradient(135deg, #ffb35c, #ff7a2e); color: #1a0f05; font-weight: 800; font-size: 14px; }
#level-box { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.xpbar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
#xp-fill { height: 100%; width: 0; background: linear-gradient(90deg, #ffb35c, #ff7a2e); transition: width .3s; }
#xp-pop { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-weight: 800; color: #ffd27a; text-shadow: 0 2px 6px #000; opacity: 0; }
#xp-pop.show { animation: xpup 1.4s ease-out; }
@keyframes xpup { 0% { opacity: 0; transform: translate(-50%, 10px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30px); } }

/* ---------- Armurerie ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button.sel { background: var(--accent); color: #1a0f05; border-color: var(--accent); }
#armory-preview { width: 300px; height: 220px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #2a3340, #12161c); display: block; }
#armory-stats { margin-top: 10px; font-size: 13px; }
#armory-stats div { display: flex; justify-content: space-between; padding: 3px 2px; border-bottom: 1px solid var(--line); }
#armory-stats b { color: var(--accent); }
.list.tall { max-height: 440px; }
.item.locked { opacity: .55; }
.item .desc { display: block; font-size: 12px; color: #9aa6b2; font-weight: 400; }

/* Salles ouvertes sur le serveur */
.rooms-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 4px; font-size: 14px; }
.list.rooms { max-height: 170px; }

/* ---------- Création de salle : carte / mode / hardcore ---------- */
.room-opts { display: grid; gap: 4px; margin: 6px 0; font-size: 14px; }
.room-opts > label { display: flex; align-items: center; gap: 10px; }
.room-opts select { flex: 1; min-width: 0; width: 0; }
#map-desc { margin: -2px 0 2px; }
#panel-main { max-height: calc(100vh - 24px); overflow-y: auto; }
.room-opts .bots-row select { flex: 0 0 auto; width: auto; }
.room-opts .check input { width: auto; margin: 0; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tag.hc { background: #8f1f26; }

/* ---------- Équipes ---------- */
#teamscore { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-weight: 800; text-shadow: 0 2px 6px #000; }
#teamscore .t0, #teamscore .t1 { min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 6px; font-size: 20px; }
#teamscore .t0 { background: rgba(61,155,255,.75); } #teamscore .t1 { background: rgba(255,75,62,.75); }
#ts-limit { font-size: 11px; color: #d7dee5; font-weight: 600; }
#teamscore:not(.hidden) ~ #score { top: 80px; }
#mode-tag { position: absolute; top: 16px; left: 18px; font-size: 12px; color: #d7dee5; opacity: .75; text-shadow: 0 1px 4px #000; }
.team-badge { padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.team-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 520px; }
.team-final { font-size: 22px; font-weight: 800; }
#prot { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); padding: 4px 12px; border-radius: 6px; background: rgba(60,180,255,.35); font-size: 13px; }

/* ---------- Hardcore : HUD minimal ---------- */
#hud.hc #crosshair, #hud.hc #hitmarker, #hud.hc #bottom-left #hp-bar, #hud.hc #hp-text, #hud.hc #score { display: none !important; }

/* ---------- Direction des dégâts ---------- */
#hurt { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hurt-arc { position: absolute; left: 0; top: 0; width: 220px; height: 220px; animation: fadeout 1.2s ease-out forwards; }
.hurt-arc::before { content: ''; position: absolute; left: 50%; top: 0; width: 70px; height: 16px; transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse at 50% 100%, rgba(255,40,40,.9), rgba(255,40,40,0) 70%); }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Killfeed avec icônes ---------- */
.kf { display: flex; align-items: center; gap: 8px; }
.kf-weapon { display: inline-flex; align-items: center; color: #fff; }
.kf-weapon svg { width: 54px; height: 20px; display: block; }
.kf-weapon.text { color: #9aa6b2; }
.kf-hs { display: inline-flex; color: #ff5a4a; }
.kf-hs svg { width: 16px; height: 16px; display: block; }

/* ---------- Discussion ---------- */
#chat { position: absolute; left: 18px; bottom: 70px; width: min(440px, 40vw); font-size: 14px; }
#chat-log { display: flex; flex-direction: column; gap: 2px; }
.chat-line { padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.35); text-shadow: 0 1px 2px #000; word-wrap: break-word; transition: opacity .8s; }
.chat-line.old, .chat-line.hidden-line { opacity: 0; }
.chat-line.sys { color: #c9d2da; font-style: italic; }
.chat-name { font-weight: 700; }
.chat-team { color: #8fe0a0; font-weight: 700; }
#chat-form { display: none; align-items: center; gap: 6px; margin-top: 6px; pointer-events: auto; }
#chat.open #chat-form { display: flex; }
#chat.open .chat-line { opacity: 1; }
#chat.open .chat-line.hidden-line { display: block; }
#chat-chan { font-weight: 700; font-size: 12px; color: #d7dee5; }
#chat-chan.team { color: #8fe0a0; }
#chat-input { margin: 0; padding: 7px 10px; background: rgba(0,0,0,.6); }

/* Skins : rareté, boutons d'achat, volumes, zoom de lunette variable */
.tag.r-common { background: rgba(255,255,255,.14); }
.tag.r-rare { background: #2463b8; }
.tag.r-epic { background: #7a3bc2; }
.tag.r-legend { background: #c27a1c; }
.tag.anim { background: linear-gradient(90deg, #ff3fa4, #29d3ff, #7cff4f, #ffe14d, #ff3fa4); background-size: 300% 100%; color: #10131a; font-weight: 800; letter-spacing: .04em; animation: animbadge 3s linear infinite; }
@keyframes animbadge { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .tag.anim { animation: none; } }
.tag.sig { background: #3a3f48; border: 1px solid #c9a24a; color: #f2d58a; font-weight: 700; }
#shop-tabs button { padding: 4px 8px; font-size: 12px; }
button.buy { background: var(--accent); color: #1a0f05; border-color: var(--accent); }
.item .item-name .tag { margin-left: 4px; }
label.vol { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
label.vol input { width: 100%; }
#scope .zoomlvl { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); color: #9fe0ff; font: 600 13px system-ui, sans-serif; text-shadow: 0 1px 2px #000; }

/* ---------- Mode daltonien (client/js/accessibility.js) : actif seulement si <html data-cb="…"> ---------- */
html[data-cb] #hitmarker { background: linear-gradient(var(--cb-hit),var(--cb-hit)) center/2px 100% no-repeat, linear-gradient(var(--cb-hit),var(--cb-hit)) center/100% 2px no-repeat; }
html[data-cb] #hitmarker.head { background: linear-gradient(var(--cb-hit-head),var(--cb-hit-head)) center/3px 100% no-repeat, linear-gradient(var(--cb-hit-head),var(--cb-hit-head)) center/100% 3px no-repeat; }
html[data-cb] #hitmarker.kill { background: linear-gradient(var(--cb-hit-kill),var(--cb-hit-kill)) center/4px 100% no-repeat, linear-gradient(var(--cb-hit-kill),var(--cb-hit-kill)) center/100% 4px no-repeat; }
html[data-cb] .kf.mine { border-color: var(--cb-kf-mine); }
html[data-cb] .kf-hs { color: var(--cb-kf-hs); }
html[data-cb] #damage { box-shadow: inset 0 0 160px var(--cb-damage); }
.cb-team-0 { color: var(--cb-team-0, #3d9bff); }
.cb-team-1 { color: var(--cb-team-1, #ff4b3e); }
.cb-ally { color: var(--cb-ally, #3d9bff); }
.cb-enemy { color: var(--cb-enemy, #ff4b3e); }
label.cb-setting { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; font-size: 13px; }
.cb-preview { display: inline-flex; gap: 6px; }
.cb-swatch { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #d7dee5; }
.cb-swatch::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--sw); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* ---------- Phase 2 : grenades, posture, annonceur, FPS ---------- */
#menu { overflow-y: auto; }
#menu .panel { max-height: 96vh; overflow-y: auto; }
#flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
#announce { position: absolute; top: 132px; left: 50%; transform: translateX(-50%); font-size: 26px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #ffd27a; text-shadow: 0 2px 10px #000, 0 0 18px rgba(255,160,60,.55); opacity: 0; white-space: nowrap; }
#announce.show { animation: announce 2.2s ease-out; }
@keyframes announce { 0% { opacity: 0; transform: translateX(-50%) scale(1.35); } 12% { opacity: 1; transform: translateX(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
#fps { position: absolute; top: 8px; right: 10px; font: 700 12px ui-monospace, monospace; color: #b8ffb0; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 4px; }
#nades { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 4px; }
#nades .nd { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #e6ebf0; }
#nades .nd svg { width: 46px; height: 17px; }
#nades .nd b { font-size: 18px; }
#nades .nd.empty { opacity: .35; }
#nades kbd { font: 700 10px system-ui; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 4px; color: #c9d2da; }
#stance { font-size: 12px; color: #9fd8ff; min-height: 14px; text-transform: uppercase; letter-spacing: 1px; }
.vol select, #game-settings select { margin-left: 6px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; }
label.check input { width: auto; margin: 0; }

/* ---------- Écran de fin de manche ---------- */
#roundend { width: min(1000px, 96vw); max-height: 92vh; overflow-y: auto; text-align: left; }
#roundend h2 { margin: 0 0 4px; text-align: center; font-size: 34px; }
#roundend h2.win { color: #5be38f; } #roundend h2.loss { color: #ff6b6b; }
#roundend > p { text-align: center; margin: 4px 0 10px; }
.es-mvp { text-align: center; margin: 6px auto 12px; padding: 6px 12px; border-radius: 8px; background: rgba(255,210,122,.1); border: 1px solid rgba(255,210,122,.35); width: fit-content; }
.es-mvp .tag { background: #c9a24a; color: #1a1205; }
.es-grid { display: grid; grid-template-columns: 1fr 270px; gap: 16px; align-items: start; }
.es-table th, .es-table td { padding: 4px 6px; font-size: 13px; }
.es-table tr.mvp td:first-child::after { content: ' ★'; color: #ffd27a; }
.es-grid .team-tables { min-width: 0; grid-template-columns: 1fr; }
.es-me h4, .es-bp h4, .es-ch h4 { margin: 8px 0 6px; font-size: 12px; color: #9aa6b2; text-transform: uppercase; letter-spacing: 1px; }
.es-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 13px; }
.es-stats div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 2px 0; }
.es-bar { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin: 4px 0; }
.es-bar > * { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffd27a); }
.es-bar.small { height: 5px; flex: 1; }
.es-ch-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 3px 0; }
.es-ch-row span { flex: 2; }
.es-ch-row.done b { color: #5be38f; }
.es-next { text-align: center; }
b.ok { color: #5be38f; }
#roundend .kc-best { margin-top: 12px; }
@media (max-width: 900px) { .es-grid { grid-template-columns: 1fr; } }

/* ---------- Stand d'entraînement ---------- */
#range-hud { position: absolute; top: 120px; right: 16px; width: 210px; background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
#range-hud > b { display: block; color: var(--accent); margin-bottom: 4px; }
#range-hud div { display: flex; justify-content: space-between; }
#range-hud p { margin: 6px 0 0; }
#range-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 94vw); pointer-events: auto; z-index: 5; }
#range-panel .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
#range-panel .tabs .sel, .tabs button.sel { background: var(--accent); color: #1a0f05; border-color: var(--accent); }
.range-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 10px 0; }
.range-slots label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.range-slots select { max-width: 60%; }

/* ---------- Aperçu 3D de la boutique ---------- */
#preview { cursor: grab; }
#preview.grabbing { cursor: grabbing; }

/* ---------- Passe de combat ---------- */
.panel.wide#panel-battlepass { width: min(1100px, 96vw); }
.bp-status { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.bp-status .lvl-badge { font-size: 18px; min-width: 38px; height: 38px; }
.bp-prog { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.bp-prog .xpbar { height: 10px; } .bp-prog .xpbar > div { height: 100%; background: linear-gradient(90deg, var(--accent), #ffd27a); }
button.buy { background: linear-gradient(90deg, #c27a1c, #ffb347); border-color: #ffb347; color: #1a0f05; }
button.primary.small { width: auto; margin-top: 0; font-size: 12px; }
.bp-track { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scroll-behavior: smooth; }
.bp-col { flex: 0 0 112px; display: flex; flex-direction: column; gap: 6px; }
.bp-legend { flex-basis: 74px; position: sticky; left: 0; z-index: 1; background: rgba(14,17,22,.95); }
.bp-tier { text-align: center; font-weight: 800; color: #9aa6b2; border-bottom: 3px solid rgba(255,255,255,.1); padding-bottom: 2px; }
.bp-col.reached .bp-tier { color: var(--accent); border-color: var(--accent); }
.bp-col.next .bp-tier { color: #fff; border-color: #fff; }
.bp-cell { height: 112px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 4px; text-align: center; font-size: 11px; }
.bp-cell.premium { background: linear-gradient(180deg, rgba(194,122,28,.18), rgba(194,122,28,.05)); border-color: rgba(255,179,71,.3); }
.bp-cell.lab { justify-content: center; font-weight: 700; font-size: 12px; }
.bp-cell.empty { color: #59636e; justify-content: center; }
.bp-cell.claimed { opacity: .55; }
.bp-cell.claimable { border-color: #5be38f; box-shadow: 0 0 10px rgba(91,227,143,.35); }
.bp-cell.locked .bp-ico, .bp-cell.premium-locked .bp-ico { filter: grayscale(1); opacity: .6; }
.bp-ico { font-size: 22px; }
.bp-name { line-height: 1.15; max-height: 3.5em; overflow: hidden; }
.bp-state { color: #9aa6b2; font-weight: 700; }
.bp-cell.claimed .bp-state { color: #5be38f; }
.bp-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.bp-extra h4, #ch-list h4, #fr-body h4 { margin: 10px 0 6px; color: #9aa6b2; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }

/* ---------- Défis, amis et groupe ---------- */
#panel-challenges, #panel-friends { width: 460px; }
.ch-item { cursor: default; }
.ch-item.done .ch-count { color: #5be38f; }
.ch-count { white-space: nowrap; font-size: 13px; }
#fr-body .item { cursor: default; }
#fr-body .row { margin-top: 0; }
#fr-body form.row input { margin: 0; }
#fr-body form.row button { flex: 0 0 auto; }
.dot.on { background: #3ddc84; } .dot.off { background: #59636e; }
button.ghost.danger { background: transparent; border-color: #b3262e; color: #ff8a8a; }
#party-join { position: static; transform: none; margin-bottom: 10px; max-width: none; }
#party-join button { margin-left: 6px; }

/* ---------- 0.4.1 : VIP, confirmation de paiement (renonciation au droit de rétractation) */
.tag.vip { background: linear-gradient(90deg, #f2b33d, #ffe08a); color: #1a1206; font-weight: 800; letter-spacing: .04em; }
.vip-card { border: 1px solid rgba(242,179,61,.45); background: linear-gradient(135deg, rgba(58,22,96,.55), rgba(27,11,51,.55)); border-radius: 10px; padding: 10px 14px; margin: 6px 0 10px; }
.vip-card.on { border-color: #f2b33d; box-shadow: 0 0 12px rgba(242,179,61,.25); }
.vip-head { display: flex; align-items: center; gap: 8px; }
.vip-price { margin-left: auto; font-weight: 800; color: #ffd36b; }
.vip-perks { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.vip-card .row { gap: 8px; flex-wrap: wrap; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #151a22; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 18px 20px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.modal h3 { margin: 0 0 6px; }
.pd-price { margin: 4px 0 10px; font-size: 18px; }
.pd-waiver { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px; border: 1px solid rgba(242,179,61,.5); border-radius: 8px; background: rgba(242,179,61,.06); cursor: pointer; font-size: 14px; line-height: 1.35; }
.pd-waiver input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.modal .row { gap: 8px; margin-top: 8px; }
button.buy:disabled { opacity: .45; cursor: not-allowed; }
/* Liens du site sous le menu principal (0.5.0) */
.menu-footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); opacity: .75; line-height: 1.7; }
.menu-footer a { color: inherit; }
.menu-footer a:hover { color: #ff8a3d; }
