/* BR PROJECT — identité visuelle (dark, néon, Fortnite 3e personne) */
:root{
  --bg: #070A14;
  --bg-2: #0B0E1E;
  --panel: #0F1328;
  --panel-2: #141A33;
  --line: #1C2344;
  --line-2: #242E5A;
  --text: #F1F3FF;
  --muted: #8B93B8;
  --cyan: #00F0FF;
  --magenta: #FF006B;
  --lime: #CCFF00;
  --amber: #FF7A29;
  --radius: 18px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: radial-gradient(1200px 700px at 50% -10%, #1A2250 0%, var(--bg) 55%), var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a { color: inherit; }

/* Icon system — SVG sprite */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.ico-lg { width: 20px; height: 20px; }
.ico-xl { width: 26px; height: 26px; }

/* Screens */
.screen { position: fixed; inset: 0; display: none; overflow-y: auto; background: var(--bg); }
.screen.active { display: block; }
.screen::before{
  content:""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(0,240,255,0.08), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(255,0,107,0.07), transparent 60%);
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: grid; place-items: center; color: var(--bg); font-weight: 900; font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,240,255,0.18);
}
.brand-wordmark { line-height: 1; }
.brand-wordmark b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -0.6px; }
.brand-wordmark span { font-size: 9px; letter-spacing: 3px; color: var(--muted); font-weight: 700; }

/* Hero title (3D depth) */
.hero { text-align: center; padding: 28px 18px 10px; }
.hero h1 {
  margin: 0; font-size: clamp(42px, 10vw, 64px); font-weight: 950; letter-spacing: -1.5px; line-height: 0.9;
  text-transform: uppercase;
}
.hero h1 .a { color: var(--text); text-shadow: 0 2px 0 rgba(0,0,0,0.5); }
.hero h1 .b {
  background: linear-gradient(90deg, var(--cyan), #7C4DFF 50%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tag { color: var(--muted); margin: 10px 0 6px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.hero .tag b { color: var(--lime); }
.divider {
  width: 56px; height: 3px; border-radius: 99px; margin: 14px auto;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  opacity: 0.9;
}

/* Buttons */
.big-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 360px; margin: 12px auto;
  padding: 16px 20px; font-size: 15px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
  border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--amber), #FF9E3D);
  color: #16110A; box-shadow: 0 10px 28px rgba(255,122,41,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.08s, filter 0.15s;
}
.big-btn:active { transform: scale(0.98); }
.big-btn:hover { filter: brightness(1.03); }
.big-btn.secondary {
  background: var(--panel-2); color: var(--text); box-shadow: none;
  border: 1px solid var(--line-2);
}
.big-btn.ghost {
  background: transparent; border: 1px dashed var(--line-2); color: var(--muted);
}
.big-btn .ico { width: 18px; height: 18px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(15,19,40,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar h2 { margin: 0; font-size: 16px; flex: 1; letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.icon-btn:active { transform: scale(0.97); }
.currency { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.currency span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--panel-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.currency .credits { color: #FFD166; }
.currency .xp { color: var(--cyan); }
.currency .level { color: var(--lime); background: rgba(204,255,0,0.08); border-color: rgba(204,255,0,0.18); }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--panel), #0C1022);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 14px auto; max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.card h3 {
  margin: 0 0 12px; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.6px; font-weight: 800;
  display: flex; align-items: center; gap: 7px;
}
.card h3 .ico { color: var(--cyan); width: 14px; height: 14px; }
.map-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.map-card {
  padding: 10px 7px; border-radius: 14px; text-align: center;
  background: var(--panel-2); border: 2px solid var(--line); cursor: pointer;
  transition: border-color 0.15s, transform 0.08s, box-shadow 0.15s;
}
.map-card:active { transform: scale(0.98); }
.map-card canvas { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 7px; border: 1px solid rgba(255,255,255,0.06); }
.map-card .name { font-size: 12px; font-weight: 850; letter-spacing: -0.2px; }
.map-card .sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.map-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,240,255,0.14), 0 8px 20px rgba(0,240,255,0.12); }
.map-card.selected .name { color: var(--cyan); }

.season {
  font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center;
  padding: 10px; border-radius: 12px; background: rgba(0,240,255,0.06); border: 1px solid rgba(0,240,255,0.12);
}
.season b { color: var(--cyan); }

/* Boutique */
.tabs { display: flex; gap: 8px; padding: 12px 16px 0; max-width: 400px; margin: 0 auto; }
.tab {
  flex: 1; padding: 11px 8px; border: 1px solid var(--line); background: var(--panel-2);
  border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted);
}
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.shop-list { max-width: 400px; margin: 12px auto 90px; padding: 0 16px; }
.shop-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px; margin-bottom: 11px;
}
.shop-item .swatch {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  border: 2px solid rgba(255,255,255,0.08); box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.shop-item .info { flex: 1; min-width: 0; }
.shop-item .info b { display: block; font-size: 14px; letter-spacing: -0.2px; }
.shop-item .info small { color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.shop-item button {
  padding: 10px 14px; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, var(--amber), #FF9E3D); color: #16110A; font-weight: 900; font-size: 12px; letter-spacing: 0.3px; cursor: pointer;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.shop-item button.owned { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); }
.shop-item button.equipped { background: rgba(204,255,0,0.12); color: var(--lime); border: 1px solid rgba(204,255,0,0.28); }

/* Casier */
.locker-wrap { max-width: 400px; margin: 12px auto 90px; padding: 0 16px; }
.preview-box { display: flex; justify-content: center; margin: 10px 0; }
#previewCanvas { background: radial-gradient(400px 300px at 50% 30%, #1A2250, #0D1120); border-radius: 16px; border: 1px solid var(--line); width: 100%; max-width: 360px; height: auto; }
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatch {
  aspect-ratio: 1; border-radius: 13px; border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22); cursor: pointer; padding: 0;
}
.swatch.selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--cyan); }
.swatch.locked { opacity: 0.28; cursor: not-allowed; filter: grayscale(0.3); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 20px; letter-spacing: -0.5px; }
.stat small { color: var(--muted); font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; font-weight: 800; }

