* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

a {
    text-decoration: none;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --surface: #050814;
    --surface-raised: #0b1020;
    --segment-font-size: 12px;
    --gold: #fbbf24;
    --gold-soft: #fde68a;
    --gold-rgb: 251, 191, 36;
    --text: #f8fafc;
    --muted: #a8b2c5;
    --line: rgba(251, 191, 36, 0.22);
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    background: #000;
}

html {
    font-size: 10px;
    background: #000;
}

.wrapper {
    overflow: hidden;
    max-width: 1920px;
    background: url('/templates/lucky-wheel/common/images/bg.svg') 50% 50%;
    background-size: cover;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 124rem;
    margin: 0 auto;
    position: relative;
    padding: 10.6rem 2rem;
}

.logo {
    display: block;
    max-width: 23.6rem;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 5;
}

.title {
    text-align: center;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    font-size: 1.5rem;
    margin: 2rem auto 3.6rem;
    position: relative;
    z-index: 5;
}

.orange {
    color: #ff4800;
}

/* Wheel + Zeus stage: simple flexbox, no absolute-overlay math.
   Side-by-side on desktop, stacked on mobile. */
.stage {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .stage {
        flex-direction: column;
        gap: 32px;
    }
}

.wheel {
    position: relative;
    flex-shrink: 0;
}

/* Procedural CSS wheel — no pre-drawn slice artwork to outgrow. Segment
   count/colors/labels all come from $segments; --half-size drives every
   radius-based placement below (dividers, pegs) so it works at any size. */
.spin-wheel-frame {
    position: relative;
    --size: clamp(300px, 42vw, 600px);
    --half-size: calc(var(--size) / 2);
    /* A real frame graphic (or the metallic default) needs an actual visible
       band, not a hairline — proportional so it scales with --size instead
       of a fixed few px disappearing at larger sizes. */
    --frame-padding: calc(var(--size) * 0.1);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    padding: var(--frame-padding);
    box-sizing: border-box;
    background: conic-gradient(from 45deg, #fce075 0%, #996515 25%, #ffe58f 50%, #8b5a2b 75%, #fce075 100%);
    margin: 0 auto;
}

/* 0.185 (not an arbitrary guess) — measured directly off the current
   wheelframe.png: 1355x1161 canvas, a circular hollow ~62.95% of the
   canvas width, centered ~49.2%/48.8%. Padding = (100% - 62.95%) / 2 ≈
   18.5%. Unlike Design 2's .wheel-frame, this frame isn't scaled up past
   100% of its box, so the same off-center hollow only works out to a few
   px at this element's max size (~600px) — small enough to leave
   uncorrected for now, but a real (not zero) offset if this design is
   ever scaled up the way Design 2's frame is.
   A different custom frame image can have a different hollow ratio — if
   the disc under/overflows the ring after a future frame image swap,
   re-measure (flood-fill the image's alpha channel from an off-center
   transparent seed, since a decorative badge often sits dead center) and
   recompute this percentage, the same way Design 2's .wheel-frame is
   documented to be re-measured. */
.spin-wheel-frame.has-custom-frame {
    --frame-padding: calc(var(--size) * 0.185);
}

/* Inset edge highlight — only meaningful against the flat conic-gradient
   fallback, where it blends into the gradient's own edge. A custom
   wheel_frame_image's artwork doesn't fill flush to the div's circular
   clip (transparent padding, non-circular flourishes), so this same
   highlight floats alone in that gap and reads as a stray ring. */
.spin-wheel-frame:not(.has-custom-frame) {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset;
}

/* Dark bezel groove — only makes sense as a way to fake depth on the flat
   metallic conic-gradient fallback. A real frame image already has its own
   depth/detail baked in, and this would just paint over most of it. */
.spin-wheel-frame:not(.has-custom-frame)::before {
    content: '';
    position: absolute;
    inset: calc(var(--frame-padding) * 0.4);
    border-radius: 50%;
    background: linear-gradient(135deg, #2a1f06, #000);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, .9);
    z-index: 1;
}

.spin-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 2;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: wheelIdleRotate 3s ease-in-out infinite;
    box-shadow: inset 0 0 0 .45rem rgba(255, 255, 255, .16), inset 0 0 2.2rem rgba(0, 12, 56, .48);
}

/* Disabled once the real spin animation takes over (see lucky-wheel.js) —
   a running CSS animation would otherwise keep overriding the inline
   transform the spin sets on this same element every frame. */
.spin-wheel.no-idle-animation {
    animation: none;
}

@keyframes wheelIdleRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* Per-slice glossy "enamel" dome — a saturated, lightened core fading to a
   darkened rim, built per-segment from that segment's own color (see
   LandingPageController::adjustSaturation/adjustColor and wheel.blade.php).
   This is what gives each wedge dimension instead of reading as flat paint. */
