/* Year-end sale — homepage banner + spin wheel (Manrope / Sunpal fonts only) */
.sunpal-yearend {
  --ye-bg: #0b100d;
  --ye-panel: #121a15;
  --ye-panel-2: #18231c;
  --ye-lime: #c6ff00;
  --ye-lime-dim: rgba(198, 255, 0, 0.14);
  --ye-text: #f3f6f1;
  --ye-mute: rgba(243, 246, 241, 0.68);
  --ye-line: rgba(198, 255, 0, 0.22);
  --ye-max: 1120px;
  --ye-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  margin: 0;
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.1rem, 4vw, 2.5rem);
  color: var(--ye-text);
  font-family: var(--ye-font);
  background:
    radial-gradient(70% 90% at 88% 18%, rgba(198, 255, 0, 0.12), transparent 58%),
    radial-gradient(55% 70% at 8% 90%, rgba(22, 139, 61, 0.18), transparent 60%),
    linear-gradient(165deg, #0d1410 0%, #141c17 42%, #0a0e0b 100%);
  overflow: hidden;
  isolation: isolate;
}

.sunpal-yearend,
.sunpal-yearend *,
.sunpal-yearend input,
.sunpal-yearend button,
.sunpal-yearend a {
  font-family: var(--ye-font) !important;
}

.sunpal-yearend *,
.sunpal-yearend *::before,
.sunpal-yearend *::after {
  text-decoration: none !important;
}

.sunpal-yearend::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--ye-lime), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.sunpal-yearend__inner {
  position: relative;
  z-index: 1;
  max-width: var(--ye-max);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.sunpal-yearend__banner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.sunpal-yearend__banner--wheel-front {
  grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.15fr);
  align-items: center;
}

.sunpal-yearend__banner--wheel-front .sunpal-yearend__wheel-hero {
  position: relative;
  z-index: 2;
}

.sunpal-yearend__banner--wheel-front .sunpal-yearend__copy {
  position: relative;
  z-index: 1;
}

.sunpal-yearend__wheel-hero {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.42));
  transition: transform 0.2s ease;
}

.sunpal-yearend__wheel-hero:hover {
  transform: scale(1.03);
}

.sunpal-yearend__wheel-stage--hero {
  width: min(100%, 21rem);
  margin: 0;
}

.sunpal-yearend__wheel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 255, 0, 0.45);
  background: linear-gradient(180deg, rgba(198, 255, 0, 0.18), rgba(198, 255, 0, 0.08));
  color: #f4ffb0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.sunpal-yearend__banner--wheel-front .sunpal-yearend__copy > p {
  margin-bottom: 1rem;
}

.sunpal-yearend__banner--wheel-front .sunpal-yearend__timer {
  margin-bottom: 1rem;
}

.sunpal-yearend__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--ye-line);
  background: var(--ye-lime-dim);
  color: var(--ye-lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}

.sunpal-yearend__eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ye-lime);
  box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55);
  animation: sunpal-ye-pulse 1.8s ease-out infinite;
}

.sunpal-yearend__copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 750;
}

.sunpal-yearend__copy > p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  color: var(--ye-mute);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.55;
}

.sunpal-yearend__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.sunpal-yearend__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 3px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sunpal-yearend__btn:hover {
  transform: translateY(-1px);
}

.sunpal-yearend__btn--primary {
  background: var(--ye-lime);
  color: #0b100d;
  border-color: var(--ye-lime);
}

.sunpal-yearend__btn--primary:hover {
  background: #d6ff4d;
}

.sunpal-yearend__btn--primary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.sunpal-yearend__btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.sunpal-yearend__btn--ghost:hover {
  border-color: var(--ye-lime);
  color: var(--ye-lime);
}

.sunpal-yearend__aside {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.sunpal-yearend__wheel-teaser {
  position: relative;
  width: min(100%, 13.5rem);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.sunpal-yearend__wheel-stage--teaser {
  width: 100%;
  margin: 0;
}

.sunpal-yearend__wheel--idle {
  animation: sunpal-ye-idle 14s linear infinite;
  /* Face paint before Alpine sets inline conic-gradient (6 wedges, #0 under pointer). */
  background: conic-gradient(
    from -30deg,
    #d4ff2e 0% 16.666%,
    #141c18 16.666% 33.333%,
    #0c1c14 33.333% 50%,
    #d4ff2e 50% 66.666%,
    #1a2820 66.666% 83.333%,
    #141c18 83.333% 100%
  );
}

.sunpal-yearend__timer {
  width: 100%;
  border: 1px solid var(--ye-line);
  background: linear-gradient(180deg, rgba(24, 35, 28, 0.95), rgba(12, 18, 14, 0.95));
  padding: 0.9rem 1rem 1rem;
  border-radius: 4px;
}

.sunpal-yearend__timer > p {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ye-mute);
  text-align: center;
}

.sunpal-yearend__timer ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.sunpal-yearend__timer li {
  text-align: center;
  padding: 0.35rem 0.15rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.22);
}

