/* Pagina principale del sito: si appoggia a stile.css (colori, carattere, vetro) e aggiunge il racconto.
   Nell'apertura la partita vera dentro un telefono (demo.js), poi i numeri, la storia, il viaggio che si percorre
   scorrendo (i fari si riaccendono uno alla volta), come si gioca, le schermate, il Club e il decollo finale.
   Tutto il movimento sta dentro `prefers-reduced-motion: no-preference`; senza JavaScript si vede tutto, fermo. */

[hidden] { display: none !important; }
.landing { max-width: none; padding: 0; overflow-x: clip; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section.block { padding-top: 72px; padding-bottom: 8px; }
.block h2, .trip h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 6vw, 38px); line-height: 1.2; margin: 6px 0 14px; letter-spacing: 0.01em; text-wrap: balance; }
.block .intro, .trip .intro { color: var(--ink-2); max-width: 36em; font-size: 17px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }
.btn { border: 0; font: inherit; font-weight: 800; cursor: pointer; transition: box-shadow 0.25s, transform 0.25s; }
.btn:hover { box-shadow: 0 10px 34px rgba(255, 79, 184, 0.55), 0 0 22px rgba(79, 227, 255, 0.35); transform: translateY(-1px); }

/* --- La nave al neon (apertura, viaggio, decollo): la stessa del logo e dell'introduzione del gioco ------------ */
.nship { overflow: visible; }
.nship path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.nship .tube { stroke: #ff4fb8; stroke-width: 9; filter: drop-shadow(0 0 10px rgba(255, 79, 184, 0.9)); }
.nship .core { stroke: #fff; stroke-width: 2.5; }
.nship .cyan { stroke: #4fe3ff; stroke-width: 6; filter: drop-shadow(0 0 8px rgba(79, 227, 255, 0.9)); }
.mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 14vw, 92px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 16px 0 0;
  color: #fff7fc;
  text-shadow: 0 0 3px #fff, 0 0 12px #ff4fb8, 0 0 30px #ff4fb8, 0 0 60px rgba(255, 79, 184, 0.6);
}
.tagline { font-size: clamp(18px, 4.6vw, 24px); font-weight: 700; color: var(--neon-2); margin: 14px 0 6px; }

/* --- Apertura: a sinistra il nome, a destra la partita ------------------------------------------------------- */
.top { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 56px 16px 56px; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.top::after {
  /* Il Sole che sorge dal fondo: la stessa luce calda dell'introduzione. */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -46vmin;
  width: 92vmin;
  height: 92vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 90, 0.34), rgba(255, 140, 60, 0.12) 45%, transparent 70%);
  /* Metà del cerchio sta sotto il bordo dell'apertura: si sfuma prima, così non resta una riga netta. */
  -webkit-mask-image: linear-gradient(to top, transparent 50%, #000 82%);
  mask-image: linear-gradient(to top, transparent 50%, #000 82%);
  z-index: -1;
  pointer-events: none;
}
.top .lang { position: absolute; top: 12px; right: 16px; z-index: 2; }
.top-grid { width: 100%; max-width: 1100px; margin: 0 auto; display: grid; gap: 40px; justify-items: center; }
.top-inner { text-align: center; max-width: 620px; }
.ship { width: 84px; height: 112px; }
.top .lead { font-size: 17px; max-width: 32em; color: var(--ink-2); margin: 8px auto 0; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 10px; }
.cta .btn { min-height: 54px; font-size: 17px; padding: 0 28px; }
/* "In arrivo": al posto dei pulsanti degli store finché il gioco non è uscito. Vetro, come i pannelli del gioco. */
.soon {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 24px 0 0;
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(79, 227, 255, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-weight: 700;
  color: var(--ink);
}
.soon-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon-2); white-space: nowrap; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-2); box-shadow: 0 0 10px var(--neon-2); }
.facts { color: var(--ink-3); font-size: 14px; margin-top: 12px; }

/* --- La partita nel telefono ---------------------------------------------------------------------------------- */
.demo { display: grid; justify-items: center; gap: 16px; perspective: 1400px; }
.device {
  position: relative;
  height: min(640px, 74svh);
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #262a3c, #0b0c14 55%, #1a1d2b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 70px rgba(255, 79, 184, 0.28), 0 0 140px rgba(79, 227, 255, 0.14);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.device::before {
  /* L'isola in alto, come su un iPhone. */
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
  z-index: 3;
  pointer-events: none;
}
.device canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  /* Prima che parta la partita (o senza JavaScript) si vede una schermata vera del gioco. */
  background: #05060b url('img/gioco-giove.webp') center / cover;
  touch-action: pan-y;
  outline: none;
  transition: opacity 0.12s linear;
}
.device canvas:focus-visible { box-shadow: 0 0 0 3px var(--neon-2); }
.demo.playing canvas { touch-action: none; cursor: grab; }
.demo.playing canvas:active { cursor: grabbing; }
.demo-top { position: absolute; top: 50px; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; z-index: 2; }
.demo-world { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.demo-auto { color: var(--neon-2); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.demo-score { font-family: var(--display); font-size: 18px; color: #fff7fc; text-shadow: 0 0 10px #ff4fb8; letter-spacing: 0.04em; }
.demo.playing .demo-auto, .demo:not(.playing) .demo-score { display: none; }
.demo-banner { position: absolute; left: 9px; right: 9px; top: 34%; text-align: center; pointer-events: none; opacity: 0; z-index: 2; }
.demo-banner b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff7fc; text-shadow: 0 0 4px #fff, 0 0 18px #ff4fb8, 0 0 40px rgba(255, 79, 184, 0.7); }
.demo-banner small { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--neon-2); text-shadow: 0 1px 8px #000; }
.demo-play {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  min-height: 52px;
  padding: 0 30px;
  font-size: 17px;
  z-index: 2;
  white-space: nowrap;
}
.demo-play:hover { transform: translateX(-50%) translateY(-1px); }
.demo.playing .demo-play, .device:has(.demo-over:not([hidden])) .demo-play { display: none; }
.demo-exit {
  position: absolute;
  top: 46px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 6, 11, 0.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: none;
  z-index: 3;
}
.demo.playing .demo-exit { display: block; }
.demo.playing .demo-top { right: 64px; }
.demo-hint { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px #000; pointer-events: none; display: none; z-index: 2; }
.demo.playing:not(.hint-off) .demo-hint { display: block; }
.finger { display: block; width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: rgba(79, 227, 255, 0.3); border: 2px solid var(--neon-2); box-shadow: 0 0 16px var(--neon-2); }
.demo-over {
  position: absolute;
  inset: 9px;
  border-radius: 37px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 6, 11, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 4;
}
.demo-over-t { font-family: var(--display); font-size: 26px; margin: 0; color: #fff7fc; text-shadow: 0 0 14px #ff4fb8; }
.demo-over-n { font-size: 18px; font-weight: 800; color: var(--neon-2); margin: 0 0 8px; }
.demo-over .btn { min-height: 50px; padding: 0 28px; }
.demo-over .link { font-weight: 700; margin-top: 4px; }
.demo-caption { color: var(--ink-3); font-size: 13px; max-width: 300px; text-align: center; margin: 0; }

/* --- I numeri ------------------------------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; padding-top: 44px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 9vw, 58px); line-height: 1.1; color: #fff7fc; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px #ff4fb8, 0 0 30px rgba(255, 79, 184, 0.6); }
.stat:nth-child(even) b { text-shadow: 0 0 12px #4fe3ff, 0 0 30px rgba(79, 227, 255, 0.6); }
.stat span { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

/* --- La storia: ogni riga ha il colore di ciò che racconta (fari, Sole, buio, Predoni, la tua nave) -------------- */
.timeline { list-style: none; max-width: 34em; margin: 26px auto 0; padding: 0; text-align: left; }
.timeline li { position: relative; padding: 0 0 18px 32px; margin: 0; color: var(--ink-2); font-size: 17px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--neon-2)); box-shadow: 0 0 10px var(--c, var(--neon-2)); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 24px; bottom: 2px; border-left: 1px dashed rgba(255, 255, 255, 0.2); }
.timeline li:nth-child(2) { --c: #ffc34d; }
.timeline li:nth-child(3) { --c: #6b2328; }
.timeline li:nth-child(4) { --c: #ff3b5c; }
.timeline li:nth-child(5) { --c: var(--neon); color: var(--ink); font-weight: 700; }
.timeline li:nth-child(3)::before { box-shadow: none; }
.timeline li:last-child::after { display: none; }

/* --- Il viaggio: senza movimento (o senza JavaScript) è una griglia di pianeti accesi -------------------------- */
.trip { position: relative; }
.trip-pin { padding-top: 72px; }
.trip-stage { position: relative; }
.trip-track { list-style: none; margin: 24px auto 0; padding: 0 16px; max-width: 1040px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
.stop { position: relative; margin: 0; display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center; }
.stop .planet { width: 96px; height: 96px; }
.stop .planet svg { width: 100%; height: 100%; overflow: visible; }
.stop b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.04em; margin-top: 6px; }
.stop em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--neon-2); }
.stop p { color: var(--ink-2); font-size: 15px; max-width: 18em; margin: 6px 0 0; }
.stop .lv { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #2a1d00; background: #f2c46b; white-space: nowrap; }
.stop .beacon { position: absolute; top: 8px; left: calc(50% + 34px); width: 10px; height: 10px; border-radius: 50%; background: var(--neon-2); box-shadow: 0 0 6px var(--neon-2), 0 0 16px var(--neon-2); transition: background 0.4s, box-shadow 0.4s; }
.sun b { color: #ffd27a; }
.trip-ship, .trip-trail, .trip-meter { display: none; }

/* --- Come si gioca --------------------------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; text-align: left; }
.tile, .feature {
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 79, 184, 0.16), transparent 70%), var(--glass);
  border: 1px solid var(--glass-edge);
  transition: border-color 0.3s, transform 0.3s;
}
.tile { border-radius: 20px; padding: 20px; }
.tile:hover, .feature:hover { border-color: rgba(255, 79, 184, 0.45); }
.tile svg { width: 48px; height: 48px; margin-bottom: 8px; overflow: visible; }
.tile svg * { transform-box: fill-box; transform-origin: center; }
.tile h3 { margin: 0 0 4px; font-size: 18px; }
.tile p { margin: 0; color: var(--ink-2); }

/* --- Schermate --------------------------------------------------------------------------------------------------- */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 16px 22px; margin: 0 -16px; scrollbar-width: none; perspective: 1000px; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { flex: none; width: min(62vw, 250px); margin: 0; scroll-snap-align: center; text-align: center; }
.phone {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 402 / 874;
  object-fit: cover;
  border-radius: 30px;
  border: 5px solid #15171f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 34px rgba(255, 79, 184, 0.16);
  background: #0b0d16;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
/* Senza la demo (vedi DEMO in scripts/sito/pagine.ts): nel primo schermo una schermata del gioco, alta come il telefono della demo. */
.demo > .phone { height: min(640px, 74svh); width: auto; max-width: 100%; border-radius: 40px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 70px rgba(255, 79, 184, 0.28), 0 0 140px rgba(79, 227, 255, 0.14); }
.phone:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 79, 184, 0.35); }
.shots figcaption { color: var(--ink-2); font-size: 14px; margin-top: 12px; }

/* --- Cosa c'è dentro --------------------------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.feature { display: flex; gap: 14px; align-items: flex-start; border-radius: 18px; padding: 16px 18px; }
.feature .dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--neon-2); box-shadow: 0 0 10px var(--neon-2); }
.feature:nth-child(3n + 2) .dot { background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.feature:nth-child(3n) .dot { background: #f2c46b; box-shadow: 0 0 10px #f2c46b; }
.feature h3 { margin: 0 0 2px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* --- Club: oro, con un riflesso che passa ----------------------------------------------------------------------- */
.club { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 22px; border: 1px solid rgba(255, 220, 150, 0.45);
  background: linear-gradient(160deg, rgba(255, 214, 130, 0.22), rgba(255, 190, 90, 0.06) 50%, rgba(255, 214, 130, 0.12)), rgba(40, 22, 6, 0.45); }
.club .eyebrow, .club h2 { color: #f2c46b; }
.club ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); }
.club-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }

/* --- Domande ------------------------------------------------------------------------------------------------------ */
.faq { max-width: 720px; margin: 24px auto 0; }

/* --- Decollo finale ----------------------------------------------------------------------------------------------- */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 96px 0 80px; margin-top: 64px; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 79, 184, 0.2), transparent 70%); }
.final-ship { width: 70px; height: 94px; }
.final .mark { font-size: clamp(36px, 10vw, 64px); }

