/* ==========================================================================
   Promotions: ticker band, campaign hero, offer pop-up, spin-to-win wheel.
   Each block takes a theme class (.pm-theme--*) that sets the palette.
   ========================================================================== */

.pm-theme--violet   { --pm-a: #12062e; --pm-b: #4c1d95; --pm-c: #7c3aed; --pm-hot: #ff3d8b; --pm-hot-ink: #fff; --pm-glow: #a855f7; --pm-cta: #ffffff; --pm-cta-ink: #2e1065; }
.pm-theme--midnight { --pm-a: #04040b; --pm-b: #111133; --pm-c: #312e81; --pm-hot: #c6f432; --pm-hot-ink: #0b0b16; --pm-glow: #6366f1; --pm-cta: #c6f432; --pm-cta-ink: #0b0b16; }
.pm-theme--sunset   { --pm-a: #3b0a1e; --pm-b: #9d174d; --pm-c: #f97316; --pm-hot: #fde047; --pm-hot-ink: #3b0a1e; --pm-glow: #fb7185; --pm-cta: #fde047; --pm-cta-ink: #3b0a1e; }
.pm-theme--emerald  { --pm-a: #021712; --pm-b: #065f46; --pm-c: #10b981; --pm-hot: #fbbf24; --pm-hot-ink: #1c1406; --pm-glow: #34d399; --pm-cta: #fbbf24; --pm-cta-ink: #1c1406; }
.pm-theme--gold     { --pm-a: #120d04; --pm-b: #3d2a0b; --pm-c: #a16207; --pm-hot: #fcd34d; --pm-hot-ink: #1a1204; --pm-glow: #f59e0b; --pm-cta: #fcd34d; --pm-cta-ink: #1a1204; }
.pm-theme--crimson  { --pm-a: #1a0409; --pm-b: #881337; --pm-c: #e11d48; --pm-hot: #ffffff; --pm-hot-ink: #881337; --pm-glow: #fb7185; --pm-cta: #ffffff; --pm-cta-ink: #881337; }

@media (max-width: 767px) { .pm-dev--desktop { display: none !important; } }
@media (min-width: 768px) { .pm-dev--mobile { display: none !important; } }

/* ---------- shared bits ---------- */
.pm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--pm-cta); color: var(--pm-cta-ink);
    font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.1;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pm-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pm-btn:focus-visible { outline: 3px solid var(--pm-hot); outline-offset: 3px; }
.pm-btn--glow { box-shadow: 0 10px 30px -8px var(--pm-glow), 0 0 0 1px rgba(255,255,255,.15) inset; }
.pm-btn--block { width: 100%; }

.pm-code, .pm-coupon {
    display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font: inherit;
    padding: .55rem .9rem; border-radius: 12px; color: #fff;
    background: rgba(255,255,255,.08); border: 1.5px dashed rgba(255,255,255,.45);
    transition: background .2s ease, border-color .2s ease;
}
.pm-code:hover, .pm-coupon:hover { background: rgba(255,255,255,.14); border-color: var(--pm-hot); }
.pm-code span, .pm-coupon__label { font-size: .78rem; opacity: .8; }
.pm-code b, .pm-coupon b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; font-size: 1.05rem; color: var(--pm-hot); }
.pm-code em, .pm-coupon em { font-style: normal; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; background: rgba(255,255,255,.12); }
.is-copied em { background: #22c55e; color: #fff; }
.pm-coupon { width: 100%; justify-content: space-between; padding: .8rem 1rem; margin: .4rem 0 .9rem; }

.pm-count { display: inline-flex; align-items: center; gap: .35rem; direction: ltr; }
.pm-count__cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.6rem; }
.pm-count__cell b { font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1; }
.pm-count__cell small { font-size: .62rem; opacity: .75; text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.pm-count__sep { font-style: normal; opacity: .5; font-weight: 700; }
.pm-count--hero .pm-count__cell { min-width: 4rem; padding: .7rem .4rem .5rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.pm-count--hero .pm-count__cell b { font-size: 1.9rem; }
.pm-count--card { width: 100%; justify-content: center; margin: 0 0 1rem; }
.pm-count--card .pm-count__cell { padding: .45rem .3rem; border-radius: 10px; background: rgba(255,255,255,.08); }
.pm-count--card .pm-count__cell b { font-size: 1.25rem; }
.pm-count--mini .pm-count__cell { min-width: 1.6rem; flex-direction: row; gap: 1px; }
.pm-count--mini .pm-count__cell b { font-size: .85rem; }
.pm-count--mini .pm-count__cell small { font-size: .6rem; margin: 0; text-transform: lowercase; }
.pm-count--mini .pm-count__cell small { display: none; }

.pm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- ticker ---------- */
.pm-ticker {
    position: relative; z-index: 60; display: flex; align-items: center; gap: .75rem;
    min-height: 40px; padding-inline-end: .5rem; color: #fff; overflow: hidden;
    background: linear-gradient(90deg, var(--pm-a), var(--pm-b) 45%, var(--pm-c));
    font-size: .875rem; font-weight: 600;
}
.pm-ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: pm-sheen 6s linear infinite; }
.pm-ticker__viewport {
    flex: 1; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.pm-ticker__track { display: flex; width: max-content; animation: pm-marquee var(--pm-speed, 35s) linear infinite; }
[dir="rtl"] .pm-ticker__track { animation-name: pm-marquee-rtl; }
.pm-ticker:hover .pm-ticker__track, .pm-ticker:focus-within .pm-ticker__track { animation-play-state: paused; }
.pm-ticker__group { display: flex; flex: none; }
.pm-ticker__item { display: inline-flex; align-items: center; gap: .55rem; padding-inline: 1.6rem; white-space: nowrap; }
.pm-ticker__item svg { color: var(--pm-hot); flex: none; }
.pm-ticker__item a { color: inherit; text-decoration: underline; text-decoration-color: var(--pm-hot); text-underline-offset: 3px; }
.pm-ticker__aside { display: flex; align-items: center; gap: .5rem; flex: none; padding: .25rem .7rem; border-radius: 999px; background: rgba(0,0,0,.25); }
.pm-ticker__ends { font-size: .72rem; opacity: .85; }
.pm-ticker__aside .pm-count { color: var(--pm-hot); }
.pm-ticker__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); position: relative; z-index: 1; }
.pm-ticker__close:hover { background: rgba(255,255,255,.25); }
@media (max-width: 640px) { .pm-ticker__ends { display: none; } .pm-ticker { font-size: .8rem; } }

@keyframes pm-marquee     { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pm-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes pm-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- hero ---------- */
.pm-hero {
    position: relative; overflow: hidden; isolation: isolate; color: #fff;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
    background:
        radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--pm-c) 55%, transparent), transparent 70%),
        radial-gradient(50% 60% at 50% 110%, color-mix(in srgb, var(--pm-glow) 45%, transparent), transparent 70%),
        linear-gradient(180deg, var(--pm-a), var(--pm-b));
}
.pm-hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pm-hero__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.pm-hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.pm-hero__orb--a { width: 380px; height: 380px; background: var(--pm-glow); top: -120px; inset-inline-start: -80px; animation: pm-float 12s ease-in-out infinite; }
.pm-hero__orb--b { width: 320px; height: 320px; background: var(--pm-hot); bottom: -160px; inset-inline-end: -60px; opacity: .3; animation: pm-float 14s ease-in-out infinite reverse; }
.pm-hero__glyph {
    position: absolute; font-weight: 900; line-height: 1; font-family: system-ui, sans-serif;
    background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--pm-glow) 60%, #fff) 45%, var(--pm-c) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 0 color-mix(in srgb, var(--pm-c) 70%, #000)) drop-shadow(0 22px 30px rgba(0,0,0,.45));
}
.pm-hero__glyph--a { font-size: clamp(7rem, 16vw, 13rem); top: 6%; inset-inline-end: 6%; transform: rotate(-18deg); animation: pm-bob 7s ease-in-out infinite; }
.pm-hero__glyph--b { font-size: clamp(4rem, 9vw, 7.5rem); bottom: 8%; inset-inline-start: 4%; transform: rotate(22deg); animation: pm-bob 9s ease-in-out infinite reverse; opacity: .9; }
.pm-hero__glyph--c { font-size: clamp(3rem, 6vw, 4.5rem); top: 14%; inset-inline-start: 18%; transform: rotate(-30deg); animation: pm-bob 8s ease-in-out infinite; opacity: .55; }
.pm-hero__inner { position: relative; display: grid; gap: 2.5rem; align-items: center; justify-items: center; text-align: center; }
.pm-hero--media .pm-hero__inner { grid-template-columns: 1.15fr .85fr; justify-items: start; text-align: start; }
.pm-hero__copy { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 760px; }
.pm-hero--media .pm-hero__copy { align-items: flex-start; }
.pm-hero__kicker { display: inline-flex; padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.pm-hero__title { margin: 0; color: var(--ink); font-size: clamp(2.6rem, 7.5vw, 5.6rem); font-weight: 900; line-height: .98; letter-spacing: -.03em; text-shadow: 0 8px 40px color-mix(in srgb, var(--pm-glow) 60%, transparent); }
.pm-hero__badge { display: inline-flex; align-items: center; gap: .1rem; transform: rotate(-3deg); }
.pm-hero__badge-tag { display: grid; place-items: center; padding: .5rem .6rem; border-radius: 12px 0 0 12px; background: #fff; color: var(--pm-a); font-weight: 900; font-size: .8rem; line-height: 1.05; text-transform: uppercase; max-width: 5rem; }
[dir="rtl"] .pm-hero__badge-tag { border-radius: 0 12px 12px 0; }
.pm-hero__badge-main { padding: .35rem 1.1rem .45rem; border-radius: 14px; background: var(--pm-hot); color: var(--pm-hot-ink); font-size: clamp(1.8rem, 4.6vw, 3.2rem); font-weight: 900; line-height: 1.05; box-shadow: 0 14px 40px -10px var(--pm-hot); }
.pm-hero__sub { margin: 0; max-width: 620px; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.7; opacity: .9; }
.pm-hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem; margin-top: .3rem; }
.pm-hero--media .pm-hero__actions { justify-content: flex-start; }
.pm-hero__actions .pm-btn { padding: 1rem 2.2rem; font-size: 1.05rem; }
.pm-hero__note { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .9rem; opacity: .85; }
.pm-hero__note svg { color: var(--pm-hot); }
.pm-hero__art img { width: 100%; max-width: 460px; height: auto; border-radius: 24px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); animation: pm-float 10s ease-in-out infinite; }
@media (max-width: 860px) {
    .pm-hero--media .pm-hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .pm-hero--media .pm-hero__copy { align-items: center; }
    .pm-hero--media .pm-hero__actions { justify-content: center; }
    .pm-hero__art { order: -1; } .pm-hero__art img { max-width: 260px; }
    .pm-count--hero .pm-count__cell { min-width: 3.3rem; } .pm-count--hero .pm-count__cell b { font-size: 1.45rem; }
}

@keyframes pm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes pm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* ---------- modal (pop-up + wheel) ---------- */
.pm-modal {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
    background: rgba(6, 3, 18, .62); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .25s ease;
}
.pm-modal[hidden] { display: none; }
.pm-modal.is-open { opacity: 1; }
.pm-modal--bottom { place-items: end start; }
[dir="rtl"] .pm-modal--bottom { place-items: end end; }
.pm-modal--bottom { background: transparent; backdrop-filter: none; pointer-events: none; }
.pm-modal--bottom .pm-modal__card { pointer-events: auto; max-width: 380px; }
.pm-modal__card {
    position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
    border-radius: 24px; color: #fff;
    background:
        radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--pm-c) 50%, transparent), transparent 70%),
        linear-gradient(170deg, var(--pm-b), var(--pm-a) 75%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05) inset;
    transform: translateY(18px) scale(.97); transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.pm-modal.is-open .pm-modal__card { transform: none; }
