/* La note d'une séance de « La boxe en 30 jours » (src/seance-jeu.js) : par-dessus le jeu, lisible à deux mètres.
   Une idée par ligne, des mots géants, un seul rond pour continuer, à hauteur d'épaule (règles 4.1 et 4.2).
   0.76 : refaite comme la fin du premier round. La composition (`.fin` : la tête, la zone du rond du côté de la main
   forte, le pied ; le voile uni, le panneau sous le canevas des ronds) est dans premier.css, commune aux deux
   écrans ; ici, seulement ce qui est propre à la note : son titre plus petit, les étoiles, les mots, le palier. */
#seance-bilan h1 { font-size: clamp(46px, 16vw, 72px); line-height: .94; }
#seance-bilan .tete::after { display: none; }
#seance-bilan .etoiles { display: flex; gap: 10px; margin: 12px 0 0; }
#seance-bilan .etoiles i { width: 50px; height: 50px; background: #3B3670; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 81% 98%, 50% 77%, 19% 98%, 29% 61%, 0 38%, 37% 35%); }
#seance-bilan .etoiles i.on { background: var(--gold); }
/* (le pied de la note est centré dans le bas de l'écran, comme la phrase d'Alloy à la fin du premier round : une note
   de deux lignes ne laisse pas la moitié de l'écran vide sous elle ; une note pleine remplit cette bande, et commence
   alors sous le mot écrit sous le rond, « LE PROGRAMME ») */
#seance-bilan .pied { align-self: center; gap: 0; padding-top: 14px; }
#seance-bilan ul { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
#seance-bilan li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 12px 8px; border-radius: 12px; background: rgba(11,11,26,.82); border: 1px solid rgba(46,230,214,.5); }
#seance-bilan li span { font: 800 19px/1.1 var(--display); letter-spacing: .03em; color: #fff; text-align: left; }
#seance-bilan li b { font: 800 19px/1.1 var(--display); letter-spacing: .03em; color: var(--blue); text-align: right; white-space: nowrap; }
#seance-bilan li.bas { border-color: rgba(255,209,102,.6); }
#seance-bilan li.bas b { color: var(--gold); }
#seance-bilan .palier { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
#seance-bilan .palier i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--gold); font: 400 22px/1 "Anton", var(--display); font-style: normal; color: var(--gold); }
#seance-bilan .palier img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255,209,102,.55)); }
#seance-bilan .palier b { font: 800 19px/1.1 var(--display); letter-spacing: .03em; color: var(--gold); }
#seance-bilan .demain { margin: 12px 0 0; font: 700 15px/1.25 var(--body); letter-spacing: .06em; color: rgba(255,255,255,.86); }
@media (max-height: 700px) {
  #seance-bilan .palier img { width: 72px; height: 72px; }
  #seance-bilan h1 { font-size: clamp(38px, 13vw, 54px); }
  #seance-bilan .etoiles { margin-top: 8px; }
  #seance-bilan .etoiles i { width: 38px; height: 38px; }
  #seance-bilan li { padding: 6px 10px 5px; }
  #seance-bilan li span, #seance-bilan li b { font-size: 16px; }
}
/* L'écran de départ d'une séance : comme le premier round, sans « filmer ma partie ». */
html.seance #home .home-inner > #clip-choix#clip-choix#clip-choix { display: none !important; }
/* ── Ce que la séance écrit par-dessus le jeu (src/seance-jeu.js, 0.76) : la leçon de la garde, la règle d'un
   exercice, le repos entre les deux rounds, une correction. Lisible à trois mètres ; rien sous 14 px ; rien ne sort
   de l'écran à 360 de large, dans les quatre langues (tools/e2e/seance-ecrans.mjs). Aucun fond posé sur un rond. */
