/* HUIS CLOS — Accueil (js/screens/home.js), construit comme une application de jeux.
   Barre d'application collante, « Continuer », affiche de l'enquête gratuite, « Comment jouer » (trois tuiles), étagère
   de la Saison 1, « Tout débloquer ». Pilules, boutons ronds, cartes d'offre et dessins des étapes : css/screens.css
   (« Codes d'application »). Couleurs : jetons de tokens.css ; --acc = accent de l'enquête affichée (theme.accent),
   réservé au lieu, à l'année et aux lueurs.
   Mouvements : la composition sans animation est une image finale voulue (viseur verrouillé sur le voyant, « Cachette
   trouvée ! », étapes accomplies). Boucle complète sous .s-home.is-live (transformations et opacité) ; boucle en fondus
   sous .s-home.is-calm (mouvements réduits : opacité seule, rien ne se déplace ni ne change de taille) ; le bouton de
   l'affiche retire les deux (pause). Retour au toucher : .is-pressed (js/screens/common.js, pressFeedback). */

.s-home { --hm-pad: 16px; --poster: clamp(144px, 41vw, 172px); }
.s-home button { -webkit-tap-highlight-color: transparent; }

/* Le contenu fond au-dessus de la barre d'onglets : une bande dégradée posée sur la barre (pas de masque sur la zone
   qui défile, qui ferait recomposer toutes les boucles à chaque image). */
.s-home > .tabbar { position: relative; z-index: 2; }
.s-home > .tabbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; pointer-events: none;
  background: linear-gradient(to top, rgba(9, 13, 18, 0.92), rgba(9, 13, 18, 0)); }
/* overflow-x: clip : rien (texte réservé au lecteur d'écran, ombre, lueur) ne fait glisser la page de côté. */
.s-home .hm-page { position: relative; isolation: isolate; padding-bottom: 36px; overflow-x: clip; }
/* Lueur d'ambiance derrière l'affiche : la lampe de l'enquête, un reflet froid en haut à gauche. */
.s-home .hm-page::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 700px; pointer-events: none;
  background:
    radial-gradient(80% 46% at 50% 38%, rgba(230, 183, 124, 0.14), rgba(230, 183, 124, 0) 72%),
    radial-gradient(70% 34% at 0% 0%, rgba(141, 207, 216, 0.07), rgba(141, 207, 216, 0) 70%); }

/* ---------- Barre d'application ---------- */
.s-home .hm-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; min-height: 58px; padding: 7px 8px 7px var(--hm-pad);
  background: linear-gradient(to bottom, rgba(9, 13, 18, 0.94), rgba(9, 13, 18, 0.62) 64%, rgba(9, 13, 18, 0));
  transition: box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out); }