/* HUD — over-the-shoulder */
#gameScreen { overflow: hidden; touch-action: none; background: #050814; }
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; background: #050814; }
#hud { position: absolute; inset: 0; pointer-events: none; font-size: 13px; font-weight: 800; }
#topHud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 8px;
}
#topHud .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,19,40,0.88); border: 1px solid rgba(255,255,255,0.08);
  padding: 7px 11px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(8px);
}
#playersAlive { color: var(--lime); }
#killCount { color: var(--cyan); }
#zoneTimer { color: var(--text); }
#centerMsg {
  position: absolute; top: 36%; left: 12px; right: 12px; text-align: center;
  font-size: 18px; font-weight: 900; letter-spacing: -0.3px; text-shadow: 0 4px 18px rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 0.28s, transform 0.28s; transform: translateY(6px);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
#centerMsg .ico { width: 22px; height: 22px; }
#centerMsg.show { opacity: 1; transform: translateY(0); }
#bottomHud {
  position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: end; gap: 10px;
}
#bottomHud .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,19,40,0.88); border: 1px solid rgba(255,255,255,0.08);
  padding: 9px 12px; border-radius: 12px; backdrop-filter: blur(8px);
}
#exitGameBtn {
  pointer-events: auto; background: rgba(15,19,40,0.9); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
}
#pauseOverlay {
  position: absolute; inset: 0; background: rgba(7,10,20,0.88); backdrop-filter: blur(10px); z-index: 4;
  display: none; align-items: center; justify-content: center; pointer-events: auto;
}
#pauseOverlay.show { display: flex; }

/* Kill feed */
#killFeed {
  position: absolute; top: 56px; left: 12px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2px;
}
#killFeed > div {
  background: rgba(15,19,40,0.9); border: 1px solid rgba(255,255,255,0.06);
  padding: 6px 10px; border-radius: 999px; color: #C7CCEE;
  display: inline-flex; align-items: center; gap: 6px;
}
#killFeed .ico { width: 12px; height: 12px; }
#killFeed .kf-me { color: var(--lime); border-color: rgba(204,255,0,0.18); background: rgba(204,255,0,0.08); }

/* Crosshair (3e personne — dot + brackets Fortnite-like) */
#crosshair {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  pointer-events: none; opacity: 0.92;
}
#crosshair::before, #crosshair::after {
  content:""; position: absolute; background: var(--text); border-radius: 99px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
