/* Charte « Ribât » (refaite le 15 nov. 2026, porteur : « un truc digne vraiment des FPS qu'on connaît… ambiance Call of /
   Overwatch ») : panneaux d'ardoise sombre et nets, coins coupés, une seule couleur d'appel (le laiton clair du titre),
   le bleu et l'orange réservés aux équipes. Police (public/polices/PROVENANCE.md) : Barlow Condensed, capitales serrées des
   grands jeux de tir, chiffres très lisibles ; Cinzel ne reste que pour le numéro de manche de la survie (façon Black Ops). */
@font-face { font-family: 'Barlow Condensed'; src: url(polices/barlow-condensed-500.woff2) format('woff2'); font-weight: 400 600; font-display: block; }
@font-face { font-family: 'Barlow Condensed'; src: url(polices/barlow-condensed-700.woff2) format('woff2'); font-weight: 700 900; font-display: block; }
@font-face { font-family: 'Cinzel'; src: url(polices/cinzel.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
  --nuit: #0b0d11; --ardoise: rgba(13, 16, 21, .86); --ardoise-pleine: rgba(13, 16, 21, .96); --filet: rgba(255, 255, 255, .14);
  --accent: #f0d48a; --accent-fort: #e2b54e; --ivoire: #f3efe6; --pale: rgba(243, 239, 230, .62);
  --bleu: #3d9bff; --orange: #ff8a2a; --email: #c8402f;
  /* Anciens noms, gardés pour ce qui les lit encore (studio son, panneau du bac à sable). */
  --laiton: #e2b54e; --laiton-clair: #f0d48a; --laiton-sombre: #8a6a2a; --noyer: #1a1f27;
  --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif; --texte: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ombre: 0 1px 2px #000d, 0 0 10px #0008;
  --coin: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --coin-petit: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--nuit); color: var(--ivoire);
  font: 500 16px/1.3 var(--texte); user-select: none; -webkit-user-select: none; touch-action: none; }
