/* Barovie Néon — composants.
   Charger après tokens.css :  <link rel="stylesheet" href="tokens.css"><link rel="stylesheet" href="barovie.css">
   Thème : <html data-theme="nuit"> (défaut) ou data-theme="parchemin" (impression, plein jour).
   Classes préfixées bn-. Styles typographiques (titre-l, surtitre, lecture…) fournis par tokens.css. */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Grenze+Gotisch:wght@400..800&family=JetBrains+Mono:wght@400;500&family=Pinyon+Script&family=Spectral:ital,wght@0,400;0,500;0,600;1,400&display=swap");

/* L'écriture manuscrite : police installée localement (licence commerciale, ne pas publier le fichier). */
@font-face {
  font-family: "1805AusterlitzScriptW01-Lt";
  src: local("1805AusterlitzScriptW01-Lt"), local("1805 Austerlitz Script W01 Lt"),
       url("fonts/x") format("truetype");
  font-display: swap;
}

:root, [data-theme="nuit"] { color-scheme: dark; }
[data-theme="parchemin"] { color-scheme: light; }

:root {
  --duree-1: 120ms;   /* survol, appui */
  --duree-2: 240ms;   /* ouverture, changement d'onglet */
  --duree-3: 700ms;   /* apparition d'une carte, lueur qui pulse */
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───────────── Base ───────────── */

.bn-app {
  min-height: 100%;
  background: var(--void);
  color: var(--os);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bn-brume {
  background:
    radial-gradient(70% 55% at 0% 0%, var(--aura-1), transparent 70%),
    radial-gradient(60% 50% at 100% 0%, var(--aura-2), transparent 70%),
    var(--void);
  background-attachment: fixed;
}
.bn-grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .06;
  mix-blend-mode: overlay;
  z-index: 1000;
}

.titre-xl, .titre-l, .titre-m { margin: 0; text-wrap: balance; color: var(--os); }
.surtitre, .etiquette { text-transform: uppercase; color: var(--cendre); }
.chiffre, .des { font-variant-numeric: tabular-nums; }
.lecture, .texte { max-width: 68ch; text-wrap: pretty; }

.bn-icone { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.bn-icone--s { width: 16px; height: 16px; }
.bn-icone--l { width: 28px; height: 28px; }
.bn-icone--xl { width: 40px; height: 40px; }

:where(.bn-btn, .bn-onglet, .bn-input, .bn-select, .bn-textarea, .bn-tarokka, .bn-lien, .bn-init__ligne, .bn-widget__resume-bouton, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Néon : texte qui luit. Les halos sont transparents en Parchemin, donc rien à surcharger. */
.bn-neon { color: var(--sang); text-shadow: 0 0 1px var(--halo-sang), 0 0 10px var(--halo-sang), 0 0 28px var(--halo-sang); }
.bn-neon--ultra { color: var(--ultra); text-shadow: 0 0 1px var(--halo-ultra), 0 0 10px var(--halo-ultra), 0 0 28px var(--halo-ultra); }
.bn-neon--brume { color: var(--brume); text-shadow: 0 0 1px var(--halo-brume), 0 0 10px var(--halo-brume), 0 0 28px var(--halo-brume); }
.bn-gresille { animation: bn-gresille 7s steps(1) infinite; }
@keyframes bn-gresille {
  0%, 100% { opacity: 1; }
  91% { opacity: 1; } 91.6% { opacity: .35; } 92.2% { opacity: 1; } 93% { opacity: .55; } 93.4% { opacity: 1; }
}

.bn-lien { color: var(--sang); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bn-lien:hover { text-shadow: 0 0 10px var(--halo-sang); }

/* Filet orné : ligne qui s'efface aux extrémités, losange au centre. */
.bn-filet {
  --_c: var(--trait-fort);
  position: relative;
  height: 1px;
  margin: var(--space-4) 0;
  border: 0;
  overflow: visible;
  background: linear-gradient(90deg, transparent, var(--_c) 18%, var(--_c) 82%, transparent);
}
.bn-filet::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--_c);
  transform: translate(-50%, -50%) rotate(45deg);
}
.bn-filet--sang { --_c: var(--sang); }
.bn-filet--nu::after { display: none; }

/* ───────────── Coupe de cercueil ─────────────
   Coins coupés à 45°. ::before = bordure, ::after = fond, posés sous le contenu.
   Variables : --c (taille de coupe), --_bord, --_fond (une couleur ou un dégradé sur couleur opaque). */
.bn-btn, .bn-badge, .bn-panel, .bn-tarokka, .bn-plaque {
  position: relative;
  isolation: isolate;
  --c: var(--coupe-m);
  --_bord: var(--trait);
  --_fond: var(--crypte);
}
.bn-btn::before, .bn-badge::before, .bn-panel::before, .bn-tarokka::before, .bn-plaque::before,
.bn-btn::after, .bn-badge::after, .bn-panel::after, .bn-tarokka::after, .bn-plaque::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--_bord);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)),
                     calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: background var(--duree-1) var(--courbe);
}
.bn-btn::after, .bn-badge::after, .bn-panel::after, .bn-tarokka::after, .bn-plaque::after {
  inset: 1px;
  background: var(--_fond);
}

/* ───────────── Bouton ───────────── */

.bn-btn {
  --_bord: var(--trait-fort);
  --_fond: var(--pierre);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--os);
  font: 600 14px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter var(--duree-1) var(--courbe), color var(--duree-1) var(--courbe), transform var(--duree-1) var(--courbe);
}
.bn-btn:hover { --_bord: var(--sang); color: var(--os); filter: drop-shadow(0 0 8px var(--halo-sang)); }
.bn-btn:active { transform: translateY(1px); }
.bn-btn .bn-icone { width: 18px; height: 18px; }

.bn-btn--primaire { --_bord: var(--sang); --_fond: var(--sang); color: var(--sur-accent); }
.bn-btn--primaire:hover { --_fond: var(--sang); color: var(--sur-accent); filter: drop-shadow(0 0 10px var(--halo-sang)) drop-shadow(0 0 24px var(--halo-sang)); }

.bn-btn--magie { --_bord: var(--ultra); --_fond: var(--ultra); color: var(--sur-accent); }
.bn-btn--magie:hover { --_bord: var(--ultra); color: var(--sur-accent); filter: drop-shadow(0 0 10px var(--halo-ultra)) drop-shadow(0 0 24px var(--halo-ultra)); }

.bn-btn--danger { --_bord: var(--sang); --_fond: linear-gradient(var(--sang-voile), var(--sang-voile)), var(--crypte); color: var(--sang); }
.bn-btn--danger:hover { color: var(--sang); }

.bn-btn--fantome { --_bord: transparent; --_fond: transparent; color: var(--cendre); }
.bn-btn--fantome:hover { --_bord: transparent; --_fond: var(--pierre-haute); color: var(--os); filter: none; }

.bn-btn--s { --c: var(--coupe-s); height: 32px; padding: 0 12px; font-size: 12px; }
.bn-btn--icone { width: 40px; padding: 0; }
.bn-btn--s.bn-btn--icone { width: 32px; }

.bn-btn:disabled, .bn-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; transform: none; }

/* Bascule : bouton à deux états (Jour / Nuit, Route / Nature). Enfoncé : bordure sang, sans halo. */
.bn-btn[aria-pressed="true"] { --_bord: var(--sang); --_fond: linear-gradient(var(--sang-voile), var(--sang-voile)), var(--pierre-haute); color: var(--os); }
.bn-btn[aria-pressed="false"] { color: var(--cendre); }
.bn-bascule { display: inline-flex; gap: 3px; }

.bn-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* ───────────── Badge ───────────── */

.bn-badge {
  --c: var(--coupe-s);
  --_a: var(--cendre);
  --_v: var(--pierre-haute);
  --_bord: var(--_a);
  --_fond: linear-gradient(var(--_v), var(--_v)), var(--crypte);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 22px;
  padding: 0 8px;
  color: var(--_a);
  font: 600 12px/1 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bn-badge .bn-icone { width: 14px; height: 14px; }
.bn-badge--sang   { --_a: var(--sang);   --_v: var(--sang-voile); }
.bn-badge--ultra  { --_a: var(--ultra);  --_v: var(--ultra-voile); }
.bn-badge--brume  { --_a: var(--brume);  --_v: var(--brume-voile); }
.bn-badge--cierge { --_a: var(--cierge); --_v: var(--cierge-voile); }
.bn-badge--soleil { --_a: var(--soleil); --_v: var(--soleil-voile); }
.bn-badge--plein  { --_fond: var(--_a); color: var(--sur-accent); }
.bn-badge--faction { --_bord: var(--trait-fort); color: var(--os); }
.bn-badge__point {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-rond);
  background: var(--fac, var(--cendre));
  box-shadow: 0 0 6px var(--fac, transparent);
}

