/*
 * Site vitrine de Hard Shutdown. Écrit à la main, sans compilation.
 *
 * Tout reprend l'interface du jeu (apps/jeu/core/.../render/Ui.kt) : la tôle des panneaux (arête claire en haut,
 * sombre en bas, coins coupés, grain d'usure, rivets), le bouton principal peint en ambre, la voix ambre de la
 * Régie, la bande de danger du logo, la police pixel du jeu (hs-pixel.woff2, écrite par build_font.py). Pas de
 * néon : seules les vraies sources (voyants, écrans, métal chauffé) brillent. La direction artistique est dans
 * CLAUDE.md, à la racine du dépôt.
 *
 * La police pixel ne s'emploie qu'à des corps multiples de 10 px (un pixel du jeu = un dixième de corps), avec un
 * interligne dont l'écart au corps est pair : les pixels tombent alors sur ceux de l'écran.
 */

@font-face {
  font-family: "HS Pixel";
  src: url("../fonts/hs-pixel.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* Couleurs de l'interface du jeu (Ui.kt) */
  --bg: #0d0e10;
  --panel: #121315;
  --well: #0a0b0e;
  --steel: #1b1f24;
  --steel-lit: #494c50;
  --steel-shade: #0b0c0f;
  --key: #2b3037;
  --key-lit: #55595f;
  --paint: #c98a3c;
  --paint-lit: #d4a163;
  --paint-shade: #503718;
  --ink: #1a1206;
  --oxide: #803727;
  --text: #ebe5d6;
  --body: #c8c3b7;
  --dim: #999e9b;
  --faint: #5f6362;
  --amber: #eb9e4d;
  --yellow: #edc461;
  --red: #e3594d;
  --cyan: #a3c9d6;
  --violet: #b39cde;
  --rarity-0: #cfcfc4;
  --rarity-1: #6a9edc;
  --rarity-2: #ffd23e;
  --rarity-3: #ea8040;

  --pixel: "HS Pixel", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --cut: 6px;
  --step: 3px;
  --bevel: 3px;
  --grain: url("../img/ui/grain.png");
  --stripe: url("../img/ui/stripe.png");
  /* Coins coupés en deux marches, comme les plaques du jeu */
  --corners: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0,
    calc(100% - var(--cut)) var(--step), calc(100% - var(--step)) var(--step),
    calc(100% - var(--step)) var(--cut), 100% var(--cut),
    100% calc(100% - var(--cut)), calc(100% - var(--step)) calc(100% - var(--cut)),
    calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--cut)) calc(100% - var(--step)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%,
    var(--cut) calc(100% - var(--step)), var(--step) calc(100% - var(--step)),
    var(--step) calc(100% - var(--cut)), 0 calc(100% - var(--cut)),
    0 var(--cut), var(--step) var(--cut),
    var(--step) var(--step), var(--cut) var(--step)
  );
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg) var(--grain) 0 0 / 128px 128px;
  image-rendering: auto;
  color: var(--body);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }

p { margin: 0 0 1em; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--text); }

ul, ol { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paint);
  color: var(--ink);
  font: 20px/30px var(--pixel);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Un dessin du jeu, agrandi d'un facteur entier sans lissage */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------------------------------------------------------------- Texte */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--dim);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
}
.eyebrow--amber { color: var(--amber); }

.title {
  font: 30px/40px var(--pixel);
  text-transform: uppercase;
  text-shadow: .1em .1em 0 rgba(5, 5, 15, .8);
  text-wrap: pretty;
  margin-bottom: 24px;
}
.title--small { font-size: 30px; line-height: 40px; }

.lead { font-size: 1.1875rem; color: var(--body); max-width: 62ch; }

.fine { font-size: .875rem; color: var(--dim); margin: 0; }

/* La voix de la Régie : ambre, police du jeu, une barre à gauche, sur une bande sombre */
.regie {
  position: relative;
  margin: 0;
  padding: 10px 14px 10px 20px;
  background: rgba(8, 8, 10, .72);
  color: var(--amber);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  text-shadow: .1em .1em 0 rgba(5, 5, 15, .8);
}
.regie::before {
  content: "";
  position: absolute;
  left: 6px; top: 10px; bottom: 10px;
  width: 4px;
  background: var(--amber);
}
.regie--big { font-size: 30px; line-height: 40px; padding: 14px 20px 14px 28px; }
.regie--big::before { left: 8px; width: 6px; top: 14px; bottom: 14px; }

/* Voyant : une vraie source de lumière, la seule chose qui brille */
.led {
  flex: none;
  width: 10px; height: 10px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(235, 158, 77, .8);
  animation: led 1.6s steps(2, jump-none) infinite;
}
.led--red { background: var(--red); box-shadow: 0 0 10px rgba(227, 89, 77, .8); }
@keyframes led { 50% { opacity: .35; box-shadow: none; } }

/* Bande de danger : rayures en biais à la peinture passée, un point du jeu = trois pixels */
.hazard {
  height: 18px;
  background: var(--stripe) 0 0 / 30px 18px repeat-x;
  image-rendering: pixelated;
}

/* ---------------------------------------------------------------- Tôle et boutons */

/* Une plaque : le fond, le grain, les biseaux et les coins coupés sont sur ::before, que clip-path découpe ; le
   contenu et le contour de focus restent entiers. */
