:root {
  --fondo: #ffffff;
  --inchiostro: #0a0a0a;
  --chiaro: #ffffff;
  --grigio: #a1a1aa;
  --h: 52px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pair {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(28px, 6vw, 64px);
  flex-wrap: wrap;
}

.slot { display: grid; justify-items: start; gap: 14px; }
.slot__note {
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--grigio);
  padding-left: 4px;
}

.go {
  position: relative;
  display: block;
  height: var(--h);
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.go:focus-visible .go__face { box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px #6366f1; }

/* the soft shadow under the whole button; GSAP stretches it towards the arrow */
.go__shadow {
  position: absolute;
  left: 10%; right: 10%; bottom: -6px;
  height: 60%;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.32);
  filter: blur(12px);
  opacity: 0.55;
  transform-origin: 20% 50%;
}
.go--light .go__shadow { background: rgba(10, 10, 10, 0.16); }

/* the melted shapes: pill and circle drawn plain and joined by the filter */
.go__shapes { position: absolute; inset: -12px -24px -12px -12px; pointer-events: none; }
.go__shapes--dark { filter: url(#goo-dark); }
.go__shapes--light { filter: url(#goo-light); }
.go__pill-shape, .go__dot-shape {
  position: absolute;
  top: 12px;
  height: var(--h);
  border-radius: 999px;
  background: var(--inchiostro);
}
.go__pill-shape { left: 12px; }
.go__dot-shape { width: var(--h); }
.go--light .go__pill-shape, .go--light .go__dot-shape { background: var(--chiaro); }

/* what you read and see move, on top of the filter */
.go__face {
  position: absolute;
  left: 0; top: 0;
  height: var(--h);
  display: flex;
  align-items: center;
  padding: 0 22px 0 24px;
  border-radius: 999px;
  overflow: hidden;
  color: var(--chiaro);
  white-space: nowrap;
}
.go--light .go__face { color: var(--inchiostro); }
.go__label {
  position: relative;
  display: block;
  font-size: 15.5px;
  font-weight: 560;
  letter-spacing: -0.005em;
}
.go__shine {
  position: absolute;
  top: -20%; bottom: -20%; left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0.05) 60%, transparent 100%);
  pointer-events: none;
}
.go--light .go__shine { background: linear-gradient(100deg, transparent 0%, rgba(10, 10, 10, 0.06) 45%, transparent 100%); }

.go__dot {
  position: absolute;
  top: 0;
  width: var(--h);
  height: var(--h);
  border-radius: 50%;
  overflow: hidden;
  color: var(--chiaro);
}
.go--light .go__dot { color: var(--inchiostro); }
.go__arrow {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost {
  position: fixed; left: 0; top: 0;
  width: 22px; height: 22px;
  fill: #111113; stroke: #ffffff; stroke-width: 1.4; stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  z-index: 5;
}

.defs { position: absolute; width: 0; height: 0; }

@media (max-width: 520px) {
  :root { --h: 48px; }
  .pair { flex-direction: column; align-items: center; gap: 26px; }
  .slot { justify-items: center; }
  .go__label { font-size: 15px; }
}

@media (min-width: 900px) and (min-height: 560px) {
  :root { --h: 58px; }
  .go__label { font-size: 17px; }
  .go__face { padding: 0 24px 0 27px; }
  .slot__note { font-size: 13px; }
}