/* ───────────── Champs ───────────── */

.bn-champ { display: grid; gap: 6px; min-width: 0; }
.bn-champ__label { font: 600 12px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--cendre); }
.bn-champ__aide { font: 400 13px/18px var(--font-ui); color: var(--cendre); }
.bn-champ__erreur { display: flex; gap: var(--space-1); align-items: center; font: 500 13px/18px var(--font-ui); color: var(--sang); }

.bn-input, .bn-select, .bn-textarea {
  box-sizing: border-box;   /* largeur et hauteur bordure comprise : un champ ne déborde pas de sa colonne */
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--radius-0);
  background-color: var(--pierre-haute);
  color: var(--os);
  font: 400 15px/20px var(--font-ui);
  transition: border-color var(--duree-1) var(--courbe), box-shadow var(--duree-1) var(--courbe);
}
.bn-input::placeholder, .bn-textarea::placeholder { color: var(--fane); }
.bn-input:hover, .bn-select:hover, .bn-textarea:hover { border-color: var(--cendre); }
.bn-input:focus-visible, .bn-select:focus-visible, .bn-textarea:focus-visible { border-color: var(--focus); }
.bn-input[aria-invalid="true"], .bn-textarea[aria-invalid="true"] { border-color: var(--sang); box-shadow: 0 0 0 1px var(--sang), 0 0 12px var(--halo-sang); }
.bn-input--nombre { width: 88px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.bn-select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cendre) 50%),
    linear-gradient(135deg, var(--cendre) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.bn-textarea { height: auto; min-height: 104px; padding: 10px 12px; resize: vertical; font: 400 16px/25px var(--font-text); }
/* flex: none : à côté d'un long libellé (case dans un flex), la case garde sa taille. */
.bn-case { flex: none; width: 18px; height: 18px; accent-color: var(--sang); }
.bn-ligne-champs { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; }
.bn-ligne-champs > .bn-champ { flex: 1 1 180px; }

/* ───────────── Onglets ───────────── */

.bn-onglets {
  display: flex;
  gap: var(--space-5);
  border-bottom: 1px solid var(--trait);
  overflow-x: auto;
  scrollbar-width: none;
}
.bn-onglet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 12px;
  border: 0;
  background: none;
  color: var(--cendre);
  font: 600 14px/20px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--duree-1) var(--courbe);
}
.bn-onglet:hover { color: var(--os); }
.bn-onglet[aria-selected="true"] { color: var(--os); }
.bn-onglet[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--sang);
  box-shadow: 0 0 8px var(--halo-sang), 0 0 20px var(--halo-sang);
}
.bn-onglet .bn-icone { width: 16px; height: 16px; }
/* Nombre d'éléments de l'onglet, en petit après le libellé (« PNJ 7 »). */
.bn-onglet__compte { font: 500 12px/1 var(--font-ui); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--cendre); }
.bn-onglet[aria-selected="true"] .bn-onglet__compte { color: var(--os); }
/* Barre trop étroite, jamais de défilement (l'application mesure) : écarts resserrés (.est-serree), puis libellés courts
   (.est-courte, .bn-onglet__court à la place de .bn-onglet__long), puis sans icônes (.sans-icones). */
.bn-onglet__court { display: none; }
.bn-onglets.est-serree { gap: var(--space-3); }
.bn-onglets.est-serree .bn-onglet { letter-spacing: .04em; }
.bn-onglets.est-courte .bn-onglet__long { display: none; }
.bn-onglets.est-courte .bn-onglet__court { display: inline; }
.bn-onglets.sans-icones .bn-onglet .bn-icone { display: none; }

/* ───────────── Panneau et carte ───────────── */

.bn-panel { --c: var(--coupe-l); --_bord: var(--trait); --_fond: var(--crypte); display: flex; flex-direction: column; min-width: 0; }
.bn-panel--actif { --_bord: var(--sang); filter: drop-shadow(0 0 10px var(--halo-sang)); }
.bn-panel--magie { --_bord: var(--ultra); filter: drop-shadow(0 0 10px var(--halo-ultra)); }
.bn-panel__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--trait);
}
.bn-panel__titres { display: grid; gap: 4px; min-width: 0; }
.bn-panel__corps { display: grid; gap: var(--space-4); padding: var(--space-5); min-width: 0; }
.bn-panel__pied { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--trait); }

.bn-carte {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--trait);
  background: var(--pierre);
  min-width: 0;
  transition: border-color var(--duree-1) var(--courbe);
}
a.bn-carte, button.bn-carte { color: inherit; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
a.bn-carte:hover, button.bn-carte:hover { border-color: var(--trait-fort); }

/* ───────────── Tableau ───────────── */

.bn-table-wrap { overflow-x: auto; min-width: 0; }
.bn-table { width: 100%; border-collapse: collapse; font: 400 15px/20px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--os); }
.bn-table th {
  position: sticky;
  top: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--trait-fort);
  background: var(--crypte);
  color: var(--cendre);
  font: 600 12px/16px var(--font-ui);
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.bn-table td { padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.bn-table tbody tr { transition: background var(--duree-1) var(--courbe); }
.bn-table tbody tr:hover { background: var(--pierre); }
.bn-table tbody tr[aria-selected="true"] { background: var(--pierre-haute); }
.bn-table .num { text-align: right; }
.bn-table__nom { display: block; font-weight: 600; }
.bn-table__sous { display: block; font-size: 13px; line-height: 18px; color: var(--cendre); }
.bn-table tr.est-mort .bn-table__nom { color: var(--fane); text-decoration: line-through; text-decoration-color: var(--sang); }

/* ───────────── Alerte ───────────── */

.bn-alerte {
  --_c: var(--ultra);
  --_v: var(--ultra-voile);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--_c);
  background: var(--_v);
  color: var(--os);
}
.bn-alerte > .bn-icone { grid-row: span 2; color: var(--_c); margin-top: 1px; }
.bn-alerte__titre { margin: 0; font: 600 14px/20px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--_c); }
.bn-alerte__texte { margin: 0; font: 400 15px/21px var(--font-ui); color: var(--os); }
.bn-alerte--sang   { --_c: var(--sang);   --_v: var(--sang-voile); }
.bn-alerte--cierge { --_c: var(--cierge); --_v: var(--cierge-voile); }
.bn-alerte--brume  { --_c: var(--brume);  --_v: var(--brume-voile); }
/* Repliable : un <details> replié d'office sur une ligne (icône, titre, un repère à droite — un DD, « Fatigue +1 » —,
   chevron) ; le texte à l'ouverture. */
details.bn-alerte--repliable { display: block; padding: var(--space-2) var(--space-3); }
.bn-alerte--repliable > summary { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; list-style: none; }
.bn-alerte--repliable > summary::-webkit-details-marker { display: none; }
.bn-alerte--repliable > summary > .bn-icone { flex: none; color: var(--_c); }
.bn-alerte--repliable .bn-alerte__titre { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; }
.bn-alerte__chevron { transition: transform var(--duree-1) var(--courbe); }
.bn-alerte--repliable[open] .bn-alerte__chevron { transform: rotate(180deg); }
.bn-alerte--repliable > .bn-alerte__texte { margin-top: var(--space-2); padding-left: calc(20px + var(--space-2)); font-size: 14px; line-height: 20px; }

/* ───────────── DD ─────────────
   Un jet à faire : un dé et la difficulté dans un petit cadre coupé (« DD 12 »), dans un texte, un bouton, une alerte. */
.bn-badge.bn-dd { --_a: var(--os); --_bord: var(--trait-fort); gap: 4px; padding: 0 7px 0 5px; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: middle; }
.bn-badge.bn-dd .bn-icone { width: 15px; height: 15px; color: var(--cierge); }
/* Jet à lancer (bonus d'attaque, dégâts, sauvegarde d'un monstre) : un bouton, violet ; un clic fait rouler les dés. */
button.bn-badge.bn-dd--jet { --_a: var(--os); --_bord: var(--ultra); --_v: var(--ultra-voile); margin: 0 1px; border: 0; background: none; cursor: pointer; }
button.bn-badge.bn-dd--jet .bn-icone { color: var(--ultra); }
button.bn-badge.bn-dd--jet:hover { --_v: var(--ultra); --_a: var(--sur-accent); }
button.bn-badge.bn-dd--jet:hover .bn-icone { color: var(--sur-accent); }
button.bn-badge.bn-dd--jet:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ───────────── Barre de PV ───────────── */

