.uds-wrap {
  --uds-orange: #ff8a14;
  --uds-orange-dark: #e05c00;
  max-width: 1100px;
  margin: 36px auto;
  color: #fff;
  font-family: Poppins, sans-serif;
  isolation: isolate;
  border-radius: 32px;
  border: 6px solid transparent !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to left, #f6c058 0%, #ffefae 58%, #ffd584 100%) border-box !important;
}

.uds-wrap button,
.uds-wrap input,
.uds-modal {
  font-family: Poppins, sans-serif;
}

.uds-wrap *,
.uds-wrap *::before,
.uds-wrap *::after {
  box-sizing: border-box;
}

.uds-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(22px, 3.6vw, 42px) clamp(22px, 3.6vw, 48px) 22px;
  background: #000;
  border: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.uds-card--custom-bg {
  background-color: #000;
}

.uds-card--custom-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.uds-decor {
  display: none;
}

.uds-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.uds-wheel-column,
.uds-content-column {
  min-width: 0;
}

.uds-wheel-column {
  text-align: center;
}

.uds-content-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.uds-logo {
  margin: 0;
}

.uds-logo__img {
  display: block;
  max-width: min(100%, 220px);
  max-height: 80px;
  width: auto;
  height: auto;
}

.uds-popup__logo {
  margin: 0 0 14px;
}

.uds-popup__logo-img {
  display: block;
  max-width: min(100%, 180px);
  max-height: 52px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.uds-brand,
.uds-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.uds-intro {
  margin: 0 0 22px;
  max-width: 420px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(15px, 1.7vw, 30px);
  line-height: 1.25;
  text-align: center;
  font-weight: bold;
  font-style: italic;
}

.uds-login-step {
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.uds-label.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.uds-username {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 22px !important;
  border-radius: 999px !important;
  border: 3px solid transparent !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to left, #5014be 0%, #d63a0a 39%, #ff6d1a 79%, #f15b06 100%) border-box !important;
  color: #3b2066 !important;
  font: inherit !important;
  font-size: clamp(15px, 1.7vw, 30px) !important;
  font-style: italic !important;
  outline: none;
  text-align: center;
}

.uds-username::placeholder {
  color: #4c1364 !important;
  font-style: italic;
  font-weight: bold;
  font-size: clamp(15px, 1.7vw, 30px);
  text-align: center;
}

.uds-user-note {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  font-style: italic;
}

.uds-continue {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.uds-continue {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5300, #ff992c);
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  box-shadow: inset 0 0 5px #ffffff;
  -webkit-box-shadow: inset 0 0 5px #ffffff;
  -moz-box-shadow: inset 0 0 5px #ffffff;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.uds-continue::after {
  content: '';
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-left: auto;
  background: url(img/button-arrow.png) center / contain no-repeat;
}

.uds-continue:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.uds-continue:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.uds-continue.uds-is-loading {
  position: relative;
}

.uds-continue.uds-is-loading::after {
  content: '';
  position: absolute;
  right: 52px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: uds-loader .7s linear infinite;
}

@keyframes uds-loader {
  to {
    transform: rotate(360deg);
  }
}

.uds-message {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.uds-message--error {
  color: #fecaca;
}

.uds-message--success {
  color: #bbf7d0;
}

.uds-message--info {
  color: rgba(255, 255, 255, .72);
}

.uds-message--winner {
  color: #fde68a;
}

.uds-footer {
  position: relative;
  z-index: 1;
  margin: 22px auto 4px;
  text-align: center;
  color: #fff;
}

.uds-footer p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  font-style: italic;
}

.uds-wheel-stage {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.uds-wheel-glow {
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 10, .55), transparent 58%);
  filter: blur(18px);
  pointer-events: none;
}

.uds-wheel-shell {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  padding: 16px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 210, 120, .55), transparent 28%),
    linear-gradient(180deg, #ffb347 0%, #ff8a14 42%, #e25c00 100%);
  box-shadow:
    0 0 18px rgba(255, 122, 0, .95),
    0 0 42px rgba(255, 110, 0, .55),
    inset 0 0 0 2px #ff9a1a,
    inset 0 0 10px rgba(255, 200, 90, .35);
}

.uds-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 4.35s cubic-bezier(.12, .64, .13, 1);
  will-change: transform;
  box-shadow:
    inset 0 0 0 3px #ff8a14,
    inset 0 0 10px rgba(255, 138, 20, .45);
}

.uds-wheel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .2), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, .1), transparent 42%, rgba(0, 0, 0, .16));
}

.uds-wheel-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.uds-spoke {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  width: 3px;
  height: 50%;
  margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc056, #ff8a14 70%, #ff8a14);
  box-shadow:
    0 0 4px #ff9a1a,
    0 0 9px rgba(255, 138, 20, .85);
  transform-origin: 50% 100%;
  pointer-events: none;
}

.uds-slice-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 50%;
  height: 28px;
  margin-top: -14px;
  pointer-events: none;
  transform-origin: left center;
}

