/* Xiaomo — le jeu : papier, encre, brume, vermillon. Les illustrations définitives (Higgsfield) remplaceront les dessins SVG provisoires. */
.g-porte { position: relative; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: var(--s-3); padding: var(--s-6) var(--gutter); overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, var(--surface) 0%, var(--paper) 60%); transition: opacity .6s var(--e-in), transform .6s var(--e-in); }
.g-porte.is-open { opacity: 0; transform: scale(1.06); }
.g-brume { position: absolute; inset: auto -20% -10% -20%; height: 45%; background: radial-gradient(ellipse at 30% 60%, rgba(28,26,23,.10), transparent 60%), radial-gradient(ellipse at 75% 40%, rgba(28,26,23,.08), transparent 60%); filter: blur(14px); pointer-events: none; }
.g-porte-titre { font-family: var(--font-display); font-size: var(--fs-28); text-align: center; }
.g-porte-sous { color: var(--ink-2); letter-spacing: .08em; text-align: center; }
.g-porte-kai { width: min(280px, calc(100vw - 80px)); aspect-ratio: 1; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lift); display: grid; place-items: center; position: relative; }
.g-porte-kai::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line-2); border-radius: calc(var(--r-xl) - 6px); pointer-events: none; }
.g-porte-skip { margin-top: var(--s-4); }
.g-porte-regle { font-family: var(--font-display); color: var(--seal); text-align: center; max-width: 300px; line-height: 1.35; }

/* ---------- carte */
.g-carte { display: grid; grid-template-rows: auto 1fr auto; height: 100dvh; background: var(--paper); }
.g-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--gutter); background: linear-gradient(var(--paper), transparent); position: relative; z-index: 2; }
.g-region { font-family: var(--font-display); font-size: var(--fs-22); }
.g-zh { font-family: var(--font-zh); }
.g-region .g-zh { color: var(--seal); font-size: var(--fs-18); margin-left: 6px; }
.g-jauge { display: grid; justify-items: end; gap: 2px; text-decoration: none; color: inherit; min-width: 110px; }
.g-jauge-n { font-family: var(--font-display); font-size: var(--fs-22); line-height: 1; }
.g-jauge-k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.g-jauge .x-bar { width: 100%; }
.g-carte-scroll { overflow-y: auto; overflow-x: hidden; position: relative; -webkit-overflow-scrolling: touch; }
.g-carte-monde { position: relative; }
.g-carte-svg text { font-family: var(--font-ui); }
.g-noeud { cursor: pointer; }
.g-noeud.is-off { cursor: default; }
.g-dragon { position: absolute; width: 0; height: 0; display: grid; place-items: center; transform: translate(34px, -78%); pointer-events: none; filter: drop-shadow(0 6px 6px rgba(28,26,23,.25)); }
.g-dragon > svg { transform: translateY(-6px); }
.g-dragon .g-dragon-img { position: absolute; left: 0; bottom: 0; width: auto; max-width: none; transform: translateX(-50%); animation: g-souffle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes g-souffle { 0%, 100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(-3px) scale(1.02, .985); } }
.g-carte-pied { padding: var(--s-2) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); display: grid; gap: var(--s-2); background: linear-gradient(transparent, var(--paper) 30%); position: relative; z-index: 2; }
.g-mission { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-lift); text-decoration: none; color: inherit; transition: transform var(--d-instant) var(--e-standard); }
.g-mission:active { transform: scale(.985); }
.g-mission-sceau { width: 48px; height: 48px; border-radius: 10px; background: var(--seal); color: var(--on-seal); display: grid; place-items: center; font-family: var(--font-zh); font-size: 24px; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px rgba(255,253,249,.55), inset 0 0 0 4px var(--seal); }
.g-mission.is-done .g-mission-sceau { background: var(--ink); color: var(--paper); transform: none; box-shadow: none; }
.g-mission-titre { font-family: var(--font-display); font-size: var(--fs-18); line-height: 1.15; }
.g-mission-fleche { color: var(--ink-3); font-size: var(--fs-22); }
.g-nav { display: flex; justify-content: center; gap: var(--s-6); }
.g-nav a { color: var(--ink-2); font-weight: 600; font-size: var(--fs-13); text-decoration: none; padding: 6px 0; }