.sunpal-yearend__timer strong {
  display: block;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  color: var(--ye-lime);
  line-height: 1.1;
  font-weight: 750;
}

.sunpal-yearend__timer span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 246, 241, 0.5);
}

/* Public YEAREND code cards removed — prize codes only after a winning spin. */
.sunpal-yearend__prize code {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(198, 255, 0, 0.45);
  border-radius: 2px;
  color: var(--ye-lime);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.28);
}

.sunpal-yearend__copy {
  margin-top: auto;
  align-self: stretch;
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sunpal-yearend__copy:hover,
.sunpal-yearend__copy.is-copied {
  border-color: var(--ye-lime);
  color: var(--ye-lime);
  background: var(--ye-lime-dim);
}

.sunpal-yearend__modal[x-cloak] { display: none !important; }

.sunpal-yearend__modal {
  --ye-bg: #0b100d;
  --ye-panel: #121a15;
  --ye-panel-2: #18231c;
  --ye-lime: #c6ff00;
  --ye-lime-dim: rgba(198, 255, 0, 0.14);
  --ye-text: #f3f6f1;
  --ye-mute: rgba(243, 246, 241, 0.68);
  --ye-line: rgba(198, 255, 0, 0.22);
  --ye-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.85rem max(0.85rem, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  font-family: var(--ye-font);
  color: var(--ye-text);
}

.sunpal-yearend__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 7, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}

.sunpal-yearend__modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(92dvh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(198, 255, 0, 0.12), transparent 55%),
    var(--ye-panel-2);
  border: 1px solid var(--ye-line);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.4rem;
  color: var(--ye-text);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(198, 255, 0, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

body.sunpal-yearend-modal-open {
  overflow: hidden;
}

/* Hero slider dots/arrows use their own stacking context and painted over the
   modal while it lived inside .sunpal-yearend { isolation: isolate }. Hide them
   (and other chrome) whenever the spin modal is open. */
body.sunpal-yearend-modal-open .sunpal-header,
body.sunpal-yearend-modal-open .sunpal-bottom-nav,
body.sunpal-yearend-modal-open .sunpal-chat-launcher,
body.sunpal-yearend-modal-open .sunpal-ask-fab,
body.sunpal-yearend-modal-open .sunpal-hero-dots,
body.sunpal-yearend-modal-open .sunpal-hero-arrow {
  visibility: hidden !important;
  pointer-events: none !important;
}

.sunpal-yearend__modal,
.sunpal-yearend__modal *,
.sunpal-yearend__modal input,
.sunpal-yearend__modal button,
.sunpal-yearend__modal a {
  font-family: var(--ye-font) !important;
}

.sunpal-yearend__modal-panel.is-won {
  border-color: rgba(198, 255, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(198, 255, 0, 0.2),
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(198, 255, 0, 0.12);
}

.sunpal-yearend__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.sunpal-yearend__modal-head {
  text-align: center;
  margin-bottom: 0.85rem;
  padding: 0 1.5rem;
}

.sunpal-yearend__modal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ye-lime);
}

.sunpal-yearend__modal-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.sunpal-yearend__modal-head > p {
  margin: 0;
  color: var(--ye-mute);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sunpal-yearend__wheel-stage {
  position: relative;
  width: min(100%, 18.5rem);
  aspect-ratio: 1;
  margin: 0.35rem auto 1.2rem;
}

.sunpal-yearend__wheel-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.55rem;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62), transparent 72%);
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}

.sunpal-yearend__wheel-stand {
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 0.15rem;
  height: 0.7rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(198, 255, 0, 0.35), rgba(40, 55, 20, 0.85));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 0;
  pointer-events: none;
}

