/* Marta e Claudietto - stile viola (notte viola, vetro scuro, accenti viola/acqua/corallo) */
:root {
  --bg: #14101f; --bg2: #1c1630;
  --card: rgba(255, 255, 255, .055); --line: rgba(255, 255, 255, .12);
  --txt: #f3effc; --mute: #b4abcb;
  --viola: #a78bfa; --acqua: #57e0c8; --corallo: #ff9a7a;
  --r: 22px; --gut: 16px; --top: 60px; --bot: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hi: inset 0 1px 0 rgba(255,255,255,.08);
  --sh: 0 14px 38px rgba(4,2,12,.38);
  --sh-up: 0 26px 60px rgba(4,2,12,.5), 0 0 0 1px rgba(167,139,250,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 8px); -webkit-text-size-adjust: 100%; }
#home { scroll-margin-top: 400px; } /* "Home" torna proprio in cima, striscia compresa */
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: ui-rounded, "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5; overflow-x: hidden;
  background-image:
    radial-gradient(900px 520px at 90% -5%, rgba(167,139,250,.24), transparent 60%),
    radial-gradient(700px 520px at -10% 38%, rgba(87,224,200,.10), transparent 60%),
    radial-gradient(600px 400px at 100% 80%, rgba(255,154,122,.09), transparent 60%);
  background-attachment: fixed;
  padding-bottom: calc(var(--bot) + 12px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; }
p { margin: 0; }
i { font-style: normal; color: var(--corallo); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--acqua); outline-offset: 2px; border-radius: 10px; }

/* ---------- barra in alto ---------- */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 10px; padding: 0 var(--gut);
  background: rgba(20, 16, 31, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; white-space: nowrap; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--corallo); }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--mute); font-weight: 700; }
