:root {
  --fondo: #0a0a0b;
  --pulsante: #141417;
  --testo: #f2f2f4;
  --grigio: #8a8a94;
  --luce: #9db2ff;
  --fatto: #b9f5c9;
  --bordo: rgba(255, 255, 255, 0.08);
}

* { 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;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  /* a soft cold light under the button, barely there */
  background: radial-gradient(min(70vw, 520px) min(40vh, 300px) at 50% 58%, rgba(157, 178, 255, 0.07), transparent 70%);
}

.ask {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 360px);
}

.ask__who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--grigio);
  letter-spacing: 0.01em;
}
.ask__who b { color: var(--testo); font-weight: 600; }

.ask__mark {
  width: 16px;
  height: 16px;
  fill: var(--luce);
  opacity: 0.9;
}

.ask__what {
  margin-top: 6px;
  font-size: clamp(15px, min(4.2vw, 3.6vh), 17px);
  font-weight: 520;
  font-variation-settings: "wdth" 100;
  color: var(--testo);
  letter-spacing: -0.01em;
}

.btnwrap {
  position: relative;
  margin-top: clamp(18px, 4.5vh, 30px);
  width: min(78vw, 272px);
  height: clamp(50px, 9vh, 58px);
}

.btn {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  border-radius: 999px;
  font: inherit;
  color: var(--testo);
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(180deg, #1b1b20, var(--pulsante) 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px var(--bordo),
    0 18px 40px -16px rgba(0, 0, 0, 0.9),
    0 0 0 0 rgba(157, 178, 255, 0);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--luce); outline-offset: 4px; }

/* the reflection that sits under the finger while pressing */
.btn__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px 70px at var(--x, 50%) var(--y, 50%), rgba(157, 178, 255, 0.22), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

/* a very faint wash of light that grows with the charge */
.btn__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(157, 178, 255, 0.10), rgba(157, 178, 255, 0.02));
  opacity: 0;
  pointer-events: none;
}

.btn__in {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.btn__icon {
  width: 19px;
  height: 19px;
  flex: none;
  overflow: visible;
}
.btn__shield {
  fill: none;
  stroke: var(--grigio);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.btn__check {
  fill: none;
  stroke: var(--testo);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.btn__label {
  position: relative;
  display: inline-block;
  height: 1.25em;
  line-height: 1.25em;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.btn__label .w { display: inline-block; white-space: pre; }
.btn__label .w.old { position: absolute; left: 0; top: 0; }
.btn__label .c { display: inline-block; }

.beam {
  position: absolute;
  left: -10px;
  top: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  overflow: visible;
  pointer-events: none;
}
.beam path { fill: none; stroke-linecap: round; }
.beam__track { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.beam__halo { stroke: var(--luce); stroke-width: 5; opacity: 0.55; stroke-dasharray: 0 1; }
.beam__line { stroke: var(--luce); stroke-width: 1.6; stroke-dasharray: 0 1; }
.beam__head { stroke: #ffffff; stroke-width: 4; stroke-dasharray: 0 1; opacity: 0; }
.beam__core { stroke: #ffffff; stroke-width: 1.6; stroke-dasharray: 0 1; opacity: 0; }
.beam__flash { stroke: #ffffff; stroke-width: 3; stroke-dasharray: 0 1; opacity: 0; }

.ask__hint {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--grigio);
  height: 1.3em;
  line-height: 1.3em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.ask__hint .w { display: inline-block; white-space: pre; }
.ask__hint .w.old { position: absolute; left: 50%; top: 0; }

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #ffffff;
  stroke: #0a0a0b;
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 380px) {
  .btn__label { font-size: 14px; }
}