.bn-pv { --pv: 100%; --pv-temp: 0%; --_c: var(--brume); --_h: var(--halo-brume); display: grid; gap: 6px; min-width: 0; }
.bn-pv[data-etat="ensanglante"] { --_c: var(--soleil); --_h: transparent; }
.bn-pv[data-etat="critique"]   { --_c: var(--sang); --_h: var(--halo-sang); }
.bn-pv[data-etat="mort"]       { --_c: var(--fane); --_h: transparent; }
.bn-pv__tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.bn-pv__val { font: 600 15px/20px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--cendre); }
.bn-pv__val b { font-weight: 700; color: var(--os); }
.bn-pv__temp { color: var(--ultra); }
.bn-pv__etat { font: 600 12px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--_c); }
.bn-pv__barre {
  position: relative;
  height: 8px;
  border: 1px solid var(--trait);
  border-radius: var(--radius-1);
  background: var(--pierre-haute);
  overflow: hidden;
}
.bn-pv__plein, .bn-pv__tampon { position: absolute; top: 0; bottom: 0; left: 0; }
.bn-pv__plein { width: var(--pv); background: var(--_c); box-shadow: 0 0 10px var(--_h); transition: width var(--duree-2) var(--courbe); }
.bn-pv__tampon { left: var(--pv); width: var(--pv-temp); background: var(--ultra); opacity: .85; }
.bn-pv[data-etat="critique"] .bn-pv__plein { animation: bn-pouls 1.6s ease-in-out infinite; }
@keyframes bn-pouls { 50% { box-shadow: 0 0 2px var(--_h); opacity: .7; } }
.bn-pv--mini { gap: 3px; }
.bn-pv--mini .bn-pv__barre { height: 5px; }
.bn-pv--mini .bn-pv__val { font-size: 13px; line-height: 16px; }

/* ───────────── Suivi d'initiative ───────────── */

.bn-init { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.bn-init__ligne {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto minmax(110px, 160px);
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: 5px var(--space-4) 5px var(--space-3);
  border: 1px solid var(--trait);
  background: var(--pierre);
  transition: background var(--duree-2) var(--courbe), box-shadow var(--duree-2) var(--courbe);
}
.bn-init__ligne[aria-current="true"] { background: var(--pierre-haute); border-color: var(--sang); box-shadow: var(--lueur-sang); }
/* Avec portraits (.bn-init--portraits) : le portrait juste après le score ; une initiale (ou une icône) faute d'image. */
.bn-init--portraits .bn-init__ligne { grid-template-columns: 52px 40px minmax(0, 1fr) auto minmax(110px, 160px); gap: var(--space-2) var(--space-3); }
.bn-init__portrait {
  box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden;
  border: 1px solid var(--trait); background: var(--pierre-haute); color: var(--fane); font: 500 18px/1 var(--font-display);
}
.bn-init__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-init__portrait .bn-icone { width: 20px; height: 20px; }
/* Héros à terre (0 PV) : voile sang et nom en sang, sans cadre (le cadre sang est celui du tour en cours) ; ses jets contre
   la mort (JetsMort) à la place de la CA. */
.bn-init__ligne.est-inconscient { background: var(--sang-voile); }
.bn-init__ligne.est-inconscient .bn-init__nom { color: var(--sang); }
.bn-init__score { font: 600 28px/1 var(--font-display); text-align: center; color: var(--cendre); font-variant-numeric: tabular-nums; }
.bn-init__ligne[aria-current="true"] .bn-init__score { color: var(--sang); text-shadow: 0 0 12px var(--halo-sang); }
.bn-init__qui { display: grid; gap: 2px; min-width: 0; }
.bn-init__nom { font: 600 17px/22px var(--font-ui); color: var(--os); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-init__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 400 13px/18px var(--font-ui); color: var(--cendre); }
.bn-init__camp { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.bn-init__camp::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; }
.bn-init__ligne[data-camp="pj"] .bn-init__camp { color: var(--brume); }
.bn-init__ligne[data-camp="allie"] .bn-init__camp { color: var(--cierge); }
.bn-init__ligne[data-camp="ennemi"] .bn-init__camp { color: var(--sang); }
.bn-init__ca { display: inline-flex; align-items: center; gap: 4px; font: 600 20px/1 var(--font-ui); color: var(--os); font-variant-numeric: tabular-nums; }
.bn-init__ca .bn-icone { width: 22px; height: 22px; color: var(--cendre); }
.bn-init__ligne.est-mort { opacity: .55; }
.bn-init__ligne.est-mort .bn-init__nom { text-decoration: line-through; text-decoration-color: var(--sang); }
@media (max-width: 560px) {
  .bn-init__ligne { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .bn-init__ligne > .bn-pv { grid-column: 2 / -1; }
  .bn-init--portraits .bn-init__ligne { grid-template-columns: 44px 36px minmax(0, 1fr) auto; }
  .bn-init--portraits .bn-init__ligne > .bn-pv { grid-column: 3 / -1; }
  .bn-init--portraits .bn-init__portrait { width: 36px; height: 36px; }
}

/* ───────────── Jets contre la mort ───────────── */
/* Un héros à 0 PV : à gauche les jets réussis (soleil, la lumière divine), à droite les ratés (sang), trois losanges
   chacun, un crâne entre les deux ; chaque série se remplit depuis le crâne vers le bord (le premier losange est le plus
   proche du crâne). Stabilisé : un cœur, cadre soleil ; trois échecs : cadre sang plein. */

.bn-jds { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--sang); background: var(--sang-voile); white-space: nowrap; }
.bn-jds > .bn-icone { width: 18px; height: 18px; color: var(--sang); }
.bn-jds__serie { display: inline-flex; gap: 5px; padding: 0 2px; }
.bn-jds__serie--reussis { flex-direction: row-reverse; }   /* le premier losange contre le crâne */
.bn-jds__pas { width: 8px; height: 8px; border: 1px solid var(--trait-fort); transform: rotate(45deg); }
.bn-jds__serie--reussis .est-fait { border-color: var(--soleil); background: var(--soleil); box-shadow: 0 0 6px color-mix(in srgb, var(--soleil) 60%, transparent); }
.bn-jds__serie--rates .est-fait { border-color: var(--sang); background: var(--sang); box-shadow: 0 0 6px var(--halo-sang); }
.bn-jds[data-etat="stabilise"] { border-color: var(--soleil); background: var(--soleil-voile); }
.bn-jds[data-etat="stabilise"] > .bn-icone { color: var(--soleil); }
.bn-jds[data-etat="mort"] { background: var(--sang-profond); }
.bn-jds[data-etat="mort"] > .bn-icone { color: var(--os); }
/* Mort (trois échecs) : plus de jets ni de PV, ce repère à leur place, bien visible ; --grand : sur une carte de personnage. */
.bn-mort { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--sang); background: var(--sang-profond); color: var(--os); font: 600 14px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 12px var(--halo-sang); }
.bn-mort > .bn-icone { width: 17px; height: 17px; color: var(--sang); }
.bn-mort--grand { display: flex; padding: 8px 12px; font: 500 22px/1 var(--font-display); letter-spacing: .12em; }
.bn-mort--grand > .bn-icone { width: 24px; height: 24px; }
/* Ordre de combat : un héros mort ne joue plus ; portrait éteint, nom barré, le repère Mort à la place de la CA et des PV. */
.bn-init__ligne.est-decede .bn-init__portrait { filter: grayscale(1) brightness(.6); }
.bn-init__ligne.est-decede .bn-init__nom { color: var(--cendre); text-decoration: line-through; text-decoration-color: var(--sang); }
.bn-init__ligne > .bn-mort { grid-column: -3 / -1; justify-self: end; }

/* ───────────── État ───────────── */
/* Un état (Aveuglé, Empoisonné, Épuisement…) : son icône dans une petite tuile sombre, cierge (ce qui gêne le héros sans
   le mettre à terre) ; le niveau d'Épuisement en exposant. Taille par --etat (24px d'office). Posée sur un portrait, la
   tuile reste lisible : fond presque opaque. */