.nav a:hover { color: var(--txt); background: var(--card); }
.nav a.active { color: var(--txt); background: var(--card); box-shadow: inset 0 0 0 1px var(--viola); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 22px; line-height: 1;
}
.icon-btn { transition: border-color .2s, box-shadow .2s, transform .15s; }
.icon-btn:hover { border-color: var(--viola); box-shadow: 0 0 18px rgba(167,139,250,.35); }
.icon-btn:active { transform: scale(.92); }
.dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--corallo); color: #1a1020; font-size: 11px; display: grid; place-items: center; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.lang button { border: 0; background: none; color: var(--mute); font: inherit; font-size: 12px; font-weight: 800; padding: 10px 9px; cursor: pointer; min-width: 36px; transition: color .2s, background .2s; }
.lang button:hover { color: var(--txt); }
.lang button:focus-visible { outline-offset: -3px; }
.lang button[aria-pressed="true"] { background: var(--viola); color: #170f2b; }
.social { display: none; }
@media (max-width: 440px) { .brand span { display: none; } }
@media (min-width: 860px) {
  .nav { display: flex; }
  .social { display: grid; }
}

/* ---------- barra in basso (telefono) ---------- */
.bottom {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; height: var(--bot);
  display: flex; justify-content: space-around; align-items: stretch; padding: 6px;
  background: rgba(28, 22, 48, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--mute); font-size: 11px; font-weight: 800; border-radius: 18px; min-width: 0; transition: color .2s, transform .15s; }
.bottom a:active { transform: scale(.94); }
.bottom a.active { box-shadow: 0 6px 18px rgba(87,224,200,.25); }
.bottom a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom a.active { color: #170f2b; background: linear-gradient(135deg, var(--viola), var(--acqua)); }
@media (min-width: 860px) { .bottom { display: none; } body { padding-bottom: 0; } }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 800; font-size: 17px; min-height: 48px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn.primary { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--viola), #8b6df0); color: #150d2a; box-shadow: var(--hi), 0 6px 24px rgba(167,139,250,.35); }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn.primary:hover { box-shadow: var(--hi), 0 10px 32px rgba(167,139,250,.55); transform: translateY(-1px); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.ghost { background: var(--card); color: var(--txt); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--acqua); background: rgba(87,224,200,.08); transform: translateY(-1px); }
.btn:active, .btn.primary:active, .btn.ghost:active { transform: scale(.97); }
.btn.small { padding: 9px 16px; font-size: 14px; min-height: 40px; }
.btn.big { font-size: 22px; padding: 18px 34px; }
.btn.play::before { content: ""; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Home ---------- */
.hero { display: grid; gap: 28px; padding: 22px var(--gut) 18px; max-width: 1120px; margin: 0 auto; align-items: center; }
.kicker { color: var(--acqua); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 10vw, 72px); margin: 8px 0 12px; background: linear-gradient(120deg, #fff 30%, #d9ccff 70%, var(--corallo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 i { -webkit-text-fill-color: var(--corallo); }
.lead { color: var(--mute); font-size: clamp(17px, 4.2vw, 20px); max-width: 34ch; }
.cta { margin: 20px 0 14px; display: flex; }
.cta .btn { flex: 1 1 auto; font-size: 19px; }
.quick { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.q { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; text-decoration: none; font-weight: 800; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border: 1px solid var(--line); box-shadow: var(--hi); transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease; }
.q:hover { transform: translateY(-3px); box-shadow: var(--hi), 0 12px 28px rgba(4,2,12,.4); }
.q:active { transform: scale(.97); }
.q svg { flex: none; }
.q1 svg { color: var(--viola); } .q1:hover { border-color: var(--viola); }
.q2 svg { color: var(--acqua); } .q2:hover { border-color: var(--acqua); }
.q3 svg { color: var(--corallo); } .q3:hover { border-color: var(--corallo); }
.q3 b { color: var(--corallo); }
@media (min-width: 420px) { .quick { grid-template-columns: repeat(3, 1fr); } .q { flex-direction: column; text-align: center; gap: 6px; padding: 14px 8px; font-size: 14px; } }
.newbar { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(255,154,122,.12); color: var(--corallo); font-weight: 800; font-size: 14px; border: 1px solid rgba(255,154,122,.35); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--corallo); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,154,122,.6); } 50% { box-shadow: 0 0 0 8px rgba(255,154,122,0); } }

/* scheda "ultimo episodio": corta su telefono, verticale ed elegante su computer */
.hero-visual { position: relative; width: 100%; isolation: isolate; }
.latest {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 10px;
  border-radius: var(--r); background: linear-gradient(160deg, rgba(58,45,99,.75), rgba(26,19,48,.85));
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.lt-thumb { position: relative; height: 150px; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--bg2); }
.lt-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 38%; transition: transform .5s ease; }
.lt-thumb:hover img { transform: scale(1.05); }
.lt-thumb .bigplay { right: 8px; bottom: 8px; width: 40px; height: 40px; }
.lt-thumb .bigplay::after { left: 15px; top: 11px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
.lt-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lt-kick { color: var(--acqua); font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.lt-title { font-size: 18px; line-height: 1.2; }
.lt-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-btns .btn { padding: 8px 12px; font-size: 14px; min-height: 40px; gap: 7px; }
.cast-n { display: none; }
.cast { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--mute); font-size: 13px; font-weight: 700; min-height: 32px; border-radius: 999px; }
.cast:hover { color: var(--txt); }
.cast > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avs { display: flex; flex: none; }
.av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); background-color: #6b6870; background-repeat: no-repeat; }
.av + .av { margin-left: -9px; }
.av-m { background-image: url(img/marta.jpg); background-size: 100px auto; background-position: -40px -72px; }
.av-s { background-image: url(img/sole.jpg); background-size: 100px auto; background-position: -34px -38px; }
.av-c { background: url(img/claudietto-cut.png) 50% 55% / 110% no-repeat, #2e2256; }
.glow { position: absolute; inset: -12% 0 auto; height: 80%; z-index: -1; background: radial-gradient(closest-side, rgba(167,139,250,.42), transparent); filter: blur(30px); pointer-events: none; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 44px; padding-bottom: 30px; }
  .hero-visual { justify-self: end; width: min(100%, 360px); }
  .latest { grid-template-columns: 1fr; gap: 14px; padding: 12px 12px 16px; animation: float 6s ease-in-out infinite; }
  .lt-thumb { height: auto; aspect-ratio: 4 / 5; }
  .lt-thumb img { object-position: 50% 45%; }
  .lt-thumb .bigplay { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .lt-thumb .bigplay::after { left: 21px; top: 16px; border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }
  .lt-body { padding: 0 6px; }
  .lt-title { font-size: 22px; }
  .cast-n { display: inline; } .cast-s { display: none; }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- striscia scorrevole (sottile, in cima a tutto il sito, non fissa) ---------- */
.ticker { overflow: hidden; height: 36px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(167,139,250,.08), rgba(10,7,18,.6) 30%, rgba(10,7,18,.6) 70%, rgba(87,224,200,.07)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker:hover .ticker-in { animation-play-state: paused; }
.ticker-in { display: flex; align-items: center; height: 100%; width: max-content; animation: slide 40s linear infinite; }
.ticker-in span { padding: 0 18px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; line-height: 36px; }
.ticker-in span::after { content: "\2726"; margin-left: 36px; color: var(--corallo); }
.ticker-in span:nth-child(3n+2)::after { color: var(--acqua); }
.ticker-in span:nth-child(3n)::after { color: var(--viola); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.sec { max-width: 1120px; margin: 0 auto; padding: 44px var(--gut) 12px; }
@media (min-width: 860px) { .sec { padding-top: 64px; } }
.sh { display: flex; align-items: center; gap: 12px; }
.sh::after { content: ""; flex: 1; height: 1px; margin-left: 6px; background: linear-gradient(90deg, rgba(167,139,250,.45), rgba(87,224,200,.15) 40%, transparent); }
.follow .sh::after { display: none; }
.sh h2 { font-size: clamp(28px, 6.4vw, 40px); letter-spacing: -.01em; }
.num { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(87,224,200,.14); color: var(--acqua); font-size: 13px; font-weight: 800; letter-spacing: .08em; border: 1px solid rgba(87,224,200,.4); }
.sub { color: var(--mute); margin: 10px 0 18px; max-width: 62ch; }
.muted { color: var(--mute); }
.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--hi), var(--sh); }
@media (hover: hover) and (pointer: fine) { .card { transition: border-color .3s, box-shadow .3s; } .card:hover { border-color: rgba(167,139,250,.45); } }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill.soon { background: rgba(87,224,200,.12); color: var(--acqua); border: 1px solid rgba(87,224,200,.35); }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tag { display: inline-block; background: var(--viola); color: #170f2b; font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 999px; }

/* righe che si scorrono col dito (telefono) e diventano griglie (schermo largo) */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 76%; max-width: 300px; scroll-snap-align: center; }
.rail.tricks > *, .rail.c2 > * { max-width: 340px; flex-basis: 82%; }
@media (min-width: 700px) {
  .rail.c3, .rail.c2 { display: grid; overflow: visible; margin: 0; padding: 4px 0 18px; }
  .rail.c3 { grid-template-columns: repeat(3, 1fr); } .rail.c2 { grid-template-columns: repeat(2, 1fr); }
  .rail.c3 > *, .rail.c2 > * { flex: none; max-width: none; }
}
@media (min-width: 960px) {
  .rail.c4 { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 4px 0 18px; }
  .rail.c4 > * { flex: none; max-width: none; }
}

/* comparsa morbida (solo con JS attivo) */
.js-reveal .reveal { opacity: 0; transform: translate3d(0, 26px, 0) scale(.97); transition: opacity .6s ease var(--d, 0s), transform .75s var(--ease) var(--d, 0s), border-color .3s, box-shadow .3s; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- episodi ---------- */
.ep .thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg2); }
.ep .thumb[data-video] { cursor: pointer; }
.thumb[data-video]:focus-visible { outline-offset: -4px; border-radius: inherit; }
.ep .thumb::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(20,16,31,.55)); pointer-events: none; }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.ep:hover .thumb img { transform: scale(1.05); }
.ep .thumb .tag { position: absolute; z-index: 1; top: 12px; left: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.bigplay { position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%; background: rgba(20,16,31,.7); border: 2px solid #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .25s var(--ease), background .25s; }
.thumb:hover .bigplay { transform: scale(1.08); background: rgba(167,139,250,.55); }
.bigplay::after { content: ""; position: absolute; left: 21px; top: 15px; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.ep.is-soon .thumb img { filter: blur(6px) saturate(.6) brightness(.7); object-fit: contain; }
.lock { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; font-size: 84px; font-weight: 800; color: var(--acqua); text-shadow: 0 0 30px var(--acqua); }
.ep .body { padding: 16px; display: grid; gap: 10px; }
.ep h3 { font-size: 21px; }
.trick { color: var(--mute); font-size: 15px; }
.trick b { color: var(--acqua); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.heart { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--mute); cursor: pointer; display: grid; place-items: center; transition: transform .15s, color .2s, border-color .2s; }
.heart:hover { color: var(--corallo); }
.heart:active { transform: scale(.85); }
.heart.on { box-shadow: 0 0 16px rgba(255,154,122,.35); }
.heart svg { fill: none; }
.heart.on { color: var(--corallo); border-color: var(--corallo); }
.heart.on svg { fill: currentColor; }

/* ---------- negozio: spiegazione skill ---------- */
.what { display: grid; gap: 22px; padding: 20px; margin-bottom: 22px; background: linear-gradient(145deg, rgba(167,139,250,.16), rgba(87,224,200,.07)); border-color: rgba(167,139,250,.4); }
.what h3 { font-size: 24px; margin-bottom: 8px; }
.what-text > p { color: var(--txt); opacity: .9; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; }
.steps span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--acqua); color: #08241f; font-weight: 800; }
.demo { background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: grid; gap: 12px; align-content: start; }
.demo-title { font-weight: 800; color: var(--acqua); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.07); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--mute); font: inherit; font-weight: 800; font-size: 14px; padding: 11px 8px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--viola); color: #170f2b; }
.seg button[data-skill-mode="on"][aria-pressed="true"] { background: var(--acqua); color: #08241f; }
.chat { display: grid; gap: 8px; min-height: 190px; align-content: start; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; animation: pop .35s ease; }
.msg.user { justify-self: end; background: var(--viola); color: #170f2b; font-weight: 700; border-bottom-right-radius: 6px; }
.msg.bot { justify-self: start; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bad { border-color: rgba(255,154,122,.55); }
.msg.good { border-color: var(--acqua); background: rgba(87,224,200,.1); }
.ctag { display: block; margin-bottom: 4px; color: var(--acqua); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (min-width: 860px) { .what { grid-template-columns: 1fr 1fr; align-items: center; padding: 28px; } }

/* ---------- negozio: schede ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--mute); font: inherit; font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; transition: color .2s, border-color .2s, background .2s, transform .15s; }
.chip:hover { color: var(--txt); border-color: rgba(167,139,250,.6); }
.chip:active { transform: scale(.95); }
.chip.on { background: linear-gradient(135deg, var(--viola), #8b6df0); color: #170f2b; border-color: var(--viola); box-shadow: 0 6px 18px rgba(167,139,250,.3); }

.pack-card { border-color: color-mix(in srgb, var(--ac) 45%, transparent); }
.pk-top { position: relative; height: 128px; display: grid; place-items: center; background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 35%, transparent), transparent), linear-gradient(135deg, #2a1f4d, #1c1630); }
.pk-sym { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--ac); border: 2px solid var(--ac); box-shadow: 0 0 34px color-mix(in srgb, var(--ac) 65%, transparent); background: rgba(0,0,0,.25); }
.price { position: absolute; top: 12px; right: 12px; display: grid; justify-items: center; padding: 8px 14px; border-radius: 16px; background: var(--ac); color: #14101f; line-height: 1; transform: rotate(4deg); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.price b { font-size: 24px; }
.price small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.pack-card .body { padding: 16px; display: grid; gap: 10px; justify-items: start; }
.pack-card h3 { font-size: 21px; }
.pack-card p { color: var(--mute); font-size: 15px; }
.pack-card details { width: 100%; }
.pack-card summary { cursor: pointer; font-weight: 800; color: var(--ac); font-size: 14px; padding: 6px 0; min-height: 32px; }
.fname { color: var(--acqua); font-weight: 800; font-size: 12px; letter-spacing: .04em; margin: 6px 0 8px; }
.code { width: 100%; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px dashed color-mix(in srgb, var(--ac) 55%, transparent); color: #d9ccff; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.shop-card .body { padding: 16px; display: grid; gap: 8px; justify-items: start; }
.shop-card h3 { font-size: 20px; }
.shop-card p { color: var(--mute); font-size: 15px; }
.vis { position: relative; height: 170px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2a1f4d, #3b2670); }
.vis i { display: block; }
.v-sfondi i { width: 78px; height: 150px; border-radius: 16px; border: 4px solid #0c0816; background: url(img/hero.jpg) center 35% / cover; box-shadow: 0 8px 28px rgba(0,0,0,.5); transform: rotate(-6deg); }
.v-sfondi::after { content: ""; position: absolute; width: 70px; height: 138px; border-radius: 14px; border: 4px solid #0c0816; background: url(img/marta.jpg) center 20% / cover; transform: translateX(62px) rotate(8deg); box-shadow: 0 8px 28px rgba(0,0,0,.5); }
.v-suonerie { background: linear-gradient(135deg, #1d3b3a, #2a1f4d); }
.v-suonerie i { width: 220px; height: 70px; background: repeating-linear-gradient(90deg, var(--acqua) 0 6px, transparent 6px 14px);
  clip-path: polygon(0 40%, 8% 20%, 16% 60%, 24% 5%, 32% 70%, 40% 30%, 48% 85%, 56% 10%, 64% 65%, 72% 25%, 80% 75%, 88% 35%, 100% 50%, 100% 100%, 0 100%); opacity: .9; }
.v-sticker { background: linear-gradient(135deg, #3b2670, #5a2d5a); }
.v-sticker i { width: 118px; height: 118px; border-radius: 50%; background: url(img/claudietto-cut.png) center 45% / 120% no-repeat, #2e2256; border: 6px solid #fff; box-shadow: 0 8px 28px rgba(0,0,0,.5); transform: rotate(-8deg); }
.v-colorare { background: #f3effc; }
.v-colorare i { width: 100%; height: 100%; background: url(img/sole.jpg) center 20% / cover; filter: grayscale(1) contrast(2.4) brightness(1.5); mix-blend-mode: multiply; opacity: .85; }
.v-scheda { background: linear-gradient(135deg, #2a1f4d, #1c1630); }
.v-scheda i { width: 120px; height: 150px; border-radius: 6px; background-color: #f8f5ff; box-shadow: 0 8px 28px rgba(0,0,0,.5); transform: rotate(3deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 16px, #c9bdf0 16px 18px), linear-gradient(var(--corallo), var(--corallo));
  background-size: 100% 100%, 70% 10px; background-repeat: no-repeat; background-position: 0 14px, 14px 14px; }
.v-biglietti { background: linear-gradient(135deg, #5a2d5a, #2a1f4d); }
.v-biglietti i { width: 150px; height: 108px; border-radius: 10px; background: url(img/ep3.jpg) center 60% / cover; border: 5px solid #fff; box-shadow: 0 8px 28px rgba(0,0,0,.5); transform: rotate(-4deg); }

/* ---------- personaggi ---------- */
.char-btn { all: unset; display: block; width: 100%; cursor: pointer; color: inherit; }
.char-btn:focus-visible { outline: 3px solid var(--acqua); outline-offset: -3px; border-radius: var(--r); }
.char .thumb { aspect-ratio: 4 / 4.2; overflow: hidden; background: #6b6870; }
.char.c0 .thumb { background: var(--bg2); }
.char .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .5s ease; }
.char.c1 .thumb img { object-position: 50% 50%; }
.char.c2 .thumb img { object-position: 50% 12%; }
.char:hover .thumb img { transform: scale(1.04); }
.char .body { padding: 16px; }
.char h3 { font-size: 24px; }
.role { color: var(--corallo); font-weight: 800; font-size: 14px; margin-top: 2px; }
.desc { color: var(--mute); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease, margin .3s ease; }
.char.open .desc { max-height: 240px; opacity: 1; margin-top: 10px; }
.char .body::after { content: "+"; float: right; margin-top: -34px; color: var(--acqua); font-size: 28px; font-weight: 800; }
.char.open .body::after { content: "\2212"; }

.skills { margin-top: 10px; padding: 20px; }
.skills h3 { font-size: 22px; }
.skills .sub { margin-bottom: 14px; }
.skill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.skill { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 98px; padding: 12px 6px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--txt); font: inherit; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.skill:hover { transform: translateY(-3px); }
.skill:active { transform: scale(.95); }
.skill .sym { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; background: rgba(87,224,200,.15); color: var(--acqua); box-shadow: 0 0 22px rgba(87,224,200,.45); }
.skill .nm { font-size: 12px; font-weight: 800; text-align: center; line-height: 1.2; }
.skill.off .sym { background: rgba(255,255,255,.06); color: var(--mute); box-shadow: none; }
.skill.off { opacity: .65; }
.skill.sel { border-color: var(--viola); background: rgba(167,139,250,.14); }
.skill-text { margin-top: 14px; min-height: 3em; font-weight: 600; }

/* ---------- trucchi ---------- */
.trick-card { padding: 18px; display: grid; gap: 10px; align-content: start; }
.trick-card h3 { font-size: 20px; }
.prompt { background: rgba(0,0,0,.35); border: 1px dashed rgba(87,224,200,.45); border-radius: 14px; padding: 12px 14px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; color: var(--acqua); }
.trick-card .copy { justify-self: start; }

/* ---------- seguici e piede ---------- */
.follow { text-align: center; padding-bottom: 40px; }
.follow .sh { justify-content: center; }
.follow .sub { margin-inline: auto; }
.foot { position: relative; text-align: center; color: var(--mute); font-size: 14px; padding: 34px var(--gut) 24px; margin-top: 12px; display: grid; gap: 6px; justify-items: center; background: linear-gradient(180deg, transparent, rgba(10,7,18,.55)); }
.foot::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,.5), rgba(87,224,200,.4), transparent); }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 6px; font-weight: 800; color: var(--txt); text-decoration: none; border-radius: 999px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--corallo); }
.foot a:not(.foot-brand) { color: var(--acqua); text-underline-offset: 3px; }