/* Collée : fond plein (rien ne transparaît sous la marque) et un filet. */
.s-home .hm-bar.is-stuck { background: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgba(0, 0, 0, 0.9); }
.s-home .hm-brand { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: inherit; font-weight: inherit; line-height: 1; color: var(--text); }
.s-home .hm-brand:focus { outline: none; }
/* L'icône de l'application (celle de l'écran d'accueil du téléphone), en tuile arrondie. */
.s-home .hm-appicon { width: 30px; height: 30px; flex: none; border-radius: 8px; box-shadow: 0 0 0 1px rgba(243, 238, 229, 0.14), 0 4px 10px -4px rgba(0, 0, 0, 0.8); }
.s-home .hm-word { font-family: var(--font-serif); font-size: 14px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.s-home .hm-word b { font-weight: 600; }

/* « Rejoindre » et Réglages : même verre, même hauteur visible (36 px) dans des cibles de 44 px. */
.s-home .hm-join, .s-home .hm-round { position: relative; isolation: isolate; flex: none; min-height: 44px; color: var(--text); }
.s-home .hm-join::before, .s-home .hm-round::before { content: ""; position: absolute; z-index: -1; inset: 4px 0; border-radius: 999px;
  background: rgba(243, 238, 229, 0.09); box-shadow: inset 0 0 0 1px rgba(243, 238, 229, 0.15);
  transition: background-color var(--t-press), transform var(--t-press) var(--ease-out); }
.s-home .hm-join { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; padding: 0 14px 0 11px; font-size: calc(14px * var(--scale)); font-weight: 600; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.s-home .hm-join svg { width: 18px; height: 18px; flex: none; color: var(--amber); }
.s-home .hm-round { width: 44px; display: grid; place-items: center; border-radius: 50%; }
.s-home .hm-round::before { inset: 4px; border-radius: 50%; }
.s-home .hm-round svg { width: 20px; height: 20px; }
.s-home .hm-join.is-pressed::before, .s-home .hm-join:active::before, .s-home .hm-round.is-pressed::before, .s-home .hm-round:active::before { background: rgba(243, 238, 229, 0.18); transform: scale(0.94); }
.s-home .hm-join:focus-visible, .s-home .hm-round:focus-visible { outline: none; }
.s-home .hm-join:focus-visible::before, .s-home .hm-round:focus-visible::before { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) {
  .s-home .hm-join:hover::before, .s-home .hm-round:hover::before { background: rgba(243, 238, 229, 0.14); }
}

/* ---------- Rangées ---------- */
.s-home .hm-row { margin-top: 28px; }
.s-home .hm-row-first { margin-top: 4px; }
.s-home .hm-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding: 0 var(--hm-pad); margin-bottom: 10px; }
.s-home .hm-row-t { min-width: 0; font-family: var(--font-sans); font-size: calc(19px * var(--scale)); font-weight: 700; line-height: 1.2; letter-spacing: -0.012em; color: var(--text); }
.s-home .hm-row-t:focus { outline: none; }
.s-home .hm-row-sub { color: var(--text); }
/* Lien de rangée (« Boutique › ») et titre-bouton (« Comment jouer › ») : cibles de 44 px, sans cadre. */
.s-home .hm-row-link { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 44px; min-height: 44px; margin: -7px -8px -7px 0; padding: 0 6px 0 10px; border-radius: 999px;
  color: var(--text-2); font-size: calc(14px * var(--scale)); font-weight: 600; white-space: nowrap; transition: opacity var(--t-press); }
.s-home .hm-row-link svg { width: 16px; height: 16px; flex: none; stroke-width: 2.2; }
.s-home .hm-row-btn { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; margin: -7px 0; padding: 0; border-radius: 8px; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; transition: opacity var(--t-press); }
.s-home .hm-row-btn svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--text-2); stroke-width: 2.4; }
.s-home .hm-row-link.is-pressed, .s-home .hm-row-link:active, .s-home .hm-row-btn.is-pressed, .s-home .hm-row-btn:active { opacity: 0.6; }
/* Étagère : position relative pour que les textes réservés au lecteur d'écran (position absolue) restent dedans ;
   6 px en haut pour l'anneau de focus des cartes, compensés par la marge. */
.s-home .hm-rail { position: relative; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 6px var(--hm-pad) 10px; margin-top: -4px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--hm-pad); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.s-home .hm-rail::-webkit-scrollbar { display: none; }
.s-home .hm-rail > li { flex: none; scroll-snap-align: start; }

/* ---------- Continuer ---------- */
.s-home .hm-cont { position: relative; width: min(340px, 92%); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(230, 183, 124, 0.17), rgba(20, 28, 38, 0) 62%), var(--surface);
  background: linear-gradient(120deg, color-mix(in srgb, var(--acc, #E6B77C) 17%, transparent), rgba(20, 28, 38, 0) 62%), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(230, 183, 124, 0.36), 0 18px 34px -22px rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc, #E6B77C) 36%, transparent), 0 18px 34px -22px rgba(0, 0, 0, 0.9);
  transition: transform var(--t-press) var(--ease-out); }
.s-home .hm-cont-list.is-single .hm-cont { width: 100%; }
.s-home .hm-cont.is-pressed { transform: scale(0.98); }
.s-home .hm-cont-cover { position: relative; width: 48px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(243, 238, 229, 0.12); }
.s-home .hm-cont-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-home .hm-cont-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.s-home .hm-cont-link { display: flex; flex-direction: column; min-width: 0; text-align: left; color: inherit; }
.s-home .hm-cont-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.s-home .hm-cont-link:focus-visible { outline: none; }
.s-home .hm-cont-link:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Une ligne pour le titre, une ligne pour l'avancement. */
.s-home .hm-cont-t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-serif); font-size: calc(17px * var(--scale)); font-weight: 500; line-height: 1.2; color: var(--text); }
.s-home .hm-cont-sub { margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); font-size: calc(12.5px * var(--scale)); font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.s-home .hm-cont-bar { position: relative; height: 4px; margin-top: 9px; border-radius: 2px; overflow: hidden; background: rgba(243, 238, 229, 0.14); }
.s-home .hm-cont-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: var(--acc, var(--amber)); }
.s-home .hm-cont-go { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--amber-ink);
  box-shadow: 0 10px 22px -8px rgba(230, 183, 124, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.s-home .hm-cont-go svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; stroke-width: 1.2; }