/* --- Pagine larghe ------------------------------------------------------------------------------------------------ */
@media (min-width: 720px) {
  section.block, .trip-pin { padding-top: 96px; }
  .shots figure { width: 220px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { justify-content: center; margin: 0; }
  .trip-track { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .top-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
  .top-inner { text-align: left; }
  .top-inner .cta { justify-content: flex-start; }
  .top .lead { margin-left: 0; }
  .ship { width: 100px; height: 134px; }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* --- Movimento (solo se chi guarda non ha chiesto di ridurlo) ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* La nave si disegna lungo il contorno, poi si accendono abitacolo e fiamma: come nell'introduzione del gioco. */
  .ship .tube, .ship .core { stroke-dasharray: 100; stroke-dashoffset: 100; animation: trace 1.1s 0.3s cubic-bezier(0.5, 0, 0.3, 1) forwards; }
  .ship .cyan { opacity: 0; animation: ignite 0.35s 1.45s ease-out forwards; }
  .nship .flame { animation: flame 0.12s steps(2) infinite; }
  .ship .flame { animation: ignite 0.35s 1.45s ease-out forwards, flame 0.12s 1.8s steps(2) infinite; }
  .ship { animation: hover 3.2s 2s ease-in-out infinite; }
  .top .mark { opacity: 0.08; animation: neon 0.9s 1.7s steps(1) forwards; }
  .top .tagline, .top .lead, .top .soon, .top .cta, .top .facts, .demo { opacity: 0; animation: rise 0.6s ease-out forwards; }
  .top .tagline { animation-delay: 2.4s; }
  .top .lead { animation-delay: 2.55s; }
  .top .soon { animation-delay: 2.7s; }
  .top .cta { animation-delay: 2.85s; }
  .top .facts { animation-delay: 3s; }
  .soon-dot { animation: soon 1.6s ease-in-out infinite; }
  @keyframes soon { 50% { opacity: 0.35; box-shadow: 0 0 2px var(--neon-2); } }
  .demo { animation: rise 0.9s 0.5s ease-out forwards, bob 7s 1.4s ease-in-out infinite; }
  @keyframes trace { to { stroke-dashoffset: 0; } }
  @keyframes ignite { from { opacity: 0; } to { opacity: 1; } }
  @keyframes flame { 50% { transform: translateY(4px); opacity: 0.7; } }
  @keyframes hover { 50% { transform: translateY(-6px); } }
  /* Il logo si accende a scatti, come un'insegna al neon. */
  @keyframes neon { 0% { opacity: 1; } 8% { opacity: 0.1; } 16% { opacity: 1; } 30% { opacity: 0.2; } 40%, 100% { opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes bob { 50% { translate: 0 -8px; } }

  /* Il pulsante principale ha un riflesso che passa; "Prova tu" pulsa finché nessuno lo preme. */
  .btn.warp { background-size: 200% 100%; animation: shine 5s linear infinite; }
  @keyframes shine { to { background-position: 200% 0; } }
  .btn.warp { background-image: linear-gradient(90deg, #ff4fb8, #c86bff 25%, #4fe3ff 50%, #c86bff 75%, #ff4fb8); }
  .demo.ready:not(.playing) .demo-play { animation: ping 2.2s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 184, 0.6), 0 8px 24px rgba(255, 79, 184, 0.35); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 79, 184, 0), 0 8px 24px rgba(255, 79, 184, 0.35); } }
  .demo-banner.on { animation: banner 2.6s ease-out; }
  @keyframes banner { 0% { opacity: 0; transform: scale(1.25); letter-spacing: 0.3em; } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
  .finger { animation: drag 1.8s ease-in-out infinite; }
  @keyframes drag { 0%, 100% { transform: translateX(-34px); } 50% { transform: translateX(34px); } }

  /* Le sezioni entrano mentre si scorre (solo con JavaScript: senza, si vede tutto subito). */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
  .js .reveal.on { opacity: 1; transform: none; }
  .js .timeline.reveal { opacity: 1; transform: none; }
  .js .timeline li { opacity: 0; transform: translateX(-14px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
  /* Una riga dopo l'altra (con le classi e non con style="--i:…": la Content Security Policy vieta gli stili in linea). */
  .js .timeline li:nth-child(2) { transition-delay: 0.4s; }
  .js .timeline li:nth-child(3) { transition-delay: 0.8s; }
  .js .timeline li:nth-child(4) { transition-delay: 1.2s; }
  .js .timeline li:nth-child(5) { transition-delay: 1.6s; }
  .js .timeline.on li { opacity: 1; transform: none; }
  .js .stats.reveal { transform: none; }
  .tile:hover { transform: translateY(-4px); }

  /* Le icone di "Come si gioca" fanno il loro gesto. */
  .tile.on .i-sway { animation: sway 2.4s ease-in-out infinite; }
  .tile.on .i-blink { animation: blink 2.4s ease-in-out infinite; }
  .tile.on .i-fall { animation: fall 1.8s linear infinite; }
  .tile.on .i-spark { animation: spark 1.8s ease-out infinite; }
  .tile.on .i-dash { animation: dash 1.6s cubic-bezier(0.2, 0.9, 0.2, 1) infinite; }
  .tile.on .i-streak { animation: streak 1.6s cubic-bezier(0.2, 0.9, 0.2, 1) infinite; }
  .tile.on .i-pulse { animation: pulse 2s ease-in-out infinite; }
  .tile.on .i-rise { animation: launch-icon 2s ease-in infinite; }
  @keyframes sway { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
  @keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
  @keyframes fall { 0% { transform: translateY(-16px); opacity: 0; } 20%, 75% { opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
  @keyframes spark { 0%, 40% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes dash { 0% { transform: translateX(-8px); } 25% { transform: translateX(6px); } 100% { transform: translateX(-8px); } }
  @keyframes streak { 0% { opacity: 0; transform: translateX(8px); } 25% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-6px); } }
  @keyframes pulse { 50% { transform: scale(1.1); } }
  @keyframes launch-icon { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }

  .shots figure:nth-child(odd) { animation: bob 6s ease-in-out infinite; }
  .shots figure:nth-child(even) { animation: bob 6s 3s ease-in-out infinite; }
  .club::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 232, 175, 0.2) 50%, transparent 62%); transform: translateX(-110%); animation: sheen 5s 1s ease-in-out infinite; }
  @keyframes sheen { 0% { transform: translateX(-110%); } 45%, 100% { transform: translateX(110%); } }

  /* Il decollo: la nave sale dal fondo, poi il nome si accende. */
  .final-inner.on .final-ship { animation: launch 1.4s cubic-bezier(0.3, 0, 0.2, 1) both, hover 3.2s 1.4s ease-in-out infinite; }
  .final-inner.on .mark { animation: neon 0.9s 0.9s steps(1) both; }
  @keyframes launch { from { transform: translateY(120px) scale(0.7); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }

  /* Il viaggio, dal vivo: la sezione si ferma sullo schermo e scorrendo la nave attraversa i pianeti. */
  .js .trip.live { height: calc(100svh + 8 * 46svh); }
  .trip.live .trip-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
  .trip.live .trip-head { padding-top: max(40px, 6svh); }
  .trip.live .trip-head h2 { font-size: clamp(22px, 5vw, 34px); }
  .trip.live .trip-head .intro { font-size: 15px; margin-bottom: 0; }
  .trip.live { --ps: 130px; }
  .trip.live .trip-stage { flex: 1; display: flex; align-items: center; }
  .trip.live .trip-track { display: flex; gap: 0; margin: 0; padding: 0; max-width: none; will-change: transform; }
  .trip.live .stop { flex: none; width: min(78vw, 300px); opacity: 0.45; transform: scale(0.84); transition: opacity 0.5s, transform 0.5s; }
  .trip.live .stop.here { opacity: 1; transform: none; }
  .trip.live .stop .planet { width: var(--ps); height: var(--ps); filter: grayscale(0.85) brightness(0.45); transition: filter 0.7s; }
  .trip.live .stop.lit .planet, .trip.live .sun .planet { filter: none; }
  .trip.live .stop .beacon { top: calc(var(--ps) * 0.1); left: calc(50% + var(--ps) * 0.3); background: rgba(150, 40, 46, 0.9); box-shadow: none; }
  .trip.live .stop.lit .beacon { background: var(--neon-2); box-shadow: 0 0 6px var(--neon-2), 0 0 18px var(--neon-2); }
  .trip.live .stop p { opacity: 0; transition: opacity 0.4s; }
  .trip.live .stop.here p { opacity: 1; }
  /* La nave si ferma poco prima del pianeta al centro (il raggio del pianeta è circa 0,28 della sua casella); l'altezza la mette sito.js. */
  .trip.live .trip-ship { display: block; position: absolute; top: 40%; left: calc(50% - var(--ps) * 0.28 - 58px); width: 54px; height: 72px; transform: translate(-50%, -50%) rotate(90deg); z-index: 2; }
  .trip.live .trip-trail { display: block; position: absolute; top: 40%; left: 0; width: calc(50% - var(--ps) * 0.28 - 92px); height: 3px; transform: translateY(-50%); border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 79, 184, 0.35) 40%, #ff4fb8); box-shadow: 0 0 12px rgba(255, 79, 184, 0.8); }
  .trip.live .trip-meter { display: block; text-align: center; margin: 0; padding: 0 16px max(28px, 5svh); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
  @media (min-width: 720px) { .trip.live { --ps: 170px; } .trip.live .stop { width: 320px; } }
  .trip-n { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--neon-2); text-shadow: 0 0 12px var(--neon-2); }
  .trip-done { display: block; margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: clamp(18px, 4.6vw, 24px); letter-spacing: 0.04em; text-transform: none; color: #f2c46b; text-shadow: 0 0 16px rgba(242, 196, 107, 0.8); opacity: 0; transform: scale(0.8); transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
  .trip.done .trip-done { opacity: 1; transform: none; }
}