/* ---------- finestre e avviso ---------- */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(8,5,16,.75); display: grid; place-items: center; padding: var(--gut); }
.modal-box { position: relative; width: min(440px, 100%); max-height: 80vh; overflow: auto; background: var(--bg2); border: 1px solid var(--viola); border-radius: 26px; padding: 24px 20px 20px; }
.modal-box h3 { font-size: 22px; margin-bottom: 14px; padding-right: 44px; }
.close { position: absolute; top: 14px; right: 14px; }
.fav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fav-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.vbox { position: relative; width: min(380px, 100%); max-height: 94vh; background: var(--bg2); border: 1px solid var(--viola); border-radius: 26px; padding: 54px 12px 14px; display: grid; gap: 10px; }
.vbox .close { top: 10px; right: 10px; }
.vtitle { position: absolute; top: 14px; left: 18px; right: 60px; font-weight: 800; font-size: 14px; line-height: 1.25; }
.vbox video { width: 100%; max-height: calc(94vh - 130px); aspect-ratio: 9 / 16; background: #000; border-radius: 16px; object-fit: contain; }
.vnote { font-size: 13px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bot) + 28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--acqua); color: #08241f; font-weight: 800; padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: 90vw; text-align: center; }
@media (min-width: 860px) { .toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker { overflow-x: auto; scrollbar-width: none; } .ticker-in { width: auto; }
  .intro-veil { display: none !important; }
}