.plate {
  position: relative;
  isolation: isolate;
  --plate: var(--steel);
  --plate-lit: var(--steel-lit);
  --plate-shade: var(--steel-shade);
  padding: 28px;
}
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--corners);
  background: var(--grain) 0 0 / 128px 128px, var(--plate);
  image-rendering: pixelated;
  box-shadow:
    inset 0 var(--bevel) 0 var(--plate-lit),
    inset 0 calc(-1 * var(--bevel)) 0 var(--plate-shade),
    inset var(--bevel) 0 0 color-mix(in srgb, var(--plate-lit) 60%, transparent),
    inset calc(-1 * var(--bevel)) 0 0 var(--plate-shade);
}
/* Rivets : deux pixels, le dessus pris par la lumière */
.plate--rivets::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  pointer-events: none;
  --rivet: linear-gradient(var(--plate-lit) 0 50%, var(--plate-shade) 50% 100%);
  background:
    var(--rivet) left top / 6px 6px no-repeat,
    var(--rivet) right top / 6px 6px no-repeat,
    var(--rivet) left bottom / 6px 6px no-repeat,
    var(--rivet) right bottom / 6px 6px no-repeat;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 13px 24px 13px;
  border: 0;
  color: var(--text);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: .1em .1em 0 rgba(5, 5, 15, .6);
  cursor: pointer;
  --btn: var(--key);
  --btn-lit: var(--key-lit);
  --btn-shade: var(--steel-shade);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--corners);
  background: var(--grain) 0 0 / 128px 128px, var(--btn);
  image-rendering: pixelated;
  box-shadow:
    inset 0 var(--bevel) 0 var(--btn-lit),
    inset 0 calc(-2 * var(--bevel)) 0 var(--btn-shade),
    inset var(--bevel) 0 0 color-mix(in srgb, var(--btn-lit) 60%, transparent),
    inset calc(-1 * var(--bevel)) 0 0 var(--btn-shade);
}
.btn:hover { color: #fff; --btn: #343a42; }
/* Enfoncée sous le doigt : la plaque descend et la lumière passe en bas */
.btn:active { transform: translateY(3px); }
.btn:active::before {
  box-shadow:
    inset 0 var(--bevel) 0 var(--btn-shade),
    inset 0 calc(-1 * var(--bevel)) 0 var(--btn-lit);
}
/* Le bouton principal : peinture ambre, texte sombre, une action par écran */
.btn--main {
  color: var(--ink);
  text-shadow: none;
  --btn: var(--paint);
  --btn-lit: var(--paint-lit);
  --btn-shade: var(--paint-shade);
}
.btn--main:hover { color: var(--ink); --btn: #d6974a; }

/* Google Play : la plaque « bientôt », ou le bouton une fois la fiche publiée (_play.php) */
.play { gap: 14px; }
/* Au téléphone, « Disponible sur Google Play » ne tient pas sur une ligne : deux lignes égales plutôt qu'un mot seul */
.play span { text-wrap: balance; }
.play__icon { width: 14px; height: 16px; flex: none; }
.play--soon {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin: 0;
  padding: 13px 24px;
  color: var(--text);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  --plate: var(--well);
}
.play--soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--corners);
  background: var(--well);
  box-shadow: inset 0 3px 0 var(--steel-shade), inset 0 -3px 0 var(--key), inset 0 0 0 1px var(--key);
}
.play--soon .play__icon { color: var(--amber); filter: drop-shadow(0 0 6px rgba(235, 158, 77, .7)); }

/* ---------------------------------------------------------------- En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 16, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid #000;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 6px;
  background: var(--stripe) 0 0 / 10px 6px repeat-x;
  image-rendering: pixelated;
  opacity: .85;
  pointer-events: none;
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: #fff; }
/* Le monogramme seul, à toutes les largeurs (le nom à côté retiré par l'auteur le 27/11/2026) ; le lien garde son
   nom pour les lecteurs d'écran (aria-label). */
.brand__mark { width: 40px; height: 29px; }

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  cursor: pointer;
}
.site-nav__burger,
.site-nav__burger::before,
.site-nav__burger::after {
  display: block;
  width: 18px; height: 3px;
  background: currentColor;
}
.site-nav__burger { position: relative; }
.site-nav__burger::before, .site-nav__burger::after { content: ""; position: absolute; left: 0; }
.site-nav__burger::before { top: -6px; }
.site-nav__burger::after { top: 6px; }
.site-nav__list { display: flex; gap: 6px; }
.site-nav__list a {
  display: block;
  padding: 7px 10px;
  color: var(--dim);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--text); background: var(--steel); }
.site-nav__list a[aria-current] { color: var(--amber); }
/* Entre 1000 et 1200 px, les libellés espagnols, plus longs, tiennent sur la barre en serrant les liens */
@media (min-width: 1000px) and (max-width: 1199px) {
  .site-nav__list { gap: 0; }
  .site-nav__list a { padding-inline: 8px; }
}

/* Le drapeau d'une langue (SiteView::flag) : 16 x 8 points, deux pixels par point, cerclé de noir comme les plaques */
.flag { display: block; flex: none; width: 32px; height: 16px; box-shadow: 0 0 0 2px #000; }

/* Le choix de la langue : drapeau et code de la langue de la page, qui déroulent les trois langues (<details>) */
.lang-switch__picker { position: relative; }
.lang-switch__current {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 12px;
  color: var(--text);
  font: 20px/30px var(--pixel);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lang-switch__current::-webkit-details-marker { display: none; }
.lang-switch__current:hover, .lang-switch__picker[open] > .lang-switch__current { background: var(--steel); }
.lang-switch__caret { flex: none; color: var(--dim); }
.lang-switch__current:hover .lang-switch__caret { color: var(--text); }
.lang-switch__picker[open] .lang-switch__caret { color: var(--amber); transform: rotate(180deg); }
/* La liste tombe sous la bande de danger de l'en-tête, sur une plaque de tôle comme le panneau du téléphone */
.lang-switch__list {
  position: absolute;
  top: calc(100% + 21px);
  right: 0;
  min-width: 236px;
  padding: 9px 6px;
  background: var(--grain) 0 0 / 128px 128px, var(--panel);
  image-rendering: pixelated;
  border: 3px solid #000;
  box-shadow: inset 0 3px 0 var(--steel-lit), inset 0 -3px 0 var(--steel-shade), 0 24px 48px rgba(0, 0, 0, .6);
}
.lang-switch__list li + li { border-top: 2px solid var(--steel); }
.lang-switch__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  color: var(--dim);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  text-decoration: none;
}
.lang-switch__code { min-width: 2.2em; color: var(--faint); }
.lang-switch__list a:hover { color: var(--text); background: var(--steel); }
.lang-switch__list a[aria-current], .lang-switch__list a[aria-current] .lang-switch__code { color: var(--amber); }

/* Le panneau ne sert que sous 1000 px : au-dessus, les liens restent dans la barre */
.site-nav__panel { display: flex; }
.site-nav__head, .site-nav__foot, .site-nav__backdrop { display: none; }

/* Sous 1000 px : un panneau latéral, ouvert par le bouton « Menu » (site.js pose data-open sur la navigation) */
@media (max-width: 999px) {
  /* backdrop-filter ferait de l'en-tête le repère du panneau fixe, qui n'aurait plus la hauteur de l'écran */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 14, 16, .97); }
  .site-header__bar { gap: 8px; }
  .lang-switch { display: none; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav[data-open] .site-nav__toggle { color: var(--amber); }

  .site-nav__panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 2;
    flex-direction: column;
    width: min(86vw, 360px);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--grain) 0 0 / 128px 128px, var(--panel);
    image-rendering: pixelated;
    border-left: 3px solid #000;
    box-shadow: inset 3px 0 0 var(--steel-lit), -30px 0 60px rgba(0, 0, 0, .6);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .22s ease-out, visibility 0s linear .22s;
  }
  .site-nav[data-open] .site-nav__panel { transform: none; visibility: visible; transition: transform .22s ease-out, visibility 0s; }

  .site-nav__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    min-height: 68px;
    padding: 0 12px 0 24px;
    border-bottom: 3px solid #000;
  }
  .site-nav__head::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -9px;
    height: 6px;
    background: var(--stripe) 0 0 / 10px 6px repeat-x;
    image-rendering: pixelated;
  }
  .site-nav__title { display: flex; align-items: center; gap: 12px; color: var(--amber); font: 20px/30px var(--pixel); text-transform: uppercase; }
  .site-nav__close {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .site-nav__close::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    clip-path: var(--corners);
    background: var(--key);
    box-shadow: inset 0 3px 0 var(--key-lit), inset 0 -4px 0 var(--steel-shade);
  }
  .site-nav__close:hover { color: var(--amber); }

  /* Les liens, numérotés comme les lignes d'un menu du jeu */
  .site-nav__list { flex-direction: column; gap: 0; padding: 24px 12px 18px; counter-reset: menu; }
  .site-nav__list li + li { border-top: 2px solid var(--steel); }
  .site-nav__list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 12px;
    color: var(--text);
    font: 30px/40px var(--pixel);
  }
  .site-nav__list a::before {
    counter-increment: menu;
    content: counter(menu, decimal-leading-zero);
    min-width: 2.2em;
    color: var(--faint);
    font-size: 20px;
    line-height: 30px;
  }
  .site-nav__list a:hover, .site-nav__list a[aria-current] { color: #fff; background: var(--steel); box-shadow: inset 4px 0 0 var(--amber); }
  .site-nav__list a[aria-current]::before { color: var(--amber); }

  .site-nav__foot { display: block; margin-top: auto; padding: 20px 24px 0; border-top: 2px solid var(--steel); }
  .site-nav__label { margin: 0 0 8px; color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
  .site-nav__langs { display: grid; gap: 2px; margin-bottom: 22px; }
  .site-nav__langs a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
    color: var(--dim);
    font: 20px/30px var(--pixel);
    text-transform: uppercase;
    text-decoration: none;
  }
  .site-nav__langs a:hover { color: var(--text); }
  .site-nav__langs a[aria-current] { color: var(--amber); }

  .site-nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(5, 5, 7, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility 0s linear .22s;
  }
  .site-nav[data-open] .site-nav__backdrop { opacity: 1; visibility: visible; transition: opacity .22s; }
  /* La page ne défile plus sous le panneau ouvert */
  html.menu-open { overflow: hidden; }
}
/* ---------------------------------------------------------------- Haut de page */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(94svh, 900px);
  padding: 120px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero__scene { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 45%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 14, 16, .96) 0%, rgba(13, 14, 16, .88) 28%, rgba(13, 14, 16, .35) 56%, rgba(13, 14, 16, 0) 74%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 16, 0) 28%),
    linear-gradient(180deg, rgba(13, 14, 16, .7) 0%, rgba(13, 14, 16, 0) 18%);
}
.hero__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.hero__inner > * { max-width: 620px; }
.hero__inner > .facts, .hero__inner > .hero__actions { max-width: 760px; }
.hero__title { margin: 0 0 22px; }

