.esr-stw-topbar-item {
  display: inline-flex;
  align-items: center;
}

.esr-stw-topbar-btn {
  appearance: none;
  border: 1px solid rgba(255, 210, 63, .9);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--esr-pink, #ff3b93), var(--esr-purple, #7c3aed));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.1;
  padding: .35rem .75rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  box-shadow: 0 .35rem .9rem rgba(124, 58, 237, .22), 0 0 0 1px rgba(255, 210, 63, .16), 0 0 1.1rem rgba(255, 210, 63, .18);
}

.esr-stw-topbar-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 250deg, rgba(255, 210, 63, .25) 278deg, #fff7ad 296deg, var(--esr-yellow, #ffd23f) 314deg, transparent 342deg, transparent 360deg);
  animation: esr-stw-topbar-chase 2.8s linear infinite;
  pointer-events: none;
  z-index: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.esr-stw-topbar-btn > * {
  position: relative;
  z-index: 1;
}

.esr-stw-topbar-btn:hover,
.esr-stw-topbar-btn:focus {
  color: #fff;
  filter: brightness(1.05);
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
}

.esr-stw-modal-dialog {
  max-width: min(96vw, 1220px);
}

.esr-stw-modal__content {
  border: 0;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 1.75rem 5rem rgba(15, 23, 42, .34);
  background: #111827;
}

.esr-stw-modal__header {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 210, 63, .6), transparent 34%),
    linear-gradient(135deg, var(--esr-pink, #ff3b93), var(--esr-purple, #7c3aed));
  color: #fff;
  border-bottom: 0;
  position: relative;
  justify-content: center;
  text-align: center;
  padding: 1.1rem 3.4rem 1.05rem;
}

.esr-stw-modal__title-wrap {
  width: 100%;
}

.esr-stw-modal__title {
  color: #fff;
  font-size: clamp(1.8rem, 3.45vw, 3.25rem);
  font-weight: 1000;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-align: center;
  text-shadow: 0 .25rem .95rem rgba(88, 28, 135, .42);
}

.esr-stw-modal__header .btn-close {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .92;
}

.esr-stw-modal__body {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 63, .24), transparent 32%),
    radial-gradient(circle at 100% 20%, rgba(255, 59, 147, .22), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(124, 58, 237, .24), transparent 32%),
    linear-gradient(180deg, #fff7fd, #fff);
  padding: clamp(.85rem, 1.8vw, 1.5rem);
}

.esr-stw-game {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.esr-stw-wheel-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(.7rem, 1.5vw, 1.25rem);
}

.esr-stw-wheel-shell::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .98), rgba(255, 255, 255, .38) 50%, transparent 68%);
  filter: blur(18px);
}

.esr-stw-wheel-shell::after {
  display: none;
}

.esr-stw-wheel {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  border-radius: 999px;
}

.esr-stw-pointer {
  position: absolute;
  top: .15rem;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  color: var(--esr-yellow, #ffd23f);
  font-size: clamp(2.9rem, 5vw, 4.3rem);
  line-height: 1;
  text-shadow: 0 .3rem .65rem rgba(0, 0, 0, .32);
}

.esr-stw-wheel-centre {
  position: absolute;
  z-index: 5;
  width: clamp(5.6rem, 11vw, 8rem);
  height: clamp(5.6rem, 11vw, 8rem);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--esr-pink, #ff3b93);
  font-size: clamp(1.9rem, 4vw, 3rem);
  box-shadow: 0 .85rem 2.4rem rgba(15, 23, 42, .24), inset 0 0 0 .55rem rgba(255, 210, 63, .72);
}

.esr-stw-status {
  width: min(100%, 820px);
  border-radius: 1rem;
  border-width: 0;
  text-align: center;
  margin: 0;
}

.esr-stw-spin-wrap {
  width: min(100%, 820px);
}

.esr-stw-spin-btn {
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .28), transparent 30%),
    linear-gradient(135deg, var(--esr-pink, #ff3b93), var(--esr-purple, #7c3aed));
  color: #fff;
  font-weight: 950;
  letter-spacing: .01em;
  padding: 1rem 1.4rem;
  box-shadow: 0 .95rem 1.8rem rgba(124, 58, 237, .3);
}

.esr-stw-spin-btn:hover,
.esr-stw-spin-btn:focus {
  color: #fff;
  filter: brightness(1.06);
}

.esr-stw-spin-btn:disabled {
  background: #cbd5e1;
  box-shadow: none;
  color: #64748b;
}

.esr-stw-spin-btn.is-ready {
  animation: esr-stw-pulse 1.55s ease-in-out infinite;
}

.esr-stw-code-card {
  width: min(100%, 820px);
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .18);
  border-radius: 1.25rem;
  padding: 1.1rem;
  text-align: center;
  box-shadow: 0 .85rem 2rem rgba(15, 23, 42, .1);
}

