/* LA FIN SUR LA CONSOLE DU MENEUR (séance N10 de la restitution, « la fin en
   mouvement », 12 octobre 2026 ; outils/jeu/src/fin-console.jsx).

   Le dessin est celui du prototype (gm.css de l'export du 3 octobre 2026 :
   .win-callout l. 1797-1801, .win-banner l. 1516-1522, la fin Multiphone
   .fcl-* l. 1983-2018, la feuille standard .rsheet l. 1338-1352, la fenêtre
   .confirm-wrap l. 1507-1514). Ses durées sont les siennes : la feuille monte
   en 0,32 s (cubic-bezier(.2,.9,.3,1)) et descend en 0,3 s, son voile entre
   en 0,28 s et sort en 0,26 s, la fenêtre de confirmation entre en 0,25 s.

   LA CHARTE GAGNE, et chaque écart est dit ici :
     · une lueur est blanche à cœur : « Partie terminée » n'est plus un
       dégradé blanc vers or sous une ombre portée par filtre (gm.css
       l. 1520-1522), mais un tracé blanc dont la lumière est or ; l'encart
       de la victoire, la puce posée, le « + » ouvert ont un tracé BLANC sous
       leur lumière or (le prototype : or sous or) ; la fenêtre, un tracé
       blanc sous la lumière rouge ;
     · aucun filtre : pas de flou d'arrière-plan sous les voiles qui se
       fondent (le prototype : backdrop-filter, que le compositeur d'iOS
       rastérise sur une surface en transition d'opacité) ; toutes les
       lueurs sont des box-shadow ou des text-shadow ;
     · aucune ombre noire sous la feuille (le prototype en portait une) : la
       feuille se détache par son tracé et sa propre lumière ;
     · le survol vit sous @media(hover:hover). */

/* ── l'encart de la victoire constatée (.win-callout) ── */
.fc10-encart{margin-top:18px;padding:14px 16px;border-radius:14px;display:flex;flex-direction:column;gap:12px;
  border:1px solid rgba(255,246,223,.62);background:linear-gradient(180deg,rgba(214,162,30,.13),rgba(20,14,2,.32));
  box-shadow:0 0 26px -12px rgba(214,162,30,.55),inset 0 0 18px -10px rgba(214,162,30,.45)}