/* ---------- Affiche de l'enquête gratuite ---------- */
.s-home .hm-ft { position: relative; padding: 2px var(--hm-pad) 0; }
.s-home .hm-row-first + .hm-ft { margin-top: 20px; }
/* Hauteur : 4 : 5, mais jamais plus que ce qui laisse, au-dessus des onglets, « Comment jouer » entier et le haut des
   affiches de la Saison 1 (80 px environ ; les tuiles de « Comment jouer » grandissent avec la largeur : 21vw). Sans « Comment jouer » au-dessus (joueur habitué), l'affiche garde 4 : 5 ;
   avec « Continuer », elle se resserre pour que la Saison 1 dépasse encore. */
.s-home .hm-ft-card { position: relative; overflow: hidden; isolation: isolate; width: 100%; aspect-ratio: 4 / 5; min-height: 300px; border-radius: 26px; background: #06090D;
  max-height: calc(100vh - 362px - 21vw - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 362px - 21vw - var(--safe-top) - var(--safe-bottom));
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.95), 0 0 80px -24px rgba(230, 183, 124, 0.34);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.95), 0 0 80px -24px color-mix(in srgb, var(--acc, #E6B77C) 34%, transparent);
  cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
.s-home .hm-page.is-veteran .hm-ft-card { max-height: calc(100vh - 290px - var(--safe-top) - var(--safe-bottom)); max-height: calc(100dvh - 290px - var(--safe-top) - var(--safe-bottom)); }
.s-home .hm-page.is-veteran .hm-row-first + .hm-ft .hm-ft-card { max-height: calc(100vh - 460px - var(--safe-top) - var(--safe-bottom)); max-height: calc(100dvh - 460px - var(--safe-top) - var(--safe-bottom)); }
.s-home .hm-ft-card.is-pressed { transform: scale(0.985); }
/* Voile : sombre en bas sous le titre (contraste garanti), léger en haut sous le badge et la pause ; liseré de verre. */
.s-home .hm-ft-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(to top, rgba(6, 9, 13, 0.97) 0, rgba(6, 9, 13, 0.9) calc(118px * var(--scale)), rgba(6, 9, 13, 0.62) calc(176px * var(--scale)), rgba(6, 9, 13, 0.24) calc(222px * var(--scale)), rgba(6, 9, 13, 0) calc(258px * var(--scale))),
    linear-gradient(to bottom, rgba(6, 9, 13, 0.42), rgba(6, 9, 13, 0) 16%);
  box-shadow: inset 0 0 0 1px rgba(243, 238, 229, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
/* La couverture garde ses proportions (3 : 4), calée en haut : seul le bas, déjà sombre, est rogné. */
.s-home .hm-ft-art { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 3 / 4; }
.s-home .hm-ft-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-home .hm-ft-lamp { position: absolute; width: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0.9;
  background: radial-gradient(closest-side, rgba(255, 228, 176, 0.5), rgba(241, 203, 147, 0.16) 46%, rgba(241, 203, 147, 0) 100%); }
.s-home .hm-ft-lights i { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #FFE6B8;
  box-shadow: 0 0 5px 2px rgba(241, 203, 147, 0.8), 0 0 16px 5px rgba(230, 183, 124, 0.3); opacity: 0.85; }
.s-home .hm-ft-lights i:nth-child(3n) { opacity: 0.4; }
.s-home .hm-ft-lights i:nth-child(3n + 2) { opacity: 0.65; }

.s-home .hm-ft-badge { position: absolute; z-index: 3; top: 14px; left: 14px; display: inline-flex; align-items: center; min-height: 26px; padding: 4px 11px; border-radius: 999px;
  background: var(--amber); color: var(--amber-ink); font-size: calc(12.5px * var(--scale)); font-weight: 700; line-height: 1.2; letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7); }
.s-home .hm-ft-badge.is-going { background: rgba(9, 13, 18, 0.8); color: var(--text); box-shadow: inset 0 0 0 1px rgba(241, 203, 147, 0.5), 0 6px 16px -6px rgba(0, 0, 0, 0.7); }
/* Pause des animations : cible de 44 px, pastille de 28 px, discrète. */
.s-home .hm-ft-pause { position: absolute; z-index: 3; top: 5px; right: 5px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); isolation: isolate; }
.s-home .hm-ft-pause::before { content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: 50%; background: rgba(9, 13, 18, 0.55); box-shadow: inset 0 0 0 1px rgba(243, 238, 229, 0.18);
  transition: background-color var(--t-press), transform var(--t-press) var(--ease-out); }
.s-home .hm-ft-pause.is-pressed::before, .s-home .hm-ft-pause:active::before { background: rgba(9, 13, 18, 0.88); transform: scale(0.9); }
.s-home .hm-ft-pause svg { width: 10px; height: 10px; fill: currentColor; stroke-width: 1.2; opacity: 0.9; }
.s-home .hm-ft-pause:focus-visible { outline: none; }
.s-home .hm-ft-pause:focus-visible::before { outline: 2px solid var(--blue); outline-offset: 2px; }

.s-home .hm-ft-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 0 18px 18px; text-align: center; }
.s-home .hm-ft-place { font-size: calc(11px * var(--scale)); font-weight: 700; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc, var(--amber));
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6); }
.s-home .hm-ft-t { margin-top: 5px; font-family: var(--font-serif); font-size: calc(35px * var(--scale)); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; color: var(--text);
  text-wrap: balance; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65); }