/* (à 104 du haut : sous la croix, l'engrenage et l'avertissement « détection lente », quand il paraît) */
#seance-mots { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 104px); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 14px; box-sizing: border-box; text-align: center; pointer-events: none; }
#seance-mots > b { max-width: 100%; font: 400 clamp(54px, 19vw, 88px)/.92 "Anton", var(--display); color: var(--gold); text-shadow: 0 4px 0 #0B0B1A, 0 0 22px rgba(11,11,26,.8); overflow-wrap: anywhere; }
#seance-mots > span { max-width: 100%; font: 800 clamp(22px, 7vw, 32px)/1.05 var(--display); letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 #0B0B1A, 0 0 14px rgba(11,11,26,.9); }
/* Une barre : sa piste, et ce qui la remplit (la leçon) ou la vide (le repos). */
#seance-mots u { display: block; width: min(78%, 320px); height: 12px; margin-top: 6px; border-radius: 6px; background: rgba(11,11,26,.72); box-shadow: 0 0 0 1px rgba(255,255,255,.35); overflow: hidden; text-decoration: none; }
#seance-mots u i { display: block; height: 100%; border-radius: 6px; background: var(--gold); transform-origin: left center; }
@keyframes seance-vide { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* La leçon de la garde (jour 1) : deux lignes que le jeu coche, et une barre qui se remplit tant que tout est bon. */
#seance-mots.garde .point { display: flex; align-items: center; gap: 10px; max-width: 100%; margin: 0; padding: 6px 16px 5px 7px; box-sizing: border-box; border-radius: 24px; background: rgba(11,11,26,.8); border: 2px solid rgba(255,255,255,.38); }
#seance-mots.garde .point span { min-width: 0; font: 800 clamp(20px, 6.3vw, 27px)/1.04 var(--display); letter-spacing: .03em; color: #fff; text-align: left; overflow-wrap: anywhere; }
#seance-mots.garde .point i { position: relative; flex: none; width: 32px; height: 32px; box-sizing: border-box; border-radius: 16px; border: 3px solid rgba(255,255,255,.55); }
#seance-mots.garde .point.ok { border-color: var(--gold); }
#seance-mots.garde .point.ok i { border-color: var(--gold); background: var(--gold); }
#seance-mots.garde .point.ok i::after { content: ""; position: absolute; left: 9px; top: 3px; width: 7px; height: 14px; border: solid #0B0B1A; border-width: 0 4px 4px 0; transform: rotate(45deg); }
#seance-mots.garde .point.non { border-color: var(--danger); background: rgba(60,8,28,.88); }
#seance-mots.garde .point.non i { border-color: var(--danger); background: var(--danger); }
#seance-mots.garde .point.non i::before, #seance-mots.garde .point.non i::after { content: ""; position: absolute; left: 4px; top: 11px; width: 18px; height: 4px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
#seance-mots.garde .point.non i::after { transform: rotate(-45deg); }
#seance-mots.garde u i { transform: scaleX(0); transition: transform .18s linear; }
/* (le mot un peu moins grand qu'au repos : les deux lignes comptent) */
#seance-mots.garde > b { font-size: clamp(46px, 15.5vw, 68px); }

/* La règle d'un exercice (« L'AUTRE POING AU MENTON ») : sous le compte, tant que l'exercice dure. */
#seance-mots.regle { gap: 4px; }
#seance-mots.regle > span { padding: 5px 12px 3px; border-radius: 10px; background: rgba(11,11,26,.66); font: 400 clamp(21px, 6.4vw, 29px)/1.06 "Anton", var(--display); letter-spacing: .02em; text-shadow: 0 2px 0 #0B0B1A; overflow-wrap: anywhere; }

/* Le repos entre les deux rounds : RESPIRE, le décompte, et le rond CONTINUER du côté de la main forte (dessiné
   par le jeu sur l'emplacement `.doigt`, qui est aussi sa touche au doigt). */
#seance-mots.repos .zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 420px; margin-top: 10px; }
#seance-mots.repos.a-gauche .zone { flex-direction: row-reverse; }
#seance-mots.repos .attente { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#seance-mots.repos .attente em { font: 400 clamp(58px, 18vw, 78px)/.9 "Anton", var(--display); font-style: normal; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 4px 0 #0B0B1A, 0 0 18px rgba(11,11,26,.85); }
#seance-mots.repos .attente u { width: min(100%, 190px); }
#seance-mots.repos .attente u i { animation: seance-vide linear forwards; }
#seance-mots.repos .attente p { margin: 8px 0 0; }
#seance-mots.repos .attente p b { display: block; font: 800 19px/1.08 var(--display); letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 #0B0B1A, 0 0 12px rgba(11,11,26,.9); }
#seance-mots.repos .attente p span { display: block; margin-top: 5px; font: 700 15px/1.2 var(--body); letter-spacing: .03em; color: var(--gold); text-shadow: 0 1px 0 #0B0B1A, 0 0 10px rgba(11,11,26,.9); }
/* Pendant le repos on ne boxe pas : ni la suite de coups du bas, ni les points de l'entre-deux, ni le score ne se montrent. */
html.seance-repos #lane, html.seance-repos .points, html.seance-repos .verdict, html.seance-repos .score b, html.seance-repos .combo { visibility: hidden; }
#seance-mots.repos .doigt { flex: none; width: min(144px, 40vw); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Une correction de la garde ou des appuis : deux lignes géantes, trois secondes, à hauteur du bassin (ni sur les
   cibles, ni sur la suite de coups du bas). */
#seance-corrige { position: absolute; left: 0; right: 0; top: 55%; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0; padding: 0 12px; box-sizing: border-box; text-align: center; pointer-events: none; animation: seance-corrige 3.2s ease-out forwards; }
#seance-corrige b { max-width: 100%; padding: 5px 14px 2px; border-radius: 12px; background: var(--danger); box-shadow: 0 4px 0 #0B0B1A; font: 400 clamp(38px, 12.5vw, 58px)/1 "Anton", var(--display); letter-spacing: .01em; color: #fff; overflow-wrap: anywhere; }
@keyframes seance-corrige { 0% { opacity: 0; transform: scale(.7); } 7% { opacity: 1; transform: scale(1.06); } 13% { transform: scale(1); } 86% { opacity: 1; } 100% { opacity: 0; } }
html.allege #seance-corrige { animation-timing-function: steps(1, end); }

/* Pendant une séance : l'étiquette du haut tient à gauche de la croix (et pas sous 14 px) ; un bandeau et sa ligne
   blanche restent dans l'écran (« ÉCHAUFFEMENT » était coupé à gauche par une seconde ligne trop longue). */
html.seance #hud-label { font: 700 14px/1.1 var(--display); letter-spacing: .08em; white-space: nowrap; }
html.seance .banner { width: max-content; max-width: 94vw; text-align: center; }
html.seance .banner small { white-space: normal; }