.bn-etat {
  --etat: 24px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: var(--etat);
  height: var(--etat);
  border: 1px solid var(--cierge);
  background: color-mix(in srgb, var(--void) 82%, transparent);
  color: var(--cierge);
  box-shadow: 0 0 6px color-mix(in srgb, var(--cierge) 35%, transparent);
  vertical-align: middle;
}
.bn-etat > svg { width: 68%; height: 68%; fill: currentColor; }
.bn-etat__court { font: 600 calc(var(--etat) * .42)/1 var(--font-ui); letter-spacing: .02em; }
.bn-etat__niveau {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 13px;
  height: 13px;
  padding: 0 2px;
  box-sizing: border-box;
  background: var(--cierge);
  color: var(--sur-accent);
  font: 700 10px/13px var(--font-ui);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bn-etat--s { --etat: 18px; }
.bn-etat--s > .bn-etat__niveau { top: -4px; right: -4px; min-width: 11px; height: 11px; font-size: 9px; line-height: 11px; }
/* Encombrement : orange (cierge) quand le héros est encombré, rose (sang) quand il l'est lourdement. */
.bn-etat--encombre { border-color: var(--cierge); color: var(--cierge); }
.bn-etat--lourd { border-color: var(--sang); color: var(--sang); box-shadow: 0 0 6px color-mix(in srgb, var(--sang) 35%, transparent); }
.bn-etat--l { --etat: 44px; }
.bn-etat--l > .bn-etat__niveau { min-width: 17px; height: 17px; font-size: 12px; line-height: 17px; }

/* ───────────── Bloc de stats ───────────── */

.bn-stat {
  display: grid;
  gap: var(--space-2);
  max-width: 560px;
  padding: var(--space-5);
  border: 1px solid var(--trait);
  background: var(--crypte);
  color: var(--os);
  font: 400 15px/22px var(--font-text);
}
.bn-stat__nom { margin: 0; font: 600 34px/36px var(--font-display); color: var(--sang); text-shadow: 0 0 18px var(--halo-sang); text-wrap: balance; }
.bn-stat__type { margin: 0; font: italic 400 14px/20px var(--font-text); color: var(--cendre); }
.bn-stat .bn-filet { margin: var(--space-2) 0; }
.bn-stat__lignes { display: grid; gap: 2px; margin: 0; }
.bn-stat__lignes > div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.bn-stat dt { font: 600 14px/22px var(--font-ui); letter-spacing: .04em; color: var(--sang); }
.bn-stat dd { margin: 0; }
.bn-stat__carac { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); margin: 0; text-align: center; }
.bn-stat__carac > div { display: grid; gap: 2px; padding: 6px 0; background: var(--pierre); }
.bn-stat__carac dt { font-size: 12px; line-height: 16px; letter-spacing: .1em; }
.bn-stat__carac dd { font: 600 15px/20px var(--font-ui); font-variant-numeric: tabular-nums; }
.bn-stat__carac dd span { display: block; font-weight: 400; font-size: 13px; color: var(--cendre); }
.bn-stat__section { margin: var(--space-3) 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--sang); font: 600 20px/24px var(--font-display); color: var(--sang); }
.bn-stat__trait { margin: 0; }
.bn-stat__trait b { font-style: italic; font-weight: 600; }
.bn-stat .des { font-family: var(--font-mono); font-size: 13px; color: var(--ultra); }
@media (max-width: 480px) { .bn-stat__carac { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ───────────── Carte Tarokka ───────────── */

.bn-tarokka {
  --c: var(--coupe-m);
  --_s: var(--soleil);
  --_bord: var(--_s);
  --_fond: var(--crypte);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  gap: var(--space-2);
  width: 172px;
  max-width: 100%;
  aspect-ratio: 5 / 8;
  padding: 9% 7%;   /* 16 px et 12 px à 172 px de large ; suit la carte quand elle rétrécit */
  border: 0;
  background: none;
  color: var(--os);
  font: inherit;
  text-align: center;
  container-type: inline-size;   /* le nom se règle sur la largeur de la carte */
  transition: transform var(--duree-2) var(--courbe), filter var(--duree-2) var(--courbe);
}
button.bn-tarokka { cursor: pointer; }
.bn-tarokka:hover { transform: translateY(-3px); filter: drop-shadow(0 0 12px var(--_h, var(--halo-sang))); }
.bn-tarokka__cadre { position: absolute; inset: 7px; border: 1px solid var(--_s); opacity: .35; pointer-events: none; }
/* Tailles relatives à la largeur de la carte (cqi) : lisible de 172 px jusqu'à 80 px environ. */
.bn-tarokka__rang { font: 600 13px/1.25 var(--font-ui); font-size: clamp(10px, 7.6cqi, 13px); letter-spacing: .2em; color: var(--_s); }
.bn-tarokka__embleme { align-self: center; width: min(56px, 34cqi); height: min(56px, 34cqi); color: var(--_s); filter: drop-shadow(0 0 8px var(--_h, transparent)); }
/* Nom sur deux lignes réservées et centré : emblème et couleur restent à la même hauteur d'une carte à l'autre. */
.bn-tarokka__nom { display: flex; align-items: center; justify-content: center; min-height: 2.1em; margin: 0; font: 600 21px/1.05 var(--font-display); font-size: clamp(12px, 14.5cqi, 21px); color: var(--os); text-wrap: balance; }
.bn-tarokka__suite { margin: 0; font: 600 11px/1.3 var(--font-ui); font-size: clamp(9px, 6.4cqi, 11px); letter-spacing: .12em; text-transform: uppercase; color: var(--cendre); }
.bn-tarokka[data-suite="epees"]   { --_s: var(--sang);   --_h: var(--halo-sang); }
.bn-tarokka[data-suite="etoiles"] { --_s: var(--ultra);  --_h: var(--halo-ultra); }
.bn-tarokka[data-suite="glyphes"] { --_s: var(--brume);  --_h: var(--halo-brume); }
.bn-tarokka[data-suite="pieces"]  { --_s: var(--cierge); }
.bn-tarokka[data-suite="haut"]    { --_s: var(--soleil); }
.bn-tarokka--dos {
  --_bord: var(--sang);
  --_fond:
    repeating-linear-gradient(45deg, transparent 0 9px, var(--sang-voile) 9px 10px),
    repeating-linear-gradient(-45deg, transparent 0 9px, var(--sang-voile) 9px 10px),
    var(--sang-profond);
  align-content: center;
  grid-template-rows: 1fr;
}
.bn-tarokka--dos .bn-tarokka__embleme { color: var(--os-clair); }
/* Miniature (en-tête d'un widget, 18 px de large) : l'emblème seul, sans cadre ni texte.
   .est-trouve : auréole d'or, l'objet est trouvé ou l'allié recruté. */
.bn-tarokka--mini { --c: 3px; grid-template-rows: 1fr; place-items: center; gap: 0; width: 18px; padding: 0; container-type: normal; }
.bn-tarokka--mini.bn-tarokka--dos { --_fond: var(--sang-profond); }
.bn-tarokka--mini .bn-tarokka__embleme { width: 12px; height: 12px; filter: none; }
.bn-tarokka--mini:hover { transform: none; filter: drop-shadow(0 0 6px var(--_h, var(--halo-sang))); }
.bn-tarokka--mini.est-trouve, .bn-tarokka--mini.est-trouve:hover { filter: drop-shadow(0 0 2px var(--soleil)) drop-shadow(0 0 5px var(--soleil)); }
.bn-tirage { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 172px)); gap: var(--space-5); justify-content: center; }
.bn-tirage__place { display: grid; grid-template-rows: auto 1fr; gap: var(--space-2); justify-items: center; text-align: center; }
/* Libellé de place sur deux lignes réservées, calé contre la carte : les cartes d'une rangée s'alignent. */
.bn-tirage__place > .surtitre { display: flex; align-items: flex-end; justify-content: center; min-height: 32px; text-wrap: balance; }

/* ───────────── Texte à lire ───────────── */

.bn-alire {
  --_c: var(--sang);
  position: relative;
  max-width: 72ch;
  margin: 0;
  padding: var(--space-5) var(--space-6);
  background:
    linear-gradient(var(--_c), var(--_c)) top left / 16px 1px no-repeat,
    linear-gradient(var(--_c), var(--_c)) top left / 1px 16px no-repeat,
    linear-gradient(var(--_c), var(--_c)) top right / 16px 1px no-repeat,
    linear-gradient(var(--_c), var(--_c)) top right / 1px 16px no-repeat,
    linear-gradient(var(--_c), var(--_c)) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--_c), var(--_c)) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--_c), var(--_c)) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--_c), var(--_c)) bottom right / 1px 16px no-repeat,
    var(--pierre);
  color: var(--os);
  font: 400 19px/30px var(--font-text);
}
.bn-alire__label { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-2); font: 600 12px/16px var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--_c); }
.bn-alire p { margin: 0; }
.bn-alire p + p { margin-top: var(--space-3); }

/* ───────────── Lettre du comte ───────────── */

