@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Nunito+Sans:wght@400;700&display=swap');

:root {
    --zp-bg: #04130d;
    --zp-deep: #06170e;
    --zp-card: #071c12;
    --zp-gold: #f7c51e;
    --zp-gold-soft: #f3cd66;
    --zp-gold-bright: #ffd342;
    --zp-cream: #f4e4b5;
    --zp-btn-text: #504419;
    --zp-shadow: 0 4px 5.9px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.rewards-page {
    min-height: 100dvh;
    background: #02130d;
    color: var(--zp-cream);
    font-family: 'Nunito Sans', sans-serif;
    overflow-x: hidden;
}

.rewards {
    position: relative;
    width: 100%;
    max-width: 402px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 30px 25px 36px;
    overflow-x: hidden;
}

.rewards__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.rewards__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.rewards__bg--desktop {
    display: none;
}

.rewards__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 66px);
}

/* Header */
.rewards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 44px;
}

.rewards-header__logo {
    display: block;
    width: 141px;
    height: 43px;
    flex-shrink: 0;
}

.rewards-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.rewards-header__logo-desktop {
    display: none;
}

.desktop-nav {
    display: none;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 8px 0 10px;
    background: var(--zp-deep);
    border: 0.4px solid var(--zp-gold);
    border-radius: 26px;
    color: var(--zp-cream);
    font-family: inherit;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: pointer;
}

.lang-btn__arrows {
    flex-shrink: 0;
}

.lang-btn__globe {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Intro */
.rewards-intro {
    text-align: center;
    margin-bottom: 28px;
}

.rewards-intro__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 0.924;
    letter-spacing: -0.6px;
    text-transform: capitalize;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 14px;
}

.rewards-intro__sub {
    max-width: 279px;
    margin: 0 auto;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.22px;
    color: var(--zp-cream);
}

/* Cards — mobile: horizontal */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.reward-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 121px;
    padding: 12px 18px 12px 14px;
    background: var(--zp-card);
    border: 0.2px solid var(--zp-gold);
    border-radius: 10px;
    box-shadow: var(--zp-shadow);
}

.reward-card__media {
    position: relative;
    flex: 0 0 143px;
    width: 143px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(-13px 7px 4px rgba(0, 0, 0, 0.25));
}

.reward-card__media--ticket img {
    width: 143px;
    height: auto;
}

.reward-card__media--bracelet {
    flex-basis: 130px;
    width: 130px;
    height: 72px;
}

.reward-card__media--bracelet img {
    width: 130px;
    height: auto;
}

.reward-card__media--stickers {
    flex-basis: 130px;
    width: 130px;
    height: 90px;
}

.reward-card__lemur {
    position: absolute;
    left: 6px;
    bottom: 4px;
    width: 57px;
    height: auto;
    z-index: 1;
    filter: none;
}

.reward-card__hat {
    position: absolute;
    left: 58px;
    top: 8px;
    width: 67px;
    height: auto;
    transform: rotate(6.48deg);
    z-index: 2;
    filter: drop-shadow(-4px 4px 3px rgba(0, 0, 0, 0.2));
}

.reward-card__body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.reward-card__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.08;
    letter-spacing: -0.42px;
    text-transform: capitalize;
    color: var(--zp-gold-soft);
    margin-bottom: 10px;
}

.reward-card__text {
    font-size: 10px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.2px;
    color: var(--zp-cream);
    max-width: 141px;
}

/* CTA */
.zp-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.zp-btn:active {
    transform: scale(0.98);
}