.wordmark {
  --s: 2;
  position: relative;
  display: block;
  width: calc(168px * var(--s));
  height: calc(84px * var(--s));
  margin-left: calc(-8px * var(--s));
}
.wordmark img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Sous 360 px, le nom agrandi deux fois (son dessin fait 318 px) déborde de l'écran : agrandi une fois et demie, seule
   exception au facteur entier, il reste net sur les écrans de densité 2 de cette taille (iPhone SE de 320 px) */
@media (max-width: 359px) {
  .wordmark { --s: 1.5; }
}
/* Le métal chauffé de l'entaille bat, comme sur l'écran titre */
.wordmark__heat { animation: heat 2.6s ease-in-out infinite; }
@keyframes heat { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.hero__subtitle {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  text-shadow: .1em .1em 0 rgba(5, 5, 15, .8);
}
.hero__tagline {
  color: var(--text);
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.hero__lead { font-size: 1.125rem; color: var(--body); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.facts li {
  padding: 5px 12px;
  background: rgba(10, 11, 14, .78);
  border: 2px solid var(--key);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05);
  color: var(--text);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
}

/* Le tampon « H.S. » des registres de la colonie */
.stamp {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: 96px;
  display: none;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 10px 18px 12px;
  border: 6px solid rgba(201, 72, 58, .78);
  color: rgba(201, 72, 58, .85);
  transform: rotate(-8deg);
  pointer-events: none;
}
.stamp__big { font: 60px/60px var(--pixel); }
.stamp__small { font: 20px/30px var(--pixel); text-transform: uppercase; }

@media (min-width: 640px) {
  .title { font-size: 40px; line-height: 52px; }
}
/* Le nom agrandi trois fois, seulement si l'écran est assez haut pour garder tout le haut de page */
@media (min-width: 640px) and (min-height: 860px) {
  .wordmark { --s: 3; }
}
@media (min-width: 1100px) {
  .stamp { display: flex; }
}
@media (max-width: 799px) {
  .hero { min-height: 0; padding-top: 0; align-items: start; }
  .hero__scene { position: relative; inset: auto; aspect-ratio: 16 / 11; margin-bottom: -96px; }
  .hero__img { object-position: 64% 50%; }
  .hero::before {
    background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - min(69vw, 560px) + 96px), rgba(13, 14, 16, 0) calc(100% - min(69vw, 560px) + 230px));
  }
}

/* ---------------------------------------------------------------- Sections */

.section { position: relative; padding-block: var(--section); }
.section__head { max-width: 760px; margin-bottom: 48px; }

/* L'histoire : la Fonderie en fond, très assombrie */
.story { overflow: hidden; isolation: isolate; }
.story__scene { position: absolute; inset: 0; z-index: -2; }
.story__img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 14, 16, .55) 30%, rgba(13, 14, 16, .55) 70%, var(--bg) 100%);
}
.story__grid { display: grid; gap: 48px; align-items: center; }
.story__question {
  margin: 30px 0 0;
  color: var(--text);
  font: 30px/40px var(--pixel);
  text-transform: uppercase;
  text-shadow: .1em .1em 0 rgba(5, 5, 15, .8);
}
.console { padding: 22px; --plate: #15181c; }
.console__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 4px 16px;
  color: var(--dim);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
}
.console__log {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-height: 300px;
  background: var(--well);
  box-shadow: inset 0 3px 0 #000, inset 0 -2px 0 var(--key);
}
.console__log .regie { background: transparent; padding-block: 4px; }
.console__log .regie::before { top: 4px; bottom: 4px; }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* La bande-annonce (_trailer.php, accueil et kit presse) : un moniteur de la Régie, l'affiche de la langue et un
   bouton de lecture ambre au centre, à droite du libellé de l'affiche ; le lecteur de YouTube ne prend la place de
   l'affiche qu'au clic (site.js) */