.bn-lettre {
  position: relative;
  isolation: isolate;
  max-width: 540px;
  padding: var(--space-6) var(--space-6) var(--space-5);
  background: var(--velin);
  color: var(--encre);
  box-shadow: var(--ombre-panneau);
  font: italic 400 17px/27px var(--font-text);
}
.bn-lettre::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .22; mix-blend-mode: multiply; pointer-events: none; }
.bn-lettre__salut { margin: 0 0 var(--space-3); font: 400 34px/44px var(--font-script); }
.bn-lettre__corps p { margin: 0; }
.bn-lettre__corps p + p { margin-top: var(--space-3); }
.bn-lettre__signature { margin: var(--space-5) 0 0; text-align: right; font: 400 44px/48px var(--font-script); }
.bn-lettre__titre { display: block; margin-top: 6px; font: 600 11px/14px var(--font-ui); font-style: normal; letter-spacing: .2em; text-transform: uppercase; }
.bn-lettre--manuscrite .bn-lettre__corps { font: 400 30px/40px var(--font-script); }

/* ───────────── Horloge de campagne ───────────── */

.bn-horloge {
  --_c: var(--ultra);
  --_h: var(--halo-ultra);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--trait);
  background: var(--crypte);
}
.bn-horloge[data-moment="aube"], .bn-horloge[data-moment="crepuscule"] { --_c: var(--cierge); --_h: transparent; }
.bn-horloge[data-moment="jour"] { --_c: var(--soleil); --_h: transparent; }
.bn-horloge__astre { width: 44px; height: 44px; color: var(--_c); filter: drop-shadow(0 0 10px var(--_h)); }
.bn-horloge__textes { display: grid; gap: 2px; min-width: 0; }
.bn-horloge__heure { align-self: center; font: 600 30px/32px var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--os); }
/* Avec l'heure : l'astre sur trois lignes à gauche ; la date (courte) puis l'ambiance, l'heure à droite des deux ; le détail
   sous l'ambiance et l'heure, sur toute la largeur restante (pas de retour à la ligne). */
.bn-horloge:has(> .bn-horloge__heure) { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 2px; }
.bn-horloge:has(> .bn-horloge__heure) > .bn-horloge__textes { display: contents; }
.bn-horloge:has(> .bn-horloge__heure) > .bn-horloge__astre { grid-area: 1 / 1 / 4 / 2; }
.bn-horloge:has(> .bn-horloge__heure) .bn-horloge__textes > * { min-width: 0; }
.bn-horloge:has(> .bn-horloge__heure) .bn-horloge__textes > :nth-child(1) { grid-area: 1 / 2; }
.bn-horloge:has(> .bn-horloge__heure) .bn-horloge__textes > :nth-child(2) { grid-area: 2 / 2; }
.bn-horloge:has(> .bn-horloge__heure) .bn-horloge__textes > :nth-child(3) { grid-area: 3 / 2 / 4 / -1; }
.bn-horloge:has(> .bn-horloge__heure) > .bn-horloge__heure { grid-area: 1 / 3 / 3 / 4; }
.bn-horloge:has(> .bn-horloge__heure) > .bn-horloge__phases { grid-row: 4; margin-top: var(--space-3); }
.bn-horloge__phases { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.bn-horloge__phases li {
  padding: 6px 0 0;
  border-top: 2px solid var(--trait);
  font: 600 11px/14px var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fane);
}
.bn-horloge__phases li[aria-current="true"] { border-top-color: var(--_c); color: var(--_c); box-shadow: 0 -6px 12px -6px var(--_h); }
/* L'heure en bouton (un clic règle l'horloge) : sans cadre ni icône, elle s'allume au survol. */
button.bn-horloge__heure { padding: 0; border: 0; background: none; cursor: pointer; transition: color var(--duree-1) var(--courbe), text-shadow var(--duree-1) var(--courbe); }
button.bn-horloge__heure:hover { color: var(--sang); text-shadow: 0 0 10px var(--halo-sang); }
button.bn-horloge__heure:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Avec la météo et l'heure (.bn-horloge__droite) : à gauche, serrées, les lignes du jour (« JOUR 1 · Lundi 6 octobre · 1009 »,
   l'ambiance, le lever ou le coucher du soleil et la lune, le jour marqué) ; à droite, en grand, la météo et l'heure, sur toute
   la hauteur de ces lignes. Le bloc ne s'élargit pas pour son contenu : un débordement se mesure. Le consommateur garde la
   première disposition qui tient : côte à côte (--cote), côte à côte en plus petit et sans l'année (--serre ; avec
   --sans-texte, la météo sans son texte, l'icône au-dessus de la température), l'heure au-dessus de la météo (--pile) ;
   --etroit resserre le tout (colonne de gauche qui rétrécit, textes et heure plus petits), --jour-empile passe la date
   sous « JOUR 1 ». */
