/* vyrendal.com : bleu nuit et or, les couleurs de l'emblème du jeu. */

:root {
  --nuit: #0f1426;
  --nuit-2: #151c33;
  --nuit-3: #1d2644;
  --or: #e2b04a;
  --or-clair: #f6d98a;
  --or-sombre: #a4741f;
  --texte: #e9e4d6;
  --texte-doux: #a9adc0;
  --discord: #5865f2;
  --rayon: 14px;
  --titre: 'Cinzel', Georgia, serif;
  --corps: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--or-clair); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.2; margin: 0 0 .6em; }
h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--or);
  text-align: center;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
  white-space: nowrap;
}
.bouton i { font-size: 1.3em; }
.bouton:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bouton:focus { outline: none; }
.bouton:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bouton-discord { background: var(--discord); color: #fff; }
.bouton-or { background: var(--or); color: #2a1d05; }
.bouton-clair { background: rgba(255, 255, 255, .92); color: var(--nuit); }
.bouton-inactif { background: rgba(10, 13, 26, .55); color: #d4d6e2; border: 1px solid rgba(255, 255, 255, .22); cursor: default; backdrop-filter: blur(4px); }
.bouton-inactif:hover { transform: none; filter: none; }
.bouton-petit { padding: 9px 18px; font-size: 15px; }

/* ---------- Barre du haut ---------- */
.barre {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  background: rgba(15, 20, 38, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 176, 74, .15);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
/* Sur l'accueil : transparente tant qu'on est en haut de l'image,
   pleine dès qu'on descend (classe barre-pleine posée par site.js). */
.barre-transparente:not(.barre-pleine) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.barre-transparente:not(.barre-pleine) .barre-marque,
.barre-transparente:not(.barre-pleine) .barre-liens a { text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.barre-marque {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--titre);
  font-weight: 800;
  font-size: 22px;
  color: var(--or);
  text-decoration: none;
}
.barre-marque img { width: 36px; height: auto; image-rendering: pixelated; }
.barre-marque .barre-titre { width: 172px; }
.barre-liens { display: flex; gap: 22px; margin-left: auto; }
.barre-liens a { color: var(--texte); text-decoration: none; font-weight: 600; opacity: .85; }
.barre-liens a:hover { color: var(--or-clair); opacity: 1; }

/* ---------- Accueil ---------- */
/* La capture du village, nette et pleine page. Un dégradé sombre à gauche
   porte le texte, un fondu en bas rejoint la page : rien d'autre. */
.accueil {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 6vw 90px;
  overflow: hidden;
  /* Un trait sombre et franc sépare l'en-tête de la suite. */
  border-bottom: 4px solid #070912;
}
.accueil picture { position: absolute; inset: 0; z-index: 0; }
.accueil-fond {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 13, 26, .88) 0%, rgba(10, 13, 26, .62) 34%, rgba(10, 13, 26, 0) 62%),
    linear-gradient(0deg, var(--nuit) 0%, rgba(15, 20, 38, 0) 26%);
}
.accueil-contenu { position: relative; z-index: 2; max-width: 560px; }
.accueil h1 {
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff6dc;
  text-shadow: 0 4px 0 var(--or-sombre), 0 10px 34px rgba(0, 0, 0, .7);
  margin-bottom: .15em;
}
/* Le titre est le logo du jeu (pixel art), agrandi deux fois sans flou. */
.accueil-titre {
  width: 688px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .7));
}
.accueil-accroche {
  font-size: clamp(18px, 2vw, 21px);
  margin: 0 0 30px;
  color: #f1ece0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.accueil-boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.accueil-etat { margin-top: 22px; color: #d4d6e2; font-size: 15px; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }


/* ---------- Blocs ---------- */
.bloc {
  padding: 90px 20px;
  /* Un trait sombre et franc entre chaque section, comme un joint de pierre. */
  border-bottom: 4px solid #070912;
}
/* Une section sur deux sur l'herbe du jeu (assets/env/sols/herbe_cartoon.png),
   assombrie pour que les cartes et les titres restent lisibles. */
.bloc-herbe {
  background:
    linear-gradient(rgba(10, 13, 26, .28), rgba(10, 13, 26, .28)),
    url('/assets/img/herbe.webp') repeat center / 420px;
}
/* Les autres sur les dalles du jeu (assets/env/sols/dalle_echo.png),
   bien assombries : le texte de l'histoire est posé directement dessus. */
.bloc-pierre {
  background:
    linear-gradient(rgba(10, 13, 26, .62), rgba(10, 13, 26, .62)),
    url('/assets/img/pierre.webp') repeat center / 320px;
  /* Ombre portée en haut et en bas : la pierre semble creusée sous l'herbe. */
  box-shadow:
    inset 0 28px 36px -18px rgba(0, 0, 0, .75),
    inset 0 -28px 36px -18px rgba(0, 0, 0, .75);
}
.bloc-pierre .bloc-intro, .bloc-pierre .rejoindre p, .bloc-pierre.rejoindre p { color: #c9ccdb; }
.bloc-herbe h2 { color: var(--or-clair); text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .45); }
.bloc-herbe .atout { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.bloc-largeur { max-width: 1120px; margin: 0 auto; }
.bloc-intro { text-align: center; color: var(--texte-doux); margin: -4px 0 30px; }

/* ---------- L'histoire : un récit en trois chapitres sur un fil ---------- */
.recit-accroche {
  max-width: 680px;
  margin: -6px auto 40px;
  text-align: center;
  font-family: var(--titre);
  font-size: clamp(20px, 2.4vw, 26px);
  color: #f1ece0;
}
.recit {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 34px;
}
/* Le fil qui relie les chapitres : un tronçon par chapitre, du milieu de
   l'espace au-dessus au milieu de l'espace au-dessous, coupé au premier et
   au dernier médaillon pour ne jamais dépasser. */
.recit-chapitre::before {
  content: '';
  position: absolute;
  top: -17px;
  bottom: -17px;
  left: 59px;
  width: 4px;
  background: #070912;
}
.recit-chapitre:first-child::before { top: 50%; }
.recit-chapitre:last-child::before { bottom: 50%; }
.recit-visuel { position: relative; z-index: 1; }
.recit-chapitre { position: relative; display: grid; grid-template-columns: 122px 1fr; gap: 26px; align-items: center; }
.recit-visuel {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 3px solid #070912;
  background: var(--nuit-3);
  box-shadow: 0 0 0 3px var(--or-sombre), 0 10px 26px rgba(0, 0, 0, .5);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.recit-visuel img { width: 112px; height: 112px; image-rendering: pixelated; }
.recit-visuel img[width="64"] { width: 76px; height: 76px; }
/* Chapitre II : l'Écorcheur devant, le Grand Veneur dans l'ombre derrière lui. */
.recit-duo { position: relative; display: block; }
.recit-duo img { position: absolute; width: 92px; height: 92px; }
.recit-duo img:first-child { left: 4px; bottom: 0; z-index: 1; }
.recit-duo .recit-mystere { right: -6px; top: 2px; filter: brightness(.25) saturate(0); opacity: .9; }
.recit-texte {
  background: rgba(15, 20, 38, .82);
  border: 2px solid #070912;
  border-radius: var(--rayon);
  padding: 20px 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.recit-numero { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--texte-doux); }
.recit-texte h3 { font-size: 24px; color: var(--or-clair); margin: 2px 0 8px; }
.recit-texte p:last-child { margin: 0; color: #d6d8e4; }
.recit-texte strong { color: var(--or-clair); }

/* ---------- Le jeu : quatre atouts, image et texte en alternance ---------- */
.atouts { display: grid; gap: 28px; max-width: 980px; margin: 0 auto; }
.atout {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  background: rgba(15, 20, 38, .9);
  border: 2px solid #070912;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.atout:nth-child(even) { grid-template-columns: 1fr 300px; }
.atout:nth-child(even) .atout-visuel { order: 2; }
.atout-visuel {
  position: relative;
  height: 200px;
  background: #0a0e1d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atout-visuel img { image-rendering: pixelated; }
.atout-texte { padding: 26px 32px; }
.atout-numero {
  margin: 0;
  font-family: var(--titre);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2em;
  color: var(--or-sombre);
}
.atout h3 { font-size: 24px; color: var(--or-clair); margin: 2px 0 8px; }
.atout-texte p:last-child { margin: 0; color: #d6d8e4; font-size: 16px; }

.atout-portraits { gap: 14px; }
.atout-portraits img { width: 112px; height: 112px; border-radius: 12px; border: 2px solid #070912; background: var(--nuit-3); }
.atout-capture img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.atout-icones { gap: 22px; }
.atout-icones img { width: 72px; height: 72px; }

/* Le cercle des éléments : feu en haut, terre à droite, foudre en bas, eau à gauche. */
.atout-elements img { position: absolute; width: 56px; height: 56px; }
.atout-elements .el-feu { top: 12px; left: calc(50% - 28px); }
.atout-elements .el-terre { top: calc(50% - 28px); left: calc(50% + 46px); }
.atout-elements .el-foudre { bottom: 12px; left: calc(50% - 28px); }
.atout-elements .el-eau { top: calc(50% - 28px); left: calc(50% - 102px); }
.atout-elements i { position: absolute; font-size: 22px; color: var(--texte-doux); }
.atout-elements .fl-1 { top: 38px; left: calc(50% + 26px); }
.atout-elements .fl-2 { bottom: 38px; left: calc(50% + 26px); }
.atout-elements .fl-3 { bottom: 38px; left: calc(50% - 48px); }
.atout-elements .fl-4 { top: 38px; left: calc(50% - 48px); }

/* ---------- Carrousel des captures ---------- */
.carrousel { max-width: 980px; margin: 0 auto; }
.carrousel-cadre {
  position: relative;
  overflow: hidden;
  border-radius: var(--rayon);
  border: 2px solid #070912;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  background: #070912;
}
.carrousel-piste { display: flex; transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.carrousel-diapo { flex: 0 0 100%; display: block; cursor: zoom-in; }
.carrousel-diapo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.carrousel-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid #070912;
  border-radius: 50%;
  background: rgba(15, 20, 38, .8);
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.carrousel-fleche:hover { background: var(--nuit-3); transform: translateY(-50%) scale(1.08); }
.carrousel-precedent { left: 14px; }
.carrousel-suivant { right: 14px; }
.carrousel-legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 40px 20px 14px;
  text-align: center;
  font-weight: 600;
  color: #f1ece0;
  background: linear-gradient(0deg, rgba(7, 9, 18, .85), rgba(7, 9, 18, 0));
  pointer-events: none;
}
.carrousel-miniatures {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.carrousel-miniature {
  padding: 0;
  border: 2px solid #070912;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.carrousel-miniature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.carrousel-miniature:hover { opacity: .85; }
.carrousel-miniature[aria-current="true"] { opacity: 1; border-color: var(--or); transform: translateY(-3px); }

/* ---------- Classes : un écran de choix comme dans le jeu ---------- */
.choix {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  align-items: start;
}
.choix-onglets { display: flex; flex-direction: column; gap: 10px; }
.choix-onglet {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  background: rgba(15, 20, 38, .88);
  border: 2px solid #070912;
  border-radius: 10px;
  color: var(--texte);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .15s, background .15s, border-color .15s;
}
.choix-onglet img {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: var(--nuit);
  filter: grayscale(.7) brightness(.8);
  transition: filter .2s;
}
.choix-onglet-nom { font-family: var(--titre); font-weight: 800; font-size: 19px; line-height: 1.1; }
.choix-onglet-role { font-size: 13px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .08em; }
.choix-onglet:hover { transform: translateX(4px); background: rgba(29, 38, 68, .95); }
.choix-onglet:hover img { filter: none; }
.choix-onglet[aria-selected="true"] {
  transform: translateX(10px);
  background: var(--nuit-3);
  border-color: var(--or);
}
.choix-onglet[aria-selected="true"] img { filter: none; }
.choix-onglet[aria-selected="true"] .choix-onglet-nom { color: var(--or-clair); }

.choix-fiche {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: rgba(15, 20, 38, .94);
  border: 2px solid #070912;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  transition: opacity .3s, transform .3s, visibility .3s;
}
/* Les trois fiches sont empilées dans la même case : la section garde
   la hauteur de la plus grande, la page ne saute pas quand on change. */
.choix-onglets { grid-column: 1; grid-row: 1; }
.choix-fiche { grid-column: 2; grid-row: 1; align-self: stretch; }
.choix-fiche[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.choix-scene { position: relative; min-height: 320px; }
.choix-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.choix-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 20, 38, 0) 55%, rgba(15, 20, 38, .94) 100%);
}
.choix-duo { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: flex; gap: 8px; }
.choix-duo img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: rgba(15, 20, 38, .85);
  border: 2px solid #070912;
}
.choix-texte { padding: 28px 30px 30px; }
.choix-role { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--texte-doux); }
.choix-texte h3 { font-size: 34px; color: var(--or); margin: 2px 0 10px; }
.choix-texte > p:not(.choix-role) { color: #d6d8e4; margin: 0 0 18px; font-size: 16px; }
.choix-jauges { margin: 0 0 20px; display: grid; gap: 7px; }
.choix-jauges div { display: grid; grid-template-columns: 76px 1fr; align-items: center; }
.choix-jauges dt { font-size: 14px; font-weight: 700; color: var(--texte-doux); }
.choix-jauges dd { margin: 0; display: flex; gap: 4px; }
.choix-jauges span {
  width: 26px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid #070912;
}
.choix-jauges span.plein { background: var(--or); }
.choix-sp {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(226, 176, 74, .08);
  border: 1px solid rgba(226, 176, 74, .25);
}
.choix-sp i { font-size: 26px; color: var(--or); }
.choix-sp small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--texte-doux); }
.choix-sp strong { display: block; color: var(--or-clair); font-size: 17px; }
.choix-sp span { display: block; font-size: 15px; color: #d6d8e4; }

/* ---------- Rejoindre ---------- */
.rejoindre { text-align: center; }
.rejoindre p { max-width: 640px; margin: 0 auto 28px; color: var(--texte-doux); }

/* ---------- Pied ---------- */
.pied {
  padding: 40px 20px 50px;
  text-align: center;
  color: var(--texte-doux);
  font-size: 14px;
}
.pied img { width: 40px; height: auto; margin: 0 auto 10px; image-rendering: pixelated; opacity: .8; }
.pied p { margin: 4px 0; }
.pied a { color: var(--texte); }

/* ---------- Visionneuse ---------- */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(5, 7, 15, .92);
}
.visionneuse[hidden] { display: none; }
.visionneuse figure { margin: 0; max-width: 1400px; }
.visionneuse img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.visionneuse figcaption { text-align: center; margin-top: 12px; color: var(--texte); }
.visionneuse button {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 28px;
  cursor: pointer;
  flex: none;
}
.visionneuse button:hover { background: rgba(226, 176, 74, .3); }
.visionneuse-fermer { position: absolute; top: 18px; right: 18px; }

/* ---------- Mentions ---------- */
.page-texte { max-width: 760px; margin: 0 auto; padding: 120px 20px 70px; }
.page-texte h1 { color: var(--or); font-size: 36px; }
.page-texte h2 { text-align: left; font-size: 22px; margin-top: 34px; }
.page-texte h2::after { display: none; }

/* ---------- Petits écrans ---------- */
@media (max-width: 760px) {
  /* Téléphone : l'image en bandeau, le texte dessous. */
  .accueil { display: block; min-height: 0; padding: 0 0 70px; text-align: center; }
  .accueil picture { position: relative; display: block; height: 52vh; }
  .accueil::before { top: 0; bottom: auto; height: 52vh; background: linear-gradient(0deg, var(--nuit) 0%, rgba(15, 20, 38, 0) 40%); }
  .accueil-fond { object-position: 50% 30%; }
  .accueil-contenu { margin: -70px auto 0; padding: 0 20px; }
  .accueil-boutons { justify-content: center; }
  .accueil-titre { width: 344px; margin: 0 auto; }
  .barre { padding: 10px 16px; gap: 12px; }
  .barre-liens { display: none; }
  .barre .bouton-petit { margin-left: auto; }
  .bloc { padding: 64px 16px; }
  .visionneuse-precedent, .visionneuse-suivant { display: none; }
  .recit-chapitre::before { left: 41px; }
  .recit-chapitre:first-child::before { top: 43px; }
  .recit-chapitre:last-child::before { bottom: auto; height: 60px; }
  .recit-chapitre { grid-template-columns: 86px 1fr; gap: 14px; align-items: start; }
  .recit-visuel { width: 86px; height: 86px; }
  .recit-visuel img { width: 78px; height: 78px; }
  .recit-visuel img[width="64"] { width: 56px; height: 56px; }
  .recit-duo img { width: 62px; height: 62px; }
  .recit-texte { padding: 16px 18px; }
  .atout, .atout:nth-child(even) { grid-template-columns: 1fr; }
  .atout:nth-child(even) .atout-visuel { order: 0; }
  .atout-visuel { height: 170px; }
  .atout-texte { padding: 20px; }
  .carrousel-fleche { width: 38px; height: 38px; font-size: 22px; }
  .carrousel-precedent { left: 8px; }
  .carrousel-suivant { right: 8px; }
  .carrousel-legende { font-size: 14px; padding: 30px 12px 10px; }
  .carrousel-miniatures { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .choix { grid-template-columns: 1fr; }
  .choix-onglets { grid-column: 1; grid-row: 1; }
  .choix-fiche { grid-column: 1; grid-row: 2; }
  .choix-onglets { flex-direction: row; gap: 8px; }
  .choix-onglet { flex: 1; grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 4px; }
  .choix-onglet img { grid-row: auto; width: 52px; height: 52px; }
  .choix-onglet-role { display: none; }
  .choix-onglet:hover, .choix-onglet[aria-selected="true"] { transform: translateY(-3px); }
  .choix-fiche { grid-template-columns: 1fr; }
  .choix-scene { min-height: 200px; }
  .choix-duo { left: 10px; bottom: 10px; gap: 6px; }
  .choix-duo img { width: 44px; height: 44px; }
  .choix-scene::after { background: linear-gradient(0deg, rgba(15, 20, 38, .94) 0%, rgba(15, 20, 38, 0) 45%); }
  .choix-texte { padding: 20px; }
}

/* ---------- Parchemin ----------
   Les panneaux reprennent la fenêtre parchemin du jeu (assets/ui/cadres/parchemin),
   découpée en 9 morceaux et agrandie deux fois sans flou. Le texte passe à l'encre. */
:root {
  --encre: #3a2814;
  --encre-douce: #6a5236;
  --encre-titre: #7a3410;
  --papier: #d8c39b;
}
.recit-texte, .atout, .choix-fiche {
  background: none;
  border: 44px solid transparent;
  border-image: url('/assets/img/parchemin.png') 22 fill / 44px stretch;
  border-radius: 0;
  image-rendering: pixelated;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
  color: var(--encre);
}
.choix-onglet {
  background: none;
  border: 24px solid transparent;
  border-image: url('/assets/img/parchemin_case.png') 12 fill / 24px stretch;
  border-radius: 0;
  image-rendering: pixelated;
  box-shadow: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4));
  padding: 0;
  color: var(--encre);
}
.choix-onglet:hover { background: none; }
.choix-onglet[aria-selected="true"] { background: none; filter: drop-shadow(0 0 0 var(--or)) drop-shadow(0 0 6px rgba(246, 217, 138, .9)) drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); }
.choix-onglet img { background: var(--papier); filter: none; border: 2px solid #46301a; border-radius: 6px; }
.choix-onglet:not([aria-selected="true"]) img { filter: sepia(.6) brightness(.85); }
.choix-onglet-nom, .choix-onglet[aria-selected="true"] .choix-onglet-nom { color: var(--encre-titre); }
.choix-onglet-role { color: var(--encre-douce); }

.recit-texte { padding: 0 6px; }
.recit-numero, .choix-role, .atout-numero { color: var(--encre-douce); }
.recit-texte h3, .atout h3, .choix-texte h3 { color: var(--encre-titre); }
.recit-texte p:last-child, .atout-texte p:last-child, .choix-texte > p:not(.choix-role) { color: var(--encre); }
.recit-texte strong { color: var(--encre-titre); }
.recit-visuel { background: var(--papier); border-color: #46301a; box-shadow: 0 0 0 3px #8a5a24, 0 10px 26px rgba(0, 0, 0, .5); }

.atout { overflow: visible; }
.atout-visuel { background: none; height: 170px; }
.atout-texte { padding: 0 6px 0 24px; }
.atout:nth-child(even) .atout-texte { padding: 0 24px 0 6px; }
.atout-capture img { border: 3px solid #46301a; }
.atout-portraits img { background: var(--papier); border-color: #46301a; }
.atout-elements i { color: var(--encre-douce); }

.choix-fiche { overflow: visible; }
.choix-scene { min-height: 300px; }
.choix-scene > img { border: 3px solid #46301a; }
.choix-scene::after { display: none; }
.choix-duo img { background: var(--papier); border-color: #46301a; }
.choix-texte { padding: 0 4px 0 26px; }
.choix-jauges dt { color: var(--encre-douce); }
.choix-jauges span { background: rgba(70, 48, 26, .15); border-color: #46301a; }
.choix-jauges span.plein { background: #c0791c; }
.choix-sp { background: rgba(70, 48, 26, .1); border-color: rgba(70, 48, 26, .45); }
.choix-sp i { color: #a85d12; }
.choix-sp small { color: var(--encre-douce); }
.choix-sp strong { color: var(--encre-titre); }
.choix-sp span { color: var(--encre); }

.choix { grid-template-columns: 260px 1fr; }
.choix-onglet-role { white-space: nowrap; letter-spacing: .05em; }

@media (max-width: 760px) {
  .choix { grid-template-columns: 1fr; }
  .recit-texte, .atout, .choix-fiche { border-width: 22px; border-image-width: 22px; }
  .choix-onglet { border-width: 14px; border-image-width: 14px; }
  .atout-texte, .atout:nth-child(even) .atout-texte { padding: 14px 4px 4px; }
  .choix-texte { padding: 16px 4px 4px; }
  .choix-scene { min-height: 180px; }
}

/* Les portraits sont du pixel art en 128 : affichés à leur taille, un pixel
   n'est jamais sauté. Réduits, ils sortaient hachés. */
@media (min-width: 761px) {
  .choix { grid-template-columns: 360px 1fr; }
  .choix-onglet { grid-template-columns: 128px 1fr; }
  .choix-onglet img { width: 128px; height: 128px; }
  .choix-onglet-nom { align-self: end; }
  .choix-onglet-role { align-self: start; margin-top: 4px; }
  .choix-duo img { width: 128px; height: 128px; }
  .recit-chapitre { grid-template-columns: 134px 1fr; }
  .recit-chapitre::before { left: 65px; }
  .recit-visuel { width: 134px; height: 134px; }
  .recit-visuel:not(.recit-duo) img:not([width="64"]) { width: 128px; height: 128px; }
  .atout-portraits img { width: 128px; height: 128px; }
}