.zp-btn--gold {
    position: relative;
    width: 100%;
    height: 44px;
    margin-top: 28px;
    background: linear-gradient(158deg, #f7c51e 14%, #ffd445 87%);
    color: var(--zp-btn-text);
    border: 1px solid #967509;
    border-radius: 6px;
    box-shadow: 0 4px 0 #bd9611, var(--zp-shadow);
    font-size: 12px;
    font-weight: 700;
}

.zp-btn--gold img {
    width: 19px;
    height: 13px;
    object-fit: contain;
}

.zp-btn__label--desktop {
    display: none;
}

.reward-card__title--desktop {
    display: none;
}

/* ===== Desktop — Figma 122:161 ===== */
@media (min-width: 1024px) {
    body.rewards-page {
        background: #02130d;
    }

    .rewards {
        max-width: 1440px;
        min-height: 100dvh;
        margin: 0 auto;
        padding: 36px 120px 64px;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .rewards__bg--mobile {
        display: none;
    }

    .rewards__bg--desktop {
        display: block;
    }

    .rewards__content {
        min-height: auto;
        gap: 0;
    }

    .rewards-header {
        margin-bottom: 123px;
        gap: 24px;
    }

    .rewards-header__logo {
        width: 218px;
        height: 66px;
    }

    .rewards-header__logo-mobile {
        display: none;
    }

    .rewards-header__logo-desktop {
        display: block;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 1;
        max-width: 783px;
        height: 42px;
        margin: 0 auto;
        padding: 0 18px;
        background: var(--zp-deep);
        border: 0.4px solid var(--zp-gold);
        border-radius: 53px;
    }

    .desktop-nav__link {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 8px;
        color: var(--zp-cream);
        font-size: 15px;
        font-weight: 400;
        line-height: normal;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.15s ease;
    }

    .desktop-nav__link:hover {
        color: var(--zp-gold-bright);
    }

    .desktop-nav__link.is-active {
        color: var(--zp-gold-bright);
        font-weight: 700;
    }

    .lang-btn {
        height: 42px;
        min-width: 98px;
        padding: 0 12px 0 14px;
        border-radius: 53px;
        flex-shrink: 0;
    }

    .lang-btn__globe {
        width: 24px;
        height: 24px;
    }

    .rewards-intro {
        margin-bottom: 60px;
    }

    .rewards-intro__title {
        font-size: 48px;
        letter-spacing: -1.44px;
        margin-bottom: 20px;
    }

    .rewards-intro__sub {
        max-width: 900px;
        font-size: 24px;
        letter-spacing: -0.48px;
    }

    .rewards-list {
        display: grid;
        grid-template-columns: repeat(3, 377px);
        justify-content: center;
        gap: 34px;
        flex: none;
    }

    .reward-card {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 377px;
        height: 452px;
        min-height: 452px;
        padding: 43px 24px 36px;
        gap: 0;
        text-align: center;
    }

    .reward-card__media {
        flex: none;
        width: 100%;
        height: 193px;
        margin-bottom: 40px;
    }

    .reward-card__media--ticket {
        height: 193px;
    }

    .reward-card__media--ticket img {
        width: 291px;
        max-height: 193px;
    }

    .reward-card__media--bracelet {
        width: 100%;
        height: 153px;
        margin-bottom: 59px;
    }

    .reward-card__media--bracelet img {
        width: 277px;
        max-height: 153px;
    }

    .reward-card__media--stickers {
        width: 100%;
        height: 170px;
        margin-bottom: 42px;
    }

    .reward-card__lemur {
        left: 50%;
        bottom: 0;
        width: 123px;
        transform: translateX(-78px);
        filter: none;
    }

    .reward-card__hat {
        left: 50%;
        top: 28px;
        width: 145px;
        transform: translateX(8px) rotate(6.48deg);
    }

    .reward-card__body {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0;
        width: 100%;
    }

    .reward-card__title {
        font-size: 26px;
        line-height: 0.924;
        letter-spacing: -0.78px;
        margin-bottom: 20px;
        max-width: 320px;
    }

    .reward-card__text {
        font-size: 20px;
        letter-spacing: -0.4px;
        max-width: 257px;
    }

    .zp-btn--gold {
        align-self: center;
        width: 377px;
        height: 49px;
        margin-top: 74px;
        font-size: 14px;
        box-shadow: 0 4px 0 #bd9611, var(--zp-shadow);
    }

    .zp-btn--gold img {
        width: 23px;
        height: 19px;
    }

    .zp-btn__label--mobile {
        display: none;
    }

    .zp-btn__label--desktop {
        display: inline;
    }

    .reward-card__title--mobile {
        display: none;
    }

    .reward-card__title--desktop {
        display: block;
    }
}

@media (min-width: 480px) and (max-width: 1023px) {
    .rewards {
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
        overflow: hidden;
    }
}

/* Mid desktop / large tablet: scale cards down if needed */
@media (min-width: 1024px) and (max-width: 1280px) {
    .rewards {
        padding: 28px 48px 48px;
    }

    .rewards-list {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
        gap: 20px;
    }

    .reward-card {
        width: 100%;
        height: auto;
        min-height: 400px;
    }

    .zp-btn--gold {
        width: min(377px, 100%);
    }

    .desktop-nav {
        max-width: 640px;
    }

    .desktop-nav__link {
        font-size: 13px;
    }
}
