.buy-gateway {
  --buy-gateway-paper: #eeede7;
  --buy-gateway-paper-bright: #f8f8f3;
  --buy-gateway-ink: #11120f;
  --buy-gateway-muted: #62665d;
  --buy-gateway-metal: #c9ccc3;
  --buy-gateway-acid: #ccff00;
  --buy-gateway-sans: "Hanken Grotesk", "Arial Narrow", Arial, sans-serif;
  --buy-gateway-mono: "Spline Sans Mono", "SFMono-Regular", Consolas, monospace;
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  min-width: 320px;
  min-height: 100svh;
  overflow: auto;
  color: var(--buy-gateway-ink);
  font-family: var(--buy-gateway-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.94) 0 14%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, rgba(17, 18, 15, 0.022) 1px, transparent 1px),
    linear-gradient(rgba(17, 18, 15, 0.022) 1px, transparent 1px),
    var(--buy-gateway-paper);
  background-size: auto, 42px 42px, 42px 42px, auto;
  opacity: 0;
  transition: opacity 160ms ease;
}

html.buy-gateway-candidate,
html.buy-gateway-candidate body {
  overflow: hidden !important;
}

html.buy-gateway-candidate body > :not(.buy-gateway):not(script) {
  visibility: hidden !important;
}

html.buy-gateway-ready .buy-gateway {
  display: block;
  opacity: 1;
}

html.buy-gateway-ready body > .buy-gateway {
  visibility: visible !important;
}

html.buy-gateway-leaving .buy-gateway {
  opacity: 0;
  pointer-events: none;
}

.buy-gateway *,
.buy-gateway *::before,
.buy-gateway *::after {
  box-sizing: border-box;
}

.buy-gateway button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.buy-gateway:focus {
  outline: none;
}

.buy-gateway button:focus-visible {
  outline: 3px solid #d43c30;
  outline-offset: 5px;
}

.buy-gateway__head {
  position: fixed;
  z-index: 4;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 3.2vw, 48px);
  pointer-events: none;
}

.buy-gateway__wordmark,
.buy-gateway__state {
  display: inline-flex;
  align-items: center;
}