.sunpal-yearend__rim {
  position: absolute;
  inset: 0.2rem;
  z-index: 1;
  border-radius: 50%;
  padding: 0.95rem;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 248, 210, 0.5), transparent 26%),
    radial-gradient(circle at 74% 82%, rgba(0, 0, 0, 0.5), transparent 42%),
    repeating-conic-gradient(from 0deg, #c9a227 0deg 4deg, #f5e6a3 4deg 8deg, #8a7018 8deg 12deg, #e8d48a 12deg 16deg),
    conic-gradient(from 0deg, #a8841c, #f3e7b0, #6e5814, #e8d48a, #c9a227, #fff1b8, #8a7018, #e8d48a, #a8841c);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(15, 22, 12, 0.85),
    inset 0 0 0 2px rgba(255, 240, 180, 0.35),
    inset 0 0 0 7px rgba(28, 22, 8, 0.55),
    inset 0 0 22px rgba(0, 0, 0, 0.28);
}

.sunpal-yearend__rim-bezel {
  position: absolute;
  inset: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

.sunpal-yearend__lights {
  position: absolute;
  inset: 0.08rem;
  z-index: 4;
  pointer-events: none;
}

.sunpal-yearend__lights i {
  --l: 0;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.55rem;
  height: 100%;
  transform: rotate(calc(var(--l) * 30deg));
}

.sunpal-yearend__lights i::before {
  content: "";
  position: absolute;
  top: 0.02rem;
  left: 50%;
  width: 0.58rem;
  height: 0.58rem;
  margin-left: -0.29rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fffef0, #ffe566 40%, #d4a000 100%);
  box-shadow:
    0 0 0 2px rgba(20, 16, 0, 0.5),
    0 0 10px rgba(255, 220, 80, 0.75),
    0 0 18px rgba(198, 255, 0, 0.35);
  animation: sunpal-ye-bulb 1.45s ease-in-out infinite;
  animation-delay: calc(var(--l) * 0.11s);
}

.sunpal-yearend__pegs {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.sunpal-yearend__pegs i {
  --p: 0;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.34rem;
  height: 100%;
  background: transparent;
  transform: rotate(calc(var(--p) * 15deg));
}

.sunpal-yearend__pegs i::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 50%;
  width: 0.38rem;
  height: 0.62rem;
  margin-left: -0.19rem;
  border-radius: 0.19rem;
  background:
    linear-gradient(180deg, #fff1b8 0%, #e0c25a 38%, #8a7018 100%);
  box-shadow:
    0 0 0 1px rgba(10, 14, 11, 0.6),
    0 2px 3px rgba(0, 0, 0, 0.45);
}

.sunpal-yearend__pegs i::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 50%;
  width: 0.56rem;
  height: 0.26rem;
  margin-left: -0.28rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fff8d6, #e8d48a 55%, #a8841c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sunpal-yearend__pointer {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  z-index: 6;
  width: 1.55rem;
  height: 2.15rem;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.55));
}

