/* tuto.css — Nimzou montre le chemin (chantier TUTOS, 02/11).
   Un voile léger partout sauf autour de la cible (le « trou », par son
   ombre), et la bulle qui porte le visage de Nimzou et sa phrase. Tout en
   jetons du thème ; aucune teinte fabriquée. La bulle glisse, rien ne
   clignote (motion calme). */
#tuto { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
#tuto[hidden] { display: none; }
.tuto-trou {
  position: fixed; left: 0; top: 0; width: 0; height: 0;
  border-radius: var(--r-objet, 14px);
  box-shadow: 0 0 0 200vmax color-mix(in srgb, var(--veil) 42%, transparent);
  transition: left .55s cubic-bezier(.2,.7,.2,1), top .55s cubic-bezier(.2,.7,.2,1),
              width .55s cubic-bezier(.2,.7,.2,1), height .55s cubic-bezier(.2,.7,.2,1), opacity .4s;
}
#tuto.retour .tuto-trou { opacity: 0; }
.tuto-bulle {
  position: fixed; left: 0; top: 0; pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--e-3, 12px);
  width: min(360px, calc(100vw - 24px));
  padding: var(--e-3, 12px) var(--e-3, 12px) var(--e-3, 12px) var(--e-2, 8px);
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line2); border-radius: var(--r-objet, 14px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--shadow) var(--shadow-a, 16%), transparent);
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .4s;
  will-change: transform;
}
#tuto.retour .tuto-bulle { opacity: 0; }
.tuto-visage {
  width: 88px; height: 88px; display: block; border-radius: 50%;
  background: var(--teinte-accent-douce);
}
.tuto-phrase { margin: 0; font-size: var(--t-lu, 16px); line-height: 1.4; }
.tuto-bulle .tuto-fermer { align-self: start; }
/* Pendant un parcours, Nimzou a quitté sa place : la scène s'efface un peu. */
body.tuto-actif #stage > canvas { opacity: .25; transition: opacity .5s; }
@media (max-width: 899.98px) {
  .tuto-bulle { width: calc(100vw - 24px); }
  .tuto-visage { width: 64px; height: 64px; }
}