.fc10-encart-t{display:flex;align-items:flex-start;gap:10px;margin:0;font-size:13.5px;line-height:1.55;color:#f6dc9a}
.fc10-encart-t b{color:#fff}
/* le drapeau, l'étoile, la flèche et la boucle sont ses dessins (lot E2, 7 novembre 2026), en masque (.pt-ic) :
   la couleur de chacun reste celle de son tracé d'avant (color), la boîte est carrée */
.fc10-drapeau{flex:none;width:18px;height:18px;margin-top:1px;color:#fff}

/* ── la bannière « Partie terminée » (.win-banner) ── */
.fc10-banniere{text-align:center;padding:20px 0 6px;position:relative}
.fc10-titre{margin:6px 0 4px;font:700 clamp(30px,4vw,46px)/1.1 var(--serif);letter-spacing:.02em;color:#fff;
  text-shadow:0 0 2px rgba(246,220,154,.9),0 0 18px rgba(214,162,30,.75),0 0 42px rgba(214,162,30,.35)}
/* « La fin » devant le titre (lot I, 7 novembre 2026) : le pictogramme des moments, 20 px, en or (celui de la barre,
   .cn8-now-pic, qui l'a quittée le 22 novembre 2026, son point 16), en masque ; le titre garde sa lueur, l'icône
   n'en prend aucune */
.fc10-lafin{width:20px;height:20px;margin:0 12px 0 0;vertical-align:middle;position:relative;top:-.08em;color:var(--or)}

/* ── le classement (.fcl) ── */
.fc10-classement{max-width:560px;margin:14px auto 0;text-align:left}
.fc10-classement .fc10-envoyer{width:100%}
.ctac.fc10-occupe{pointer-events:none}
/* LE SABLIER DE L'ENVOI AUTOMATIQUE (Q13, registre 25-03 ; gm.css .fcl-timer,
   l. 2005-2006) : une lumière rouge remplit le cadre du bouton de gauche à
   droite, linéaire, en cinq secondes (la durée vient de js/jeu/fin.mjs,
   ENVOI_AUTOMATIQUE), et entre en 0,2 s. Le dégradé et la lueur sont ceux du
   prototype ; son bord de tête, un trait pêche au prototype, est un tracé
   BLANC sous la lumière rouge (une lueur est blanche à cœur). Il court aussi
   quand le système demande moins d'animation : il dit qu'un envoi va partir
   seul, la consigne le dit en toutes lettres. */
.fc10-sablier{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:inherit;pointer-events:none;z-index:1;
  background:linear-gradient(90deg,rgba(255,59,22,.22),rgba(255,59,22,.6));
  box-shadow:inset -2px 0 0 #fff,inset -6px 0 7px -2px rgba(255,154,134,.9),0 0 16px rgba(255,59,22,.5);
  animation:fc10Sablier var(--fc10-delai,5s) linear forwards,fc10Fondu .2s ease}
@keyframes fc10Sablier{from{width:0}to{width:100%}}
.fc10-consigne{font-size:12px;letter-spacing:.05em;color:var(--ink-dim);text-align:center;margin:12px 0 8px;line-height:1.5}
/* V3 e (3 novembre 2026) : le classement parti, la carte de la planche (.v3-fc, recréée) :
   le surtitre or, « Chacun vit sa gloire » en Cinzel blanc, « sur son propre téléphone » en
   italique ; un liseré or, aucune ombre noire */
.fc10-gloire{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:12px 0 10px;padding:16px 16px 18px;border-radius:16px;border:1px solid rgba(214,162,30,.4);background:linear-gradient(180deg,rgba(16,17,33,.94),rgba(10,11,22,.94));color:var(--ink);text-align:left}
.fc10-gloire-sur{font:700 9.5px var(--sans,"Inter",sans-serif);letter-spacing:.2em;text-transform:uppercase;color:var(--or-soft)}
.fc10-gloire b{font:700 24px/1.1 var(--serif,"Cinzel",serif);color:#fff}
.fc10-gloire em{font:italic 500 14px/1.3 var(--script,"Cormorant Garamond",serif);color:var(--ink-dim)}
.fc10-synthese{font:italic 500 19px/1.4 var(--script,"Cormorant Garamond",serif);color:var(--ink-dim);text-align:center;margin:0 0 14px}
.fc10-liste{display:flex;flex-direction:column;gap:7px}
.fc10-ligne{display:flex;align-items:center;gap:6px;border-radius:14px;border:1px solid rgba(214,162,30,.22);background:rgba(255,255,255,.02);
  transition:border-color .2s ease,background-color .2s ease}
/* la rangée dorée de qui est distingué */
.fc10-ligne.dist{border-color:rgba(214,162,30,.6);background:rgba(214,162,30,.07)}
.fc10-ligne-b{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:8px 10px;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:14px}
.fc10-ligne-b:focus-visible,.fc10-plus:focus-visible,.fc10-puce:focus-visible,.fc10-x:focus-visible,.fc10-retirer:focus-visible{outline:2px solid var(--or,#d6a21e);outline-offset:2px}
.fc10-rang{font:700 15px var(--serif);color:var(--or-soft,#f6dc9a);width:22px;text-align:center;flex:none}
.fc10-visage{width:36px;height:36px;border-radius:9px;object-fit:cover;object-position:center 12%;flex:none;border:1px solid rgba(255,255,255,.16)}
.fc10-nom{min-width:0;color:var(--ink);font-weight:600;font-size:14.5px;line-height:1.2}
/* R102 de l'audit du 13 novembre 2026 : le sous-titre passe à la ligne, un nom de rôle ne se coupe
   jamais par « … » (comme les prénoms de DP-152) */
.fc10-nom i{display:block;font:italic 500 13px var(--script,"Cormorant Garamond",serif);color:var(--ink-dim);white-space:normal;overflow-wrap:normal;text-wrap:balance}
.fc10-etoile{display:inline-block;width:14px;height:14px;margin-left:6px;vertical-align:-1px;color:var(--or-soft,#f6dc9a)}
.fc10-pts{margin-left:auto;padding-left:6px;color:var(--or-soft,#f6dc9a);font-weight:700;font-variant-numeric:tabular-nums;font-size:15px;flex:none}
/* le « + » au bout de chaque nom (un bouton rond, btn-sm) */
.fc10-plus{flex:none;width:34px;height:34px;margin-right:8px;border-radius:50%;padding:0;display:grid;place-items:center;cursor:pointer;
  border:1px solid var(--line,rgba(214,162,30,.32));background:rgba(7,8,20,.5);color:var(--ink);transition:border-color .2s ease,box-shadow .2s ease}
.fc10-plus svg{width:14px;height:14px}
/* Q28 de l'audit (oui le 14 novembre) : « Distinguer » écrit à côté du « + » ; la pastille s'allonge */
.fc10-plus.fc10-plus-mot{width:auto;min-width:34px;padding:0 12px 0 10px;border-radius:99px;display:inline-flex;align-items:center;gap:6px;font:600 13px var(--sans,"Inter",sans-serif)}
/* le décompte de l'envoi : « Le classement part dans 5 secondes. », puis le geste */
.fc10-consigne .fc10-decompte{display:block;font-size:16px;color:var(--ink);letter-spacing:0}
.fc10-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.fc10-plus.on{border-color:#fff;color:#fff;box-shadow:0 0 0 1px rgba(214,162,30,.6),0 0 12px -2px rgba(214,162,30,.6)}
/* les puces des distinctions, dépliées sous le nom : d'un coup, comme au
   prototype (.fcl-sug n'a pas d'animation ; rien ne s'invente ici) */
.fc10-puces{display:flex;flex-wrap:wrap;gap:6px;padding:2px 4px 8px 42px}
.fc10-puces.fc10-dans{padding:0}
.fc10-puce{font:500 12.5px var(--sans);padding:7px 12px;border-radius:99px;cursor:pointer;border:1px solid var(--line,rgba(214,162,30,.32));
  background:rgba(7,8,20,.55);color:var(--ink);transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease}
.fc10-puce b{margin-left:4px;color:var(--or-soft,#f6dc9a);font-weight:700}
.fc10-puce.on{border-color:#fff;color:#fff;background:rgba(214,162,30,.16);box-shadow:0 0 10px -2px rgba(214,162,30,.55)}
.fc10-puce:disabled{opacity:.5;cursor:default}
.fc10-libre-puce{border-style:dashed}
@media(hover:hover){
  .fc10-ligne:hover{border-color:rgba(214,162,30,.45)}
  .fc10-plus:hover,.fc10-puce:not(:disabled):hover{border-color:#fff}
}

/* ── la feuille du détail des points (.rsheet) ── */
.fc10-feuille-hote{position:fixed;inset:0;z-index:95}
.fc10-voile{position:absolute;inset:0;background:rgba(2,3,10,.78);animation:fc10Fondu .28s ease both}
.fc10-fermant .fc10-voile{animation:fc10Sortie .26s ease forwards}
.fc10-feuille{position:absolute;left:0;right:0;bottom:0;margin:0 auto;max-width:560px;box-sizing:border-box;
  border:1px solid rgba(239,231,214,.22);border-bottom:none;border-radius:22px 22px 0 0;
  background:linear-gradient(180deg,#13152c,#0a0b16);box-shadow:0 -1px 0 rgba(255,255,255,.06),0 -18px 46px -24px rgba(214,162,30,.35);
  padding:8px 20px calc(16px + var(--safe-bottom,0px));display:flex;flex-direction:column;max-height:min(78vh,620px);
  animation:fc10Monte .32s cubic-bezier(.2,.9,.3,1) both}
.fc10-fermant .fc10-feuille{animation:fc10Descend .3s ease forwards}
@keyframes fc10Monte{from{transform:translateY(103%)}to{transform:none}}
@keyframes fc10Descend{from{transform:none}to{transform:translateY(103%)}}
@keyframes fc10Fondu{from{opacity:0}to{opacity:1}}
@keyframes fc10Sortie{from{opacity:1}to{opacity:0}}
.fc10-poignee{width:40px;height:4px;border-radius:2px;background:rgba(255,255,255,.18);margin:4px auto 12px;flex:none}
.fc10-x{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:12px;border:none;background:none;color:var(--ink-dim);display:grid;place-items:center;cursor:pointer;padding:0}
.fc10-x svg{width:15px;height:15px}
@media(hover:hover){.fc10-x:hover{color:#fff;background:rgba(214,162,30,.12)}}
.fc10-dt{font:400 17px var(--serif);text-align:center;margin:6px 44px 10px;color:var(--ink)}
.fc10-dt b{color:var(--or-soft,#f6dc9a)}
.fc10-dlignes{overflow:auto;min-height:0;-webkit-overflow-scrolling:touch}
.fc10-dl{display:flex;align-items:center;gap:10px;padding:8px 2px;border-top:1px dashed rgba(255,255,255,.09);font-size:13.5px;color:var(--ink)}
.fc10-dl span{flex:1;min-width:0}
.fc10-dl b{color:var(--or-soft,#f6dc9a);font-variant-numeric:tabular-nums}
.fc10-dl.dist span{color:var(--or-soft,#f6dc9a);font-family:var(--script,"Cormorant Garamond",serif);font-style:italic;font-size:15px}
.fc10-retirer{flex:none;width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(7,8,20,.6);color:var(--ink);display:grid;place-items:center;padding:0;cursor:pointer}
.fc10-retirer svg{width:10px;height:10px}
.fc10-ajout{flex:none;border-top:1px solid rgba(214,162,30,.3);margin-top:8px;padding-top:10px;display:flex;flex-direction:column;gap:8px}
.fc10-cap{font:600 10.5px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--or-soft,#f6dc9a)}
.fc10-libre{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fc10-libre-t{flex:1;min-width:120px;font:italic 500 15px var(--script,"Cormorant Garamond",serif);color:var(--ink-dim)}
.fc10-libre input{flex:none;width:84px;padding:10px 12px;border-radius:12px;border:1px solid rgba(214,162,30,.35);background:rgba(7,8,20,.7);color:var(--ink);font:500 13px var(--sans)}
.fc10-libre input:focus-visible{outline:2px solid var(--or,#d6a21e);outline-offset:1px}

/* ── la suite : « Rejouer avec ce groupe », « Revenir en arrière », « Nouvelle partie » ── */
.fc10-suite{max-width:560px;margin:22px auto 0;display:flex;flex-direction:column;align-items:center;gap:12px}
.fc10-suite > .ctac{width:100%}
.fc10-rangee{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap}
.fc10-fleche{width:14px;height:14px}
.fc10-raison{margin:-4px 0 0;font-size:12px;color:var(--ink-dim)}

/* ── la fenêtre « Lancer une nouvelle partie ? » (.confirm-wrap) : le tracé
   blanc sous la lumière rouge ── */
.fc10-confirme-voile{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(2,3,10,.84);animation:fc10Fondu .25s ease both}
.fc10-confirme{max-width:460px;box-sizing:border-box;background:linear-gradient(180deg,#0d0f1f,#070811);border:1px solid rgba(255,255,255,.5);border-radius:16px;
  padding:30px;text-align:center;box-shadow:0 0 60px -10px rgba(255,59,22,.6)}
.fc10-boucle{width:40px;height:40px;color:#fff}
.fc10-confirme h3{font:700 24px/1.2 var(--serif);margin:12px 0 8px;color:#fff}
.fc10-confirme p{color:var(--ink-dim);font-size:14.5px;line-height:1.6;margin:0 0 22px}
.fc10-confirme .ctac.fc10-compact{width:auto;min-height:50px;padding:9px 22px}
/* « Annuler » et le néon sur UNE rangée, comme le prototype (.confirm .row,
   gm.css l. 1514 : display:flex, gap 12px, centrés) ; relecture à charge de
   N10 : la rangée passait à la ligne et empilait le néon sous « Annuler » */
.fc10-confirme .fc10-rangee{flex-wrap:nowrap;gap:12px}
.fc10-confirme .fc10-rangee > .ptc-util{flex:none}
.fc10-confirme .fc10-rangee > .ctac.fc10-compact{flex:0 1 auto;min-width:0}
/* le classement n'est pas parti : la fenêtre le dit (le même mot que
   « Rejouer avec ce groupe ») */
.fc10-confirme p.fc10-avertir{margin:-12px 0 22px;color:var(--or-soft,#f6dc9a);font-size:13.5px}

/* ── un téléphone en console (390 px) ── */
@media(max-width:560px){
  .fc10-puces{padding-left:8px}
  .fc10-nom{font-size:13.5px}
  .fc10-titre{font-size:clamp(24px,7vw,34px)}
  .fc10-feuille{padding-left:16px;padding-right:16px}
}

/* ── moins d'animation : rien ne glisse ── */
@media(prefers-reduced-motion:reduce){
  .fc10-voile,.fc10-feuille,.fc10-confirme-voile,.fc10-fermant .fc10-voile,.fc10-fermant .fc10-feuille{animation-duration:.01s}
}

/* ── W1 · la story de gloire du meneur (la valise du 8 novembre 2026, rw.css .w1-*) ──
   « Revoir ma story » sous la carte « Chacun vit sa gloire » (utilitaire or-contour, V3-e3) ;
   sur ordinateur, la story prend la place de la bannière (assets/jeu/story.css, .lgm-bureau). */
.fc10-revoir{display:flex;justify-content:flex-end;margin:-2px 0 12px}
/* la story prend la colonne : la réserve de la pastille du haut (console-nuit.css, --pts-place)
   se réduit, la pastille se pose à droite, au-dessus des gestes, jamais sur la carte ; la carte
   (576 px) et la barre tiennent dans 800 px de haut */
.fc10 > .fc10-banniere.fc10-story{padding:8px 0 0}

/* R38, LE RELIQUAT DE L'AUDIT (14 novembre 2026) : à la fin aussi, aucun texte utile sous 12 px (« Classement
   envoyé » relevé à 9,5 px par le banc du plancher) ; les capitales se resserrent pour garder leur ligne */
.fc10-gloire-sur,.fc10-cap{font-size:12px;letter-spacing:.12em}