#crosshair::before { left: 11px; top: 0; width: 2px; height: 7px; }
#crosshair::after { left: 0; top: 11px; width: 7px; height: 2px; }
#crosshair i { position: absolute; right: 0; top: 11px; width: 7px; height: 2px; background: var(--text); border-radius: 99px; box-shadow: 0 1px 6px rgba(0,0,0,0.6); }
#crosshair b { position: absolute; left: 11px; bottom: 0; width: 2px; height: 7px; background: var(--text); border-radius: 99px; box-shadow: 0 1px 6px rgba(0,0,0,0.6); }

/* Contrôles tactiles */
.stick-zone, .fire-zone { position: absolute; bottom: 0; pointer-events: auto; z-index: 3; }
.stick-zone { left: 0; width: 44%; height: 60%; }
.fire-zone { right: 0; width: 56%; height: 60%; }
#stickBase, #stickKnob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
#stickBase { width: 108px; height: 108px; border: 1.5px solid rgba(255,255,255,0.22); background: rgba(15,19,40,0.28); backdrop-filter: blur(6px); }
#stickKnob { width: 52px; height: 52px; background: rgba(255,255,255,0.92); box-shadow: 0 8px 18px rgba(0,0,0,0.28); }
#stickBase.hidden, #stickKnob.hidden { display: none; }
#fireBtn {
  position: absolute; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: 82px; height: 82px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.14); background: linear-gradient(180deg, rgba(255,122,41,0.96), rgba(255,70,40,0.96));
  color: #1A0F0A; font-size: 11px; font-weight: 950; letter-spacing: 0.8px; cursor: pointer; pointer-events: auto; z-index: 6;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(255,80,40,0.32);
}
#fireBtn .ico { width: 22px; height: 22px; }
#fireBtn:active { transform: scale(0.96); }

/* Barre d'objets */
#useBar {
  position: absolute; right: 14px; bottom: 112px;
  display: flex; flex-direction: column; gap: 9px; z-index: 6;
}
.use-btn {
  width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(15,19,40,0.88);
  display: grid; place-items: center; cursor: pointer; pointer-events: auto;
  color: var(--text); position: relative; backdrop-filter: blur(8px);
}
.use-btn:active { transform: scale(0.96); }
.use-btn.empty { opacity: 0.32; }
.use-btn .ct {
  position: absolute; top: -6px; right: -6px;
  background: var(--lime); color: #0B0E1A; font-size: 11px; font-weight: 900;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.use-btn.empty .ct { display: none; }
.use-btn .ico { width: 20px; height: 20px; }

/* Bus + saut */
#busUI {
  position: absolute; top: 18%; left: 12px; right: 12px;
  display: none; justify-content: center; pointer-events: none;
}
#busUI.show { display: flex; }
#busUI .bus-inner {
  background: rgba(15,19,40,0.92); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 14px 18px; text-align: center;
  backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 4px; align-items: center;
}
#busUI b { color: var(--cyan); font-size: 15px; letter-spacing: 0.6px; display: inline-flex; align-items: center; gap: 7px; }
#busUI span { color: var(--muted); font-size: 11px; font-weight: 700; }
#jumpBtn {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 14px 22px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--cyan), #7C4DFF); color: #0B0E1A; font-size: 13px; font-weight: 950; letter-spacing: 1px;
  cursor: pointer; pointer-events: auto; z-index: 7; display: none; align-items: center; gap: 8px;
  box-shadow: 0 14px 32px rgba(0,240,255,0.22);
}
#jumpBtn.show { display: inline-flex; }
#jumpBtn:active { transform: translateX(-50%) scale(0.98); }