.s-home .hm-ft-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin-top: 9px; color: var(--text-2); font-size: calc(13.5px * var(--scale)); font-weight: 500; line-height: 1.3; }
.s-home .hm-ft-meta span { white-space: nowrap; }
.s-home .hm-ft-meta i { width: 3px; height: 3px; flex: none; border-radius: 50%; background: var(--text-3); }
/* « Jouer » prend la place, « Infos » garde la sienne : « Nouvelle partie » tient aussi à 360 px de large. */
.s-home .hm-ft-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; margin-top: 16px; }
.s-home .hm-ft-actions .pill { min-height: 50px; }
.s-home .hm-ft-actions .pill-glass { padding: 0 18px 0 16px; background: rgba(243, 238, 229, 0.14); }
.s-home .hm-ft-actions.is-again .hm-ft-play { padding: 0 16px; }

/* Viseur de l'affiche : repère en pourcentage de la couverture (--sx, --sy). Composition fixe = viseur verrouillé. */
/* Au-dessus du voile du bas : sur une affiche basse (petit écran), « Cachette trouvée ! » reste lisible. */
.s-home .hm-scan { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.s-home .hm-glow { position: absolute; left: var(--sx); top: var(--sy); width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; opacity: 0.9;
  background: radial-gradient(closest-side, rgba(255, 241, 214, 0.95), rgba(241, 203, 147, 0.5) 30%, rgba(230, 183, 124, 0.16) 62%, rgba(230, 183, 124, 0) 100%); }
.s-home .hm-path { position: absolute; inset: 0; }
.s-home .hm-ret { position: absolute; left: var(--sx); top: var(--sy); width: 0; height: 0; }
.s-home .hm-ret-track, .s-home .hm-ret-lock, .s-home .hm-ping { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; }
.s-home .hm-ret-track { border: 1.6px dashed rgba(243, 238, 229, 0.8); background: rgba(9, 13, 18, 0.1); }
.s-home .hm-ret-lock { border: 3px solid var(--amber-2); box-shadow: 0 0 16px rgba(241, 203, 147, 0.5), inset 0 0 10px rgba(241, 203, 147, 0.22); }
.s-home .hm-ret-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: 0; }
.s-home .hm-ret-check { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--amber); color: var(--amber-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.s-home .hm-ret-check svg { width: 15px; height: 15px; }
.s-home .hm-ping { border: 2px solid var(--amber-2); opacity: 0; }
.s-home .hm-bars { position: absolute; left: -21px; top: 36px; display: flex; align-items: flex-end; gap: 3px; height: 22px; padding: 5px 8px; border-radius: 999px;
  background: rgba(9, 13, 18, 0.8); box-shadow: inset 0 0 0 1px rgba(243, 238, 229, 0.16); opacity: 0; }
.s-home .hm-bars i { width: 4px; border-radius: 1px; background: var(--amber); }
.s-home .hm-bars i:nth-child(1) { height: 4px; }
.s-home .hm-bars i:nth-child(2) { height: 7px; }
.s-home .hm-bars i:nth-child(3) { height: 10px; }
.s-home .hm-bars i:nth-child(4) { height: 12px; }
.s-home .hm-tag { position: absolute; left: -90px; top: 36px; width: 180px; display: flex; justify-content: center; }
.s-home .hm-tag b { display: flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(9, 13, 18, 0.84); box-shadow: inset 0 0 0 1px rgba(241, 203, 147, 0.55), 0 8px 18px -8px rgba(0, 0, 0, 0.8);
  color: var(--amber-2); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }

/* ---------- Comment jouer : trois tuiles dessinées, un mot chacune ---------- */
.s-home .hm-row.hm-how { margin-top: 22px; }
.s-home .hm-how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 var(--hm-pad); cursor: pointer; }
.s-home .hm-how-step { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; transition: transform var(--t-press) var(--ease-out); }
.s-home .hm-how-step.is-pressed { transform: scale(0.96); }
.s-home .hm-how-art.art-frame { aspect-ratio: 16 / 10; border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(141, 207, 216, 0.1), rgba(141, 207, 216, 0) 65%), var(--surface); }
.s-home .hm-how-art .art-num { top: 5px; left: 5px; width: 18px; height: 18px; font-size: 10.5px; }
.s-home .hm-how-label { margin-top: 7px; font-size: calc(13px * var(--scale)); font-weight: 600; line-height: 1.25; color: var(--text); }

