.ec-spin {
  --ec-spin-orange: #ff5b20;
  --ec-spin-orange-light: #ff7441;
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  visibility: hidden;
  opacity: 0;
  transition: visibility .28s, opacity .28s ease;
}

.ec-spin *,
.ec-spin *::before,
.ec-spin *::after { box-sizing: border-box; }

.ec-spin button,
.ec-spin a { font: inherit; }

.ec-spin.is-open {
  visibility: visible;
  opacity: 1;
}

.ec-spin__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .84);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.ec-spin__modal {
  position: relative;
  width: min(470px, 100%);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px 26px 22px;
  border: 1px solid rgba(255, 116, 65, .2);
  border-radius: 20px;
  color: #fff;
  color-scheme: dark;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 91, 32, .105), transparent 36%),
    linear-gradient(160deg, #1d1a18, #121110 68%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .7), inset 0 1px rgba(255,255,255,.045);
  transform: translateY(18px) scale(.97);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: thin;
  scrollbar-color: #4a423d transparent;
}

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

.ec-spin__close {
  position: absolute;
  z-index: 10;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #eee;
  background: rgba(255,255,255,.055);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.ec-spin__close:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  transform: rotate(5deg);
}

.ec-spin__header { text-align: center; }

.ec-spin__header h2 {
  margin: 0;
  color: var(--ec-spin-orange);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.ec-spin__header p {
  margin: 9px 0 14px;
  color: #bbb6b3;
  font-size: 14px;
  line-height: 1.3;
}

.ec-spin__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-spin__legend li {
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  color: #d4cfcc;
  background: rgba(255,255,255,.018);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.ec-spin__legend li:nth-child(4) { grid-column: 1 / 2; }

.ec-spin__legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--ec-spin-orange);
  box-shadow: 0 0 7px rgba(255,91,32,.8);
}

.ec-spin__stage {
  position: relative;
  width: 244px;
  aspect-ratio: 1;
  margin: 14px auto 6px;
  display: grid;
  place-items: center;
}

.ec-spin__halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 83, 24, .3), rgba(255, 83, 24, .05) 44%, transparent 68%);
  filter: blur(9px);
}

.ec-spin__pointer {
  position: absolute;
  z-index: 8;
  top: -1px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--ec-spin-orange);
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 8px rgba(255, 91, 32, .6));
}

.ec-spin__rim {
  position: relative;
  width: 214px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid #414445;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 4px #111, 0 0 0 7px #292b2c, 0 7px 22px rgba(0,0,0,.62), 0 0 30px rgba(255,91,32,.18);
}

.ec-spin__disc {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: conic-gradient(
    from -45deg,
    #ff6327 0deg 90deg,
    #292522 90deg 180deg,
    #ff6327 180deg 270deg,
    #292522 270deg 360deg
  );
  will-change: transform;
}

.ec-spin__disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 54%, rgba(255,255,255,.045) 55%, transparent 58%);
  pointer-events: none;
}

.ec-spin__labels {
  position: absolute;
  inset: 5px;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.ec-spin__label {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 34px;
  transform: translate(-50%, -50%);
}

.ec-spin__label b {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  will-change: transform;
}

.ec-spin__label--0 { left: 50%; top: 20%; }
.ec-spin__label--1 { left: 80%; top: 50%; }
.ec-spin__label--2 { left: 50%; top: 80%; }
.ec-spin__label--3 { left: 20%; top: 50%; }

.ec-spin__hub {
  position: relative;
  z-index: 6;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid #5a3326;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #3a332f, #131312 65%);
  box-shadow: 0 6px 12px rgba(0,0,0,.45), 0 0 16px rgba(255,91,32,.28);
}

.ec-spin__hub i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ec-spin-orange);
  box-shadow: 0 0 13px rgba(255,91,32,.75);
}

.ec-spin__attempts {
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.ec-spin__action + .ec-spin__attempts { margin-top: 10px; }
.ec-spin__attempts.is-hidden { display: none; }

.ec-spin__attempts i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #524943;
  transition: background .25s, box-shadow .25s;
}

.ec-spin__attempts i.is-used {
  background: var(--ec-spin-orange);
  box-shadow: 0 0 7px rgba(255,91,32,.75);
}

.ec-spin__result {
  display: none;
  text-align: center;
  animation: ec-spin-result-in .35s ease both;
}

.ec-spin__result.is-visible { display: block; }