/* ---------- video su richiesta ---------- */
.pk-top.vk { background-size: cover; background-position: center 30%; }
.inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; width: 100%; }
.inc li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--txt); }
.inc li::before { content: "\2713"; position: absolute; left: 0; color: var(--ac); font-weight: 800; }
.how { font-size: 14px; padding: 4px 2px 0; }
.rail > .how { flex: 0 0 76%; max-width: 300px; align-self: center; }
@media (min-width: 700px) { .rail.c3 > .how { grid-column: 1 / -1; max-width: none; text-align: center; } }

/* ---------- negozio: ufficiale, kit completo, avvisi ---------- */
.official { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--acqua); background: rgba(87,224,200,.1); border: 1px solid rgba(87,224,200,.35); }
.official svg { flex: none; }
.pack-card { position: relative; }
.pack-card.best { border-color: var(--corallo); box-shadow: 0 0 0 1px var(--corallo), 0 12px 40px rgba(255,154,122,.25); }
.ribbon { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--corallo); color: #1a1020; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.strike { font-size: 14px; color: var(--mute); }
.strike s { color: var(--mute); }
.strike .off { color: #08241f; background: var(--acqua); padding: 2px 8px; border-radius: 999px; font-size: 12px; margin-left: 4px; }
.how.xmas { color: #ffd9cc; background: rgba(255,154,122,.12); border: 1px solid rgba(255,154,122,.4); border-radius: 16px; padding: 12px 16px; font-weight: 700; font-size: 14px; align-self: center; }
@media (min-width: 700px) { .rail.c3 > .how.xmas { max-width: none; } }
@media (min-width: 960px) { .rail.c4 > .how { grid-column: 1 / -1; max-width: none; text-align: center; } }
.tiny { font-size: 12px; opacity: .8; }
.v-desktop { background: linear-gradient(135deg, #1d3b3a, #2a1f4d); }
.v-desktop i { width: 168px; height: 108px; border-radius: 10px; border: 5px solid #0c0816; background: url(img/claudietto-cut.png) 50% 45% / auto 135% no-repeat, #2e2256; box-shadow: 0 8px 28px rgba(0,0,0,.5); position: relative; }
.v-desktop::after { content: ""; position: absolute; bottom: 20px; width: 60px; height: 8px; border-radius: 4px; background: #0c0816; }

/* ---------- anteprime di esempio (finte, "in arrivo") ---------- */
.pk-top.mock { background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 30%, transparent), transparent), linear-gradient(135deg, #2a1f4d, #1c1630); gap: 0; display: flex; align-items: center; justify-content: center; }
.m-person { width: 74px; height: 74px; border-radius: 50%; background: #3a2d63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='36' r='17' fill='%23d9ccff'/%3E%3Cpath d='M16 98c0-21 15-32 34-32s34 11 34 32z' fill='%23d9ccff'/%3E%3C/svg%3E") center / cover; border: 3px solid #d9ccff; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.m-char { width: 74px; height: 74px; border-radius: 50%; background: url(img/claudietto-cut.png) 50% 45% / 125% no-repeat, #2e2256; border: 3px solid var(--corallo); box-shadow: 0 6px 20px rgba(0,0,0,.45); margin-left: -14px; animation: bob 3.4s ease-in-out infinite; }
.mock-swap .m-char { margin-left: 34px; }
.mock-swap::after { content: "\21C4"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); font-size: 30px; font-weight: 800; color: var(--ac); text-shadow: 0 0 14px var(--ac); }
.mocktag { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(20,16,31,.8); color: var(--mute); border: 1px dashed var(--line); }

/* ---------- prodotto in sviluppo (Claudietto sul desktop) ---------- */
.pill.dev { background: rgba(255,154,122,.12); color: var(--corallo); border: 1px solid rgba(255,154,122,.4); }
.devnote { font-size: 13.5px; line-height: 1.45; color: #ffd9cc; background: rgba(255,154,122,.08); border: 1px dashed rgba(255,154,122,.4); border-radius: 14px; padding: 10px 12px; }
.shop-card .body > .pill + .pill { margin-left: 6px; }

/* ---------- intro di apertura: velo notturno che si apre come un sipario di luce ----------
   Parte solo se <html> ha la classe "intro" (messa nella <head>, una volta per sessione, mai con movimento ridotto).
   Finisce da sola anche se app.js non parte: a 1.95 s il velo diventa invisibile. */
:root { --ivd: 5s; }
.intro-veil { display: none; }
html.intro .intro-veil { display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; animation: ivOut 0s calc(var(--ivd) + .9s) forwards; }
.iv-l, .iv-r { position: absolute; top: 0; bottom: 0; width: 50.5%; background: radial-gradient(130% 70% at 100% 45%, #2e2256, #14101f 68%); }
.iv-l { left: 0; animation: ivL .8s cubic-bezier(.75, 0, .2, 1) var(--ivd) forwards; }
.iv-r { right: 0; background: radial-gradient(130% 70% at 0% 45%, #2e2256, #14101f 68%); animation: ivR .8s cubic-bezier(.75, 0, .2, 1) var(--ivd) forwards; }
.iv-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; background: radial-gradient(closest-side, #fff, rgba(167,139,250,.7) 45%, transparent); transform: scaleY(0); opacity: 0; animation: ivSeam 1.2s ease-out calc(var(--ivd) - .45s) forwards; }
.bk { position: absolute; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, var(--c), transparent); animation: ivBk 1.5s ease-out var(--t) forwards; }
.b1 { --c: rgba(167,139,250,.55); --t: .05s; --dx: -40px; --dy: -30px; width: 160px; height: 160px; left: 12%; top: 18%; }
.b2 { --c: rgba(87,224,200,.45); --t: .2s; --dx: 30px; --dy: -20px; width: 110px; height: 110px; right: 14%; top: 26%; }
.b3 { --c: rgba(255,154,122,.45); --t: .3s; --dx: -20px; --dy: 30px; width: 90px; height: 90px; left: 22%; bottom: 20%; }
.b4 { --c: rgba(217,204,255,.4); --t: .12s; --dx: 24px; --dy: 24px; width: 220px; height: 220px; right: 6%; bottom: 8%; }
.b5 { --c: rgba(87,224,200,.35); --t: .38s; --dx: 0px; --dy: -40px; width: 70px; height: 70px; left: 48%; top: 10%; }
.iv-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; pointer-events: none; --w: clamp(96px, 30vw, 150px); }
.iv-scene { position: relative; display: flex; align-items: flex-end; gap: calc(var(--w) * .18); transform-style: preserve-3d; transform: translate3d(-3%, 16px, 0); animation: ivSwing 4.5s cubic-bezier(.3, .6, .3, 1) .05s both; }
.iv-card { display: block; width: var(--w); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 2px rgba(217,204,255,.35); transform: translateZ(-70px) rotateY(16deg); animation: ivIn .9s var(--ease) .1s both; }
.iv-card img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; }
.iv-bot { position: relative; display: block; width: var(--w); height: calc(var(--w) * 1.073); margin-bottom: 10%; transform: translateZ(80px) rotateY(-12deg); transform-origin: 50% 90%; filter: drop-shadow(0 0 28px rgba(167,139,250,.6)); animation: ivHop3 .9s var(--ease) .3s both, ivFloat 2.2s ease-in-out 1.3s infinite; }
.iv-bot img { position: absolute; inset: 0; width: 100%; height: 100%; }
.iv-glow { position: absolute; left: 50%; bottom: -14%; width: 150%; height: 40%; margin-left: -75%; background: radial-gradient(closest-side, rgba(167,139,250,.5), transparent); transform: translateZ(-120px) rotateX(70deg); }
.iv-bot .b0 { clip-path: polygon(0 0, 100% 0, 100% 47%, 84.5% 47%, 84.5% 100%, 0 100%); }
.iv-bot .b1 { clip-path: polygon(84% 47%, 100% 47%, 100% 100%, 84% 100%); transform-origin: 88% 52%; animation: ivArm .7s cubic-bezier(.3, 1.3, .5, 1) .8s both, ivWave .3s ease-in-out 1.5s 9 alternate; }
@keyframes ivSwing { 0% { transform: translate3d(-3%, 16px, 0) rotateY(-30deg) rotateX(6deg); } 100% { transform: translate3d(-3%, 16px, 0) rotateY(8deg) rotateX(0); } }
@keyframes ivIn { from { opacity: 0; transform: translateZ(-260px) rotateY(40deg); } }
@keyframes ivHop3 { 0% { transform: translateZ(80px) rotateY(-12deg) translate3d(0, 60px, 0) scale(.6); opacity: 0; } 60% { opacity: 1; transform: translateZ(80px) rotateY(-12deg) translate3d(0, -8px, 0) scale(.97, 1.05); } 100% { transform: translateZ(80px) rotateY(-12deg); opacity: 1; } }
@keyframes ivFloat { 50% { translate: 0 -7px; } }
.iv-says { position: absolute; left: 0; right: 0; bottom: calc(50% + var(--w) * .89 + 34px); display: grid; justify-items: center; align-items: end; padding: 0 16px; }
.iv-say { grid-area: 1 / 1; position: relative; width: max-content; max-width: min(300px, 86vw); padding: 10px 18px; border-radius: 20px; background: #f3effc; color: #14101f; font-weight: 800; font-size: 18px; text-align: center; opacity: 0; animation: ivSay 1.5s cubic-bezier(.3, 1.4, .5, 1) var(--t) both; }
.iv-say::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: inherit; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.iv-say.sy1 { --t: 1s; } .iv-say.sy2 { --t: 2.5s; } .iv-say.sy3 { --t: 4s; animation-duration: 3s; }
@keyframes ivSay { 0% { opacity: 0; transform: scale(.5) translateY(14px); } 15% { opacity: 1; transform: none; } 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.iv-title { position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(var(--w) * 1.1 + 40px); text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .02em; color: var(--txt); white-space: nowrap; opacity: 0; animation: ivPop .6s var(--ease) 3.4s forwards; }
.iv-skip { position: absolute; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 2; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(217,204,255,.5); background: rgba(20,16,31,.6); color: #f3effc; font-weight: 700; font-size: 14px; font-family: inherit; line-height: 1; cursor: pointer; opacity: 0; animation: ivPop .4s ease .5s forwards; }
.iv-skip::after { content: " \203A"; }
.iv-snd { position: absolute; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(87,224,200,.7); background: rgba(20,16,31,.7); color: #57e0c8; font-weight: 700; font-size: 14px; font-family: inherit; line-height: 1; cursor: pointer; opacity: 0; animation: ivPop .4s ease .3s forwards, sndPulse 1.6s ease-in-out .9s infinite; }
.iv-snd:focus-visible { outline: 3px solid var(--acqua); outline-offset: 2px; }
@keyframes sndPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(87,224,200,.55); } 50% { box-shadow: 0 0 0 10px rgba(87,224,200,0); } }
.iv-skip:focus-visible { outline: 3px solid var(--acqua); outline-offset: 2px; }
@keyframes ivArm { from { transform: rotate(0); } to { transform: rotate(-138deg); } }
@keyframes ivWave { from { transform: rotate(-138deg); } to { transform: rotate(-168deg); } }
@keyframes ivHop { 0% { transform: translate3d(0, 60px, 0) scale(.6); opacity: 0; } 55% { opacity: 1; transform: translate3d(0, -8px, 0) scale(.97, 1.05); } 78% { transform: scale(1.06, .94); } 100% { transform: none; opacity: 1; } }
@keyframes ivPop { from { opacity: 0; transform: scale(.4) translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes ivOut { to { visibility: hidden; } }
@keyframes ivFade { to { opacity: 0; visibility: hidden; } }
@keyframes ivL { to { transform: translate3d(-102%, 0, 0); } }
@keyframes ivR { to { transform: translate3d(102%, 0, 0); } }
@keyframes ivSeam { 0% { opacity: 1; transform: scaleY(0); } 40% { opacity: 1; transform: scaleY(1); } 70% { opacity: .9; transform: scale(14, 1); } 100% { opacity: 0; transform: scale(40, 1); } }
@keyframes ivBk { 0% { opacity: 0; transform: scale(.5); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(2.3); } }
/* saltata (click, tocco o tasto): il velo sfuma subito */
html.intro-skip .intro-veil { animation: ivFade .3s ease forwards; }

/* il sito emerge a strati: barre, titolo, scheda "Ultimo episodio" dal fondo */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes riseDeep { from { opacity: 0; transform: perspective(900px) translate3d(0, 56px, -140px) rotateX(9deg); } }
@keyframes riseQ { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes dropIn { from { opacity: 0; transform: translate3d(0, -100%, 0); } }
@keyframes upIn { from { opacity: 0; transform: translate3d(0, 120%, 0); } }
html.intro .hero-text > * { animation: rise .6s var(--ease) calc(var(--ivd) + var(--i, 0) * 60ms) both; }
.hero-text > :nth-child(2) { --i: 1; } .hero-text > :nth-child(3) { --i: 2; } .hero-text > :nth-child(4) { --i: 3; }
.hero-text > :nth-child(5) { --i: 4; } .hero-text > :nth-child(6) { --i: 5; }
html.intro .hero-visual { animation: riseDeep .85s var(--ease) calc(var(--ivd) + .05s) both; }
html.intro .ticker, html.intro .top { animation: dropIn .55s var(--ease) var(--ivd) both; }
html.intro .bottom { animation: upIn .6s var(--ease) calc(var(--ivd) + .2s) both; }
html.intro-fast .hero-text > *, html.intro-fast .hero-visual, html.intro-fast .ticker, html.intro-fast .top, html.intro-fast .bottom { animation: riseQ .45s var(--ease) calc(var(--i, 0) * 40ms) both; }

/* ---------- profondità: cielo a strati (aloni + puntini di luce), mosso da app.js ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; inset: -170px -50px; }
.px .sky i { will-change: transform; }
.s1 { background: radial-gradient(520px 380px at 18% 24%, rgba(167,139,250,.14), transparent 70%), radial-gradient(460px 360px at 86% 72%, rgba(87,224,200,.08), transparent 70%); }
.s2 { background: radial-gradient(340px 260px at 72% 30%, rgba(255,154,122,.08), transparent 70%), radial-gradient(320px 300px at 28% 88%, rgba(167,139,250,.11), transparent 70%); }
.s3 { opacity: .55; background-size: 220px 220px; background-image:
  radial-gradient(circle at 24px 34px, rgba(255,255,255,.7) 0 1.1px, transparent 1.8px),
  radial-gradient(circle at 132px 86px, rgba(217,204,255,.6) 0 .9px, transparent 1.5px),
  radial-gradient(circle at 78px 160px, rgba(87,224,200,.6) 0 1.2px, transparent 1.9px),
  radial-gradient(circle at 182px 192px, rgba(255,154,122,.55) 0 .9px, transparent 1.5px); }
.lite .s3 { display: none; }

/* ---------- inclinazione 3D delle schede (solo mouse, attivata da app.js) ---------- */
.tilt-on .hero-visual { border-radius: var(--r); transition: transform .7s var(--ease); }
.tilt-on .tilting { transition: transform .14s ease-out, border-color .3s, box-shadow .3s; box-shadow: var(--hi), var(--sh-up); }
.tilt-on .hero-visual.tilting { box-shadow: none; }
.tilt-on :is(.ep, .pack-card, .shop-card, .char, .hero-visual)::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.13), transparent 45%); }
.tilt-on .tilting::after { opacity: 1; }

/* Claudietto ritagliato: fondo viola come gli altri personaggi (niente falso sfondo a quadretti) */
img[src$="claudietto-cut.png"] { background: radial-gradient(closest-side, #3a2c70, #1c1630); object-fit: contain; }
.iv-stage img[src$="claudietto-cut.png"] { background: none; }
.brand img[src$="claudietto-cut.png"], .foot-brand img[src$="claudietto-cut.png"] { border-radius: 50%; }
.thumb img[src$="claudietto-cut.png"] { padding: 6% 10% 0; }

/* video in linea: riempie la miniatura */
[data-video].playing { cursor: default; }
[data-video].playing video.inl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 2; }

/* telefono: prima il titolo e l'invito, poi l'ultimo episodio, poi i riquadri (l'immagine migliore non resta sotto la piega) */
@media (max-width: 859px) {
  .hero-text { display: contents; }
  .hero-text > * { order: 1; }
  .hero-visual { order: 2; }
  .hero-text > .quick, .hero-text > .newbar { order: 3; }
}
/* meno effetti insieme: cielo piu' discreto */
.sky { opacity: .6; }

/* video in linea: la miniatura prende le proporzioni del video (9:16), niente bordi neri */
[data-video].playing { aspect-ratio: 9 / 16 !important; height: auto !important; max-height: 82vh; width: 100%; }
[data-video].playing video.inl { object-fit: cover; }
.lt-thumb.playing { max-width: 100%; justify-self: center; }

/* schede prodotto: Claudietto dietro al simbolo */
.pk-top { overflow: hidden; }
.pk-claud { position: absolute; left: 50%; bottom: -6px; height: 112px; width: auto; transform: translateX(-50%); opacity: .5; border-radius: 0 !important; background: none !important; object-fit: contain; filter: saturate(.9); }
.pk-sym { position: relative; z-index: 1; background: rgba(20,16,31,.55); backdrop-filter: blur(2px); }
.peek { margin: 6px 0 2px; font-size: 14px; }
.peek summary { cursor: pointer; color: var(--acqua); font-weight: 700; }
.peek p { margin: 6px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(87,224,200,.08); border: 1px dashed rgba(87,224,200,.4); line-height: 1.4; }
.demo-sc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

/* negozio: spiegazioni sopra la fila; le schede in una fila orizzontale non si nascondono mai con reveal */
.shop-how { display: grid; gap: 10px; margin: 0 0 8px; }
.shop-how .how { max-width: none; text-align: left; }
.js-reveal .rail .reveal { opacity: 1; transform: none; }

/* pagina episodio (/ep/N/) */
.epage-body { min-height: 100vh; }
.ep-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gut); max-width: 1120px; margin: 0 auto; }
.ep-langs { display: flex; gap: 6px; }
.ep-langs a { padding: 8px 12px; min-width: 44px; text-align: center; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--txt); text-decoration: none; font-weight: 700; font-size: 14px; }
.ep-langs a[aria-current] { background: var(--viola); color: #14101f; }
.epage { max-width: 760px; margin: 0 auto; padding: 10px var(--gut) 60px; display: grid; gap: 14px; }
.epage h1 { font-size: clamp(28px, 6vw, 44px); margin: 0; }
.ep-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ep-video { margin: 0; }
.ep-video video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; object-fit: cover; }
.ep-video figcaption { text-align: center; color: var(--mute); font-size: 14px; padding-top: 6px; }
.ep-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Claudietto guida (angolo in basso a destra, sopra la barra del telefono) */
.guide { --gs: 64px; --ex: 0px; --ey: 0px; position: fixed; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); z-index: 30; width: var(--gs); animation: gIn .6s var(--ease) both; cursor: pointer; }
@media (min-width: 860px) { .guide { --gs: 84px; right: 20px; bottom: 20px; } }
@keyframes gIn { from { opacity: 0; transform: translate3d(0, 30px, 0) scale(.7); } }
.g-bot { position: relative; display: block; width: var(--gs); height: calc(var(--gs) * 1.07); filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); animation: gBob 3.4s ease-in-out infinite; }
@keyframes gBob { 50% { transform: translate3d(0, -4px, 0); } }
.g-bot img { position: absolute; inset: 0; width: 100%; height: 100%; background: none !important; object-fit: contain; }
.g-bot .b0 { clip-path: polygon(0 0, 100% 0, 100% 47%, 84.5% 47%, 84.5% 100%, 0 100%); }
.g-bot .b1 { clip-path: polygon(84% 47%, 100% 47%, 100% 100%, 84% 100%); transform-origin: 88% 52%; }
.guide.waving .b1 { animation: ivArm .45s ease-out forwards, ivWave .3s ease-in-out .45s 4 alternate; }
.g-eyes { position: absolute; left: 30%; top: 21%; width: 40%; height: 13%; display: flex; justify-content: space-around; align-items: center; background: #0a1124; border-radius: 45%; }
.g-eye { width: 24%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e6f3ff, #5aa9ff 55%, #2f6fe0); box-shadow: 0 0 6px 1px rgba(90,169,255,.8); transform: translate3d(var(--ex), var(--ey), 0); transition: transform .12s ease-out, scale .12s; }
.guide.blink .g-eye { scale: 1 .1; }
.g-bubble { position: absolute; right: 4px; bottom: calc(100% + 6px); width: max-content; max-width: min(230px, calc(100vw - 90px)); padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: #f3effc; color: #14101f; font: 700 13.5px/1.3 inherit; opacity: 0; transform: translate3d(0, 6px, 0) scale(.9); transform-origin: 100% 100%; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.guide.talk .g-bubble { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .g-bot, .guide { animation: none; } }
html.intro .guide { display: none; }

/* Claudietto che segue il mouse: piu' piccolo, sempre sotto il puntatore, mai sopra i click */
.guide.follow { --gs: 52px; left: 0; top: 0; right: auto; bottom: auto; pointer-events: none; animation: none; will-change: transform; }
.guide.follow.below .g-bubble { bottom: auto; top: calc(100% + 6px); border-radius: 4px 16px 16px 16px; }
.guide.follow.lefty .g-bubble { right: auto; left: 4px; }
.guide.follow .g-bot { animation: none; }

/* collezione dei simboli */
.coll { padding: 16px; display: grid; gap: 10px; margin-top: 16px; }
.coll h3 { margin: 0; }
.coll-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.coll-sym { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); color: rgba(255,255,255,.3); font-size: 30px; font-weight: 800; position: relative; transition: all .4s var(--ease); }
.coll-sym small { position: absolute; bottom: -18px; font-size: 11px; font-weight: 700; color: var(--mute); }
.coll-sym.on { border: 2px solid var(--ac); color: var(--ac); box-shadow: 0 0 22px color-mix(in srgb, var(--ac) 60%, transparent); background: rgba(20,16,31,.6); }
.coll-n { margin-left: auto; color: var(--mute); }
.coll-row { padding-bottom: 18px; }
.coll-gift { margin: 0; font-weight: 800; color: var(--acqua); }

/* ===================== ANIMAZIONI v2 (proposte) ===================== */
/* P1 - Claudietto che segue il mouse: ombra, respiro, saltello, occhi curiosi */
.g-shadow { position: absolute; left: 20%; right: 20%; bottom: -6px; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, rgba(4,2,12,.7), transparent); opacity: .55; pointer-events: none; }
.guide:not(.follow) .g-shadow { animation: gShadow 3.4s ease-in-out infinite; }
@keyframes gShadow { 50% { transform: scale(.82); opacity: .35; } }
.guide.follow .g-bot { transform-origin: 50% 100%; }
.guide.follow.rest .g-bot { animation: gBreath 3.2s ease-in-out infinite; }
.guide.hop .g-bot { animation: gHop .5s cubic-bezier(.3, 1.6, .5, 1); }
.guide.follow.rest.hop .g-bot { animation: gHop .5s cubic-bezier(.3, 1.6, .5, 1), gBreath 3.2s ease-in-out infinite; }
@keyframes gBreath { 50% { scale: .985 1.03; } }
@keyframes gHop { 45% { translate: 0 -10px; } }
.guide.curious:not(.blink) .g-eye { scale: 1.25; }
.guide.curious .g-eyes { box-shadow: 0 0 10px rgba(90,169,255,.45); }

/* P2 - cuore: battito + anello + scintille; contatore che sobbalza */
.heart { position: relative; }
.heart::before, .heart::after { content: ""; position: absolute; pointer-events: none; opacity: 0; border-radius: 50%; }
.heart::before { inset: -2px; border: 2px solid var(--corallo); }
.heart::after { left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px;
  box-shadow: 0 -17px 0 var(--corallo), 15px -9px 0 var(--viola), 15px 9px 0 var(--acqua), 0 17px 0 var(--corallo), -15px 9px 0 var(--viola), -15px -9px 0 var(--acqua); }
.heart.pop svg { animation: hPop .45s cubic-bezier(.3, 1.6, .5, 1); }
.heart.pop::before { animation: hRing .55s ease-out; }
.heart.pop::after { animation: hDots .6s ease-out; }
.dot.bump { animation: hPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hPop { 0% { transform: scale(.6); } 60% { transform: scale(1.22); } 100% { transform: none; } }
@keyframes hRing { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes hDots { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }

/* P3 - file di schede a cascata (anche al cambio scheda del negozio) */
.js-reveal .rail.rv-wait > .reveal { opacity: 0; }
.rail.rv-play > * { animation: cardIn .6s var(--ease) backwards; }
.rail.rv-play > :nth-child(2) { animation-delay: 70ms; } .rail.rv-play > :nth-child(3) { animation-delay: 140ms; }
.rail.rv-play > :nth-child(4) { animation-delay: 210ms; } .rail.rv-play > :nth-child(n+5) { animation-delay: 280ms; }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.97); } }
#shop-how > * { animation: riseQ .4s var(--ease) backwards; }

/* P4 - onda al tocco */
.btn, .chip, .seg button, .q, .bottom a { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.rip { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255,255,255,.32), rgba(255,255,255,0)); transform: scale(0); animation: rip .6s ease-out forwards; }
.btn.primary .rip, .chip.on .rip, .bottom a.active .rip { background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0)); }
@keyframes rip { to { transform: scale(1); opacity: 0; } }

/* P5 - interruttori che scivolano: senza/con la skill e lingua */
.seg { position: relative; isolation: isolate; }
.seg.slide::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--viola); box-shadow: 0 4px 14px rgba(167,139,250,.35); transition: transform .42s var(--ease), background-color .42s, box-shadow .42s; }
.seg.slide.is-on::before { transform: translateX(100%); background: var(--acqua); box-shadow: 0 4px 14px rgba(87,224,200,.35); }
.seg.slide button, .seg.slide button[aria-pressed="true"] { background: none; transition: color .3s; }
.seg.slide button[aria-pressed="true"] { color: #170f2b; }
.seg.slide button[data-skill-mode="on"][aria-pressed="true"] { color: #08241f; }
.lang { position: relative; isolation: isolate; }
.lang.slide::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: var(--lw, 36px); transform: translateX(var(--lx, 0)); border-radius: 999px; background: var(--viola); transition: transform .4s var(--ease); }
.lang.slide button[aria-pressed="true"] { background: none; color: #170f2b; }

/* P6 - chat: "sta scrivendo..." e risposta buona che si accende */
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: tDot 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tDot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translate3d(0, -4px, 0); opacity: 1; } }
.msg.good { animation: pop .35s ease, goodIn 1.1s ease-out; }
@keyframes goodIn { from { box-shadow: 0 0 0 0 rgba(87,224,200,.45); } to { box-shadow: 0 0 0 12px rgba(87,224,200,0); } }

/* P7 - cambio pagina morbido (lingue /en/ /es/ /pt/, episodi, ritorno alla Home) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* P8 - titoli di sezione: numero che salta, riga che si disegna, sottotitolo che segue */
.js-reveal .sh.reveal::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease) .25s; }
.js-reveal .sh.reveal.in::after { transform: none; }
.js-reveal .sh.reveal .num { opacity: 0; transform: scale(.5); transition: transform .55s cubic-bezier(.3, 1.6, .5, 1) .1s, opacity .3s ease .1s; }
.js-reveal .sh.reveal.in .num { opacity: 1; transform: none; }
.js-reveal .sh.reveal + .sub { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .5s ease .2s, transform .6s var(--ease) .2s; }
.js-reveal .sh.reveal.in + .sub { opacity: 1; transform: none; }

