/* ==========================================================================
 * Wheel overlay (M2) – 8-slot "always wins" wheel
 * ========================================================================== */

.vp-wheel {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(3, 5, 10, .92);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  overflow-y: auto; overscroll-behavior: contain;
}
.vp-wheel[hidden] { display: none; }

.vp-wheel__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px var(--pad) 34px;
  text-align: center; position: relative;
}

.vp-wheel__close {
  position: absolute; top: 14px; right: var(--pad);
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  color: var(--dim); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

.vp-wheel__kicker {
  font-size: 10.5px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin: 12px 0 0;
}
.vp-wheel__title {
  font-size: 26px; line-height: 1.15; font-weight: 900;
  letter-spacing: -.8px; margin: 8px 0 6px;
}
.vp-wheel__title span { color: var(--gold); }
.vp-wheel__sub { color: var(--dim); font-size: 13px; margin: 0 0 18px; }
.vp-wheel__sub b { color: var(--txt-2); }

/* ---------- stage ---------- */
.vp-wheel__stage {
  position: relative; width: 288px; height: 288px;
  margin: 0 auto 20px;
}
.vp-wheel__ring {
  position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 0deg, #FFC53D, #FF2E93, #2EF2D0, #FFC53D);
  opacity: .9;
}
.vp-wheel__disc {
  position: absolute; inset: 0; border-radius: 50%;
  overflow: hidden; border: 7px solid #0B0F1A;
  box-shadow: inset 0 0 42px rgba(0, 0, 0, .65);
  transform: rotate(0deg);
  will-change: transform;
}
.vp-wheel__disc svg { display: block; width: 100%; height: 100%; }

.vp-wheel__needle {
  position: absolute; left: 50%; top: -15px; z-index: 3;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 21px solid var(--red);
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .7));
}

.vp-wheel__hub {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.1;
  font-size: 12.5px; font-weight: 900; letter-spacing: .3px;
  color: #3A2400; border: 3px solid #0B0F1A;
  background: linear-gradient(180deg, #FFF3D2, #FFC53D);
  box-shadow: 0 6px 20px rgba(255, 197, 61, .45);
  padding: 0 6px;
}

.vp-wheel__spin { width: 100%; }
.vp-wheel__spin[disabled] { filter: grayscale(.35) brightness(.8); cursor: default; }

.vp-wheel__legal {
  font-size: 10.5px; color: #5F6B85; line-height: 1.6;
  margin: 14px 0 0;
}
.vp-wheel__legal a { color: #7C88A3; text-decoration: underline; cursor: pointer; }

/* ---------- prize card ---------- */
.vp-prize {
  margin-top: 6px; text-align: left;
  border: 1px solid rgba(255, 197, 61, .46);
  background: linear-gradient(180deg, rgba(255, 197, 61, .14), rgba(255, 197, 61, .03));
  border-radius: var(--r-lg); padding: 16px;
  animation: vp-pop .32s ease-out;
}
.vp-prize[hidden] { display: none; }
@keyframes vp-pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.vp-prize__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vp-prize__ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px;
  background: rgba(255, 197, 61, .17);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.vp-prize__txt { display: block; min-width: 0; }
.vp-prize__label { display: block; font-size: 17.5px; font-weight: 900; color: var(--gold); line-height: 1.2; }
.vp-prize__desc { display: block; font-size: 12.5px; color: var(--dim); margin-top: 4px; line-height: 1.5; }
.vp-prize__code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 11px 13px;
  border: 1px dashed rgba(255, 197, 61, .55); border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .28);
}
.vp-prize__code span {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px; font-weight: 800; letter-spacing: 1px; color: #FFE7A8;
}
.vp-prize__copy {
  border: 0; border-radius: 8px; padding: 7px 11px;
  font-size: 11.5px; font-weight: 900;
  background: rgba(255, 197, 61, .2); color: var(--gold);
}
.vp-prize__copy.is-done { background: rgba(92, 255, 177, .18); color: var(--green); }

/* progress to next tier */
.vp-progress { margin-top: 14px; }
.vp-progress__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11.5px; color: var(--dim); margin-bottom: 6px;
}
.vp-progress__head b { color: var(--gold); font-size: 12.5px; }
.vp-progress__track {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .1);
}
.vp-progress__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #FFC53D, #FF8A3D);
  transition: width .5s ease;
}
.vp-progress__hint { font-size: 11.5px; color: var(--green); margin-top: 7px; font-weight: 700; }

.vp-prize__timer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 13px; padding-top: 12px;
  border-top: 1px dashed rgba(255, 197, 61, .3);
}
.vp-prize__timer span { font-size: 11.5px; color: var(--dim); }
.vp-prize__timer b {
  font-size: 19px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.vp-prize__timer b.is-low { color: var(--red); }

.vp-prize__cta {
  width: 100%; margin-top: 14px; border: 0; border-radius: 13px;
  padding: 15px; font-size: 16px; font-weight: 900;
  background: linear-gradient(180deg, #3BFFDC, var(--cy-deep)); color: #04211C;
}

/* ---------- rules sheet ---------- */
.vp-rules {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(4, 6, 11, .96);
  display: none; align-items: center; justify-content: center;
  padding: 22px;
}
.vp-rules.is-open { display: flex; }
.vp-rules__box {
  max-width: 380px; width: 100%; max-height: 80vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
}
.vp-rules__box h3 { font-size: 17px; margin: 0 0 12px; font-weight: 900; }
.vp-rules__box p,
.vp-rules__box li { font-size: 12px; color: var(--dim); line-height: 1.7; }
.vp-rules__box ul { padding-left: 18px; margin: 0 0 12px; }
.vp-rules__box button {
  width: 100%; margin-top: 6px; border: 0; border-radius: 11px;
  padding: 12px; font-size: 14px; font-weight: 900;
  background: var(--card-2); color: var(--txt); border: 1px solid var(--line);
}
