/* Shanghodrop : la ruelle du marché de nuit (maquette M1, sprites du jeu). Ciel tramé, façades, guirlandes, lanternes, perche de bambou, police 5 x 7 du jeu.
   Aucun cadre, aucune tuile arrondie, aucune ombre portée, aucun liseré : aplats, sprites du jeu, couleur du texte. */
@font-face { font-family: "Ruelle"; src: url("ruelle.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Chinois, japonais, coréen : Fusion Pixel Font 10 px (OFL 1.1, /statique/LICENCES/), caractères des pages de la langue ; chargée sur ses pages seulement */
@font-face { font-family: "Ruelle ja"; src: url("ruelle-ja.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Ruelle ko"; src: url("ruelle-ko.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Ruelle zh-Hans"; src: url("ruelle-zh-Hans.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Ruelle zh-Hant"; src: url("ruelle-zh-Hant.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ciel0: #0e0620; --ciel1: #1c0c34; --ciel2: #341444; --ciel3: #5a1e46;
  --puits: rgba(12, 4, 24, .86); --mur-a: #341634; --mur-b: #28183e; --rue: #22102a; --nuit: #120624;
  --creme: #fff6dc; --doux: #cdbedf; --or: #ffd040; --orange: #ff8a24; --prune: #2a0a1e; --laque: #7a1424;
  --jade: #4ad88e; --azur: #5ab4ff; --rouge: #ff5a3a; --lilas: #c8b0f0; --corde: #c8a878;
  --pixel: "Ruelle", ui-monospace, monospace;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: dark;
}
:lang(ja) { --pixel: "Ruelle", "Ruelle ja", ui-monospace, monospace; }
:lang(ko) { --pixel: "Ruelle", "Ruelle ko", ui-monospace, monospace; }
/* Coréen : retour à la ligne entre les mots, jamais dans un mot */
:lang(ko) { word-break: keep-all; }
:lang(zh-Hans) { --pixel: "Ruelle", "Ruelle zh-Hans", ui-monospace, monospace; }
:lang(zh-Hant) { --pixel: "Ruelle", "Ruelle zh-Hant", ui-monospace, monospace; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; background: var(--ciel0); color: var(--creme); font: 17px/1.6 var(--texte); overflow-x: hidden; }
/* Ciel de la ruelle, fixe derrière tout le site */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--ciel0) url("art/ciel.png") center top / cover no-repeat; image-rendering: pixelated; }
img { max-width: 100%; height: auto; }
.pix, .tete-shangho, .pied-shangho, .action img, .paquet > img, .couleurs img, summary img { image-rendering: pixelated; }
a { color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--creme); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
code { font: .92em ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", monospace; background: var(--mur-b); padding: .1em .35em; }
.m { white-space: nowrap; }
.g { display: inline-block; white-space: nowrap; }
sup { line-height: 0; }
.aller { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 12px; background: var(--or); color: var(--prune); font-weight: 700; }
.aller:focus { top: 8px; }

/* Lettrage laqué du jeu : police 5 x 7 grasse, trois bandes (crème, or, orange), contour prune d'un pixel */
.px, h1, h2, .surtitre, .termes dt, .etapes > li::before, .marque, .langues summary, .langues-liste a, .menu summary, .ecran-titre a, .pied h2, .paquet-etat, .plateformes a, .touches thead th, .action, .contact, .suite-lien a {
  --c1: #fff6dc; --c2: #ffd040; --c3: #ff8a24; --p: 2px; --k: var(--prune);
  font-family: var(--pixel); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.2;
  color: transparent; background: linear-gradient(180deg, var(--c1) 0 41.67%, var(--c2) 41.67% 58.33%, var(--c3) 58.33% 100%) 0 0 / 100% 1.2em repeat-y;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(var(--p) 0 0 var(--k)) drop-shadow(calc(-1 * var(--p)) 0 0 var(--k)) drop-shadow(0 var(--p) 0 var(--k)) drop-shadow(0 calc(-1 * var(--p)) 0 var(--k));
}
h1 { --p: 4px; font-size: 40px; margin: 0 0 16px; overflow-wrap: anywhere; }
h2 { --p: 3px; font-size: 30px; margin: 0 0 20px; overflow-wrap: anywhere; }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 4px; color: var(--creme); }
p { margin: 0 0 14px; }
/* Couleurs du HUD de M1 */
.surtitre { --c1: #e8fff0; --c2: #7ae8a0; --c3: #20a868; font-size: 20px; margin: 0 0 12px; }
.surtitre a { color: inherit; text-decoration-color: #7ae8a0; }
.termes dt { --c1: #f0e8ff; --c2: #c8b0f0; --c3: #9a7ad0; font-size: 20px; }

/* En-tête : guirlande de lanternes, enseigne, langue */
.entete { position: relative; padding: 40px 16px 0; background: url("art/guirlande.png") 0 0 / 384px 48px repeat-x; image-rendering: pixelated; }
.entete-haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; }
.marque { --p: 3px; font-size: 30px; text-decoration: none; display: inline-flex; align-items: baseline; }
.marque span { background: inherit; -webkit-background-clip: text; background-clip: text; }
.marque-drop { --c1: #fff6dc; --c2: #ff6a3a; --c3: #c81e3a; background: linear-gradient(180deg, #fff6dc 0 41.67%, #ff6a3a 41.67% 58.33%, #c81e3a 58.33% 100%) 0 0 / 100% 1.2em !important; -webkit-background-clip: text !important; background-clip: text !important; }
/* Langue : une lanterne azur et le nom de la langue ; ouverte, la liste des langues sous l'enseigne, en lettrage de l'écran titre, la lanterne en curseur */
.entete-haut { position: relative; }
.langues summary { --p: 2px; --c1: #f0e8ff; --c2: #c8b0f0; --c3: #9a7ad0; font-size: 20px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; text-transform: none; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary img { width: 32px; height: 32px; filter: none; image-rendering: pixelated; }
.langues summary:hover, .langues[open] summary { --c1: #fff6dc; --c2: #ffd040; --c3: #ff8a24; }
.langues-liste { position: absolute; right: 0; top: 100%; z-index: 30; display: grid; grid-template-columns: repeat(3, max-content); gap: 0 24px; margin: 8px 0 0; padding: 14px 20px 16px; list-style: none; background: var(--ciel0); }
.langues-liste li { position: relative; padding-left: 30px; }
.langues-liste li::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -13px; background: url("art/lanterne-B-feu.png") 0 0 / 24px 24px no-repeat; image-rendering: pixelated; visibility: hidden; }
.langues-liste li:hover::before, .langues-liste li:focus-within::before { visibility: visible; }
.langues-liste a { --p: 2px; --c1: #e2dcf0; --c2: #aea4c8; --c3: #7e749c; font-size: 20px; text-decoration: none; text-transform: none; display: block; padding: 5px 0; white-space: nowrap; }
.langues-liste a[aria-current] { --c1: #fff6dc; --c2: #ffd040; --c3: #ff8a24; }
.langues-liste li:has(a[aria-current])::before { visibility: visible; }

/* Menu : la liste de l'écran titre de M1 (SOLO, DUEL, OPTIONS). Rubriques en gris lilas ; la rubrique choisie en lettrage d'or, la lanterne allumée devant elle sert de curseur. Le curseur suit la souris et le clavier. */
.menu { max-width: 1240px; margin: 6px auto 4px; }
.menu summary { --p: 2px; font-size: 20px; cursor: pointer; list-style: none; display: none; align-items: center; gap: 10px; width: max-content; padding: 6px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary img { width: 32px; height: 32px; filter: none; }
.ecran-titre { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin: 0; padding: 0; list-style: none; }
.ecran-titre li { position: relative; padding-left: 34px; }
.ecran-titre li::before { content: ""; position: absolute; left: 0; top: 50%; width: 28px; height: 28px; margin-top: -15px; background: var(--lf) 0 0 / 28px 28px no-repeat; image-rendering: pixelated; visibility: hidden; animation: curseur 1s steps(1, end) infinite; }
.ecran-titre a { --c1: #e2dcf0; --c2: #aea4c8; --c3: #7e749c; font-size: 20px; text-decoration: none; display: block; padding: 6px 0; }
.ecran-titre li.choisi::before, .ecran-titre li:hover::before, .ecran-titre li:focus-within::before { visibility: visible; }
.ecran-titre:hover li.choisi:not(:hover)::before, .ecran-titre:focus-within li.choisi:not(:focus-within)::before { visibility: hidden; }
.ecran-titre li.choisi a, .ecran-titre a:hover, .ecran-titre a:focus-visible { --c1: #fff6dc; --c2: #ffd040; --c3: #ff8a24; }
.ecran-titre:hover li.choisi:not(:hover) a { --c1: #e2dcf0; --c2: #aea4c8; --c3: #7e749c; }
.ecran-titre a:focus-visible { outline-offset: 2px; }
@keyframes curseur { 50% { transform: translateY(-2px); } }

/* La ruelle : le contenu est le puits sombre ; à partir de 1280 px, une façade de chaque côté porte une annonce */
.ruelle { position: relative; }
main { display: block; max-width: 1040px; margin: 0 auto; padding: 24px 16px 56px; background: var(--puits); }
.facade { display: none; }
.fil ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 20px; padding: 0; list-style: none; font-size: .9rem; color: var(--doux); }
.fil li + li::before { content: "›"; margin-right: 10px; color: var(--lilas); }

/* Tête de page : texte, Shangho debout sur les pavés, toits au loin */
.tete { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; margin: -24px -16px 0; padding: 20px 16px 44px;
  background: url("art/rue.png") 0 100% / 120px 48px repeat-x, url("art/toits.png") 0 calc(100% - 40px) / 768px 178px repeat-x; image-rendering: pixelated; }
.tete-texte { min-width: 0; padding-bottom: 16px; }
.tete .chapo { margin: 0; }
.tete .chapo { font-size: 1.2rem; color: var(--creme); }
.tete-shangho { width: 72px; height: 112px; margin-bottom: -6px; }
picture { display: contents; }
picture source { display: none; }
.titre-jeu { --p: 4px; font-size: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.titre-jeu span { background: inherit; -webkit-background-clip: text; background-clip: text; }
.titre-shangho { font-size: 40px; background: linear-gradient(180deg, #fff6dc 0 41.67%, #ffd040 41.67% 58.33%, #ff8a24 58.33% 100%) 0 0 / 100% 1.2em !important; -webkit-background-clip: text !important; background-clip: text !important; }
.titre-drop { font-size: 70px; background: linear-gradient(180deg, #fff6dc 0 41.67%, #ff6a3a 41.67% 58.33%, #c81e3a 58.33% 100%) 0 0 / 100% 1.2em !important; -webkit-background-clip: text !important; background-clip: text !important; }
.tete-accueil { grid-template-columns: minmax(0, 1fr); }
.tete-accueil .ecran-video { margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.action { --p: 2px; font-size: 20px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; }
.action img { width: 32px; height: 32px; filter: none; }
.action:hover { --c1: #ffffff; --c2: #fff0c0; --c3: #ffd040; }

/* Rubriques */
.rubrique { margin-top: 40px; }
.tete + .rubrique, .tete + .note { margin-top: 24px; }
.duo { display: grid; gap: 24px; align-items: start; }
.ecran { margin: 0; }
.ecran img, .ecran video { display: block; width: 100%; height: auto; background: #000; }
.ecran figcaption { margin-top: 10px; font-size: .92rem; color: var(--doux); }
.galerie { display: grid; gap: 32px 24px; }
/* Clips verticaux : en file comme des lanternes sur la corde, deux de front sur téléphone */
.clips { display: flex; flex-wrap: wrap; gap: 32px 20px; margin-top: 20px; }
.clip { flex: 0 1 calc(50% - 10px); min-width: 0; }
@media (min-width: 900px) { .clip { flex-basis: 200px; } }
/* Lien vers la suite : une lanterne céleste qui s'envole vers la page */
.suite-lien { margin-top: 20px; padding-left: 42px; min-height: 56px; background: url("art/lanterne-R-vol.png") 0 -4px / 32px 64px no-repeat; image-rendering: pixelated; }
.suite-lien a { --p: 2px; font-size: 20px; text-decoration: none; }
.suite-lien a:hover { --c1: #ffffff; --c2: #fff0c0; --c3: #ffd040; }

/* Listes : une lanterne de la couleur de la page par point */
.lanternes, .plateformes, .couleurs { list-style: none; margin: 0 0 16px; padding: 0; }
.lanternes li { position: relative; padding: 4px 0 4px 44px; min-height: 36px; margin-bottom: 8px; }
.lanternes li::before { content: ""; position: absolute; left: 0; top: 2px; width: 32px; height: 32px; background: var(--lanterne) 0 0 / 32px 32px no-repeat; image-rendering: pixelated; }
.couleurs { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.couleurs li { display: flex; align-items: center; gap: 10px; color: var(--doux); }
.couleurs strong { color: var(--creme); }
.couleurs img { width: 48px; height: 48px; }
.plateformes { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.plateformes li { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; padding-left: 60px; min-height: 48px; background: var(--l) 0 0 / 48px 48px no-repeat; image-rendering: pixelated; }
.plateformes a { --p: 2px; font-size: 20px; text-decoration: none; width: max-content; max-width: 100%; }
.plateformes a:hover { --c1: #ffffff; --c2: #fff0c0; --c3: #ffd040; }
.plateformes span { color: var(--doux); font-size: .95rem; }

/* Étapes : le numéro en grands chiffres laqués, comme le bandeau « 4 CHAIN » */
.etapes { list-style: none; counter-reset: etape; margin: 0 0 16px; padding: 0; }
.etapes > li { counter-increment: etape; position: relative; padding-left: 64px; min-height: 60px; margin-bottom: 22px; }
.etapes > li::before { content: counter(etape); --p: 3px; font-size: 50px; position: absolute; left: 4px; top: -8px; width: 44px; text-align: center; }
.etapes p { color: var(--doux); }
.etapes code { font-size: .8em; }

/* Termes : nom en lettrage du HUD, sens à côté */
.termes { margin: 0 0 16px; }
.termes > div { display: grid; gap: 2px 24px; padding: 10px 0; }
.termes dd { margin: 0; color: var(--doux); }

/* Encart : aplat de mur, bâton d'encens planté à gauche */
.note { position: relative; padding: 16px 18px 16px 52px; background: var(--mur-a); color: var(--creme); }
.note::before { content: ""; position: absolute; left: 18px; top: 12px; width: 14px; height: 52px; background: url("art/encens.png") 0 0 / 14px 52px no-repeat; image-rendering: pixelated; }

/* Tableaux : rangées en aplats alternés, sans trait. Sous 1024 px, chaque rangée devient un bloc : nom de la rangée, puis chaque valeur sous le nom de sa colonne (data-col). */
.tableau { margin: 0 0 16px; }
.touches { width: 100%; border-collapse: collapse; font-size: .95rem; }
.touches th, .touches td { text-align: left; padding: 10px 12px; vertical-align: top; }
.touches thead th { --p: 2px; font-size: 20px; padding-bottom: 14px; }
.touches tbody tr:nth-child(odd) { background: rgba(52, 20, 68, .7); }
.touches tbody th { color: var(--creme); font-weight: 700; }
.touches td { color: var(--doux); }

/* FAQ : lanterne éteinte (fumée), qui s'allume à l'ouverture */
.questions details { padding: 6px 0; }
.questions summary { cursor: pointer; list-style: none; position: relative; padding: 8px 0 8px 48px; min-height: 40px; font-weight: 700; font-size: 1.05rem; color: var(--creme); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before { content: ""; position: absolute; left: 0; top: 4px; width: 32px; height: 32px; background: url("art/lanterne-F-repos.png") 0 0 / 32px 32px no-repeat; image-rendering: pixelated; }
.questions summary:hover::before, .questions details[open] summary::before { background-image: var(--lanterne-feu); }
.questions details[open] summary { color: var(--or); }
.reponse { padding: 0 0 8px 48px; color: var(--doux); }

/* Paquet : lanterne allumée et lien, ou lanterne de fumée et « bientôt » */
.paquet { display: flex; align-items: flex-start; gap: 16px; }
.paquet > img { width: 48px; height: 48px; flex: none; }
.paquet p { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.paquet-etat { --c1: #f0e8ff; --c2: #c8b0f0; --c3: #9a7ad0; --p: 2px; font-size: 20px; }
.paquet span { color: var(--doux); }
.paquet-lien { font-weight: 700; font-size: 1.1rem; }
.contact { --p: 2px; font-size: 20px; text-transform: none; }
.contact a { color: inherit; text-decoration-color: var(--or); }

/* Régie : créations du store en iframe (site/regie : taille réservée par format), pendues à une perche de bambou par deux cordes */
.pub { display: grid; grid-template-columns: minmax(0, max-content); justify-content: center; }
.pub-mot { height: 40px; margin: 0 -12px; padding: 0 2px; font-size: .72rem; font-weight: 700; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); text-align: center;
  background: linear-gradient(var(--corde), var(--corde)) 12% 100% / 3px 12px no-repeat, linear-gradient(var(--corde), var(--corde)) 88% 100% / 3px 12px no-repeat, url("art/perche.png") 0 18px / 39px 12px repeat-x; image-rendering: pixelated; }
.pub-boite { background: var(--nuit); }
.pub-haut { padding: 18px 28px 20px; }
.pub-bas { padding: 28px 28px 24px; }
@media (max-width: 380px) { .pub-haut, .pub-bas { padding-inline: 16px; } }
@media print { .pub, .facade, .menu, .langues { display: none !important; } }

/* Pied : la rue pavée, Shangho, puis le sol */
.pied { margin-top: 0; background: var(--rue); }
.pied-rue { height: 48px; background: url("art/rue.png") 0 0 / 120px 48px repeat-x; image-rendering: pixelated; position: relative; }
.pied-shangho { position: absolute; right: 12%; bottom: 10px; width: 66px; height: 78px; }
.pied-dedans { max-width: 1240px; margin: 0 auto; padding: 32px 16px 40px; }
.pied-liens ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.pied a { color: var(--doux); }
.pied a:hover { color: var(--or); }
.pied-note { margin-top: 20px; font-size: .9rem; color: var(--doux); }
.pied-note a { color: var(--or); }

/* Téléphone : menu replié derrière « Menu », puis la liste de l'écran titre en une colonne */
@media (max-width: 719px) {
  .entete { padding-top: 40px; }
  .marque { --p: 2px; font-size: 20px; }
  .langues summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .langues-liste { left: 0; right: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 12px 0 14px; }
  .langues-liste a { font-size: 16px; white-space: normal; word-break: keep-all; }
  .menu { margin-bottom: 4px; }
  .menu summary { display: flex; }
  .ecran-titre { display: grid; grid-template-columns: max-content; justify-content: center; gap: 0; margin: 4px 0 8px; }
  .ecran-titre a { padding: 7px 0; }
  .tete-shangho { width: 72px; height: 112px; margin-bottom: -6px; }
  .titre-jeu { --p: 4px; }
}
/* Téléphone et tablette : tableaux lus rangée par rangée ; un en-tête traduit en un seul mot long (« Free-afstandsbediening ») ne fait plus déborder la page (#108) */
@media (max-width: 1023px) {
  .touches, .touches tbody, .touches tr, .touches th, .touches td { display: block; }
  .touches thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .touches tbody tr { padding: 12px 14px 10px; }
  .touches tbody th { padding: 0 0 6px; font-size: 1.02rem; }
  .touches td { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 2px 12px; padding: 4px 0; }
  .touches td::before { content: attr(data-col); color: var(--lilas); font-size: .82rem; font-weight: 700; line-height: 1.9; }
}
@media (min-width: 720px) and (max-width: 1023px) { .ecran-titre a { font-size: 18px; } }
/* Téléphone : surtitre et titre sur toute la largeur, Shangho à côté du chapô ; lettrage au plus grand multiple de 10 px qui loge le plus long mot (--n, posé par assembler.py) */
@media (max-width: 599px) {
  .tete:not(.tete-accueil) .tete-texte { display: contents; }
  .tete:not(.tete-accueil) .tete-texte > * { grid-column: 1; }
  .tete:not(.tete-accueil) .tete-texte > :is(.surtitre, h1) { grid-column: 1 / -1; }
  .tete:not(.tete-accueil) .tete-texte > :last-child { margin-bottom: 28px; }
  .tete:not(.tete-accueil) .tete-shangho { grid-column: 2; }
  h1, h2 { overflow-wrap: normal; }
  h1:not(.titre-jeu) { font-size: clamp(20px, calc((100vw - 32px) / (var(--n, 1) * .7)), 40px); font-size: clamp(20px, round(down, calc((100vw - 32px) / (var(--n, 1) * .7)), 10px), 40px); }
  main h2 { font-size: clamp(20px, calc((100vw - 32px) / (var(--n, 1) * .7)), 30px); font-size: clamp(20px, round(down, calc((100vw - 32px) / (var(--n, 1) * .7)), 10px), 30px); }
}
@media (min-width: 600px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .termes > div { grid-template-columns: minmax(160px, 1fr) 2fr; align-items: baseline; }
}
@media (min-width: 900px) {
  main { padding: 24px 40px 72px; }
  .tete { margin: -24px -40px 0; padding: 24px 40px 48px; }
  h1 { --p: 5px; font-size: 50px; }
  .titre-jeu { --p: 5px; }
  .titre-shangho { font-size: 50px; }
  .titre-drop { font-size: 100px; }
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; }
  .tete-accueil { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
  .tete-shangho { width: 72px; height: 112px; }
}
/* Grand écran : façades de la ruelle de chaque côté, annonce pendue et qui suit la lecture */
/* Rails de pub (règle d'Alex du 17/11) : 160 x 600 seulement, au milieu de la façade, affichés seulement si la marge libre fait 176 px ou plus
   de chaque côté du puits (1040 px) : 1040 + 2 x 176 = 1392 px, plus 16 px de barre de défilement classique = 1408 px. Les façades prennent la place qui reste ; le puits garde sa place et sa largeur, à tout zoom. */
@media (min-width: 1280px) {
  .ruelle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1040px) minmax(0, 1fr); }
  .ruelle > main { grid-column: 2; grid-row: 1; width: 100%; max-width: none; margin: 0; }
  .facade { display: block; grid-row: 1; padding: 28px 8px; image-rendering: pixelated; }
  .facade-g { grid-column: 1; background: var(--mur-a) url("art/facade-a.png") right top / 360px 396px repeat; }
  .facade-d { grid-column: 3; background: var(--mur-b) url("art/facade-b.png") left top / 360px 396px repeat; }
  .facade .pub { display: none; }
}
@media (min-width: 1408px) {
  .facade .pub { display: grid; position: sticky; top: 24px; width: max-content; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ecran-titre li::before { animation: none; } }
@media (max-width: 359px) { .etapes > li { padding-left: 48px; } .etapes code { font-size: .72em; } }

/* Accueil (#95) : un seul écran, comme la borne. L'écran titre du vrai jeu, puis la démo au même endroit et à la même échelle entière
   (384 x 224 natifs, x 1 à x 4 selon la place ; plus petit que x 1 seulement sur un téléphone). statique/borne.js mène le cycle. */
.page-accueil .ecran1 { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 400px; }
.page-accueil .ruelle { flex: 1 1 0; min-height: 0; display: flex; }
@media (min-width: 1280px) { .page-accueil .ruelle { display: grid; grid-template-rows: minmax(0, 1fr); } .page-accueil .facade { overflow: hidden; } }
.page-accueil main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; max-width: none; padding: 0; background: none; }
.borne { container: borne / size; flex: 1 1 0; min-height: 0; display: grid; place-items: center; }
/* Un seul écran de jeu : le rendu CRT du jeu est dans la vidéo ; reflet de la vitre et lueur des lanternes posés ici, sans cadre */
.borne-ecran { position: relative; width: min(100cqw, 100cqh * 384 / 224, 384px); aspect-ratio: 384 / 224; isolation: isolate; }
/* Lumière des lanternes de la ruelle : une flaque ovale derrière la vitre, sans bord ; vitre bombée du CRT découpée (contour mesuré sur les cycles) */
.borne-ecran::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 160, 64, .26), rgba(255, 130, 48, .1) 72%, rgba(255, 130, 48, 0)); }
.borne-video, .borne-ecran::after { -webkit-mask: var(--vitre) 0 0 / 100% 100% no-repeat; mask: var(--vitre) 0 0 / 100% 100% no-repeat; }
.borne-ecran { --vitre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1152 672' preserveAspectRatio='none'%3E%3Cpolygon points='6 249 22 60 31 27 178 15 439 6 1106 7 1137 8 1138 9 1146 59 1146 655 1045 666 198 665 133 662 102 660 77 658 31 645 10 630 6 613'/%3E%3C/svg%3E"); }
/* Lanternes volantes du jeu (PNG animés) qui montent dans le ciel de la ruelle, derrière l'écran */
.borne { position: relative; overflow: hidden; }
.decor { position: absolute; inset: 0; pointer-events: none; }
.decor .lv { position: absolute; bottom: -72px; width: 32px; height: 64px; image-rendering: pixelated; }
.lv1 { left: 3%; } .lv2 { left: 10%; } .lv3 { left: 17%; } .lv4 { right: 16%; } .lv5 { right: 9%; } .lv6 { right: 3%; }
.borne-ecran { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .decor .lv { animation: monte 30s steps(300) infinite; }
  .lv2 { animation-delay: -12s !important; } .lv3 { animation-delay: -22s !important; } .lv4 { animation-delay: -5s !important; } .lv5 { animation-delay: -17s !important; } .lv6 { animation-delay: -26s !important; }
  .entete { background-image: url("art/guirlande-anim.png"); }
  .facade-g { background-image: url("art/facade-a-anim.png"); } .facade-d { background-image: url("art/facade-b-anim.png"); }
  .ecran-titre li:hover a { animation: allume .24s linear both; }
}
@media (prefers-reduced-motion: reduce) { .decor { display: none; } }
@keyframes monte { from { transform: translateY(0); } to { transform: translateY(-110vh); } }
@keyframes allume { 0%, 49% { --c1: #ffffff; --c2: #fff6dc; --c3: #ffd040; } 50%, to { --c1: #fff6dc; --c2: #ffd040; --c3: #ff8a24; } }
.borne-ecran::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 38% at 28% 14%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%), radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .35) 100%); }
.borne-video { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.borne-start { position: absolute; inset: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* START pris au clavier : l'écran s'allume, rien par-dessus la vidéo (un aplat sur une vidéo en plan matériel cache l'image) */
.borne-start:focus-visible { outline: none; background: none; }
.borne-ecran:has(.borne-start:focus-visible) .borne-video { filter: brightness(1.2) saturate(1.15); }
.page-accueil h1.borne-h1 { --p: 2px; font-size: 20px; flex: none; margin: 0; padding: 10px 16px 16px; text-align: center; overflow-wrap: normal; }
@container borne (min-width: 768px) and (min-height: 448px) { .borne-ecran { width: 768px; } }
@container borne (min-width: 1152px) and (min-height: 672px) { .borne-ecran { width: 1152px; } }
@container borne (min-width: 1536px) and (min-height: 896px) { .borne-ecran { width: 1536px; } }
@media (min-width: 900px) and (min-height: 1000px) { .tete-shangho { width: 144px; height: 224px; margin-bottom: -12px; } }
/* Grand écran : enseigne, menu et langue sur une seule rangée sous la guirlande, dès 1840 px : en dessous, la rangée déborde dans 13 langues (lt : 1820 px au moins, #161) */
@media (min-width: 1840px) {
  .entete { display: flex; align-items: center; justify-content: center; gap: 20px; padding-bottom: 4px; }
  .entete-haut { display: contents; }
  .marque { order: 1; }
  .menu { order: 2; margin: 0; max-width: none; }
  .langues { order: 3; }
  .ecran-titre { flex-wrap: nowrap; gap: 2px 8px; }
  .ecran-titre a { font-size: 16px; white-space: nowrap; }
  .ecran-titre li { padding-left: 28px; }
  .ecran-titre li::before { width: 24px; height: 24px; margin-top: -13px; background-size: 24px 24px; }
}
@media (max-width: 599px) { .tete { padding-bottom: 36px; gap: 8px; } .tete h1 { margin-bottom: 8px; } .tete .chapo { font-size: 1.05rem; line-height: 1.45; } .tete + .rubrique, .tete + .note { margin-top: 16px; } }
@media (min-width: 1600px) { .ecran-titre a { font-size: 18px; } .ecran-titre { gap: 2px 12px; } }
