/* =====================================================================
   animazioni.css — piccole scene animate della pagina di presentazione
   (index.html e en/index.html). Imitano ArkiVid al lavoro, con un
   cursore finto che clicca da solo. Sono disegnate in HTML/CSS: niente video.
   - Restano ferme finché non entrano nello schermo: animazioni.js aggiunge
     allora la classe "vivo" alla scena.
   - Chi ha chiesto al computer di ridurre i movimenti vede la scena ferma,
     già nello stato finale (in fondo al file).
   ===================================================================== */

.scena { position: relative; overflow: hidden; height: 178px; margin: 2px 0 16px; border-radius: 14px;
  background: #0b0b10; border: 1px solid var(--linea); font-family: Roboto, Arial, sans-serif; }
/* Ferme finché la scena non è sullo schermo. Serve !important perché le regole delle singole scene
   usano la forma breve "animation: …", che altrimenti rimetterebbe le animazioni in moto. */
.scena:not(.vivo) * { animation-play-state: paused !important; }

/* Il cursore finto (freccia bianca) e il "cerchio" del clic */
.scena .cursore { position: absolute; width: 22px; height: 22px; z-index: 5; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.scena .clic { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8); opacity: 0; z-index: 4; pointer-events: none; }

/* ---------- Scena 1: "Salvi con un clic" (un finto YouTube) ---------- */
.s1 .yt-video { position: absolute; left: 12px; right: 12px; top: 12px; height: 92px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #2a2a35, #15151c); }
.s1 .yt-video::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 28px; margin: -14px 0 0 -20px;
  border-radius: 8px; background: rgba(255,255,255,.14); }
.s1 .yt-video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent rgba(255,255,255,.75); }
.s1 .yt-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.s1 .yt-barra i { display: block; width: 34%; height: 100%; background: #ff0033; }
.s1 .yt-titolo { position: absolute; left: 12px; top: 112px; width: 62%; height: 9px; border-radius: 5px; background: rgba(255,255,255,.16); }
.s1 .yt-riga { position: absolute; left: 12px; top: 134px; display: flex; gap: 6px; align-items: center; }
.s1 .yt-chip { height: 30px; padding: 0 9px; border-radius: 15px; background: rgba(255,255,255,.1); color: #e8e8ee;
  font: 600 12px/30px Roboto, Arial, sans-serif; white-space: nowrap; }

/* Il pulsante "Salva in ArkiVid": due facce sovrapposte (rossa e verde) che si scambiano */
.s1 .sv { display: grid; height: 30px; animation: s1-premi 7s infinite; }
.s1 .sv > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 0 12px; border-radius: 15px; font: 600 12px/30px Roboto, Arial, sans-serif; white-space: nowrap; }
.s1 .sv-r { color: #fff; background: linear-gradient(135deg, #ff0033, #c4002a); box-shadow: 0 6px 18px -6px rgba(255,0,51,.8);
  animation: s1-rosso 7s infinite; }