.uds-slice-label span {
  position: absolute;
  left: 40%;
  right: 14%;
  top: 50%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
}

.uds-slice-label--tight span {
  letter-spacing: 0;
}

.uds-pointer {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: -1%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid #ff8a14;
  filter: drop-shadow(0 0 10px #ff8a14) drop-shadow(0 0 18px rgba(255, 122, 0, .7));
}

.uds-pointer::before {
  content: '';
  position: absolute;
  left: -11px;
  top: -25px;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid #c49a4a;
}

.uds-pointer--custom {
  width: auto;
  height: auto;
  border: 0;
  filter: drop-shadow(0 0 8px rgba(255, 140, 20, .55));
}

.uds-pointer--custom::before {
  display: none;
}

.uds-pointer__img {
  display: block;
  width: 42px;
  height: auto;
}

.uds-hub {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #3a2410, #140a00 70%);
  box-shadow:
    0 0 0 5px #ff8a14,
    0 0 18px #ff8a14,
    0 0 32px rgba(255, 122, 0, .55);
  pointer-events: none;
}

.uds-hub::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid #ff8a14;
  transform: translate(-50%, -50%) rotate(28deg);
  filter: drop-shadow(0 0 6px #ff8a14);
}

.uds-hub--custom {
  background: #dedad8;
  overflow: hidden;
}

.uds-hub--custom::after {
  display: none;
}

.uds-hub__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  margin-top: 10px;
  margin-right: 5px;
}

.uds-is-spinning .uds-wheel-glow {
  animation: uds-glow-pulse 1.8s ease-in-out infinite;
}

.uds-is-spinning .uds-pointer {
  animation: uds-pointer-tick .11s ease-in-out infinite;
}

.uds-ready-panel[hidden],
.uds-steps[hidden] {
  display: none !important;
}

@keyframes uds-glow-pulse {

  0%,
  100% {
    opacity: .75;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes uds-pointer-tick {

  0%,
  100% {
    transform: translateX(-50%) rotate(-5deg);
  }

  50% {
    transform: translateX(-50%) rotate(5deg);
  }
}

.uds-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: rgba(12, 8, 24, .64);
  -webkit-overflow-scrolling: touch;
}

.uds-modal[hidden],
.uds-popup[hidden] {
  display: none !important;
}

.uds-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 24, .64);
}

.uds-popup {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 42px 40px 32px;
  border-radius: 36px;
  border: 6px solid #e8b84a;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--uds-popup-bg, none);
  background-size: cover;
  background-position: top center;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 8, 40, .42);
}

.uds-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uds-popup__close:hover {
  background: #ff5300 !important;
}

.uds-popup__brand {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.uds-popup__logo {
  margin: 0 0 18px;
}

.uds-popup__title,
.uds-popup__text,
.uds-popup__greeting,
.uds-popup__lead {
  width: min(100%, 34rem);
  margin-left: auto;
  margin-right: auto;
}

.uds-popup__title {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.25;
}

.uds-popup__text {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, .94);
}

.uds-popup__greeting,
.uds-popup__lead {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
}

.uds-popup__prize {
  width: auto;
  margin: 8px auto 24px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}

.uds-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
}

.uds-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 5px #ffffff;
  -webkit-box-shadow: inset 0 0 5px #ffffff;
  -moz-box-shadow: inset 0 0 5px #ffffff;
}

.uds-popup__btn::after {
  content: '';
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: url(img/button-arrow.png) center / contain no-repeat;
}

.uds-popup__btn--violet {
  background: linear-gradient(90deg, #a74de9 0%, #9929ea 42%, #a78bfa 100%);
}

.uds-popup__btn--violet::after {
  background: url(img/button-arrow-violet.png) center / contain no-repeat;
}

.uds-popup__btn--gold {
  background: linear-gradient(90deg, #ff5300, #ff992c);
}

@media (max-width: 899px) {
  .uds-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .uds-content-column,
  .uds-intro,
  .uds-login-step {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .uds-logo__img {
    margin-left: auto;
    margin-right: auto;
  }

  .uds-wheel-stage {
    width: min(78vw, 420px);
  }
}

@media (max-width: 560px) {
  .uds-wrap {
    margin: 16px auto;
    border-radius: 23px;
  }

  .uds-card {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .uds-wheel-stage {
    width: min(92vw, 360px);
  }

  .uds-hub__img {
    margin-top: 5px;
  }

  .uds-hub {
    width: 72px;
    height: 72px;
    display: flex;
    justify-content: center;
    vertical-align: middle;
  }

  .uds-username {
    min-height: 52px;
  }

  .uds-continue {
    min-height: 50px;
    font-size: 16px;
  }

  .uds-popup {
    padding: 28px 18px 20px;
    border-radius: 22px;
  }

  .uds-popup__actions {
    flex-direction: column;
  }

  .uds-popup__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .uds-wheel,
  .uds-continue,
  .uds-wheel-glow,
  .uds-pointer,
  .uds-continue.uds-is-loading::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}