/* ---------- épisode */
.g-ep { min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--paper); }
.g-ep-tete { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; padding: var(--s-2) var(--s-2) 0; text-align: center; }
.g-ep-titre { font-family: var(--font-display); font-size: var(--fs-22); text-align: center; padding: var(--s-2) var(--gutter); }
.g-ep-scene { display: grid; gap: var(--s-3); padding: var(--s-2) var(--gutter) var(--s-4); align-content: start; overflow-y: auto; }
.g-narr { color: var(--ink-2); font-style: italic; text-align: center; padding: 0 var(--s-4); line-height: 1.5; }
.g-bulle { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s-3) var(--s-4) var(--s-3) var(--s-4); max-width: 88%; box-shadow: var(--shadow); animation: g-in .35s var(--e-out); }
.g-bulle--xiaomo { align-self: start; justify-self: start; border-color: var(--seal); border-bottom-left-radius: 4px; }
.g-bulle--xiaoyu, .g-bulle--mama, .g-bulle--baba, .g-bulle--gege, .g-bulle--meimei, .g-bulle--yeye, .g-bulle--linpo, .g-bulle--biaomei { justify-self: end; border-bottom-right-radius: 4px; }
.g-perso { font-size: var(--fs-12); font-weight: 700; letter-spacing: .06em; color: var(--seal); font-family: var(--font-zh); }
.g-bulle .g-zh { font-family: var(--font-zh); font-size: var(--fs-22); line-height: 1.35; margin-top: 2px; }
.g-bulle .g-py { color: var(--ink-2); font-size: var(--fs-14); }
.g-bulle .g-tr { color: var(--ink-2); font-size: var(--fs-13); margin-top: 4px; }
.g-son { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font-size: 11px; cursor: pointer; }
.g-reponds { display: grid; gap: var(--s-2); padding: var(--s-3); border: 1.5px dashed var(--line-2); border-radius: var(--r-l); }
.g-modele { display: grid; gap: 2px; }
.g-modele .g-zh { font-family: var(--font-zh); font-size: var(--fs-22); }
.g-modele .g-py, .g-modele .g-tr { color: var(--ink-2); font-size: var(--fs-14); }
.g-ep-pied { padding: var(--s-2) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); display: grid; gap: var(--s-2); }
@keyframes g-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.g-ep--seance { min-height: 0; grid-template-rows: auto auto auto; }
.g-ep--seance .g-ep-scene { overflow: visible; padding-left: 0; padding-right: 0; }
.g-ep--seance .g-ep-pied { padding-left: 0; padding-right: 0; }

/* ---------- carte illustrée */
.g-carte-scroll--img { overflow: auto; }
.g-carte-img { position: relative; width: 220%; max-width: 900px; margin: 0 auto; }
.g-carte-img img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.g-stop { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; cursor: pointer; }
.g-stop-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--paper); border: 2.5px solid var(--ink); color: var(--ink); box-shadow: 0 2px 6px rgba(28,26,23,.25); font-family: var(--font-zh); }
.g-stop.is-done .g-stop-n { background: var(--seal); border-color: var(--seal); color: var(--on-seal); transform: rotate(-6deg); border-radius: 8px; }
.g-stop.is-off .g-stop-n { border-color: var(--line-2); color: var(--ink-3); background: rgba(253,252,250,.85); }
.g-stop.is-now .g-stop-n { box-shadow: 0 0 0 4px rgba(193,56,44,.35), 0 2px 6px rgba(28,26,23,.25); animation: g-pulse 2.4s ease-in-out infinite; }
.g-stop-nom { font-size: 11px; font-weight: 600; color: var(--ink); background: rgba(253,252,250,.85); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.g-stop.is-off .g-stop-nom { color: var(--ink-2); }
@keyframes g-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(193,56,44,.35), 0 2px 6px rgba(28,26,23,.25); } 50% { box-shadow: 0 0 0 10px rgba(193,56,44,0), 0 2px 6px rgba(28,26,23,.25); } }
.g-semaine { display: grid; gap: 6px; }
.g-jours { display: flex; justify-content: space-between; gap: 4px; }
.g-jour { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; text-decoration: none; background: var(--surface); border: 2px solid var(--line-2); color: var(--ink-3); }
.g-jour.is-done { background: var(--seal); border-color: var(--seal); color: var(--on-seal); }
.g-jour.is-now { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.g-ligne { display: flex; align-items: flex-end; gap: var(--s-2); }
.g-ligne--xiaomo { flex-direction: row; }
.g-ligne:not(.g-ligne--xiaomo) { flex-direction: row-reverse; }
.g-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: var(--shadow); flex: none; background: var(--surface-2); }
.g-ligne .g-bulle { max-width: calc(100% - 64px); }
.g-ligne:not(.g-ligne--xiaomo) .g-bulle { justify-self: auto; }