.sunpal-yearend__pointer-cap {
  position: absolute;
  top: -0.05rem;
  left: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #f2f2f2 42%, #c8c8c8 100%);
  border: 1px solid rgba(20, 24, 28, 0.28);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.sunpal-yearend__pointer-blade {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, #f3ff9a 0%, #c6ff00 42%, #8fb000 78%, #5f7800 100%);
  clip-path: polygon(50% 100%, 8% 8%, 92% 8%);
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.sunpal-yearend__wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(10, 14, 11, 0.72);
  box-shadow:
    inset 0 0 0 6px rgba(0, 0, 0, 0.22),
    inset 0 0 34px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 4.5s cubic-bezier(0.08, 0.82, 0.08, 1);
  position: relative;
  overflow: hidden;
}

.sunpal-yearend__gloss {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, transparent 34%, transparent 68%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}

.sunpal-yearend__spokes {
  --n: 6;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Align spoke lines with wedge borders (face starts at -180deg/n). */
  background: repeating-conic-gradient(
    from calc(-180deg / var(--n)),
    rgba(0, 0, 0, 0.38) 0deg 1.4deg,
    rgba(255, 255, 255, 0.08) 1.4deg 2deg,
    transparent 2deg calc(360deg / var(--n))
  );
  pointer-events: none;
  z-index: 1;
}

.sunpal-yearend__wheel.is-spinning {
  pointer-events: none;
  animation: none;
}

.sunpal-yearend__wheel-stage.is-spinning-stage .sunpal-yearend__lights i::before {
  animation-duration: 0.35s;
  box-shadow:
    0 0 0 1px rgba(20, 16, 0, 0.45),
    0 0 14px rgba(255, 230, 110, 0.9);
}

.sunpal-yearend__slice {
  position: absolute;
  inset: 0;
  z-index: 3;
  /*
   * Face uses conic from -180deg/n so wedge 0 is centered under the pointer.
   * Rotate by i*(360/n) so each label sits on that wedge’s bisector (inside the pie,
   * not on the spoke between pies).
   */
  transform: rotate(calc(var(--i) * (360deg / var(--n))));
  pointer-events: none;
}

.sunpal-yearend__slice em {
  position: absolute;
  left: 50%;
  /*
   * Sit in the wide outer band of the wedge (inside the pie), not mid-radius
   * against the SPIN hub. Anchor the outer edge of the label near the rim;
   * text grows inward so two-line copy stays clear of the hub.
   * Radial orientation — upright at 12 o’clock, inverted at 6 o’clock.
   */
  top: 8%;
  display: block;
  max-width: 3.45rem;
  margin: 0;
  font-style: normal;
  font-family: var(--ye-font);
  font-size: clamp(0.72rem, 2.35vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-align: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-transform: uppercase;
  white-space: pre-line;
  word-break: keep-all;
  transform-origin: top center;
  transform: translateX(-50%);
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 8px rgba(0, 0, 0, 0.4);
}

.sunpal-yearend__slice.is-on-lime em,
.sunpal-yearend__slice.is-on-dark em,
.sunpal-yearend__slice.is-on-soft em {
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 8px rgba(0, 0, 0, 0.4);
}

.sunpal-yearend__slice.is-on-soft em {
  letter-spacing: 0.04em;
  font-size: clamp(0.64rem, 2vw, 0.78rem);
}

.sunpal-yearend__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 32%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #fff6b0 0%, #e8ff55 22%, var(--ye-lime) 48%, #7ea000 72%, #3a4a00 100%);
  border: 5px solid #0b100d;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(198, 255, 0, 0.22),
    inset 0 3px 5px rgba(255, 255, 255, 0.55),
    inset 0 -6px 12px rgba(0, 0, 0, 0.35);
  color: #0b100d;
}

.sunpal-yearend__hub::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(11, 16, 13, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.sunpal-yearend__hub::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 55%);
  pointer-events: none;
}

.sunpal-yearend__hub-bolts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sunpal-yearend__hub-bolts b {
  --b: 0;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.22rem;
  height: 100%;
  transform: rotate(calc(var(--b) * 60deg));
}

.sunpal-yearend__hub-bolts b::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 50%;
  width: 0.22rem;
  height: 0.22rem;
  margin-left: -0.11rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a5560, #1a1f24 70%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sunpal-yearend__hub small {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  padding: 0 0.15rem;
  font-family: var(--ye-font);
  font-size: clamp(0.68rem, 2.5vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #0b100d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
}

.sunpal-yearend__wheel-stage--teaser .sunpal-yearend__hub {
  width: 24%;
}

.sunpal-yearend__wheel-stage--teaser .sunpal-yearend__hub small {
  display: none;
}

.sunpal-yearend__result {
  text-align: center;
  padding-top: 0.15rem;
}

.sunpal-yearend__result-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ye-lime);
}

.sunpal-yearend__result.is-miss .sunpal-yearend__result-label {
  color: rgba(243, 246, 241, 0.55);
}

.sunpal-yearend__result-msg {
  margin: 0 0 0.85rem;
  color: var(--ye-mute);
  font-size: 0.95rem;
}

.sunpal-yearend__miss {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

/* Ticket-style win voucher (mockup) */
.sunpal-yearend__voucher {
  display: grid;
  gap: 0.9rem;
  justify-items: stretch;
  animation: sunpal-ye-voucher-in 0.55s cubic-bezier(0.16, 0.84, 0.22, 1) both;
}

.sunpal-yearend__voucher-banner {
  margin: 0 -0.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 4px 4px 0 0;
  background: #0a0c0a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.sunpal-yearend__voucher-ticket {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(198, 255, 0, 0.2);
}

.sunpal-yearend__voucher-serration {
  height: 14px;
  background:
    radial-gradient(circle at 50% 100%, transparent 55%, #c6ff00 56%) 0 0 / 14px 14px repeat-x,
    #0a0c0a;
}

.sunpal-yearend__voucher-body {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.15rem 1rem 1.05rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #d8ff2a 0%, #c6ff00 48%, #b0e600 100%);
  color: #0b100d;
}

.sunpal-yearend__voucher-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.sunpal-yearend__voucher-brand img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.sunpal-yearend__voucher-prize {
  margin: 0.15rem 0 0;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: #0a0c0a;
}

.sunpal-yearend__voucher-code {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #1a2418;
}

.sunpal-yearend__voucher-code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #0a0c0a;
}

.sunpal-yearend__voucher-qr {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0.2rem 0;
  padding: 0.4rem;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.sunpal-yearend__voucher-terms {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(11, 16, 13, 0.78);
}

.sunpal-yearend__voucher-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: #0b100d;
  font-weight: 800;
  font-size: 0.85rem;
}

.sunpal-yearend__voucher-foot img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.sunpal-yearend__modal-panel.is-won .sunpal-yearend__wheel-stage {
  transform: scale(0.86);
  margin-bottom: 0.65rem;
  transition: transform 0.35s ease;
}

@keyframes sunpal-ye-voucher-in {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.sunpal-yearend__social {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.sunpal-yearend__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.sunpal-yearend__social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
}

.sunpal-yearend__social-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.sunpal-yearend__social-btn--apple {
  background: #111;
  border-color: #111;
  color: #fff;
}

.sunpal-yearend__or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: rgba(243, 246, 241, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sunpal-yearend__or::before,
.sunpal-yearend__or::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.sunpal-yearend__spin-form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--ye-mute);
}

.sunpal-yearend__spin-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0.75rem 0.85rem;
  border-radius: 4px;
}