/* P9 - collezione: avviso che rimbalza, simbolo nuovo che si accende, coriandoli */
.toast:not([hidden]) { animation: tIn .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tIn { from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.9); } }
.burst { position: fixed; z-index: 60; width: 280px; height: 280px; pointer-events: none; }
.coll-sym.fresh { animation: symIn .85s cubic-bezier(.3, 1.6, .5, 1) both paused; }
.coll.go .coll-sym.fresh { animation-play-state: running; }
@keyframes symIn { 0% { transform: scale(.4) rotate(-30deg); opacity: .3; } 60% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.coll-gift { animation: riseQ .5s var(--ease) .2s backwards; }
#coll-btn::after { animation: shineOnce 1.3s var(--ease) .5s 2; }
@keyframes shineOnce { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* P11 - finestre e video in linea: entrata morbida; parte in corso evidenziata */
.modal:not([hidden]) { animation: mFade .25s ease; }
.modal:not([hidden]) > .modal-box, .modal:not([hidden]) > .vbox { animation: mIn .42s var(--ease); }
@keyframes mFade { from { opacity: 0; } }
@keyframes mIn { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); } }
[data-video].playing video.inl { animation: vIn .4s var(--ease); }
@keyframes vIn { from { opacity: 0; transform: scale(.985); } }
.btn.now { box-shadow: 0 0 0 2px var(--acqua), 0 6px 18px rgba(87,224,200,.28); }