.spin-slice-shine {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    pointer-events: none;
}

.spin-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .78), rgba(255, 218, 111, .3) 45%, rgba(0, 11, 47, .34) 100%);
    transform-origin: 50% 100%;
    z-index: 3;
}

.spin-peg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #e2ab17 40%, #5a3d00 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .7);
    z-index: 4;
}

.spin-overlay {
    position: absolute;
    inset: var(--frame-padding);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    /* Glass sweep (upper-left "studio light" highlight) + rim vignette, on
       top of the per-slice enamel — the combination is what sells "glossy
       dome" instead of just "saturated flat color". */
    background:
        radial-gradient(ellipse 60% 45% at 32% 22%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .16) 42%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 48%, rgba(0, 8, 38, .55) 100%);
}

.spin-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #ffd23f;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5));
    z-index: 7;
}

/* A custom arrow image isn't a CSS border-triangle, so it needs its own
   real (and properly visible, not 34px-on-a-480px-wheel-tiny) box — sized
   proportionally to --size so it stays legible at any wheel size. */
.spin-pointer--custom {
    top: calc(var(--size) * .058);
    width: calc(var(--size) * 0.9);
    height: calc(var(--size) * 0.18);
    border: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/* Scoped to :not(.wrapper--v2) — Design 2 (wheel_v2.blade.php) reuses this
   class name for its own, differently-positioned SPIN button and keeps
   getting regenerated independently of this file, so absolute/top/left/
   transform here would otherwise silently reapply to it every time and
   knock it out of place. Design 1's .wrapper never carries wrapper--v2,
   so this is unchanged for it. */
.wrapper:not(.wrapper--v2) .spin-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22%;
    height: 22%;
    border-radius: 50%;
    border: 3px solid #fff;
    background: conic-gradient(from 0deg, #ffeea1, #b8860b, #fff, #8b6508, #ffeea1);
    color: #1a1a1a;
    font-weight: 800;
    font-size: clamp(14px, 2.4vw, 20px);
    letter-spacing: .05em;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 255, 255, .5);
    z-index: 6;
    transition: box-shadow .2s ease-in-out;
}

.spin-center:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 255, 255, .7); }
.spin-center.disabled { pointer-events: none; opacity: .7; }

/* Zeus figure + glow. .zevs is a flex sibling of .wheel inside .stage
   (see above) — never absolutely positioned relative to an auto-height
   ancestor. It gets an explicit width (clamp) and an explicit height
   (aspect-ratio, matching zevs.svg's 420x620 viewBox), so its box is
   fully determined before any absolutely-positioned child is placed
   inside it — that's what makes the .shadow glow's percentage-based
   absolute positioning below safe to reason about by hand. */
.zevs {
    position: relative;
    width: clamp(160px, 26vw, 380px);
    aspect-ratio: 420 / 620;
    flex-shrink: 0;
    z-index: 3;
}

.zevs-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.zevs-img--mobile { display: none; }

/* Glow sits behind the figure, centered and slightly larger than it —
   both percentages resolve against .zevs's explicit box above. */
.shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: url('/templates/lucky-wheel/common/images/shadow.svg') 50% 50% / contain no-repeat;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .zevs-img--desktop { display: none; }
    .zevs-img--mobile { display: block; }
}

@media (max-width: 600px) {
    .wrapper { background-image: url('/templates/lucky-wheel/common/images/bg-mob.svg'); }

    .container { padding: 60px 16px 20px; }

    .title { padding: 0 16px; font-size: 1.8rem; line-height: 1.3; margin: 0 auto 24px; }
    .logo { margin: 0 auto 24px; }
    .logo img { max-width: 80%; height: auto; margin: 0 auto; }
}

/* Countdown timer */
.countdown-timer {
    background: #000;
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.timer-text {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--gold);
    font-weight: 600;
    padding: 10px;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    background: rgba(var(--gold-rgb), 0.2);
    border-radius: 5px;
    padding: 5px;
}

.timer-unit span:first-child {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.unit-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: #fff;
}

.timer-separator {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold);
    margin: 0 5px;
}