.s1 .sv-r::before { content: ""; width: 15px; height: 15px; flex: none;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M28 4l19 12.5L28 29z' fill='%23fff'/%3E%3Cpath d='M26 4v28' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M3 33h58l-2.2 6H5.2z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M6 41h52l-2.4 6.5H8.4z' fill='%23fff' opacity='.8'/%3E%3Cpath d='M9.5 49.5h45l-2.6 5.6A5 5 0 0 1 47.4 58H16.6a5 5 0 0 1-4.5-2.9z' fill='%23fff'/%3E%3C/svg%3E"); }
.s1 .sv-v { color: #f2f2f5; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(46,229,157,.75);
  opacity: 0; animation: s1-verde 7s infinite; }

/* Il cursore arriva sul pulsante (al centro della faccia rossa), clicca e se ne va */
.s1 .cursore { left: 70px; top: 147px; animation: s1-cursore 7s infinite; }
.s1 .clic { left: 70px; top: 149px; animation: s1-clic 7s infinite; }

/* L'avviso che compare in alto a destra, come su YouTube vero */
.s1 .avviso { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 7px 11px 7px 8px; border-radius: 11px; background: rgba(20,20,26,.96); border: 1px solid rgba(255,255,255,.14);
  color: #ecebf2; font: 600 12px/1.2 Inter, system-ui, sans-serif; box-shadow: 0 10px 30px -10px rgba(0,0,0,.9);
  opacity: 0; animation: s1-avviso 7s infinite; }
.s1 .avviso b { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px;
  background: rgba(46,229,157,.15); color: #2ee59d; }

@keyframes s1-cursore {
  0%   { transform: translate(120px, 60px); opacity: 0; }
  8%   { transform: translate(110px, 52px); opacity: 1; }
  28%  { transform: translate(0, 0); }
  31%  { transform: translate(0, 0) scale(.82); }
  34%  { transform: translate(0, 0) scale(1); }
  68%  { transform: translate(0, 0); opacity: 1; }
  80%  { transform: translate(70px, 40px); opacity: 0; }
  100% { transform: translate(70px, 40px); opacity: 0; }
}
@keyframes s1-clic {
  0%, 30% { transform: scale(.3); opacity: 0; }
  31%     { transform: scale(.4); opacity: .9; }
  44%     { transform: scale(2.2); opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes s1-premi { 0%, 30% { transform: scale(1); } 32% { transform: scale(.94); } 35%, 100% { transform: scale(1); } }
@keyframes s1-rosso { 0%, 32% { opacity: 1; } 34%, 88% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes s1-verde { 0%, 32% { opacity: 0; } 34%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes s1-avviso {
  0%, 36% { transform: translateY(-8px); opacity: 0; }
  42%, 78% { transform: translateY(0); opacity: 1; }
  84%, 100% { transform: translateY(-8px); opacity: 0; }
}

/* ---------- Scena 2: "ArkiVid lo prepara" (la scheda si riempie da sola) ---------- */
.s2 { font-family: Inter, system-ui, sans-serif; }
.s2 .miniatura { position: absolute; left: 12px; top: 12px; width: 84px; height: 50px; border-radius: 8px;
  background: linear-gradient(135deg, #ff2a55, #7a1cff 70%); }
.s2 .anello { position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; }
.s2 .anello circle { fill: rgba(7,7,10,.9); stroke-width: 3; }
.s2 .anello .fondo { stroke: rgba(255,255,255,.18); }
.s2 .anello .pieno { fill: none; stroke: #2ee59d; stroke-linecap: round; stroke-dasharray: 62.8; stroke-dashoffset: 62.8;
  transform: rotate(-90deg); transform-origin: 50% 50%; animation: s2-anello 8s infinite; }
.s2 .voto { position: absolute; left: 4px; top: 4px; width: 26px; line-height: 26px; text-align: center; color: #2ee59d;
  font-size: 12px; font-weight: 700; opacity: 0; animation: s2-voto 8s infinite; }
.s2 .righe { position: absolute; left: 106px; right: 12px; top: 16px; }
.s2 .righe i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); margin-bottom: 8px; }
.s2 .righe i + i { width: 70%; background: rgba(255,255,255,.1); }
.s2 .fila { position: absolute; left: 12px; right: 12px; display: flex; gap: 6px; align-items: center; }
.s2 .f1 { top: 74px; } .s2 .f2 { top: 104px; } .s2 .f3 { top: 138px; justify-content: space-between; }
.s2 .chip { display: inline-block; flex: none; height: 22px; padding: 0 8px; border-radius: 11px; font: 600 11px/22px Inter, system-ui, sans-serif;
  white-space: nowrap; opacity: 0; transform: scale(.6); }
.s2 .cat { background: rgba(122,28,255,.22); color: #c9a8ff; animation: s2-chip1 8s infinite; }
.s2 .tag { background: rgba(255,255,255,.08); color: #dcdae6; }
.s2 .t1 { animation: s2-chip2 8s infinite; }
.s2 .t2 { animation: s2-chip3 8s infinite; }
.s2 .t3 { animation: s2-chip4 8s infinite; }
.s2 .consiglio { background: rgba(46,229,157,.14); color: #7cf0c0; animation: s2-chip5 8s infinite; }
/* Il pulsante "Salva": l'utente conferma (l'AI propone, tu decidi) */
.s2 .salva { display: grid; flex: none; height: 26px; }
.s2 .salva > span { grid-area: 1 / 1; padding: 0 10px; border-radius: 13px; font: 700 11.5px/26px Inter, system-ui, sans-serif; white-space: nowrap; text-align: center; }
.s2 .salva-r { background: var(--rosso); color: #fff; animation: s2-rosso 8s infinite; }
.s2 .salva-v { background: rgba(46,229,157,.15); color: #2ee59d; box-shadow: inset 0 0 0 1.5px rgba(46,229,157,.6); opacity: 0; animation: s2-verde 8s infinite; }
.s2 .cursore { left: auto; right: 28px; top: 149px; animation: s2-cursore 8s infinite; }
.s2 .clic { left: auto; right: 33px; top: 151px; margin: -13px 0 0 0; animation: s2-clic 8s infinite; }

@keyframes s2-anello { 0%, 8% { stroke-dashoffset: 62.8; } 22%, 92% { stroke-dashoffset: 12.6; } 97%, 100% { stroke-dashoffset: 62.8; } }
@keyframes s2-voto { 0%, 18% { opacity: 0; } 22%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
/* ogni chip "spunta" un po' dopo il precedente e sparisce alla fine del giro */
@keyframes s2-chip1 { 0%, 24% { opacity: 0; transform: scale(.6); } 28%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes s2-chip2 { 0%, 31% { opacity: 0; transform: scale(.6); } 35%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes s2-chip3 { 0%, 35% { opacity: 0; transform: scale(.6); } 39%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes s2-chip4 { 0%, 39% { opacity: 0; transform: scale(.6); } 43%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes s2-chip5 { 0%, 46% { opacity: 0; transform: scale(.6); } 51%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes s2-cursore {
  0%, 52% { transform: translate(-90px, 30px); opacity: 0; }
  56%  { transform: translate(-80px, 26px); opacity: 1; }
  68%  { transform: translate(0, 0); }
  70%  { transform: translate(0, 0) scale(.82); }
  72%  { transform: translate(0, 0) scale(1); }
  84%  { transform: translate(0, 0); opacity: 1; }
  92%, 100% { transform: translate(30px, 40px); opacity: 0; }
}
@keyframes s2-clic { 0%, 69% { transform: scale(.3); opacity: 0; } 70% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes s2-rosso { 0%, 71% { opacity: 1; } 73%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes s2-verde { 0%, 71% { opacity: 0; } 73%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* ---------- Scena 3: "Tu decidi cosa guardare" (riassunto con i minuti + lettore) ---------- */
.s3 { font-family: Inter, system-ui, sans-serif; }
.s3 .lettore { position: absolute; left: 12px; right: 12px; top: 12px; height: 72px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #2a1640, #15151c); }
.s3 .play { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px; border-style: solid; border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,.8); animation: s3-play 8s infinite; }
/* le "onde" che si muovono mentre il video va */
.s3 .onde { position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -14px; display: flex; gap: 3px; align-items: flex-end; height: 20px;
  opacity: 0; animation: s3-onde 8s infinite; }
.s3 .onde i { width: 4px; border-radius: 2px; background: rgba(255,255,255,.8); animation: s3-onda .7s ease-in-out infinite alternate; }
.s3 .onde i:nth-child(1) { height: 8px; } .s3 .onde i:nth-child(2) { height: 18px; animation-delay: .2s; }
.s3 .onde i:nth-child(3) { height: 12px; animation-delay: .4s; } .s3 .onde i:nth-child(4) { height: 16px; animation-delay: .1s; }
.s3 .tempo { position: absolute; right: 8px; bottom: 9px; display: grid; }
.s3 .tempo > span { grid-area: 1 / 1; background: rgba(0,0,0,.7); color: #fff; font: 600 10.5px/1 ui-monospace, monospace; padding: 3px 5px; border-radius: 5px; text-align: right; }
.s3 .tempo .t0 { animation: s3-t0 8s infinite; }
.s3 .tempo .t1 { opacity: 0; animation: s3-t1 8s infinite; }
.s3 .barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.s3 .barra i { display: block; height: 100%; width: 0; background: #ff0033; animation: s3-barra 8s infinite; }
.s3 .punti { position: absolute; left: 12px; right: 12px; top: 92px; }
.s3 .punti div { height: 26px; display: flex; gap: 8px; align-items: center; padding: 0 8px; border-radius: 8px; font-size: 11.5px; color: #dcdce2;
  white-space: nowrap; overflow: hidden; }
.s3 .punti span { color: #ff6b85; font: 600 11px/1 ui-monospace, monospace; }
.s3 .punti .scelto { animation: s3-scelto 8s infinite; }
.s3 .cursore { left: 33px; top: 127px; animation: s3-cursore 8s infinite; }
.s3 .clic { left: 37px; top: 131px; animation: s3-clic 8s infinite; }

@keyframes s3-cursore {
  0%   { transform: translate(140px, 40px); opacity: 0; }
  8%   { transform: translate(130px, 36px); opacity: 1; }
  28%  { transform: translate(0, 0); }
  31%  { transform: translate(0, 0) scale(.82); }
  34%  { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(0, 0); opacity: 1; }
  62%, 100% { transform: translate(60px, 50px); opacity: 0; }
}
@keyframes s3-clic { 0%, 30% { transform: scale(.3); opacity: 0; } 31% { transform: scale(.4); opacity: .9; } 42%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes s3-scelto { 0%, 30% { background: transparent; } 33%, 88% { background: rgba(255,42,85,.16); } 94%, 100% { background: transparent; } }
@keyframes s3-play { 0%, 32% { opacity: 1; } 34%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes s3-onde { 0%, 32% { opacity: 0; } 35%, 89% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes s3-onda { to { transform: scaleY(.45); } }
@keyframes s3-t0 { 0%, 32% { opacity: 1; } 33%, 92% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes s3-t1 { 0%, 32% { opacity: 0; } 33%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
/* la barra salta al minuto scelto (circa il 40%) e poi avanza piano */
@keyframes s3-barra { 0%, 32% { width: 0; } 33% { width: 40%; } 90% { width: 47%; } 94%, 100% { width: 0; } }

/* =====================================================================
   Scene della pagina "Tutte le funzioni" (funzioni.html)
   Qui il cursore parte dall'angolo in alto a sinistra della scena e
   si sposta con translate(x, y): la punta della freccia sta a (4, 2),
   quindi per indicare il punto (X, Y) si usa translate(X-4px, Y-2px).
   ===================================================================== */
.scena .cursore.libero { left: 0; top: 0; right: auto; }
.scena .clic.libero { left: 0; top: 0; right: auto; }

/* ---------- Ripensamento: secondo clic sul pulsante verde = video tolto ---------- */
/* Usa il disegno della scena 1, ma al contrario: si parte verdi e si torna rossi */
.s1.annulla .sv-r { opacity: 0; animation-name: s1a-rosso; }
.s1.annulla .sv-v { opacity: 1; animation-name: s1a-verde; }
.s1.annulla .avviso b { background: rgba(255,255,255,.1); color: #dcdce2; }
@keyframes s1a-rosso { 0%, 32% { opacity: 0; } 34%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes s1a-verde { 0%, 32% { opacity: 1; } 34%, 88% { opacity: 0; } 92%, 100% { opacity: 1; } }

/* ---------- Importa un'intera playlist (10 secondi) ---------- */
.s-playlist { font-family: Inter, system-ui, sans-serif; }
.s-playlist .bt-imp { position: absolute; left: 12px; top: 12px; width: 176px; height: 28px; border-radius: 14px; display: flex; align-items: center; gap: 6px;
  justify-content: center; background: linear-gradient(135deg, #ff0033, #c4002a); color: #fff; font: 600 11px/28px Roboto, Arial, sans-serif; white-space: nowrap;
  animation: sp-premi1 10s infinite; }
.s-playlist .bt-imp svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s-playlist .yt-righe { position: absolute; left: 12px; right: 12px; top: 52px; }
.s-playlist .yt-righe div { display: flex; gap: 8px; align-items: center; height: 28px; }
.s-playlist .yt-righe i { width: 40px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #3a2a50, #1c1c26); flex: none; }
.s-playlist .yt-righe b { height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); flex: 0 1 70%; }
/* la finestra di anteprima di ArkiVid che sale dal basso */
.s-playlist .pannello { position: absolute; inset: 0; background: #14141b; border-top: 1px solid rgba(255,255,255,.12); padding: 10px 14px;
  transform: translateY(105%); animation: sp-pannello 10s infinite; }
.s-playlist .pannello h4 { margin: 0; font-size: 12px; font-weight: 700; color: #f2f2f5; }
.s-playlist .pannello .cat { margin: 2px 0 0; font-size: 10.5px; color: var(--muto); white-space: nowrap; }
.s-playlist .pannello .cat em { font-style: normal; color: #c9a8ff; }
.s-playlist .voci { position: absolute; left: 14px; right: 14px; top: 50px; }
.s-playlist .voci div { display: flex; align-items: center; gap: 8px; height: 22px; }
.s-playlist .voci b { height: 7px; border-radius: 4px; background: rgba(255,255,255,.18); flex: 0 1 75%; }
.s-playlist .spunta { width: 14px; height: 14px; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 800;
  background: #2ee59d; color: #07070a; }
.s-playlist .spunta.tolta { animation: sp-spunta 10s infinite; }
.s-playlist .voci .tolta-riga { animation: sp-riga 10s infinite; }
.s-playlist .bt-ok { position: absolute; left: 14px; top: 142px; width: 128px; height: 24px; display: grid; }
.s-playlist .bt-ok > span { grid-area: 1 / 1; border-radius: 12px; text-align: center; font: 700 11px/24px Inter, system-ui, sans-serif; white-space: nowrap; }
.s-playlist .ok4 { background: var(--rosso); color: #fff; animation: sp-ok4 10s infinite; }
.s-playlist .ok3 { background: var(--rosso); color: #fff; opacity: 0; animation: sp-ok3 10s infinite; }
.s-playlist .okv { background: rgba(46,229,157,.15); color: #2ee59d; box-shadow: inset 0 0 0 1.5px rgba(46,229,157,.6); opacity: 0; animation: sp-okv 10s infinite; }
.s-playlist .cursore { animation: sp-cursore 10s infinite; }
.s-playlist .clic { animation: sp-clic 10s infinite; }

@keyframes sp-cursore {
  0%   { transform: translate(200px, 150px); opacity: 0; }
  6%   { transform: translate(190px, 140px); opacity: 1; }
  20%  { transform: translate(94px, 24px); }
  22%  { transform: translate(94px, 24px) scale(.82); }
  24%  { transform: translate(94px, 24px) scale(1); }
  32%  { transform: translate(94px, 24px); }
  48%  { transform: translate(17px, 103px); }
  50%  { transform: translate(17px, 103px) scale(.82); }
  52%  { transform: translate(17px, 103px) scale(1); }
  58%  { transform: translate(17px, 103px); }
  68%  { transform: translate(74px, 152px); }
  70%  { transform: translate(74px, 152px) scale(.82); }
  72%  { transform: translate(74px, 152px) scale(1); }
  82%  { transform: translate(74px, 152px); opacity: 1; }
  90%, 100% { transform: translate(130px, 175px); opacity: 0; }
}
/* tre clic: sul pulsante di YouTube, sulla spunta, su "Importa" */
@keyframes sp-clic {
  0%, 21% { transform: translate(98px, 26px) scale(.3); opacity: 0; }
  22% { transform: translate(98px, 26px) scale(.4); opacity: .9; }
  30% { transform: translate(98px, 26px) scale(2.2); opacity: 0; }
  31%, 49% { transform: translate(21px, 105px) scale(.3); opacity: 0; }
  50% { transform: translate(21px, 105px) scale(.4); opacity: .9; }
  58% { transform: translate(21px, 105px) scale(2.2); opacity: 0; }
  59%, 69% { transform: translate(78px, 154px) scale(.3); opacity: 0; }
  70% { transform: translate(78px, 154px) scale(.4); opacity: .9; }
  78%, 100% { transform: translate(78px, 154px) scale(2.2); opacity: 0; }
}
@keyframes sp-premi1 { 0%, 21% { transform: scale(1); } 23% { transform: scale(.95); } 25%, 100% { transform: scale(1); } }
@keyframes sp-pannello { 0%, 28% { transform: translateY(105%); } 34%, 92% { transform: translateY(0); } 98%, 100% { transform: translateY(105%); } }
@keyframes sp-spunta { 0%, 50% { background: #2ee59d; color: #07070a; } 51%, 100% { background: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); } }
@keyframes sp-riga { 0%, 50% { opacity: 1; } 52%, 100% { opacity: .4; } }
@keyframes sp-ok4 { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes sp-ok3 { 0%, 50% { opacity: 0; } 51%, 71% { opacity: 1; } 73%, 100% { opacity: 0; } }
@keyframes sp-okv { 0%, 71% { opacity: 0; } 73%, 100% { opacity: 1; } }

/* ---------- Incolla un link (9 secondi): ArkiVid avvisa subito che manca la trascrizione ---------- */
.s-link { font-family: Inter, system-ui, sans-serif; }
.s-link .campo { position: absolute; left: 12px; right: 12px; top: 14px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); animation: sp-campo 9s infinite; }
.s-link .segnaposto { position: absolute; left: 10px; top: 0; line-height: 28px; font-size: 11px; color: var(--muto); white-space: nowrap;
  animation: sl-segnaposto 9s infinite; }
/* il link "scritto" lettera per lettera: si allarga a scatti (17 lettere) */
.s-link .scritto { position: absolute; left: 10px; top: 0; line-height: 28px; font: 11px/28px ui-monospace, Consolas, monospace; color: #f2f2f5;
  white-space: nowrap; overflow: hidden; width: 0; animation: sl-scrivi 9s steps(17, end) infinite; }
.s-link .tasto { position: absolute; right: 5px; top: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 10px/20px Inter, system-ui, sans-serif;
  color: #dcdce2; background: rgba(255,255,255,.1); border-bottom: 2px solid rgba(0,0,0,.5); opacity: 0; animation: sl-tasto 9s infinite; }
.s-link .scheda { position: absolute; left: 12px; right: 12px; top: 56px; display: flex; gap: 10px; align-items: center; padding: 8px;
  border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--linea); opacity: 0; animation: sl-scheda 9s infinite; }
.s-link .scheda i { width: 52px; height: 30px; border-radius: 6px; flex: none; display: grid; place-items: center; font-style: normal; font-size: 13px;
  color: var(--muto); background: rgba(255,255,255,.08); }
.s-link .scheda span { flex: 1; }
.s-link .scheda b { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 4px 0; }
.s-link .scheda b + b { width: 60%; background: rgba(255,255,255,.1); }
.s-link .nota { position: absolute; left: 12px; right: 12px; top: 112px; display: flex; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.35); color: #f5dca8; font-size: 10.5px; line-height: 1.35;
  opacity: 0; transform: translateY(6px); animation: sl-nota 9s infinite; }
.s-link .nota b { color: #ffb020; flex: none; font-size: 12px; }

@keyframes sp-campo { 0%, 6% { border-color: rgba(255,255,255,.14); } 8%, 40% { border-color: rgba(255,42,85,.7); } 44%, 100% { border-color: rgba(255,255,255,.14); } }
@keyframes sl-segnaposto { 0%, 7% { opacity: 1; } 8%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes sl-scrivi { 0%, 8% { width: 0; } 32%, 92% { width: 17ch; } 93%, 100% { width: 0; } }
@keyframes sl-tasto { 0%, 34% { opacity: 0; transform: none; } 36% { opacity: 1; transform: translateY(1px); border-bottom-width: 1px; }
  40% { opacity: 1; transform: none; border-bottom-width: 2px; } 46%, 100% { opacity: 0; } }
@keyframes sl-scheda { 0%, 40% { opacity: 0; transform: translateY(-6px); } 45%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes sl-nota { 0%, 52% { opacity: 0; transform: translateY(6px); } 58%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Completa in ArkiVid (10 secondi): dall'avviso su YouTube alla scheda compilata ---------- */
.s-completa { font-family: Inter, system-ui, sans-serif; }
.s-completa .avv { position: absolute; left: 12px; right: 12px; top: 14px; padding: 10px; border-radius: 12px; background: rgba(20,20,26,.96);
  border: 1px solid rgba(255,255,255,.14); }
.s-completa .avv-t { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #ecebf2; }
.s-completa .avv-t b { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(46,229,157,.15); color: #2ee59d; font-size: 12px; }
.s-completa .avv-d { margin: 5px 0 0; font-size: 10.5px; line-height: 1.35; color: #b9b7c6; }
.s-completa .avv-a { position: absolute; left: 10px; top: 66px; display: flex; gap: 6px; }
.s-completa .avv-a span { height: 24px; padding: 0 8px; border-radius: 8px; font: 600 10px/24px Inter, system-ui, sans-serif; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #ecebf2; }
.s-completa .avv-a .primo { width: 126px; text-align: center; padding: 0; border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #ff0033, #c4002a); animation: sc-premi 10s infinite; }
/* la scheda di ArkiVid, già compilata dall'AI: tu controlli e salvi */
.s-completa .pannello { position: absolute; inset: 0; background: #14141b; border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(105%); animation: sc-pannello 10s infinite; }
.s-completa .pannello h4 { position: absolute; left: 14px; top: 10px; margin: 0; font-size: 11.5px; font-weight: 700; color: #7cf0c0; white-space: nowrap; }
.s-completa .campo-r { position: absolute; left: 14px; right: 14px; display: flex; align-items: center; gap: 6px; height: 24px; }
.s-completa .r1 { top: 36px; } .s-completa .r2 { top: 66px; } .s-completa .r3 { top: 96px; }
.s-completa .campo-r > i { width: 56px; flex: none; font-style: normal; font-size: 10.5px; color: var(--muto); }
.s-completa .chip { height: 22px; padding: 0 8px; border-radius: 11px; font: 600 11px/22px Inter, system-ui, sans-serif; white-space: nowrap; flex: none;
  opacity: 0; transform: scale(.6); }
.s-completa .c-cat { background: rgba(122,28,255,.22); color: #c9a8ff; animation: sc-chip1 10s infinite; }
.s-completa .c-t1 { background: rgba(255,255,255,.08); color: #dcdae6; animation: sc-chip2 10s infinite; }
.s-completa .c-t2 { background: rgba(255,255,255,.08); color: #dcdae6; animation: sc-chip3 10s infinite; }
.s-completa .nota-scritta { font-size: 11px; color: #f2f2f5; white-space: nowrap; overflow: hidden; width: 0; animation: sc-nota 10s steps(16, end) infinite; }
.s-completa .salva { position: absolute; left: 14px; top: 138px; width: 90px; height: 24px; display: grid; }
.s-completa .salva > span { grid-area: 1 / 1; border-radius: 12px; text-align: center; font: 700 11px/24px Inter, system-ui, sans-serif; white-space: nowrap; }
.s-completa .salva-r { background: var(--rosso); color: #fff; animation: sc-rosso 10s infinite; }
.s-completa .salva-v { background: rgba(46,229,157,.15); color: #2ee59d; box-shadow: inset 0 0 0 1.5px rgba(46,229,157,.6); opacity: 0; animation: sc-verde 10s infinite; }
.s-completa .cursore { animation: sc-cursore 10s infinite; }
.s-completa .clic { animation: sc-clic 10s infinite; }

@keyframes sc-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  6%   { transform: translate(190px, 150px); opacity: 1; }
  20%  { transform: translate(81px, 90px); }
  22%  { transform: translate(81px, 90px) scale(.82); }
  24%  { transform: translate(81px, 90px) scale(1); }
  34%  { transform: translate(150px, 120px); }
  62%  { transform: translate(150px, 120px); }
  70%  { transform: translate(55px, 148px); }
  72%  { transform: translate(55px, 148px) scale(.82); }
  74%  { transform: translate(55px, 148px) scale(1); }
  82%  { transform: translate(55px, 148px); opacity: 1; }
  90%, 100% { transform: translate(120px, 175px); opacity: 0; }
}
@keyframes sc-clic {
  0%, 21% { transform: translate(85px, 92px) scale(.3); opacity: 0; }
  22% { transform: translate(85px, 92px) scale(.4); opacity: .9; }
  30% { transform: translate(85px, 92px) scale(2.2); opacity: 0; }
  31%, 71% { transform: translate(59px, 150px) scale(.3); opacity: 0; }
  72% { transform: translate(59px, 150px) scale(.4); opacity: .9; }
  80%, 100% { transform: translate(59px, 150px) scale(2.2); opacity: 0; }
}
@keyframes sc-premi { 0%, 21% { transform: scale(1); } 23% { transform: scale(.95); } 25%, 100% { transform: scale(1); } }
@keyframes sc-pannello { 0%, 25% { transform: translateY(105%); } 31%, 92% { transform: translateY(0); } 98%, 100% { transform: translateY(105%); } }
@keyframes sc-chip1 { 0%, 36% { opacity: 0; transform: scale(.6); } 40%, 100% { opacity: 1; transform: scale(1); } }
@keyframes sc-chip2 { 0%, 41% { opacity: 0; transform: scale(.6); } 45%, 100% { opacity: 1; transform: scale(1); } }
@keyframes sc-chip3 { 0%, 45% { opacity: 0; transform: scale(.6); } 49%, 100% { opacity: 1; transform: scale(1); } }
@keyframes sc-nota { 0%, 50% { width: 0; } 62%, 100% { width: 16ch; } }
@keyframes sc-rosso { 0%, 72% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes sc-verde { 0%, 72% { opacity: 0; } 74%, 100% { opacity: 1; } }

/* ---------- Dall'icona dell'estensione (10 secondi) ----------
   Qui tutto sta a destra (l'icona di Chrome è in alto a destra), quindi il cursore
   parte con la punta a 40px dal bordo destro, 2px dall'alto: per indicare un punto
   a R px dal bordo destro e Y px dall'alto si usa translate(40-R px, Y-2 px). */
.s-icona { font-family: Inter, system-ui, sans-serif; }
.s-icona .barra-chrome { position: absolute; left: 0; right: 0; top: 0; height: 34px; background: #1d1d24; border-bottom: 1px solid rgba(255,255,255,.08); }
.s-icona .indirizzo { position: absolute; left: 10px; right: 70px; top: 8px; height: 18px; border-radius: 9px; background: rgba(255,255,255,.08); }
.s-icona .ic-puzzle { position: absolute; right: 42px; top: 9px; width: 16px; height: 16px; border-radius: 4px; background: rgba(255,255,255,.18); }
.s-icona .ic-arkivid { position: absolute; right: 12px; top: 6px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  animation: si-icona 10s infinite; }
.s-icona .ic-arkivid img { width: 18px; height: 18px; }
.s-icona .finestrella { position: absolute; right: 8px; top: 38px; width: 180px; height: 132px; border-radius: 12px; background: #15151c;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 40px -14px rgba(0,0,0,.95); opacity: 0; transform: translateY(-6px);
  animation: si-finestra 10s infinite; }
.s-icona .fin-testa { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; align-items: center; gap: 6px;
  font: 700 11px/18px Unbounded, Inter, sans-serif; color: #f2f2f5; }
.s-icona .fin-testa img { width: 14px; height: 14px; }
.s-icona .fin-testa em { font-style: normal; color: var(--rosso); }
.s-icona .fin-bt { position: absolute; left: 10px; right: 10px; height: 26px; border-radius: 9px; text-align: center; white-space: nowrap;
  font: 600 10.5px/26px Inter, system-ui, sans-serif; }
.s-icona .b-salva { top: 34px; color: #fff; background: linear-gradient(135deg, #ff0033, #c4002a); animation: si-salva 10s infinite; }
.s-icona .b-lavoro { top: 34px; color: #b9b7c6; background: rgba(255,255,255,.06); opacity: 0; animation: si-lavoro 10s infinite; }
.s-icona .b-fatto { top: 34px; color: #2ee59d; opacity: 0; animation: si-fatto 10s infinite; }
.s-icona .b-completa { top: 66px; color: #fff; background: linear-gradient(135deg, #ff0033, #c4002a); opacity: 0; animation: si-completa 10s infinite; }
.s-icona .fin-nota { position: absolute; left: 10px; right: 10px; top: 100px; font-size: 9.5px; line-height: 1.3; color: var(--muto); opacity: 0;
  animation: si-completa 10s infinite; }
.s-icona .cursore.destra { left: auto; right: 22px; top: 0; animation: si-cursore 10s infinite; }
.s-icona .clic.destra { left: auto; right: 0; top: 0; margin: -13px -13px 0 0; animation: si-clic 10s infinite; }

@keyframes si-cursore {
  0%   { transform: translate(-130px, 140px); opacity: 0; }
  6%   { transform: translate(-120px, 130px); opacity: 1; }
  15%  { transform: translate(17px, 15px); }
  17%  { transform: translate(17px, 15px) scale(.82); }
  19%  { transform: translate(17px, 15px) scale(1); }
  30%  { transform: translate(-58px, 83px); }
  32%  { transform: translate(-58px, 83px) scale(.82); }
  34%  { transform: translate(-58px, 83px) scale(1); }
  52%  { transform: translate(-58px, 83px); }
  60%  { transform: translate(-58px, 115px); }
  62%  { transform: translate(-58px, 115px) scale(.82); }
  64%  { transform: translate(-58px, 115px) scale(1); }
  74%  { transform: translate(-58px, 115px); opacity: 1; }
  84%, 100% { transform: translate(-110px, 170px); opacity: 0; }
}
/* il cerchio del clic: la posizione è contata dal bordo destro (translate negativo = verso sinistra) */
@keyframes si-clic {
  0%, 16% { transform: translate(-23px, 17px) scale(.3); opacity: 0; }
  17% { transform: translate(-23px, 17px) scale(.4); opacity: .9; }
  25% { transform: translate(-23px, 17px) scale(2.2); opacity: 0; }
  26%, 31% { transform: translate(-98px, 85px) scale(.3); opacity: 0; }
  32% { transform: translate(-98px, 85px) scale(.4); opacity: .9; }
  40% { transform: translate(-98px, 85px) scale(2.2); opacity: 0; }
  41%, 61% { transform: translate(-98px, 117px) scale(.3); opacity: 0; }
  62% { transform: translate(-98px, 117px) scale(.4); opacity: .9; }
  70%, 100% { transform: translate(-98px, 117px) scale(2.2); opacity: 0; }
}
@keyframes si-icona { 0%, 16% { background: transparent; } 18%, 66% { background: rgba(255,255,255,.12); } 70%, 100% { background: transparent; } }
@keyframes si-finestra { 0%, 17% { opacity: 0; transform: translateY(-6px); } 20%, 66% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes si-salva { 0%, 32% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes si-lavoro { 0%, 32% { opacity: 0; } 33%, 45% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes si-fatto { 0%, 46% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes si-completa { 0%, 46% { opacity: 0; transform: translateY(4px); } 50%, 100% { opacity: 1; transform: none; } }

/* =====================================================================
   Gruppo "Ordinare"
   ===================================================================== */
.s-cat, .s-linkutili, .s-cerca, .s-scaffali, .s-sel { font-family: Inter, system-ui, sans-serif; }

/* ---------- Categorie su misura (9 secondi): la categoria nuova entra anche nel filtro ---------- */
.s-cat .vid { position: absolute; left: 12px; right: 12px; top: 12px; height: 46px; display: flex; gap: 10px; align-items: center; }
.s-cat .vid > i { width: 64px; height: 38px; border-radius: 7px; flex: none; background: linear-gradient(135deg, #0d1b40, #3d2a7a); }
.s-cat .vid > span { flex: 1; position: relative; height: 38px; }
.s-cat .vid b { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.18); width: 90%; margin: 3px 0 7px; }
.s-cat .analizza, .s-cat .nuova { position: absolute; left: 0; top: 17px; height: 20px; padding: 0 8px; border-radius: 10px; white-space: nowrap;
  font: 600 10.5px/20px Inter, system-ui, sans-serif; }
.s-cat .analizza { color: #7cf0c0; padding-left: 0; animation: sk-analizza 9s infinite; }
.s-cat .nuova { background: rgba(122,28,255,.22); color: #c9a8ff; opacity: 0; transform: scale(.6); animation: sk-nuova 9s infinite; }
.s-cat .filtro { position: absolute; left: 12px; right: 12px; top: 68px; height: 24px; border-radius: 8px; padding: 0 9px; font-size: 10.5px; line-height: 24px;
  color: #dcdce2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.s-cat .filtro::after { content: "▾"; position: absolute; right: 9px; color: var(--muto); }
.s-cat .menu { position: absolute; left: 12px; right: 12px; top: 96px; padding: 4px; border-radius: 9px; background: #1a1a22; border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(-4px); animation: sk-menu 9s infinite; }
.s-cat .menu div { display: flex; justify-content: space-between; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; line-height: 20px; color: #dcdce2; overflow: hidden; }
.s-cat .menu div em { font-style: normal; color: var(--muto); }
.s-cat .menu .arriva { height: 0; animation: sk-arriva 9s infinite; }
@keyframes sk-analizza { 0% { opacity: 1; } 8% { opacity: .45; } 16% { opacity: 1; } 24% { opacity: .45; } 28% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes sk-nuova { 0%, 30% { opacity: 0; transform: scale(.6); } 34%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes sk-menu { 0%, 40% { opacity: 0; transform: translateY(-4px); } 44%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes sk-arriva { 0%, 52% { height: 0; background: transparent; } 58%, 80% { height: 20px; background: rgba(122,28,255,.25); }
  86%, 92% { height: 20px; background: transparent; } 96%, 100% { height: 0; } }

/* ---------- Link utili dalla descrizione (9 secondi): ArkiVid spunta quelli utili, social e donazioni no ---------- */
.s-linkutili .titolo { position: absolute; left: 12px; right: 12px; top: 10px; font-size: 10.5px; font-weight: 700; color: #f2f2f5; white-space: nowrap; }
.s-linkutili .scelti { position: absolute; left: 12px; right: 12px; top: 148px; font-size: 10.5px; color: #7cf0c0; white-space: nowrap; opacity: 0; animation: sl2-scelti 9s infinite; }
.s-linkutili .righe { position: absolute; left: 12px; right: 12px; top: 32px; }
.s-linkutili .righe div { display: flex; align-items: center; gap: 8px; height: 28px; font: 10.5px/1 ui-monospace, Consolas, monospace; color: #dcdce2;
  white-space: nowrap; overflow: hidden; opacity: 0; }
.s-linkutili .righe div:nth-child(1) { animation: sl2-r1 9s infinite; }
.s-linkutili .righe div:nth-child(2) { animation: sl2-r2 9s infinite; }
.s-linkutili .righe div:nth-child(3) { animation: sl2-r3 9s infinite; }
.s-linkutili .righe div:nth-child(4) { animation: sl2-r4 9s infinite; }
.s-linkutili .righe em { margin-left: auto; font: 600 9.5px/16px Inter, system-ui, sans-serif; font-style: normal; padding: 0 6px; border-radius: 8px;
  color: var(--muto); background: rgba(255,255,255,.06); }
.s-linkutili .casella { width: 14px; height: 14px; border-radius: 4px; flex: none; display: grid; place-items: center; font: 800 10px/1 Inter, sans-serif;
  color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.s-linkutili .si .casella { animation: sl2-spunta 9s infinite; }
@keyframes sl2-r1 { 0%, 4% { opacity: 0; } 8%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes sl2-r2 { 0%, 9% { opacity: 0; } 13%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes sl2-r3 { 0%, 14% { opacity: 0; } 18%, 46% { opacity: 1; } 50%, 92% { opacity: .35; } 96%, 100% { opacity: 0; } }
@keyframes sl2-r4 { 0%, 19% { opacity: 0; } 23%, 46% { opacity: 1; } 50%, 92% { opacity: .35; } 96%, 100% { opacity: 0; } }
@keyframes sl2-spunta { 0%, 34% { background: transparent; color: transparent; } 38%, 100% { background: #2ee59d; color: #07070a; box-shadow: none; } }
@keyframes sl2-scelti { 0%, 54% { opacity: 0; } 58%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* ---------- Filtri e ricerca (9 secondi): cerca anche dentro riassunti e note ---------- */
.s-cerca .campo { position: absolute; left: 12px; right: 12px; top: 12px; height: 28px; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,42,85,.6); }
.s-cerca .segnaposto { position: absolute; left: 10px; line-height: 26px; font-size: 10.5px; color: var(--muto); white-space: nowrap; animation: sr-segnaposto 9s infinite; }
.s-cerca .scritto { position: absolute; left: 10px; font: 11px/26px ui-monospace, Consolas, monospace; color: #f2f2f5; white-space: nowrap; overflow: hidden;
  width: 0; animation: sr-scrivi 9s steps(5, end) infinite; }
.s-cerca .elenco { position: absolute; left: 12px; right: 12px; top: 48px; }
.s-cerca .elenco div { display: flex; align-items: center; gap: 6px; height: 24px; overflow: hidden; font-size: 11px; color: #dcdce2; white-space: nowrap; }
.s-cerca .elenco i { width: 30px; height: 18px; border-radius: 4px; flex: none; background: rgba(255,255,255,.1); }
.s-cerca .elenco .no { animation: sr-sparisci 9s infinite; }
.s-cerca mark { background: transparent; color: inherit; border-radius: 3px; animation: sr-evidenzia 9s infinite; }
.s-cerca .elenco em { font: 600 9.5px/16px Inter, system-ui, sans-serif; font-style: normal; padding: 0 6px; border-radius: 8px; color: #ffd27a;
  background: rgba(255,176,32,.12); opacity: 0; animation: sr-dove 9s infinite; }
@keyframes sr-segnaposto { 0%, 8% { opacity: 1; } 10%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes sr-scrivi { 0%, 10% { width: 0; } 26%, 92% { width: 5ch; } 93%, 100% { width: 0; } }
@keyframes sr-sparisci { 0%, 30% { height: 24px; opacity: 1; } 38%, 90% { height: 0; opacity: 0; } 96%, 100% { height: 24px; opacity: 1; } }
@keyframes sr-evidenzia { 0%, 34% { background: transparent; } 40%, 90% { background: rgba(255,176,32,.35); } 94%, 100% { background: transparent; } }
@keyframes sr-dove { 0%, 40% { opacity: 0; } 46%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }

/* ---------- Scaffali (10 secondi): da Lista a copertine, con il voto colorato e il suggerimento ---------- */
.s-scaffali .viste { position: absolute; left: 12px; top: 12px; display: flex; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.06); }
.s-scaffali .viste span { width: 56px; height: 22px; border-radius: 7px; text-align: center; font: 600 10.5px/22px Inter, system-ui, sans-serif; color: var(--muto); }
.s-scaffali .viste .v1 { animation: ss-v1 10s infinite; }
.s-scaffali .viste .v2 { animation: ss-v2 10s infinite; }
.s-scaffali .lista { position: absolute; left: 12px; right: 12px; top: 46px; animation: ss-lista 10s infinite; }
.s-scaffali .lista div { display: flex; gap: 8px; align-items: center; height: 26px; }
.s-scaffali .lista i { width: 34px; height: 20px; border-radius: 4px; background: rgba(255,255,255,.1); flex: none; }
.s-scaffali .lista b { height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); flex: 0 1 70%; }
.s-scaffali .scaffale { position: absolute; left: 12px; right: 12px; opacity: 0; animation: ss-scaffale 10s infinite; }
.s-scaffali .sc1 { top: 46px; } .s-scaffali .sc2 { top: 104px; }
.s-scaffali .scaffale h5 { margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muto); }
.s-scaffali .copertine { display: flex; gap: 6px; }
.s-scaffali .copertine i { position: relative; width: 44px; height: 30px; border-radius: 6px; flex: none; }
.s-scaffali .copertine i:nth-child(1) { background: linear-gradient(135deg, #ff7a3d, #b8282f); }
.s-scaffali .copertine i:nth-child(2) { background: linear-gradient(135deg, #f3c34a, #a7561b); }
.s-scaffali .copertine i:nth-child(3) { background: linear-gradient(135deg, #e5486b, #6b1d5e); }
.s-scaffali .copertine i:nth-child(4) { background: linear-gradient(135deg, #8e5cff, #2c2470); }
.s-scaffali .sc2 .copertine i:nth-child(1) { background: linear-gradient(135deg, #2ec5e5, #145c8a); }
.s-scaffali .sc2 .copertine i:nth-child(2) { background: linear-gradient(135deg, #49d49a, #1b6a52); }
.s-scaffali .sc2 .copertine i:nth-child(3) { background: linear-gradient(135deg, #7da2ff, #2a3f8f); }
/* il voto: un tondino col numero, colorato (verde = vale la pena, giallo = così così, rosso = no) */
.s-scaffali .copertine i b { position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: rgba(7,7,10,.9);
  box-shadow: 0 0 0 1.5px var(--c); color: var(--c); font: 700 9px/15px Inter, sans-serif; text-align: center; }
.s-scaffali .suggerimento { position: absolute; left: 12px; top: 90px; padding: 5px 8px; border-radius: 7px; background: #f2f2f5; color: #111116;
  font-size: 10px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(0,0,0,.8); z-index: 3; opacity: 0; animation: ss-sugg 10s infinite; }
.s-scaffali .cursore { animation: ss-cursore 10s infinite; }
.s-scaffali .clic { animation: ss-clic 10s infinite; }
@keyframes ss-v1 { 0%, 21% { background: rgba(255,255,255,.12); color: #f2f2f5; } 23%, 92% { background: transparent; color: var(--muto); } 96%, 100% { background: rgba(255,255,255,.12); color: #f2f2f5; } }
@keyframes ss-v2 { 0%, 21% { background: transparent; color: var(--muto); } 23%, 92% { background: rgba(255,255,255,.12); color: #f2f2f5; } 96%, 100% { background: transparent; color: var(--muto); } }
@keyframes ss-lista { 0%, 21% { opacity: 1; } 24%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes ss-scaffale { 0%, 22% { opacity: 0; transform: translateY(6px); } 28%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ss-sugg { 0%, 50% { opacity: 0; transform: translateY(-3px); } 54%, 80% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; } }
@keyframes ss-cursore {
  0%   { transform: translate(200px, 150px); opacity: 0; }
  6%   { transform: translate(190px, 140px); opacity: 1; }
  20%  { transform: translate(92px, 22px); }
  22%  { transform: translate(92px, 22px) scale(.82); }
  24%  { transform: translate(92px, 22px) scale(1); }
  34%  { transform: translate(92px, 22px); }
  48%  { transform: translate(30px, 71px); }
  82%  { transform: translate(30px, 71px); opacity: 1; }
  90%, 100% { transform: translate(90px, 160px); opacity: 0; }
}
@keyframes ss-clic { 0%, 21% { transform: translate(96px, 24px) scale(.3); opacity: 0; } 22% { transform: translate(96px, 24px) scale(.4); opacity: .9; }
  30%, 100% { transform: translate(96px, 24px) scale(2.2); opacity: 0; } }

/* ---------- Selezione multipla (10 secondi): spunti due video e li segni come visti insieme ---------- */
.s-sel .righe { position: absolute; left: 12px; right: 12px; top: 12px; }
.s-sel .righe > div { position: relative; display: flex; gap: 8px; align-items: center; height: 26px; }
.s-sel .righe i { width: 30px; height: 18px; border-radius: 4px; flex: none; background: rgba(255,255,255,.1); }
.s-sel .righe b { height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); flex: 0 1 58%; }
.s-sel .casella { width: 14px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
  display: grid; place-items: center; font: 800 10px/1 Inter, sans-serif; color: transparent; }
.s-sel .sc1 .casella { animation: se-sp1 10s infinite; }
.s-sel .sc3 .casella { animation: se-sp3 10s infinite; }
.s-sel .visto { position: absolute; right: 0; font: 600 9.5px/16px Inter, sans-serif; padding: 0 6px; border-radius: 8px; color: #2ee59d;
  background: rgba(46,229,157,.12); opacity: 0; animation: se-visto 10s infinite; }
.s-sel .barra-sel { position: absolute; left: 12px; right: 12px; top: 118px; height: 50px; border-radius: 10px; background: #1a1a22;
  border: 1px solid rgba(255,255,255,.12); opacity: 0; animation: se-barra 10s infinite; }
.s-sel .conta { position: absolute; left: 10px; top: 5px; display: grid; font-size: 10.5px; font-weight: 700; color: #f2f2f5; }
.s-sel .conta span { grid-area: 1 / 1; white-space: nowrap; }
.s-sel .conta .n1 { animation: se-n1 10s infinite; }
.s-sel .conta .n2 { opacity: 0; animation: se-n2 10s infinite; }
.s-sel .azioni-sel { position: absolute; left: 8px; top: 21px; display: flex; gap: 6px; }
.s-sel .azioni-sel span { height: 22px; border-radius: 7px; text-align: center; font: 600 10px/22px Inter, system-ui, sans-serif; white-space: nowrap;
  color: #ecebf2; background: rgba(255,255,255,.08); }
.s-sel .azioni-sel .a1 { width: 96px; }
.s-sel .azioni-sel .a2 { width: 86px; animation: se-premi 10s infinite; }
.s-sel .avviso-sel { position: absolute; left: 12px; right: 12px; top: 130px; height: 26px; border-radius: 9px; padding: 0 10px; background: rgba(20,20,26,.96);
  border: 1px solid rgba(46,229,157,.4); color: #ecebf2; font-size: 10.5px; line-height: 24px; white-space: nowrap; opacity: 0; animation: se-avviso 10s infinite; }
.s-sel .avviso-sel b { color: #2ee59d; margin-right: 4px; }
.s-sel .cursore { animation: se-cursore 10s infinite; }
.s-sel .clic { animation: se-clic 10s infinite; }
@keyframes se-sp1 { 0%, 18% { background: transparent; color: transparent; } 19%, 92% { background: #2ee59d; color: #07070a; box-shadow: none; } 96%, 100% { background: transparent; color: transparent; } }
@keyframes se-sp3 { 0%, 34% { background: transparent; color: transparent; } 35%, 92% { background: #2ee59d; color: #07070a; box-shadow: none; } 96%, 100% { background: transparent; color: transparent; } }
@keyframes se-barra { 0%, 18% { opacity: 0; transform: translateY(6px); } 21%, 61% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; } }
@keyframes se-n1 { 0%, 34% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes se-n2 { 0%, 34% { opacity: 0; } 35%, 100% { opacity: 1; } }
@keyframes se-premi { 0%, 59% { background: rgba(255,255,255,.08); } 60%, 63% { background: rgba(255,42,85,.5); } 64%, 100% { background: rgba(255,255,255,.08); } }
@keyframes se-visto { 0%, 62% { opacity: 0; } 66%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes se-avviso { 0%, 63% { opacity: 0; transform: translateY(6px); } 67%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes se-cursore {
  0%   { transform: translate(200px, 150px); opacity: 0; }
  5%   { transform: translate(190px, 140px); opacity: 1; }
  17%  { transform: translate(17px, 23px); }
  18%  { transform: translate(17px, 23px) scale(.82); }
  20%  { transform: translate(17px, 23px) scale(1); }
  33%  { transform: translate(17px, 75px); }
  34%  { transform: translate(17px, 75px) scale(.82); }
  36%  { transform: translate(17px, 75px) scale(1); }
  58%  { transform: translate(162px, 149px); }
  60%  { transform: translate(162px, 149px) scale(.82); }
  62%  { transform: translate(162px, 149px) scale(1); }
  74%  { transform: translate(162px, 149px); opacity: 1; }
  84%, 100% { transform: translate(200px, 175px); opacity: 0; }
}
@keyframes se-clic {
  0%, 17% { transform: translate(21px, 25px) scale(.3); opacity: 0; } 18% { transform: translate(21px, 25px) scale(.4); opacity: .9; }
  25% { transform: translate(21px, 25px) scale(2.2); opacity: 0; }
  26%, 33% { transform: translate(21px, 77px) scale(.3); opacity: 0; } 34% { transform: translate(21px, 77px) scale(.4); opacity: .9; }
  41% { transform: translate(21px, 77px) scale(2.2); opacity: 0; }
  42%, 59% { transform: translate(166px, 151px) scale(.3); opacity: 0; } 60% { transform: translate(166px, 151px) scale(.4); opacity: .9; }
  68%, 100% { transform: translate(166px, 151px) scale(2.2); opacity: 0; }
}

/* =====================================================================
   Gruppo "Capire"
   ===================================================================== */
.s-vale, .s-rias, .s-fonte, .s-chiedi, .s-sint { font-family: Inter, system-ui, sans-serif; }
.scena .tit { position: absolute; left: 12px; right: 12px; top: 10px; font-size: 11.5px; font-weight: 700; color: #f2f2f5; white-space: nowrap; }
.scena .muto { position: absolute; left: 12px; right: 12px; font-size: 10px; color: var(--muto); white-space: nowrap; }
.scena .bt { position: absolute; left: 12px; height: 24px; border-radius: 12px; text-align: center; font: 700 11px/24px Inter, system-ui, sans-serif;
  white-space: nowrap; color: #fff; background: var(--rosso); }
.scena .riga-b { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.17); }
.scena .attesa { position: absolute; left: 12px; right: 12px; font-size: 10.5px; color: #7cf0c0; white-space: nowrap; opacity: 0; }

/* ---------- Ne vale la pena? (9 secondi) ----------
   Il giudizio arriva DA SOLO insieme alle proposte (categoria e tag) quando completi
   un video che ha la trascrizione: qui non c'è nessun clic. */
.s-vale .tit { color: #7cf0c0; }
.s-vale .prop { position: absolute; left: 12px; right: 12px; display: flex; align-items: center; gap: 6px; height: 20px; font-size: 10.5px; color: var(--muto); white-space: nowrap; }
.s-vale .prop i { width: 56px; flex: none; font-style: normal; }
.s-vale .prop b { height: 20px; padding: 0 8px; border-radius: 10px; font: 600 10.5px/20px Inter, system-ui, sans-serif; }
.s-vale .p1 { top: 32px; animation: cv-p1 9s infinite; } .s-vale .p2 { top: 56px; animation: cv-p2 9s infinite; }
.s-vale .p1 b { background: rgba(122,28,255,.22); color: #c9a8ff; }
.s-vale .p2 b { background: rgba(255,255,255,.08); color: #dcdae6; }
.s-vale .attesa { top: 96px; animation: cv-attesa 9s infinite; }
.s-vale .anello { position: absolute; left: 12px; top: 86px; width: 40px; height: 40px; opacity: 0; animation: cv-compari 9s infinite; }
.s-vale .anello circle { fill: rgba(7,7,10,.9); stroke-width: 4; }
.s-vale .anello .fondo { stroke: rgba(255,255,255,.15); }
.s-vale .anello .pieno { fill: none; stroke: #2ee59d; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5;
  transform: rotate(-90deg); transform-origin: 50% 50%; animation: cv-anello 9s infinite; }
.s-vale .num { position: absolute; left: 12px; top: 86px; width: 40px; line-height: 40px; text-align: center; color: #2ee59d; font-weight: 800; font-size: 15px;
  opacity: 0; animation: cv-num 9s infinite; }
.s-vale .esito { position: absolute; left: 62px; right: 12px; top: 86px; opacity: 0; animation: cv-esito 9s infinite; }
.s-vale .esito b { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(46,229,157,.14); color: #7cf0c0; }
.s-vale .esito span { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.35; color: #cfcdd9; white-space: normal; }
.s-vale .muto { top: 154px; opacity: 0; animation: cv-esito 9s infinite; }
@keyframes cv-p1 { 0%, 4% { opacity: 0; transform: translateX(-6px); } 8%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cv-p2 { 0%, 9% { opacity: 0; transform: translateX(-6px); } 13%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cv-attesa { 0%, 14% { opacity: 0; } 17%, 34% { opacity: 1; } 25% { opacity: .5; } 37%, 100% { opacity: 0; } }
@keyframes cv-compari { 0%, 36% { opacity: 0; } 39%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cv-anello { 0%, 38% { stroke-dashoffset: 100.5; } 52%, 92% { stroke-dashoffset: 20.1; } 96%, 100% { stroke-dashoffset: 100.5; } }
@keyframes cv-num { 0%, 48% { opacity: 0; } 52%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cv-esito { 0%, 52% { opacity: 0; transform: translateX(-6px); } 57%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Riassunto con i minuti (10 secondi): prima ti dice quanto usa, poi lo scrive ---------- */
.s-rias .bt { top: 14px; width: 132px; animation: cr-via 10s infinite; }
.s-rias .costo { top: 46px; animation: cr-via 10s infinite; }
.s-rias .costo b { color: #f2f2f5; }
.s-rias .testo { position: absolute; left: 12px; right: 12px; top: 10px; opacity: 0; animation: cr-testo 10s infinite; }
.s-rias h6 { margin: 0 0 5px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muto); }
.s-rias .testo .riga-b { margin-bottom: 6px; } .s-rias .testo .riga-b + .riga-b { width: 75%; }
.s-rias .punti { position: absolute; left: 12px; right: 12px; top: 56px; }
.s-rias .punti h6 { opacity: 0; animation: cr-testo 10s infinite; }
.s-rias .punti div { display: flex; align-items: center; gap: 8px; height: 22px; opacity: 0; }
.s-rias .punti div span { color: #ff6b85; font: 600 10.5px/1 ui-monospace, monospace; white-space: nowrap; }
.s-rias .punti div .riga-b { flex: 1; }
.s-rias .punti div:nth-of-type(1) { animation: cr-p1 10s infinite; }
.s-rias .punti div:nth-of-type(2) { animation: cr-p2 10s infinite; }
.s-rias .punti div:nth-of-type(3) { animation: cr-p3 10s infinite; }
.s-rias .fonte { position: absolute; left: 12px; top: 144px; padding: 3px 9px; border-radius: 9px; font-size: 10px; white-space: nowrap;
  background: rgba(46,229,157,.07); border: 1px solid rgba(46,229,157,.22); color: #a8ecd0; opacity: 0; animation: cr-fonte 10s infinite; }
.s-rias .cursore { animation: cr-cursore 10s infinite; }
.s-rias .clic { animation: cr-clic 10s infinite; }
@keyframes cr-via { 0%, 21% { opacity: 1; } 25%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes cr-testo { 0%, 28% { opacity: 0; } 33%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cr-p1 { 0%, 38% { opacity: 0; transform: translateX(-6px); } 42%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cr-p2 { 0%, 44% { opacity: 0; transform: translateX(-6px); } 48%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cr-p3 { 0%, 50% { opacity: 0; transform: translateX(-6px); } 54%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cr-fonte { 0%, 58% { opacity: 0; } 63%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cr-cursore {
  0%   { transform: translate(200px, 150px); opacity: 0; }
  6%   { transform: translate(190px, 140px); opacity: 1; }
  18%  { transform: translate(74px, 24px); }
  20%  { transform: translate(74px, 24px) scale(.82); }
  22%  { transform: translate(74px, 24px) scale(1); }
  28%  { transform: translate(74px, 24px); opacity: 1; }
  38%, 100% { transform: translate(180px, 120px); opacity: 0; }
}
@keyframes cr-clic { 0%, 19% { transform: translate(78px, 26px) scale(.3); opacity: 0; } 20% { transform: translate(78px, 26px) scale(.4); opacity: .9; }
  28%, 100% { transform: translate(78px, 26px) scale(2.2); opacity: 0; } }

/* ---------- Sai sempre da dove viene (10 secondi): la fonte cambia da video a video ---------- */
.s-fonte .video { position: absolute; left: 12px; right: 12px; height: 26px; display: flex; gap: 8px; align-items: center; padding: 0 6px; border-radius: 8px;
  font-size: 11px; color: #dcdce2; white-space: nowrap; }
.s-fonte .video i { width: 30px; height: 18px; border-radius: 4px; flex: none; background: rgba(255,255,255,.12); }
.s-fonte .va { top: 10px; animation: cf-va 10s infinite; }
.s-fonte .vb { top: 40px; animation: cf-vb 10s infinite; }
.s-fonte .riquadri { position: absolute; left: 12px; right: 12px; top: 76px; display: grid; }
.s-fonte .riquadri > div { grid-area: 1 / 1; padding: 8px 10px; border-radius: 10px; font-size: 10.5px; line-height: 1.4; opacity: 0; }
.s-fonte .riquadri small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.s-fonte .buona { background: rgba(46,229,157,.07); border: 1px solid rgba(46,229,157,.3); color: #c8f2df; animation: cf-buona 10s infinite; }
.s-fonte .buona small { color: #7cf0c0; }
.s-fonte .scarsa { background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.35); color: #f5dca8; animation: cf-scarsa 10s infinite; }
.s-fonte .scarsa small { color: #ffb020; }
.s-fonte .cursore { animation: cf-cursore 10s infinite; }
.s-fonte .clic { animation: cf-clic 10s infinite; }
@keyframes cf-va { 0%, 14% { background: transparent; } 16%, 52% { background: rgba(255,255,255,.07); } 54%, 100% { background: transparent; } }
@keyframes cf-vb { 0%, 54% { background: transparent; } 56%, 92% { background: rgba(255,255,255,.07); } 96%, 100% { background: transparent; } }
@keyframes cf-buona { 0%, 16% { opacity: 0; transform: translateY(4px); } 20%, 52% { opacity: 1; transform: none; } 55%, 100% { opacity: 0; } }
@keyframes cf-scarsa { 0%, 56% { opacity: 0; transform: translateY(4px); } 60%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cf-cursore {
  0%   { transform: translate(200px, 150px); opacity: 0; }
  5%   { transform: translate(190px, 140px); opacity: 1; }
  14%  { transform: translate(76px, 21px); }
  15%  { transform: translate(76px, 21px) scale(.82); }
  17%  { transform: translate(76px, 21px) scale(1); }
  46%  { transform: translate(76px, 21px); }
  54%  { transform: translate(76px, 51px); }
  55%  { transform: translate(76px, 51px) scale(.82); }
  57%  { transform: translate(76px, 51px) scale(1); }
  82%  { transform: translate(76px, 51px); opacity: 1; }
  92%, 100% { transform: translate(190px, 70px); opacity: 0; }
}
@keyframes cf-clic {
  0%, 14% { transform: translate(80px, 23px) scale(.3); opacity: 0; } 15% { transform: translate(80px, 23px) scale(.4); opacity: .9; }
  23% { transform: translate(80px, 23px) scale(2.2); opacity: 0; }
  24%, 54% { transform: translate(80px, 53px) scale(.3); opacity: 0; } 55% { transform: translate(80px, 53px) scale(.4); opacity: .9; }
  63%, 100% { transform: translate(80px, 53px) scale(2.2); opacity: 0; }
}

/* ---------- Chiedi all'archivio (10 secondi): la risposta cita video e minuto ---------- */
.s-chiedi .campo { position: absolute; left: 12px; right: 12px; top: 30px; height: 28px; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,42,85,.6); }
.s-chiedi .scritto { position: absolute; left: 9px; font: 10.5px/26px ui-monospace, Consolas, monospace; color: #f2f2f5; white-space: nowrap; overflow: hidden;
  width: 0; animation: cc-scrivi 10s steps(23, end) infinite; }
.s-chiedi .attesa { top: 68px; animation: cc-attesa 10s infinite; }
.s-chiedi .risposta { position: absolute; left: 12px; right: 12px; top: 68px; opacity: 0; animation: cc-risp 10s infinite; }
.s-chiedi .risposta .riga-b { margin-bottom: 6px; } .s-chiedi .risposta .riga-b:nth-child(2) { width: 85%; } .s-chiedi .risposta .riga-b:nth-child(3) { width: 60%; }
.s-chiedi .fonti { position: absolute; left: 12px; right: 12px; top: 108px; display: flex; gap: 6px; flex-wrap: wrap; }
.s-chiedi .fonti span { height: 20px; padding: 0 8px; border-radius: 10px; font: 600 10px/20px Inter, system-ui, sans-serif; white-space: nowrap;
  color: #ff8aa0; background: rgba(255,42,85,.12); opacity: 0; transform: scale(.7); }
.s-chiedi .fonti span:nth-child(1) { animation: cc-f1 10s infinite; }
.s-chiedi .fonti span:nth-child(2) { animation: cc-f2 10s infinite; }
.s-chiedi .muto { top: 146px; opacity: 0; animation: cc-f2 10s infinite; }
@keyframes cc-scrivi { 0%, 6% { width: 0; } 30%, 92% { width: 23ch; } 93%, 100% { width: 0; } }
@keyframes cc-attesa { 0%, 32% { opacity: 0; } 35%, 48% { opacity: 1; } 41% { opacity: .5; } 51%, 100% { opacity: 0; } }
@keyframes cc-risp { 0%, 50% { opacity: 0; } 55%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cc-f1 { 0%, 58% { opacity: 0; transform: scale(.7); } 62%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cc-f2 { 0%, 63% { opacity: 0; transform: scale(.7); } 67%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Sintesi per argomento (10 secondi): più video, un solo documento ---------- */
.s-sint .arg { position: absolute; left: 12px; right: 12px; top: 32px; display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--muto); white-space: nowrap; }
.s-sint .arg b { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.08); color: #dcdae6; opacity: 0; animation: cs-arg 10s infinite; }
.s-sint .muto { top: 58px; opacity: 0; animation: cs-arg 10s infinite; }
.s-sint .bt { top: 80px; width: 96px; animation: cs-bt 10s infinite; }
.s-sint .doc { position: absolute; inset: 0; background: #14141b; border-top: 1px solid rgba(255,255,255,.12); padding: 10px 12px; transform: translateY(105%);
  animation: cs-doc 10s infinite; }
.s-sint .doc .sez { margin-bottom: 9px; opacity: 0; }
.s-sint .doc .sez:nth-child(1) { animation: cs-s1 10s infinite; }
.s-sint .doc .sez:nth-child(2) { animation: cs-s2 10s infinite; }
.s-sint .doc .sez:nth-child(3) { animation: cs-s3 10s infinite; }
.s-sint .doc h6 { margin: 0 0 5px; font-size: 10.5px; font-weight: 700; color: #f2f2f5; white-space: nowrap; }
.s-sint .doc .riga-b { width: 90%; }
.s-sint .ordine { display: flex; gap: 6px; }
.s-sint .ordine i { width: 34px; height: 20px; border-radius: 4px; display: grid; place-items: center; font: 700 10px/1 Inter, sans-serif; font-style: normal;
  color: #fff; background: linear-gradient(135deg, #ff2a55, #7a1cff); }
.s-sint .cursore { animation: cs-cursore 10s infinite; }
.s-sint .clic { animation: cs-clic 10s infinite; }
@keyframes cs-arg { 0%, 8% { opacity: 0; } 12%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cs-bt { 0%, 29% { transform: scale(1); } 31% { transform: scale(.95); } 33%, 100% { transform: scale(1); } }
@keyframes cs-doc { 0%, 34% { transform: translateY(105%); } 40%, 92% { transform: none; } 98%, 100% { transform: translateY(105%); } }
@keyframes cs-s1 { 0%, 42% { opacity: 0; } 47%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cs-s2 { 0%, 50% { opacity: 0; } 55%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cs-s3 { 0%, 58% { opacity: 0; } 63%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cs-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  8%   { transform: translate(190px, 150px); opacity: 1; }
  28%  { transform: translate(56px, 90px); }
  30%  { transform: translate(56px, 90px) scale(.82); }
  32%  { transform: translate(56px, 90px) scale(1); }
  38%  { transform: translate(56px, 90px); opacity: 1; }
  46%, 100% { transform: translate(150px, 175px); opacity: 0; }
}
@keyframes cs-clic { 0%, 29% { transform: translate(60px, 92px) scale(.3); opacity: 0; } 30% { transform: translate(60px, 92px) scale(.4); opacity: .9; }
  38%, 100% { transform: translate(60px, 92px) scale(2.2); opacity: 0; } }

/* =====================================================================
   Gruppo "Guardare"
   ===================================================================== */
.s-gq, .s-ripr, .s-meglio, .s-appunti, .s-domanda, .s-tasti { font-family: Inter, system-ui, sans-serif; }
/* un piccolo lettore riusato da più scene */
.scena .lt { position: absolute; left: 12px; right: 12px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2a1640, #15151c); }
.scena .lt .barra-v { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.scena .lt .barra-v i { display: block; height: 100%; background: #ff0033; }
.scena .lt .ora { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font: 600 10.5px/1 ui-monospace, monospace; padding: 3px 5px; border-radius: 5px; }
.scena .lt .onde-v { position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -14px; display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.scena .lt .onde-v i { width: 4px; border-radius: 2px; background: rgba(255,255,255,.8); animation: onda-v .7s ease-in-out infinite alternate; }
.scena .lt .onde-v i:nth-child(1) { height: 8px; } .scena .lt .onde-v i:nth-child(2) { height: 18px; animation-delay: .2s; }
.scena .lt .onde-v i:nth-child(3) { height: 12px; animation-delay: .4s; } .scena .lt .onde-v i:nth-child(4) { height: 16px; animation-delay: .1s; }
.scena .lt .pausa-v { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -8px; width: 16px; height: 18px;
  border-left: 5px solid rgba(255,255,255,.85); border-right: 5px solid rgba(255,255,255,.85); opacity: 0; }
@keyframes onda-v { to { transform: scaleY(.45); } }
/* il tasto premuto (per le scene con la tastiera) */
.scena .kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 6px; font: 700 11px/1 Inter, system-ui, sans-serif;
  color: #f2f2f5; background: rgba(255,255,255,.1); border-bottom: 3px solid rgba(0,0,0,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.scena .scheda-v { position: absolute; left: 12px; right: 12px; top: 14px; display: flex; gap: 10px; align-items: center; }
.scena .scheda-v > i { position: relative; width: 70px; height: 40px; border-radius: 7px; flex: none; overflow: hidden; background: linear-gradient(135deg, #ff7a3d, #6b1d5e); }
.scena .scheda-v > span { flex: 1; }
.scena .scheda-v .riga-b { margin: 4px 0 7px; } .scena .scheda-v .riga-b + .riga-b { width: 60%; background: rgba(255,255,255,.1); }

/* ---------- Guarda qui (9 secondi) ---------- */
.s-gq .bt { top: 68px; width: 96px; animation: gq-bt 9s infinite; }
.s-gq .finestra { position: absolute; inset: 0; background: #101016; transform: translateY(105%); animation: gq-fin 9s infinite; }
.s-gq .lt { top: 10px; height: 112px; }
.s-gq .lt .barra-v i { width: 8%; animation: gq-barra 9s infinite; }
.s-gq .finestra .muto { top: 134px; }
.s-gq .cursore { animation: gq-cursore 9s infinite; }
.s-gq .clic { animation: gq-clic 9s infinite; }
@keyframes gq-bt { 0%, 21% { transform: scale(1); } 23% { transform: scale(.95); } 25%, 100% { transform: scale(1); } }
@keyframes gq-fin { 0%, 25% { transform: translateY(105%); } 31%, 92% { transform: none; } 98%, 100% { transform: translateY(105%); } }
@keyframes gq-barra { 0%, 31% { width: 0; } 92%, 100% { width: 22%; } }
@keyframes gq-cursore {
  0%   { transform: translate(200px, 150px); opacity: 0; }
  6%   { transform: translate(190px, 140px); opacity: 1; }
  20%  { transform: translate(56px, 78px); }
  22%  { transform: translate(56px, 78px) scale(.82); }
  24%  { transform: translate(56px, 78px) scale(1); }
  28%  { transform: translate(56px, 78px); opacity: 1; }
  36%, 100% { transform: translate(150px, 175px); opacity: 0; }
}
@keyframes gq-clic { 0%, 21% { transform: translate(60px, 80px) scale(.3); opacity: 0; } 22% { transform: translate(60px, 80px) scale(.4); opacity: .9; }
  30%, 100% { transform: translate(60px, 80px) scale(2.2); opacity: 0; } }

/* ---------- Riprendi da dove eri (9 secondi) ---------- */
.s-ripr .scheda-v > i::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 58%; background: #ff0033; }
.s-ripr .bt { top: 68px; width: 120px; }
.s-meglio .lt .barra-v i { width: 0; }
.s-ripr .finestra { position: absolute; inset: 0; background: #101016; transform: translateY(105%); animation: gq-fin 9s infinite; }
.s-ripr .lt { top: 10px; height: 112px; }
.s-ripr .lt .barra-v i { width: 58%; }
.s-ripr .ripreso { position: absolute; left: 12px; right: 12px; top: 132px; padding: 6px 10px; border-radius: 9px; font-size: 10.5px; white-space: nowrap;
  background: rgba(46,229,157,.08); border: 1px solid rgba(46,229,157,.3); color: #c8f2df; opacity: 0; animation: rp-ripreso 9s infinite; }
.s-ripr .ripreso b { color: #fff; }
.s-ripr .cursore { animation: gq-cursore 9s infinite; }
.s-ripr .clic { animation: gq-clic 9s infinite; }
@keyframes rp-ripreso { 0%, 33% { opacity: 0; transform: translateY(4px); } 38%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* ---------- Solo il meglio (10 secondi): salta da una parte consigliata all'altra ---------- */
.s-meglio .lt { top: 12px; height: 92px; }
.s-meglio .linea { position: absolute; left: 12px; right: 12px; top: 116px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.s-meglio .linea b { position: absolute; top: 0; height: 100%; border-radius: 3px; background: rgba(46,229,157,.55); }
.s-meglio .linea b:nth-child(1) { left: 10%; width: 14%; } .s-meglio .linea b:nth-child(2) { left: 44%; width: 12%; } .s-meglio .linea b:nth-child(3) { left: 74%; width: 15%; }
.s-meglio .testina { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,0,51,.7);
  left: 10%; animation: gm-testina 10s infinite; }
.s-meglio .parte { position: absolute; left: 12px; top: 134px; display: grid; font-size: 11px; font-weight: 700; color: #7cf0c0; }
.s-meglio .parte span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
.s-meglio .parte span:nth-child(1) { animation: gm-p1 10s infinite; }
.s-meglio .parte span:nth-child(2) { animation: gm-p2 10s infinite; }
.s-meglio .parte span:nth-child(3) { animation: gm-p3 10s infinite; }
.s-meglio .parte span:nth-child(4) { animation: gm-p4 10s infinite; color: #f2f2f5; }
.s-meglio .salto { position: absolute; right: 12px; top: 133px; font-size: 10px; color: var(--muto); white-space: nowrap; animation: gm-salto 10s infinite; }
/* la testina avanza dentro una parte verde, poi salta alla successiva */
@keyframes gm-testina { 0%, 6% { left: 10%; } 28% { left: 24%; } 29% { left: 44%; } 52% { left: 56%; } 53% { left: 74%; } 80%, 100% { left: 89%; } }
@keyframes gm-p1 { 0%, 1% { opacity: 0; } 3%, 28% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes gm-p2 { 0%, 28% { opacity: 0; } 29%, 52% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes gm-p3 { 0%, 52% { opacity: 0; } 53%, 80% { opacity: 1; } 81%, 100% { opacity: 0; } }
@keyframes gm-p4 { 0%, 81% { opacity: 0; } 83%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes gm-salto { 0%, 27% { opacity: 0; } 29%, 34% { opacity: 1; } 37%, 51% { opacity: 0; } 53%, 58% { opacity: 1; } 61%, 100% { opacity: 0; } }

/* ---------- Appunti al minuto (10 secondi): premi N, scrivi, l'appunto prende il minuto ---------- */
.s-appunti .lt { top: 12px; height: 70px; }
.s-appunti .lt .barra-v i { width: 42%; }
.s-appunti .lt .onde-v { animation: ap-onde 10s infinite; }
.s-appunti .lt .pausa-v { animation: ap-pausa 10s infinite; }
.s-appunti .tasto-n { position: absolute; left: 50%; top: 32px; margin-left: -12px; z-index: 2; opacity: 0; animation: ap-tasto 10s infinite; }
.s-appunti .campo { position: absolute; left: 12px; right: 12px; top: 92px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,42,85,.6); display: flex; align-items: center; gap: 6px; padding: 0 8px; opacity: 0; animation: ap-campo 10s infinite; }
.s-appunti .campo em { font: 600 10px/1 ui-monospace, monospace; font-style: normal; color: #ff6b85; }
.s-appunti .scritto { font: 10.5px/26px ui-monospace, Consolas, monospace; color: #f2f2f5; white-space: nowrap; overflow: hidden; width: 0; animation: ap-scrivi 10s steps(18, end) infinite; }
.s-appunti .nota-v { position: absolute; left: 12px; right: 12px; top: 130px; display: flex; gap: 8px; align-items: center; height: 26px; padding: 0 8px;
  border-radius: 8px; background: rgba(255,255,255,.05); font-size: 10.5px; color: #dcdce2; white-space: nowrap; opacity: 0; animation: ap-nota 10s infinite; }
.s-appunti .nota-v span { color: #ff6b85; font: 600 10.5px/1 ui-monospace, monospace; }
@keyframes ap-onde { 0%, 16% { opacity: 1; } 17%, 68% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes ap-pausa { 0%, 16% { opacity: 0; } 17%, 68% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes ap-tasto { 0%, 10% { opacity: 0; transform: scale(.8); } 13% { opacity: 1; transform: scale(1.1); } 16%, 22% { opacity: 1; transform: scale(1); } 26%, 100% { opacity: 0; } }
@keyframes ap-campo { 0%, 17% { opacity: 0; } 20%, 66% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes ap-scrivi { 0%, 22% { width: 0; } 50%, 100% { width: 18ch; } }
@keyframes ap-nota { 0%, 64% { opacity: 0; transform: translateY(-6px); } 68%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Domande mentre guardi (10 secondi): premi D e chiedi su quel punto ---------- */
.s-domanda .lt { top: 12px; height: 62px; }
.s-domanda .lt .barra-v i { width: 35%; }
.s-domanda .lt .onde-v { animation: dq-onde 10s infinite; }
.s-domanda .lt .pausa-v { animation: dq-pausa 10s infinite; }
.s-domanda .tasto-d { position: absolute; left: 50%; top: 28px; margin-left: -12px; z-index: 2; opacity: 0; animation: ap-tasto 10s infinite; }
.s-domanda .campo { position: absolute; left: 12px; right: 12px; top: 82px; height: 26px; border-radius: 9px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,42,85,.6); padding: 0 8px; opacity: 0; animation: dq-campo 10s infinite; }
.s-domanda .scritto { display: block; font: 10.5px/24px ui-monospace, Consolas, monospace; color: #f2f2f5; white-space: nowrap; overflow: hidden; width: 0;
  animation: dq-scrivi 10s steps(21, end) infinite; }
.s-domanda .attesa { top: 118px; animation: dq-attesa 10s infinite; }
.s-domanda .risposta { position: absolute; left: 12px; right: 12px; top: 116px; opacity: 0; animation: dq-risp 10s infinite; }
.s-domanda .risposta .riga-b { margin-bottom: 6px; } .s-domanda .risposta .riga-b + .riga-b { width: 70%; }
.s-domanda .risposta em { display: inline-block; margin-top: 2px; font: 600 10px/20px Inter, system-ui, sans-serif; font-style: normal; padding: 0 8px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #dcdae6; }
@keyframes dq-onde { 0%, 16% { opacity: 1; } 17%, 100% { opacity: 0; } }
@keyframes dq-pausa { 0%, 16% { opacity: 0; } 17%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes dq-campo { 0%, 17% { opacity: 0; } 20%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes dq-scrivi { 0%, 22% { width: 0; } 46%, 100% { width: 21ch; } }
@keyframes dq-attesa { 0%, 48% { opacity: 0; } 51%, 62% { opacity: 1; } 57% { opacity: .5; } 65%, 100% { opacity: 0; } }
@keyframes dq-risp { 0%, 64% { opacity: 0; } 69%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* ---------- Scorciatoie da tastiera (9 secondi): i tasti si accendono uno alla volta ---------- */
.s-tasti .tit { color: var(--muto); font-weight: 600; font-size: 10.5px; }
.s-tasti .tasti { position: absolute; left: 12px; right: 12px; top: 32px; display: flex; flex-wrap: wrap; gap: 6px; }
.s-tasti .tasti .kbd { animation-duration: 9s; animation-iteration-count: infinite; }
.s-tasti .tasti .kbd:nth-child(1) { animation-name: kt1; } .s-tasti .tasti .kbd:nth-child(2) { animation-name: kt2; }
.s-tasti .tasti .kbd:nth-child(3) { animation-name: kt3; } .s-tasti .tasti .kbd:nth-child(4) { animation-name: kt4; }
.s-tasti .tasti .kbd:nth-child(5) { animation-name: kt5; } .s-tasti .tasti .kbd:nth-child(6) { animation-name: kt6; }
.s-tasti .spiega { position: absolute; left: 12px; right: 12px; top: 104px; height: 60px; display: grid; }
.s-tasti .spiega span { grid-area: 1 / 1; font-size: 12px; font-weight: 600; line-height: 1.35; color: #f2f2f5; opacity: 0;
  animation-duration: 9s; animation-iteration-count: infinite; }
.s-tasti .spiega span small { display: block; font-size: 10.5px; font-weight: 400; color: var(--muto); margin-top: 3px; }
.s-tasti .spiega span:nth-child(1) { animation-name: ks1; } .s-tasti .spiega span:nth-child(2) { animation-name: ks2; }
.s-tasti .spiega span:nth-child(3) { animation-name: ks3; } .s-tasti .spiega span:nth-child(4) { animation-name: ks4; }
.s-tasti .spiega span:nth-child(5) { animation-name: ks5; } .s-tasti .spiega span:nth-child(6) { animation-name: ks6; }
/* sei tasti, ognuno acceso per circa un sesto del giro */
@keyframes kt1 { 0%, 1% { background: rgba(255,255,255,.1); transform: none; } 2%, 15% { background: var(--rosso); transform: translateY(2px); } 16%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes kt2 { 0%, 17% { background: rgba(255,255,255,.1); transform: none; } 18%, 31% { background: var(--rosso); transform: translateY(2px); } 32%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes kt3 { 0%, 33% { background: rgba(255,255,255,.1); transform: none; } 34%, 47% { background: var(--rosso); transform: translateY(2px); } 48%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes kt4 { 0%, 49% { background: rgba(255,255,255,.1); transform: none; } 50%, 63% { background: var(--rosso); transform: translateY(2px); } 64%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes kt5 { 0%, 65% { background: rgba(255,255,255,.1); transform: none; } 66%, 79% { background: var(--rosso); transform: translateY(2px); } 80%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes kt6 { 0%, 81% { background: rgba(255,255,255,.1); transform: none; } 82%, 96% { background: var(--rosso); transform: translateY(2px); } 97%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes ks1 { 0%, 1% { opacity: 0; } 3%, 15% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes ks2 { 0%, 17% { opacity: 0; } 19%, 31% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes ks3 { 0%, 33% { opacity: 0; } 35%, 47% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes ks4 { 0%, 49% { opacity: 0; } 51%, 63% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes ks5 { 0%, 65% { opacity: 0; } 67%, 79% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes ks6 { 0%, 81% { opacity: 0; } 83%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* =====================================================================
   Gruppo "Ricordare"
   ===================================================================== */
.s-smista, .s-quiz, .s-sett { font-family: Inter, system-ui, sans-serif; }

/* ---------- Smista (10 secondi): una carta alla volta, decidi con i tasti 1-4 ---------- */
.s-smista .conta { position: absolute; left: 12px; top: 9px; display: grid; font-size: 10.5px; font-weight: 700; color: var(--muto); }
.s-smista .conta span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
.s-smista .conta span:nth-child(1) { animation: sm-n1 10s infinite; }
.s-smista .conta span:nth-child(2) { animation: sm-n2 10s infinite; }
.s-smista .conta span:nth-child(3) { animation: sm-n3 10s infinite; }
.s-smista .carta-s { position: absolute; left: 12px; right: 12px; top: 30px; height: 76px; padding: 8px; border-radius: 12px; display: flex; gap: 10px;
  background: #1a1a22; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px -14px rgba(0,0,0,.9); opacity: 0; }
.s-smista .carta-s > i { width: 70px; height: 44px; border-radius: 7px; flex: none; }
.s-smista .carta-s > span { flex: 1; min-width: 0; }
.s-smista .carta-s .riga-b { margin: 3px 0 7px; }
.s-smista .carta-s b { display: inline-block; font-size: 9.5px; padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.s-smista .carta-s small { display: block; margin-top: 4px; font-size: 9.5px; color: var(--muto); white-space: nowrap; }
.s-smista .k1 { animation: sm-c1 10s infinite; } .s-smista .k1 > i { background: linear-gradient(135deg, #5a5a66, #22222b); }
.s-smista .k1 b { background: rgba(255,77,109,.14); color: #ff8aa0; }
.s-smista .k2 { animation: sm-c2 10s infinite; } .s-smista .k2 > i { background: linear-gradient(135deg, #2ec5e5, #145c8a); }
.s-smista .k2 b { background: rgba(46,229,157,.14); color: #7cf0c0; }
.s-smista .k3 { animation: sm-c3 10s infinite; } .s-smista .k3 > i { background: linear-gradient(135deg, #f3c34a, #a7561b); }
.s-smista .k3 b { background: rgba(255,176,32,.14); color: #ffd27a; }
.s-smista .scelte { position: absolute; left: 12px; right: 12px; top: 116px; display: flex; gap: 6px; }
.s-smista .scelte div { flex: 1; min-width: 0; text-align: center; font-size: 9.5px; line-height: 1.2; color: var(--muto); }
.s-smista .scelte .kbd { display: grid; margin: 0 auto 4px; width: 26px; }
.s-smista .scelte div:nth-child(1) .kbd { animation: sm-t1 10s infinite; }
.s-smista .scelte div:nth-child(4) .kbd { animation: sm-t4 10s infinite; }
@keyframes sm-n1 { 0%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes sm-n2 { 0%, 35% { opacity: 0; } 37%, 66% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes sm-n3 { 0%, 67% { opacity: 0; } 69%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
/* la prima carta esce a sinistra (lasciata andare), la seconda a destra (da guardare) */
@keyframes sm-c1 { 0%, 2% { opacity: 0; transform: translateY(8px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateX(-110%) rotate(-8deg); } }
@keyframes sm-c2 { 0%, 34% { opacity: 0; transform: translateY(8px); } 38%, 62% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: translateX(110%) rotate(8deg); } }
@keyframes sm-c3 { 0%, 66% { opacity: 0; transform: translateY(8px); } 70%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes sm-t4 { 0%, 26% { background: rgba(255,255,255,.1); transform: none; } 28%, 33% { background: var(--rosso); transform: translateY(2px); } 35%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes sm-t1 { 0%, 58% { background: rgba(255,255,255,.1); transform: none; } 60%, 65% { background: var(--rosso); transform: translateY(2px); } 67%, 100% { background: rgba(255,255,255,.1); transform: none; } }

/* ---------- Ripasso con i quiz (10 secondi) ---------- */
.s-quiz .tit { color: var(--muto); font-size: 10.5px; }
.s-quiz .domanda { position: absolute; left: 12px; right: 12px; top: 28px; font-size: 11.5px; font-weight: 700; line-height: 1.35; color: #f2f2f5; }
.s-quiz .opz { position: absolute; left: 12px; right: 12px; height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 8px;
  font-size: 10.5px; color: #dcdce2; white-space: nowrap; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.s-quiz .opz b { width: 16px; height: 16px; border-radius: 5px; flex: none; display: grid; place-items: center; font-size: 9.5px; background: rgba(255,255,255,.1); }
.s-quiz .o1 { top: 64px; } .s-quiz .o2 { top: 92px; animation: qz-giusta 10s infinite; } .s-quiz .o3 { top: 120px; }
.s-quiz .esito-q { position: absolute; left: 12px; top: 150px; font-size: 11px; font-weight: 700; color: #2ee59d; opacity: 0; animation: qz-esito 10s infinite; }
.s-quiz .fine { position: absolute; inset: 0; background: #14141b; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 14px; text-align: center;
  transform: translateY(105%); animation: qz-fine 10s infinite; }
.s-quiz .fine strong { display: block; font-size: 15px; color: #f2f2f5; }
.s-quiz .fine .punti-q { display: block; margin: 6px 0; font-size: 26px; font-weight: 800; color: #2ee59d; }
.s-quiz .fine span { font-size: 10.5px; color: #cfcdd9; }
.s-quiz .fine span b { color: #fff; }
.s-quiz .cursore { animation: qz-cursore 10s infinite; }
.s-quiz .clic { animation: qz-clic 10s infinite; }
@keyframes qz-giusta { 0%, 36% { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
  38%, 92% { background: rgba(46,229,157,.12); border-color: rgba(46,229,157,.5); } 96%, 100% { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); } }
@keyframes qz-esito { 0%, 38% { opacity: 0; } 42%, 60% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes qz-fine { 0%, 60% { transform: translateY(105%); } 66%, 92% { transform: none; } 98%, 100% { transform: translateY(105%); } }
@keyframes qz-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  8%   { transform: translate(190px, 150px); opacity: 1; }
  33%  { transform: translate(76px, 102px); }
  35%  { transform: translate(76px, 102px) scale(.82); }
  37%  { transform: translate(76px, 102px) scale(1); }
  48%  { transform: translate(76px, 102px); opacity: 1; }
  58%, 100% { transform: translate(180px, 175px); opacity: 0; }
}
@keyframes qz-clic { 0%, 34% { transform: translate(80px, 104px) scale(.3); opacity: 0; } 35% { transform: translate(80px, 104px) scale(.4); opacity: .9; }
  43%, 100% { transform: translate(80px, 104px) scale(2.2); opacity: 0; } }

/* ---------- La tua settimana (9 secondi) ---------- */
.s-sett .numeri { position: absolute; left: 12px; right: 12px; top: 32px; display: flex; gap: 6px; }
.s-sett .numeri div { flex: 1; min-width: 0; padding: 6px 4px; border-radius: 9px; text-align: center; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); opacity: 0; }
.s-sett .numeri div:nth-child(1) { animation: st-n1 9s infinite; }
.s-sett .numeri div:nth-child(2) { animation: st-n2 9s infinite; }
.s-sett .numeri div:nth-child(3) { animation: st-n3 9s infinite; }
.s-sett .numeri b { display: block; font-size: 14px; font-weight: 800; color: #f2f2f5; white-space: nowrap; }
.s-sett .numeri span { display: block; font-size: 9.5px; color: var(--muto); white-space: nowrap; }
.s-sett .andamento { position: absolute; left: 12px; right: 12px; top: 88px; font-size: 10.5px; line-height: 1.35; color: #c8f2df; opacity: 0; animation: st-r 9s infinite; }
.s-sett .andamento b { color: #2ee59d; }
.s-sett .pulizia { position: absolute; left: 12px; right: 12px; top: 124px; opacity: 0; animation: st-p 9s infinite; }
.s-sett .pulizia strong { display: block; font-size: 10.5px; color: #f2f2f5; white-space: nowrap; }
.s-sett .pulizia span { display: block; margin-top: 4px; font-size: 10px; color: var(--muto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes st-n1 { 0%, 4% { opacity: 0; transform: translateY(6px); } 9%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes st-n2 { 0%, 10% { opacity: 0; transform: translateY(6px); } 15%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes st-n3 { 0%, 16% { opacity: 0; transform: translateY(6px); } 21%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes st-r { 0%, 30% { opacity: 0; } 36%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes st-p { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* =====================================================================
   Gruppo "Su misura"
   ===================================================================== */
.s-lingua, .s-chiave, .s-crediti, .s-sincro { font-family: Inter, system-ui, sans-serif; }
/* due testi nello stesso posto che si danno il cambio (prima / dopo) */
.scena .cambia { display: inline-grid; }
.scena .cambia > span { grid-area: 1 / 1; white-space: nowrap; }

/* ---------- Lingua (9 secondi): da italiano a inglese, l'interfaccia cambia subito ---------- */
.s-lingua .etic { position: absolute; left: 12px; top: 9px; font-size: 10px; color: var(--muto); }
.s-lingua .scelta { position: absolute; left: 12px; top: 25px; width: 120px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11px; line-height: 24px;
  color: #f2f2f5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.s-lingua .scelta::after { content: "▾"; position: absolute; right: 8px; color: var(--muto); }
.s-lingua .elenco-l { position: absolute; left: 12px; top: 52px; width: 120px; padding: 3px; border-radius: 9px; background: #1d1d26; border: 1px solid rgba(255,255,255,.14);
  z-index: 3; box-shadow: 0 14px 30px -10px rgba(0,0,0,.9); opacity: 0; animation: li-elenco 9s infinite; }
.s-lingua .elenco-l div { height: 18px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; line-height: 18px; color: #dcdce2; }
.s-lingua .elenco-l .en { animation: li-en 9s infinite; }
.s-lingua .anteprima { position: absolute; left: 12px; right: 12px; top: 64px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12); }
.s-lingua .anteprima .riga-p { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.s-lingua .pr-bt { height: 24px; padding: 0 10px; border-radius: 12px; font: 600 10.5px/24px Roboto, Arial, sans-serif; color: #fff;
  background: linear-gradient(135deg, #ff0033, #c4002a); }
.s-lingua .pr-chip { height: 22px; padding: 0 9px; border-radius: 8px; font-size: 10.5px; line-height: 22px; color: #dcdce2; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); }
.s-lingua .prima { animation: li-prima 9s infinite; }
.s-lingua .dopo { opacity: 0; animation: li-dopo 9s infinite; }
.s-lingua .cursore { animation: li-cursore 9s infinite; }
.s-lingua .clic { animation: li-clic 9s infinite; }
@keyframes li-elenco { 0%, 20% { opacity: 0; transform: translateY(-4px); } 23%, 46% { opacity: 1; transform: none; } 49%, 100% { opacity: 0; } }
@keyframes li-en { 0%, 34% { background: transparent; } 36%, 46% { background: rgba(255,42,85,.3); } 48%, 100% { background: transparent; } }
@keyframes li-prima { 0%, 46% { opacity: 1; } 48%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes li-dopo { 0%, 46% { opacity: 0; } 48%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes li-cursore {
  0%   { transform: translate(200px, 150px); opacity: 0; }
  6%   { transform: translate(190px, 140px); opacity: 1; }
  18%  { transform: translate(68px, 35px); }
  20%  { transform: translate(68px, 35px) scale(.82); }
  22%  { transform: translate(68px, 35px) scale(1); }
  34%  { transform: translate(56px, 81px); }
  36%  { transform: translate(56px, 81px) scale(.82); }
  38%  { transform: translate(56px, 81px) scale(1); }
  48%  { transform: translate(56px, 81px); opacity: 1; }
  58%, 100% { transform: translate(190px, 175px); opacity: 0; }
}
@keyframes li-clic {
  0%, 19% { transform: translate(72px, 37px) scale(.3); opacity: 0; } 20% { transform: translate(72px, 37px) scale(.4); opacity: .9; }
  27% { transform: translate(72px, 37px) scale(2.2); opacity: 0; }
  28%, 35% { transform: translate(60px, 83px) scale(.3); opacity: 0; } 36% { transform: translate(60px, 83px) scale(.4); opacity: .9; }
  44%, 100% { transform: translate(60px, 83px) scale(2.2); opacity: 0; }
}

/* ---------- Il tuo servizio AI (10 secondi): scegli Gemini, incolla la chiave, provala ---------- */
.s-chiave .etic { position: absolute; left: 12px; top: 9px; font-size: 10px; color: var(--muto); white-space: nowrap; }
.s-chiave .servizi { position: absolute; left: 12px; top: 25px; display: flex; gap: 6px; }
.s-chiave .servizi span { width: 60px; height: 24px; border-radius: 12px; text-align: center; font: 600 10.5px/24px Inter, system-ui, sans-serif;
  color: #dcdce2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.s-chiave .servizi .c { animation: ch-claude 10s infinite; }
.s-chiave .servizi .g { animation: ch-gemini 10s infinite; }
.s-chiave .campo { position: absolute; left: 12px; right: 12px; top: 60px; height: 26px; border-radius: 9px; padding: 0 9px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); }
.s-chiave .campo .segnaposto { position: absolute; left: 9px; font-size: 10px; line-height: 24px; color: var(--muto); white-space: nowrap; animation: ch-segn 10s infinite; }
.s-chiave .campo .scritto { position: absolute; left: 9px; font: 11px/24px ui-monospace, Consolas, monospace; color: #f2f2f5; white-space: nowrap; overflow: hidden;
  width: 0; animation: ch-scrivi 10s steps(16, end) infinite; }
.s-chiave .bt { top: 94px; width: 104px; background: rgba(255,255,255,.1); animation: ch-bt 10s infinite; }
.s-chiave .ok { position: absolute; left: 12px; right: 12px; top: 126px; font-size: 10.5px; line-height: 1.35; color: #2ee59d; opacity: 0; animation: ch-ok 10s infinite; }
.s-chiave .ok small { display: block; color: var(--muto); font-size: 9.5px; margin-top: 3px; }
.s-chiave .cursore { animation: ch-cursore 10s infinite; }
.s-chiave .clic { animation: ch-clic 10s infinite; }
@keyframes ch-claude { 0%, 19% { background: rgba(255,42,85,.25); border-color: rgba(255,42,85,.6); color: #fff; }
  21%, 92% { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dcdce2; } 96%, 100% { background: rgba(255,42,85,.25); border-color: rgba(255,42,85,.6); color: #fff; } }
@keyframes ch-gemini { 0%, 19% { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dcdce2; }
  21%, 92% { background: rgba(255,42,85,.25); border-color: rgba(255,42,85,.6); color: #fff; } 96%, 100% { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dcdce2; } }
@keyframes ch-segn { 0%, 26% { opacity: 1; } 28%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes ch-scrivi { 0%, 28% { width: 0; } 44%, 94% { width: 16ch; } 95%, 100% { width: 0; } }
@keyframes ch-bt { 0%, 55% { transform: scale(1); } 57% { transform: scale(.95); } 59%, 100% { transform: scale(1); } }
@keyframes ch-ok { 0%, 62% { opacity: 0; transform: translateY(4px); } 67%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ch-cursore {
  0%   { transform: translate(60px, 170px); opacity: 0; }
  6%   { transform: translate(80px, 160px); opacity: 1; }
  18%  { transform: translate(170px, 35px); }
  20%  { transform: translate(170px, 35px) scale(.82); }
  22%  { transform: translate(170px, 35px) scale(1); }
  30%  { transform: translate(170px, 35px); }
  54%  { transform: translate(60px, 104px); }
  56%  { transform: translate(60px, 104px) scale(.82); }
  58%  { transform: translate(60px, 104px) scale(1); }
  70%  { transform: translate(60px, 104px); opacity: 1; }
  80%, 100% { transform: translate(190px, 175px); opacity: 0; }
}
@keyframes ch-clic {
  0%, 19% { transform: translate(174px, 37px) scale(.3); opacity: 0; } 20% { transform: translate(174px, 37px) scale(.4); opacity: .9; }
  27% { transform: translate(174px, 37px) scale(2.2); opacity: 0; }
  28%, 55% { transform: translate(64px, 106px) scale(.3); opacity: 0; } 56% { transform: translate(64px, 106px) scale(.4); opacity: .9; }
  64%, 100% { transform: translate(64px, 106px) scale(2.2); opacity: 0; }
}

/* ---------- Crediti sempre in vista (9 secondi) ---------- */
.s-crediti .riga-cr { position: absolute; left: 12px; right: 12px; top: 12px; font-size: 11px; color: #dcdce2; white-space: nowrap; }
.s-crediti .riga-cr b { color: #f2f2f5; }
.s-crediti .riga-cr .prima { animation: cr-prima 9s infinite; }
.s-crediti .riga-cr .dopo { opacity: 0; animation: cr-dopo 9s infinite; }
.s-crediti .misura { position: absolute; left: 12px; right: 12px; top: 34px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.s-crediti .misura i { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #2ee59d, #7cf0c0); animation: cr-misura 9s infinite; }
.s-crediti .muto { top: 48px; }
.s-crediti .speso { position: absolute; left: 12px; top: 68px; height: 22px; padding: 0 9px; border-radius: 11px; font: 600 10.5px/22px Inter, system-ui, sans-serif;
  white-space: nowrap; color: #ff8aa0; background: rgba(255,42,85,.12); opacity: 0; animation: cr-speso 9s infinite; }
.s-crediti .listino { position: absolute; left: 12px; right: 12px; top: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; animation: cr-listino 9s infinite; }
.s-crediti .listino div { padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 10px; color: var(--muto); white-space: nowrap; }
.s-crediti .listino b { color: #f2f2f5; }
@keyframes cr-prima { 0%, 44% { opacity: 1; } 46%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes cr-dopo { 0%, 44% { opacity: 0; } 46%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cr-misura { 0%, 42% { width: 100%; } 50%, 94% { width: 96.7%; } 98%, 100% { width: 100%; } }
@keyframes cr-speso { 0%, 18% { opacity: 0; transform: translateY(6px); } 24%, 40% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes cr-listino { 0%, 50% { opacity: 0; } 56%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* ---------- Su più computer (10 secondi): il video salvato qui compare anche di là ---------- */
.s-sincro .pc { position: absolute; top: 18px; width: 72px; }
.s-sincro .pc.a { left: 12px; } .s-sincro .pc.b { right: 12px; }
.s-sincro .pc .schermo { height: 46px; border-radius: 6px; border: 2px solid rgba(255,255,255,.25); background: #15151c; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #f2f2f5; }
.s-sincro .pc .base { height: 5px; margin: 0 -6px; border-radius: 0 0 4px 4px; background: rgba(255,255,255,.25); }
.s-sincro .pc small { display: block; text-align: center; margin-top: 5px; font-size: 9.5px; color: var(--muto); }
.s-sincro .nuvola { position: absolute; left: 50%; top: 22px; width: 40px; height: 24px; margin-left: -20px; border-radius: 12px; background: rgba(122,28,255,.3);
  box-shadow: 10px -8px 0 -2px rgba(122,28,255,.3); }
.s-sincro .viaggio { position: absolute; top: 36px; width: 18px; height: 12px; margin-left: -9px; border-radius: 3px; background: linear-gradient(135deg, #ff2a55, #7a1cff);
  opacity: 0; left: 50px; animation: sy-viaggio 10s infinite; }
.s-sincro .pc.b .dopo { opacity: 0; animation: sy-dopo 10s infinite; }
.s-sincro .pc.b .prima { animation: sy-prima 10s infinite; }
.s-sincro .stato { position: absolute; left: 12px; right: 12px; top: 104px; display: grid; font-size: 10px; color: #dcdce2; }
.s-sincro .stato > span { grid-area: 1 / 1; white-space: nowrap; }
.s-sincro .stato .in-corso { color: #7cf0c0; opacity: 0; animation: sy-corso 10s infinite; }
.s-sincro .stato .fatta { opacity: 0; animation: sy-dopo 10s infinite; }
.s-sincro .interr { position: absolute; left: 12px; right: 12px; top: 128px; display: flex; gap: 8px; align-items: flex-start; font-size: 10px; line-height: 1.35; color: var(--muto); }
.s-sincro .interr i { width: 26px; height: 14px; border-radius: 7px; flex: none; position: relative; background: #2ee59d; }
.s-sincro .interr i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
/* il video va dal primo computer alla nuvola e poi al secondo */
@keyframes sy-viaggio { 0%, 14% { opacity: 0; left: 50px; transform: translateY(0); } 18% { opacity: 1; left: 50px; }
  34% { left: 50%; transform: translateY(-10px); } 38% { left: 50%; transform: translateY(-10px); }
  56% { opacity: 1; left: calc(100% - 50px); transform: translateY(0); } 60%, 100% { opacity: 0; left: calc(100% - 50px); } }
@keyframes sy-prima { 0%, 57% { opacity: 1; } 59%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes sy-dopo { 0%, 57% { opacity: 0; } 59%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sy-corso { 0%, 16% { opacity: 0; } 19%, 56% { opacity: 1; } 37% { opacity: .5; } 58%, 100% { opacity: 0; } }

/* =====================================================================
   Gruppo "I tuoi dati"
   ===================================================================== */
.s-esporta, .s-copia, .s-parere, .s-segnala, .s-privacy { font-family: Inter, system-ui, sans-serif; }
/* una voce cliccabile a tutta larghezza (formati, scelte, pulsanti della privacy) */
.scena .voce { position: absolute; left: 12px; right: 12px; height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-radius: 8px;
  font-size: 10.5px; color: #dcdce2; white-space: nowrap; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.scena .voce small { color: var(--muto); font-size: 9.5px; }
/* l'etichetta del file scaricato, in basso */
.scena .scaricato { position: absolute; left: 12px; top: 134px; height: 24px; padding: 0 10px; border-radius: 12px; font: 600 10.5px/24px ui-monospace, Consolas, monospace;
  white-space: nowrap; color: #7cf0c0; background: rgba(46,229,157,.1); border: 1px solid rgba(46,229,157,.35); opacity: 0; }

/* ---------- Esporta (10 secondi): Excel e poi Markdown ---------- */
.s-esporta .v1 { top: 10px; animation: es-v1 10s infinite; } .s-esporta .v2 { top: 38px; } .s-esporta .v3 { top: 66px; animation: es-v3 10s infinite; } .s-esporta .v4 { top: 94px; }
.s-esporta .f1 { animation: es-f1 10s infinite; } .s-esporta .f2 { animation: es-f2 10s infinite; }
.s-esporta .cursore { animation: es-cursore 10s infinite; }
.s-esporta .clic { animation: es-clic 10s infinite; }
@keyframes es-v1 { 0%, 19% { background: rgba(255,255,255,.05); } 21%, 40% { background: rgba(255,42,85,.18); } 44%, 100% { background: rgba(255,255,255,.05); } }
@keyframes es-v3 { 0%, 57% { background: rgba(255,255,255,.05); } 59%, 88% { background: rgba(255,42,85,.18); } 92%, 100% { background: rgba(255,255,255,.05); } }
@keyframes es-f1 { 0%, 22% { opacity: 0; transform: translateY(6px); } 27%, 48% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; } }
@keyframes es-f2 { 0%, 60% { opacity: 0; transform: translateY(6px); } 65%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes es-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  6%   { transform: translate(190px, 150px); opacity: 1; }
  18%  { transform: translate(66px, 20px); }
  20%  { transform: translate(66px, 20px) scale(.82); }
  22%  { transform: translate(66px, 20px) scale(1); }
  44%  { transform: translate(66px, 20px); }
  56%  { transform: translate(66px, 76px); }
  58%  { transform: translate(66px, 76px) scale(.82); }
  60%  { transform: translate(66px, 76px) scale(1); }
  76%  { transform: translate(66px, 76px); opacity: 1; }
  86%, 100% { transform: translate(190px, 110px); opacity: 0; }
}
@keyframes es-clic {
  0%, 19% { transform: translate(70px, 22px) scale(.3); opacity: 0; } 20% { transform: translate(70px, 22px) scale(.4); opacity: .9; }
  28% { transform: translate(70px, 22px) scale(2.2); opacity: 0; }
  29%, 57% { transform: translate(70px, 78px) scale(.3); opacity: 0; } 58% { transform: translate(70px, 78px) scale(.4); opacity: .9; }
  66%, 100% { transform: translate(70px, 78px) scale(2.2); opacity: 0; } }

/* ---------- Copia di sicurezza e importazione (10 secondi) ---------- */
.s-copia .file { position: absolute; left: 12px; top: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; z-index: 2;
  background: #1d1d26; border: 1px solid rgba(255,255,255,.16); font: 600 10.5px/1.2 ui-monospace, Consolas, monospace; color: #f2f2f5; white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.9); animation: co-file 10s infinite; }
.s-copia .file b { width: 22px; height: 26px; border-radius: 4px; flex: none; display: grid; place-items: center; font: 800 8px/1 Inter, sans-serif;
  color: #07070a; background: #ffb020; }
.s-copia .zona { position: absolute; left: 12px; right: 12px; top: 62px; height: 52px; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: 10.5px; color: var(--muto); animation: co-zona 10s infinite; }
.s-copia .esito-c { position: absolute; left: 12px; right: 12px; top: 124px; font-size: 10.5px; line-height: 1.4; color: #c8f2df; opacity: 0; animation: co-esito 10s infinite; }
.s-copia .esito-c b { color: #2ee59d; }
@keyframes co-file { 0%, 10% { transform: none; opacity: 1; } 34% { transform: translate(6px, 60px) scale(.92); opacity: 1; } 40%, 92% { transform: translate(6px, 60px) scale(.6); opacity: 0; }
  96%, 100% { transform: none; opacity: 1; } }
@keyframes co-zona { 0%, 22% { border-color: rgba(255,255,255,.22); background: transparent; } 26%, 40% { border-color: rgba(46,229,157,.7); background: rgba(46,229,157,.06); }
  44%, 100% { border-color: rgba(255,255,255,.22); background: transparent; } }
@keyframes co-esito { 0%, 42% { opacity: 0; transform: translateY(4px); } 48%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Il tuo parere sulle risposte (10 secondi) ---------- */
.s-parere .risp { position: absolute; left: 12px; right: 12px; top: 10px; }
.s-parere .risp .riga-b { margin-bottom: 6px; } .s-parere .risp .riga-b + .riga-b { width: 75%; }
.s-parere .domanda-p { position: absolute; left: 12px; top: 36px; font-size: 10.5px; font-weight: 700; color: #f2f2f5; white-space: nowrap; }
.s-parere .pb { position: absolute; left: 12px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 10.5px; line-height: 24px; white-space: nowrap; color: #dcdce2;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.s-parere .si { top: 56px; } .s-parere .no { top: 86px; min-width: 140px; animation: pa-no 10s infinite; }
.s-parere .motivi { position: absolute; left: 12px; top: 118px; width: 180px; opacity: 0; animation: pa-motivi 10s infinite; }
.s-parere .motivi span { position: absolute; height: 20px; border-radius: 10px; text-align: center; font-size: 10px; line-height: 20px; white-space: nowrap; color: #dcdae6;
  background: rgba(255,255,255,.08); }
.s-parere .m1 { left: 0; top: 0; width: 84px; } .s-parere .m2 { left: 90px; top: 0; width: 66px; animation: pa-m2 10s infinite; }
.s-parere .m3 { left: 0; top: 26px; width: 74px; } .s-parere .m4 { left: 80px; top: 26px; width: 90px; }
.s-parere .grazie { position: absolute; left: 12px; top: 150px; font-size: 11px; font-weight: 700; color: #2ee59d; opacity: 0; animation: pa-grazie 10s infinite; }
.s-parere .cursore { animation: pa-cursore 10s infinite; }
.s-parere .clic { animation: pa-clic 10s infinite; }
@keyframes pa-no { 0%, 21% { background: rgba(255,255,255,.06); } 23%, 92% { background: rgba(255,42,85,.2); } 96%, 100% { background: rgba(255,255,255,.06); } }
@keyframes pa-motivi { 0%, 23% { opacity: 0; transform: translateY(-4px); } 27%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes pa-m2 { 0%, 55% { background: rgba(255,255,255,.08); color: #dcdae6; } 57%, 92% { background: var(--rosso); color: #fff; } 96%, 100% { background: rgba(255,255,255,.08); color: #dcdae6; } }
@keyframes pa-grazie { 0%, 60% { opacity: 0; } 64%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes pa-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  6%   { transform: translate(190px, 150px); opacity: 1; }
  20%  { transform: translate(78px, 96px); }
  22%  { transform: translate(78px, 96px) scale(.82); }
  24%  { transform: translate(78px, 96px) scale(1); }
  34%  { transform: translate(78px, 96px); }
  54%  { transform: translate(131px, 126px); }
  56%  { transform: translate(131px, 126px) scale(.82); }
  58%  { transform: translate(131px, 126px) scale(1); }
  74%  { transform: translate(131px, 126px); opacity: 1; }
  84%, 100% { transform: translate(200px, 175px); opacity: 0; }
}
@keyframes pa-clic {
  0%, 21% { transform: translate(82px, 98px) scale(.3); opacity: 0; } 22% { transform: translate(82px, 98px) scale(.4); opacity: .9; }
  30% { transform: translate(82px, 98px) scale(2.2); opacity: 0; }
  31%, 55% { transform: translate(135px, 128px) scale(.3); opacity: 0; } 56% { transform: translate(135px, 128px) scale(.4); opacity: .9; }
  64%, 100% { transform: translate(135px, 128px) scale(2.2); opacity: 0; } }

/* ---------- Segnala un problema (9 secondi) ---------- */
.s-segnala .tit { color: #f2f2f5; }
.s-segnala .sb { position: absolute; height: 24px; border-radius: 12px; text-align: center; font: 600 10.5px/24px Inter, system-ui, sans-serif; white-space: nowrap;
  color: #dcdce2; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.s-segnala .g { left: 12px; top: 32px; width: 104px; color: #fff; background: var(--rosso); border-color: transparent; animation: sg-premi 9s infinite; }
.s-segnala .c { left: 122px; top: 32px; width: 84px; } .s-segnala .p { left: 12px; top: 62px; width: 116px; }
.s-segnala .mail { position: absolute; inset: 0; padding: 10px 12px; background: #f4f4f6; color: #222; transform: translateY(105%); animation: sg-mail 9s infinite;
  font-size: 10px; line-height: 1.45; }
.s-segnala .mail div { border-bottom: 1px solid #ddd; padding: 2px 0; white-space: nowrap; overflow: hidden; }
.s-segnala .mail div b { color: #777; font-weight: 600; margin-right: 6px; }
.s-segnala .mail p { margin: 6px 0 0; color: #444; font-size: 10px; line-height: 1.5; }
.s-segnala .mail small { display: block; margin-top: 4px; color: #888; font-size: 9px; }
.s-segnala .cursore { animation: sg-cursore 9s infinite; }
.s-segnala .clic { animation: sg-clic 9s infinite; }
@keyframes sg-premi { 0%, 21% { transform: scale(1); } 23% { transform: scale(.95); } 25%, 100% { transform: scale(1); } }
@keyframes sg-mail { 0%, 26% { transform: translateY(105%); } 33%, 92% { transform: none; } 98%, 100% { transform: translateY(105%); } }
@keyframes sg-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  6%   { transform: translate(190px, 150px); opacity: 1; }
  20%  { transform: translate(60px, 42px); }
  22%  { transform: translate(60px, 42px) scale(.82); }
  24%  { transform: translate(60px, 42px) scale(1); }
  30%  { transform: translate(60px, 42px); opacity: 1; }
  38%, 100% { transform: translate(190px, 175px); opacity: 0; }
}
@keyframes sg-clic { 0%, 21% { transform: translate(64px, 44px) scale(.3); opacity: 0; } 22% { transform: translate(64px, 44px) scale(.4); opacity: .9; }
  30%, 100% { transform: translate(64px, 44px) scale(2.2); opacity: 0; } }

/* ---------- La privacy nelle tue mani (9 secondi) ---------- */
.s-privacy .tit { color: #f2f2f5; }
.s-privacy .v1 { top: 30px; animation: pr-v1 9s infinite; } .s-privacy .v2 { top: 58px; } .s-privacy .v3 { top: 86px; }
.s-privacy .v2, .s-privacy .v3 { color: #ff8aa0; }
.s-privacy .avviso-p { position: absolute; left: 12px; right: 12px; top: 120px; padding: 6px 9px; border-radius: 9px; font-size: 10px; line-height: 1.4; color: #c8f2df;
  background: rgba(46,229,157,.08); border: 1px solid rgba(46,229,157,.3); opacity: 0; animation: pr-avviso 9s infinite; }
.s-privacy .cursore { animation: pr-cursore 9s infinite; }
.s-privacy .clic { animation: pr-clic 9s infinite; }
@keyframes pr-v1 { 0%, 21% { background: rgba(255,255,255,.05); } 23%, 50% { background: rgba(255,42,85,.18); } 54%, 100% { background: rgba(255,255,255,.05); } }
@keyframes pr-avviso { 0%, 26% { opacity: 0; transform: translateY(4px); } 32%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes pr-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  6%   { transform: translate(190px, 150px); opacity: 1; }
  20%  { transform: translate(66px, 40px); }
  22%  { transform: translate(66px, 40px) scale(.82); }
  24%  { transform: translate(66px, 40px) scale(1); }
  34%  { transform: translate(66px, 40px); opacity: 1; }
  44%, 100% { transform: translate(190px, 175px); opacity: 0; }
}
@keyframes pr-clic { 0%, 21% { transform: translate(70px, 42px) scale(.3); opacity: 0; } 22% { transform: translate(70px, 42px) scale(.4); opacity: .9; }
  30%, 100% { transform: translate(70px, 42px) scale(2.2); opacity: 0; } }

/* =====================================================================
   Funzioni extra (aggiunte dopo, nei gruppi Salvare, Ordinare e Capire)
   ===================================================================== */
.s-lemie, .s-trascr, .s-ccl, .s-rio, .s-cmd, .s-ordina, .s-catg, .s-canali { font-family: Inter, system-ui, sans-serif; }
/* casella da spuntare riusata da più scene */
.scena .spunta-x { width: 14px; height: 14px; border-radius: 4px; flex: none; display: grid; place-items: center; font: 800 10px/1 Inter, sans-serif; }
.scena .spunta-x.on { background: #2ee59d; color: #07070a; }
.scena .spunta-x.off { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); color: transparent; }
.scena .riga-x { position: absolute; left: 12px; right: 12px; height: 22px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #dcdce2; white-space: nowrap; overflow: hidden; }
.scena .riga-x small { color: var(--muto); font-size: 9.5px; }
.scena .riga-x .destra { margin-left: auto; }

/* ---------- Importa le tue playlist (10 secondi): spunti quali leggere ---------- */
.s-lemie .r1 { top: 30px; } .s-lemie .r2 { top: 54px; } .s-lemie .r3 { top: 78px; } .s-lemie .r4 { top: 102px; }
.s-lemie .r2 .spunta-x { animation: lm-togli 10s infinite; }
.s-lemie .r2 { animation: lm-riga 10s infinite; }
.s-lemie .bt { top: 132px; width: 156px; display: grid; animation: lm-bt 10s infinite; }
.s-lemie .bt span { grid-area: 1 / 1; }
.s-lemie .bt .n3 { animation: lm-n3 10s infinite; } .s-lemie .bt .n2 { opacity: 0; animation: lm-n2 10s infinite; } .s-lemie .bt .via { opacity: 0; animation: lm-via 10s infinite; }
.s-lemie .cursore { animation: lm-cursore 10s infinite; }
.s-lemie .clic { animation: lm-clic 10s infinite; }
@keyframes lm-togli { 0%, 27% { background: #2ee59d; color: #07070a; box-shadow: none; } 28%, 94% { background: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
  97%, 100% { background: #2ee59d; color: #07070a; box-shadow: none; } }
@keyframes lm-riga { 0%, 27% { opacity: 1; } 29%, 94% { opacity: .45; } 97%, 100% { opacity: 1; } }
@keyframes lm-n3 { 0%, 27% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes lm-n2 { 0%, 27% { opacity: 0; } 28%, 61% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes lm-via { 0%, 61% { opacity: 0; } 62%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes lm-bt { 0%, 59% { transform: scale(1); background: var(--rosso); } 61% { transform: scale(.95); } 63%, 94% { transform: scale(1); background: rgba(255,255,255,.12); }
  97%, 100% { background: var(--rosso); } }
@keyframes lm-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  6%   { transform: translate(190px, 150px); opacity: 1; }
  24%  { transform: translate(17px, 63px); }
  26%  { transform: translate(17px, 63px) scale(.82); }
  28%  { transform: translate(17px, 63px) scale(1); }
  40%  { transform: translate(17px, 63px); }
  58%  { transform: translate(86px, 142px); }
  60%  { transform: translate(86px, 142px) scale(.82); }
  62%  { transform: translate(86px, 142px) scale(1); }
  74%  { transform: translate(86px, 142px); opacity: 1; }
  84%, 100% { transform: translate(200px, 175px); opacity: 0; }
}
@keyframes lm-clic {
  0%, 25% { transform: translate(21px, 65px) scale(.3); opacity: 0; } 26% { transform: translate(21px, 65px) scale(.4); opacity: .9; }
  34% { transform: translate(21px, 65px) scale(2.2); opacity: 0; }
  35%, 59% { transform: translate(90px, 144px) scale(.3); opacity: 0; } 60% { transform: translate(90px, 144px) scale(.4); opacity: .9; }
  68%, 100% { transform: translate(90px, 144px) scale(2.2); opacity: 0; } }

/* ---------- Completa le trascrizioni (10 secondi): un video alla volta, in background ---------- */
.s-trascr .muto { top: 26px; }
.s-trascr .avanz { position: absolute; left: 12px; right: 12px; top: 42px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.s-trascr .avanz i { display: block; height: 100%; width: 0; background: #2ee59d; animation: tr-avanz 10s infinite; }
.s-trascr .r1 { top: 56px; } .s-trascr .r2 { top: 78px; } .s-trascr .r3 { top: 100px; } .s-trascr .r4 { top: 122px; }
.s-trascr .st { display: inline-grid; width: 16px; flex: none; text-align: center; }
.s-trascr .st span { grid-area: 1 / 1; }
.s-trascr .st .att { color: var(--muto); }
.s-trascr .st .fat { opacity: 0; }
.s-trascr .r1 .att { animation: tr-a1 10s infinite; } .s-trascr .r1 .fat { animation: tr-f1 10s infinite; }
.s-trascr .r2 .att { animation: tr-a2 10s infinite; } .s-trascr .r2 .fat { animation: tr-f2 10s infinite; }
.s-trascr .r3 .att { animation: tr-a3 10s infinite; } .s-trascr .r3 .fat { animation: tr-f3 10s infinite; }
.s-trascr .r4 .att { animation: tr-a4 10s infinite; } .s-trascr .r4 .fat { animation: tr-f4 10s infinite; }
.s-trascr .fine-t { position: absolute; left: 12px; top: 150px; font-size: 10.5px; font-weight: 700; color: #2ee59d; white-space: nowrap; opacity: 0; animation: tr-fine 10s infinite; }
@keyframes tr-avanz { 0%, 6% { width: 0; } 20% { width: 25%; } 38% { width: 50%; } 56% { width: 75%; } 74%, 94% { width: 100%; } 98%, 100% { width: 0; } }
@keyframes tr-a1 { 0%, 19% { opacity: 1; } 20%, 96% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes tr-f1 { 0%, 19% { opacity: 0; } 20%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes tr-a2 { 0%, 37% { opacity: 1; } 38%, 96% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes tr-f2 { 0%, 37% { opacity: 0; } 38%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes tr-a3 { 0%, 55% { opacity: 1; } 56%, 96% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes tr-f3 { 0%, 55% { opacity: 0; } 56%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes tr-a4 { 0%, 73% { opacity: 1; } 74%, 96% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes tr-f4 { 0%, 73% { opacity: 0; } 74%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes tr-fine { 0%, 76% { opacity: 0; } 80%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* ---------- Completa con ArkiVid (10 secondi): proposte per tanti video in un colpo ---------- */
.s-ccl .tit { color: #7cf0c0; }
.s-ccl .muto { top: 26px; }
.s-ccl .b1 { top: 44px; width: 150px; animation: cl-b1 10s infinite; }
.s-ccl .lavora { position: absolute; left: 12px; right: 12px; top: 46px; font-size: 10.5px; color: #dcdce2; white-space: nowrap; opacity: 0; animation: cl-lavora 10s infinite; }
.s-ccl .lavora i { display: block; margin-top: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.s-ccl .lavora i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #2ee59d; animation: cl-barra 10s infinite; }
.s-ccl .prop { position: absolute; left: 12px; right: 12px; height: 22px; display: flex; align-items: center; gap: 5px; opacity: 0; }
.s-ccl .prop > i { width: 28px; height: 16px; border-radius: 3px; flex: none; background: rgba(255,255,255,.12); }
.s-ccl .prop b { height: 18px; padding: 0 7px; border-radius: 9px; font: 600 10px/18px Inter, system-ui, sans-serif; color: #dcdae6; background: rgba(255,255,255,.08); white-space: nowrap; }
.s-ccl .p1 { top: 76px; animation: cl-p1 10s infinite; } .s-ccl .p2 { top: 102px; animation: cl-p2 10s infinite; }
.s-ccl .b2 { top: 134px; width: 124px; opacity: 0; animation: cl-b2 10s infinite; }
.s-ccl .fatto { position: absolute; left: 12px; top: 138px; font-size: 11px; font-weight: 700; color: #2ee59d; white-space: nowrap; opacity: 0; animation: cl-fatto 10s infinite; }
.s-ccl .cursore { animation: cl-cursore 10s infinite; }
.s-ccl .clic { animation: cl-clic 10s infinite; }
@keyframes cl-b1 { 0%, 17% { opacity: 1; transform: none; } 18% { transform: scale(.95); } 21%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes cl-lavora { 0%, 21% { opacity: 0; } 24%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cl-barra { 0%, 22% { width: 0; } 48%, 94% { width: 100%; } 98%, 100% { width: 0; } }
@keyframes cl-p1 { 0%, 34% { opacity: 0; transform: translateX(-6px); } 38%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cl-p2 { 0%, 42% { opacity: 0; transform: translateX(-6px); } 46%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes cl-b2 { 0%, 48% { opacity: 0; } 51%, 69% { opacity: 1; transform: none; } 70% { transform: scale(.95); } 72%, 100% { opacity: 0; } }
@keyframes cl-fatto { 0%, 72% { opacity: 0; } 76%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes cl-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  5%   { transform: translate(190px, 150px); opacity: 1; }
  15%  { transform: translate(83px, 54px); }
  17%  { transform: translate(83px, 54px) scale(.82); }
  19%  { transform: translate(83px, 54px) scale(1); }
  30%  { transform: translate(180px, 120px); }
  56%  { transform: translate(180px, 120px); }
  67%  { transform: translate(70px, 144px); }
  69%  { transform: translate(70px, 144px) scale(.82); }
  71%  { transform: translate(70px, 144px) scale(1); }
  80%  { transform: translate(70px, 144px); opacity: 1; }
  88%, 100% { transform: translate(200px, 175px); opacity: 0; }
}
@keyframes cl-clic {
  0%, 16% { transform: translate(87px, 56px) scale(.3); opacity: 0; } 17% { transform: translate(87px, 56px) scale(.4); opacity: .9; }
  25% { transform: translate(87px, 56px) scale(2.2); opacity: 0; }
  26%, 68% { transform: translate(74px, 146px) scale(.3); opacity: 0; } 69% { transform: translate(74px, 146px) scale(.4); opacity: .9; }
  77%, 100% { transform: translate(74px, 146px) scale(2.2); opacity: 0; } }

/* ---------- Riordina con ArkiVid (10 secondi): proposte da spuntare ---------- */
.s-rio .tit { color: #7cf0c0; }
.s-rio .muto { top: 26px; }
.s-rio .r1 { top: 46px; } .s-rio .r2 { top: 70px; animation: lm-riga 10s infinite; } .s-rio .r3 { top: 94px; }
.s-rio .r2 .spunta-x { animation: lm-togli 10s infinite; }
.s-rio .riga-x b { color: #f2f2f5; }
.s-rio .bt { top: 128px; width: 130px; animation: rio-bt 10s infinite; }
.s-rio .fatto { position: absolute; left: 12px; top: 132px; font-size: 11px; font-weight: 700; color: #2ee59d; white-space: nowrap; opacity: 0; animation: rio-fatto 10s infinite; }
.s-rio .cursore { animation: rio-cursore 10s infinite; }
.s-rio .clic { animation: rio-clic 10s infinite; }
@keyframes rio-bt { 0%, 59% { opacity: 1; transform: none; } 61% { transform: scale(.95); } 64%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes rio-fatto { 0%, 64% { opacity: 0; } 68%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes rio-cursore {
  0%   { transform: translate(200px, 160px); opacity: 0; }
  6%   { transform: translate(190px, 150px); opacity: 1; }
  24%  { transform: translate(17px, 79px); }
  26%  { transform: translate(17px, 79px) scale(.82); }
  28%  { transform: translate(17px, 79px) scale(1); }
  40%  { transform: translate(17px, 79px); }
  58%  { transform: translate(73px, 138px); }
  60%  { transform: translate(73px, 138px) scale(.82); }
  62%  { transform: translate(73px, 138px) scale(1); }
  72%  { transform: translate(73px, 138px); opacity: 1; }
  82%, 100% { transform: translate(200px, 175px); opacity: 0; }
}
@keyframes rio-clic {
  0%, 25% { transform: translate(21px, 81px) scale(.3); opacity: 0; } 26% { transform: translate(21px, 81px) scale(.4); opacity: .9; }
  34% { transform: translate(21px, 81px) scale(2.2); opacity: 0; }
  35%, 59% { transform: translate(77px, 140px) scale(.3); opacity: 0; } 60% { transform: translate(77px, 140px) scale(.4); opacity: .9; }
  68%, 100% { transform: translate(77px, 140px) scale(2.2); opacity: 0; } }

/* ---------- Cerca un comando (9 secondi): Ctrl K, scrivi, Invio ---------- */
.s-cmd .tasti-c { position: absolute; left: 12px; top: 10px; display: flex; gap: 5px; align-items: center; font-size: 10px; color: var(--muto); }
.s-cmd .tasti-c .kbd { animation: cm-tasti 9s infinite; }
.s-cmd .tavola { position: absolute; left: 12px; right: 12px; top: 44px; height: 118px; border-radius: 12px; background: #1a1a22; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.9); opacity: 0; animation: cm-tavola 9s infinite; }
.s-cmd .cerca-c { position: relative; height: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.s-cmd .cerca-c .segnaposto { position: absolute; left: 10px; font-size: 10.5px; line-height: 30px; color: var(--muto); animation: cm-segn 9s infinite; }
.s-cmd .cerca-c .scritto { position: absolute; left: 10px; font: 11px/30px ui-monospace, Consolas, monospace; color: #f2f2f5; white-space: nowrap; overflow: hidden; width: 0;
  animation: cm-scrivi 9s steps(4, end) infinite; }
.s-cmd .voci-c { padding: 4px; }
.s-cmd .voci-c div { height: 26px; padding: 0 8px; border-radius: 7px; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  font-size: 10.5px; color: #dcdce2; white-space: nowrap; }
.s-cmd .voci-c small { font-size: 9px; color: var(--muto); }
.s-cmd .voci-c .no { animation: cm-sparisci 9s infinite; }
.s-cmd .voci-c .si { animation: cm-scelta 9s infinite; }
.s-cmd .invio { position: absolute; right: 18px; bottom: 10px; opacity: 0; animation: cm-invio 9s infinite; }
@keyframes cm-tasti { 0%, 6% { background: rgba(255,255,255,.1); transform: none; } 8%, 14% { background: var(--rosso); transform: translateY(2px); } 16%, 100% { background: rgba(255,255,255,.1); transform: none; } }
@keyframes cm-tavola { 0%, 12% { opacity: 0; transform: scale(.96); } 16%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cm-segn { 0%, 26% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes cm-scrivi { 0%, 28% { width: 0; } 44%, 100% { width: 4ch; } }
@keyframes cm-sparisci { 0%, 44% { height: 26px; opacity: 1; } 50%, 100% { height: 0; opacity: 0; } }
@keyframes cm-scelta { 0%, 48% { background: transparent; } 52%, 92% { background: rgba(255,42,85,.22); } 96%, 100% { background: transparent; } }
@keyframes cm-invio { 0%, 60% { opacity: 0; transform: none; } 63% { opacity: 1; transform: translateY(2px); } 68%, 88% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

/* ---------- Ordina la lista (9 secondi): da "priorità" a "più vale la pena" ---------- */
.s-ordina .scelta-o { position: absolute; left: 12px; top: 10px; height: 24px; padding: 0 26px 0 9px; border-radius: 8px; font-size: 10.5px; line-height: 24px; color: #f2f2f5;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); animation: or-scelta 9s infinite; }
.s-ordina .scelta-o::after { content: "▾"; position: absolute; right: 9px; color: var(--muto); }
.s-ordina .scelta-o .dopo { opacity: 0; animation: li-dopo 9s infinite; }
.s-ordina .scelta-o .prima { animation: li-prima 9s infinite; }
.s-ordina .riga-o { position: absolute; left: 12px; right: 12px; height: 24px; display: flex; align-items: center; gap: 8px; }
.s-ordina .riga-o i { width: 34px; height: 20px; border-radius: 4px; flex: none; background: rgba(255,255,255,.1); }
.s-ordina .riga-o .riga-b { flex: 0 1 60%; }
.s-ordina .riga-o b { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 9.5px/1 Inter, sans-serif;
  color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.s-ordina .o1 { top: 46px; animation: or-1 9s infinite; } .s-ordina .o2 { top: 74px; animation: or-2 9s infinite; }
.s-ordina .o3 { top: 102px; animation: or-3 9s infinite; } .s-ordina .o4 { top: 130px; animation: or-4 9s infinite; }
@keyframes or-scelta { 0%, 30% { border-color: rgba(255,255,255,.14); } 34%, 50% { border-color: rgba(255,42,85,.7); } 54%, 100% { border-color: rgba(255,255,255,.14); } }
/* le righe scivolano al loro nuovo posto (28px = una riga) */
@keyframes or-1 { 0%, 48% { transform: none; } 60%, 92% { transform: translateY(56px); } 98%, 100% { transform: none; } }
@keyframes or-2 { 0%, 48% { transform: none; } 60%, 92% { transform: translateY(-28px); } 98%, 100% { transform: none; } }
@keyframes or-3 { 0%, 48% { transform: none; } 60%, 92% { transform: translateY(28px); } 98%, 100% { transform: none; } }
@keyframes or-4 { 0%, 48% { transform: none; } 60%, 92% { transform: translateY(-56px); } 98%, 100% { transform: none; } }

/* ---------- Gestione categorie (9 secondi): rinomini e togli ---------- */
.s-catg .cr { position: absolute; left: 12px; right: 12px; height: 24px; display: flex; gap: 6px; align-items: center; }
.s-catg .cr .campo-c { flex: 1; min-width: 0; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 10.5px; line-height: 22px; color: #f2f2f5;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; overflow: hidden; }
.s-catg .cr .rim { height: 22px; padding: 0 8px; border-radius: 7px; font-size: 10px; line-height: 22px; color: #ff8aa0; background: rgba(255,42,85,.1); flex: none; }
.s-catg .c1 { top: 30px; } .s-catg .c2 { top: 60px; } .s-catg .c3 { top: 90px; animation: cg-via 9s infinite; }
.s-catg .c2 .campo-c { animation: cg-campo 9s infinite; }
.s-catg .c2 .prima { animation: cg-prima 9s infinite; } .s-catg .c2 .dopo { opacity: 0; animation: cg-dopo 9s infinite; }
.s-catg .c3 .rim { animation: cg-rim 9s infinite; }
.s-catg .agg { position: absolute; left: 12px; top: 130px; font-size: 11px; font-weight: 700; color: #2ee59d; white-space: nowrap; opacity: 0; animation: cg-agg 9s infinite; }
@keyframes cg-campo { 0%, 14% { border-color: rgba(255,255,255,.12); } 16%, 36% { border-color: rgba(255,42,85,.7); } 40%, 100% { border-color: rgba(255,255,255,.12); } }
@keyframes cg-prima { 0%, 26% { opacity: 1; } 27%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes cg-dopo { 0%, 26% { opacity: 0; } 27%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cg-rim { 0%, 44% { background: rgba(255,42,85,.1); color: #ff8aa0; } 46%, 50% { background: var(--rosso); color: #fff; } 52%, 100% { background: rgba(255,42,85,.1); color: #ff8aa0; } }
@keyframes cg-via { 0%, 52% { opacity: 1; transform: none; } 60%, 94% { opacity: 0; transform: translateX(-12px); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes cg-agg { 0%, 62% { opacity: 0; } 66%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* ---------- Canali (9 secondi): quali canali ti danno più valore ---------- */
.s-canali .muto { top: 26px; }
.s-canali .ca { position: absolute; left: 12px; right: 12px; height: 32px; display: flex; align-items: center; gap: 8px; opacity: 0; }
.s-canali .ca span { flex: 1; min-width: 0; font-size: 10.5px; color: #f2f2f5; white-space: nowrap; overflow: hidden; }
.s-canali .ca small { display: block; font-size: 9.5px; color: var(--muto); }
.s-canali .ca b { flex: none; height: 20px; padding: 0 8px; border-radius: 10px; font: 600 10px/20px Inter, system-ui, sans-serif; white-space: nowrap; }
.s-canali .a1 { top: 46px; animation: cn-1 9s infinite; } .s-canali .a1 b { background: rgba(46,229,157,.14); color: #7cf0c0; }
.s-canali .a2 { top: 82px; animation: cn-2 9s infinite; } .s-canali .a2 b { background: rgba(255,255,255,.08); color: #dcdae6; }
.s-canali .a3 { top: 118px; animation: cn-3 9s infinite; } .s-canali .a3 b { background: rgba(255,77,109,.14); color: #ff8aa0; }
@keyframes cn-1 { 0%, 8% { opacity: 0; transform: translateY(6px); } 14%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cn-2 { 0%, 24% { opacity: 0; transform: translateY(6px); } 30%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes cn-3 { 0%, 40% { opacity: 0; transform: translateY(6px); } 46%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* Movimenti ridotti: scene ferme nello stato finale, senza cursore */
@media (prefers-reduced-motion: reduce) {
  .scena * { animation: none !important; }
  .s-lemie .r2 .spunta-x { background: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
  .s-lemie .bt .n3 { opacity: 0; } .s-lemie .bt .n2 { opacity: 1; }
  .s-trascr .st .att { opacity: 0; } .s-trascr .st .fat, .s-trascr .fine-t { opacity: 1; }
  .s-trascr .avanz i { width: 100%; }
  .s-ccl .b1 { opacity: 0; } .s-ccl .lavora, .s-ccl .prop, .s-ccl .fatto { opacity: 1; }
  .s-rio .r2 .spunta-x { background: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
  .s-rio .bt { opacity: 0; } .s-rio .fatto { opacity: 1; }
  .s-cmd .tavola, .s-cmd .invio { opacity: 1; } .s-cmd .cerca-c .segnaposto { opacity: 0; } .s-cmd .cerca-c .scritto { width: 4ch; }
  .s-cmd .voci-c .no { height: 0; opacity: 0; }
  .s-ordina .scelta-o .prima { opacity: 0; } .s-ordina .scelta-o .dopo { opacity: 1; }
  .s-ordina .o1 { transform: translateY(56px); } .s-ordina .o2 { transform: translateY(-28px); } .s-ordina .o3 { transform: translateY(28px); } .s-ordina .o4 { transform: translateY(-56px); }
  .s-catg .c2 .prima, .s-catg .c3 { opacity: 0; } .s-catg .c2 .dopo, .s-catg .agg { opacity: 1; }
  .s-canali .ca { opacity: 1; }
  .s-esporta .f2, .s-copia .esito-c, .s-parere .motivi, .s-parere .grazie, .s-privacy .avviso-p { opacity: 1; transform: none; }
  .s-copia .file { opacity: 0; }
  .s-segnala .mail { transform: none; }
  .s-lingua .prima, .s-crediti .riga-cr .prima, .s-sincro .pc.b .prima { opacity: 0; }
  .s-lingua .dopo, .s-crediti .riga-cr .dopo, .s-crediti .listino, .s-chiave .ok, .s-sincro .pc.b .dopo, .s-sincro .stato .fatta { opacity: 1; }
  .s-chiave .campo .segnaposto { opacity: 0; }
  .s-chiave .campo .scritto { width: 16ch; }
  .s-crediti .misura i { width: 96.7%; }
  .s-smista .conta span:nth-child(3), .s-smista .k3 { opacity: 1; }
  .s-quiz .fine { transform: none; }
  .s-sett .numeri div, .s-sett .andamento, .s-sett .pulizia { opacity: 1; transform: none; }
  .s-gq .finestra, .s-ripr .finestra { transform: none; }
  .s-ripr .ripreso { opacity: 1; }
  .s-meglio .parte span:nth-child(2) { opacity: 1; }
  .s-meglio .testina { left: 50%; }
  .s-appunti .nota-v, .s-appunti .campo { opacity: 1; }
  .s-appunti .scritto { width: 18ch; }
  .s-domanda .campo, .s-domanda .risposta, .s-domanda .lt .pausa-v { opacity: 1; }
  .s-domanda .scritto { width: 21ch; }
  .s-tasti .spiega span:nth-child(1) { opacity: 1; }
  .s-vale .prop, .s-vale .anello, .s-vale .num, .s-vale .esito, .s-vale .muto { opacity: 1; transform: none; }
  .s-vale .anello .pieno { stroke-dashoffset: 20.1; }
  .s-rias .bt, .s-rias .costo { opacity: 0; }
  .s-rias .testo, .s-rias .punti h6, .s-rias .punti div, .s-rias .fonte { opacity: 1; }
  .s-fonte .scarsa { opacity: 1; }
  .s-fonte .vb { background: rgba(255,255,255,.07); }
  .s-chiedi .scritto { width: 23ch; }
  .s-chiedi .risposta, .s-chiedi .fonti span, .s-chiedi .muto { opacity: 1; transform: none; }
  .s-sint .arg b, .s-sint .muto { opacity: 1; }
  .s-sint .doc { transform: none; }
  .s-sint .doc .sez { opacity: 1; }
  .s-cat .analizza { opacity: 0; }
  .s-cat .nuova, .s-cat .menu { opacity: 1; transform: none; }
  .s-cat .menu .arriva { height: 20px; }
  .s-linkutili .righe div, .s-linkutili .scelti { opacity: 1; }
  .s-linkutili .righe .no { opacity: .35; }
  .s-linkutili .si .casella { background: #2ee59d; color: #07070a; box-shadow: none; }
  .s-cerca .segnaposto { opacity: 0; }
  .s-cerca .scritto { width: 5ch; }
  .s-cerca .elenco .no { height: 0; opacity: 0; }
  .s-cerca mark { background: rgba(255,176,32,.35); }
  .s-cerca .elenco em { opacity: 1; }
  .s-scaffali .lista { opacity: 0; }
  .s-scaffali .scaffale, .s-scaffali .suggerimento { opacity: 1; }
  .s-scaffali .viste .v2 { background: rgba(255,255,255,.12); color: #f2f2f5; }
  .s-sel .sc1 .casella, .s-sel .sc3 .casella { background: #2ee59d; color: #07070a; box-shadow: none; }
  .s-sel .visto, .s-sel .avviso-sel { opacity: 1; }
  .s-completa .pannello { transform: none; }
  .s-completa .chip { opacity: 1; transform: none; }
  .s-completa .nota-scritta { width: 16ch; }
  .s-completa .salva-r { opacity: 0; }
  .s-completa .salva-v { opacity: 1; }
  .s-icona .finestrella, .s-icona .b-fatto, .s-icona .b-completa, .s-icona .fin-nota { opacity: 1; transform: none; }
  .s-icona .b-salva { opacity: 0; }
  .s1.annulla .sv-r { opacity: 1; }
  .s1.annulla .sv-v { opacity: 0; }
  .s-playlist .pannello { transform: none; }
  .s-playlist .spunta.tolta { background: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
  .s-playlist .voci .tolta-riga { opacity: .4; }
  .s-playlist .ok4 { opacity: 0; }
  .s-playlist .okv { opacity: 1; }
  .s-link .segnaposto { opacity: 0; }
  .s-link .scritto { width: 17ch; }
  .s-link .scheda, .s-link .nota { opacity: 1; transform: none; }
  .scena .cursore, .scena .clic { opacity: 0; }
  .s1 .sv-r { opacity: 0; }
  .s1 .sv-v, .s1 .avviso { opacity: 1; }
  .s2 .chip, .s2 .voto { opacity: 1; transform: none; }
  .s2 .anello .pieno { stroke-dashoffset: 12.6; }
  .s3 .punti .scelto { background: rgba(255,42,85,.16); }
  .s3 .barra i { width: 40%; }
  .s3 .tempo .t0 { opacity: 0; }
  .s3 .tempo .t1 { opacity: 1; }
}