/* ---------- le carnet de sceaux : rien ne doit ressembler à un composant standard.
   Étapes faites = cachet vermillon avec son caractère, étapes à venir = ébauche à l'encre grise, étiquettes = bandes de papier,
   carte du jour = bande de papier posée sur la page, sans ombre ni coins arrondis. Un seul sur-titre en capitales par écran. */
.g-sous { font-family: var(--font-display); font-size: var(--fs-14); color: var(--seal); letter-spacing: .02em; }
.g-jauge-k { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: var(--fs-13); }
.g-carte-img { width: max(220%, 100%); }
.g-carte-scroll--img { background: var(--paper); scrollbar-width: none; }
.g-carte-scroll--img::-webkit-scrollbar { display: none; }
.g-stop-n { width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-display); font-size: 14px; background: transparent; border: 1.5px dashed var(--ink-2); color: var(--ink-2); box-shadow: none; }
.g-stop.is-off .g-stop-n { background: transparent; border-color: var(--ink-3); color: var(--ink-3); opacity: .85; }
.g-stop.is-now .g-stop-n { border: 2.5px solid var(--ink); color: var(--ink); background: rgba(253,252,250,.7); animation: g-pulse 2.4s ease-in-out infinite; }
.g-stop.is-done .g-stop-n { width: 36px; height: 36px; border-radius: 6px; border: none; background: var(--seal); color: var(--on-seal); font-family: var(--font-zh); font-size: 20px; transform: rotate(-7deg); box-shadow: inset 0 0 0 2px rgba(255,253,249,.55), inset 0 0 0 3.5px var(--seal); opacity: .94; }
.g-stop-nom { font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 1px 3px 2px 4px; padding: 2px 8px; transform: rotate(-1deg); box-shadow: none; }
.g-stop:nth-child(odd) .g-stop-nom { transform: rotate(1deg); border-radius: 3px 1px 4px 2px; }
.g-stop.is-off .g-stop-nom { color: var(--ink-2); background: rgba(253,252,250,.8); border-style: dashed; }
.g-jour { width: 38px; height: 38px; border-radius: 50%; font-family: var(--font-display); font-size: 13px; background: transparent; border: 1.5px dashed var(--ink-3); color: var(--ink-3); }
.g-jour.is-now { border: 2.5px solid var(--ink); color: var(--ink); background: var(--surface); box-shadow: none; }
.g-jour.is-done { border: none; border-radius: 6px; background: var(--seal); color: var(--on-seal); font-family: var(--font-zh); font-size: 20px; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px rgba(255,253,249,.55), inset 0 0 0 3.5px var(--seal); }
.g-jour.is-done:nth-child(even) { transform: rotate(5deg); }
.g-jour.g-jour--coche { font-family: var(--font-calli), var(--font-display); font-size: 22px; }
.g-mission { border-radius: 2px 4px 3px 5px; box-shadow: none; background: var(--surface); border: 1px solid var(--line-2); transform: rotate(-.5deg); position: relative; }
.g-mission::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; opacity: .8; }
.g-mission-sur { font-family: var(--font-display); font-size: var(--fs-13); color: var(--seal); }
.g-mission-fleche { font-family: var(--font-display); }
.g-nav a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-14); color: var(--ink); }
.g-ico { width: 22px; height: 22px; color: var(--ink); }


