:root {
  --fondo: #0a0a0a;        /* the near-black page */
  --accento: #8b7bff;      /* the colour of the particles */
  --chiaro: #e9e6ff;       /* the brightest particles, facing you */
  --testo: #f4f4f5;        /* the title */
  --grigio: #8a8a93;       /* the secondary line */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--testo);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.palco {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: radial-gradient(60% 50% at 50% 42%, #15131f 0%, var(--fondo) 70%);
}
.palco.preso { cursor: grabbing; }

.tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.ripiego { display: none; position: absolute; inset: 0; place-items: center; }
.ripiego span {
  width: min(52vw, 46vh); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accento) 60%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accento) 30%, transparent) inset;
  margin-bottom: 12vh;
}
.senza-webgl .ripiego { display: grid; }

.racconto {
  position: absolute;
  left: 0; right: 0;
  bottom: max(5vh, 18px);
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 0 16px;
  text-align: center;
  pointer-events: none;
}
.etichetta {
  font-size: clamp(10px, 1.6vh, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accento);
  font-weight: 600;
  opacity: 0;
}
.titolo {
  font-size: clamp(18px, min(4.4vw, 5vh), 40px);
  font-weight: 640;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  opacity: 0;
}
.riga {
  font-size: clamp(11px, min(1.8vw, 2.2vh), 15px);
  color: var(--grigio);
  opacity: 0;
}

.finto {
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.finto path { fill: #fff; stroke: #0a0a0a; stroke-width: 1.3; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .palco { cursor: default; }
}