canvas#vue { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; padding: 0; border: 0; background: none; cursor: pointer; }
img { pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
[hidden] { display: none !important; }

/* ---------- Boutons : l'action principale (pleine, laiton clair) et la secondaire (filet) ---------- */
.plaque { position: relative; min-width: 220px; padding: 13px 34px 12px; clip-path: var(--coin);
  font: 700 21px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: #15120c;
  background: linear-gradient(180deg, #f8e7b4 0%, #f0d48a 45%, #e2b54e 100%); transition: transform .08s, filter .08s; }
.plaque:hover { filter: brightness(1.07); }
.plaque:active { transform: translateY(2px); }
.plaque[disabled] { filter: grayscale(1) brightness(.6); cursor: default; }
.filet { min-width: 220px; padding: 12px 26px; clip-path: var(--coin); font: 700 18px/1 var(--titre); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ivoire); background: rgba(13, 16, 21, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.filet:hover { box-shadow: inset 0 0 0 1px var(--accent); color: #fff; }
.filet:active { transform: translateY(1px); }
.retour { width: 44px; height: 44px; flex: none; display: grid; place-items: center; clip-path: var(--coin-petit); background: rgba(13, 16, 21, .85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.retour img { width: 22px; height: 22px; }
.retour:hover { box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- Accueil : le fond est la carte choisie, vue en jeu ---------- */
#accueil { position: fixed; inset: 0; overflow: hidden; background: var(--nuit); }
#accueil .fond { position: absolute; inset: -12px; background: url(img/fond-horloger.webp) center 45% / cover no-repeat; transition: filter .35s; }
#accueil[data-carte="port"] .fond { background-image: url(img/fond-port.webp); }
#accueil .fond::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 13, .94) 0%, rgba(8, 10, 13, .72) 32%, rgba(8, 10, 13, .25) 62%, rgba(8, 10, 13, .35) 100%),
    linear-gradient(0deg, rgba(8, 10, 13, .8) 0%, rgba(8, 10, 13, 0) 40%); }
#accueil[data-ecran="ecran-titre"] .fond::after { background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(8, 10, 13, .45) 0%, rgba(8, 10, 13, .9) 100%); }
#accueil[data-ecran="essais"] .fond, #accueil[data-ecran="salon"] .fond, #accueil[data-ecran="reglages"] .fond { filter: blur(6px) brightness(.6); }
#accueil > section { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }

#ecran-titre { gap: clamp(20px, 7vh, 52px); }
#ecran-titre .titre { margin: 0; line-height: 0; }
#ecran-titre .titre img { width: min(80vw, 760px, 150vh); height: auto; filter: drop-shadow(0 10px 22px #000c); }
#ecran-titre .plaque { animation: entree .5s .25s both; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } }

/* Menu principal : la liste à gauche (une entrée = une icône, un mot, une phrase), l'équipe à droite. */
#accueil > #menu { align-items: flex-start; justify-content: center; }
#menu .m-gauche { position: relative; z-index: 2; display: flex; flex-direction: column; gap: clamp(12px, 4vh, 28px); padding-left: clamp(0px, 3vw, 40px); }
#menu .titre-petit { width: min(36vw, 400px, 56vh); height: auto; filter: drop-shadow(0 6px 14px #000c); }
.m-liste { display: flex; flex-direction: column; gap: 6px; }
.m-item { display: flex; align-items: center; gap: 14px; width: min(40vw, 380px); padding: 10px 18px 10px 14px; text-align: left;
  background: linear-gradient(90deg, rgba(13, 16, 21, .82), rgba(13, 16, 21, .4)); border-left: 3px solid transparent;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: background .12s, border-color .12s, transform .08s; }
.m-item img { width: 34px; height: 34px; flex: none; opacity: .92; }
.m-item span { display: flex; flex-direction: column; }
.m-item b { font: 700 25px/1 var(--titre); letter-spacing: .07em; text-transform: uppercase; }
.m-item small { font: 500 15px/1.15 var(--texte); color: var(--pale); margin-top: 3px; }
.m-item:hover, .m-item:focus-visible { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(240, 212, 138, .2), rgba(13, 16, 21, .45)); outline: none; }
.m-item:active { transform: translateX(3px); }
/* Survie : la seule entrée pleine de l'écran (l'action principale). */
.m-item.vive { background: linear-gradient(90deg, #f0d48a, #e2b54e 70%, rgba(226, 181, 78, .75)); border-left-color: #fff3c8; color: #15120c; }
.m-item.vive img { filter: brightness(0) saturate(100%); opacity: .85; }
.m-item.vive small { color: rgba(21, 18, 12, .72); }
.m-item.vive:hover { filter: brightness(1.06); }
.m-equipe { position: absolute; right: max(1vw, env(safe-area-inset-right)); bottom: 0; width: min(54vw, 860px); height: auto; max-height: 84vh; object-fit: contain; object-position: right bottom; z-index: 1;
  filter: drop-shadow(0 10px 30px #000c); }
/* La carte (Survie et Bac à sable ; en ligne, l'hôte la choisit au salon), en haut à droite. */
.m-carte { position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 10px; }
.m-carte > img { width: 28px; height: 28px; opacity: .85; filter: drop-shadow(0 1px 3px #000); }
.cartes-choix { display: flex; gap: 0; clip-path: var(--coin-petit); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); background: rgba(13, 16, 21, .82); }
.cartes-choix button { font: 700 16px/1 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--pale); padding: 10px 18px; }
.cartes-choix button + button { box-shadow: -1px 0 0 rgba(255, 255, 255, .14); }
.cartes-choix button.on { background: var(--accent); color: #15120c; }
/* Essais : discret, en bas à droite. */
.coin { position: absolute; z-index: 3; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 7px; padding: 7px 11px; font: 600 14px/1 var(--texte); letter-spacing: .06em; text-transform: uppercase;
  color: var(--pale); opacity: .55; background: rgba(13, 16, 21, .6); clip-path: var(--coin-petit); }
.coin img { width: 18px; height: 18px; }
.coin:hover { opacity: 1; }

/* Réglages : interrupteurs et curseurs, jamais un bouton qui affiche l'état. */
.rg { width: min(560px, 94vw); align-items: stretch !important; }
.rg header, #essais header { display: flex; align-items: center; gap: 14px; }
.rg h2, #essais h2 { margin: 0 !important; }
.rg h2::after { display: none !important; }
.rg-ligne { display: grid; grid-template-columns: 90px 1fr 56px; align-items: center; gap: 14px; padding: 8px 4px; border-top: 1px solid var(--filet); }
.rg-ligne > span { font: 700 16px/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--pale); }
.rg-ligne .cartes-choix { grid-column: 2 / 4; justify-self: start; }
.rg-ligne output { font: 700 17px/1 var(--texte); font-variant-numeric: tabular-nums; text-align: right; }
.rg-ligne input[type="range"] { width: 100%; accent-color: var(--accent); touch-action: pan-x; height: 28px; cursor: pointer; }

#essais { justify-content: center; gap: 12px; }
#essais header { width: min(760px, 100%); }
#essais header h2 { font: 700 26px/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
#choix-decors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(760px, 100%); }
#choix-decors button { padding: 10px 10px; background: var(--ardoise); box-shadow: inset 0 0 0 1px var(--filet); text-align: left; clip-path: var(--coin-petit);
  font: 700 16px/1.15 var(--texte); color: var(--ivoire); }
#choix-decors button small { display: block; font-weight: 500; font-size: 13px; color: var(--pale); margin-top: 2px; }
#choix-decors button:hover { box-shadow: inset 0 0 0 1px var(--accent); }
#choix-decors button[disabled] { opacity: .4; }
#choix-armes { margin: 2px 0 0; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; font: 600 14px var(--texte); color: var(--pale); }
#choix-armes button { padding: 7px 11px; box-shadow: inset 0 0 0 1px var(--filet); background: var(--ardoise); color: var(--ivoire); font: inherit; cursor: pointer; }
#choix-armes button.on { background: var(--accent); color: #15120c; }

/* ---------- Chargement du décor ---------- */
#chargement { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse at 50% 45%, #1a1f27 0%, var(--nuit) 70%); }
#chargement img { width: min(56vw, 460px, 90vh); height: auto; opacity: .95; }
#chargement .barre { width: min(300px, 60vw); height: 4px; background: rgba(255, 255, 255, .12); }
#chargement .barre i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
#chargement p { margin: 0; font: 700 15px var(--titre); letter-spacing: .3em; text-transform: uppercase; color: var(--pale); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#ips { position: absolute; left: 10px; top: 8px; font: 12px/1 ui-monospace, monospace; opacity: .45; }
#viseur, #touche { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
/* L'écart se fait par un décalage (transform), pas par top / left (29 nov. 2026, fluidité) : il change à chaque image quand
   on tire ou qu'on court, et top / left obligeaient le navigateur à refaire la mise en page de la page à chaque fois. */
#viseur i { position: absolute; background: #fff; box-shadow: 0 0 2px #000a; }
#viseur i:nth-child(1) { width: 2px; height: 9px; left: -1px; top: -9px; transform: translateY(calc(-1 * var(--ecart, 7px))); }
#viseur i:nth-child(2) { width: 2px; height: 9px; left: -1px; top: 0; transform: translateY(var(--ecart, 7px)); }
#viseur i:nth-child(3) { width: 9px; height: 2px; top: -1px; left: -9px; transform: translateX(calc(-1 * var(--ecart, 7px))); }
#viseur i:nth-child(4) { width: 9px; height: 2px; top: -1px; left: 0; transform: translateX(var(--ecart, 7px)); }
/* En visée : la croix s'efface, il reste un point, calé dans le viseur de l'arme. */
#viseur.vise i { opacity: 0; }
/* Visée précise : un cercle fin d'ivoire et un point au centre (porteur, 14 nov. : « un truc plus sérieux »). */
#viseur::after { content: ''; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #f1ece2; box-sizing: border-box; background: radial-gradient(circle, #f1ece2 0 1.4px, transparent 1.9px);
  box-shadow: 0 0 0 1px #0007, inset 0 0 0 1px #0005; opacity: 0; transition: opacity .1s; }
#viseur.vise::after { opacity: 1; }
#touche { opacity: 0; transition: opacity .18s; }
#touche.on { opacity: 1; transition: none; }
#touche i { position: absolute; width: 2px; height: 8px; background: #fff; left: -1px; top: -4px; }
#touche i:nth-child(1) { transform: rotate(45deg) translateY(-10px); }
#touche i:nth-child(2) { transform: rotate(135deg) translateY(-10px); }
#touche i:nth-child(3) { transform: rotate(225deg) translateY(-10px); }
#touche i:nth-child(4) { transform: rotate(315deg) translateY(-10px); }
#touche.fin i { background: #ff5a4a; height: 11px; }

/* Points : une roue dentée, puis le nombre (chiffres de même largeur, ils ne dansent pas). */
#points { position: absolute; left: 22px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  font: 700 36px/1 var(--texte); font-variant-numeric: tabular-nums lining-nums; color: var(--ivoire); text-shadow: var(--ombre); }
/* Le personnage de la partie (Tarek, Nadir, Sami, Mansour), au-dessus des points. */
#perso { position: absolute; left: 24px; bottom: 58px; font: 700 14px/1 var(--titre); letter-spacing: .24em; text-transform: uppercase; color: var(--pale); text-shadow: var(--ombre); }
#points::before { content: ''; width: .7em; height: .7em; flex: none; background: var(--accent);
  -webkit-mask: url(img/icones/rouage.png) center / contain no-repeat; mask: url(img/icones/rouage.png) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #000); }
#volant { position: absolute; left: 22px; bottom: 60px; font: 700 24px/1 var(--texte); color: var(--accent); text-shadow: var(--ombre); }
#arme-nom { position: absolute; right: 22px; bottom: 60px; font: 700 15px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase;
  color: var(--pale); text-shadow: var(--ombre); }
#munitions { position: absolute; right: 22px; bottom: 16px; text-shadow: var(--ombre); font-family: var(--texte); font-variant-numeric: tabular-nums lining-nums; }
#lancers { position: absolute; right: 22px; bottom: 84px; display: flex; gap: 12px; text-shadow: var(--ombre); }
#lancers span { display: flex; align-items: center; gap: 4px; font: 700 17px/1 var(--texte); color: var(--ivoire); }
#lancers span[hidden] { display: none; }
#lancers img { width: 20px; height: 20px; opacity: .9; }
body.tactile #lancers { display: none; }
#munitions b { font-size: 40px; font-weight: 700; color: var(--ivoire); }
#munitions span { font-size: 19px; font-weight: 500; color: var(--pale); margin-left: 4px; }
#munitions.vide b { color: #ff6b5c; }
/* Le bandeau d'achat (« E : Lance-clés : 500 points ») : une étiquette d'ardoise. */
#action { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); padding: 8px 16px 9px; clip-path: var(--coin-petit);
  background: var(--ardoise); box-shadow: inset 0 0 0 1px rgba(240, 212, 138, .45); font: 600 17px/1.2 var(--texte); color: var(--ivoire); white-space: nowrap; }
#b-menu { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 12px; width: 44px; height: 44px; pointer-events: auto;
  display: grid; place-items: center; border-radius: 50%; background: rgba(13, 16, 21, .45); border: 1px solid rgba(255, 255, 255, .18); }
#b-menu img { width: 20px; height: 20px; opacity: .92; }

/* Manche, à la façon de Black Ops : un gros chiffre marqué, rouge d'émail cerclé de laiton ; il entre en grand à chaque manche. */
#manche { position: absolute; left: 22px; top: 62px; line-height: 1; text-align: left; }
#manche small { display: block; font: 700 13px/1 var(--titre); letter-spacing: .26em; text-transform: uppercase; color: var(--pale); text-shadow: var(--ombre); margin-left: 3px; }
#manche b { display: block; font: 900 74px/.95 'Cinzel', serif; color: var(--email); font-variant-numeric: lining-nums;
  -webkit-text-stroke: 1.5px #f0c56e; paint-order: stroke fill; text-shadow: 0 3px 0 #3a0f08, 0 0 14px #000c; transform-origin: left center; }
#manche.neuve b { animation: manche-neuve 1.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes manche-neuve { 0% { transform: scale(2.1); color: #fff3d0; } 35% { transform: scale(1.12); color: #ffb27a; } 100% { transform: scale(1); color: var(--email); } }
#annonce { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); font: 700 38px/1.1 var(--titre); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ivoire); text-shadow: 0 2px 0 #000a, 0 4px 14px #000d; white-space: nowrap; }

/* Équipements portés (icônes dessinées) et bonus en cours (icône + secondes). */
#boosters { position: absolute; left: 22px; bottom: 62px; display: flex; gap: 6px; }
#boosters i { width: 40px; height: 40px; display: grid; place-items: center; font-style: normal; clip-path: var(--coin-petit);
  background: var(--ardoise); box-shadow: inset 0 0 0 1px rgba(240, 212, 138, .45); }
#boosters i img { width: 34px; height: 34px; }
#bonus-actifs { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; }
#bonus-actifs span { display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 20px; background: var(--ardoise);
  box-shadow: inset 0 0 0 1px rgba(240, 212, 138, .4); font: 700 19px/1 var(--texte); font-variant-numeric: tabular-nums; color: var(--ivoire); text-shadow: 0 1px 2px #000; }
#bonus-actifs img { width: 32px; height: 32px; }
#aterre { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); text-align: center; color: var(--ivoire); text-shadow: var(--ombre); }
#aterre b { font: 700 26px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; }
#aterre span { display: block; font: 600 17px var(--texte); margin: 5px 0; opacity: .9; }
#aterre div { width: 220px; height: 8px; background: #0009; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
#aterre i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4f8a6f, #9fe08a); }
#bac-ouvrir { position: absolute; top: 12px; right: 64px; display: flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; clip-path: var(--coin-petit);
  box-shadow: inset 0 0 0 1px rgba(240, 212, 138, .5); background: var(--ardoise); color: var(--ivoire); font: 600 15px/1 var(--texte); pointer-events: auto; }
#bac-ouvrir img { width: 20px; height: 20px; }

/* ---------- Commandes tactiles : icônes blanches seules, sur un rond sombre cerclé ---------- */
#tactile { position: fixed; inset: 0; pointer-events: none; }
#tactile > * { pointer-events: auto; position: absolute; }
#joy { left: max(28px, env(safe-area-inset-left)); bottom: 28px; width: 132px; height: 132px; border-radius: 50%;
  background: #0b0d1133; border: 2px solid #f3efe638; }
#poignee { position: absolute; left: 41px; top: 41px; width: 46px; height: 46px; border-radius: 50%; background: #f3efe655; box-shadow: inset 0 0 0 2px rgba(240, 212, 138, .5); }
#tactile button { width: 60px; height: 60px; border-radius: 50%; background: #0b0d1155; border: 2px solid #f3efe645;
  display: flex; align-items: center; justify-content: center; }
#tactile button svg, #tactile button img { width: 30px; height: 30px; fill: #fff; pointer-events: none; }
#tactile button.app { background: rgba(240, 212, 138, .45); border-color: var(--accent); }
#b-tir { right: max(14px, env(safe-area-inset-right)); bottom: 30px; width: 84px !important; height: 84px !important; }
#b-tir img { width: 44px !important; height: 44px !important; }
#b-recharge img, #b-arme img { width: 28px !important; height: 28px !important; }
#b-viser { right: max(108px, calc(env(safe-area-inset-right) + 94px)); bottom: 16px; }
#b-saut { right: max(20px, env(safe-area-inset-right)); bottom: 128px; }
#b-recharge { right: max(96px, calc(env(safe-area-inset-right) + 82px)); bottom: 100px; width: 48px !important; height: 48px !important; }
#b-arme { right: max(14px, env(safe-area-inset-right)); top: 64px; width: 52px !important; height: 52px !important; }
#b-grenade { right: max(178px, calc(env(safe-area-inset-right) + 164px)); bottom: 30px; width: 50px !important; height: 50px !important; }
#b-grenade img { width: 28px !important; height: 28px !important; }
#b-grenade::after { content: attr(data-n); position: absolute; right: -2px; top: -4px; font: 700 14px/1 var(--texte); color: var(--ivoire); text-shadow: var(--ombre); }
#tactile button.clignote { animation: clignote .5s steps(2, jump-none) 8; }
@keyframes clignote { 50% { background: rgba(240, 212, 138, .6); border-color: var(--accent); } }
#b-action { left: 50%; top: 70%; transform: translateX(-50%); }
#tactile.actif ~ #hud #action { top: 56%; }

/* ---------- Survie : blessure (bords rouges, jamais de secousse), fin de partie, pause ---------- */
#blesse { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 45%, #b0130fcc 100%); }
#fin, #pause { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse at 50% 50%, rgba(13, 16, 21, .78) 0%, rgba(8, 10, 13, .95) 75%); padding: 16px; }
.panneau { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 34px 26px;
  background: var(--ardoise-pleine); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 40px #000c; border-top: 3px solid var(--accent); }
.panneau h2 { margin: 0 0 4px; text-align: center; font: 700 36px/1 var(--titre); letter-spacing: .18em; text-transform: uppercase; color: var(--ivoire); }
.manche-fin { margin: 0 0 8px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.manche-fin small { font: 700 13px/1 var(--titre); letter-spacing: .26em; text-transform: uppercase; color: var(--pale); }
.manche-fin b { font: 900 64px/1 'Cinzel', serif; color: var(--email); -webkit-text-stroke: 1.5px #f0c56e; paint-order: stroke fill; text-shadow: 0 3px 0 #3a0f08; }
#pause .aide { margin: 14px 0 0; max-width: 700px; text-align: center; font: 500 15px/1.5 var(--texte); color: var(--pale); }

/* ---------- Téléphone : chiffres en haut pour laisser le bas aux pouces ---------- */
body.tactile #points { top: 14px; bottom: auto; left: max(16px, env(safe-area-inset-left)); font-size: 26px; }
body.tactile #manche { top: 48px; left: max(16px, env(safe-area-inset-left)); }
body.tactile #manche b { font-size: 46px; }
body.tactile #perso { top: 104px; bottom: auto; left: max(18px, env(safe-area-inset-left)); font-size: 12px; }
body.tactile #volant { top: 122px; bottom: auto; left: max(16px, env(safe-area-inset-left)); }
body.tactile #boosters { top: 12px; bottom: auto; left: max(150px, calc(env(safe-area-inset-left) + 134px)); }
body.tactile #boosters i { width: 32px; height: 32px; } body.tactile #boosters i img { width: 27px; height: 27px; }
body.tactile #munitions { top: 12px; bottom: auto; right: 70px; }
body.tactile #munitions b { font-size: 30px; }
body.tactile #arme-nom { top: 48px; bottom: auto; right: 70px; }
body.tactile #bonus-actifs { top: 52px; }
body.tactile #annonce { font-size: 28px; }
/* Téléphone en paysage, peu de hauteur : menus plus serrés, jamais de défilement. */
@media (max-height: 430px) {
  .plaque, .filet { min-width: 180px; padding-top: 10px; padding-bottom: 10px; font-size: 17px; }
  #menu .m-gauche { gap: 10px; }
  #menu .titre-petit { width: min(34vw, 240px); }
  .m-liste { gap: 5px; }
  .m-item { padding: 6px 14px 6px 10px; gap: 10px; width: min(44vw, 320px); }
  .m-item img { width: 28px; height: 28px; } .m-item b { font-size: 20px; } .m-item small { font-size: 13px; margin-top: 1px; }
  .m-equipe { width: 50vw; max-height: 82vh; }
  .cartes-choix button { padding: 8px 13px; font-size: 14px; }
  .panneau { padding: 14px 26px 18px; gap: 9px; } .panneau h2 { font-size: 28px; }
  .manche-fin b { font-size: 46px; }
  .rg-ligne { padding: 5px 4px; }
  #choix-decors button { padding: 7px 9px; font-size: 14px; } #choix-decors button small { font-size: 11.5px; }
  #pause .aide { display: none; }
}
/* Portrait (avant le premier geste, le téléphone est souvent tenu debout) : la liste prend la largeur, l'équipe s'efface. */
@media (orientation: portrait) {
  #accueil > #menu { align-items: center; } .m-item { width: min(84vw, 360px); } #menu .titre-petit { width: min(70vw, 340px); }
  .m-equipe { opacity: .18; height: 60vh; }
  #choix-decors { grid-template-columns: repeat(2, 1fr); }
}

/* Vue de lunette (arbalète, canon magnétique) : un cercle net cerclé, un réticule fin, le reste dans le noir. */
#lunette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0 calc(min(42vh, 42vw) - 3px), #b8893a calc(min(42vh, 42vw) - 2px) min(42vh, 42vw), #080706 calc(min(42vh, 42vw) + 1px)); }
/* Le souffle retenu qui reste (porteur, 28 nov. 2026 : « une barre de chargement autour du cercle ») : un anneau fin juste
   hors du bord de la lunette, qui se vide ; rouge sur la fin. --k : la part qui reste (1 → 0). */
#souffle-anneau { position: absolute; left: 50%; top: 50%; width: calc(2 * min(42vh, 42vw) + 20px); height: calc(2 * min(42vh, 42vw) + 20px);
  transform: translate(-50%, -50%) scaleX(-1); border-radius: 50%;
  background: conic-gradient(var(--c, #f0d48a) calc(var(--k, 1) * 360deg), rgba(243, 239, 230, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
#souffle-anneau.fin { --c: #ff5a4a; }
/* La reprise du souffle (29 nov. 2026) : l'anneau se remplit en bleu ; tant qu'il n'est pas plein, pas d'apnée. */
#souffle-anneau.recup { --c: #7cc4ff; opacity: .8; }
#lunette i { position: absolute; left: 50%; top: 50%; width: min(84vh, 84vw); height: min(84vh, 84vw); transform: translate(-50%, -50%);
  background: linear-gradient(#0009, #0009) center / 100% 2px no-repeat, linear-gradient(#0009, #0009) center / 2px 100% no-repeat; }

/* ---------- Panneau du bac à sable (touche B) ---------- */
#bac { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(430px, 92vw); overflow: auto; z-index: 50; background: var(--ardoise-pleine); color: var(--ivoire);
  box-shadow: inset 0 0 0 1px var(--filet); padding: 10px 12px; font: 500 15px var(--texte); }
#bac header { display: flex; justify-content: space-between; align-items: center; font: 700 18px var(--titre); letter-spacing: .08em; margin-bottom: 6px; }
#bac h4 { margin: 10px 0 5px; font: 700 13px var(--titre); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
#bac div { display: flex; flex-wrap: wrap; gap: 5px; }
#bac button { padding: 6px 9px; box-shadow: inset 0 0 0 1px var(--filet); background: #ffffff0d; color: var(--ivoire); font: inherit; cursor: pointer; }
#bac button:hover { background: rgba(240, 212, 138, .18); }
body.tactile #bac-ouvrir { right: auto; left: 50%; transform: translateX(-50%); }
/* Coup au noyau (14 nov. 2026) : le repère de tir passe à l'ambre, plus grand. */
#touche.crit i { background: #ffb347; height: 12px; width: 3px; }

/* ---------- En ligne, contre les autres (15 nov. 2026, pvp.js) ---------- */
/* Salon commun : posé sur le fond flouté ; la carte, le personnage et la classe en dessous des places. */
.pvp-reglages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.pvp-reg { display: flex; align-items: center; gap: 10px; }
.pvp-reg > span { font: 700 14px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--pale); }
.pvp-reg .cartes-choix button[disabled] { cursor: default; }
.pvp-reg .cartes-choix button[disabled]:not(.on) { opacity: .5; }
.pvp-choix { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 6px; text-align: left; clip-path: var(--coin-petit);
  background: rgba(13, 16, 21, .86); box-shadow: inset 0 0 0 1px rgba(240, 212, 138, .4); }
.pvp-choix:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.pvp-choix img { height: 38px; width: 38px; object-fit: contain; }
.pvp-choix[data-r="classe"] img { width: 30px; height: 30px; margin: 0 4px; }
.pvp-choix span { display: flex; flex-direction: column; line-height: 1; }
.pvp-choix small { font: 700 11px/1 var(--titre); letter-spacing: .18em; text-transform: uppercase; color: var(--pale); }
.pvp-choix b { font: 700 18px/1.1 var(--titre); letter-spacing: .04em; color: var(--ivoire); white-space: nowrap; }

/* Choix de la classe et du personnage (classes-ecran.js) : une boîte d'ardoise, les quatre cartes, les armes, ce qu'on emporte. */
#classes, #persos { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 25, 32, .97), rgba(6, 8, 11, .99)); pointer-events: auto; }
#classes[data-mode="mort"] { background: linear-gradient(0deg, rgba(6, 8, 11, .94) 0%, rgba(6, 8, 11, .74) 100%); }
.cl-boite { width: min(900px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.cl-tete { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.cl-tete h2 { margin: 0; font: 700 32px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; }
.cl-tete p { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.cl-tete small { font: 700 12px/1 var(--titre); letter-spacing: .22em; text-transform: uppercase; color: var(--pale); }
.cl-mort b { font: 700 30px/1.05 var(--titre); letter-spacing: .04em; text-transform: uppercase; }
.cl-retour { margin-left: auto !important; align-items: flex-end; }
.cl-compte { font: 700 40px/1 var(--texte); font-variant-numeric: tabular-nums; color: var(--ivoire); }
#classes[data-mode="salon"] .cl-mort, #classes[data-mode="salon"] .cl-retour { display: none; }
#classes[data-mode="mort"] .cl-fermer, #classes[data-mode="mort"] h2, #classes[data-mode="mort"] .cl-ok { display: none; }
.cl-cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cl-carte { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; clip-path: var(--coin);
  background: rgba(16, 20, 26, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); transition: background .1s; }
.cl-carte img { width: 46px; height: 46px; opacity: .9; }
.cl-carte b { font: 700 23px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; }
.cl-carte small { font: 500 15px/1.1 var(--texte); color: var(--pale); }
.cl-carte kbd { display: none; position: absolute; left: 10px; top: 7px; font: 700 13px/1 var(--texte); color: var(--pale); }
#classes[data-mode="mort"]:not(.tactile) .cl-carte kbd { display: block; }
.cl-carte:hover { background: rgba(28, 34, 42, .95); }
.cl-carte.on { background: linear-gradient(180deg, rgba(240, 212, 138, .26), rgba(240, 212, 138, .1)); box-shadow: inset 0 0 0 2px var(--accent), inset 0 -4px 0 var(--accent); }
.cl-carte.on img { opacity: 1; }
.cl-armes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cl-arme { display: flex; align-items: center; gap: 12px; padding: 8px 14px; clip-path: var(--coin-petit); background: rgba(16, 20, 26, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); text-align: left; }
.cl-arme img { height: 34px; width: 96px; object-fit: contain; object-position: left center; opacity: .75; }
.cl-arme b { font: 700 18px/1.05 var(--titre); letter-spacing: .04em; text-transform: uppercase; }
.cl-arme.on { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(240, 212, 138, .14); }
.cl-arme.on img { opacity: 1; }
.cl-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 4px 0; border-top: 1px solid var(--filet); }
.cl-det { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cl-det img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.cl-det img.sil { width: 64px; height: 26px; opacity: .8; }
.cl-det img.atout { width: 36px; height: 36px; }
.cl-det span { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.cl-det small { font: 500 14px/1.1 var(--texte); color: var(--pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-det b { font: 700 18px/1.1 var(--titre); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ok { align-self: center; margin-top: 4px; }
.ps-cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ps-carte { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; clip-path: var(--coin);
  background: linear-gradient(180deg, rgba(30, 36, 46, .92), rgba(13, 16, 21, .95)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); }
.ps-carte img { height: min(52vh, 300px); width: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px #000a); }
.ps-carte b { font: 700 24px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; }
.ps-carte.on { box-shadow: inset 0 0 0 2px var(--accent), inset 0 -4px 0 var(--accent); }

/* Score et temps, en haut au milieu : mon équipe à gauche, une jauge vers 25 sous chaque score. Touché : le tableau. */
#pvp-haut { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 0; pointer-events: auto; cursor: pointer; }
#pvp-haut > div { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; padding: 5px 0 6px; background: rgba(13, 16, 21, .7); box-shadow: inset 0 3px 0 var(--c); }
#pvp-haut b { font: 700 32px/1 var(--titre); font-variant-numeric: tabular-nums; color: var(--c); text-shadow: var(--ombre); }
#pvp-haut i { width: 64px; height: 4px; background: rgba(255, 255, 255, .14); }
#pvp-haut u { display: block; height: 100%; width: 0; background: var(--c); transition: width .3s; }
#pvp-haut span { align-self: stretch; display: grid; place-items: center; min-width: 74px; padding: 0 12px; font: 700 22px/1 var(--texte); font-variant-numeric: tabular-nums;
  background: rgba(13, 16, 21, .88); color: var(--ivoire); }
#pvp-haut span.fin { color: #ff6b5c; }
/* Vie (une barre et un nombre, jamais de cœur) et classe : en bas à gauche (PC), en haut à gauche (téléphone). */
#pvp-vie { position: absolute; left: 22px; bottom: 18px; width: 260px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 10px; text-shadow: var(--ombre); }
.pv-classe { grid-column: 1 / 3; display: flex; align-items: center; gap: 7px; font: 700 15px/1 var(--titre); letter-spacing: .18em; text-transform: uppercase; color: var(--pale); }
.pv-classe img { width: 22px; height: 22px; }
.pv-barre { height: 10px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.pv-barre i { display: block; height: 100%; width: 100%; background: var(--ivoire); transition: width .15s; }
#pvp-vie.bas .pv-barre i { background: #ff5a4a; }
#pvp-vie > b { font: 700 30px/.8 var(--texte); font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; }
body.pvp #points, body.pvp #perso, body.pvp #manche, body.pvp #boosters, body.pvp #bonus-actifs { display: none; }
body.pvp #volant { left: 50%; top: 57%; bottom: auto; transform: translateX(-50%); font-size: 22px; }
body.tactile #pvp-vie { top: 12px; bottom: auto; left: max(16px, env(safe-area-inset-left)); width: 190px; }
body.tactile #pvp-vie > b { font-size: 24px; }
/* Fil des éliminations, en haut à droite : qui a éliminé qui, avec quoi (la silhouette de l'arme), cinq secondes. */
#pvp-fil { position: absolute; right: 14px; top: 64px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#pvp-fil div { display: flex; align-items: center; gap: 9px; padding: 4px 12px; background: rgba(13, 16, 21, .72); font: 700 17px/1 var(--titre);
  letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 1px 2px #000; transition: opacity .6s; clip-path: var(--coin-petit); }
#pvp-fil div.part { opacity: 0; }
#pvp-fil img { height: 16px; width: auto; max-width: 54px; opacity: .9; }
#pvp-fil img.eq { height: 18px; }
body.tactile #pvp-fil { top: 92px; right: 70px; }
/* D'où vient le coup : un arc rouge autour du réticule, tourné vers le tireur. */
#pvp-dir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#pvp-dir i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 5px solid transparent;
  border-top-color: rgba(255, 70, 50, .9); filter: drop-shadow(0 0 4px #000); animation: dirCoup 1.4s ease-out forwards; }
@keyframes dirCoup { 0% { opacity: 1; } 60% { opacity: .9; } 100% { opacity: 0; } }
/* Élimination faite : le nom de l'éliminé sous le réticule, une seconde et demie. */
#pvp-elim { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-shadow: var(--ombre); }
#pvp-elim small { font: 700 14px/1 var(--titre); letter-spacing: .3em; text-transform: uppercase; color: var(--ivoire); }
#pvp-elim b { font: 700 28px/1 var(--titre); letter-spacing: .06em; text-transform: uppercase; }
#pvp-elim.on { animation: elimPop .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes elimPop { from { transform: translateX(-50%) scale(1.35); opacity: 0; } }
#pvp-clic { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); padding: 6px 14px; background: rgba(13, 16, 21, .78); font: 700 15px/1 var(--titre);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ivoire); }
#pvp-compte { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); font: 700 96px/1 var(--titre); color: var(--ivoire); text-shadow: var(--ombre); }
/* Coup reçu : un éclair blanc bref sur les bords (jamais de secousse). */
#pvp-flash { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, #ffffffaa 100%); }
#pvp-flash.on { animation: pvpFlash .28s ease-out; }
@keyframes pvpFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
/* Tableau des scores (Tab, ou toucher le score) et écran de fin. */
#pvp-tableau { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 40; pointer-events: none; }
.pvp-table { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--ardoise-pleine); box-shadow: inset 0 0 0 1px var(--filet); }
.pvp-table table { border-collapse: collapse; min-width: min(580px, 86vw); font: 600 17px/1.2 var(--texte); color: var(--ivoire); }
.pvp-table th { padding: 5px 10px; text-align: right; font: 700 13px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--pale); }
.pvp-table th:first-child { text-align: left; font-size: 18px; letter-spacing: .12em; color: var(--c); }
.pvp-table th:first-child b { margin-left: 10px; font-size: 22px; }
.pvp-table td { padding: 5px 10px; text-align: right; font-variant-numeric: tabular-nums; border-top: 1px solid #ffffff14; }
.pvp-table td:first-child { text-align: left; border-left: 4px solid var(--c); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.pvp-table td img { width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; opacity: .85; }
.pvp-table .rang { display: inline-block; width: 1.4em; color: var(--pale); font-weight: 500; }
.pvp-table tr.moi td { background: rgba(240, 212, 138, .14); }
.pvp-table tr.mort td { opacity: .5; }
#pvp-fin { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: radial-gradient(ellipse at 50% 50%, rgba(13, 16, 21, .7) 0%, rgba(8, 10, 13, .94) 75%); }
#pvp-fin .panneau { max-height: 100%; border-top-color: var(--c, var(--accent)); }
#pvp-fin h2 { font-size: 56px; letter-spacing: .2em; color: var(--c, var(--ivoire)); }
#pvp-fin[data-issue="defaite"] h2 { color: var(--ivoire); opacity: .9; }
#pvp-fin .pvp-table { background: transparent; box-shadow: none; padding: 0; }
.pvp-score { margin: 0; display: flex; align-items: center; gap: 16px; font: 700 46px/1 var(--titre); }
.pvp-score i { font-style: normal; opacity: .5; }
.pvp-meilleur { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.pvp-meilleur small { font: 700 13px/1 var(--titre); letter-spacing: .22em; text-transform: uppercase; color: var(--pale); }
.pvp-meilleur b { font: 700 22px/1 var(--titre); letter-spacing: .06em; text-transform: uppercase; }
.pvp-meilleur:empty { display: none; }
.pvp-attente { margin: 0; font: 600 15px var(--texte); color: var(--pale); }
.pvp-boutons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-height: 430px) {
  #pvp-haut > div { width: 74px; padding: 3px 0 4px; } #pvp-haut b { font-size: 24px; } #pvp-haut i { width: 50px; } #pvp-haut span { font-size: 18px; min-width: 60px; }
  .pvp-table table { font-size: 14px; } .pvp-table td, .pvp-table th { padding: 3px 8px; } .pvp-table th:first-child b { font-size: 18px; }
  .pvp-score { font-size: 32px; } #pvp-compte { font-size: 64px; } #pvp-fin h2 { font-size: 38px; }
  #pvp-fin .panneau { gap: 6px; padding: 10px 22px 12px; }
  /* Fin de partie sur téléphone : les deux équipes côte à côte (deux colonnes), rien ne sort de l'écran, même en 4 contre 4. */
  #pvp-fin .pvp-table { flex-direction: row; gap: 16px; }
  #pvp-fin .pvp-table table { min-width: 0; width: min(316px, 44vw); }
  #pvp-fin .pvp-table td, #pvp-fin .pvp-table th { padding: 2px 6px; }
  #pvp-fin .pvp-score { font-size: 28px; } .pvp-meilleur b { font-size: 18px; }
  .pvp-choix { height: 40px; } .pvp-choix img { height: 32px; width: 32px; } .pvp-choix b { font-size: 16px; }
  .cl-boite { gap: 7px; }
  .cl-tete { min-height: 40px; } .cl-tete h2 { font-size: 24px; } .cl-mort b { font-size: 24px; } .cl-compte { font-size: 32px; }
  .cl-carte { padding: 8px 6px 7px; gap: 2px; } .cl-carte img { width: 32px; height: 32px; } .cl-carte b { font-size: 19px; } .cl-carte small { font-size: 13px; }
  .cl-arme { padding: 5px 10px; gap: 8px; } .cl-arme img { height: 24px; width: 70px; } .cl-arme b { font-size: 15px; }
  .cl-det img { width: 26px; height: 26px; } .cl-det img.sil { width: 50px; height: 20px; } .cl-det img.atout { width: 28px; height: 28px; }
  .cl-det small { font-size: 12px; } .cl-det b { font-size: 15px; }
  .ps-carte img { height: 52vh; }
}

/* ---------- 16 nov. 2026 : commandes du téléphone, mini-carte, état de la partie ----------
   Porteur : « Le bouton de tir, il doit être éloigné du bord de l'écran… quand on tire, on a envie de se décaler vers la
   droite en continuant de tirer… encore un peu plus décalé du bord » ; « le bouton de recharge, le bouton pour s'accroupir
   aussi, c'est important » ; « la petite mini-carte » ; « l'état de la partie actuelle avec le temps qui reste ».
   Le tir : son centre à 23,5 % de la largeur depuis le bord droit, aux deux tiers de la hauteur ; les autres boutons en
   arc autour de lui (--dx vers la gauche, --dy vers le haut, depuis le centre du tir), jamais l'un sur l'autre. Glisser le
   pouce depuis le tir tourne la vue sans cesser de tirer (le bouton garde le doigt). */
#ips { left: 50%; top: 2px; transform: translateX(-50%); }
#tactile { --fx: 23.5vw; --fy: 33.4vh; }
#tactile button { --t: 56px; --dx: 0px; --dy: 0px; width: var(--t) !important; height: var(--t) !important;
  right: calc(var(--fx) + var(--dx) - var(--t) / 2) !important; bottom: calc(var(--fy) + var(--dy) - var(--t) / 2) !important; top: auto !important; left: auto !important; }
#tactile #b-tir { --t: 86px; }
#tactile #b-accroupi { --dx: -94px; --dy: -22px; --t: 58px; }
#tactile #b-saut { --dx: -84px; --dy: 62px; }
#tactile #b-recharge { --dx: 70px; --dy: -64px; --t: 54px; }
#tactile #b-viser { --dx: 104px; --dy: 6px; }
#tactile #b-grenade { --dx: 10px; --dy: 96px; --t: 50px; }
#tactile #b-poing { --dx: -36px; --dy: -96px; --t: 50px; }   /* coup de poing (28 nov. 2026) : sous le tir, à gauche */
/* Annuler le tir retenu à la lunette (29 nov. 2026) : au-dessus du joystick, seulement pendant qu'on retient le tir. La
   disposition publiée (studio des boutons, vue « Lunette du sniper ») la pose ; sinon, cette place-ci. */
#tactile #b-annuler-tir { display: none; }
#tactile button#b-annuler-tir { left: calc(max(28px, env(safe-area-inset-left)) + 38px) !important; right: auto !important; bottom: 176px !important; }
body.lunette.tir-retenu #tactile #b-annuler-tir { display: flex; background: rgba(120, 24, 18, .5); border-color: #ff8a7a99; }
#tactile #b-accroupi img, #tactile #b-saut img, #tactile #b-recharge img { width: 30px !important; height: 30px !important; }
/* Changer d'arme : en haut, à côté des munitions (loin de l'arc du pouce droit). */
#tactile #b-arme { --t: 46px; right: max(176px, calc(env(safe-area-inset-right) + 164px)) !important; top: 10px !important; bottom: auto !important; }
#tactile #b-arme img { width: 26px !important; height: 26px !important; }
/* Agir (acheter, reclouer) : au milieu, un peu bas. */
#tactile #b-action { left: 50% !important; right: auto !important; top: 66% !important; bottom: auto !important; transform: translateX(-50%); }

/* La mini-carte : en haut à droite ; la pause passe à sa gauche. */
#mini-carte { position: absolute; right: max(16px, env(safe-area-inset-right)); top: 16px; width: 168px; height: 168px;
  box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .28), 0 4px 14px #0008; clip-path: var(--coin-petit); }
#mini-carte[hidden] { display: none; }
#b-menu { right: max(194px, calc(env(safe-area-inset-right) + 178px)); top: 16px; }
#hud:has(#mini-carte[hidden]) #b-menu { right: max(12px, env(safe-area-inset-right)); }
body.tactile #mini-carte { right: max(12px, env(safe-area-inset-right)); top: 10px; width: 104px; height: 104px; }
body.tactile #b-menu { right: max(124px, calc(env(safe-area-inset-right) + 112px)); top: 10px; }
body.tactile #munitions { right: max(232px, calc(env(safe-area-inset-right) + 220px)); top: 8px; }
body.tactile #arme-nom { right: max(232px, calc(env(safe-area-inset-right) + 220px)); top: 50px; }
body.tactile #perso { top: 134px; } body.tactile #volant { top: 156px; }
/* Pendant le tutoriel : ni score ni fil des éliminations (une seule chose à la fois : la consigne). */
body.tuto #pvp-haut, body.tuto #pvp-fil { display: none; }
#pvp-fil { top: 196px; right: max(16px, env(safe-area-inset-right)); }

/* L'état de la partie, en haut à gauche (comme les grands FPS) : mon score, le temps qui reste et le but, l'autre score. */
#pvp-haut { left: max(22px, env(safe-area-inset-left)); top: 20px; transform: none; }
#pvp-haut .ph-t { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
#pvp-haut .ph-t b { font: 700 24px/1 var(--texte); color: var(--ivoire); }
#pvp-haut .ph-t b.fin { color: #ff6b5c; }
#pvp-haut .ph-t small { font: 700 12px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--pale); }
body.tactile #pvp-haut { left: max(14px, env(safe-area-inset-left)); top: 8px; }
/* Téléphone : la vie en bas, entre le pouce gauche et l'arc du tir ; le fil des éliminations sous l'état de la partie. */
body.tactile #pvp-vie { top: auto; bottom: 10px; left: 40%; transform: translateX(-50%); width: 200px; }
body.tactile #pvp-fil { top: 70px; right: auto; left: max(14px, env(safe-area-inset-left)); align-items: flex-start; }
body.tactile #pvp-fil div { font-size: 14px; padding: 3px 9px; }

/* Survie : ce qui reste de la manche, sous son numéro. */
#manche .reste { display: block; margin: 4px 0 0 3px; font: 700 13px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--pale); text-shadow: var(--ombre); }
#manche .reste[hidden] { display: none; }
@media (max-height: 430px) {
  #pvp-haut .ph-t b { font-size: 18px; } #pvp-haut .ph-t small { font-size: 10px; }
}

/* ---------- Éliminé (19 nov. 2026) ----------
   Porteur : « pas intuitif, on dirait un menu qui s'ouvre, on ne comprend pas qu'on s'est fait éliminer, le retour dans
   combien de temps ». Comme les grands FPS : un grand mot, par qui et avec quoi, un grand compte à rebours ; la partie
   visible derrière (assombrie, bords rougis) ; changer de classe en petit bouton, jamais au premier plan. */
#elimine { position: fixed; inset: 0; z-index: 24; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 46%, rgba(8, 10, 13, .28) 0%, rgba(8, 10, 13, .62) 62%, rgba(70, 10, 8, .72) 100%);
  animation: el-entre .35s ease-out; }
@keyframes el-entre { from { opacity: 0; } to { opacity: 1; } }
#elimine .el-centre { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -6vh; }
#elimine .el-titre { font: 700 clamp(46px, 13vh, 92px)/1 var(--titre); letter-spacing: .18em; text-transform: uppercase; color: #ff6b5c;
  text-shadow: 0 2px 0 #0009, 0 0 24px #000a; padding-left: .18em; animation: el-mot .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes el-mot { from { transform: scale(1.35); opacity: 0; } to { transform: none; opacity: 1; } }
#elimine .el-par { margin: 0; display: flex; align-items: center; gap: 10px; padding: 7px 16px; clip-path: var(--coin-petit); background: rgba(10, 12, 16, .72); }
#elimine .el-par small { font: 700 15px/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; color: var(--pale); }
#elimine .el-nom { font: 700 26px/1 var(--titre); letter-spacing: .05em; text-transform: uppercase; }
#elimine .el-arme { height: 26px; width: 74px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
#elimine .el-arme[hidden] { display: none; }
#elimine .el-arme-nom { font: 500 18px/1 var(--texte); color: var(--pale); }
#elimine .el-retour { margin: 4vh 0 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#elimine .el-retour small { font: 700 15px/1 var(--titre); letter-spacing: .26em; text-transform: uppercase; color: var(--ivoire); text-shadow: var(--ombre); }
#elimine .el-compte { font: 700 clamp(54px, 17vh, 110px)/1 var(--texte); font-variant-numeric: tabular-nums; color: var(--ivoire); text-shadow: 0 2px 0 #0009, 0 0 20px #000a; }
#elimine .el-classe { pointer-events: auto; position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; clip-path: var(--coin-petit); background: rgba(13, 16, 21, .86);
  box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .28); text-align: left; }
#elimine .el-classe img { width: 30px; height: 30px; }
#elimine .el-classe span { display: flex; flex-direction: column; line-height: 1.05; }
#elimine .el-classe small { font: 700 11px/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; color: var(--pale); }
#elimine .el-classe b { font: 700 18px/1.1 var(--titre); letter-spacing: .04em; }
@media (max-height: 430px) { #elimine .el-nom { font-size: 21px; } #elimine .el-arme-nom { font-size: 15px; } #elimine .el-retour { margin-top: 2.5vh; } }
/* Le choix de classe pendant qu'on attend : la boîte de toujours, avec « Retour » ; le compte à rebours reste en haut. */
#classes[data-mode="reapparition"] { background: rgba(6, 8, 11, .9); }
#classes[data-mode="reapparition"] .cl-mort { display: none; }

/* Protection à l'apparition (3 s) : un mot et une barre qui fond, les bords de l'écran teintés de bleu clair. */
#pvp-protege { position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; }
#pvp-protege b { font: 700 18px/1 var(--titre); letter-spacing: .24em; text-transform: uppercase; color: #bfe3ff; text-shadow: var(--ombre); padding-left: .24em; }
#pvp-protege i { display: block; width: 140px; height: 4px; background: #bfe3ff; box-shadow: 0 0 8px #7cc4ff; transform-origin: left; }
#pvp-protege.on i { animation: protege-barre 3s linear both; }
@keyframes protege-barre { from { transform: scaleX(1); } to { transform: scaleX(0); } }
#pvp-protege::before { content: ''; position: fixed; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px rgba(124, 196, 255, .35); }

/* Éliminé : plus de commandes à l'écran (rien à faire avant le retour), comme les grands FPS. */
body.elimine #tactile, body.elimine #pvp-vie, body.elimine #munitions, body.elimine #arme-nom, body.elimine #viseur, body.elimine #lancers { visibility: hidden; }

/* Le joystick suit sa taille (la poignée reste au milieu). */
#joy #poignee { left: calc(50% - 23px); top: calc(50% - 23px); }
/* Confort (19 nov. 2026 ; cinq lignes depuis le 23 nov. : la disposition des boutons ne se règle plus ici) : deux colonnes, tout tient sur l'écran du téléphone sans défiler. */
#reglages .rg { width: min(940px, 96vw); display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start !important; }
#reglages .rg header { grid-column: 1 / -1; }
#reglages .rg-ligne { grid-template-columns: 112px 1fr 52px; }
#reglages .rg-ligne > span { line-height: 1.1; }
#reglages .rg-ligne > button.filet { grid-column: 2 / 4; justify-self: start; min-width: 0; padding: 9px 18px; }
@media (max-height: 430px) { #reglages .rg-ligne { grid-template-columns: 96px 1fr 46px; gap: 10px; } #reglages .rg-ligne > span { font-size: 14px; } }

/* Téléphone et tablette (23 nov. 2026) : l'état de la partie a la même taille sur tous les écrans tactiles (la disposition
   des commandes, disposition.js, compte en pixels CSS ; sa place et sa taille viennent du studio des boutons). */
body.tactile #pvp-haut > div { width: 74px; padding: 3px 0 4px; } body.tactile #pvp-haut b { font-size: 24px; } body.tactile #pvp-haut i { width: 50px; }
body.tactile #pvp-haut span { font-size: 18px; min-width: 60px; } body.tactile #pvp-haut .ph-t b { font-size: 18px; } body.tactile #pvp-haut .ph-t small { font-size: 10px; }

/* La zone de course (23 nov. 2026) : un arc fin au-dessus du joystick, là où le pouce passe pour courir ; il s'allume quand
   on court. */
#joy::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid transparent; border-top-color: rgba(243, 239, 230, .22);
  pointer-events: none; transition: border-color .15s, filter .15s; }
#joy.course::before { border-top-color: var(--accent); filter: drop-shadow(0 0 6px rgba(240, 212, 138, .8)); }
/* À bout de souffle (26 nov. 2026) : l'arc rougit le temps de reprendre son souffle. */
#joy.essouffle::before { border-top-color: rgba(214, 92, 74, .75); filter: none; }

/* ---------- La barre d'armes du téléphone (porteur, 23 nov. 2026 : « c'est pour le choix d'arme plus facile ») ----------
   En bas au milieu, comme les grands FPS sur téléphone : une carte par arme portée (silhouette blanche de nos modèles,
   sans nom), celle en main plus large au liseré laiton avec ses munitions ; toucher une carte = prendre cette arme. À
   droite, le rond de l'équipement (grenade…) avec son nombre ; dessous, sur toute la largeur, la vie (la classe à gauche,
   en survie les points). Place et taille : le studio des boutons (disposition.js, « armes »). Une information n'apparaît
   qu'une fois : sur le téléphone, plus de compteur de munitions en haut, plus de bouton « changer d'arme ». PC inchangé
   (touches 1, 2 et molette). */
#barre-armes { display: none; }
body.tactile #barre-armes { display: flex; position: absolute; left: 0; top: 0; width: 190px; height: 48px; gap: 6px; pointer-events: auto; }
#barre-armes .ba-carte { flex: 1 1 0; min-width: 0; position: relative; padding: 0; border: 0; color: var(--ivoire); background: rgba(11, 13, 17, .6);
  box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .22); clip-path: var(--coin-petit); touch-action: none; }
#barre-armes .ba-carte.en-main { flex-grow: 1.6; background: rgba(11, 13, 17, .74); box-shadow: inset 0 0 0 2px var(--accent); }
#barre-armes img { position: absolute; left: 8px; right: 8px; top: 5px; height: 24px; width: calc(100% - 16px); object-fit: contain; object-position: center;
  filter: brightness(0) invert(1); opacity: .62; pointer-events: none; }
#barre-armes .en-main img { top: 4px; right: 40%; width: auto; object-position: left center; opacity: .95; }
#barre-armes .ba-mun { position: absolute; right: 7px; bottom: 4px; font: 700 12px/1 var(--texte); font-variant-numeric: tabular-nums; color: var(--pale); text-shadow: var(--ombre); white-space: nowrap; }
#barre-armes .ba-mun b { font-size: 18px; color: var(--ivoire); }
#barre-armes .ba-mun.vide b { color: #ff6b5c; }
#barre-armes .ba-plus { position: absolute; left: 7px; bottom: 4px; font: 700 13px/1 var(--titre); color: var(--accent); }
#barre-armes .ba-carte:not(.en-main) .ba-mun { right: auto; left: 0; width: 100%; text-align: center; bottom: 4px; font-size: 11px; }
#barre-armes .ba-carte:not(.en-main) .ba-mun b { font-size: 12px; color: var(--pale); }
body.tactile #munitions, body.tactile #arme-nom, body.tactile #b-arme { display: none !important; }
/* La vie, sous la barre, sur toute sa largeur : fine, la classe (ou les points) à gauche, le nombre à droite. */
body.tactile #pvp-vie { display: flex; align-items: center; gap: 8px; width: 244px; height: 20px; transform: none; }
body.tactile #pvp-vie[hidden] { display: none; }
body.tactile #pvp-vie .pv-classe { flex: none; gap: 4px; font-size: 12px; letter-spacing: .12em; }
body.tactile #pvp-vie .pv-classe img { width: 16px; height: 16px; }
body.tactile #pvp-vie .pv-barre { flex: 1; height: 6px; }
body.tactile #pvp-vie > b { font-size: 17px; line-height: 1; min-width: 2.6ch; }
body.tactile #pvp-vie.survie .pv-classe img { display: none; }
body.tactile #pvp-vie.survie .pv-classe span { color: var(--accent); font: 700 15px/1 var(--texte); letter-spacing: .02em; }
/* Les points tout en haut à gauche, au-dessus de la manche (porteur, 26 nov. 2026 : « je vois pas mes points »). */
body.elimine #barre-armes { visibility: hidden; }
/* Ce qui passe au milieu de l'écran reste au-dessus de la barre. */
body.tactile #tactile #b-action { top: 47% !important; transform: translate(-50%, -50%); }
body.tactile #pvp-protege { bottom: 34%; }

/* Grenade dégoupillée (26 nov. 2026) : tant qu'on la tient, le rond de la grenade passe du doré au rouge, au rythme de la
   mèche ; on la lâche pour la lancer. */
#b-grenade.degoupillee { animation: meche-grenade var(--meche, 3s) linear forwards; }
@keyframes meche-grenade { from { box-shadow: 0 0 0 2px rgba(240, 212, 138, .9); } to { box-shadow: 0 0 0 7px rgba(214, 72, 54, 1); } }

/* Points en haut à gauche sur PC aussi (26 nov. 2026). */
body:not(.tactile) #points { top: 18px; bottom: auto; font-size: 30px; }
/* Couché (26 nov. 2026) : le bouton s'accroupir reste allumé, d'un doré plus franc. */
#b-accroupi.couche { box-shadow: 0 0 0 3px var(--accent); }

/* Voile « plein écran » (28 nov. 2026) : couvre tout tant que le jeu n'est pas en plein écran (téléphone). */
#voile-ecran { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: rgba(12, 13, 16, .94); color: var(--ivoire, #f3efe6); font: 700 24px/1.2 var(--titre, sans-serif); letter-spacing: .06em; text-align: center; padding: 20px; }
#voile-ecran[hidden] { display: none; }
#voile-ecran .plaque { font-size: 22px; padding: 14px 40px; }
/* Mini-carte brouillée par un brouilleur adverse (series.js, 28 nov. 2026). */
#mini-carte.brouille { filter: blur(3px) grayscale(1) contrast(.5); opacity: .55; }
/* L'icône d'une série d'éliminations, au-dessus de son annonce (series.js). */
#serie-icone { position: fixed; left: 50%; top: 14%; width: 72px; height: 72px; margin-left: -36px; z-index: 30; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 2px 6px #000a); }
#serie-icone.on { animation: serie-icone 2.2s ease-out forwards; }
@keyframes serie-icone { 0% { opacity: 0; transform: scale(.7); } 12% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
/* Séries (series.js, 28 nov. 2026) : la barre à droite des scores (grisée tant qu'elle n'est pas débloquée), le bouton
   spécial orange au-dessus de la visée (une seule en main). */
#pvp-series { display: flex; gap: 4px; margin-left: 8px; align-self: center; }
#pvp-series:empty { display: none; }
#pvp-series button { position: relative; width: 44px; height: 44px; padding: 5px; border: 0; border-radius: 4px; background: rgba(13, 16, 21, .7); cursor: pointer; }
#pvp-series button img { width: 100%; height: 100%; object-fit: contain; opacity: .28; filter: grayscale(1); }
#pvp-series button.pret img { opacity: 1; filter: none; }
#pvp-series button.pret { background: rgba(40, 30, 14, .82); box-shadow: inset 0 0 0 2px #e8912c; }
#pvp-series button.main { background: #e8912c; }
#pvp-series button.main img { filter: brightness(0) invert(1); }
#pvp-series button small, #pvp-series button b { position: absolute; right: 2px; bottom: 0; font: 700 12px/1 var(--texte); color: #f3efe6; text-shadow: var(--ombre); }
#pvp-haut > #pvp-series { width: auto; padding: 0; background: none; box-shadow: none; flex-direction: row; }
#b-serie { position: fixed; z-index: 35; pointer-events: auto; touch-action: none; width: 62px; height: 62px; border-radius: 50%; border: 0; background: #e8912ce6; box-shadow: 0 0 0 3px #f6c37a88, 0 4px 12px #0008;
  display: grid; place-items: center; padding: 0; }
#b-serie img { width: 38px; height: 38px; object-fit: contain; filter: brightness(0) invert(1); }
#b-serie.exploser { background: #d63a2ae6; box-shadow: 0 0 0 3px #ff8a7a88, 0 4px 12px #0008; }
#b-serie[hidden] { display: none; }
/* La frappe (series.js) : une tablette militaire, la vraie carte vue du ciel. */
#frappe { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(4, 6, 6, .55); pointer-events: auto; }
#frappe[hidden] { display: none; }
#frappe .fr-tablette { width: min(94vw, 980px); height: min(90vh, 640px); display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px;
  background: linear-gradient(180deg, #2b302c, #1c201d); border-radius: 18px; box-shadow: inset 0 0 0 2px #3d443f, inset 0 0 0 7px #151816, 0 10px 40px #000c; }
#frappe .fr-haut { display: flex; align-items: center; gap: 12px; color: #a0ffc8; font: 600 14px/1 monospace; letter-spacing: .12em; text-transform: uppercase; }
#frappe .fr-haut b { font: 700 18px/1 var(--titre); letter-spacing: .25em; color: #ff8a7a; }
#frappe .fr-etat { flex: 1; opacity: .85; }
#frappe .fr-rec { width: 10px; height: 10px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 8px #ff4a3a; animation: fr-rec 1s steps(2) infinite; }
@keyframes fr-rec { 50% { opacity: .2; } }
#frappe .fr-ecran { position: relative; flex: 1; min-height: 0; border-radius: 6px; overflow: hidden; background: #0b1210; box-shadow: inset 0 0 30px #000; }
#frappe canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
#frappe .fr-coin { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(160, 255, 200, .6); pointer-events: none; }
#frappe .fr-coin.a { left: 8px; top: 8px; border-right: 0; border-bottom: 0; } #frappe .fr-coin.b { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
#frappe .fr-coin.c { left: 8px; bottom: 8px; border-right: 0; border-top: 0; } #frappe .fr-coin.d { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
#frappe .fr-annuler { width: 34px; height: 34px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; padding: 0; }
#frappe .fr-annuler img { width: 20px; height: 20px; }
@media (max-height: 430px) { #frappe .fr-tablette { padding: 8px 12px 10px; border-radius: 12px; gap: 5px; } #frappe .fr-haut { font-size: 11px; } #frappe .fr-haut b { font-size: 14px; } }
/* La caisse (series.js) : le bouton au milieu de l'écran, puis ce qu'elle contenait. */
#b-colis { position: fixed; left: 50%; top: 58%; transform: translateX(-50%); z-index: 34; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
  border: 0; background: rgba(13, 16, 21, .86); box-shadow: inset 0 0 0 2px #e8912c; color: #f3efe6; font: 700 18px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; pointer-events: auto; }
#b-colis[hidden] { display: none; }
#b-colis img { width: 36px; height: 36px; }
#b-colis kbd { font: 700 13px/1 var(--texte); padding: 3px 6px; border: 1px solid #f3efe688; border-radius: 3px; }
#colis-gain { position: fixed; left: 50%; top: 34%; transform: translateX(-50%); z-index: 34; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; opacity: 0; }
#colis-gain.on { animation: colis-gain 2.4s ease-out forwards; }
#colis-gain small { font: 700 13px/1 var(--titre); letter-spacing: .25em; text-transform: uppercase; color: #e8912c; text-shadow: var(--ombre); }
#colis-gain img { width: 84px; height: 84px; filter: drop-shadow(0 3px 8px #000a); }
#colis-gain b { font: 700 30px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: #f3efe6; text-shadow: var(--ombre); }
@keyframes colis-gain { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 12% { opacity: 1; transform: translateX(-50%) scale(1.08); } 20% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
/* RC-XD pilotée (series.js) : le joystick tourne ; accélérer (grand), freiner, exploser (rouge) ; les autres boutons se cachent. */
body.rc #tactile > button, body.rc #b-serie, body.rc #barre-armes { visibility: hidden !important; }
#rc-commandes { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: 22px; z-index: 36; width: 260px; height: 230px; pointer-events: none; }
#rc-commandes[hidden] { display: none; }
#rc-commandes button { position: absolute; pointer-events: auto; touch-action: none; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(13, 16, 21, .62); box-shadow: inset 0 0 0 2px rgba(243, 239, 230, .45); }
#rc-commandes button.on { background: rgba(240, 212, 138, .45); }
#rc-commandes [data-c="gaz"] { right: 0; bottom: 0; width: 104px; height: 104px; }
#rc-commandes [data-c="frein"] { right: 124px; bottom: 6px; width: 78px; height: 78px; }
#rc-commandes [data-c="boum"] { right: 26px; bottom: 130px; width: 72px; height: 72px; background: #d63a2ae6; box-shadow: 0 0 0 3px #ff8a7a88; }
#rc-commandes [data-c="boum"] img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
#rc-commandes i { width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; }
#rc-commandes .rc-gaz { border-bottom: 26px solid #f3efe6; margin-top: -6px; }
#rc-commandes .rc-frein { border-top: 20px solid #f3efe6; border-left-width: 13px; border-right-width: 13px; }
body.rc #viseur { visibility: hidden; }
/* Une attaque spéciale débloquée (series.js) : l'icône, puis son nom, puis « Prête », les uns sous les autres. */
#serie-gain { position: fixed; left: 50%; top: 13%; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 22px 12px; background: rgba(13, 16, 21, .72); box-shadow: inset 0 -3px 0 #e8912c; pointer-events: none; opacity: 0; }
#serie-gain.on { animation: colis-gain 2.4s ease-out forwards; }
#serie-gain img { width: 64px; height: 64px; filter: drop-shadow(0 2px 6px #000a); }
#serie-gain b { font: 700 26px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: #f3efe6; }
#serie-gain small { font: 700 13px/1 var(--titre); letter-spacing: .25em; text-transform: uppercase; color: #e8912c; }
body.tactile #serie-gain img { width: 52px; height: 52px; } body.tactile #serie-gain b { font-size: 21px; }
/* Le temps qui reste à la RC-XD. */
#rc-temps { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 36; font: 700 34px/1 var(--titre); color: #f3efe6; text-shadow: var(--ombre); pointer-events: none; }
#rc-temps.vite { color: #ff6b5c; }
#rc-temps[hidden] { display: none; }
/* Éliminé, après 1 s : on voit jouer celui qui m'a éliminé ; l'écran s'éclaircit, le texte remonte en haut, plus petit. */
#elimine.vue { background: linear-gradient(180deg, rgba(8, 10, 13, .7) 0%, rgba(8, 10, 13, 0) 30%, rgba(8, 10, 13, 0) 78%, rgba(8, 10, 13, .55) 100%); justify-content: flex-start; padding-top: 8px; }
#elimine.vue .el-centre { margin-top: 0; gap: 4px; }
#elimine.vue .el-titre { font-size: clamp(22px, 6vh, 34px); animation: none; }
#elimine.vue .el-retour { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; }
#elimine.vue .el-compte { font-size: clamp(30px, 9vh, 48px); }
/* À la lunette du sniper (porteur, 28 nov. 2026 : « zéro distraction ») : seuls le joystick, le tir, la visée et le
   bouton « retenir son souffle » restent ; tout le reste de l'écran disparaît. */
#tactile #b-souffle { --dx: 104px; --dy: 92px; --t: 64px; display: none; }
body.lunette #tactile #b-souffle { display: grid; }
#tactile #b-souffle img { width: 34px !important; height: 34px !important; }
#tactile #b-souffle.app { background: rgba(124, 196, 255, .45) !important; box-shadow: 0 0 0 3px #7cc4ffaa; }
body.lunette #tactile > button:not(#b-tir):not(#b-viser):not(#b-annuler-tir),
body.lunette #barre-armes, body.lunette #mini-carte, body.lunette #pvp-haut, body.lunette #pvp-fil, body.lunette #pvp-vie, body.lunette #b-serie,
body.lunette #munitions, body.lunette #arme-nom, body.lunette #b-menu, body.lunette #lancers, body.lunette #points, body.lunette #viseur { visibility: hidden !important; }

/* « Revenir » (29 nov. 2026) : en bas au milieu de l'écran Éliminé ; grisé tant que l'attente minimale n'est pas passée. */
#elimine .el-revenir { pointer-events: auto; position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  min-width: 220px; height: 48px; padding: 0 22px; font: 700 18px/1 var(--titre); letter-spacing: .12em; text-transform: uppercase;
  color: #15120c; background: var(--accent); clip-path: var(--coin-petit); }
#elimine .el-revenir:disabled { color: var(--ivoire); background: rgba(13, 16, 21, .72); box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .25); }
/* L'écran commun « Le jeu se joue en plein écran » (js/commun/ecran.js, 29 nov. 2026) : aux couleurs de Ribât. */
#tourner { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, #161b21, #06080a); color: var(--ivoire); }
#tourner.on, #tourner.visible { display: flex; }
#tourner .centre { max-width: 440px; padding: 18px; }
#tourner p { font: 700 22px/1.2 var(--titre); letter-spacing: .08em; text-transform: uppercase; margin: 12px 0; }
#tourner .aide { font: 400 14px/1.35 var(--texte); letter-spacing: 0; text-transform: none; color: var(--pale); }
#tourner-plein { min-width: 220px; height: 52px; font-size: 22px; }
