/* La fin de « Ton premier round avec Alloy » (src/premier-jeu.js) et la note d'une séance (src/seance-jeu.js, ce qui
   lui est propre : seance.css). Lue à trois mètres : un mot géant et UN rond, CONTINUER, tenu à distance (dessiné par
   le jeu) ou touché du doigt. Ni chiffres ni liste des gestes depuis la 0.75.
   0.76 (Aurélien, 18 novembre : « il est un peu claqué au sol. Le bouton est masqué par le dégradé noir. Les éléments
   sont tout en haut. Il y a un grand espace vide au milieu. Il faut garder cet écran simple, mais vraiment plus
   joli ») : `.fin`, la même composition pour les deux écrans. Trois temps sur toute la hauteur : la tête (le mot),
   la zone du rond à hauteur d'épaules (41 % de l'écran : les parts 1 / 1,62 des deux autres temps l'y amènent), le
   pied (ce qu'Alloy dit de la suite, ou la note). UN VOILE UNI, sans dégradé, et le panneau est rangé SOUS le canevas
   des ronds (#air) : le rond CONTINUER et le repère du poing se dessinent par-dessus, jamais voilés. Rien ne s'anime
   ici : ce qui vit (le rond qui bat, ses ondes) est dessiné par air.js. */
.fin { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1.62fr); justify-items: center; box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(env(safe-area-inset-bottom, 0px) + 18px); text-align: center; pointer-events: auto;
  background: rgba(11,11,26,.74); }
.fin .tete { align-self: center; display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.fin .kicker { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 14px/1.2 var(--body); letter-spacing: .18em; color: var(--blue); }
.fin .kicker::before, .fin .kicker::after { content: ""; width: 22px; height: 2px; border-radius: 1px; background: currentColor; opacity: .7; }
.fin h1 { margin: 8px 0 0; font: 400 clamp(58px, 21vw, 92px)/.92 "Anton", var(--display); letter-spacing: .01em; color: var(--gold); text-shadow: 0 5px 0 var(--orange), 0 9px 0 #0B0B1A; }
/* (la ceinture sous le mot : le dégradé des boutons du jeu) */
.fin .tete::after { content: ""; width: 72px; height: 6px; margin-top: 18px; border-radius: 3px; background: linear-gradient(90deg, #FFD166, #FF8A3D 55%, #FF3D9A); }
/* La zone du rond, à hauteur d'épaules d'un joueur debout à deux ou trois mètres. Le rond CONTINUER (dessiné par
   air.js, placé par bilan.js, placerFin) s'y pose du côté de la main forte (à droite ; `.a-gauche` pour un gaucher,
   l'image étant un miroir) ; de l'autre côté, comment on le déclenche, et une flèche vers lui. `--rond` : la largeur
   que le rond prend (posée par le jeu une fois sa place connue). */
.fin .zone { width: 100%; max-width: 420px; height: clamp(150px, 23vh, 196px); display: flex; align-items: center; }
.fin .comment { margin: 0 0 20px; width: calc(100% - var(--rond, 172px) - 6px); text-align: left; }
.fin.a-gauche .comment { margin-left: auto; text-align: right; }
.fin .comment b { display: block; font: 800 26px/1.05 var(--display); letter-spacing: .03em; color: #fff; text-shadow: 0 2px 0 #0B0B1A; }
.fin .comment b::after { content: ""; display: block; width: 46px; height: 24px; margin: 8px 0 0; background: var(--gold); clip-path: polygon(0 34%, 62% 34%, 62% 0, 100% 50%, 62% 100%, 62% 66%, 0 66%); }
.fin.a-gauche .comment b::after { margin-left: auto; transform: scaleX(-1); }
.fin .comment span { display: block; margin-top: 8px; font: 700 17px/1.2 var(--body); letter-spacing: .04em; color: var(--gold); text-shadow: 0 1px 0 #0B0B1A; }
/* Le pied : ce qu'Alloy dit de la suite, son portrait à côté ; dessous, dans une appli où le jeu a peiné, la sortie. */
.fin .pied { align-self: center; width: 100%; max-width: 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fin .alloy { display: flex; align-items: center; gap: 12px; max-width: 100%; margin: 0; padding: 8px 18px 8px 8px; border-radius: 40px; background: rgba(11,11,26,.82); border: 1.5px solid rgba(255,209,102,.55); text-align: left; }
.fin .alloy img { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--orange); object-fit: cover; }
.fin .alloy span { font: 700 19px/1.2 var(--body); color: #fff; }
#premier-bilan .sortie { width: 100%; max-width: 420px; padding: 10px 12px; box-sizing: border-box; border-radius: 14px; background: rgba(11,11,26,.86); border: 1px solid rgba(255,209,102,.5); pointer-events: auto; }
#premier-bilan .sortie p { margin: 0; font: 600 14px/1.35 var(--body); color: #fff; }
#premier-bilan .sortie .ouvrir { display: block; margin-top: 8px; min-height: 44px; width: 100%; box-sizing: border-box; padding: 13px 10px; border: 1.5px solid var(--gold); border-radius: 12px; background: none; color: var(--gold); font: 800 15px/1 var(--display); letter-spacing: .05em; text-align: center; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
@media (max-height: 700px) {
  .fin h1 { font-size: clamp(44px, 16vw, 64px); }
  .fin .tete::after { margin-top: 12px; }
  .fin .comment b { font-size: 23px; }
  .fin .alloy img { width: 46px; height: 46px; }
  .fin .alloy span { font-size: 17px; }
}

/* L'écran de départ du premier round : une seule chose à faire, autoriser la caméra. « Filmer ma partie » attend la visite suivante. */
/* (clip.js impose son affichage par une règle appuyée : celle-ci doit l'être davantage) */
html.premier #home .home-inner > #clip-choix#clip-choix#clip-choix { display: none !important; }

/* 0.87, la fin de l'entrée au club (premier-jeu.js, finClub) : le mot, LE PORT (un rond à hauteur d'épaules, la zone),
   et Alloy. Plus de carte de membre (elle disait un abonnement payé). Le mot tient sur deux lignes à 360 de large. */
.fin.club h1 { font-size: clamp(42px, 13vw, 72px); text-align: center; }
.fin.club .club-lien { align-self: center; margin-top: 6px; }

/* 0.87 (main.js, mainCote) : à l'entrée au club, un coup de l'autre main allume le côté de la bonne main, avec son nom,
   écrit de haut en bas sur le bord de l'écran ; la deuxième fois, le coup compte (game.js, stray). */
#main-cote { position: absolute; top: 22%; bottom: 22%; width: 24%; z-index: 3; margin: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#main-cote[hidden] { display: none; }
#main-cote.g { left: 0; background: linear-gradient(90deg, rgba(255,61,154,.6), rgba(255,61,154,0)); }
#main-cote.d { right: 0; background: linear-gradient(270deg, rgba(255,61,154,.6), rgba(255,61,154,0)); }
#main-cote b { writing-mode: vertical-rl; font: 400 clamp(26px, 8vw, 44px)/1 "Anton", var(--display); letter-spacing: .04em; color: #fff; -webkit-text-stroke: 2px #0B0B1A; paint-order: stroke fill; white-space: nowrap; }
#main-cote.g b { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) { #main-cote.pop { animation: main-cote .25s ease-out; } }
.allege #main-cote.pop { animation: none; }
@keyframes main-cote { from { opacity: 0; } }