.pm-modal__card--media { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; }
.pm-modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.pm-modal__body { padding: 2rem 1.75rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pm-modal__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(0,0,0,.3); }
.pm-modal__close:hover { background: rgba(0,0,0,.5); }
.pm-modal__head { position: relative; margin-bottom: .6rem; }
.pm-modal__badge { display: inline-block; padding: .5rem 1.1rem; border-radius: 14px; font-size: 1.6rem; font-weight: 900; line-height: 1; background: var(--pm-hot); color: var(--pm-hot-ink); transform: rotate(-4deg); box-shadow: 0 14px 30px -10px var(--pm-hot); }
.pm-modal__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-bottom: .3rem; }
.pm-modal__title { margin: .2rem 0 .5rem; color: var(--ink); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; line-height: 1.15; }
.pm-modal__text { margin: 0 0 1rem; opacity: .85; line-height: 1.7; }
.pm-modal__later { margin-top: .7rem; padding: .35rem; border: 0; background: none; color: rgba(255,255,255,.7); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pm-modal__later:hover { color: #fff; }
.pm-modal__fine { display: block; margin-top: .4rem; font-size: .72rem; opacity: .6; line-height: 1.5; }
.pm-confetti { position: absolute; inset: -30px -60px; pointer-events: none; background-image:
    radial-gradient(circle, var(--pm-hot) 2px, transparent 3px), radial-gradient(circle, #fff 1.5px, transparent 2.5px), radial-gradient(circle, var(--pm-glow) 2px, transparent 3px);
    background-size: 46px 38px, 30px 52px, 58px 44px; background-position: 0 0, 12px 20px, 30px 6px; opacity: .55; }
@media (max-width: 640px) {
    .pm-modal__card--media { grid-template-columns: 1fr; }
    .pm-modal__media img { max-height: 180px; min-height: 0; }
    .pm-modal--bottom { place-items: end center !important; }
}

/* ---------- wheel ---------- */
.pm-wheel { max-width: 820px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 1rem; padding: 2rem 1.75rem; }
.pm-wheel__stage { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin-inline: auto; }
.pm-wheel__disc { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.12), 0 0 0 14px color-mix(in srgb, var(--pm-glow) 35%, transparent), 0 25px 60px -10px rgba(0,0,0,.6); transition: transform 5.2s cubic-bezier(.12,.8,.08,1); will-change: transform; }
.pm-wheel__label { fill: #fff; font-weight: 800; font-family: inherit; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: 2px; }
.pm-wheel__bulb { animation: pm-blink 1.2s ease-in-out infinite; }
.pm-wheel__pointer { position: absolute; top: -10px; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--pm-hot); filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.pm-wheel__hub { position: absolute; top: 50%; left: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e5e7eb); color: var(--pm-c); font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 5px rgba(255,255,255,.25); }
.pm-wheel__side { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pm-wheel__form { width: 100%; display: flex; flex-direction: column; gap: .6rem; }
.pm-wheel__form input[type="email"] { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.95); color: #111; font: inherit; }
.pm-wheel__form input[type="email"]:focus { outline: 3px solid var(--pm-hot); outline-offset: 1px; }
.pm-wheel__result { width: 100%; }
.pm-wheel__message { font-size: 1.1rem; font-weight: 800; margin: 0 0 .6rem; }
.pm-wheel__error { color: #fecaca; font-size: .85rem; margin: .5rem 0 0; }
.is-spinning .pm-wheel__form button { opacity: .6; pointer-events: none; }
@media (max-width: 720px) {
    .pm-wheel { grid-template-columns: 1fr; padding: 1.75rem 1.1rem 1.25rem; }
    .pm-wheel__stage { max-width: 250px; }
}
@keyframes pm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* floating launcher for the wheel */
.pm-launcher {
    position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 900;
    display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem .7rem .8rem;
    border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: .9rem; color: #fff;
    background: linear-gradient(135deg, var(--pm-c), var(--pm-b)); box-shadow: 0 14px 30px -8px var(--pm-glow), 0 0 0 1px rgba(255,255,255,.18) inset;
    animation: pm-pop .5s cubic-bezier(.2,.9,.3,1.4) both;
}
.pm-launcher[hidden] { display: none; }
.pm-launcher__gift { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pm-hot); font-size: 1.05rem; animation: pm-wiggle 2.4s ease-in-out infinite; }
@keyframes pm-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pm-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }

@media (prefers-reduced-motion: reduce) {
    .pm-ticker__track { animation-duration: calc(var(--pm-speed, 35s) * 3); }
    .pm-hero__orb, .pm-hero__glyph, .pm-hero__art img, .pm-launcher__gift, .pm-wheel__bulb, .pm-ticker::after { animation: none; }
    .pm-wheel__disc { transition-duration: 1.2s; }
}