/* ---------- les cérémonies : vidéo à l'encre plein écran, une phrase, un bouton pour passer */
.c-ecran { position: fixed; inset: 0; background: #1A1917; display: grid; place-items: center; z-index: 30; opacity: 0; transition: opacity .9s var(--e-out); }
.c-ecran.is-in { opacity: 1; }
.c-ecran.is-out { opacity: 0; transition: opacity 1s var(--e-in); }
.c-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .9s ease; }
.c-video.is-on { opacity: 1; }
.c-voile { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,25,23,.88) 0%, rgba(26,25,23,.4) 26%, transparent 50%); pointer-events: none; }
.c-texte { position: absolute; left: 50%; transform: translate(-50%, 8px); width: min(100% - 40px, 480px); bottom: calc(36px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; color: #F5F3EE; font-family: var(--font-display); font-size: clamp(15px, 4.4vw, 20px); line-height: 1.4; text-wrap: balance; overflow-wrap: anywhere; opacity: 0; transition: opacity .5s ease, transform .5s var(--e-out); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.c-texte.is-in { opacity: 1; transform: translate(-50%, 0); }
.c-passer { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); color: #F5F3EE; opacity: .8; }
.c-passer:hover { color: #fff; background: rgba(255,255,255,.12); }

/* ---------- la mue du dragon */
.g-mue { position: fixed; inset: 0; z-index: 25; background: var(--paper); display: grid; align-content: center; justify-items: center; gap: var(--s-3); padding: var(--s-6) var(--gutter); opacity: 0; transition: opacity .4s var(--e-out); }
.g-mue.is-on { opacity: 1; }
.g-mue-scene { position: relative; width: 240px; height: 260px; display: grid; place-items: end center; }
.g-mue-avant, .g-mue-apres { position: absolute; bottom: 0; max-width: 240px; max-height: 260px; filter: drop-shadow(0 8px 10px rgba(28,26,23,.25)); }
.g-mue.is-on .g-mue-avant { animation: g-dissout 1.4s var(--e-in) .3s forwards; }
.g-mue-apres { opacity: 0; transform: scale(.7); filter: blur(8px); }
.g-mue.is-on .g-mue-apres { animation: g-nait 1.2s var(--e-pop) 1.3s forwards; }
@keyframes g-dissout { to { opacity: 0; filter: blur(10px); transform: translateY(20px) scale(.9); } }
@keyframes g-nait { to { opacity: 1; transform: none; filter: drop-shadow(0 8px 10px rgba(28,26,23,.25)); } }
.g-mue-titre { font-family: var(--font-display); font-size: var(--fs-28); text-align: center; opacity: 0; animation: c-in .6s var(--e-out) 2.2s forwards; }
.g-mue-sous { color: var(--seal); font-family: var(--font-display); text-align: center; opacity: 0; animation: c-in .6s var(--e-out) 2.4s forwards; }
.g-mue-ok { opacity: 0; animation: c-in .6s var(--e-out) 2.8s forwards; min-width: 200px; }


/* ---------- les noms des étapes écrits sur la carte, comme sur une carte ancienne : pas de boîte, un halo de brume derrière l'encre.
   Le cercle est l'ancre ; le nom se pose à sa droite (à sa gauche près du bord droit). Étapes à venir : encre diluée, cercle au pinceau. */
.g-stop { width: 0; height: 0; transform: none; display: block; gap: 0; }
.g-stop-n { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); box-sizing: border-box; border: 1.5px solid var(--ink-2); border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%; background: rgba(245,243,238,.55); color: var(--ink-2); }
.g-stop.is-off .g-stop-n { border: 1.8px solid var(--ink); color: var(--ink-2); opacity: .7; background: rgba(245,243,238,.7); transform: translate(-50%, -50%) rotate(8deg); }
.g-stop.is-now .g-stop-n { transform: translate(-50%, -50%) rotate(-4deg); border: 2.5px solid var(--ink); color: var(--ink); background: rgba(245,243,238,.8); }
.g-stop.is-done .g-stop-n { transform: translate(-50%, -50%) rotate(-7deg); }
.g-stop-nom { position: absolute; left: 27px; top: 0; transform: translateY(-50%); white-space: nowrap; background: none; border: none; padding: 4px 6px; border-radius: 0; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .01em;
  text-shadow: 0 0 2px var(--paper), 0 0 4px var(--paper), 0 0 8px var(--paper), 0 0 12px var(--paper), 0 0 16px var(--paper); }
.g-stop-nom::before { content: ""; position: absolute; inset: -4px -8px; background: var(--paper); opacity: .82; filter: blur(9px); border-radius: 50%; z-index: -1; }
.g-stop:nth-child(odd) .g-stop-nom { transform: translateY(-50%) rotate(-1deg); border-radius: 0; }
.g-stop--gauche .g-stop-nom { left: auto; right: 27px; }
.g-stop.is-off .g-stop-nom { color: var(--ink-2); background: none; border: none; }
.g-stop.is-now .g-stop-nom::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--seal); opacity: .9; }
.g-stop-n, .g-stop-nom { z-index: 1; }
.g-stop-nom { z-index: 0; }