.ec-spin__result h3 {
  margin: 2px 0 10px;
  color: var(--ec-spin-orange);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.ec-spin__result p {
  margin: 0 0 12px;
  color: #c8c3c0;
  font-size: 13px;
  line-height: 1.35;
}

.ec-spin__code {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 7px 6px 15px;
  border: 1px dashed rgba(255,91,32,.45);
  border-radius: 8px;
  background: rgba(255,91,32,.04);
  text-align: left;
}

.ec-spin__code code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ec-spin-orange-light);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.ec-spin__code button {
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--ec-spin-orange);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ec-spin__error {
  min-height: 0;
  margin: 0;
  color: #ff9270;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

.ec-spin__error:not(:empty) { margin: 8px 0; }

.ec-spin__action,
.ec-spin__checkout {
  width: min(255px, 100%);
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3px auto 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff541d, #ff7138);
  box-shadow: 0 11px 30px rgba(255, 82, 24, .26);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.ec-spin__action:hover,
.ec-spin__checkout:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(255, 82, 24, .35);
}

.ec-spin__action:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.ec-spin__checkout { display: none; margin-top: 10px; }
.ec-spin__checkout.is-visible { display: flex; }

.ec-spin__footnote {
  margin: 16px 0 0;
  color: #6f6a67;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
}

body.ec-spin-lock { overflow: hidden !important; }

.ec-promo-float[hidden] { display: none !important; }

.ec-promo-float {
  position: fixed;
  right: 112px;
  bottom: 28px;
  z-index: 10000;
  width: min(286px, calc(100vw - 150px));
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 112, 60, .9);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 126, 77, .22), transparent 38%),
    linear-gradient(135deg, rgba(255, 91, 32, .2), rgba(13, 12, 11, .98) 58%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(255, 91, 32, .08),
    0 0 34px rgba(255, 91, 32, .2),
    inset 0 1px rgba(255, 255, 255, .07);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  animation: ec-promo-attention 3.2s ease-in-out infinite;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ec-promo-float::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  z-index: -1;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: skewX(-18deg);
  animation: ec-promo-shine 4.2s ease-in-out infinite;
}

.ec-promo-float:hover {
  border-color: #ff8b60;
  transform: translateY(-4px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .52),
    0 0 42px rgba(255, 91, 32, .3);
}

.ec-promo-float:active { transform: translateY(-1px) scale(.985); }

.ec-promo-float:focus-visible {
  outline: 2px solid #ff8a5f;
  outline-offset: 3px;
}

.ec-promo-float.is-copied {
  border-color: #58df8e;
  box-shadow: 0 0 0 3px rgba(62, 219, 126, .13), 0 16px 44px rgba(0, 0, 0, .48);
  animation: none;
}

.ec-promo-float__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ff7644, #ff4f18) !important;
  box-shadow: 0 7px 18px rgba(255, 79, 18, .3), inset 0 1px rgba(255,255,255,.25);
  line-height: 1;
}