.bn-horloge:where(:has(> .bn-horloge__droite)) { container-type: inline-size; grid-template-columns: auto minmax(max-content, 1fr) minmax(0, max-content); gap: 0 var(--space-3); padding: var(--space-3) var(--space-4); }
.bn-horloge:where(:has(> .bn-horloge__droite)) > .bn-horloge__astre { width: 50px; height: 50px; }
.bn-horloge:where(:has(> .bn-horloge__droite)) > .bn-horloge__textes { gap: 0; }
.bn-horloge:where(:has(> .bn-horloge__droite)) > .bn-horloge__phases { margin-top: var(--space-3); width: 0; min-width: 100%; }
/* La ligne du jour : un clic sur la date ouvre la fenêtre du jour (.est-ouvert tant qu'elle l'est) ; l'année, son calendrier en infobulle. */
.bn-horloge__jour { display: flex; align-items: baseline; gap: 0 6px; min-width: 0; white-space: nowrap; }
.bn-horloge__jour > * { flex: none; }
.bn-horloge__jour > .bn-horloge__date { flex: 0 1 auto; }
.bn-horloge__an { display: inline-flex; align-items: baseline; gap: 6px; }
.bn-horloge__annee { white-space: nowrap; cursor: help; text-decoration: underline dotted var(--fane); text-underline-offset: 3px; }
.bn-horloge__date { min-width: 0; overflow: hidden; padding: 0; border: 0; background: none; text-overflow: ellipsis; font: 500 15px/20px var(--font-ui); color: var(--os); text-align: left; text-decoration: underline dotted var(--fane); text-underline-offset: 3px; cursor: pointer; transition: color var(--duree-1) var(--courbe); }
.bn-horloge__date:hover, .bn-horloge__date.est-ouvert { color: var(--sang); }
.bn-horloge__date:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Le détail : lever ou coucher du soleil en icône (« dans 1 h »), puis la lune (« pleine dans 18 j »), l'heure et la phase en infobulle. */
.bn-horloge__detail { color: var(--cendre); }
.bn-horloge__soleil, .bn-horloge__lune { white-space: nowrap; cursor: help; }
.bn-horloge__soleil > .bn-icone { width: 15px; height: 15px; margin-right: 3px; vertical-align: -3px; color: var(--cierge); }
.bn-horloge__lune > .bn-icone { width: 13px; height: 13px; margin-right: 2px; vertical-align: -2px; }
/* Jour marqué du jour ou des deux semaines à venir : « ★ Solstice d'hiver dans 3 j », étoile rouge pour un jour spécial. */
.bn-horloge__marque { display: flex; align-items: center; gap: 4px; min-width: 0; font: 400 13px/18px var(--font-ui); color: var(--cendre); cursor: help; }
.bn-horloge__marque > .bn-icone { flex: none; color: var(--cierge); }
.bn-horloge__marque[data-type="special"] > .bn-icone { color: var(--sang); }
.bn-horloge__marque[data-jour] { color: var(--os); }
.bn-horloge__marque-nom { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bn-horloge__marque > :last-child { flex: none; white-space: nowrap; }
/* La météo et l'heure. La météo rétrécit en premier (texte coupé en « … »). */
.bn-horloge__droite { display: flex; align-items: center; justify-content: end; gap: var(--space-4); min-width: 0; }
.bn-horloge__droite > .bn-horloge__heure { flex: none; min-width: 2.8em; font-size: 36px; line-height: 38px; text-align: right; }
.bn-horloge__droite > .bn-horloge__meteo { flex: 0 1 auto; display: grid; grid-template-columns: auto minmax(0, auto); column-gap: 6px; align-items: center; min-width: 0; }
.bn-horloge__meteo > .bn-meteo__ciel { grid-area: 1 / 1 / 3 / 2; width: 26px; height: 26px; }
.bn-horloge__meteo > .bn-meteo__temp { grid-area: 1 / 2; font: 500 15px/20px var(--font-ui); color: var(--os); }
.bn-horloge__meteo > .bn-meteo__texte { grid-area: 2 / 2; max-width: 9em; line-height: 16px; color: var(--cendre); }
/* Côte à côte : la météo et l'heure prennent la hauteur des lignes du jour. */
.bn-horloge--cote .bn-horloge__droite > .bn-horloge__heure { font-size: 60px; line-height: 64px; }
.bn-horloge--cote .bn-horloge__meteo { column-gap: 8px; }
.bn-horloge--cote .bn-horloge__meteo > .bn-meteo__ciel { width: 48px; height: 48px; }
.bn-horloge--cote .bn-horloge__meteo > .bn-meteo__temp { font-size: 24px; line-height: 30px; }
.bn-horloge--cote .bn-horloge__meteo > .bn-meteo__texte { font-size: 15px; line-height: 20px; }
/* Hors du côte à côte en grand : pas d'année sur la ligne du jour ; la météo plus serrée, l'icône du ciel sur la ligne de la
   température, le texte dessous. */
.bn-horloge:is(.bn-horloge--serre, .bn-horloge--pile, .bn-horloge--etroit) .bn-horloge__an { display: none; }
.bn-horloge:is(.bn-horloge--serre, .bn-horloge--pile, .bn-horloge--etroit) .bn-horloge__meteo { grid-template-columns: auto auto; justify-content: end; column-gap: 4px; }
.bn-horloge:is(.bn-horloge--serre, .bn-horloge--pile, .bn-horloge--etroit) .bn-horloge__meteo > .bn-meteo__ciel { grid-area: 1 / 1; width: 20px; height: 20px; }
.bn-horloge:is(.bn-horloge--serre, .bn-horloge--pile, .bn-horloge--etroit) .bn-horloge__meteo > .bn-meteo__texte { grid-area: 2 / 1 / 3 / 3; justify-self: end; }
/* Serré : la météo reste à gauche de l'heure, plus petite ; sans son texte (au survol) quand la place manque encore. */
.bn-horloge--serre .bn-horloge__droite { gap: var(--space-3); }
.bn-horloge--serre .bn-horloge__droite > .bn-horloge__heure { min-width: auto; font-size: 44px; line-height: 46px; }
.bn-horloge--sans-texte .bn-horloge__meteo { grid-template-columns: auto; justify-items: center; }
.bn-horloge--sans-texte .bn-horloge__meteo > .bn-meteo__temp { grid-area: 2 / 1; }
.bn-horloge--sans-texte .bn-horloge__meteo > .bn-meteo__texte { display: none; }
/* L'une au-dessus de l'autre : l'heure, puis la météo, calées à droite. */
.bn-horloge--pile .bn-horloge__droite { flex-direction: column; align-items: end; gap: 2px; }
.bn-horloge--pile .bn-horloge__droite > .bn-horloge__heure { order: -1; }
.bn-horloge--pile .bn-horloge__droite > .bn-horloge__heure { font-size: 44px; line-height: 46px; }
/* La date sous « JOUR 1 », sans point, quand la ligne du jour ne tient pas ; coupée en « … » dans sa colonne s'il le faut. */
.bn-horloge--jour-empile .bn-horloge__jour { flex-direction: column; align-items: start; }
.bn-horloge--jour-empile .bn-horloge__jour > [aria-hidden] { display: none; }
.bn-horloge--jour-empile .bn-horloge__jour > .bn-horloge__date { max-width: 100%; }
/* Étroit : la colonne de gauche rétrécit (le détail passe sur deux lignes s'il le faut), ambiance et heure plus petites. */
.bn-horloge--etroit { grid-template-columns: auto minmax(0, 1fr) auto; }
.bn-horloge--etroit > .bn-horloge__astre { width: 46px; height: 46px; }
.bn-horloge--etroit > .bn-horloge__phases { margin-top: var(--space-2); }
.bn-horloge--etroit .bn-horloge__date { font-size: 14px; }
.bn-horloge--etroit .bn-horloge__textes > .titre-m { font-size: 20px; line-height: 24px; }
.bn-horloge--etroit .bn-horloge__droite > .bn-horloge__heure { min-width: auto; font-size: 36px; line-height: 38px; }
.bn-horloge--etroit .bn-horloge__meteo > .bn-meteo__ciel { width: 20px; height: 20px; }
.bn-horloge--etroit .bn-horloge__meteo > .bn-meteo__temp { font-size: 14px; line-height: 18px; }
.bn-horloge--etroit .bn-horloge__meteo > .bn-meteo__texte { max-width: 7em; }

/* Fenêtre du jour (clic sur la date) : l'essentiel en tête, puis le détail du jour et le calendrier, repliés. */
.bn-jour__essentiel { display: grid; gap: var(--space-1); }
.bn-jour__essentiel p { margin: 0; }
.bn-jour__divinite, .bn-jour__marque { display: flex; align-items: flex-start; gap: 6px; }
.bn-jour__divinite > .bn-icone, .bn-jour__marque > .bn-icone { margin-top: 2px; color: var(--cierge); }
.bn-jour__marque[data-type="special"] > .bn-icone { color: var(--sang); }
.bn-jour__semaine { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font: 400 13px/18px var(--font-ui); color: var(--cendre); }
.bn-jour__semaine li { display: grid; grid-template-columns: 6.5em 5.5em minmax(0, 1fr); gap: var(--space-2); }
.bn-jour__semaine b { font-weight: 600; color: var(--os); }
.bn-jour__semaine li[aria-current="true"], .bn-jour__semaine li[aria-current="true"] b { color: var(--sang); }

/* Météo d'un créneau : icône du ciel en bleu, texte, température ; le résumé du jour au survol. */
.bn-meteo { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font: 400 13px/18px var(--font-ui); color: var(--cendre); cursor: help; }
.bn-meteo__ciel { flex: none; width: 16px; height: 16px; color: var(--brume); }
.bn-meteo__texte { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--os); }
.bn-meteo__temp { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Rappel discret, ailleurs que dans l'horloge : brouillard, forte neige, verglas ; le détail au survol. */
.bn-rappel-meteo { display: inline-flex; align-items: center; gap: 4px; font: 500 13px/18px var(--font-ui); color: var(--brume); white-space: nowrap; cursor: help; }

/* ───────────── Grille de widgets ─────────────
   Tableau de bord : .bn-grille contient des .bn-widget placés en absolu (left/top/width/height posés par le script).
   .bn-grille--pile : petit écran, les widgets s'empilent dans le flux. .bn-grille--verrou : disposition figée. */

.bn-grille { position: relative; min-height: 240px; }
.bn-grille--pile { display: grid; gap: var(--space-4); }
.bn-grille__fantome {
  position: absolute;
  border: 1px dashed var(--sang);
  background: var(--sang-voile);
  pointer-events: none;
  transition: left var(--duree-2) var(--courbe), top var(--duree-2) var(--courbe), width var(--duree-2) var(--courbe), height var(--duree-2) var(--courbe);
}

.bn-widget {
  position: absolute;
  overflow: visible;
  transition: left var(--duree-2) var(--courbe), top var(--duree-2) var(--courbe), width var(--duree-2) var(--courbe), height var(--duree-2) var(--courbe), filter var(--duree-1) var(--courbe);
}
.bn-grille--pile .bn-widget { position: relative; height: auto; max-height: 85vh; }
.bn-widget.est-saisi { z-index: 20; transition: filter var(--duree-1) var(--courbe); --_bord: var(--sang); filter: drop-shadow(0 0 10px var(--halo-sang)); }
.bn-widget__tete {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-width: 0;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--trait);
}
.bn-widget__poignee { cursor: grab; touch-action: none; color: var(--fane); }
.bn-widget__poignee:active { cursor: grabbing; }
.bn-widget__titres { display: grid; gap: 2px; min-width: 0; flex: 0 1 auto; }
.bn-widget__titre { margin: 0; font: 500 23px/26px var(--font-display); color: var(--os); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-widget__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-1); margin-left: auto; }
/* Résumé : ce que le widget montre dans son en-tête, même réduit (étape en cours, cartes du tirage, heure).
   Il prend la place libre entre le titre et les actions, chaque ligne coupée en « … ». Il remplace le surtitre.
   data-quand="reduit" : seulement quand le widget est réduit. */