/* Feuille « Comment jouer » (ouverte dans #overlays, hors de .s-home) : une carte par étape. */
.hm-how-sheet .hm-hs-steps { display: grid; gap: 10px; }
.hm-how-sheet .hm-hs-step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 20px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.hm-how-sheet .hm-hs-art { width: 96px; }
.hm-how-sheet .hm-hs-k { font-size: calc(12px * var(--scale)); font-weight: 700; line-height: 1.3; color: var(--amber); }
.hm-how-sheet .nw { white-space: nowrap; }
.hm-how-sheet .hm-hs-text h3 { margin-top: 2px; font-family: var(--font-sans); font-size: calc(16px * var(--scale)); font-weight: 700; line-height: 1.25; color: var(--text); }
.hm-how-sheet .hm-hs-text p { margin-top: 4px; color: var(--text-2); font-size: calc(var(--fs-body) * 0.84); line-height: 1.42; }
.hm-how-sheet .hm-hs-step .art-frame { background: radial-gradient(120% 90% at 50% 0%, rgba(141, 207, 216, 0.09), rgba(141, 207, 216, 0) 65%), var(--ink); }
.hm-how-sheet .hm-hs-notes { margin-top: 18px; }
.hm-how-sheet .hm-hs-notes li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: calc(var(--fs-body) * 0.88); line-height: 1.45; }
.hm-how-sheet .hm-hs-notes li:last-child { border-bottom: 0; }
.hm-how-sheet .hm-hs-notes svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--blue); }
.hm-how-sheet .hm-hs-notes b { color: var(--text); font-weight: 600; }

/* ---------- Saison 1 : affiches ---------- */
.s-home .hm-poster { width: var(--poster); display: flex; flex-direction: column; }
.s-home .hm-poster-btn { display: block; width: 100%; text-align: left; color: inherit; border-radius: 16px; transition: transform var(--t-press) var(--ease-out); }
.s-home .hm-poster-btn.is-pressed { transform: scale(0.96); }
.s-home .hm-poster-art { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 20px 30px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(243, 238, 229, 0.08); }
.s-home .hm-poster-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-home .hm-poster-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 9, 13, 0.5), rgba(6, 9, 13, 0) 24%),
    linear-gradient(to top, rgba(6, 9, 13, 0.96) 0, rgba(6, 9, 13, 0.74) 26%, rgba(6, 9, 13, 0) 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.s-home .hm-poster-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 0 11px 12px; }
