/* Le parcours d'arrivée, les réglages, la confidentialité, l'installation et les cas à problème
   (app/tunnel.js). Mêmes couleurs et mêmes lettres que le reste de l'appli (app.css). */
.titre em { font-style: normal; color: var(--pink); display: block; }
.pousse { flex: 1 1 0 !important; min-height: 4px; }
.kicker.or { color: var(--gold); }
.kicker.entre { margin-top: 6px; }
.note.gauche { text-align: left; }
.lien.petit { font-size: 13px; padding: 10px 0 2px; }
.pas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pas li { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.pas b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 19px; background: linear-gradient(180deg, var(--teal), #3B9BFF); color: #0B0B1A; font: 400 20px/1 var(--num); }
.pas span { font: 600 15px/1.35 var(--body); color: var(--text); }
.bouton.large { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; font: 600 15px/1 var(--body); }
.bouton.large svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bouton.rouge { width: 100%; border-color: var(--pink); color: #FFC2DF; }

/* L'affiche d'arrivée : Alloy, la promesse et le bouton sur un premier écran ; le jeu en vidéo sur le suivant.
   C'est l'affiche qui défile (la vue, elle, reste fixe) : le premier écran fait juste la hauteur du téléphone. */
.affiche { flex: 1; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 26px; background: var(--ink); scrollbar-width: none; }
.affiche::-webkit-scrollbar { display: none; }
.heros { position: relative; height: 100%; min-height: 540px; display: flex; flex-direction: column; overflow: hidden; }
.heros .fond { position: absolute; left: 0; top: 0; width: 100%; height: 82%; object-fit: cover; object-position: center 10%; }
.heros::after { content: ""; position: absolute; left: 0; right: 0; top: 38%; bottom: 0; background: linear-gradient(180deg, rgba(11,11,26,0), rgba(11,11,26,.93) 44%, var(--ink) 62%); }
/* 0.78 : la boucle du jeu, posée exactement sur l'illustration ; elle s'y fond quand elle joue vraiment. Son action tient
   dans la bande du milieu (tools/video/accueil-remotion/src/Affiche.tsx) : le fondu du bas commence un peu plus bas. */
.heros .boucle { opacity: 0; transition: opacity .6s ease-out; background: transparent; }
.heros.boucle-joue .boucle { opacity: 1; }
.heros.boucle-joue::after { top: 46%; }
@media (prefers-reduced-motion: reduce) { .heros .boucle { transition: none; } }
.heros header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; padding: 12px; }
.heros .beta { margin: 4px 0 0; background: var(--ink); }
.heros .marque { position: absolute; left: 50%; top: 6px; width: 104px; height: 104px; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 4px 12px rgba(11,11,26,.65)); }
.promesse { position: relative; z-index: 1; margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 0 16px 6px; }
.promesse h1 { margin: 0; font: 400 clamp(34px, 11.6vw, 46px)/1.04 var(--num); letter-spacing: .01em; color: var(--text); }
.promesse h1 em { display: block; font-style: normal; color: var(--gold); text-shadow: 0 4px 0 var(--pink); }
.promesse p { margin: 0; font: 500 16px/1.45 var(--body); color: var(--text); }
.voir { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: -4px; border: 0; background: none; font: 600 14px/1 var(--body); color: var(--gold); cursor: pointer; }
.voir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* 0.78 : ce qu'il y a dedans, quatre blocs : une boucle (4:5), son titre, une ligne. */
.dedans { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 26px 16px 22px; }
.dedans .titre { align-self: center; text-align: center; font-size: 26px; }
.bloc { display: flex; flex-direction: column; gap: 8px; }
.bloc-video { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #17142F; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.bloc-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bloc h3 { margin: 6px 0 0; font: 400 24px/1.05 var(--sign); letter-spacing: .02em; color: var(--text); }
.bloc p { margin: 0; font: 500 16px/1.4 var(--body); color: var(--soft); }
.dedans .cta { flex: none; }
@media (prefers-reduced-motion: no-preference) { .anime .voir svg { animation: repere 1.6s ease-in-out infinite reverse; } }
.son-video { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(11,11,26,.6); color: var(--text); cursor: pointer; }
.son-video svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.son-video .ondes, .son-video[aria-pressed="true"] .barre { display: none; }
.son-video[aria-pressed="true"] .ondes { display: inline; }
.arrivee .cta b { font-size: 22px; }
.arrivee .cta span { padding: 0 12px; font-size: 10.5px; line-height: 1.25; letter-spacing: .08em; text-align: center; }

/* Le navigateur intégré : le repère montre où est le menu de l'appli. */
.repere { align-self: flex-end; display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 14px; border: 1.500px solid var(--gold); background: rgba(255,209,102,.08); font: 600 13px/1 var(--body); color: var(--gold); animation: repere 1.4s ease-in-out infinite; }
.repere span { margin-right: 6px; }
.repere[hidden] { display: none; }
/* Le toucher du bouton de sortie n'a rien fait : la consigne à la main prend le devant. */
.kicker.alerte { color: var(--gold); font-size: 14px; letter-spacing: .06em; }
.repere i { width: 5px; height: 5px; border-radius: 3px; background: var(--gold); }
.repere svg { width: 20px; height: 20px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes repere { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .repere { animation: none; } }

/* ---------- La main forte et le niveau de boxe (#main) ----------
   Refait en 0.75 (Aurélien, 18 novembre : « cet écran est très moche […] c'est quasiment le tout premier écran »).
   Une question en grand, la main forte : son titre aux couleurs du logo (jaune, ombre rose) posé sur deux grandes
   cartes à toucher, la gauche en lagon et la droite en rose (les couleurs que le jeu donne à chaque main).
   Remis dans l'ordre en 0.76 (Aurélien, après avoir joué la 0.75 : « ton niveau de boxe, qu'est-ce que ça fout
   au-dessus de ta main forte, surtout que c'est facultatif ») : UN titre en haut, la main forte, ses deux cartes (la
   carte touchée s'allume, l'autre s'efface) ; dessous, dans sa section, le niveau de boxe, facultatif (DEUX colonnes,
   quatre boutons de même hauteur, un mot par ligne) ; en bas, le bouton CONTINUER.
   Rien sous 14 points. Tout tient sur un écran à 360 × 640, dans les quatre langues (tools/e2e/tunnel.mjs). */
.jalons { display: flex; gap: 6px; }
.jalons i { flex: 1; height: 5px; border-radius: 3px; background: var(--line2); }
.jalons i.on { background: linear-gradient(90deg, var(--teal), #3B9BFF); }
.main-forte { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.main-forte .titre { font-size: clamp(25px, 7.2vw, 34px); line-height: 1.06; }
.main-forte .titre em { color: var(--gold); text-shadow: 0 3px 0 var(--pink); }
.main-forte .chapo { display: none; font: 500 15px/1.4 var(--body); text-wrap: balance; }
/* Les deux mains (0.78) : deux grandes touches côte à côte, la gauche à gauche (un bord épais dessous, qui s'enfonce
   au toucher), chacune un gant à la couleur de sa main et « MAIN GAUCHE » / « MAIN DROITE » en grand. Les cartes
   prennent la hauteur qui reste : l'écran n'a plus que la question, elles et le mot d'Alloy. */
.mains { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 220px; max-height: 440px; padding-bottom: 6px; }
.mains button { --main: var(--teal); --ombre: #0C6E66; --voile: rgba(46,230,214,.14); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; padding: 16px 8px 18px; border-radius: 24px; border: 2px solid var(--main);
  background: linear-gradient(180deg, var(--voile), rgba(22,20,46,0) 70%), var(--panel); box-shadow: 0 6px 0 var(--ombre); color: var(--text); cursor: pointer; transition: opacity .15s, box-shadow .15s; }
.mains button.droite { --main: var(--pink); --ombre: #8A1457; --voile: rgba(255,61,154,.15); }
.mains button:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ombre); }
.mains button.on { box-shadow: 0 6px 0 var(--ombre), 0 0 0 2px var(--main), 0 0 24px var(--voile), 0 0 30px var(--voile); }
.mains.choisie button:not(.on) { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .mains button { transition: none; } }
.mains .gant { flex: 1 1 auto; width: 100%; min-height: 0; max-height: 200px; overflow: visible; }
.mains .gant .poing, .mains .gant .poignet { fill: var(--main); stroke: #0B0B1A; stroke-width: 3; stroke-linejoin: round; }
.mains .gant .pouce { fill: none; stroke: #0B0B1A; stroke-width: 3; stroke-linecap: round; }
.mains .gant .pli { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 4; stroke-linecap: round; }
.mains .gant .bande { stroke: #0B0B1A; stroke-width: 3; opacity: .55; }
.mains b { display: block; max-width: 100%; font: 400 clamp(24px, 7.4vw, 32px)/1.02 var(--sign); text-transform: uppercase; text-align: center; text-wrap: balance; overflow-wrap: normal; }
.mains b.long { font-size: clamp(19px, 5.6vw, 28px); }   /* (0.86 : IZQUIERDA, ESQUERDA tiennent dans leur carte à 360 px) */
.mot.conseil { gap: 10px; }
.mot.conseil img { width: 40px; height: 40px; border-radius: 20px; }
.mot.conseil p { font: 500 14px/1.35 var(--body); color: var(--soft); }
/* Un écran haut (l'appli installée, un grand téléphone) : la raison de la question s'écrit sous le titre. */
@media (min-height: 760px) { .main-forte .chapo { display: block; } .mot.conseil p { font-size: 15px; } }
/* Un écran court (360 × 640) : le visage d'Alloy laisse sa place, « ça se change dans ton profil » reste sous les cartes. */
@media (max-height: 700px) { .mot.conseil img { display: none; } .mot.conseil p { text-align: center; text-wrap: balance; } .mains { min-height: 190px; } .mains .gant { max-height: 160px; } }

/* La victoire */
.fete { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 10px; }
.fete .titre { font-size: 34px; text-shadow: 0 3px 0 var(--pink); }
.etoiles.grand { gap: 10px; margin-top: 4px; }
.etoiles.grand i { width: 46px; height: 46px; }
.fete .score { margin: 0; }
.fete .score b { display: block; font: 400 84px/1 var(--num); color: var(--gold); text-shadow: 0 5px 0 #8A1457; letter-spacing: .02em; }
.fete .score span { font: 700 12px/1 var(--body); letter-spacing: .24em; color: var(--muted); }
.mot { display: flex; align-items: center; gap: 12px; }
.mot img { flex: none; width: 46px; height: 46px; border-radius: 23px; border: 2px solid var(--pink); object-fit: cover; }
.mot p { margin: 0; font: 600 15px/1.4 var(--body); }
.invite { border-color: var(--gold); }
.invite h3 { margin: 0; font: 400 15px/1.2 var(--sign); color: var(--gold); }
.invite p { margin: 4px 0 0; font-size: 13.500px; color: var(--soft); }

/* Réglages */
.groupe { display: flex; flex-direction: column; gap: 14px; }
.reglage { display: flex; flex-direction: column; gap: 8px; }
.reglage p { margin: 0; }
.reglage p b { display: block; font: 700 15px/1.2 var(--body); }
.reglage p span { display: block; margin-top: 2px; font-size: 12.500px; color: var(--muted); }
.choix.serre { display: grid; grid-template-columns: 1fr 1fr; }
.choix button { min-height: 40px; line-height: 1.15; }
.liens { display: flex; flex-direction: column; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.liens a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 14px 8px 16px; font: 600 14.500px/1.3 var(--body); }
.liens a + a { border-top: 1px solid var(--line); }
.liens svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; }

/* Confidentialité */
.prive { display: flex; gap: 14px; align-items: flex-start; }
.prive .picto { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(46,230,214,.12); }
.prive .picto svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prive .picto .trait { stroke: var(--pink); stroke-width: 2.400; }
.prive h3, .effacer h3 { margin: 0 0 4px; font: 400 15px/1.2 var(--sign); color: var(--gold); }
.prive p, .effacer p { margin: 0 0 6px; font-size: 13.500px; color: var(--soft); }
.prive p:last-child { margin-bottom: 0; }
.prive p b { color: var(--text); }
.bascule { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.bascule b { display: block; font: 700 15px/1.2 var(--body); }
.bascule small { display: block; margin-top: 2px; font-size: 12.500px; color: var(--muted); }
.bascule input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 54px; height: 32px; margin: 0; border-radius: 16px; background: var(--line2); cursor: pointer; transition: background .15s; }
.bascule input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 13px; background: var(--text); transition: transform .15s; }
.bascule input:checked { background: var(--teal); }
.bascule input:checked::after { transform: translateX(22px); }
.effacer { display: flex; flex-direction: column; gap: 8px; border-color: rgba(255,61,154,.5); }
.effacer h3 { color: #FF8FC4; }

/* Installer */
.vitrine { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.vitrine img { border-radius: 20px; box-shadow: 0 0 26px rgba(255,61,154,.45); }
.vitrine b { font: 600 13px/1 var(--body); color: var(--soft); }

/* Pas de réseau */
#reseau { margin: 0; padding: 8px 14px; background: #2A2148; border-top: 1px solid var(--gold); font: 600 13px/1.3 var(--body); color: var(--gold); text-align: center; }

/* Réglages et confidentialité, au plus près des maquettes : interrupteurs, rangées de choix, trois points. */
.groupe { gap: 16px; }
.inter { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.inter b { display: block; font: 600 16px/1.2 var(--body); }
.inter small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.inter input, .bascule input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 54px; height: 32px; margin: 0; border-radius: 16px; background: var(--line2); cursor: pointer; transition: background .15s; }
.inter input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 13px; background: var(--text); transition: transform .15s; }
.inter input:checked { background: var(--teal); }
.inter input:checked::after { transform: translateX(22px); }
.rang { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rang > b { font: 600 16px/1.2 var(--body); }
.rang .choix { flex: none; }
.rang .choix button { flex: none; min-width: 48px; padding: 9px 10px; font-size: 12.500px; }   /* (un mot court, « Left », restait trop étroit pour le pouce) */
.rang.long { flex-direction: column; align-items: stretch; gap: 8px; }
.rang.long .choix button { flex: 1; padding: 9px 2px; font-size: 12px; }
.points { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-direction: column; gap: 16px; }
.points li { display: flex; align-items: flex-start; gap: 14px; }
.points li > b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; border: 2px solid var(--teal); color: var(--teal); font: 400 14px/1 var(--sign); }
.points strong { display: block; font: 600 16px/1.25 var(--body); color: var(--text); }
.points span { font-size: 13.500px; line-height: 1.4; color: var(--muted); }
.lien.gris { color: var(--muted); }
.rang .choix { min-width: 0; }
.rang:not(.long) .choix button { padding: 9px 8px; }

/* ---------- Finitions (revue du 16 novembre) ---------- */
/* Un pouce demande 44 px : les liens en texte, les boutons discrets, le filtre et les cases à cocher. */
.lien, .discret { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.lien.petit { padding: 4px 0 0; }
.filtre { min-height: 44px; }
.coche { min-height: 44px; align-items: center; }
.chemin a::after { content: ""; position: absolute; inset: -9px; }
/* Sur un petit téléphone, une rangée de choix passe sous son nom au lieu de sortir de la carte. */
.rang { flex-wrap: wrap; }
.rang .choix { max-width: 100%; }
.rang:not(.long) .choix button { flex: 1 1 auto; }
/* Le pseudo du classement : la lettre d'enseigne est plus haute que sa ligne. */
.moi .nom { line-height: 1.2; }
/* Écran court (petit téléphone, ou navigateur d'une appli avec ses barres) : la victoire tient sans défiler. */
@media (max-height: 700px) {
  .fete { gap: 4px; padding-top: 0; }
  .fete .titre { font-size: 28px; }
  .etoiles.grand i { width: 34px; height: 34px; }
  .fete .score b { font-size: 60px; }
  .invite { padding: 10px 14px; }
}
/* Le visiteur sur ordinateur : le QR code, à droite de la colonne du jeu. */
.qr { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--gold); }
.qr-code { flex: none; width: 132px; height: 132px; border-radius: 10px; overflow: hidden; }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr h3 { margin: 0 0 4px; font: 400 15px/1.2 var(--sign); color: var(--gold); }
.qr p { margin: 0; font-size: 13.500px; color: var(--soft); }
.arrivee .qr { display: none; }
@media (min-width: 900px) {
  .arrivee .qr { display: flex; flex-direction: column; text-align: center; position: fixed; left: calc(50% + 264px); top: 50%; transform: translateY(-50%); width: 230px; padding: 18px; }
  .arrivee .qr-code { width: 190px; height: 190px; }
}
.lien { min-width: 44px; }
/* Profil, petit téléphone : les trois champs du corps gardent une largeur de pouce, l'unité se fait petite. */
.corps { gap: 6px; }
.corps .saisie { padding: 0 8px; gap: 2px; }
.corps .saisie input { min-width: 40px; }
.corps .saisie i { font-size: 11px; }

/* ---------- Animations (lot 2 de la revue de finitions) ----------
   Tout est sous la classe `anime`, posée par une seule ligne de tunnel.js : la retirer éteint tout.
   Légères (opacité et déplacement seulement, rien pendant un round : la page du jeu n'est pas concernée),
   et coupées pour qui a demandé « réduire les animations ». */
@media (prefers-reduced-motion: no-preference) {
  /* Un écran qui arrive : ses blocs montent de quelques pixels, l'un après l'autre. */
  .anime #vue.arrive > * { animation: entre .26s cubic-bezier(.2,.7,.3,1) both; }
  .anime #vue.arrive > :nth-child(2) { animation-delay: .04s; }
  .anime #vue.arrive > :nth-child(3) { animation-delay: .08s; }
  .anime #vue.arrive > :nth-child(4) { animation-delay: .12s; }
  .anime #vue.arrive > :nth-child(n+5) { animation-delay: .16s; }
  .anime #vue.arrive.plein > * { animation-name: parait; animation-duration: .35s; }
  @keyframes entre { from { opacity: 0; transform: translateY(10px); } }
  @keyframes parait { from { opacity: 0; } }
  /* Le bouton de l'affiche respire doucement : c'est le seul geste attendu sur cet écran. */
  /* Le halo du bouton de l'affiche : une ombre fixe sur un calque à part, dont seule l'opacité bouge (le bouton
     lui-même ne bouge pas : il reste facile à toucher, et rien n'est repeint à chaque image). */
  .anime .arrivee .cta { position: relative; }
  .anime .arrivee .cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 28px rgba(255,61,154,.85); opacity: 0; pointer-events: none; will-change: opacity; animation: appel 2.400s ease-in-out .8s infinite; }
  @keyframes appel { 50% { opacity: 1; } }
  .anime .arrivee .cta:active::before { animation: none; }
  /* La victoire : les étoiles tombent une à une, le score grossit, puis le reste. */
  .anime .fete .etoiles.grand i.on { animation: etoile .42s cubic-bezier(.3,1.6,.5,1) both; }
  .anime .fete .etoiles.grand i.on:nth-child(1) { animation-delay: .25s; }
  .anime .fete .etoiles.grand i.on:nth-child(2) { animation-delay: .45s; }
  .anime .fete .etoiles.grand i.on:nth-child(3) { animation-delay: .65s; }
  @keyframes etoile { from { opacity: 0; transform: scale(2.200) rotate(-25deg); } }
  .anime .fete .score b { animation: score .5s cubic-bezier(.3,1.4,.5,1) .85s both; }
  @keyframes score { from { opacity: 0; transform: scale(.6); } }
}

/* Sous la vidéo de l'affiche : comment ça marche, un dernier bouton, les pages publiques. */
.marche { display: flex; flex-direction: column; gap: 14px; padding: 10px 14px 20px; }
.marche .titre { font-size: 24px; }
.marche .cta { flex: none; margin-top: 4px; }
.legal { margin: 0; text-align: center; font: 500 12.500px/1.3 var(--body); color: var(--muted); }
.legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--muted); text-decoration: underline; }

/* ---------- Le profil en volets ----------
   En haut : qui est le joueur. Dessous : quatre volets fermés, qui disent chacun en une ligne ce qu'ils
   contiennent. Tout tient sur un écran sans défiler. */
.pro-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pro-tete .titre { overflow-wrap: anywhere; }
.pro-tete .pastille { flex: none; }
.volets { display: flex; flex-direction: column; gap: 8px; }
.volet { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.volet[open] { border-color: var(--line2); }
.volet summary { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px 10px 16px; cursor: pointer; list-style: none; }
.volet summary::-webkit-details-marker { display: none; }
.volet summary > span { flex: 1; min-width: 0; }
.volet summary b { display: block; font: 400 16px/1.2 var(--sign); }
.volet[open] summary b { color: var(--gold); }
.volet summary small { display: block; margin-top: 3px; font: 500 13px/1.3 var(--body); color: var(--muted); overflow-wrap: anywhere; }
.volet summary > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.volet[open] summary > svg { transform: rotate(180deg); }
.volet summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.a-faire { flex: none; padding: 5px 8px; border-radius: 8px; background: var(--gold); color: #1A0B1F; font: 700 10px/1 var(--body); font-style: normal; letter-spacing: .1em; }
.volet-corps { display: flex; flex-direction: column; gap: 12px; padding: 2px 14px 16px; }
.volet-corps .carte { background: var(--ink); }
.volet-corps .liens { background: var(--ink); }
.volet-corps .compte { gap: 10px; }
.volet-corps .discret { align-self: center; }
.pourquoi { margin: 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .anime .volet[open] .volet-corps { animation: entre .22s ease-out both; } }
/* TA BOXE (0.75) : la main forte et le niveau de boxe du joueur, sous ses trois chiffres, visibles sans rien ouvrir.
   Deux tuiles ; chacune dit ce qui est choisi, en jaune (la couleur de ce qui est choisi), et se change d'un toucher :
   le menu du téléphone s'ouvre dessus (un <select> transparent couvre la tuile, comme la langue sur l'affiche).
   Le point devant la main est sa couleur dans le jeu : lagon à gauche, rose à droite. Rien sous 14 points. */
.ta-boxe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.boxe-choix { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom fleche" "dit fleche"; align-items: center; gap: 4px; min-width: 0; min-height: 60px; padding: 9px 8px 9px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.boxe-choix > span { grid-area: nom; min-width: 0; font: 600 14px/1.15 var(--body); color: var(--muted); white-space: nowrap; }
.boxe-choix > b { grid-area: dit; min-width: 0; font: 400 14px/1.15 var(--sign); color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.boxe-choix.gauche > b::before, .boxe-choix.droite > b::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--teal); }
.boxe-choix.droite > b::before { background: var(--pink); }
.boxe-choix.vide > b { color: var(--text); }
.boxe-choix > svg { grid-area: fleche; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; }
.boxe-choix select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.boxe-choix:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.boxe-choix:active { background: #2A2148; }
/* La victoire : défier un ami, sous le mot d'Alloy. */
.defier { width: 100%; border-color: var(--teal); color: var(--teal); min-height: 50px; }
.defier:active { background: var(--teal); color: #0B0B1A; }
@media (max-height: 700px) { .defier { min-height: 44px; } .fete .kicker { display: none; } }
/* Un lien court (« Later ») reste large comme un pouce, même posé directement dans la vue. */
#vue .lien, #vue .discret { min-width: 44px; }
/* Mon compte : l'identifiant de l'appareil, discret, avec son bouton pour le copier. */
.appareil { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); }
.appareil > span { flex: 1; min-width: 0; }
.appareil b { display: block; font: 600 12px/1.2 var(--body); color: var(--muted); }
.appareil code { display: block; margin-top: 3px; font: 500 12px/1.3 ui-monospace, Menlo, monospace; color: var(--soft); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.appareil .bouton { flex: none; min-height: 44px; padding: 0 14px; font-size: 12px; }

/* La vidéo de l'affiche : un vrai bouton de lecture, visible tant qu'elle ne joue pas. */
.lecture { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 42px; border: 3px solid var(--text); background: rgba(11,11,26,.62); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 26px rgba(255,61,154,.6); }
.lecture svg { width: 40px; height: 40px; margin-left: 5px; fill: currentColor; }
.lecture:active { background: var(--pink); }
.cadre.joue .lecture { display: none; }
/* L'écran de sortie d'une appli (#navigateur) sur un écran court (360 × 640, ou les barres de l'appli en plus) :
   tout tient sans défiler, « Continuer ici quand même » compris, même quand le repère revient après un toucher
   sans effet. On resserre, on ne retire rien. */
@media (max-height: 700px) {
  #vue:has(> .repere) { gap: 10px; }
  #vue:has(> .repere) .repere { padding: 6px 10px; }
  #vue:has(> .repere) .titre { font-size: 27px; }
  #vue:has(> .repere) .chapo { font-size: 15px; line-height: 1.35; }
  #vue:has(> .repere) .kicker.entre { margin-top: 0; }
  #vue:has(> .repere) .pas { gap: 6px; }
  #vue:has(> .repere) .pas li { padding: 7px 12px; gap: 12px; }
  #vue:has(> .repere) .pas b { width: 30px; height: 30px; font-size: 17px; }
  #vue:has(> .repere) .pas span { font-size: 14.5px; line-height: 1.3; }
  #vue:has(> .repere) .bouton.large { min-height: 48px; }
  #vue:has(> .repere) .lien.centre { padding-top: 4px; padding-bottom: 4px; }
}
/* 0.81 : l'étiquette d'une nouveauté (« Filmer mes parties », dans les réglages et sur leur lien au profil). */
.nouveau { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--pink); color: #fff; font: 800 14px/1.2 var(--body); letter-spacing: .08em; vertical-align: middle; }
/* 0.81, l'arrivée en première scène (app/tunnel.js, arrivee) : qui parle, la phrase d'Alloy en gros, trois repères. */
.promesse.scene { gap: 10px; }
/* 0.81 (24 novembre) : la première scène. La vidéo du salon dans un cadre à elle, en haut, ENTIÈRE et sans rien
   par-dessus (le logo et la phrase la couvraient) ; le fond du cadre est la même image floutée. La phrase et le bouton
   viennent dessous. Le cadre prend toute la hauteur qui reste. */
.heros.scene { gap: 10px; padding-bottom: 4px; }
/* 0.83 (règle 4.52 ; Aurélien, 25 novembre) : Alloy en grand, dessinée, du bord haut jusqu'au titre (le BÊTA et le logo
   posés dessus), qui se fond dans le noir sous la phrase ; en bas à droite de l'image, le petit film du jeu, son image fixe
   tant qu'il ne joue pas. La vidéo du salon et les trois repères ont quitté la page. */
.heros.scene header { position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
.scene-alloy { position: relative; flex: 1 1 auto; min-height: 280px; margin: 0; overflow: hidden; }
.heros .scene-alloy .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 16%; }
.scene-alloy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,26,.5) 0, rgba(11,11,26,0) 14%, rgba(11,11,26,0) 62%, var(--ink) 100%); pointer-events: none; }
.scene-jeu { position: absolute; z-index: 1; right: 12px; bottom: 22px; width: 28%; max-width: 124px; display: grid; justify-items: center; gap: 6px; }
.heros .scene-jeu .boucle { opacity: 1; display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 2px solid var(--pink, #FF3D9A); box-shadow: 0 0 18px rgba(255,61,154,.55); background: #000; }
.scene-jeu span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(11,11,26,.82); font: 800 10px/1 var(--body); letter-spacing: .16em; color: var(--text); }
.scene-jeu span i { width: 7px; height: 7px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 8px #FF3B3B; }
.heros.scene .promesse { position: relative; z-index: 1; margin-top: -48px; }
.heros.scene::after { display: none; }
.heros.scene header { align-items: center; padding: 10px 16px 0; }
.heros.scene .beta { margin: 0; }
.heros.scene .marque { position: static; transform: none; width: 54px; height: 54px; }
.promesse .qui { margin: 0; font: 800 14px/1 var(--body); letter-spacing: .3em; color: var(--pink); }
.promesse.scene h1 { font-size: clamp(24px, 7.2vw, 30px); }
.promesse.scene h1 em { font-style: normal; color: var(--gold, #FFD166); text-shadow: 0 3px 0 var(--pink, #FF3D9A); }

/* 0.88 : la fin du chemin gratuit (app/fin.js) : les quatre quartiers cochés, en or. */
.fin-ville .quartiers-gagnes { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; gap: 8px; }
.fin-ville .quartiers-gagnes li { display: flex; align-items: center; gap: 10px; font-family: var(--titre, inherit); letter-spacing: .04em; }
.fin-ville .quartiers-gagnes svg { width: 22px; height: 22px; fill: none; stroke: var(--gold, #f5c84b); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fin-ville .mot-fin { max-width: 30ch; margin: 10px auto 0; line-height: 1.45; }

/* 0.87 : JE SUIS PRÊT collé en bas de l'affiche dès qu'aucun autre bouton d'entrée n'est à l'écran (app/tunnel.js,
   `arrivee_collant`). Il ne prend pas de place tant qu'il est caché : il glisse depuis le bas. (Quatre classes : la règle
   du halo, `.anime .arrivee .cta`, en a trois et le remettait en `position: relative`, sous l'écran.) */
.collant { position: sticky; bottom: 0; z-index: 3; height: 0; overflow: visible; pointer-events: none; }
.affiche .collant .cta.entrer { position: absolute; left: 12px; right: 12px; bottom: 12px; width: auto; min-height: 64px; opacity: 0; transform: translateY(24px); transition: opacity .25s ease-out, transform .25s ease-out; box-shadow: 0 6px 0 #8A1457, 0 -10px 30px rgba(11,11,26,.9); }
.affiche .collant.montre .cta.entrer { opacity: 1; transform: none; pointer-events: auto; }
.affiche .collant .cta.entrer b { font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .affiche .collant .cta.entrer { transition: none; } }
/* 27 novembre : venu du mail « Filme ton combat », la carte des vidéos se signale ; allumée, un bouton ramène au jeu. */
#film-carte.signale { border-color: #FFD166; box-shadow: 0 0 0 2px rgba(255, 209, 102, .35), 0 0 24px rgba(255, 61, 154, .25); }
#film-carte .film-jouer { margin-top: 12px; }

/* 0.89, la preuve sociale de l'affiche : la note des joueurs sous le titre, et leurs mots (ceux qu'ils ont permis
   d'afficher) sous les blocs. Rien ne se montre tant que la base n'a pas répondu (app/tunnel.js, src/avis.js). */
.promesse .preuve { margin: -4px 0 0; font: 600 14px/1.3 var(--body); color: var(--soft); }
.promesse .preuve b { font: 400 18px/1 var(--num); letter-spacing: .02em; color: var(--text); }
.promesse .preuve .etoile { color: var(--gold); }
.mots-joueurs { display: flex; flex-direction: column; gap: 12px; }
.mots-joueurs[hidden] { display: none; }
.mots-joueurs blockquote { margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.mots-joueurs blockquote p { margin: 0; font: 500 16px/1.45 var(--body); color: var(--text); }
.mots-joueurs footer { margin-top: 6px; color: var(--gold); letter-spacing: .12em; font-size: 13px; }

/* 4.135 (29 novembre, « La paire noire ») : à la place d'ALLONS-Y, deux moitiés de même hauteur. À gauche le badge
   officiel de Google Play (4.115), tel que Google le fournit (app/img/google-play) ; sa hauteur suit la moitié de la
   colonne (45 points à 360, 49 à 390). À droite « Jouer ici », notre bouton : noir et bordé de gris comme un badge de
   magasin pour faire la paire, le logo du club (jamais la pomme d'Apple), étiré à la hauteur du badge (la grille aligne
   les deux, sans aspect-ratio pour les vieux téléphones). Entre les deux, de 12 à 16 points selon la largeur : l'espace
   libre que Google demande (un quart de la hauteur du badge : 11 à 360, 12 à 390, 15,5 sur ordinateur) ; au-dessus et
   dessous, l'écart de la colonne (10) et 2 de plus. */
.promesse .paire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: clamp(12px, 3.6vw, 16px); margin: 2px 0; line-height: 0; }
.promesse .paire > a { display: block; border-radius: 9px; -webkit-tap-highlight-color: transparent; }
.promesse .paire > a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.promesse .paire .play img { display: block; width: 100%; height: auto; }
.promesse .paire .jouer { display: flex; align-items: center; gap: 6px; box-sizing: border-box; min-width: 0; padding: 0 6px 0 8px; background: #000; border: 1px solid #A6A6A6; color: #fff; text-decoration: none; line-height: 1; }
.promesse .paire .jouer:active { background: #1A1A1A; }
.promesse .paire .jouer img { flex: none; width: clamp(22px, 6.8vw, 30px); height: auto; border-radius: 50%; }
.promesse .paire .jouer span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promesse .paire .jouer small { font: 600 clamp(7px, 2.2vw, 9.5px)/1.1 system-ui, -apple-system, Roboto, sans-serif; letter-spacing: .05em; }   /* (le texte agrandi du téléphone : elle passe sur deux lignes) */
.promesse .paire .jouer small.iphone { font-size: clamp(7.5px, 2.4vw, 10px); font-weight: 500; letter-spacing: 0; }
.promesse .paire .jouer b { font: 600 clamp(15px, 4.9vw, 21px)/1.05 system-ui, -apple-system, Roboto, sans-serif; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legal .marque { display: block; margin-top: 2px; }   /* (4.115 : la mention de marque de Google, partout où le badge se voit) */