.bn-widget__resume { display: grid; align-content: center; flex: 1 1 0; min-width: 0; padding-left: var(--space-3); border-left: 1px solid var(--trait); color: var(--os); font: 500 14px/17px var(--font-ui); }
.bn-widget__resume:empty, .bn-widget:not(.est-reduit) .bn-widget__resume[data-quand="reduit"] { display: none; }
.bn-widget__resume > *, .bn-widget__resume-bouton > * { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bn-widget__resume .surtitre { font-size: 12px; line-height: 14px; letter-spacing: .02em; text-transform: none; }
.bn-widget__tete:has(> .bn-widget__resume:not(:empty):not([data-quand="reduit"])) .bn-widget__titres > .surtitre { display: none; }
/* Résumé cliquable (aller à l'élément en cours) : un bouton qui garde les lignes du résumé. */
.bn-widget__resume-bouton { display: grid; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bn-widget__resume-bouton:hover > :last-child { color: var(--sang); }
.bn-widget__corps {
  display: grid;
  grid-auto-rows: max-content;   /* une rangée ne rétrécit jamais sous son contenu */
  align-content: start;
  gap: var(--space-4);
  flex: 1;
  min-height: 0;
  padding: var(--space-4) var(--space-5) var(--space-5);
  overflow: hidden auto;   /* défile en hauteur seulement : un widget ne défile jamais de côté */
  scrollbar-width: thin;
  scrollbar-color: var(--trait-fort) transparent;
}
/* Poignée de redimensionnement : deux traits parallèles à la coupe du coin bas-droit. */
.bn-widget__redim {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: linear-gradient(135deg, transparent 0 62%, currentColor 62% 66%, transparent 66% 76%, currentColor 76% 80%, transparent 80%);
  color: var(--trait-fort);
  cursor: nwse-resize;
  touch-action: none;
}
.bn-widget__redim:hover, .bn-widget.est-saisi .bn-widget__redim { color: var(--sang); }
.bn-grille--verrou .bn-widget__poignee, .bn-grille--verrou .bn-widget__redim, .bn-grille--verrou .bn-widget__fermer,
.bn-grille--pile .bn-widget__poignee, .bn-grille--pile .bn-widget__redim { display: none; }
body.est-en-glisse { user-select: none; cursor: grabbing; }
/* Sans poignée (verrou, pile), le titre reprend la marge du corps. */
.bn-grille--verrou .bn-widget__tete, .bn-grille--pile .bn-widget__tete { padding-left: var(--space-5); }
/* Réduit : une seule rangée ; seul le titre reste (sans surtitre), centré dans sa hauteur ; ni corps ni redimensionnement. */
.bn-widget.est-reduit .bn-widget__tete { flex: 1; padding-top: var(--space-1); padding-bottom: var(--space-1); border-bottom: 0; }
.bn-widget.est-reduit .bn-widget__titres > .surtitre { display: none; }
/* Compact (petit outil sur 2 colonnes) : en-tête d'une ligne, sans surtitre, titre plus petit, moins d'écart
   vertical ; les marges latérales restent celles d'un widget normal. */
.bn-widget--compact .bn-widget__tete { gap: var(--space-1); padding: var(--space-2) var(--space-3); }
.bn-widget--compact .bn-widget__titres > .surtitre { display: none; }
.bn-widget--compact .bn-widget__titre { font-size: 18px; line-height: 22px; }
.bn-widget--compact .bn-widget__corps { gap: var(--space-2); padding: var(--space-3) var(--space-5); }
.bn-grille--verrou .bn-widget--compact .bn-widget__tete, .bn-grille--pile .bn-widget--compact .bn-widget__tete { padding-left: var(--space-5); }
/* Filet dans un corps de widget : l'écart de la grille suffit, pas de marge en plus. */
.bn-widget__corps .bn-filet { margin: 0; }
.bn-widget.est-reduit .bn-widget__corps, .bn-widget.est-reduit .bn-widget__redim { display: none; }

/* ───────────── Dialogue ───────────── */

.bn-dialogue {
  width: min(560px, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - 2 * var(--space-6));
  padding: 0;
  border: 0;
  background: none;
  color: var(--os);
  overflow: visible;
}
.bn-dialogue--large { width: min(860px, calc(100vw - 2 * var(--space-4))); }
.bn-dialogue[open] { display: flex; flex-direction: column; }
.bn-dialogue::backdrop { background: color-mix(in srgb, var(--void) 72%, transparent); backdrop-filter: blur(2px); }
.bn-dialogue > .bn-panel { max-height: inherit; filter: drop-shadow(var(--ombre-panneau)); }
/* Le corps défile en hauteur seulement : la barre verticale ne fait pas déborder le contenu à l'horizontale. */
.bn-dialogue .bn-panel__corps { overflow: auto; overflow-x: hidden; min-height: 0; }

/* ───────────── Fenêtre flottante ───────────── */
/* Non modale, déplaçable par sa tête : une fiche consultée sans bouger le tableau de bord. */
.bn-flottant {
  position: fixed;
  inset: auto;
  z-index: 900;
  width: min(480px, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - 2 * var(--space-6));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--os);
  overflow: visible;
}
.bn-flottant[open] { display: flex; flex-direction: column; }
.bn-flottant::backdrop { background: transparent; }   /* ouverte depuis un dialogue modal : modale, sans voile en plus */
.bn-flottant > .bn-panel { max-height: inherit; filter: drop-shadow(var(--ombre-panneau)); }
/* Dialogue et fenêtre flottante : titres et « Fermer » toujours sur une ligne, un titre long passe à la ligne. */
.bn-dialogue .bn-panel__tete, .bn-flottant .bn-panel__tete { flex-wrap: nowrap; }
.bn-dialogue .bn-panel__titres, .bn-flottant .bn-panel__titres { flex: 1 1 auto; }
/* Question en pied de dialogue (« Les héros se rendent-ils à … ? ») : séparée du reste par un filet, l'intitulé puis les choix. */
.bn-aller { display: grid; gap: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--trait); }
.bn-aller .etiquette { margin: 0; }
.bn-dialogue .bn-panel__tete > .bn-btn, .bn-flottant .bn-panel__tete > .bn-btn { flex: none; }
.bn-flottant .bn-panel__tete { cursor: grab; touch-action: none; user-select: none; }
.bn-flottant .bn-panel__tete button { cursor: pointer; }
.bn-flottant.est-saisi .bn-panel__tete { cursor: grabbing; }
.bn-flottant.est-saisi > .bn-panel, .bn-flottant.est-devant > .bn-panel { --_bord: var(--trait-fort); }
/* Le corps défile, la tête (et « Fermer ») reste. will-change : sous le filter du panneau, Chromium laisse cliquable ce qui a
   défilé hors du corps, jusque sur la tête de la fenêtre, si le corps n'a pas sa propre couche (image d'une fiche de monstre). */
.bn-flottant .bn-panel__corps { overflow: auto; min-height: 0; padding: var(--space-4); will-change: transform; }
/* Compacte : tête resserrée, petit titre, corps à fleur (une carte ou une image qui doit tenir à l'écran). */
.bn-flottant--compact { max-height: calc(100vh - 2 * var(--space-2)); }
.bn-flottant--compact .bn-panel__tete { align-items: center; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); }
.bn-flottant--compact .bn-panel__titres .titre-m { font-size: 18px; line-height: 22px; }
.bn-flottant--compact .bn-panel__corps { gap: var(--space-2); padding: var(--space-2); }
/* Plein écran : toute la fenêtre du navigateur, à une marge près (une vue d'ensemble : la table du Tarokka). */
.bn-flottant--plein { width: calc(100vw - 2 * var(--space-4)); height: calc(100vh - 2 * var(--space-4)); max-height: none; }
.bn-flottant--plein > .bn-panel { height: 100%; }
.bn-flottant--plein .bn-panel__corps { flex: 1 1 auto; }
/* Réduite : elle reste à sa place et à sa largeur, à la hauteur de sa barre de titre, avec son repère (image ou icône). */
.bn-flottant__repere { display: none; }
.bn-flottant.est-reduite { height: auto; max-height: none; }
.bn-flottant.est-reduite > .bn-panel { height: auto; }
.bn-flottant.est-reduite .bn-panel__corps { display: none; }
.bn-flottant.est-reduite .bn-panel__tete { align-items: center; gap: var(--space-3); border-bottom: 0; }
.bn-flottant.est-reduite .bn-flottant__repere { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--cendre); }
.bn-flottant.est-reduite .bn-flottant__repere:empty { display: none; }
.bn-flottant__repere img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ───────────── Infobulle ─────────────
   Au survol ou au focus : une précision courte (« 9 m · 6 cases »), un titre en option. Le filet prend la couleur de
   l'élément qu'elle détaille (badge orange, infobulle orange) ; bleu (brume) pour un élément neutre ; rouge (--sang), donné
   à la main, pour une info importante sur un élément neutre ; --abysse pour le pire (zone TPK, rang Haï : fond abysse, filet sang) ; --nuit sur fond noir. */