.s-home .hm-poster-place { font-size: max(11px, calc(10.5px * var(--scale))); font-weight: 700; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc, var(--amber)); }
.s-home .hm-poster-t { margin-top: 3px; font-family: var(--font-serif); font-size: calc(17px * var(--scale)); font-weight: 500; line-height: 1.1; letter-spacing: -0.005em; color: var(--text); text-wrap: balance; }
.s-home .hm-poster-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-top: 9px; padding: 0 2px; color: var(--text-2); font-size: calc(12.5px * var(--scale)); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.s-home .hm-poster-meta i { width: 3px; height: 3px; flex: none; border-radius: 50%; background: var(--text-3); }
.s-home .hm-poster-left { color: var(--blue); font-weight: 600; }
.s-home .hm-poster-act { display: flex; margin-top: 4px; min-height: 44px; }
.s-home .hm-poster-btn:focus-visible { outline: none; }
.s-home .hm-poster-btn:focus-visible .hm-poster-art { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (hover: hover) {
  .s-home .hm-poster-btn:hover .hm-poster-art { box-shadow: 0 24px 34px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(230, 183, 124, 0.5);
    box-shadow: 0 24px 34px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px color-mix(in srgb, var(--acc, #E6B77C) 50%, transparent); }
}

/* Badge d'accès : toujours un mot (jamais la seule couleur), sauf le Cercle, dit par « Jouer » et au lecteur d'écran. */
.s-home .hm-badge { position: absolute; z-index: 1; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 16px); min-height: 24px; padding: 3px 9px;
  border-radius: 999px; background: rgba(9, 13, 18, 0.8); border: 1px solid rgba(243, 238, 229, 0.18); color: var(--text);
  font-size: calc(12px * var(--scale)); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-home .hm-badge:empty { display: none; }
.s-home .hm-badge.is-dot { width: 26px; height: 26px; min-height: 0; padding: 0; justify-content: center; }
.s-home .hm-badge span { overflow: hidden; text-overflow: ellipsis; }
.s-home .hm-badge svg { width: 13px; height: 13px; flex: none; stroke-width: 2.2; }
.s-home .hm-poster[data-access="owned"] .hm-badge svg, .s-home .hm-poster[data-access="open"] .hm-badge svg { color: var(--success); }
.s-home .hm-poster[data-access="cercle"] .hm-badge svg { color: var(--amber); }
.s-home .hm-poster[data-access="pass"] .hm-badge svg { color: var(--blue); }
.s-home .hm-poster[data-access="soon"] .hm-poster-art img { opacity: 0.45; filter: saturate(0.6); }

/* ---------- Tout débloquer ---------- */
.s-home .hm-offers { display: grid; gap: 10px; padding: 0 var(--hm-pad); }

/* ---------- Animations ---------- */
/* Entrée : l'affiche puis les rangées montent (au premier affichage de la session seulement, sans rien masquer si
   elles ne jouent pas). */
@keyframes hm-enter { from { opacity: 0; transform: translateY(16px); } }
.s-home.hm-intro .hm-ft-card { animation: hm-enter 720ms var(--ease-out) 40ms backwards; }
.s-home.hm-intro .hm-row { animation: hm-enter 640ms var(--ease-out) 160ms backwards; }

/* Affiche : la lampe respire, les voyants du standard clignotent (opacité seule : aussi en mouvements réduits). */
@keyframes hm-lamp { 0%, 100% { opacity: 0.72; } 38% { opacity: 1; } 44% { opacity: 0.8; } 50% { opacity: 0.97; } 72% { opacity: 0.86; } }
@keyframes hm-light { 0%, 100% { opacity: 0.12; } 50% { opacity: 1; } }
.s-home:is(.is-live, .is-calm) .hm-ft-lamp { animation: hm-lamp 5.2s ease-in-out infinite; }
.s-home:is(.is-live, .is-calm) .hm-ft-lights i { animation: hm-light calc(1.8s + var(--k, 0) * 0.37s) ease-in-out calc(var(--k, 0) * -0.61s) infinite; }

/* Viseur, boucle de 8 s : il part de la lampe (0-7 %), balaie le standard pendant que les barres montent (7-52 %),
   se verrouille sur le voyant (52-60 %), coche et ondes (60-66 %), « Cachette trouvée ! » (66-90 %), puis s'efface. */
@keyframes hm-path {
  0% { opacity: 0; transform: translate(-27%, 17%); }
  7% { opacity: 1; transform: translate(-27%, 17%); animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1); }
  30% { transform: translate(24%, 10%); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  52% { transform: translate(0, 0); }
  90% { opacity: 1; transform: translate(0, 0); }
  96%, 100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes hm-track { 0% { transform: rotate(0deg); } 52%, 100% { transform: rotate(200deg); } }
@keyframes hm-lock { 0%, 52% { opacity: 0; transform: scale(1.5); } 60%, 100% { opacity: 1; transform: scale(1); } }
@keyframes hm-dot { 0%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes hm-check { 0%, 59% { opacity: 0; transform: scale(0.3); } 63% { opacity: 1; transform: scale(1.15); } 66%, 100% { opacity: 1; transform: scale(1); } }
@keyframes hm-ping { 0%, 59% { opacity: 0; transform: scale(0.8); } 60% { opacity: 0.95; transform: scale(0.9); } 76%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes hm-ping-2 { 0%, 63% { opacity: 0; transform: scale(0.8); } 64% { opacity: 0.8; transform: scale(0.9); } 82%, 100% { opacity: 0; transform: scale(3.1); } }
@keyframes hm-bars { 0%, 6% { opacity: 0; } 10%, 55% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes hm-b1 { 0%, 12% { opacity: 0.25; } 14%, 100% { opacity: 1; } }
@keyframes hm-b2 { 0%, 24% { opacity: 0.25; } 26%, 100% { opacity: 1; } }
@keyframes hm-b3 { 0%, 36% { opacity: 0.25; } 38%, 100% { opacity: 1; } }
@keyframes hm-b4 { 0%, 47% { opacity: 0.25; } 49%, 100% { opacity: 1; } }
@keyframes hm-tag { 0%, 62% { opacity: 0; transform: translateY(-6px) scale(0.92); } 67%, 100% { opacity: 1; transform: none; } }
@keyframes hm-glow { 0%, 8% { opacity: 0.35; transform: scale(0.8); } 52% { opacity: 0.8; transform: scale(1); } 60% { opacity: 1; transform: scale(1.3); } 66%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0.35; transform: scale(0.8); } }
.s-home.is-live .hm-path { animation: hm-path 8s linear infinite; }
.s-home.is-live .hm-ret-track { animation: hm-track 8s var(--ease-in-out) infinite; }
.s-home.is-live .hm-ret-lock { animation: hm-lock 8s var(--ease-out) infinite; }
.s-home.is-live .hm-ret-dot { animation: hm-dot 8s linear infinite; }
.s-home.is-live .hm-ret-check { animation: hm-check 8s var(--ease-out) infinite; }
.s-home.is-live .hm-ping { animation: hm-ping 8s var(--ease-out) infinite; }
.s-home.is-live .hm-ping-2 { animation-name: hm-ping-2; }
.s-home.is-live .hm-bars { animation: hm-bars 8s linear infinite; }
.s-home.is-live .hm-bars i:nth-child(1) { animation: hm-b1 8s linear infinite; }
.s-home.is-live .hm-bars i:nth-child(2) { animation: hm-b2 8s linear infinite; }
.s-home.is-live .hm-bars i:nth-child(3) { animation: hm-b3 8s linear infinite; }
.s-home.is-live .hm-bars i:nth-child(4) { animation: hm-b4 8s linear infinite; }
.s-home.is-live .hm-tag { animation: hm-tag 8s var(--ease-out) infinite; }
.s-home.is-live .hm-glow { animation: hm-glow 8s ease-in-out infinite; }

/* Mouvements réduits : la même boucle de 8 s en fondus, sur place. Le viseur apparaît sur le voyant (recherche : anneau
   pointillé, point, barres du signal qui s'allument une à une), l'anneau doré se ferme en fondu (signal), la coche puis
   « Cachette trouvée ! » apparaissent, et tout s'efface avant de reprendre. Aucune translation, aucun changement de taille. */
@keyframes hm-path-calm { 0% { opacity: 0; } 6%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hm-lock-calm { 0%, 50% { opacity: 0; } 57%, 100% { opacity: 1; } }
@keyframes hm-check-calm { 0%, 58% { opacity: 0; } 63%, 100% { opacity: 1; } }
@keyframes hm-tag-calm { 0%, 63% { opacity: 0; } 69%, 100% { opacity: 1; } }
@keyframes hm-glow-calm { 0%, 8% { opacity: 0.3; } 52% { opacity: 0.7; } 60%, 90% { opacity: 1; } 100% { opacity: 0.3; } }
.s-home.is-calm .hm-path { animation: hm-path-calm 8s linear infinite; }
.s-home.is-calm .hm-ret-lock { animation: hm-lock-calm 8s ease-in-out infinite; }
.s-home.is-calm .hm-ret-dot { animation: hm-dot 8s linear infinite; }
.s-home.is-calm .hm-ret-check { animation: hm-check-calm 8s ease-in-out infinite; }
.s-home.is-calm .hm-bars { animation: hm-bars 8s linear infinite; }
.s-home.is-calm .hm-bars i:nth-child(1) { animation: hm-b1 8s linear infinite; }
.s-home.is-calm .hm-bars i:nth-child(2) { animation: hm-b2 8s linear infinite; }
.s-home.is-calm .hm-bars i:nth-child(3) { animation: hm-b3 8s linear infinite; }
.s-home.is-calm .hm-bars i:nth-child(4) { animation: hm-b4 8s linear infinite; }
.s-home.is-calm .hm-tag { animation: hm-tag-calm 8s ease-in-out infinite; }
.s-home.is-calm .hm-glow { animation: hm-glow-calm 8s ease-in-out infinite; }

/* Filet de sécurité si la préférence change avant que l'écran ne la relise : la boucle complète s'arrête (la boucle en
   fondus, faite pour les mouvements réduits, continue). */
:root[data-motion="reduced"] .s-home.is-live *, :root[data-motion="reduced"] .s-home.is-live *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .s-home.is-live *, :root:not([data-motion="full"]) .s-home.is-live *::after { animation: none !important; }
}

/* ---------- Petits écrans, texte agrandi, tablette ---------- */
@media (max-width: 360px) {
  .s-home .hm-ft-t { font-size: calc(31px * var(--scale)); }
  .s-home .hm-word { letter-spacing: 0.18em; }
}
@media (max-height: 760px) {
  .s-home .hm-ft-t { font-size: calc(31px * var(--scale)); }
  .s-home .hm-ft-actions { margin-top: 13px; }
  .s-home .hm-ft-body { padding-bottom: 16px; }
}
:root[data-text="large"] .s-home { --poster: clamp(152px, 43vw, 184px); }
:root[data-text="xl"] .s-home { --poster: clamp(166px, 49vw, 200px); }
/* Texte très grand : « Rejoindre » devient une icône (cible de 44 px), le nom de la saison passe sur sa ligne et
   « Boutique » devient un chevron (son nom reste dit au lecteur d'écran). */
:root[data-text="xl"] .s-home .hm-join { padding: 0; width: 44px; }
:root[data-text="xl"] .s-home .hm-join span { display: none; }
:root[data-text="xl"] .s-home .hm-row-dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-text="xl"] .s-home .hm-row-sub { display: block; margin-top: 1px; color: var(--text-2); font-size: calc(13px * var(--scale)); font-weight: 600; letter-spacing: 0; }
:root[data-text="xl"] .s-home .hm-row-link { padding: 0; margin-right: -10px; }
:root[data-text="xl"] .s-home .hm-row-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-text="xl"] .s-home .hm-row-link svg { width: 20px; height: 20px; }
:root[data-text="xl"] .s-home .hm-ft-card { max-height: none; aspect-ratio: 10 / 16; }
:root[data-text="large"] .s-home .hm-ft-card { min-height: 380px; }
:root[data-text="xl"] .s-home .hm-ft-actions { grid-template-columns: 1fr; }
:root[data-text="xl"] .s-home .hm-how-label { font-size: calc(12px * var(--scale)); }
:root[data-text="xl"] .hm-how-sheet .hm-hs-step { grid-template-columns: 1fr; }
.stage.wide .s-home .hm-page { max-width: 760px; margin: 0 auto; }
.stage.wide .s-home .hm-ft-card { aspect-ratio: 16 / 10; max-height: 460px; }
.stage.wide .s-home .hm-ft-art { width: 62%; left: auto; right: 0; }
.stage.wide .s-home .hm-ft-card::after { background: linear-gradient(to right, rgba(6, 9, 13, 0.98) 0%, rgba(6, 9, 13, 0.9) 34%, rgba(6, 9, 13, 0.2) 58%, rgba(6, 9, 13, 0) 70%); }
.stage.wide .s-home .hm-ft-body { right: auto; top: 0; width: 46%; justify-content: flex-end; align-items: flex-start; padding: 28px; text-align: left; }
.stage.wide .s-home .hm-ft-meta { justify-content: flex-start; }
.stage.wide .s-home .hm-offers { grid-template-columns: 1fr 1fr; }
.stage.wide .s-home .hm-how-steps { max-width: 560px; }