.trailer__grid { display: grid; gap: 40px; align-items: center; }
.trailer__head .lead { margin-bottom: 0; }
.hero__trailer-icon { width: 14px; height: 16px; flex: none; }
.monitor { padding: 22px; --plate: #15181c; }
.monitor__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--key);
}
.monitor__play { position: absolute; inset: 0; display: grid; place-items: center; }
.monitor__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.monitor__play:hover .monitor__poster { transform: scale(1.02); }
.monitor__play:focus-visible { outline-offset: -6px; }
.monitor__button {
  width: 88px;
  min-height: 0;
  height: 88px;
  padding: 0 0 0 6px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .75));
}
.monitor__play:hover .monitor__button { --btn: #d6974a; }
.monitor__play:active .monitor__button { transform: translateY(3px); }
.monitor__icon { width: 28px; height: 32px; }
.monitor__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.press-trailer__links { display: grid; gap: 6px; margin-top: 24px; }
/* Au téléphone, le bouton du haut de page ferait une quatrième rangée de boutons, pour une section qui suit juste après */
@media (max-width: 599px) {
  .hero__trailer { display: none; }
  .monitor { padding: 18px 16px 20px; }
  .monitor__button { width: 64px; height: 64px; padding-left: 4px; }
  .monitor__icon { width: 21px; height: 24px; }
}
@media (min-width: 1000px) {
  .trailer__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
}

/* Le combat : le téléphone tenu en paysage */
.combat__grid { display: grid; gap: 48px; align-items: center; }
.moves { display: grid; gap: 18px; margin-top: 30px; }
.move { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; align-items: start; }
.move__key {
  position: relative;
  isolation: isolate;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  color: var(--ink);
  font: 30px/40px var(--pixel);
}
.move__key::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--corners);
  background: var(--paint);
  box-shadow: inset 0 3px 0 var(--paint-lit), inset 0 -4px 0 var(--paint-shade);
}
.move__title { color: var(--text); font: 20px/30px var(--pixel); text-transform: uppercase; }
.move__text { color: var(--body); }

.phone {
  padding: 12px 16px;
  background: #07080a;
  border-radius: 30px;
  box-shadow: 0 0 0 2px #23272d, inset 0 0 0 2px #000, 0 40px 80px -20px rgba(0, 0, 0, .8);
}
.phone__screen { overflow: hidden; border-radius: 16px; background: #000; }
.phone__screen img { width: 100%; }
@media (min-width: 1000px) {
  .combat__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; }
}

/* Les armes : une plaque par famille, le héros armé au pixel */
.families { display: grid; gap: 22px; }
.family { container-type: inline-size; padding: 26px 24px 22px; }
.family__head { display: grid; gap: 2px; margin-bottom: 18px; }
.family__name { font: 30px/40px var(--pixel); text-transform: uppercase; text-shadow: .1em .1em 0 rgba(5, 5, 15, .8); }
.family__skill { margin: 0; color: var(--text); font: 20px/30px var(--pixel); text-transform: uppercase; }
.family__skill span { color: var(--dim); }
.family--melee { --family: var(--cyan); }
.family--ranged { --family: var(--amber); }
.family--magic { --family: var(--violet); }
.family__name { color: var(--family); }
.family__weapons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.weapon { display: grid; gap: 8px; justify-items: center; text-align: center; }
.weapon__stage {
  display: grid;
  place-items: end center;
  width: 100%;
  height: 128px;
  padding-bottom: 12px;
  background:
    radial-gradient(60% 18px at 50% calc(100% - 12px), rgba(0, 0, 0, .55), transparent 70%),
    linear-gradient(180deg, var(--well), #14171b);
  box-shadow: inset 0 3px 0 #000, inset 0 -2px 0 var(--key);
}
.weapon img { --ps: 2; width: calc(var(--pw) * var(--ps) * 1px); height: calc(var(--ph) * var(--ps) * 1px); max-width: none; }
.weapon__name { color: var(--text); font: 20px/30px var(--pixel); text-transform: uppercase; }
.family__text { margin: 0; color: var(--body); }
@container (min-width: 470px) {
  .weapon__stage { height: 170px; }
  .weapon img { --ps: 3; }
}
/* Dans une plaque étroite (les trois familles côte à côte sur ordinateur, le téléphone), trois noms côte à côte se
   serraient, voire débordaient (le plus long mot, « SCATTERGUN », « GRAVITIQUE » ou « DISPERSORA », fait 120 px) : les
   armes y défilent de côté, comme les boss sur téléphone (demandé par l'auteur le 27/11/2026). Le carrousel va
   jusqu'aux bords de la plaque ; chaque case fait la moitié de la plaque (100cqi : la largeur de son contenu), si bien
   que chaque arrêt montre deux armes entières, et que la suivante ne dépasse que de 14 px, dans la marge où elle
   s'efface. Une seule arme par vue quand deux noms ne tiennent plus côte à côte (écrans de 320 px). */
@container (max-width: 469px) {
  .family__weapons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -24px;
    padding: 0 24px;
    scroll-padding-inline: 24px;
    /* Pas de barre de défilement (demandé par l'auteur) : les carrés en dessous en tiennent lieu */
    scrollbar-width: none;
    user-select: none;
    /* Une arme coupée par le bord s'efface en trois paliers au lieu d'être tranchée net sur le biseau de la plaque.
       Les paliers tiennent dans la marge de 24 px : une arme calée n'est jamais touchée, seule celle qui dépasse. */
    --fade: linear-gradient(90deg,
      transparent 0 6px, rgb(0 0 0 / .3) 6px 12px, rgb(0 0 0 / .65) 12px 18px,
      #000 18px calc(100% - 18px),
      rgb(0 0 0 / .65) calc(100% - 18px) calc(100% - 12px), rgb(0 0 0 / .3) calc(100% - 12px) calc(100% - 6px), transparent calc(100% - 6px));
    -webkit-mask-image: var(--fade);
    mask-image: var(--fade);
  }
  .family__weapons::-webkit-scrollbar { display: none; }
  .weapon { flex: 0 0 calc((100cqi - 10px) / 2); scroll-snap-align: start; }
}
@container (max-width: 249px) {
  .weapon { flex-basis: 100cqi; }
}
/* Sous chaque carrousel (armes, boss), un carré par élément (site.js), allumé quand il est entier à l'écran ; un clic
   l'amène. Masqués tant que la liste n'est pas un carrousel, et sans JavaScript. Ceux des armes prennent la couleur
   de leur famille, ceux des boss l'ambre. */
.dots { display: none; justify-content: center; gap: 10px; }
.dots span { width: 8px; height: 8px; background: var(--key); cursor: pointer; }
.dots span[data-on] { background: var(--dot, var(--amber)); }
.family .dots { --dot: var(--family); margin: 0 0 18px; }
@container (max-width: 469px) {
  .family__weapons { margin-bottom: 14px; }
  .family .dots { display: flex; }
}
/* Glissés à la souris (site.js pose data-dragging) : le calage attend le relâchement, rien ne se sélectionne ni ne
   s'ouvre pendant le geste */
[data-dragging] { scroll-snap-type: none !important; cursor: grabbing; }
[data-dragging] * { pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  @container (max-width: 469px) { .family__weapons { cursor: grab; } }
  @media (max-width: 699px) { .boss-list { cursor: grab; } }
}
@media (min-width: 1000px) {
  .families { grid-template-columns: repeat(3, 1fr); }
}

