:root {
  --fondo: #0a0a0c;
  --fondo-luce: #18181d;
  --testo: #ececf0;
  --testo-tenue: #8a8a94;
  --filo: rgba(255, 255, 255, 0.1);
  --cassa: #c9cbd1;
  --accento: #ff7a45;
  --fog: #d9d6cf;
  --clay: #c8714c;
  --moss: #5f7a5a;
  --ink: #2c3446;
}

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

html, body { height: 100%; }

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

.palco {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: clamp(12px, 3.6vh, 36px) 16px clamp(12px, 3.6vh, 32px);
  /* a soft studio glow behind the watch */
  background: radial-gradient(52% 50% at 50% 50%, var(--fondo-luce), var(--fondo) 72%);
}

.testa {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.etichetta {
  font-size: clamp(13px, 1.9vh, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sotto,
.nome-cinturino {
  font-size: clamp(11px, 1.6vh, 13px);
  color: var(--testo-tenue);
  display: inline-block;
  overflow: hidden;
  line-height: 1.3;
}

.rullo { display: inline-block; }

.scena {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: grab;
  touch-action: none;
}

.scena.presa { cursor: grabbing; }

.tela {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* the band fades into the dark above and below instead of being cut by the frame */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}

.ripiego {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(40vw, 30vh);
  aspect-ratio: 0.82;
  transform: translate(-50%, -50%);
  border-radius: 28%/24%;
  background: #050506;
  border: 6px solid var(--cassa);
  color: #fff;
  font-weight: 600;
  font-size: 22px;
  place-items: center;
}

.ripiego.acceso { display: grid; }

.piede {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.cinturini {
  display: flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--filo);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.campione {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

/* the swatch itself, in its own element so GSAP can press it without touching the ring */
.campione span {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.campione::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.campione.attivo::after {
  opacity: 1;
  transform: scale(1);
}

.campione:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }

.puntatore {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.puntatore path {
  fill: #fff;
  stroke: #111;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .campione:hover span { transform: scale(1.08); transition: transform 0.25s; }
}
