.discount-wheel-modal {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(224, 203, 123, .56);
  border-radius: 8px;
  background: #11110f;
  color: #ededed;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.discount-wheel-modal::backdrop {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
}

.discount-wheel-modal[open] {
  animation: discount-modal-in .28s ease-out both;
}

.discount-wheel-content {
  position: relative;
  padding: 29px 30px 25px;
  text-align: center;
}

.discount-wheel-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: #191917;
  color: #a7a297;
  cursor: pointer;
}

.discount-wheel-close:hover { color: #f3dc8e; }
.discount-wheel-close:focus-visible,
.discount-wheel-spin:focus-visible,
.discount-wheel-skip:focus-visible,
.discount-wheel-apply:focus-visible {
  outline: 2px solid #f3dc8e;
  outline-offset: 3px;
}

.discount-wheel-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.discount-wheel-eyebrow {
  padding-right: 34px;
  color: #e3bd69;
  font: 800 .64rem/1.2 'JetBrains Mono', monospace;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.discount-wheel-title {
  margin: 8px 34px 0 0;
  color: #f5f3ed;
  font: 800 2.55rem/.96 'Bebas Neue', 'JetBrains Mono', sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  text-wrap: balance;
}

.discount-wheel-copy {
  margin-top: 10px;
  color: #aaa69a;
  font-size: .86rem;
  line-height: 1.48;
  text-align: left;
}

.discount-wheel-stage {
  --wheel-size: 292px;
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin: 25px auto 19px;
}

.discount-wheel-disc {
  --wheel-rotation: 0deg;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 7px solid #d4aa3f;
  border-radius: 50%;
  outline: 4px solid #080808;
  background: conic-gradient(from -30deg, #f4eee4 0deg 60deg, #d5ad43 60deg 120deg, #ffad21 120deg 180deg, #bd4a10 180deg 240deg, #efe0bf 240deg 300deg, #927329 300deg 360deg);
  box-shadow: 0 0 0 2px #e8c45f, 0 18px 38px rgba(0, 0, 0, .46), 0 0 32px rgba(198, 173, 97, .2);
  transform: rotate(0deg);
  transition: transform 4.6s cubic-bezier(.12, .72, .12, 1);
}

.discount-wheel-disc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -30deg, transparent 0deg 59.2deg, rgba(9, 9, 9, .78) 59.2deg 60.8deg);
}

.discount-wheel-disc.is-spinning,
.discount-wheel-disc.is-settled {
  transform: rotate(var(--wheel-rotation));
}

.discount-wheel-disc.is-restored,
.discount-wheel-disc.is-restored .discount-wheel-hub {
  transition: none;
}

.discount-wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -10px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-top: 29px solid #f4cd55;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5));
  transform: translateX(-50%);
}

.discount-wheel-label {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  color: #17120a;
  transform: rotate(calc(var(--segment) * 60deg)) translateY(calc(var(--wheel-size) * -.34));
  transform-origin: 0 0;
}

.discount-wheel-label b {
  display: block;
  width: 52px;
  font: 800 1.28rem/1 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
  transform: translate(-50%, -50%) rotate(calc(var(--segment) * -60deg));
}

