:root {
  --fondo: #000000;
  --pillola: #131315;
  --pillola-luce: #1c1c1f;
  --bordo: rgba(255, 255, 255, 0.1);
  --testo: #f4f4f6;
  --tenue: #86868d;
  --spento: #3a3a40;
  --accento: #7ef0c0;
  --accento-scuro: #06281b;
  --alt: 60px;
}

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

html, body { height: 100%; background: var(--fondo); }

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

.stage {
  position: relative;
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}
@media (hover: hover) and (pointer: fine) {
  .stage.is-phone { cursor: none; }
}

.pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 5vh, 34px);
}

.pay__shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.pay__name { font-size: clamp(17px, 4.6vh, 22px); font-weight: 640; font-stretch: 106%; letter-spacing: -0.01em; }
.pay__place { font-size: 12.5px; color: var(--tenue); font-weight: 460; }

.pay__wrap {
  position: relative;
  width: clamp(224px, 72vw, 296px);
  height: var(--alt);
  display: grid;
  place-items: center;
}

.field {
  position: absolute;
  left: -40px; top: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  overflow: visible;
  pointer-events: none;
}
.field__ring { fill: none; stroke: var(--accento); stroke-width: 1; opacity: 0; }

.btn {
  position: relative;
  height: var(--alt);
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--testo);
  font: inherit;
  cursor: pointer;
  min-width: 0;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.btn:focus-visible { box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px rgba(126, 240, 192, 0.7); }

.btn__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--pillola-luce), var(--pillola) 60%);
  box-shadow: inset 0 0 0 1px var(--bordo), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.9);
}

.btn__acc { position: absolute; inset: 0; border-radius: inherit; background: var(--accento); opacity: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); overflow: hidden; }
.btn__shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%); }

.btn__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.btn__ring rect { fill: none; stroke: var(--accento); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.btn__row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 22px 0 16px;
  gap: 10px;
  white-space: nowrap;
}

.waves { width: 26px; height: 26px; flex: none; overflow: visible; }
.waves path { fill: none; stroke: var(--spento); stroke-width: 1.7; stroke-linecap: round; }

.tick-small { position: absolute; left: 19px; width: 22px; height: 22px; opacity: 0; }
.tick-small path { fill: none; stroke: var(--accento-scuro); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.btn__label { font-size: 15.5px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.005em; }
.btn__amount { margin-left: auto; font-size: 14.5px; font-weight: 520; color: var(--tenue); }

.tick { position: absolute; width: 26px; height: 26px; opacity: 0; }
.tick path { fill: none; stroke: var(--accento-scuro); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.pay__hint { height: 18px; font-size: 13px; color: var(--tenue); font-weight: 460; text-align: center; }
.pay__hint span { display: inline-block; }

.phone {
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 85px;
  margin: -42px 0 0 -23px;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  will-change: transform;
}
.phone__tilt { width: 100%; height: 100%; }
.phone svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.8)); }
.phone__body { fill: #0c0c0e; stroke: #d9d9de; stroke-width: 1.4; }
.phone__screen { fill: #18181b; }
.phone__island { fill: #000; }
.phone__card { fill: var(--accento); opacity: 0.9; }
.phone__chip { fill: var(--accento-scuro); opacity: 0.55; }
.phone__glint { fill: #fff; opacity: 0.06; }

@media (max-height: 460px) {
  :root { --alt: 54px; }
  .pay { gap: 16px; }
}