@media (max-width: 768px) {
    .timer-unit { min-width: 50px; }
    .timer-unit span:first-child { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .countdown-timer { padding: 8px 10px; }
    .timer-unit { min-width: 46px; }
    .timer-unit span:first-child { font-size: 1.8rem; }
    .unit-label { font-size: 0.85rem; }
    .timer-separator { font-size: 1.6rem; }
}

/* Payment section */
.payment-section {
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    border-top: 2px solid rgba(var(--gold-rgb), 0.3);
    width: 100%;
    padding: 15px 0 25px;
}

.payment-title {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-top: 15px;
}

.payment-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.payment-img {
    width: 90px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.payment-img:hover {
    transform: translateY(-5px);
}

.security-note {
    color: #94a3b8;
    margin-top: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ssl-badge {
    display: inline-flex;
    background: #10b981;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
}

@media (max-width: 768px) {
    .payment-images { gap: 15px; }
    .payment-img { width: 80px; height: 50px; }
    .payment-title { font-size: 20px; }
}

@media (max-width: 480px) {
    .payment-images { gap: 10px; }
    .payment-img { width: 70px; height: 45px; }
}

/* Footer */
.footer { position: relative; z-index: 5; font-size: 1.2rem; }
.footer__text { max-width: 90%; margin: 0 auto; }
.footer__text p { margin-bottom: 2rem; text-align: center; color: #706a70; }
.footer__text p:last-child { margin-bottom: 0; }

/* Popup */
.popup {
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    font-size: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup__show {
    opacity: 1;
    pointer-events: all;
}

.popup__container {
    width: 50em;
    height: 45em;
    background: url('/templates/lucky-wheel/common/images/popup-container.svg') 50% 50%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    padding: 2.5em 4em 4em;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 85vw;
    box-sizing: border-box;
    overflow: visible;
}

.popup__text {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.popup__content {
    padding: 2.5em 2em 7em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    gap: 0.3em;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

.popup__title {
    color: #fff;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup__title_win {
    margin-top: 1em;
    margin-bottom: 0.6em;
}

.popup__title span {
    font-size: 6em;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
    display: block;
    width: 100%;
}

.popup__links {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -6em;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10001;
}

.popup__btn {
    width: 28em;
    height: 12em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/templates/lucky-wheel/common/images/popup-btn.svg');
    background-size: 28em 24em;
    background-position: 50% 0%;
    cursor: pointer;
}

.popup__btn:hover {
    background-position: 50% 100%;
}

.popup__btn span {
    color: #fff;
    font-weight: 700;
    font-size: 1.6em;
}

.text {
    font-size: 1.8em;
    font-weight: 500;
    text-align: center;
    color: #fff;
    margin: 0.6em auto 0.5em;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.5em;
}

.color { color: #ee9a31; font-weight: 600; }

.sum {
    color: #ee9a31;
    font-weight: 800;
    font-size: 2.5em;
    line-height: 1.1;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    letter-spacing: 0.01em;
    text-shadow: 0 0 12px rgba(238, 154, 49, 0.5);
    max-width: 100%;
    padding: 0 1em;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 600px) {
    .popup__container {
        width: 85vw;
        max-width: 50em;
        height: auto;
        min-height: 45em;
        padding: 2.5em 4em 4em;
    }
    .popup__title span { font-size: 2.4em !important; margin-bottom: 0.5em !important; }
    .sum { font-size: 1.8em !important; padding: 0 1em !important; margin: 0.5em auto 0.8em !important; }
    .text { font-size: 1.8em !important; padding: 0 0.5em !important; margin: 0.5em auto 0.8em !important; }
    .popup__content { padding: 3em 2em 10em !important; gap: 0.5em !important; min-height: auto !important; }
    .popup__links { bottom: -6em !important; }
    .popup__btn { width: 28em !important; max-width: 90% !important; height: 12em !important; background-size: 28em 24em !important; }
    .popup__btn span { font-size: 1.6em !important; }
}

/* Social proof */
#social-proof-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-proof {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.5s ease-out;
    max-width: 300px;
    border-left: 4px solid var(--gold);
}

.social-proof img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px 0 0;
}

.social-proof-content { flex: 1; }

.social-proof-name {
    font-weight: bold;
    color: #1e293b;
    font-size: 1.4rem;
    line-height: 20px;
    text-align: left;
}

.social-proof-text {
    color: #64748b;
    font-size: 1.3rem;
    margin: 2px 0;
    text-align: left;
}

.social-proof-time {
    color: #94a3b8;
    font-size: 1.2rem;
    text-align: left;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 600px) {
    #social-proof-container { bottom: 10px; right: 10px; left: 10px; max-width: calc(100% - 20px); }
    .social-proof { max-width: 100%; padding: 10px; }
    .social-proof img { width: 40px; height: 40px; }
}

@media (max-width: 768px) {
    #social-proof-container { right: 10px; bottom: 10px; }
    .social-proof { max-width: 250px; padding: 10px; }
    .social-proof-time { font-size: 1.4rem !important; }
    .social-proof-name { font-size: 2rem !important; }
    .social-proof-text { font-size: 1.7rem !important; }
}

/* Cohesive supporting content: replaces the original inline presentation. */
.countdown-timer { background: linear-gradient(180deg, var(--surface), #000); border-top: 1px solid var(--line); padding: 2.2rem 1.5rem; }
.timer-text { color: var(--gold); font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 800; letter-spacing: .12em; margin-bottom: 1.2rem; padding: 0; }
.timer-unit { min-width: 6.8rem; padding: .7rem .6rem; background: linear-gradient(145deg, rgba(var(--gold-rgb), .2), rgba(var(--gold-rgb), .05)); border: 1px solid rgba(var(--gold-rgb), .3); border-radius: .8rem; }
.unit-label { font-size: .9rem; letter-spacing: .08em; }

.trust-section, .testimonials, .payment-section, .footer { background: var(--surface); }
.trust-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.8rem 2rem; text-align: center; }
.eyebrow { color: var(--gold-soft); font-size: 1.1rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.trust-section .eyebrow { margin-bottom: 1.3rem; }
.trust-section__content { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.5rem 2.4rem; }
.trust-section__brand { width: min(15rem, 42vw); height: 3.8rem; object-fit: contain; }
.trust-section__verified { width: auto; height: 3rem; }
.trust-section__rating { display: flex; align-items: center; gap: .9rem; color: #50d9a7; font-size: 1.35rem; font-weight: 700; }
.trust-section__stars { font-size: 2rem; letter-spacing: .08em; line-height: 1; }

.testimonials { padding: clamp(4rem, 7vw, 7rem) 2rem; }
.section-heading { max-width: 58rem; margin: 0 auto 2.8rem; text-align: center; }
.section-heading h2 { color: var(--text); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.1; margin-top: .7rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 30rem)); justify-content: center; gap: 1.6rem; }
.testimonial-card { padding: 2.2rem; text-align: center; background: linear-gradient(150deg, rgba(28, 38, 64, .9), rgba(9, 14, 29, .9)); border: 1px solid rgba(255, 255, 255, .1); border-radius: 1.4rem; box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, .2); }
.testimonial-card img { width: 6.4rem; height: 6.4rem; margin: 0 auto 1.3rem; border: 2px solid rgba(var(--gold-rgb), .7); border-radius: 50%; object-fit: cover; }
.testimonial-card h3 { color: var(--text); font-size: 1.5rem; margin-bottom: .9rem; }
.testimonial-card h3 span { display: block; color: var(--gold-soft); font-size: 1.15rem; font-weight: 500; margin-top: .35rem; }
.testimonial-card p { color: var(--muted); font-size: 1.3rem; line-height: 1.6; }

.payment-section { background: var(--surface-raised); padding: 2rem 2rem 2.8rem; }
.payment-title { color: var(--gold); margin-bottom: 1.7rem; padding-top: 0; font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 800; }
.footer__text { padding: 2rem 0; }

@media (max-width: 700px) {
    .testimonial-grid { grid-template-columns: minmax(0, 36rem); }
    .trust-section__rating { width: 100%; justify-content: center; }
    .security-note { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Cinematic hero composition: the wheel is the focal point and Zeus is
   environmental artwork, rather than a second item in a flex row. */
@media (min-width: 901px) {
    .wrapper {
        background-color: #050b27;
        background-image:
            radial-gradient(circle at 50% 42%, rgba(38, 114, 255, .4) 0, rgba(10, 35, 101, .1) 30%, transparent 55%),
            linear-gradient(180deg, rgba(3, 11, 38, .05), rgba(2, 7, 25, .7)),
            url('/templates/lucky-wheel/common/images/bg.svg');
        background-position: 50% 50%;
    }

    .container {
        min-height: clamp(70rem, 53vw, 88rem);
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .logo { margin-bottom: 1rem; }

    /* Scoped to :not(.wrapper--v2) — same reason as .spin-center above:
       Design 2 reuses .stage/.wheel with its own layout and keeps getting
       regenerated independently of this file. */
    .wrapper:not(.wrapper--v2) .stage {
        position: relative;
        display: block;
        height: clamp(56rem, 43vw, 72rem);
        margin: 0 auto;
    }

    .wrapper:not(.wrapper--v2) .wheel {
        position: absolute;
        top: 45%;
        left: 50%;
        z-index: 5;
        font-size: clamp(6.6px, .52vw, 9.75px);
        transform: translate(-50%, -50%);
    }

    .zevs {
        position: absolute;
        right: clamp(1rem, 5vw, 9rem);
        bottom: -6rem;
        width: clamp(32rem, 31vw, 52rem);
        height: auto;
        aspect-ratio: 420 / 620;
        z-index: 4;
        filter: drop-shadow(-2.5rem 1rem 2.5rem rgba(0, 0, 0, .45)) saturate(1.12) contrast(1.05);
    }

    .shadow { width: 165%; height: 165%; opacity: .85; }
    .title { margin: -4.2rem auto 0; font-size: clamp(1.6rem, 1.5vw, 2.2rem); text-shadow: 0 .25rem .8rem rgba(0, 0, 0, .8); }

    .zevs { display: none; }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .zevs { right: -3rem; opacity: .82; }
}

/* The hero is wheel-only; retain the markup so no game behavior changes. */
.zevs { display: none; }

/* Artwork supplied for this campaign. It contains the temple, Zeus, clouds,
   lightning and reward effects, so it intentionally replaces the old layered
   SVG illustration treatment. */
.wrapper {
    background-color: #071d69;
    background-image: linear-gradient(rgba(4, 17, 76, .08), rgba(4, 17, 76, .08)), url('/templates/lucky-wheel/common/images/hero-zeus.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 901px) {
    .wrapper {
        background-image: linear-gradient(rgba(4, 17, 76, .08), rgba(4, 17, 76, .08)), url('/templates/lucky-wheel/common/images/hero-zeus.png');
        background-position: center top;
    }

    .container {
        min-height: clamp(76rem, 55vw, 96rem);
        max-width: 150rem;
    }

    .logo {
        max-width: 20rem;
        margin-bottom: 0;
        filter: drop-shadow(0 .6rem 1.2rem rgba(0, 28, 109, .28));
    }

    .stage { height: clamp(64rem, 47vw, 82rem); }

    .wheel {
        top: 48%;
        left: 47%;
    }

    .title { margin-top: -5rem; color: #fff; font-size: clamp(1.5rem, 1.45vw, 2.2rem); text-shadow: 0 .25rem .7rem #00479b; }
    .orange { color: #ff6b00; }
}

@media (max-width: 900px) {
    .wrapper {
        background-image: linear-gradient(rgba(4, 17, 76, .14), rgba(4, 17, 76, .14)), url('/templates/lucky-wheel/common/images/hero-zeus.png');
        background-position: 61% top;
        background-size: auto 100%;
    }

    .stage { gap: 0; }
    .wheel { filter: drop-shadow(0 1.4rem 1.8rem rgba(0, 28, 90, .25)); }
}

.popup__container {
    height: 43.6em;
    background-image: url('/templates/lucky-wheel/common/images/popup-container-cinematic.png');
}

@media (max-width: 600px) {
    .popup__container { min-height: 43.6em; }
}

/* Wheel labels: radial — each label rides its own spoke and points outward
   from the hub, like a physical prize wheel. Labels past the 180deg mark
   therefore read inverted while the wheel is at rest; that's inherent to a
   real wheel and self-corrects as it spins. Kept to a single line on
   purpose: wrapping is what makes radial text read as a tilted block
   instead of a spoke. */
/* The spoke runs from the hub out to `width`; padding-left holds the text
   clear of the centre button, so the text centres inside the band between
   the two. Centring (rather than anchoring to the rim) is what keeps every
   label's midpoint at the same radius no matter how long its text is. */
.spin-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46%;
    padding-left: 16%;
    height: 0;
    transform-origin: 0% 0%;
    text-align: center;
    pointer-events: none;
    z-index: 8;
}

.spin-label > span {
    display: inline-block;
    max-width: 100%;
    /* --segment-font-size is the admin-configured max (see wheel_config's
       segment_font_size / wheel.blade.php's :root override) — the min
       shrinks proportionally with it so small-viewport responsiveness is
       preserved regardless of the chosen size, not just at the default. */
    font-size: clamp(calc(var(--segment-font-size) * 0.75), 1vw, var(--segment-font-size));
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
    /* Wraps onto multiple lines instead of overflowing past the slice (or
       past the wheel's own circular clip) when the label is long or
       --segment-font-size is set large. overflow-wrap covers a single word
       too long to fit even after wrapping at spaces. */
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: .1em .2em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .86), 0 0 5px rgba(0, 13, 45, .42);
    transform: translateY(-50%);
}
