.rewards-page {
    color: #f7ead4;
}

.rewards-main {
    width: min(100% - 42px, 1180px);
    max-width: 1180px;
    padding-top: 130px;
    padding-bottom: 70px;
    background:
        linear-gradient(180deg, rgba(8, 6, 8, 0.45), rgba(8, 4, 2, 0.82)),
        var(--rewards-bg);
    background-size: cover;
    background-position: center top;
    border-radius: 0 0 24px 24px;
}

.rewards-hero {
    margin: 0 auto 28px;
    text-align: center;
}

.rewards-hero h1 {
    margin: 0 0 12px;
    color: #fff2d4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.rewards-hero p {
    width: min(720px, 100%);
    margin: 0 auto;
    color: #d9c8ae;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.rewards-featured,
.reward-card {
    background:
        radial-gradient(circle at top right, rgba(173, 94, 30, 0.26), transparent 38%),
        linear-gradient(145deg, rgba(52, 34, 24, 0.94), rgba(25, 13, 8, 0.94));
    border: 1px solid rgba(220, 156, 72, 0.62);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 232, 180, 0.08);
}

.rewards-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 28px;
    align-items: center;
    min-height: 315px;
    padding: 34px;
    border-radius: 10px;
}

.rewards-featured-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.rewards-date {
    color: #e9c27f;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.rewards-featured h2 {
    margin: 0;
    color: #fff0cf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.5vw, 48px);
    line-height: 1.08;
}

.rewards-featured strong,
.rewards-featured p {
    color: #f0ddc1;
    font-size: 17px;
    line-height: 1.55;
}

.rewards-featured p {
    max-width: 610px;
    margin: 0;
}

.rewards-button,
.reward-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    color: #1b1006;
    background: linear-gradient(135deg, #ffd477, #c8812c);
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.rewards-button:hover,
.reward-card__button:hover,
.rewards-button:focus-visible,
.reward-card__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(255, 183, 73, 0.38);
    filter: brightness(1.06);
}

.rewards-featured-media {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    align-items: center;
}

.rewards-featured-image,
.rewards-featured-gallery img {
    width: 100%;
    object-fit: cover;
    border: 2px solid rgba(255, 194, 92, 0.68);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
}

.rewards-featured-image {
    aspect-ratio: 1 / 1.35;
}

.rewards-featured-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rewards-featured-gallery img {
    aspect-ratio: 1 / 1;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.reward-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 10px;
    animation: reward-card-in 0.55s ease both;
    animation-delay: var(--reward-delay, 0ms);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reward-card:hover,
.reward-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 128, 0.92);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42), 0 0 24px rgba(255, 166, 60, 0.2);
}

.reward-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.reward-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.reward-card:hover .reward-card__image,
.reward-card:focus-within .reward-card__image {
    transform: scale(1.05);
}

.reward-card__date {
    position: absolute;
    right: 10px;
    bottom: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(18, 10, 5, 0.82);
    color: #ffd58c;
    font-size: 12px;
    font-weight: 900;
}

.reward-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.reward-card__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.15;
}

.reward-card__title a {
    color: #fff1cc;
    text-decoration: none;
    transition: color 0.25s ease;
}

.reward-card__title a:hover,
.reward-card__title a:focus-visible {
    color: #ffd37d;
}

.reward-card__excerpt,
.reward-card__text {
    margin: 0;
    color: #e1d2bc;
    font-size: 14px;
    line-height: 1.55;
}

.reward-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.reward-card__button {
    margin-top: auto;
}

.reward-card a:focus-visible,
.rewards-featured a:focus-visible {
    outline: 2px solid #ffe4a3;
    outline-offset: 3px;
}

@keyframes reward-card-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .rewards-featured {
        grid-template-columns: 1fr;
    }

    .rewards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rewards-main {
        width: min(100% - 24px, 1180px);
        padding-top: 112px;
    }

    .rewards-featured {
        padding: 20px;
    }

    .rewards-featured-media {
        grid-template-columns: 1fr;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reward-card,
    .reward-card__image,
    .rewards-button,
    .reward-card__button {
        animation: none;
        transition: none;
    }
}