.sunpal-yearend__spin-form input:focus {
  outline: 2px solid rgba(198, 255, 0, 0.35);
  outline-offset: 1px;
  border-color: var(--ye-lime);
}

.sunpal-yearend__spin-form .sunpal-yearend__btn {
  width: 100%;
}

.sunpal-yearend__error {
  color: #ffb4b4;
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
}

.sunpal-yearend__prize {
  display: grid;
  gap: 0.7rem;
  justify-items: stretch;
  margin-top: 0.15rem;
}

.sunpal-yearend__prize .sunpal-yearend__btn,
.sunpal-yearend__prize .sunpal-yearend__copy {
  width: 100%;
}

@keyframes sunpal-ye-pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(198, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0); }
}

@keyframes sunpal-ye-idle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sunpal-ye-bulb {
  0%, 100% { filter: brightness(0.85); opacity: 0.82; }
  50% { filter: brightness(1.25); opacity: 1; }
}

@media (max-width: 900px) {
  .sunpal-yearend__banner,
  .sunpal-yearend__banner--wheel-front {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    justify-items: center;
    text-align: center;
  }

  .sunpal-yearend__wheel-hero {
    order: -1;
    max-width: 17rem;
  }

  .sunpal-yearend__wheel-stage--hero {
    width: min(100%, 16rem);
  }

  .sunpal-yearend__banner--wheel-front .sunpal-yearend__copy {
    display: grid;
    width: min(100%, 22rem);
    justify-items: center;
    text-align: center;
  }

  .sunpal-yearend__banner--wheel-front .sunpal-yearend__copy > p,
  .sunpal-yearend__banner--wheel-front .sunpal-yearend__copy h2 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .sunpal-yearend__banner--wheel-front .sunpal-yearend__eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .sunpal-yearend__actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .sunpal-yearend {
    padding: 1.35rem 1rem 1.75rem;
  }

  .sunpal-yearend__banner--wheel-front {
    gap: 0.95rem;
  }

  .sunpal-yearend__wheel-hero {
    max-width: 14.75rem;
    gap: 0.55rem;
  }

  .sunpal-yearend__wheel-stage--hero {
    width: min(100%, 14.25rem);
  }

  .sunpal-yearend__wheel-cta {
    width: 100%;
    min-height: 2.6rem;
    font-size: 0.78rem;
  }

  .sunpal-yearend__copy h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.15rem);
    margin-bottom: 0.45rem;
  }

  .sunpal-yearend__copy > p {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
  }

  .sunpal-yearend__eyebrow {
    margin-bottom: 0.55rem;
  }

  .sunpal-yearend__actions {
    flex-direction: column;
    width: 100%;
  }

  .sunpal-yearend__btn {
    width: 100%;
  }

  .sunpal-yearend__modal-panel {
    padding: 1.1rem 0.95rem 1.2rem;
  }

  .sunpal-yearend__modal-head {
    padding: 0 1.1rem;
    margin-bottom: 0.55rem;
  }

  .sunpal-yearend__modal-head h3 {
    font-size: 1.28rem;
  }

  .sunpal-yearend__wheel-stage {
    width: min(100%, 16.5rem);
    margin: 0.2rem auto 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sunpal-yearend__eyebrow::before,
  .sunpal-yearend__wheel--idle,
  .sunpal-yearend__lights i::before {
    animation: none;
  }

  .sunpal-yearend__wheel {
    transition: none;
  }
}
