/* VMAX Spin the Wheel — site-wide invitation popup. Scoped under #vsw-pop so the theme and the Elementor kit stay out. */

#vsw-pop {
  --vsw-red: #e41e25;
  --vsw-red-dark: #b8141a;
  --vsw-display: Hanson, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --vsw-body: "RF Dewi", "Helvetica Neue", Arial, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--vsw-body);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

#vsw-pop[hidden] { display: none !important; }

#vsw-pop *,
#vsw-pop *::before,
#vsw-pop *::after { box-sizing: border-box; }

#vsw-pop :where(a, button, span, img, svg) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  font: inherit;
  color: inherit;
}

#vsw-pop .vsw-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  opacity: 0;
  transition: opacity .25s ease;
  cursor: pointer;
}

#vsw-pop .vsw-pop__box {
  position: relative;
  width: min(380px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #2c2c2c;
  border-radius: 18px;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(228, 30, 37, .28), rgba(228, 30, 37, 0) 70%),
    linear-gradient(180deg, #111 0%, #030303 100%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: opacity .25s ease, transform .25s ease;
}

#vsw-pop.is-open .vsw-pop__backdrop { opacity: 1; }
#vsw-pop.is-open .vsw-pop__box { opacity: 1; transform: none; }

#vsw-pop .vsw-pop__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease;
}

#vsw-pop .vsw-pop__close:hover { background: var(--vsw-red); }
#vsw-pop .vsw-pop__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

#vsw-pop .vsw-pop__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 24px 26px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

#vsw-pop .vsw-pop__link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 18px; }

#vsw-pop .vsw-pop__wheel {
  position: relative;
  display: block;
  width: min(230px, 62vw);
  aspect-ratio: 1 / 1;
  margin-bottom: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(228, 30, 37, .22), 0 18px 50px rgba(228, 30, 37, .3);
}

#vsw-pop .vsw-pop__rotor {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  animation: vsw-pop-spin 14s linear infinite;
}

#vsw-pop .vsw-pop__disc {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
}

#vsw-pop .vsw-pop__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25.25%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .55);
}

#vsw-pop .vsw-pop__pointer {
  position: absolute;
  left: 50%;
  top: -6%;
  width: 12%;
  height: auto;
  overflow: visible;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6));
}

#vsw-pop .vsw-pop__title {
  display: block;
  font-family: var(--vsw-display);
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
}

#vsw-pop .vsw-pop__text {
  display: block;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.5;
  color: #dcdcdc;
}

#vsw-pop .vsw-pop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--vsw-red);
  color: #fff;
  font-family: var(--vsw-display);
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(228, 30, 37, .35);
  transition: background-color .15s ease, transform .15s ease;
}

#vsw-pop .vsw-pop__link:hover .vsw-pop__btn { background: var(--vsw-red-dark); transform: translateY(-1px); }

@keyframes vsw-pop-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 380px) {
  #vsw-pop .vsw-pop__link { padding: 30px 18px 20px; }
  #vsw-pop .vsw-pop__title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  #vsw-pop .vsw-pop__rotor { animation: none; }
  #vsw-pop .vsw-pop__backdrop,
  #vsw-pop .vsw-pop__box { transition: none; }
}
