body.ls-spin-modal-open{
  overflow: hidden;
}

/* Spin Wheel Modal (LS) */
.ls-spin{
  --ls-wheel-size: 420px;
}

.ls-spin__trigger-wrap{
  text-align: center;
}

.ls-spin__open{
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  background: #1E3A8A;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.16);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ls-spin__open:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15,23,42,.2);
}

.ls-spin__open:active{
  transform: translateY(0);
}

.ls-spin__modal[hidden]{
  display: none !important;
}

.ls-spin__modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 24px;
  opacity: 0;
  transition: opacity .22s ease;
}

.ls-spin__modal.is-open{
  opacity: 1;
}

.ls-spin__overlay{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.ls-spin__dialog{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.28);
  transform: translateY(16px) scale(0.985);
  transition: transform .22s ease;
}

.ls-spin__modal.is-open .ls-spin__dialog{
  transform: translateY(0) scale(1);
}

.ls-spin__dialog-inner{
  padding: 28px 28px 32px;
}

.ls-spin__close{
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,.06);
  color: #0F172A;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ls-spin__title{
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-align: center;
}

.ls-spin__description{
  margin: 0 auto 18px;
  max-width: 640px;
  text-align: center;
  line-height: 1.6;
  opacity: .86;
}

.ls-spin__description > *:last-child{
  margin-bottom: 0;
}

.ls-spin__wheel-area{
  margin-top: 8px;
}

.ls-spin__wheel-shell{
  position: relative;
  width: min(var(--ls-wheel-size), 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.ls-spin__wheel-rotor{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 5.5s cubic-bezier(.12,.8,.18,1);
  will-change: transform;
}

.ls-spin__wheel-face{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#1D4ED8 0deg 60deg, #0F766E 60deg 120deg, #F59E0B 120deg 180deg, #DC2626 180deg 240deg, #7C3AED 240deg 300deg, #0891B2 300deg 360deg);
  box-shadow:
    inset 0 0 0 10px #fff,
    inset 0 0 0 12px rgba(15,23,42,.12),
    0 20px 50px rgba(15,23,42,.18);
}

.ls-spin__wheel-labels{
  position: absolute;
  inset: 0;
}

.ls-spin__wheel-label{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  transform-origin: center center;
  text-align: center;
  pointer-events: none;
}

.ls-spin__wheel-label span{
  display: block;
  font-size: clamp(12px, 1vw + 8px, 15px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 1px 1px rgba(255,255,255,.16);
}

.ls-spin__pointer{
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 24px;
  background: #0F172A;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 4;
  filter: drop-shadow(0 8px 12px rgba(15,23,42,.16));
}

.ls-spin__spin-btn{
  appearance: none;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: clamp(84px, 20%, 104px);
  height: clamp(84px, 20%, 104px);
  border-radius: 50%;
  border: 6px solid #fff;
  background: #0F172A;
  color: #fff;
  box-shadow: 0 16px 34px rgba(15,23,42,.22);
  cursor: pointer;
  font: inherit;
  font-size: clamp(13px, 1vw + 8px, 16px);
  font-weight: 800;
  letter-spacing: .08em;
  z-index: 5;
}

.ls-spin__spin-btn:disabled{
  cursor: not-allowed;
  opacity: .72;
}

.ls-spin__result{
  margin-top: 18px;
  min-height: 1.6em;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #0F172A;
}

@media (max-width: 767px){
  .ls-spin__dialog-inner{
    padding: 24px 18px 24px;
  }

  .ls-spin__title{
    font-size: 24px;
    padding-right: 26px;
  }

  .ls-spin__wheel-label{
    width: 38%;
  }

  .ls-spin__result{
    font-size: 16px;
  }
}


.ls-spin__login-note{
  margin: 0 0 12px;
  font-size: 14px;
  opacity: .8;
}

.ls-spin__open.is-disabled,
.ls-spin__open[disabled]{
  opacity: .55;
  cursor: not-allowed;
}