.esr-stw-code-card.is-new-win {
  animation: esr-stw-win-pop .9s cubic-bezier(.18, .89, .32, 1.28);
}

.esr-stw-win-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--esr-yellow, #ffd23f), #fff7ad);
  color: #7c2d12;
  font-size: clamp(1.1rem, 2.25vw, 1.65rem);
  font-weight: 950;
  padding: .5rem 1.2rem;
  margin-bottom: .75rem;
  box-shadow: 0 .55rem 1.2rem rgba(250, 204, 21, .32);
}

.esr-stw-code-card__label {
  font-weight: 950;
  color: #1e293b;
  margin-bottom: .65rem;
}

.esr-stw-code-group {
  max-width: 560px;
  margin: 0 auto;
}

.esr-stw-code-input {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

.esr-stw-countdown {
  margin-top: .8rem;
  font-size: 1.1rem;
  font-weight: 950;
  color: var(--esr-pink, #ff3b93);
}

.esr-stw-play-again {
  margin-top: .35rem;
  color: #475569;
  font-weight: 700;
}

.esr-stw-auth-panel {
  width: min(100%, 760px);
  border: 1px solid rgba(124, 58, 237, .22);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .92);
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .1);
}

.esr-stw-auth-panel__head {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.esr-stw-auth-panel__head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 950;
  color: #1e293b;
}

.esr-stw-auth-panel__head p {
  margin: .15rem 0 0;
  color: #64748b;
}

.esr-stw-auth-panel__icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--esr-pink, #ff3b93), var(--esr-purple, #7c3aed));
  color: #fff;
  box-shadow: 0 .6rem 1.2rem rgba(124, 58, 237, .25);
}

.esr-stw-auth-content .sb-breadcrumb,
.esr-stw-auth-content header,
.esr-stw-auth-content footer,
.esr-stw-auth-content #column-left,
.esr-stw-auth-content #column-right {
  display: none !important;
}

.esr-stw-auth-content .container,
.esr-stw-auth-content .row {
  max-width: 100%;
}

.esr-stw-auth-content .esr-quick-auth-layout {
  margin: 0;
}

.esr-stw-auth-loading {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 800;
  padding: 1.5rem;
}

.esr-stw-auth-fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}

.esr-stw-modal.is-loading .esr-stw-spin-btn {
  pointer-events: none;
}

.esr-stw-modal.is-winning .esr-stw-wheel-centre {
  animation: esr-stw-centre-win .75s ease-in-out 3;
}

.esr-stw-celebration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  display: grid;
  place-items: center;
}