/* ---------- un seul nom sur la carte : celui de l'étape en cours. Les autres apparaissent deux secondes au toucher du cercle. */
.g-stop-nom { opacity: 0; pointer-events: none; transition: opacity .35s ease; text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 10px var(--paper); }
.g-stop-nom::before { opacity: .6; filter: blur(7px); }
.g-stop.is-now .g-stop-nom, .g-stop.is-montre .g-stop-nom { opacity: 1; }
.g-stop.is-off .g-stop-nom { color: var(--ink); }
.g-stop .g-stop-n { cursor: pointer; }


/* ---------- la clochette : couper ou remettre la musique, sur la carte et pendant les cérémonies */
.g-son-btn { appearance: none; border: none; background: transparent; cursor: pointer; width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--ink); border-radius: 50%; flex: none; margin-left: 4px; }
.g-son-btn:active { transform: scale(.94); }
.g-ico-son { width: 24px; height: 26px; }
.g-ico-barre, .c-son-barre { opacity: 0; transition: opacity var(--d-quick); }
.g-son-btn.is-off { color: var(--ink-3); }
.g-son-btn.is-off .g-ico-barre, .c-son.is-off .c-son-barre { opacity: 1; }
.c-son { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: calc(10px + env(safe-area-inset-left, 0px)); width: 44px; height: 44px; border: none; background: rgba(26,25,23,.35); border-radius: 50%; color: #F5F3EE; display: grid; place-items: center; cursor: pointer; opacity: .85; }
.c-son svg { width: 22px; height: 24px; }
.c-son.is-off { opacity: .6; }


/* ---------- en-tête et pied resserrés : la carte prend la place */
.g-carte-tete { padding: var(--s-2) var(--gutter) var(--s-1); align-items: center; }
.g-titre { min-width: 0; display: grid; gap: 0; }
.g-region { font-size: var(--fs-18); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-region .g-zh { font-size: var(--fs-15); }
.g-sous { font-size: var(--fs-12); line-height: 1.2; }
.g-jauge { min-width: 84px; }
.g-jauge-n { font-size: var(--fs-18); }
.g-jauge-k { font-size: var(--fs-12); }
.g-icones { display: flex; align-items: center; gap: 0; flex: none; }
.g-icones .g-son-btn { width: 38px; height: 38px; margin: 0; text-decoration: none; }
.g-icones .g-ico { width: 22px; height: 22px; }
.g-carte-pied { padding-top: var(--s-1); gap: var(--s-2); }
.g-jour { width: 34px; height: 34px; font-size: 12px; }
.g-jour.is-done { font-size: 18px; }
.g-mission { padding: var(--s-2) var(--s-3); }
.g-mission-sceau { width: 42px; height: 42px; font-size: 21px; }
.g-mission-titre { font-size: var(--fs-16); }
@media (max-width: 360px) { .g-jauge { display: none; } }

/* ---------- le HUD : quatre pastilles de papier posées sur la carte, en colonne à droite */
.g-carte { position: relative; }
.g-hud { position: absolute; right: 10px; top: 64px; z-index: 3; display: grid; gap: 8px; }
.g-hud .g-son-btn { width: 40px; height: 40px; margin: 0; background: rgba(253,252,250,.82); border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(28,26,23,.18); text-decoration: none; border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%; }
.g-hud .g-son-btn:nth-child(even) { transform: rotate(6deg); }
.g-hud .g-ico { width: 22px; height: 22px; }
:root[data-theme="dark"] .g-hud .g-son-btn { background: rgba(20,18,15,.78); border-color: var(--line-2); }
.g-region { font-size: var(--fs-20, 20px); }
.g-jauge { min-width: 96px; }
.g-mission-sur { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-mission > span:nth-child(2) { min-width: 0; }
/* sélecteur de langue du film d'ouverture (première entrée seulement), discret, en haut au centre */
.c-langues { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(26,25,23,.35); }
.c-langues button { appearance: none; border: 0; background: none; color: #F5F3EE; opacity: .6; font: 600 12px/1 var(--font-ui); letter-spacing: .08em; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.c-langues button[aria-pressed="true"] { opacity: 1; background: rgba(245,243,238,.18); }

/* ---------- tout le voyage : les cartes en miniature, en quinconce, reliées par le chemin rouge (du bas vers le haut) */
.v-voyage { display: grid; grid-template-rows: auto 1fr; height: 100dvh; background: var(--paper); }
.v-retour { font-size: 28px; line-height: 1; color: var(--ink-2); text-decoration: none; }
.v-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 56px var(--gutter) var(--s-6, 48px); }
.v-chemin { position: relative; max-width: 460px; margin: 0 auto; display: grid; gap: 28px; }
.v-chemin::before { content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 0; border-left: 3px dotted var(--seal); opacity: .55; transform: translateX(-50%); }
.v-region { position: relative; display: grid; grid-template-columns: 52% 1fr; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.v-region.v-droite { grid-template-columns: 1fr 52%; }
.v-region.v-droite .v-img { order: 2; }
.v-region.v-droite .v-nom { text-align: right; }
.v-img { position: relative; display: block; aspect-ratio: 1536 / 2752; max-width: 100%; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 6px 18px rgba(28,26,23,.14); }
.v-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-nom { position: relative; z-index: 1; background: var(--paper); padding: 6px 4px; }
.v-nom b { font-family: var(--font-display, var(--font-ui)); font-weight: 600; font-size: var(--fs-16, 16px); }
.v-nom small { display: block; color: var(--ink-2); font-size: var(--fs-12, 12px); letter-spacing: .06em; margin-top: 2px; }
.v-region.is-now .v-img { border: 3px solid var(--seal); box-shadow: 0 0 0 4px var(--seal-soft), 0 8px 22px rgba(28,26,23,.2); }
.v-ici { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: var(--seal); color: var(--on-seal); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.v-dragon { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 46%; }
.v-dragon img { width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(28,26,23,.35)); }
.v-sceau { position: absolute; right: 8px; top: 8px; font-family: var(--font-zh); font-size: 15px; color: var(--on-seal); background: var(--seal); padding: 4px 6px; border-radius: 3px; transform: rotate(-6deg); box-shadow: 0 2px 4px rgba(28,26,23,.25); }
.v-region.is-futur .v-img img { filter: grayscale(.6) blur(1.5px); opacity: .45; }
.v-region.is-futur .v-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 20%, var(--paper) 85%); opacity: .85; }
.v-avenir { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; color: var(--ink-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.v-region.is-futur .v-nom { opacity: .6; }
.v-region:focus-visible { outline: 2px solid var(--seal); outline-offset: 4px; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) { .v-region.is-now .v-img { animation: v-souffle 3.2s ease-in-out infinite; } }
@keyframes v-souffle { 50% { box-shadow: 0 0 0 7px var(--seal-soft), 0 8px 22px rgba(28,26,23,.2); } }