/* Les actes et les boss */
.bosses { padding-bottom: calc(var(--section) - 40px); }
.act { margin-bottom: 72px; }
.act__banner { position: relative; isolation: isolate; padding: 110px 0 28px; margin-bottom: 30px; overflow: hidden; }
.act__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.act__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 16, .72) 45%, rgba(13, 14, 16, .35) 100%),
    linear-gradient(90deg, rgba(13, 14, 16, .88), rgba(13, 14, 16, .3) 55%, rgba(13, 14, 16, 0) 75%);
}
.act__head { display: flex; align-items: end; gap: 24px; }
.act__numeral {
  margin: 0;
  color: var(--amber);
  font: 100px/100px var(--pixel);
  text-shadow: .05em .05em 0 rgba(5, 5, 15, .8);
}
.act__title { font: 40px/52px var(--pixel); text-transform: uppercase; text-shadow: .1em .1em 0 rgba(5, 5, 15, .8); }
.act__label { display: block; color: var(--dim); font-size: 20px; line-height: 30px; }
.act__line { margin: 4px 0 0; color: var(--text); font-size: 1.125rem; }

/* La ligne des niveaux, comme l'écran de choix du jeu : cinq stations sur une voie */
.route { margin-top: 30px; }
.route__line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.route__line::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 13px;
  height: 6px;
  background: var(--stripe) 0 0 / 10px 6px repeat-x;
  image-rendering: pixelated;
  opacity: .9;
}
.route__stop a,
.route__stop-in {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 6px;
  color: var(--dim);
  text-align: center;
  text-decoration: none;
}
.route__n {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--steel);
  border: 3px solid var(--key-lit);
  box-shadow: inset 0 -3px 0 var(--steel-shade);
  color: var(--text);
  font: 20px/30px var(--pixel);
}
.route__name { font: 20px/30px var(--pixel); text-transform: uppercase; text-shadow: .1em .1em 0 rgba(5, 5, 15, .8); }
.route__stop a:hover { color: var(--text); }
.route__stop a:hover .route__n { border-color: var(--amber); }
.route__stop--boss .route__n { background: var(--oxide); border-color: var(--red); }

/* Un acte scellé (GameFacts::OPEN_ACTS) : les noms de ses niveaux caviardés, ses boss en dossiers classés */
.redact {
  display: block;
  width: 72%;
  height: 18px;
  margin-top: 6px;
  background: #050608;
  box-shadow: 0 3px 0 rgba(5, 6, 8, .5);
}
.route__stop:nth-child(2n) .redact { width: 56%; }
.route__stop:nth-child(3n) .redact { width: 84%; }

.sealed__board { position: relative; }
.sealed__files { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sealed__file {
  position: relative;
  isolation: isolate;
  padding: 6px;
}
.sealed__file::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--corners);
  background: var(--grain) 0 0 / 128px 128px, var(--steel);
  image-rendering: pixelated;
  box-shadow: inset 0 3px 0 var(--steel-lit), inset 0 -3px 0 var(--steel-shade);
}
.sealed__file--act::before {
  background: var(--grain) 0 0 / 128px 128px, #231d17;
  box-shadow: inset 0 0 0 3px var(--oxide), inset 0 6px 0 rgba(201, 72, 58, .35), inset 0 -6px 0 var(--steel-shade);
}
.sealed__file img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.sealed__n {
  position: absolute;
  left: 12px; top: 12px;
  padding: 0 8px;
  background: rgba(10, 11, 14, .85);
  color: var(--dim);
  font: 20px/30px var(--pixel);
}
/* Le tampon des registres de la Régie, comme le « H.S. » du haut de page */
.sealed__stamp {
  position: absolute;
  left: 50%; top: 50%;
  margin: 0;
  padding: 6px 22px 8px;
  border: 6px solid rgba(201, 72, 58, .78);
  background: rgba(13, 14, 16, .6);
  color: rgba(201, 72, 58, .9);
  font: 60px/60px var(--pixel);
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-6deg);
  pointer-events: none;
}
.sealed__text { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; color: var(--dim); }
.sealed__text .led { margin-top: .5lh; transform: translateY(-50%); }
@media (max-width: 699px) {
  .sealed__files { gap: 6px; }
  .sealed__file { padding: 3px; }
  .sealed__file img { aspect-ratio: 1; }
  .sealed__n { display: none; }
  .sealed__stamp { padding: 2px 12px 4px; border-width: 3px; font-size: 30px; line-height: 40px; }
}

.boss-list { display: grid; gap: 22px; }
.boss__card {
  position: relative;
  isolation: isolate;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}