.bn-bulle {
  --_c: var(--brume);
  display: grid;
  gap: 1px;
  max-width: 320px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--trait-fort);
  border-left: 2px solid var(--_c);
  background: var(--crypte);
  box-shadow: var(--ombre-panneau);
  font: 400 13px/17px var(--font-ui);
  color: var(--cendre);
  pointer-events: none;
}
.bn-bulle--sang { --_c: var(--sang); }
.bn-bulle--ultra { --_c: var(--ultra); }
.bn-bulle--cierge { --_c: var(--cierge); }
.bn-bulle--soleil { --_c: var(--soleil); }
.bn-bulle--mousse { --_c: var(--mousse); }
.bn-bulle--brume { --_c: var(--brume); }
.bn-bulle--nuit { --_c: var(--os); background: var(--void); }
.bn-bulle--abysse { --_c: var(--sang); background: var(--abysse); color: var(--os-clair); }
.bn-bulle--abysse b { color: var(--os-clair); }
.bn-bulle b { font: 600 14px/18px var(--font-ui); color: var(--os); }
/* Infobulle de page : popover dans la couche du dessus (au-dessus des dialogues), placée par l'application. */
.bn-bulle[popover] { position: fixed; inset: auto; margin: 0; overflow: visible; }
.bn-bulle[popover]:not(:popover-open) { display: none; }

/* ───────────── Menu ─────────────
   Petit choix ouvert par un bouton (« + » de l'horloge : +10 min, +30 min…), juste dessous.
   Popover natif : un clic ailleurs ou Échap le referment. */
.bn-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: max-content;
  padding: var(--space-1);
  border: 1px solid var(--trait-fort);
  background: var(--crypte);
  box-shadow: var(--ombre-panneau);
  color: var(--os);
  overflow: visible;
}
.bn-menu[popover] { position: fixed; inset: auto; margin: 0; }
.bn-menu[popover]:not(:popover-open) { display: none; }
.bn-menu__choix { height: 32px; padding: 0 10px; border: 1px solid var(--trait-fort); background: var(--pierre); color: var(--os); font: 600 13px/1 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; }
.bn-menu__choix:hover { border-color: var(--sang); background: var(--pierre-haute); }
.bn-menu__choix:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Le choix en cours (un filtre) : allumé, comme un bouton enfoncé. */
.bn-menu__choix[aria-checked="true"] { border-color: var(--sang); color: var(--sang); box-shadow: 0 0 10px var(--halo-sang); }

/* ───────────── Accessibilité du mouvement ───────────── */

@media (prefers-reduced-motion: reduce) {
  .bn-gresille, .bn-pv[data-etat="critique"] .bn-pv__plein { animation: none; }
  .bn-btn, .bn-tarokka, .bn-pv__plein, .bn-init__ligne, .bn-widget, .bn-grille__fantome { transition: none; }
  .bn-tarokka:hover { transform: none; }
}

/* ───────────── Jalon ─────────────
   Une ligne d'une frise de campagne (jalon entre deux étapes, piste) : icône, nom en bouton (clavier), détails en petit ;
   un clic ouvre son détail en fenêtre flottante (.est-ouvert tant qu'elle l'est). Seul le jalon en cours est encadré, en
   jaune, sans néon (le néon reste à l'étape en cours). */
.bn-jalons { display: grid; gap: 2px; }
.bn-jalons--frise { margin-left: calc(14px + var(--space-3)); padding-left: var(--space-2); border-left: 1px dashed var(--trait-fort); }
.bn-jalon { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); box-sizing: border-box; width: 100%; padding: 3px var(--space-2); border: 1px solid transparent; background: none; color: var(--cendre); text-align: left; cursor: pointer; }
.bn-jalon:hover .bn-jalon__nom { color: var(--os); }
.bn-jalon.est-ouvert { border-color: var(--trait); background: var(--pierre); }
.bn-jalon__bouton { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bn-jalon__bouton:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bn-jalon__icone { display: grid; place-items: center; }
.bn-jalon__nom { font: 500 14px/18px var(--font-ui); }
.bn-jalon__meta { font-weight: 400; color: var(--cendre); font-variant-numeric: tabular-nums; }
.bn-jalon__meta .bn-icone { vertical-align: -3px; }
/* Déclencheur (« Le lendemain matin… ») : en petit, sous le nom ; aussi le texte d'un rappel de piste. */
.bn-jalon__declencheur { display: block; font: italic 400 12px/16px var(--font-ui); color: var(--cendre); }
.bn-jalon__declencheur .bn-icone { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.bn-jalon--passe, .bn-jalon--termine { opacity: .62; }
.bn-jalon--termine .bn-jalon__icone { color: var(--brume); }
.bn-jalon--suivant { color: var(--os); }
.bn-jalon--suivant .bn-jalon__icone { color: var(--cierge); }
.bn-jalon--en-cours, .bn-jalon--en-cours.est-ouvert { border-color: var(--soleil); background: var(--pierre-haute); color: var(--os); }
.bn-jalon--en-cours .bn-jalon__icone { color: var(--soleil); }
/* Piste (un fil à faire reparaître) : icône violette ; sous une étape, son rappel est plus discret. */
.bn-jalon--piste .bn-jalon__icone { color: var(--ultra); }
.bn-jalon--piste.bn-jalon--termine .bn-jalon__icone { color: var(--brume); }
.bn-jalon--rappel { padding-top: 1px; padding-bottom: 1px; }
.bn-jalon--rappel .bn-jalon__nom { font-size: 13px; font-weight: 400; }
.bn-jalon--rappel.bn-jalon--a-venir { opacity: .75; }

/* ───────────── Lien vers le déroulé ─────────────
   Au bout d'un texte (étape d'une quête personnelle) : l'icône du jalon ou de la piste, qui l'ouvre dans le déroulé, et son
   statut en petit ; un renvoi introuvable : un triangle rouge, l'explication au survol. */
.bn-lien-deroule { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; white-space: nowrap; vertical-align: -1px; }
.bn-lien-jalon { display: inline-grid; place-items: center; margin-left: 4px; padding: 0; border: 0; background: none; color: var(--ultra); vertical-align: -2px; cursor: pointer; }
.bn-lien-deroule .bn-lien-jalon { margin-left: 0; vertical-align: 0; }
.bn-lien-jalon:hover { color: var(--os); }
.bn-lien-jalon:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bn-statut-deroule { font: 400 12px/16px var(--font-ui); color: var(--cendre); }
.bn-statut-deroule .bn-icone { width: 12px; height: 12px; margin-right: 2px; vertical-align: -2px; }
.bn-statut-deroule--en-cours { color: var(--soleil); }
.bn-statut-deroule--termine { color: var(--brume); }
.bn-lien-introuvable { display: inline-grid; place-items: center; margin-left: 6px; color: var(--sang); vertical-align: -2px; cursor: help; }

/* ───────────── Lieu ─────────────
   Carte d'un lieu (.bn-carte.bn-lieu), resserrée. Première ligne : la description, « Les héros sont ici » (.bn-lieu__ici) à
   droite tant qu'elle tient sur une ligne ; sinon le repère passe en bas à droite (.est-repere-bas, posé par le
   consommateur) et la description reprend toute la largeur. Sous le titre, les sous-lieux en puces : un clic pour y
   descendre, celui des héros en bleu ; dans un sous-lieu, « Remonter » au-dessus du titre. Bordure brume quand les héros y sont. */
.bn-lieu { gap: 4px; padding: 10px var(--space-4); }
.bn-lieu p { margin: 0; }
.bn-lieu .titre-m { display: flex; align-items: center; gap: var(--space-2); font-size: 24px; line-height: 26px; }
.bn-lieu.est-ici { border-color: var(--brume); }
.bn-lieu__haut { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.bn-lieu__haut > .surtitre { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bn-lieu.est-repere-bas .bn-lieu__haut > .surtitre { white-space: normal; }
.bn-lieu__ici { flex: none; margin-left: auto; }
.bn-lieu__haut > .bn-lieu__ici { height: 20px; gap: 3px; padding: 0 6px; letter-spacing: .03em; }   /* resserré pour tenir sur la ligne */
.bn-lieu__bas:empty { display: none; }   /* rien à dire en bas : pas de ligne vide */
.bn-lieu__tarokka { display: inline-grid; place-items: center; }
.bn-lieu__sous { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.bn-lieu__sous-lieu { height: 22px; border: 0; background: none; color: var(--os); font: 500 13px/1 var(--font-ui); letter-spacing: 0; text-transform: none; cursor: pointer; }
.bn-lieu__sous-lieu:hover { --_bord: var(--os); }
.bn-lieu__sous-lieu:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bn-lieu__sous-lieu.est-ici { --_a: var(--brume); --_v: var(--brume-voile); color: var(--os); }
.bn-lieu__sous-lieu .bn-icone { width: 13px; height: 13px; color: var(--_a); }
.bn-lieu__remonter { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font: 600 13px/16px var(--font-ui); }
.bn-lieu__dans { display: inline-flex; align-items: center; gap: 4px; }

@media print {
  .bn-grain::after, .bn-lettre::after { display: none; }
}