.discount-wheel-label:nth-child(4) b,
.discount-wheel-label:nth-child(6) b { color: #fff7e6; }

.discount-wheel-hub {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 8px solid #d6ad42;
  border-radius: 50%;
  background: #141412;
  color: #f3df96;
  font: 800 .72rem/1 'JetBrains Mono', monospace;
  letter-spacing: 0;
  box-shadow: 0 0 0 3px #111, 0 6px 18px rgba(0, 0, 0, .45);
  transform: translate(-50%, -50%) rotate(calc(var(--wheel-rotation) * -1));
  transition: transform 4.6s cubic-bezier(.12, .72, .12, 1);
}

.discount-wheel-status {
  min-height: 18px;
  color: #8f8b80;
  font-size: .71rem;
  line-height: 1.4;
}

.discount-wheel-spin,
.discount-wheel-apply {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 232, 150, .58);
  border-radius: 7px;
  background: linear-gradient(100deg, #bd731d, #ef9e24 48%, #e2bd4c);
  color: #0b0905;
  font: 800 .82rem/1.2 'IBM Plex Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(198, 135, 38, .2);
}

.discount-wheel-spin:hover,
.discount-wheel-apply:hover { filter: brightness(1.07); }
.discount-wheel-spin:disabled { cursor: wait; filter: saturate(.7); }

.discount-wheel-skip {
  margin-top: 11px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #817d74;
  font: 700 .73rem/1.2 'IBM Plex Sans', sans-serif;
  cursor: pointer;
}

.discount-wheel-result {
  margin-top: 17px;
  padding: 17px 15px;
  border-top: 1px solid rgba(224, 203, 123, .24);
  border-bottom: 1px solid rgba(224, 203, 123, .16);
  background: linear-gradient(90deg, transparent, rgba(198, 173, 97, .08), transparent);
}

.discount-wheel-result[hidden] { display: none; }
.discount-wheel-result p {
  color: #aaa69a;
  font: 800 .62rem/1.2 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.discount-wheel-result strong {
  display: block;
  margin-top: 4px;
  color: #e3bd69;
  font: 800 2.4rem/1 'Bebas Neue', 'JetBrains Mono', sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}
.discount-wheel-result span {
  display: block;
  margin-top: 7px;
  color: #d8d3c8;
  font-size: .8rem;
  line-height: 1.4;
}
.discount-wheel-apply { margin-top: 15px; }

.discount-wheel-modal.is-complete .discount-wheel-spin,
.discount-wheel-modal.is-complete .discount-wheel-skip,
.discount-wheel-modal.is-complete .discount-wheel-status { display: none; }

.discount-wheel-modal.is-complete .discount-wheel-copy { display: none; }

.discount-wheel-modal.is-complete .discount-wheel-stage {
  --wheel-size: 238px;
  margin-top: 14px;
  margin-bottom: 7px;
}

.discount-wheel-modal.is-complete .discount-wheel-result {
  margin-top: 10px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.discount-wheel-terms {
  margin-top: 13px;
  color: #6f6b63;
  font-size: .64rem;
  line-height: 1.42;
}

.pricing-wheel-discount {
  display: grid;
  gap: 4px;
  margin-top: 15px;
  padding: 12px 13px;
  border-top: 1px solid rgba(224, 203, 123, .2);
  border-bottom: 1px solid rgba(224, 203, 123, .12);
  border-left: 3px solid #c6ad61;
  background: linear-gradient(90deg, rgba(198, 173, 97, .1), transparent);
}

.pricing-wheel-discount strong {
  color: #e3bd69;
  font: 800 .69rem/1.25 'JetBrains Mono', monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pricing-wheel-discount span {
  color: #d7d1c3;
  font-size: .76rem;
  line-height: 1.4;
}

@keyframes discount-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-height: 760px) and (min-width: 521px) {
  .discount-wheel-content { padding: 23px 28px 18px; }
  .discount-wheel-title { font-size: 2.25rem; }
  .discount-wheel-copy { margin-top: 7px; font-size: .82rem; }
  .discount-wheel-stage { --wheel-size: 270px; margin-top: 18px; margin-bottom: 13px; }
  .discount-wheel-spin,
  .discount-wheel-apply { min-height: 48px; }
  .discount-wheel-terms { margin-top: 9px; }
}

@media (max-width: 520px) {
  .discount-wheel-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .discount-wheel-content { padding: 24px 18px 20px; }
  .discount-wheel-title { max-width: 310px; margin-right: 24px; font-size: 2.15rem; }
  .discount-wheel-copy { max-width: 330px; font-size: .8rem; }
  .discount-wheel-stage { --wheel-size: min(264px, 72vw); margin-top: 22px; }
  .discount-wheel-label b { width: 46px; font-size: 1.02rem; }
  .discount-wheel-hub { width: 50px; height: 50px; border-width: 7px; }
  .discount-wheel-pointer { top: -8px; border-right-width: 13px; border-left-width: 13px; border-top-width: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .discount-wheel-modal[open] { animation: none; }
  .discount-wheel-disc,
  .discount-wheel-hub { transition-duration: .01ms; }
}