.boss__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--corners);
  background: var(--grain) 0 0 / 128px 128px, var(--steel);
  image-rendering: pixelated;
  box-shadow: inset 0 3px 0 var(--steel-lit), inset 0 -3px 0 var(--steel-shade), inset 3px 0 0 rgba(73, 76, 80, .6), inset -3px 0 0 var(--steel-shade);
}
.boss__shot { position: relative; margin: 6px 6px 0; overflow: hidden; background: #000; }
.boss__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.boss__badge {
  position: absolute;
  left: 10px; top: 10px;
  padding: 3px 10px;
  background: var(--paint);
  box-shadow: inset 0 2px 0 var(--paint-lit), inset 0 -3px 0 var(--paint-shade);
  color: var(--ink);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
}
.boss__body { display: flex; flex-direction: column; padding: 18px 22px 22px; }
.boss__level { margin: 0 0 6px; color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
.boss__name { font: 30px/40px var(--pixel); text-transform: uppercase; text-shadow: .1em .1em 0 rgba(5, 5, 15, .8); }
.boss__nick { margin: 0 0 12px; color: var(--amber); font-style: italic; }
.boss__rule { flex: 1; margin-bottom: 18px; }
.boss__line { font-size: 20px; line-height: 30px; }
.boss--act .boss__card::before {
  background: var(--grain) 0 0 / 128px 128px, #231d17;
  box-shadow: inset 0 0 0 3px var(--paint), inset 0 6px 0 var(--paint-lit), inset 0 -6px 0 var(--paint-shade);
}

@media (max-width: 699px) {
  /* Les boss d'un acte défilent de côté, une carte entière à chaque arrêt (la suivante attend juste hors de l'écran),
     sans barre de défilement : les carrés en dessous en tiennent lieu (site.js ; demandé par l'auteur le 27/11/2026) */
  .boss-list {
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    user-select: none;
  }
  .boss-list::-webkit-scrollbar { display: none; }
  .boss { scroll-snap-align: start; }
  .boss-list + .dots { display: flex; margin-top: 18px; }
  .route { display: none; }
  .act__head { align-items: center; gap: 16px; }
  .act__numeral { font-size: 60px; line-height: 60px; }
  .act__title { font-size: 30px; line-height: 40px; }
  .act__banner { padding-top: 90px; }
}
/* Assez de place pour deux cartes entières par arrêt */
@media (min-width: 560px) and (max-width: 699px) {
  .boss-list { grid-auto-columns: calc((100% - var(--gutter)) / 2); }
}
@media (min-width: 700px) {
  .boss-list { grid-template-columns: repeat(2, 1fr); }
  .boss--act { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .boss-list { grid-template-columns: repeat(3, 1fr); }
  .boss--act { grid-column: span 2; }
  .boss--act .boss__card { grid-template-rows: none; grid-template-columns: 1.15fr 1fr; }
  .boss--act .boss__shot { margin: 6px 0 6px 6px; }
  .boss--act .boss__shot img { height: 100%; aspect-ratio: auto; }
  .act__head { gap: 32px; }
}

/* Chaque carte mène à la fiche du boss : le lien du nom couvre toute la carte */
.boss__link { color: inherit; text-decoration: none; }
.boss__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.boss__link:focus-visible { outline: none; }
.boss__card:has(.boss__link:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.boss__card:hover .boss__name { color: #fff; }
.boss__more { margin: 14px 0 0; color: var(--amber); font: 20px/30px var(--pixel); text-transform: uppercase; }
.boss__more::after { content: " »"; }
.boss__card:hover .boss__more { color: var(--yellow); }
.bosses__all { display: flex; justify-content: center; margin-top: -24px; }

/* Les modes */
.modes__grid { display: grid; gap: 22px; }
.mode { padding: 34px 32px 30px; }
.mode__name { font: 40px/52px var(--pixel); text-transform: uppercase; text-shadow: .1em .1em 0 rgba(5, 5, 15, .8); }
.mode__tag { margin: 0 0 20px; color: var(--amber); font: 20px/30px var(--pixel); text-transform: uppercase; }
.mode--expedition .mode__tag { color: var(--red); }
@media (min-width: 800px) { .modes__grid { grid-template-columns: 1fr 1fr; } }

/* Puces carrées, comme les voyants des menus */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .6em;
  width: 8px; height: 8px;
  background: var(--amber);
}

/* Le butin */
.loot__grid { display: grid; gap: 48px; align-items: center; }
.rarities { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 34px; }
.rarity {
  padding: 5px 12px 5px 16px;
  background: var(--well);
  border-left: 4px solid currentColor;
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
}
.rarity--0 { color: var(--rarity-0); }
.rarity--1 { color: var(--rarity-1); }
.rarity--2 { color: var(--rarity-2); }
.rarity--3 { color: var(--rarity-3); text-shadow: 0 0 10px rgba(234, 128, 64, .5); }
.loot__point { margin: 22px 0 6px; font: 20px/30px var(--pixel); text-transform: uppercase; }
.loot__shots { display: grid; gap: 22px; }
.shot { padding: 8px 8px 0; }
.shot img { width: 100%; }
.shot figcaption { padding: 10px 6px 12px; color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
@media (min-width: 1000px) { .loot__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

/* La galerie */
.gallery__grid { display: grid; gap: 22px; }
.gallery__item figure { height: 100%; }
.gallery__link { display: block; position: relative; overflow: hidden; background: #000; box-shadow: 0 0 0 3px var(--key), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.gallery__link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.gallery__link:hover img { transform: scale(1.03); }
.gallery__item figcaption { padding: 12px 2px 0; color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: 1 / -1; }
}

/* La visionneuse de la galerie (site.js) */
.viewer {
  width: min(1400px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.viewer::backdrop { background: rgba(5, 5, 7, .92); }
.viewer__img { width: 100%; height: auto; max-height: calc(94vh - 70px); object-fit: contain; background: #000; }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.viewer__caption { margin: 0 auto 0 0; color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
.viewer .btn { min-height: 46px; padding: 8px 16px; }

/* Réglages et accès anticipé */
.early__grid { display: grid; gap: 22px; }
.early__grid .plate { padding: 34px 32px 30px; }
.plate--warning { --plate: #201b16; }
.plate--warning::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 12px;
  height: 12px;
  background: var(--stripe) 0 0 / 20px 12px repeat-x;
  image-rendering: pixelated;
}
.early__access { padding-top: 46px !important; }
@media (min-width: 900px) { .early__grid { grid-template-columns: 1fr 1fr; } }

/* La FAQ */
.faq__wrap { max-width: 920px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--steel); border-top: 3px solid var(--steel-lit); border-bottom: 3px solid var(--steel-shade); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 18px 64px 18px 22px;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  translate: 0 -50%;
  color: var(--amber);
  font: 30px/40px var(--pixel);
}
.faq__item[open] summary::after { content: "-"; }
.faq__q { font: 20px/30px var(--pixel); text-transform: uppercase; }
.faq__item summary:hover .faq__q { color: #fff; }
.faq__a { margin: 0; padding: 0 22px 22px; max-width: 70ch; }

/* L'appel final */
.cta { padding-top: 0; text-align: center; background: linear-gradient(180deg, var(--bg), #17120e); }
.cta .hazard { margin-bottom: var(--section); }
.cta__inner { display: grid; justify-items: center; }
.cta .regie { margin-bottom: 30px; text-align: left; }
.cta .lead { margin-inline: auto; }
.cta__actions { margin: 10px 0 16px; }

/* ---------------------------------------------------------------- Pages intérieures : fil d'Ariane, en-tête */

.crumbs { margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; text-shadow: .1em .1em 0 rgba(5, 5, 15, .8); }
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 12px;
  background: var(--amber);
  vertical-align: 4px;
}
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

.page-head { padding: 48px 0 8px; }
.page-head__title { margin-bottom: 16px; }
.bosses--page { padding: 40px 0 8px; }

/* ---------------------------------------------------------------- Fiche d'un boss */

/* Le haut de page : son combat en fond, assombri à gauche, comme l'accueil */
.bhero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(80svh, 760px);
  padding: 110px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.bhero__scene { position: absolute; top: 0; right: 0; bottom: 0; left: 30%; z-index: -2; }
.bhero__img { width: 100%; height: 100%; object-fit: cover; }
/* Le combat occupe la droite : le texte ne cache jamais le boss, qui est presque toujours au centre de l'image */
.bhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(13, 14, 16, .55) 40%, rgba(13, 14, 16, 0) 54%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 14, 16, 0) 26%),
    linear-gradient(180deg, rgba(13, 14, 16, .6) 0%, rgba(13, 14, 16, 0) 20%);
}
.bhero__inner > * { max-width: min(620px, 44vw); }
.bhero__title {
  margin: 0;
  font: 40px/52px var(--pixel);
  text-transform: uppercase;
  text-shadow: .08em .08em 0 rgba(5, 5, 15, .85);
  text-wrap: balance;
}
.bhero__nick { margin: 2px 0 14px; color: var(--amber); font-size: 1.25rem; font-style: italic; }
.bhero__level {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  color: var(--text);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  text-shadow: .1em .1em 0 rgba(5, 5, 15, .8);
}
.bhero__badge {
  padding: 3px 10px;
  background: var(--paint);
  box-shadow: inset 0 2px 0 var(--paint-lit), inset 0 -3px 0 var(--paint-shade);
  color: var(--ink);
  text-shadow: none;
}
.bhero__rule {
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .bhero__title { font-size: 60px; line-height: 72px; }
}
@media (max-width: 999px) {
  .bhero { min-height: 0; padding: 0 0 40px; align-items: start; }
  .bhero__scene { position: relative; inset: auto; aspect-ratio: 16 / 9; margin-bottom: -64px; }
  .bhero__inner > * { max-width: 620px; }
  .bhero::before {
    background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 56.25vw + 64px), rgba(13, 14, 16, 0) calc(100% - 56.25vw + 200px));
  }
}

/* L'arène et le combat, à côté de la fiche signalétique */
.bfile__grid { display: grid; gap: 48px; align-items: start; }
.bfile__arena { margin-bottom: 56px; }
.steps { display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 18px;
  padding: 20px 22px;
  background: var(--steel);
  border-top: 3px solid var(--steel-lit);
  border-bottom: 3px solid var(--steel-shade);
}
.step__n {
  position: relative;
  isolation: isolate;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  color: var(--ink);
  font: 30px/40px var(--pixel);
}
.step__n::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--corners);
  background: var(--paint);
  box-shadow: inset 0 3px 0 var(--paint-lit), inset 0 -4px 0 var(--paint-shade);
}
.step__title { margin-bottom: 6px; font: 20px/30px var(--pixel); text-transform: uppercase; }
.step__text { margin: 0; }

.bcard { padding: 24px 22px 18px; --plate: #191c20; }
.bcard__ref { color: var(--amber); font: 20px/30px var(--pixel); text-transform: uppercase; }
.bcard__stage {
  display: grid;
  place-items: end center;
  min-height: 236px;
  margin: 14px 0 16px;
  padding: 18px 12px 20px;
  background:
    radial-gradient(55% 16px at 50% calc(100% - 18px), rgba(0, 0, 0, .6), transparent 70%),
    linear-gradient(180deg, var(--well), #15181c);
  box-shadow: inset 0 3px 0 #000, inset 0 -2px 0 var(--key);
}
.bcard__stage img { max-width: none; }
.bcard__name { margin-bottom: 10px; color: var(--text); font: 30px/40px var(--pixel); text-align: center; text-transform: uppercase; text-shadow: .1em .1em 0 rgba(5, 5, 15, .8); }
.bcard__specs { margin: 0; }
.bcard__specs div { display: grid; gap: 2px; padding: 12px 2px; border-top: 2px solid var(--steel-shade); box-shadow: 0 -1px 0 rgba(255, 255, 255, .04); }
.bcard__specs dt { color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
.bcard__specs dd { margin: 0; color: var(--text); }
@media (min-width: 1000px) {
  .bfile__grid { grid-template-columns: 1fr 380px; gap: 64px; }
  .bcard { position: sticky; top: 100px; }
}

/* Comment le battre, et ce qu'en dit la Régie */
.btips { padding-top: 0; }
.btips__grid { display: grid; gap: 48px; align-items: center; }
.btips__list { gap: 14px; }
.console__log--fit { min-height: 0; }
@media (min-width: 900px) {
  .btips__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Trois images du combat */
.bshots { padding-top: 0; }
@media (min-width: 600px) and (max-width: 899px) {
  .gallery__grid--three .gallery__item:first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .gallery__grid--three { grid-template-columns: repeat(3, 1fr); }
}

/* Le boss précédent, le suivant */
.bnav { display: grid; gap: 14px; padding-bottom: var(--section); }
.bnav__link {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: center;
  padding: 10px;
  background: var(--steel);
  border-top: 3px solid var(--steel-lit);
  border-bottom: 3px solid var(--steel-shade);
  color: var(--text);
  text-decoration: none;
}
.bnav__link:hover { color: #fff; background: #22272d; }
.bnav__shot { overflow: hidden; background: #000; }
.bnav__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bnav__dir, .bnav__name { display: block; font: 20px/30px var(--pixel); text-transform: uppercase; }
.bnav__dir { color: var(--dim); }
.bnav__level { display: block; color: var(--amber); font-size: .875rem; }
.bnav__link--next { grid-template-columns: 1fr 128px; text-align: right; }
.bnav__link--next .bnav__shot { order: 2; }
.bnav__all { justify-self: center; }
@media (min-width: 860px) {
  .bnav { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
  .bnav__link--prev, .bnav__slot--prev { grid-column: 1; grid-row: 1; }
  .bnav__all { grid-column: 2; grid-row: 1; }
  .bnav__link--next, .bnav__slot--next { grid-column: 3; grid-row: 1; }
}

/* Le tableau des quinze boss */
.table-scroll {
  overflow-x: auto;
  background: var(--well);
  box-shadow: inset 0 3px 0 #000, inset 0 -2px 0 var(--key);
  scrollbar-color: var(--key) transparent;
}
.specs-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--steel); }
.specs-table thead th { background: var(--steel); color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
.specs-table tbody th { font-weight: 400; }
.specs-table tbody th a { display: block; color: var(--text); font: 20px/30px var(--pixel); text-transform: uppercase; text-decoration: none; }
.specs-table tbody th a:hover { color: var(--amber); }
.specs-table tbody th span { color: var(--amber); font-size: .9375rem; font-style: italic; }
.specs-table__n { display: block; color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
.specs-table tr.is-act { background: rgba(201, 138, 60, .08); }
/* Sur téléphone, une fiche par ligne : chaque case porte son intitulé */
@media (max-width: 699px) {
  .table-scroll { overflow: visible; }
  .specs-table { min-width: 0; }
  .specs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .specs-table tr { display: block; padding: 16px 18px; border-bottom: 2px solid var(--steel); }
  .specs-table th, .specs-table td { display: block; padding: 0; border: 0; }
  .specs-table td { margin-top: 10px; }
  .specs-table td[data-label]::before { content: attr(data-label); display: block; color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
}

/* ---------------------------------------------------------------- Boutiques (_play.php) */

/* Les deux plaques se rangent dans le conteneur qui les reçoit (haut de page, appel final, panneau latéral) */
.stores { display: contents; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.site-nav__foot .stores { display: grid; gap: 10px; }
.site-nav__foot .play--soon { display: flex; }

/* Une donnée que l'auteur doit encore fournir (configuration legal.*) : bien visible, pour ne pas partir en ligne */
.todo {
  display: inline-block;
  padding: 0 8px;
  border: 2px dashed var(--amber);
  color: var(--amber);
  font: 20px/26px var(--pixel);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- Mentions légales, confidentialité, suppression du compte */

.doc { padding-top: 32px; }
.doc__grid { display: grid; gap: 48px; align-items: start; }
.doc__cards { display: grid; gap: 22px; }
.doc__card { padding: 26px 26px 20px; --plate: #191c20; }
.doc__card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; color: var(--amber); font: 20px/30px var(--pixel); text-transform: uppercase; }
.doc__card-intro { margin-bottom: 8px; color: var(--dim); }
.doc__list { margin: 0; }
.doc__list div { display: grid; gap: 2px; padding: 12px 2px; border-top: 2px solid var(--steel-shade); }
.doc__list dt { color: var(--dim); font: 20px/30px var(--pixel); text-transform: uppercase; }
.doc__list dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.doc__summary .ticks { margin-top: 12px; }
.prose { max-width: 68ch; }
.prose h2 { margin: 40px 0 12px; font: 20px/30px var(--pixel); text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body); }
.prose .ticks, .prose .steps { margin: 0 0 1em; }
.prose a { overflow-wrap: anywhere; } /* le courriel de l'éditeur, dans une étape, ne doit pas élargir la colonne à 320 px */
.prose__more::after { content: " »"; }
.prose__contact { color: var(--text); }
@media (min-width: 1000px) {
  .doc__grid { grid-template-columns: 400px 1fr; gap: 64px; }
  /* Un encadré seul suit la lecture ; une pile d'encadrés (mentions légales, conditions) est trop haute pour l'écran */
  .doc__summary { position: sticky; top: 100px; }
}

/* ---------------------------------------------------------------- Kit presse */

.press-head__kit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 30px 0 0; }

.press-facts { padding-top: 40px; }
.press-facts__grid { display: grid; gap: 48px; align-items: start; }
.press-facts__logo {
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--well), #15181c);
  box-shadow: inset 0 3px 0 #000, inset 0 -2px 0 var(--key);
}
.press-facts__grid > * { min-width: 0; }
/* Le logo de la page presse : deux fois sa taille, une seule sur les plus petits écrans (jamais d'agrandissement non entier) */
.wordmark.wordmark--press { --s: 2; margin: 0; }
@media (max-width: 419px) {
  .wordmark.wordmark--press { --s: 1; }
}
@media (min-width: 1000px) {
  .press-facts__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.press-texts { padding-top: 0; }
.press-texts__list { display: grid; gap: 18px; }
.press-text { padding: 20px 24px 22px; background: var(--steel); border-top: 3px solid var(--steel-lit); border-bottom: 3px solid var(--steel-shade); }
.press-text__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 10px; }
.press-text__title { font: 20px/30px var(--pixel); text-transform: uppercase; }
.press-text__copy { min-height: 44px; padding: 7px 16px; }
.press-text__body { margin: 0; max-width: 80ch; color: var(--text); }

.press-logos { padding-top: 0; }
.press-logos__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.press-logo { display: grid; gap: 6px; justify-items: start; }
.press-logo__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 200px;
  margin-bottom: 8px;
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--key);
}
/* Damier des fonds transparents, comme dans un logiciel de dessin */
.press-logo__stage--checker {
  background: repeating-conic-gradient(#2a2d31 0 25%, #1d2024 0 50%) 0 0 / 20px 20px;
}
.press-logo__icon { width: 128px; height: 128px; image-rendering: pixelated; }
.press-logo__name { margin: 0; color: var(--text); font: 20px/30px var(--pixel); text-transform: uppercase; }
.press-logo__download { margin-top: 6px; min-height: 44px; padding: 7px 16px; }

.press-shots { padding-top: 0; }
.press-shots__meta { color: var(--faint); }

.press-usage { padding-top: 0; }
.press-usage__plate { max-width: 860px; padding: 46px 32px 26px; }

/* ---------------------------------------------------------------- Pied de page */

.site-footer { background: #08090a; }
.site-footer__inner {
  display: grid;
  gap: 34px;
  padding-block: 56px 34px;
}
.site-footer__word { width: 168px; height: 84px; margin: 0 0 6px -8px; }
.site-footer__brand p { margin: 0; color: var(--dim); }
.site-footer ul { display: grid; gap: 6px; }
.site-footer__nav a, .site-footer__langs a {
  color: var(--dim);
  font: 20px/30px var(--pixel);
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer__langs a { display: inline-flex; align-items: center; gap: 14px; }
.site-footer__nav a:hover, .site-footer__langs a:hover { color: var(--text); }
.site-footer__nav a[aria-current], .site-footer__langs a[aria-current] { color: var(--amber); }
/* La barre du bas : les pages d'information sur une ligne, puis l'avis et le © */
.site-footer__legal {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "info info" "notice copy";
  gap: 10px 24px;
  padding-block: 20px 30px;
  border-top: 2px solid var(--steel);
  color: var(--faint);
  font-size: .8125rem;
}
.site-footer__legal p { margin: 0; }
.site-footer__notice { grid-area: notice; }
.site-footer__copy { grid-area: copy; }
/* Les pages d'information, séparées par un point carré ; celui qui ouvre une ligne sort de la boîte, qui le rogne
   (la marge de rognage laisse passer le contour du focus) */
.site-footer__info { grid-area: info; overflow: hidden; overflow: clip; overflow-clip-margin: 8px; }
.site-footer .site-footer__info ul { display: flex; flex-wrap: wrap; gap: 0; margin-left: -30px; }
.site-footer__info li { display: flex; align-items: center; }
.site-footer__info li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  margin-inline: 13px;
  background: var(--faint);
}
.site-footer__info a {
  padding-block: 4px;
  color: var(--dim);
  font-size: .9375rem;
  text-decoration: none;
}
.site-footer__info a:hover { color: var(--text); text-decoration: underline 2px; text-underline-offset: 5px; }
.site-footer__info a[aria-current] { color: var(--amber); }
@media (max-width: 599px) {
  .site-footer__legal { grid-template-columns: 1fr; grid-template-areas: "info" "notice" "copy"; }
}
@media (min-width: 800px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer__nav ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* ---------------------------------------------------------------- Télécharger (pages/download.php) */

.dl-head__stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 14px; }
.dl-specs { padding-top: 40px; }
.dl-specs__grid { display: grid; gap: 48px; align-items: center; }
.dl-specs__grid > * { min-width: 0; }
@media (min-width: 1000px) { .dl-specs__grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } }
.dl-price { padding-top: 0; }
.dl-price__grid { display: grid; gap: 22px; }
.dl-price__plate { padding: 30px 30px 24px; }
.dl-price__title { margin-bottom: 16px; color: var(--text); font: 20px/30px var(--pixel); text-transform: uppercase; }
.dl-price__plate--full .dl-price__title { color: var(--amber); }
@media (min-width: 800px) { .dl-price__grid { grid-template-columns: 1fr 1fr; } }
.dl-steps { padding-top: 0; }
.dl-steps .steps, .dl-steps__more { max-width: 860px; }
.dl-steps__more { margin: 28px 0 0; color: var(--dim); }

/* ---------------------------------------------------------------- 404 */

.lost { display: grid; align-items: center; min-height: 70vh; padding-block: 96px; }
.lost__title { font-size: 40px; line-height: 52px; }

/* ---------------------------------------------------------------- Machine à écrire (site.js) */

.typing-line { display: block; }
.typing-rest { visibility: hidden; }
.regie[data-wait]::before { opacity: 0; }
/* Le curseur ne prend aucune place : la ligne ne bouge pas pendant la frappe */
.typing-cursor::after {
  content: "";
  display: inline-block;
  width: .5em; height: .7em;
  margin: 0 -.65em 0 .15em;
  background: currentColor;
  vertical-align: -.02em;
  animation: led 1s steps(2, jump-none) infinite;
}

/* ---------------------------------------------------------------- Mouvement réduit */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wordmark__heat { opacity: .8; }
}
