.lp-gate{
  position:fixed;
  inset:0;
  z-index:420;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}
.lp-gate.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.lp-gate__backdrop{
  position:absolute;
  inset:0;
  background:rgba(13,13,18,.52);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.lp-gate__dialog{
  position:relative;
  width:min(420px,100%);
  padding:28px 26px 24px;
  background:#fff;
  border:1px solid var(--hairline,#e7e4ee);
  border-radius:24px;
  box-shadow:0 28px 80px rgba(13,13,18,.28);
  transform:translateY(14px) scale(.98);
  transition:transform .24s cubic-bezier(.2,.8,.2,1);
}
.lp-gate.is-open .lp-gate__dialog{transform:none}
.lp-gate__close{
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#6b6580;
  cursor:pointer;
}
.lp-gate__close:hover{background:#f4efff;color:#1a1030}
.lp-gate__icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin:4px auto 16px;
  border-radius:16px;
  background:#0d0d12;
  color:#fff;
  box-shadow:0 12px 28px rgba(13,13,18,.28);
}
.lp-gate__title{
  margin:0 0 8px;
  font-family:'Syne',sans-serif;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.2;
  text-align:center;
  color:#1a1030;
}
.lp-gate__sub{
  margin:0 0 22px;
  text-align:center;
  font-size:.95rem;
  line-height:1.45;
  color:#6b6580;
}
.lp-gate__track{
  position:relative;
  height:58px;
  padding:4px;
  overflow:hidden;
  user-select:none;
  -webkit-user-select:none;
  touch-action:none;
  border-radius:999px;
  background:#f4efff;
  border:1px solid #ece7f7;
}
.lp-gate__fill{
  position:absolute;
  top:4px;
  bottom:4px;
  left:4px;
  width:50px;
  border-radius:999px;
  background:#0d0d12;
  pointer-events:none;
  transition:width .28s cubic-bezier(.2,.8,.2,1);
}
.lp-gate__label{
  position:absolute;
  inset:0 18px 0 62px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.92rem;
  font-weight:600;
  color:#6b6580;
  letter-spacing:.01em;
  pointer-events:none;
  transition:opacity .15s ease,color .15s ease;
}
.lp-gate.is-dragging .lp-gate__label,
.lp-gate.is-done .lp-gate__label{opacity:0}
.lp-gate__thumb{
  position:relative;
  z-index:1;
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#0d0d12;
  box-shadow:0 8px 18px rgba(13,13,18,.22);
  cursor:grab;
  touch-action:none;
  transition:transform .28s cubic-bezier(.2,.8,.2,1);
}
.lp-gate.is-dragging .lp-gate__thumb,
.lp-gate.is-dragging .lp-gate__fill{transition:none}
.lp-gate__thumb:active,
.lp-gate.is-dragging .lp-gate__thumb{cursor:grabbing}
.lp-gate__thumb:focus-visible{
  outline:2px solid #7c3aed;
  outline-offset:2px;
}
.lp-gate__chevrons{
  display:flex;
  align-items:center;
  gap:2px;
  color:#0d0d12;
}
.lp-gate__chevrons span{
  display:block;
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:6px solid currentColor;
  opacity:.28;
  animation:lpGateChev 1.2s ease-in-out infinite;
}
.lp-gate__chevrons span:nth-child(2){animation-delay:.12s;opacity:.5}
.lp-gate__chevrons span:nth-child(3){animation-delay:.24s;opacity:.85}
.lp-gate.is-done .lp-gate__track{
  border-color:#0d0d12;
  background:#0d0d12;
}
.lp-gate.is-done .lp-gate__fill{background:#0d0d12}
.lp-gate.is-done .lp-gate__thumb{
  background:#fff;
  color:#0d0d12;
  cursor:default;
}
.lp-gate.is-done .lp-gate__chevrons{display:none}
.lp-gate__ok{
  display:none;
  width:22px;
  height:22px;
}
.lp-gate.is-done .lp-gate__ok{display:block}
body.lp-gate-open{overflow:hidden}
@keyframes lpGateChev{
  0%,100%{transform:translateX(-2px);opacity:.25}
  50%{transform:translateX(2px);opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .lp-gate,
  .lp-gate__dialog,
  .lp-gate__label,
  .lp-gate__chevrons span{transition:none;animation:none}
}
