html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.bt {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.bt__badge {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
  color: #17141a;
  font-weight: 700;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bt__scene {
  padding: 40px;
}

.bt__wrap {
  position: relative;
  width: 200px;
  height: 64px;
  --p: 0;
}

.bt__wrap::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(10, 79, 232, 0.5), transparent 70%);
  filter: blur(calc(4px + var(--p) * 18px));
  opacity: var(--p);
  pointer-events: none;
  z-index: 0;
}

.bt__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}
.bt__ring rect {
  fill: none;
  stroke: #0a4fe8;
  stroke-width: 3;
  will-change: stroke-dashoffset;
}

.bt__btn {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  background: linear-gradient(calc(var(--p) * 360deg), #17141a 0%, #0a4fe8 calc(15% + var(--p) * 55%), #17141a 100%);
  color: #fff7e6;
  font-size: 15px;
  font-weight: 700;
}

.bt__btn:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 3px;
}

@media (max-width: 340px) {
  .bt__scene {
    padding: 24px;
  }
  .bt__wrap {
    width: 168px;
    height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bt__ring rect {
    transition: none;
  }
}