.ec-promo-float__mark svg {
  width: 19px;
  height: 19px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ec-promo-float__content {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.ec-promo-float__topline,
.ec-promo-float__bottomline {
  min-width: 0;
  display: flex;
  align-items: center;
}

.ec-promo-float__topline {
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

.ec-promo-float__discount {
  flex: 0 0 auto;
  padding: 2px 8px 2px;
  border-radius: 999px;
  color: #fff;
  background: #ff5b20;
  box-shadow: 0 4px 10px rgba(255,91,32,.22);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.ec-promo-float__bottomline {
  gap: 9px;
}

.ec-promo-float__code {
  flex: 0 0 auto;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  white-space: nowrap;
}

.ec-promo-float__copy {
  min-width: 0;
  overflow: hidden;
  color: #ffad90;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-promo-float.is-copied .ec-promo-float__copy { color: #7bf0aa; }

 .ec-spin-ticket-price {
  position: absolute;
  left: 50%;
  bottom: 98px;
  z-index: 6;
  width: calc(100% - 46px);
  min-height: 54px;
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 8px 14px 9px;
  border-radius: 14px;
  color: #fff;
  background: rgba(17,17,17,.94);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
}

.ec-spin-ticket-price--online,
.ec-spin-ticket-price--standart {
  color: #fff;
}

.ec-spin-ticket-price--vip {
  color: #ff5b01;
  background: rgba(255,255,255,.97);
  border-color: rgba(255,255,255,.96);
  box-shadow: 0 14px 32px rgba(255,91,1,.18);
}

.ec-spin-ticket-price__old {
  color: rgba(255,255,255,.52);
  font-size: clamp(11px, .84vw, 14px);
  font-weight: 700;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.ec-spin-ticket-price--vip .ec-spin-ticket-price__old {
  color: rgba(255,91,1,.55);
}

.ec-spin-ticket-price__line {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.ec-spin-ticket-price__line strong {
  font-size: clamp(18px, 1.48vw, 28px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.035em;
}

.ec-spin-ticket-price__line em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: #ff5b20;
  box-shadow: 0 5px 14px rgba(255,91,32,.22);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.ec-spin-ticket-price--vip .ec-spin-ticket-price__line em {
  color: #fff;
  background: #ff5b01;
  box-shadow: none;
}

.ec-spin-ticket-price__promo {
  color: #ff895e;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  white-space: nowrap;
}

.ec-spin-ticket-price--vip .ec-spin-ticket-price__promo {
  color: rgba(255,91,1,.84);
}

.ec-spin-ticket-price.is-pop { animation: ec-ticket-discount-pop .9s cubic-bezier(.2,.85,.25,1) both; }

@keyframes ec-ticket-discount-pop {
  0% { opacity: 0; transform: translateY(14px) scale(.88); filter: blur(5px); }
  45% { opacity: 1; transform: translateY(-3px) scale(1.06); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes ec-promo-attention {
  0%, 70%, 100% { box-shadow: 0 16px 44px rgba(0,0,0,.48), 0 0 34px rgba(255,91,32,.18), inset 0 1px rgba(255,255,255,.07); }
  82% { box-shadow: 0 16px 44px rgba(0,0,0,.48), 0 0 48px rgba(255,91,32,.36), inset 0 1px rgba(255,255,255,.07); }
}

@keyframes ec-promo-shine {
  0%, 72% { left: -45%; opacity: 0; }
  78% { opacity: 1; }
  94%, 100% { left: 120%; opacity: 0; }
}

@keyframes ec-spin-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .ec-spin { padding: 8px; align-items: center; }

  .ec-spin__modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 24px 16px 17px;
    border-radius: 17px;
  }

  .ec-spin__header h2 { font-size: 28px; }
  .ec-spin__header p { font-size: 13px; }
  .ec-spin__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-spin__legend li:nth-child(4) { grid-column: auto; }
  .ec-spin__legend li { text-align: center; font-size: 9px; }
  .ec-spin__stage { width: 222px; margin-top: 8px; }
  .ec-spin__rim { width: 196px; }
  .ec-spin__label b { font-size: 17px; }
  .ec-spin__result h3 { font-size: 20px; }
  .ec-spin__result p { font-size: 12px; }

  .ec-promo-float {
    right: 18px;
    bottom: 128px;
    width: min(286px, calc(100vw - 36px));
    min-height: 66px;
  }

  .ec-promo-float__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .ec-promo-float__mark svg {
    width: 18px;
    height: 18px;
  }

  .ec-promo-float__code { font-size: 16px; }

  .ec-spin-ticket-price {
    left: 50%;
    width: calc(100% - 36px);
    bottom: 94px;
    min-height: 52px;
    padding: 7px 12px 8px;
  }

  .ec-spin-ticket-price--vip {
    bottom: 96px;
  }

  .ec-spin-ticket-price__line strong { font-size: 22px; }
}

@media (max-height: 730px) {
  .ec-spin__modal { padding-top: 18px; padding-bottom: 13px; }
  .ec-spin__stage { width: 202px; margin-top: 5px; }
  .ec-spin__rim { width: 180px; }
  .ec-spin__label b { font-size: 15px; }
  .ec-spin__header p { margin-bottom: 8px; }
  .ec-spin__legend li { padding-top: 5px; padding-bottom: 5px; }
  .ec-spin__footnote { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-spin *,
  .ec-spin *::before,
  .ec-spin *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .ec-promo-float { transition: none !important; animation: none !important; }
  .ec-promo-float::after,
  .ec-spin-ticket-price { animation: none !important; }
}

/* Keep ticket CTA above the visual discount preview. */
.ec-tickets__card.has-ec-spin-discount .ec-tickets__btn {
  z-index: 7;
}

/* v6: ticket cards must never show wheel discount overlays. */
.ec-spin-ticket-price { display: none !important; }

/* VIP ticket CTA is always white. */
.ec-tickets__card--vip .ec-tickets__btn,
.ec-tickets__card--vip .ec-tickets__btn--light {
  background: #fff !important;
  color: #ff5a14 !important;
  box-shadow: 0 16px 42px rgba(255,255,255,.16) !important;
}

.ec-tickets__card--vip .ec-tickets__btn:hover,
.ec-tickets__card--vip .ec-tickets__btn--light:hover {
  background: #fff !important;
  color: #ff5a14 !important;
  box-shadow: 0 18px 48px rgba(255,255,255,.22) !important;
}

#ecSpinResultNote {
  display: none !important;
}
