/* ================================================================
   /rewards — every way to earn. Desktop theme only; .rwx-* only.
   Gold is the page's colour (it is a page about prizes); each card
   adds its own accent through --c.
   ================================================================ */
.rwx-hero, .rwx-wrap { --gold: 251, 191, 36; --gold-hi: 255, 226, 138; }

/* ── Hero ─────────────────────────────────────────────────────── */
.rwx-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 70px 24px 54px; text-align: center;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(var(--gold), .22), transparent 70%),
        radial-gradient(ellipse 40% 50% at 12% 100%, rgba(244, 114, 182, .12), transparent 70%),
        radial-gradient(ellipse 40% 50% at 88% 100%, rgba(45, 212, 191, .12), transparent 70%),
        linear-gradient(180deg, #17141a 0%, #0e0e13 100%);
}
.rwx-hero.has-banner::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: var(--rwx-banner) center / cover no-repeat; opacity: .28;
}
/* Sparkles: four-point stars at fixed, uneven spots, each twinkling on its
   own beat. Nothing moves across the page. */
.rwx-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rwx-sparks i {
    position: absolute; width: var(--s); height: var(--s);
    background: radial-gradient(circle, #fff 0%, rgb(var(--gold-hi)) 45%, rgba(var(--gold), .6) 100%);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    filter: drop-shadow(0 0 6px rgba(var(--gold), .9));
    animation: rwx-twinkle 4.2s ease-in-out infinite; animation-delay: var(--d);
}
.rwx-sparks i:nth-child(3n) { animation-duration: 5.6s; }
.rwx-sparks i:nth-child(4n) { animation-duration: 3.4s; }
@keyframes rwx-twinkle {
    0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
    50% { opacity: .95; transform: scale(1) rotate(45deg); }
}

/* Real reward items floating either side of the title. */
.rwx-float { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rwx-float span {
    position: absolute; width: 62px; height: 62px; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; background: rgba(20, 18, 24, .78);
    border: 1px solid rgba(var(--gold), .35);
    box-shadow: 0 0 26px rgba(var(--gold), .22), inset 0 0 14px rgba(var(--gold), .10);
    animation: rwx-bob 5s ease-in-out infinite;
}
.rwx-float img { max-width: 44px; max-height: 44px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.rwx-float span:nth-child(1)  { left: calc(50% - 440px); top: 30%; rotate: -8deg; }
.rwx-float span:nth-child(2)  { left: calc(50% + 380px); top: 27%; rotate: 9deg;  animation-delay: -1.2s; }
.rwx-float span:nth-child(3)  { left: calc(50% - 500px); top: 70%; rotate: 6deg;  animation-delay: -2.1s; scale: .86; }
.rwx-float span:nth-child(4)  { left: calc(50% + 440px); top: 72%; rotate: -6deg; animation-delay: -3.3s; scale: .86; }
.rwx-float span:nth-child(5)  { left: calc(50% - 640px); top: 48%; rotate: 12deg; animation-delay: -.6s;  scale: .78; }
.rwx-float span:nth-child(6)  { left: calc(50% + 580px); top: 46%; rotate: -12deg; animation-delay: -2.7s; scale: .78; }
.rwx-float span:nth-child(7)  { left: calc(50% - 300px); top: 12%; rotate: 4deg;  animation-delay: -4s;   scale: .7; opacity: .8; }
.rwx-float span:nth-child(8)  { left: calc(50% + 250px); top: 10%; rotate: -5deg; animation-delay: -1.8s; scale: .7; opacity: .8; }
.rwx-float span:nth-child(9)  { left: calc(50% - 560px); top: 14%; rotate: -14deg; animation-delay: -3s;  scale: .64; opacity: .65; }
.rwx-float span:nth-child(10) { left: calc(50% + 500px); top: 80%; rotate: 14deg; animation-delay: -.3s;  scale: .64; opacity: .65; }
@keyframes rwx-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 1100px) { .rwx-float { display: none; } }

.rwx-hero-in { max-width: 760px; margin: 0 auto; }
.rwx-gift {
    width: 76px; height: 76px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
    border-radius: 22px; font-size: 34px; color: #2a1a00;
    background: linear-gradient(145deg, rgb(var(--gold-hi)), rgb(var(--gold)) 55%, #e08a0b);
    box-shadow: 0 10px 40px rgba(var(--gold), .45), inset 0 2px 0 rgba(255, 255, 255, .5);
    animation: rwx-wiggle 4s ease-in-out infinite;
}
@keyframes rwx-wiggle {
    0%, 82%, 100% { transform: rotate(0) scale(1); }
    86% { transform: rotate(-9deg) scale(1.06); }
    90% { transform: rotate(8deg) scale(1.06); }
    94% { transform: rotate(-5deg) scale(1.03); }
}
.rwx-hero h1 {
    margin: 0; font-size: 54px; font-weight: 800; letter-spacing: .5px; line-height: 1.05;
    background: linear-gradient(180deg, #fff 20%, rgb(var(--gold-hi)) 60%, rgb(var(--gold)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 22px rgba(var(--gold), .35));
}
.rwx-sub { margin: 14px auto 0; max-width: 600px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.rwx-intro { margin: 14px auto 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .58); }

/* ── Sections ─────────────────────────────────────────────────── */
.rwx-wrap { max-width: 1200px; margin: 0 auto; padding: 8px 18px 70px; }
.rwx-sec { margin-top: 44px; }
.rwx-sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.rwx-sec-ic {
    flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 13px; font-size: 18px; color: rgb(var(--gold));
    background: rgba(var(--gold), .12); border: 1px solid rgba(var(--gold), .3);
}
.rwx-sec-h h2 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; line-height: 1.2; }
.rwx-sec-h p { margin: 3px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .55); }

.rwx-grid { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Card ─────────────────────────────────────────────────────── */
.rwx-card {
    position: relative; overflow: hidden; isolation: isolate;
    flex: 1 1 330px; min-width: 0; display: flex; flex-direction: column;
    padding: 24px 24px 22px; border-radius: 20px; text-decoration: none;
    background:
        linear-gradient(180deg, rgba(var(--c), .13) 0%, rgba(var(--c), .03) 42%, rgba(255, 255, 255, .015) 100%),
        #121117;
    border: 1px solid rgba(var(--c), .26);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rwx-card-glow {
    position: absolute; z-index: -1; top: -90px; right: -70px; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--c), .34), transparent 68%);
    transition: transform .35s ease, opacity .35s ease; opacity: .7;
}
/* A big, faint copy of the card's icon, tucked in the corner. */
.rwx-card::after {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .09) 50%, transparent 60%);
    transform: translateX(-100%); transition: none;
}
.rwx-card:hover {
    transform: translateY(-6px); border-color: rgba(var(--c), .7);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .5), 0 0 34px rgba(var(--c), .2);
}
.rwx-card:hover::after { transform: translateX(100%); transition: transform .7s ease; }
.rwx-card:hover .rwx-card-glow { transform: scale(1.25); opacity: 1; }
.rwx-card:focus-visible { outline: 2px solid rgb(var(--c)); outline-offset: 3px; }