.buy-gateway__wordmark {
  gap: 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.buy-gateway__wordmark-key {
  display: inline-grid;
  min-width: 45px;
  place-items: center;
  padding: 7px 10px 6px;
  border: 1px solid var(--buy-gateway-ink);
  border-radius: 999px;
  background: var(--buy-gateway-acid);
  box-shadow: 2px 2px 0 var(--buy-gateway-ink);
  font: 800 10px/1 var(--buy-gateway-mono);
}

.buy-gateway__state {
  gap: 8px;
  color: #5d6158;
  font: 600 9px/1 var(--buy-gateway-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buy-gateway__state i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--buy-gateway-ink);
  border-radius: 50%;
  background: var(--buy-gateway-acid);
  box-shadow: 0 0 9px rgba(204, 255, 0, 0.82);
}

.buy-gateway__stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 82px clamp(18px, 4vw, 64px) 38px;
  transition:
    opacity 150ms ease,
    transform 180ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

html.buy-gateway-leaving .buy-gateway__stage {
  opacity: 0;
  transform: scale(0.992);
}

.buy-gateway__object {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.buy-gateway__kicker {
  margin: 0 0 10px;
  color: var(--buy-gateway-muted);
  font: 600 10px/1 var(--buy-gateway-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.buy-gateway__title {
  width: 100%;
  max-width: min(94vw, 1120px);
  margin: 0 0 clamp(22px, 3.2vh, 40px);
  font-size: clamp(46px, 6.4vw, 96px);
  font-weight: 875;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-wrap: balance;
  white-space: nowrap;
}

.buy-gateway__title[data-copy-size="medium"] {
  font-size: clamp(42px, 5.4vw, 82px);
}

.buy-gateway__title[data-copy-size="long"] {
  font-size: clamp(38px, 4.6vw, 70px);
}

.buy-gateway__title[data-copy-size="extra-long"] {
  font-size: clamp(34px, 3.9vw, 60px);
}

.buy-gateway__frame {
  position: relative;
  width: min(74vw, clamp(560px, calc((100svh - 290px) * 1.68), 820px));
  min-width: 0;
}

.buy-gateway__button-object {
  --buy-gateway-key-travel: clamp(6px, 1vw, 11px);
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  aspect-ratio: 1707 / 921;
}

.buy-gateway__housing {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  filter:
    drop-shadow(0 20px 18px rgba(17, 18, 15, 0.22))
    drop-shadow(0 3px 2px rgba(17, 18, 15, 0.3));
}

.buy-gateway__button {
  position: absolute;
  z-index: 2;
  top: 29.1%;
  right: 14%;
  bottom: 32.57%;
  left: 13.94%;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #020301 0%, #111608 45%, #010200 100%);
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.92) inset,
    0 -2px 3px rgba(204, 255, 0, 0.12) inset;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.buy-gateway__keycap {
  position: absolute;
  z-index: 1;
  top: -75.92%;
  left: -19.35%;
  display: block;
  width: 138.77%;
  max-width: none;
  height: auto;
  user-select: none;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 57%;
  filter:
    brightness(1.012)
    saturate(1.025)
    drop-shadow(0 9px 4px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 11px rgba(204, 255, 0, 0.18));
  will-change: transform, filter;
  transition:
    transform 176ms cubic-bezier(0.18, 0.82, 0.24, 1),
    filter 150ms ease;
}

.buy-gateway__key-depth {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0) inset,
    0 0 18px rgba(204, 255, 0, 0.16) inset;
  opacity: 0.16;
  transition: opacity 120ms ease, box-shadow 150ms ease;
}

.buy-gateway__frame:hover .buy-gateway__keycap {
  filter:
    brightness(1.035)
    saturate(1.045)
    drop-shadow(0 9px 4px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 16px rgba(204, 255, 0, 0.3));
}

.buy-gateway__button:active .buy-gateway__keycap,
.buy-gateway__button.is-pressed .buy-gateway__keycap {
  transform: translate3d(0, var(--buy-gateway-key-travel), 0) scaleY(0.995);
  filter:
    brightness(0.965)
    saturate(1.035)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 14px rgba(204, 255, 0, 0.28));
  transition:
    transform 82ms cubic-bezier(0.28, 0, 0.55, 1),
    filter 82ms ease;
}

.buy-gateway__button:active .buy-gateway__key-depth,
.buy-gateway__button.is-pressed .buy-gateway__key-depth {
  opacity: 1;
  box-shadow:
    0 13px 15px rgba(0, 0, 0, 0.78) inset,
    0 -1px 0 rgba(204, 255, 0, 0.18) inset;
}

.buy-gateway__button.is-rebounding .buy-gateway__keycap {
  animation: buy-gateway-keycap-rebound 176ms cubic-bezier(0.18, 0.82, 0.24, 1) both;
}

@keyframes buy-gateway-keycap-rebound {
  0% {
    transform: translate3d(0, var(--buy-gateway-key-travel), 0) scaleY(0.995);
    filter:
      brightness(0.965)
      saturate(1.035)
      drop-shadow(0 1px 1px rgba(0, 0, 0, 0.48))
      drop-shadow(0 0 14px rgba(204, 255, 0, 0.28));
  }
  58% {
    transform: translate3d(0, -1.2px, 0);
    filter:
      brightness(1.018)
      saturate(1.025)
      drop-shadow(0 10px 4px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 14px rgba(204, 255, 0, 0.23));
  }
  78% {
    transform: translate3d(0, 0.45px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.buy-gateway__record {
  min-width: 310px;
  max-width: min(92vw, 680px);
  margin-top: clamp(15px, 2.2vh, 20px);
  color: var(--buy-gateway-ink);
  font-variant-numeric: tabular-nums;
}

.buy-gateway__record-value {
  min-height: 29px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
}

.buy-gateway__record-dot {
  align-self: center;
  width: 6px;
  height: 6px;
  margin-right: 1px;
  border: 1px solid var(--buy-gateway-ink);
  border-radius: 50%;
  background: var(--buy-gateway-acid);
}

.buy-gateway__record[data-state="delayed"] .buy-gateway__record-dot,
.buy-gateway__record[data-state="stale"] .buy-gateway__record-dot,
.buy-gateway__record[data-state="partial"] .buy-gateway__record-dot {
  background: transparent;
}

.buy-gateway__record-value data {
  display: inline-block;
  min-width: 5.3ch;
  font-size: clamp(24px, 2.2vw, 29px);
  font-weight: 875;
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: right;
  transition: opacity 120ms ease, transform 120ms ease;
}

.buy-gateway__record.is-updating .buy-gateway__record-value data {
  opacity: 0.56;
  transform: translateY(-1px);
}

.buy-gateway__record-value > span:last-child {
  font: 700 9px/1 var(--buy-gateway-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.buy-gateway__definition {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
  margin: 6px 0 0;
  color: #686c63;
  font: 550 8px/1.35 var(--buy-gateway-mono);
}

.buy-gateway__definition i {
  font-style: normal;
}

.buy-gateway__ca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 8px auto 0;
  padding: 0 0 3px;
  border-bottom: 1px solid rgba(17, 18, 15, 0.28) !important;
  background: transparent;
  color: #555950;
  font: 600 8px/1 var(--buy-gateway-mono) !important;
  letter-spacing: 0.015em;
  transition: border-color 120ms ease, color 120ms ease;
}

.buy-gateway__ca:hover,
.buy-gateway__ca:focus-visible {
  border-color: var(--buy-gateway-ink) !important;
  color: var(--buy-gateway-ink);
}

.buy-gateway__ca > span:first-child {
  padding: 3px 5px 2px;
  border: 1px solid var(--buy-gateway-ink);
  border-radius: 999px;
  background: var(--buy-gateway-acid);
  color: var(--buy-gateway-ink);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.buy-gateway__ca code {
  color: inherit;
  font: inherit;
}

.buy-gateway__ca b {
  min-width: 4.6ch;
  color: #777b71;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.buy-gateway__ca.is-copied b {
  color: #4b6300;
}

.buy-gateway__ca-short {
  display: none;
}

.buy-gateway__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  .buy-gateway__state {
    display: none;
  }

  .buy-gateway__stage {
    padding-top: 78px;
  }

  .buy-gateway__kicker {
    font-size: 8px;
  }

  .buy-gateway__title,
  .buy-gateway__title[data-copy-size="medium"],
  .buy-gateway__title[data-copy-size="long"],
  .buy-gateway__title[data-copy-size="extra-long"] {
    max-width: 390px;
    margin-bottom: 30px;
    white-space: normal;
  }

  .buy-gateway__title {
    font-size: clamp(38px, 10vw, 52px);
  }

  .buy-gateway__title[data-copy-size="medium"] {
    font-size: clamp(34px, 8.8vw, 48px);
  }

  .buy-gateway__title[data-copy-size="long"] {
    font-size: clamp(30px, 8vw, 43px);
  }

  .buy-gateway__title[data-copy-size="extra-long"] {
    font-size: clamp(27px, 7.2vw, 39px);
  }

  .buy-gateway__frame {
    width: min(86vw, 680px);
    min-width: 0;
  }

  .buy-gateway__record {
    min-width: 0;
    margin-top: 16px;
  }

  .buy-gateway__definition {
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
  }

  .buy-gateway__definition i {
    display: none;
  }

  .buy-gateway__definition span,
  .buy-gateway__definition time {
    flex-basis: 100%;
  }

  .buy-gateway__ca-full {
    display: none;
  }

  .buy-gateway__ca-short {
    display: inline;
  }
}

@media (max-height: 720px) and (min-width: 821px) {
  .buy-gateway__head {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .buy-gateway__stage {
    padding-top: 66px;
    padding-bottom: 24px;
  }

  .buy-gateway__kicker {
    margin-bottom: 7px;
  }

  .buy-gateway__title {
    margin-bottom: 18px;
  }

  .buy-gateway__record {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-gateway,
  .buy-gateway__stage,
  .buy-gateway__keycap,
  .buy-gateway__key-depth,
  .buy-gateway__record-value data {
    transition: none;
  }

  .buy-gateway__button.is-rebounding .buy-gateway__keycap {
    animation: none;
  }
}