/* Résultats */
#resultScreen { text-align: center; padding: 18px; }
.result-title { font-size: 32px; margin: 44px 0 6px; font-weight: 950; letter-spacing: -1px; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.result-title.win { background: linear-gradient(90deg, var(--lime), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-title.lose { color: var(--muted); }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; margin: 18px auto; }
.reward-line { color: var(--muted); font-size: 13px; margin: 8px 0; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* Toasts */
#toasts { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  max-width: min(92vw, 380px); text-align: center;
}
.toast .ico { width: 16px; height: 16px; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: 0.28s; }

/* Modales */
.modal-back {
  position: fixed; inset: 0; background: rgba(7,10,20,0.82); backdrop-filter: blur(12px); z-index: 40;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.show { display: flex; }
.modal {
  background: linear-gradient(180deg, var(--panel), #0B0F1E); border: 1px solid var(--line-2); border-radius: 20px;
  padding: 22px; max-width: 360px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.modal h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.4px; }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 0 16px; }
.modal ul { text-align: left; color: #C7CCEE; font-size: 13px; line-height: 1.8; margin: 0 0 16px; padding-left: 18px; }
.modal .big-btn { margin: 0 auto 10px; }
.reward-badge .ico { width: 32px; height: 32px; color: var(--amber); }

@media (min-width: 500px) {
  .hero h1 { font-size: 62px; }
}

/* Overlay paysage obligatoire */
#rotateOverlay {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(800px 600px at 50% 0%, #1A2250 0%, var(--bg) 60%), var(--bg);
  display: none; align-items: center; justify-content: center; padding: 24px; text-align: center;
}
#rotateOverlay.show { display: flex; }
.rotate-card { max-width: 340px; }
.rotate-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--cyan); }
.rotate-icon .ico { width: 36px; height: 36px; }
#rotateOverlay h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.4px; }
#rotateOverlay p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
#rotateOverlay .tag { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

/* HUD : barres HP/Bouclier + hotbar */
#healthHud { display: flex; flex-direction: column; gap: 6px; min-width: 140px; flex: 1; max-width: 220px; }
.bar-row { display: flex; align-items: center; gap: 6px; }
.bar-ico { width: 18px; height: 18px; display: grid; place-items: center; color: #ff5d5d; flex: none; }
.bar-ico.shield { color: #6ee7f9; }
.bar-bg { flex: 1; height: 10px; border-radius: 999px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 0.15s; }
.bar-fill.hp { background: linear-gradient(90deg, #ff3b3b, #ff7a29); }
.bar-fill.shield { background: linear-gradient(90deg, #00d4ff, #6ee7f9); }
.bar-num { font-size: 12px; font-weight: 900; min-width: 28px; text-align: right; }
#hotbar { display: flex; gap: 6px; align-items: end; flex-wrap: wrap; }
.hot-slot {
  min-width: 56px; height: 52px; border-radius: 12px;
  background: rgba(15,19,40,0.92); border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center; gap: 2px; padding: 6px 8px;
  color: var(--text); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
  backdrop-filter: blur(8px); pointer-events: auto; cursor: pointer; position: relative;
}
.hot-slot.use-btn { min-width: 52px; }
.hot-slot.active-slot { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0,240,255,0.18); }
.hot-slot .hot-name { font-size: 9px; line-height: 1; }
.hot-slot .ct { position: absolute; top: -6px; right: -6px; background: var(--lime); color: #0B0E1A; font-size: 11px; font-weight: 900; min-width: 18px; height: 18px; border-radius: 10px; display: grid; place-items: center; padding: 0 4px; }
.hot-slot.empty { opacity: 0.32; }
.hot-slot.empty .ct { display: none; }

/* Boutons Sauter / Courir (HUD) */
#sprintBtn, #jumpBtnAction {
  position: absolute; bottom: max(16px, env(safe-area-inset-bottom));
  width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.10);
  display: none; place-items: center; gap: 2px; font-size: 9px; font-weight: 900; letter-spacing: 0.6px;
  cursor: pointer; pointer-events: auto; z-index: 6; backdrop-filter: blur(8px);
}
#sprintBtn { left: 14px; background: rgba(15,19,40,0.88); color: var(--text); }
#sprintBtn.active { background: var(--lime); color: #0B0E1A; border-color: var(--lime); }
#jumpBtnAction { right: 108px; background: rgba(255,255,255,0.92); color: #0B0E1A; border-color: rgba(255,255,255,0.14); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
#jumpBtnAction:active, #sprintBtn:active { transform: scale(0.96); }
#sprintBtn.show, #jumpBtnAction.show { display: grid; }
#sprintBtn .ico, #jumpBtnAction .ico { width: 20px; height: 20px; }

/* Ajustements HUD bas */
#bottomHud { align-items: end; gap: 8px; }
@media (max-width: 500px) {
  #healthHud { max-width: 150px; }
  #hotbar { gap: 4px; }
  .hot-slot { min-width: 46px; height: 46px; padding: 4px 6px; }
}