.rwx-card-top { display: flex; align-items: center; gap: 14px; }
.rwx-ic {
    flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; font-size: 24px; color: #14121a;
    background: linear-gradient(145deg, rgba(var(--c), 1), rgba(var(--c), .7));
    box-shadow: 0 8px 22px rgba(var(--c), .35), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .25s ease;
}
.rwx-card:hover .rwx-ic { transform: rotate(-8deg) scale(1.08); }
.rwx-card-h { min-width: 0; }
.rwx-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.rwx-tag {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgb(var(--c));
}
.rwx-tag i { font-size: 9px; }

.rwx-prize { margin: 20px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.rwx-prize b {
    font-size: 38px; font-weight: 800; line-height: 1; color: rgb(var(--c)); font-variant-numeric: tabular-nums;
    text-shadow: 0 0 26px rgba(var(--c), .45);
}
.rwx-prize span { font-size: 16px; font-weight: 700; color: #fff; }
.rwx-prize small { flex: 1 0 100%; margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

.rwx-desc { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); }

.rwx-loot { margin-top: 18px; }
.rwx-loot-lbl { display: block; margin-bottom: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.rwx-items { display: flex; flex-wrap: wrap; gap: 8px; }
.rwx-item {
    width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
    border-radius: 13px; cursor: help;
    background: radial-gradient(circle at 50% 35%, rgba(var(--c), .2), rgba(0, 0, 0, .38) 72%);
    border: 1px solid rgba(var(--c), .3);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rwx-item img { max-width: 40px; max-height: 40px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.rwx-item:hover { transform: translateY(-4px) scale(1.08); border-color: rgba(var(--c), .9); box-shadow: 0 8px 20px rgba(var(--c), .3); }

.rwx-cta {
    margin-top: auto; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 18px; border-radius: 12px;
    font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #14121a;
    background: linear-gradient(180deg, rgba(var(--c), 1), rgba(var(--c), .82));
    box-shadow: 0 8px 22px rgba(var(--c), .25), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: filter .15s ease;
}
.rwx-desc + .rwx-cta, .rwx-loot + .rwx-cta { margin-top: auto; }
.rwx-card > .rwx-cta { margin-top: 22px; }
.rwx-card > .rwx-desc { flex: 0 0 auto; }
.rwx-card > .rwx-loot, .rwx-card.is-bare > .rwx-desc { margin-bottom: auto; }
.rwx-cta .fa-arrow-right { transition: transform .18s ease; }
.rwx-cta .fa-lock { font-size: 11px; opacity: .75; }
.rwx-card:hover .rwx-cta { filter: brightness(1.1); }
.rwx-card:hover .rwx-cta .fa-arrow-right { transform: translateX(5px); }

/* ── Sign-up band (guests only) ───────────────────────────────── */
.rwx-join {
    margin-top: 54px; padding: 30px 34px; border-radius: 22px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
    background:
        radial-gradient(ellipse 50% 140% at 0% 50%, rgba(var(--gold), .22), transparent 70%),
        linear-gradient(90deg, #1b1610, #14121a);
    border: 1px solid rgba(var(--gold), .38);
}
.rwx-join-ic {
    flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    border-radius: 18px; font-size: 28px; color: #2a1a00;
    background: linear-gradient(145deg, rgb(var(--gold-hi)), rgb(var(--gold)) 55%, #e08a0b);
    box-shadow: 0 8px 28px rgba(var(--gold), .4);
}
.rwx-join-txt { flex: 1 1 300px; }
.rwx-join h2 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; }
.rwx-join p { margin: 5px 0 0; font-size: 14px; color: rgba(255, 255, 255, .65); }
.rwx-join-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rwx-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 12px;
    font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; text-decoration: none;
    color: #fff; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05);
    transition: filter .15s ease, transform .15s ease, border-color .15s ease;
}
.rwx-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .45); transform: translateY(-2px); }
.rwx-btn.is-main {
    color: #2a1a00; border-color: transparent;
    background: linear-gradient(180deg, rgb(var(--gold-hi)), rgb(var(--gold)));
    box-shadow: 0 8px 26px rgba(var(--gold), .35);
}
.rwx-btn.is-main:hover { color: #2a1a00; filter: brightness(1.08); }

@media (max-width: 700px) {
    .rwx-hero { padding: 46px 18px 36px; }
    .rwx-hero h1 { font-size: 38px; }
    .rwx-card { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .rwx-float span, .rwx-gift { animation: none; }
    .rwx-sparks i { animation: none; opacity: .6; }
    .rwx-card, .rwx-card *, .rwx-item, .rwx-btn { transition: none; }
    .rwx-card:hover::after { transition: none; transform: translateX(-100%); }
}

/* The hero melts into the page instead of ending on a hard line: the bottom
   fades to the body colour (rgb(15,17,22)), the top takes a soft shadow from
   the navigation above it. */
.rwx-hero { padding-bottom: 84px; }
.rwx-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -2; pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 17, 22, 0) 0%, rgba(15, 17, 22, .7) 55%, rgb(15, 17, 22) 100%);
}
.rwx-hero { box-shadow: inset 0 26px 30px -22px rgba(0, 0, 0, .75); }
.rwx-hero + .rwx-wrap { margin-top: -30px; position: relative; }

/* Exactly four cards in a section sit 2 × 2 rather than 3 + 1 stretched. */
.rwx-card:first-child:nth-last-child(4),
.rwx-card:first-child:nth-last-child(4) ~ .rwx-card { flex-basis: 40%; }

/* The sign-up band now opens the page, right under the hero. */
.rwx-wrap > .rwx-join:first-child { margin-top: 0; }