/* P12 - chip, schede prodotto, barra in basso */
.chip.on.just { animation: chipOn .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes chipOn { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .pk-sym, .pk-claud, .price { transition: transform .45s var(--ease), opacity .45s; }
  .pack-card:hover .pk-sym { transform: scale(1.08) rotate(-8deg); }
  .pack-card:hover .pk-claud { transform: translate3d(-50%, -10px, 0); opacity: .75; }
  .pack-card:hover .price { transform: rotate(0deg) scale(1.05); }
}
.bottom a.active svg { animation: navPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes navPop { 0% { transform: scale(.8); } 60% { transform: translate3d(0, -2px, 0) scale(1.15); } 100% { transform: none; } }

/* P13 - pagina episodio e 404 */
.epage > * { animation: riseQ .5s var(--ease) backwards; }
.epage > :nth-child(2) { animation-delay: 60ms; } .epage > :nth-child(3) { animation-delay: 120ms; }
.epage > :nth-child(4) { animation-delay: 180ms; } .epage > :nth-child(n+5) { animation-delay: 240ms; }
.btn.primary.ok { background: var(--acqua); color: #08241f; animation: chipOn .42s cubic-bezier(.3, 1.6, .5, 1); }
.nf-bot { transform-origin: 50% 90%; animation: nfLook 4.8s ease-in-out infinite; }
@keyframes nfLook { 0%, 100% { transform: none; } 18% { transform: translate3d(-6px, 0, 0) rotate(-9deg); } 40% { transform: translate3d(6px, 0, 0) rotate(8deg); } 58% { transform: translate3d(0, -8px, 0); } 66% { transform: none; } }

/* sostegno (compare solo se in content.js c'e' un link https) */
.sup-card { padding: 22px; display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 560px; margin: 0 auto; }
.sup-card h2 { margin: 0; } .sup-card p { margin: 0; }

/* pulsante del suono (sound.js): rotondo, in basso a sinistra sopra la barra (a destra sta la mascotte) */
.snd-btn { position: fixed; left: 14px; bottom: calc(var(--bot) + 22px + env(safe-area-inset-bottom, 0px)); z-index: 24; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--txt); background: rgba(28, 22, 48, .82); border: 1px solid var(--line); box-shadow: var(--sh), var(--hi); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s var(--ease), border-color .2s; }
.snd-btn:hover { transform: translateY(-2px); border-color: var(--acqua); }
.snd-btn[aria-pressed="true"] { color: var(--acqua); border-color: rgba(87, 224, 200, .45); }
.snd-btn:focus-visible { outline: 2px solid var(--acqua); outline-offset: 3px; }
html.intro .snd-btn { display: none; }

/* sottotitoli dei video: sfondo scuro per leggerli sopra qualsiasi scena */
video::cue { background: rgba(20, 16, 31, .78); color: #fff; }

/* telefono (senza mouse): Claudietto piu' piccolo, in basso a destra sopra la barra, i tocchi lo attraversano:
   non copre piu' pulsanti e testi; la nuvoletta resta corta e sale solo sopra di lui */
@media (hover: none) {
  .guide { --gs: 44px; right: 6px; bottom: calc(var(--bot) + 14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; opacity: .94; }
  .g-bubble { max-width: min(190px, calc(100vw - 80px)); font-size: 12.5px; padding: 6px 10px; }
}

/* telefono: Claudietto che svolazza (vedi flyInit in app.js): un filo piu' piccolo, si gira nel verso del volo */
@media (hover: none) { .guide.follow { --gs: 46px; } }
/* si gira tutto il corpo con "rotate: y" (non con "scale", che respiro e salti usano): cosi' il braccio resta attaccato */
.guide.sx .g-bot { rotate: y 180deg; }
.guide.follow { padding-bottom: 0; text-align: left; } /* la sezione #social ha anch'essa la classe .follow: qui non deve valere */
/* cuffie quando c'e' la radio (come il Lumino di LUME) */
.g-phones { display: none; position: absolute; left: 17%; right: 17%; top: 1%; height: 30%; border: 3px solid #1a1230; border-bottom: 0; border-radius: 50% 50% 0 0 / 80% 80% 0 0; pointer-events: none; }
.g-phones::before, .g-phones::after { content: ""; position: absolute; bottom: -22%; width: 24%; height: 48%; border-radius: 40%; background: #57e0c8; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.g-phones::before { left: -16%; } .g-phones::after { right: -16%; }
.guide.dance .g-phones { display: block; }

/* ===================== ANIMAZIONI v3: espressioni, accucciata e atterraggio, sonno, ballo, giravolta ===================== */
.g-eye { transition: transform .12s ease-out, scale .15s, translate .15s, clip-path .15s, opacity .2s; }
.guide.e-happy:not(.blink) .g-eye { clip-path: inset(0 0 52% 0); translate: 0 22%; scale: 1.2; } /* occhi a mezzaluna: sorride */
.guide.e-wow:not(.blink) .g-eye { scale: 1.45; }
.guide.e-wow .g-eyes { box-shadow: 0 0 12px rgba(90,169,255,.55); }
.guide.follow.crouch .g-bot { animation: none; scale: 1.14 .84; transition: scale .14s ease-out; }
.guide.land .g-bot, .guide.follow.rest.land .g-bot { animation: gLand .46s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes gLand { 0% { scale: 1.2 .78; translate: 0 2px; } 40% { scale: .9 1.12; translate: 0 -6px; } 70% { scale: 1.04 .97; translate: 0 0; } 100% { scale: 1 1; } }
.guide.spin .g-bot, .guide.follow.rest.spin .g-bot { animation: gSpin .55s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 55%; }
@keyframes gSpin { 40% { translate: 0 -14px; rotate: 200deg; } 100% { rotate: 360deg; } }
/* sonno: occhi chiusi, respiro lento, piu' scuro, tre "z" che salgono */
.g-zz { position: absolute; right: -4px; top: -12px; display: none; pointer-events: none; color: #c9b8ff; font: 800 12px/1 inherit; }
.guide.sleep .g-zz { display: block; }
.g-zz i { position: absolute; right: 0; top: 0; font-style: normal; opacity: 0; animation: gZ 3s linear infinite; }
.g-zz i:nth-child(2) { animation-delay: 1s; font-size: 10px; }
.g-zz i:nth-child(3) { animation-delay: 2s; font-size: 8px; }
@keyframes gZ { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate3d(10px, -22px, 0); } }
.guide.sleep .g-eye { scale: 1 .12; opacity: .65; box-shadow: none; }
.guide.sleep .g-bot, .guide.follow.rest.sleep .g-bot { animation: gSnooze 4.2s ease-in-out infinite; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)) brightness(.82); }
@keyframes gSnooze { 50% { scale: 1.035 .955; } }
/* ballo con la radio: le mosse le fa app.js, qui solo le note che volano */
.guide.dance:not(.follow) .g-bot { animation: none; }
.guide.dance .g-bot::after { content: "\266A"; position: absolute; left: -9px; top: -4px; color: hsl(calc(170deg + var(--nh, 0deg)) 75% 65%); font: 800 14px/1 inherit; pointer-events: none; animation: gNote 1.6s ease-out infinite; }
@keyframes gNote { 0% { opacity: 0; transform: translate3d(0, 4px, 0) rotate(-10deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate3d(-8px, -18px, 0) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .g-zz i, .guide.dance .g-bot::after, .guide .g-bot { animation: none !important; } }

/* radio di Claudietto (radio-ui.js): pulsante rotondo accanto a quello del suono; il titolo del brano compare sopra per qualche secondo */
.radio-btn { position: fixed; left: 66px; bottom: calc(var(--bot) + 22px + env(safe-area-inset-bottom, 0px)); z-index: 24; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; border: 1px solid rgba(167,139,250,.45); background: rgba(20,16,31,.78); color: #d9ccff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.radio-btn.on { color: #57e0c8; border-color: rgba(87,224,200,.7); box-shadow: 0 0 0 0 rgba(87,224,200,.5); animation: sndPulse 2.2s ease-in-out infinite; }
.radio-btn:focus-visible { outline: 3px solid var(--acqua); outline-offset: 2px; }
.radio-cap { position: fixed; left: 14px; bottom: calc(var(--bot) + 72px + env(safe-area-inset-bottom, 0px)); z-index: 24; max-width: min(300px, calc(100vw - 28px)); padding: 7px 12px; border-radius: 14px; background: rgba(20,16,31,.88); border: 1px solid rgba(87,224,200,.4); color: #f3effc; font: 600 12.5px/1.3 inherit; pointer-events: none; }
.radio-cap[hidden] { display: none; }
html.intro .radio-btn, html.intro .radio-cap { display: none; }
@media (prefers-reduced-motion: reduce) { .radio-btn.on { animation: none; } }