.esr-stw-celebration span {
  position: absolute;
  width: .65rem;
  height: .95rem;
  border-radius: .15rem;
  background: var(--esr-yellow, #ffd23f);
  animation: esr-stw-confetti 1.85s cubic-bezier(.15, .8, .35, 1) forwards;
  animation-delay: var(--d, 0s);
}

.esr-stw-celebration span:nth-child(3n) {
  background: var(--esr-pink, #ff3b93);
}

.esr-stw-celebration span:nth-child(3n + 1) {
  background: var(--esr-purple, #7c3aed);
}

.esr-stw-modal.is-auth-mode .esr-stw-modal-dialog {
  max-width: min(96vw, 760px);
}

.esr-stw-modal.is-auth-mode .esr-stw-modal__content {
  max-height: calc(100vh - 1rem);
}

.esr-stw-modal.is-auth-mode .esr-stw-modal__header {
  padding: .75rem 3rem .75rem 1rem;
}

.esr-stw-modal.is-auth-mode .esr-stw-modal__title {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.esr-stw-modal.is-auth-mode .esr-stw-modal__body {
  padding: .7rem;
}

.esr-stw-modal.is-auth-mode .esr-stw-game {
  gap: .55rem;
}

.esr-stw-modal.is-auth-mode .esr-stw-wheel-shell,
.esr-stw-modal.is-auth-mode .esr-stw-spin-wrap {
  display: none !important;
}

.esr-stw-modal.is-auth-mode .esr-stw-auth-panel {
  width: min(100%, 720px);
  padding: .75rem;
  border-radius: 1rem;
}

.esr-stw-modal.is-auth-mode .esr-stw-auth-panel__head {
  gap: .55rem;
  margin-bottom: .55rem;
}

.esr-stw-modal.is-auth-mode .esr-stw-auth-panel__icon {
  width: 2.45rem;
  height: 2.45rem;
}

.esr-stw-modal.is-auth-mode .esr-stw-auth-panel__head h3 {
  font-size: 1.08rem;
}

.esr-stw-modal.is-auth-mode .esr-stw-auth-panel__head p {
  font-size: .82rem;
  line-height: 1.22;
}

.esr-stw-auth-content .esr-quick-auth-modal__header,
.esr-stw-auth-content .esr-quick-auth-panel-head {
  display: none !important;
}

.esr-stw-auth-content .esr-quick-auth-modal__body {
  padding: 0 !important;
}

.esr-stw-auth-content .esr-quick-auth-tabs {
  gap: .35rem;
  margin-bottom: .55rem !important;
}

.esr-stw-auth-content .esr-quick-auth-tabs .nav-link,
.esr-stw-auth-content .nav-pills .nav-link {
  padding: .38rem .7rem;
  font-size: .9rem;
  font-weight: 900;
}

.esr-stw-auth-content .row {
  --bs-gutter-x: .6rem;
  --bs-gutter-y: .48rem;
}

.esr-stw-auth-content .form-label {
  margin-bottom: .14rem;
  font-size: .78rem;
  font-weight: 850;
}

.esr-stw-auth-content .form-control {
  min-height: 2.18rem;
  padding: .38rem .55rem;
}

.esr-stw-auth-content .mb-3 {
  margin-bottom: .45rem !important;
}

.esr-stw-auth-content .mt-3 {
  margin-top: .45rem !important;
}

.esr-stw-auth-content .mt-4 {
  margin-top: .6rem !important;
}

.esr-stw-auth-content .btn-lg {
  padding: .55rem .8rem;
  font-size: .98rem;
}

.esr-stw-auth-content .small,
.esr-stw-auth-content .form-text,
.esr-stw-auth-content .esr-quick-auth-terms {
  font-size: .72rem;
  line-height: 1.25;
}

.esr-stw-auth-content .form-check {
  min-height: auto;
}

.esr-stw-auth-content .esr-quick-auth-social-slot {
  margin-top: .55rem !important;
}

.esr-stw-auth-content .esr-quick-auth-social-slot p {
  display: none;
}

@keyframes esr-stw-topbar-chase {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes esr-stw-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 .95rem 1.8rem rgba(124, 58, 237, .3);
  }
  50% {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 1.2rem 2.15rem rgba(124, 58, 237, .38);
  }
}

@keyframes esr-stw-glow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes esr-stw-win-pop {
  0% { transform: scale(.72); opacity: .4; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes esr-stw-centre-win {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12) rotate(6deg); }
}

@keyframes esr-stw-confetti {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(.4);
  }
  10% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1);
  }
}

@media (max-width: 767.98px) {
  .esr-stw-modal-dialog {
    max-width: 98vw;
    margin-left: auto;
    margin-right: auto;
  }

  .esr-stw-modal__header {
    padding: .85rem 1rem;
  }

  .esr-stw-modal__body {
    padding: .85rem;
  }

  .esr-stw-wheel-shell {
    width: min(100%, 520px);
    padding: .65rem;
  }

  .esr-stw-spin-btn {
    font-size: 1rem;
    padding: .85rem 1rem;
  }

  .esr-stw-auth-panel__head {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .esr-stw-topbar-btn {
    font-size: .78rem;
    padding: .32rem .6rem;
  }

  .esr-stw-wheel-centre {
    width: 4.8rem;
    height: 4.8rem;
    font-size: 1.55rem;
  }

  .esr-stw-pointer {
    font-size: 2.7rem;
  }

  .esr-stw-code-group {
    display: block;
  }

  .esr-stw-code-group .btn {
    width: 100%;
    margin-top: .55rem;
    border-radius: .85rem !important;
  }

  .esr-stw-code-input {
    border-radius: .85rem !important;
  }
}
