﻿@charset "utf-8";
/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

:root {
    --text-color: #ffffff;
    --text-color2: #000;
    --text-muted: rgba(255, 255, 255, 0.85);
    --main-color1: #f7c66b;
    --bg-color1: #b42ba8;
    --bg-color2: #5a1580;
    --cream: #ffe9bd;
    --ink: #3d1a06;
    --card-title: #fbe4ff;
    --font-display: "Playfair Display", Georgia, serif;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.2;
    font-size: 15px;
    color: var(--text-color);
    background: url('../images/bg.webp') no-repeat center top;
    background-size: cover;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--text-color);
}

a:hover,
a:focus,
button:focus,
button:hover {
    text-decoration: none;
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--cream);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
    color: var(--text-color);
    width: 100%;
}

::-webkit-scrollbar {
    width: 5px;
    border-radius: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color2);
    border-radius: 5px;
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--main-color1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--main-color1);
}

.m-show {
    display: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.xmas {
    position: relative;
    overflow-x: hidden;
    padding-bottom: 3rem;
}

.xmas > section,
.xmas > header {
    position: relative;
}

.xmas .container {
    position: relative;
    z-index: 2;
}

/* Decorative floating images */
.deco {
    position: absolute;
    z-index: 1;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.deco--firework {
    mix-blend-mode: screen;
    filter: brightness(1.6);
    transform-origin: center;
    animation: firework-burst var(--fw-duration, 3.4s) var(--fw-delay, 0s) infinite both;
}

.deco--float {
    animation: float 4s ease-in-out infinite;
}

.deco--sway {
    animation: sway 6s ease-in-out infinite;
}

/* Boom -> fade out in place -> rest before the next launch */
@keyframes firework-burst {
    0% {
        opacity: 0;
        transform: scale(0.05);
        filter: brightness(3.5);
        animation-timing-function: cubic-bezier(0.1, 0.9, 0.3, 1);
    }
    3% { opacity: 1; }
    14% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(2.4);
        animation-timing-function: ease-in;
    }
    45%, 100% {
        opacity: 0;
        transform: scale(1.08);
        filter: brightness(1.2);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes sway {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .deco,
    .hang-deco__item,
    .sparkle,
    .castle-star__rays,
    .castle-star__glow {
        animation: none;
    }

    .sparkle {
        display: none;
    }
}

/* Shared teal title pill */
.title-pill {
    display: inline-block;
    min-width: 240px;
    padding: 0.85rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    background: url('../images/date-bg.webp') no-repeat center / 100% 100%;
}

.title-pill--date {
    width: min(420px, 100%);
    padding-block: 1.1rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding-top: clamp(1rem, 2vw, 2.25rem);
    text-align: center;
}

/* Hanging ornaments: positions are % of the original 1800x479 hang-deco artwork */
.hang-deco {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: min(1800px, 94%);
    aspect-ratio: 1800 / 479;
    translate: -50% 0;
    pointer-events: none;
}

.hang-deco__item {
    position: absolute;
    top: 0;
    left: var(--x);
    width: var(--w);
    height: auto;
    animation: ornament-bob var(--bob-duration) var(--bob-delay) cubic-bezier(0.37, 0, 0.63, 1) infinite both;
}

/* --bob only lifts the ornament, so its string never detaches from the top edge */
.hang-deco__item--star { --x: 0%; --w: 6%; --bob: -6%; --bob-duration: 2.8s; --bob-delay: 0s; }
.hang-deco__item--bell { --x: 5.444%; --w: 7.167%; --bob: -2.5%; --bob-duration: 3.6s; --bob-delay: -1.2s; }
.hang-deco__item--flake { --x: 11.5%; --w: 7.278%; --bob: -4%; --bob-duration: 3.2s; --bob-delay: -2s; }

.hang-deco__item--mirror {
    left: auto;
    right: var(--x);
    scale: -1 1;
    animation-delay: calc(var(--bob-delay) - 1.1s);
}

@keyframes ornament-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 var(--bob); }
}

.hero__logo {
    position: relative;
    z-index: 3;
    display: inline-block;
}

.hero__logo img {
    width: 100%;
    height: auto;
}

.hero__title {
    position: relative;
    z-index: 2;
    margin: clamp(-4.5rem, -1.5vw, -1.5rem) 0 0;
    top: 20px;
}

.hero__title-art {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

.hero__title-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* Twinkling star sparkles on the lettering; positions are % of the artwork */
.sparkle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size, 3.4%);
    aspect-ratio: 1;
    translate: -50% -50%;
    pointer-events: none;
    animation: sparkle-twinkle var(--dur, 2.4s) var(--delay, 0s) ease-in-out infinite both;
}

.sparkle::before,
.sparkle::after {
    content: "";
    position: absolute;
    inset: 0;
}

.sparkle::before {
    inset: 22%;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 15%, rgba(255, 248, 210, 0.85) 35%, transparent 70%);
}

.sparkle::after {
    background: radial-gradient(circle, #fff 0 30%, #fff8dc 55%, rgba(255, 236, 170, 0.9) 75%);
    clip-path: polygon(50% 0, 53.5% 46.5%, 100% 50%, 53.5% 53.5%, 50% 100%, 46.5% 53.5%, 0 50%, 46.5% 46.5%);
}

@keyframes sparkle-twinkle {
    0%, 55%, 100% { opacity: 0; scale: 0.2; rotate: 0deg; }
    70% { opacity: 1; scale: 1; rotate: 45deg; }
    85% { opacity: 0.6; scale: 0.6; rotate: 90deg; }
}

.sparkle--1 { --x: 28%; --y: 61%; --dur: 2.6s; --delay: 0s; }
.sparkle--2 { --x: 41%; --y: 60%; --dur: 2.2s; --delay: -0.7s; --size: 2.6%; }
.sparkle--3 { --x: 55%; --y: 62%; --dur: 2.9s; --delay: -1.5s; }
.sparkle--4 { --x: 71%; --y: 59%; --dur: 2.4s; --delay: -0.3s; --size: 4%; }
.sparkle--5 { --x: 33%; --y: 84%; --dur: 2.7s; --delay: -1.1s; --size: 2.8%; }
.sparkle--6 { --x: 48%; --y: 85%; --dur: 2.3s; --delay: -1.9s; }
.sparkle--7 { --x: 63%; --y: 86%; --dur: 2.8s; --delay: -0.5s; --size: 2.6%; }
.sparkle--8 { --x: 72%; --y: 93%; --dur: 2.5s; --delay: -1.4s; --size: 3%; }
.sparkle--9 { --x: 37%; --y: 72%; --dur: 3s; --delay: -2.2s; --size: 2.4%; }
.sparkle--10 { --x: 60%; --y: 73%; --dur: 2.1s; --delay: -0.9s; --size: 2.4%; }
.sparkle--star { --x: 49.95%; --y: 2%; --dur: 1.8s; --delay: -0.4s; --size: 4%; }

/* Glow + rotating rays behind the star on top of the castle */
.castle-star {
    position: absolute;
    left: 49.95%;
    top: 2%;
    width: 9%;
    aspect-ratio: 1;
    translate: -50% -50%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.castle-star__rays,
.castle-star__glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.castle-star__rays {
    background: repeating-conic-gradient(rgba(255, 240, 180, 0.6) 0deg 4deg, transparent 4deg 22.5deg);
    -webkit-mask: radial-gradient(circle, #000 8%, transparent 68%);
    mask: radial-gradient(circle, #000 8%, transparent 68%);
    animation: castle-star-rays 14s linear infinite;
}

.castle-star__glow {
    inset: 25%;
    background: radial-gradient(circle, rgba(255, 250, 215, 0.7) 0%, rgba(255, 215, 110, 0.5) 35%, transparent 70%);
    animation: castle-star-glow 2.2s ease-in-out infinite;
}

@keyframes castle-star-rays {
    to { rotate: 360deg; }
}

@keyframes castle-star-glow {
    0%, 100% { opacity: 0.55; scale: 0.85; }
    50% { opacity: 1; scale: 1.2; }
}

.hero__firework {
    z-index: 0;
}

.hero__firework--1 {top: 14%;left: 15.5%;/* width: 11.5%; */}
.hero__firework--2 { top: 12%; left: 29.5%; width: 8.5%; }
.hero__firework--3 {top: 12%;left: 57.5%;/* width: 11.5%; */}
.hero__firework--4 { top: 28%; left: 72.5%; width: 8.5%; }

.hero__snow {
    top: 86%;
    left: 13%;
    width: min(150px, 7.8%);
}

/* ==========================================================================
   Source of Points
   ========================================================================== */
.points {
    padding-top: 2.75rem;
}

.tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.125rem, 1.8vw, 2.125rem);
    color: var(--cream);
    text-shadow: 0 2px 6px rgba(80, 0, 70, 0.55);
}

.points-board {
    position: relative;
    container-type: inline-size;
    width: min(658px, 100%);
    aspect-ratio: 658 / 287;
    background: url('../images/middle-title-bg.webp') no-repeat center / contain;
}

.points-board__title {
    position: absolute;
    top: 13%;
    left: 31%;
    right: 31%;
    height: 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: max(11px, 2.9cqi);
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.points-board__list {
    position: absolute;
    top: 42%;
    left: 18%;
    right: 18%;
    height: 34%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3em;
    font-size: max(11px, 3.3cqi);
    font-weight: 500;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.points__candy {
    top: 230px;
    left: 13%;
    width: min(162px, 8.4vw);
}

.points__sock {
    top: 100px;
    left: 77.5%;
    width: min(182px, 9.5vw);
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.steps {
    padding-top: 2rem;
}

.steps__subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
}

.steps__list {
    max-width: 920px;
}

.step__frame {
    position: relative;
    display: grid;
    place-items: center;
    /* width: min(230px, 100%); */
    aspect-ratio: 249 / 243;
    margin: 0 auto 1rem;
    background: url('../images/play-bg.webp') no-repeat center / contain;
}

.step__icon {
    height: auto;
    transition: transform 0.3s ease;
}

.step__icon--deposit {/* width: 66%; */margin-top: 4%;}
.step__icon--earn { width: 76%; margin-top: 8%; }
.step__icon--redeem { width: 76%; margin-top: 8%; }

.step:hover .step__icon {
    transform: scale(1.06);
}

.step__title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.step__text {
    max-width: 270px;
    margin-inline: auto;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.steps__firework--right {
    top: 2rem;
    left: 71.5%;
    width: min(290px, 15vw);
}

.steps__firework--left {
    top: 28rem;
    left: 12%;
    /* width: min(230px, 12vw); */
}

.steps__snow {
    top: 16rem;
    left: 80.5%;
    width: min(130px, 6.8vw);
}

/* ==========================================================================
   Christmas Star Collection
   ========================================================================== */
.collection {
    padding-top: 3rem;
}

.star-board {
    position: relative;
    container-type: inline-size;
    width: min(1030px, 100%);
    aspect-ratio: 1030 / 320;
    margin: 0 auto -1rem;
    background: url('../images/winner.webp') no-repeat center / contain;
}

.star-board__stats {
    position: absolute;
    top: 44%;
    left: 22%;
    right: 22%;
    bottom: 26%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
}

.star-board__label {
    margin-bottom: 0.35em;
    font-size: max(11px, 1.75cqi);
    font-weight: 500;
    color: var(--text-color);
}

.star-board__value {
    font-size: max(12px, 2.5cqi);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-color);
    word-break: break-all;
}

.prize-grid {
    max-width: 970px;
    margin-bottom: 4rem;
    margin-top: 30px;
}

.prize-card {
    position: relative;
    container-type: inline-size;
    width: min(303px, 100%);
    aspect-ratio: 303 / 415;
    margin-inline: auto;
    text-align: center;
    background: url('../images/prize-bg.webp') no-repeat center / contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 10px 18px rgba(60, 0, 60, 0.45));
}

.prize-card__media {
    position: absolute;
    top: 12%;
    left: 15%;
    right: 15%;
    /* height: 46%; */
    display: grid;
    place-items: center;
}

.prize-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prize-card__body {
    position: absolute;
    top: 58%;
    left: 11%;
    right: 11%;
    bottom: 11%;
    display: flex;
    flex-direction: column;
    padding-top: 5%;
    border-top: 1px solid rgba(255, 160, 230, 0.45);
    gap: 15px;
}

.prize-card__title {
    margin: 0;
    font-size: 6cqi;
    font-weight: 500;
    line-height: 1.2;
    color: var(--card-title);
}

.prize-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4%;
    padding-inline: 6%;
}

.prize-card__label {
    display: inline-block;
    min-width: 50%;
    padding: 0.25em 0.75em;
    margin-bottom: 0.4em;
    font-size: 4.2cqi;
    font-weight: 700;
    color: var(--text-color2);
    background: linear-gradient(0deg,rgba(241, 201, 137, 1) 0%, rgba(255, 216, 183, 1) 53%, rgba(241, 201, 137, 1) 100%);
    border-radius: 0.4em;
    box-shadow: inset 0 -2px 0 rgba(170, 110, 30, 0.45);
}

.prize-card__value {
    margin: 0;
    font-size: 4.2cqi;
    color: var(--text-color);
}

.collection__gift {
    width: min(209px, 10.5vw);
}

.collection__gift--left { top: 23rem; left: 10.5%; }
.collection__gift--right { top: 38.5rem; left: 78%; }

.collection__snow {
    width: min(140px, 7.3vw);
}

.collection__snow--left { top: 55rem; left: 13%; }
.collection__snow--right { top: 73rem; left: 80.5%; }

/* Terms & Conditions button */
.tnc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(310px, 100%);
    aspect-ratio: 310 / 87;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    background: url('../images/tnc-btn.webp') no-repeat center / contain;
    border: 0;
    padding: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.tnc-btn:hover,
.tnc-btn:focus-visible {
    color: var(--text-color);
    transform: scale(1.04);
    filter: brightness(1.12);
}

/* Terms & Conditions modal */
.tnc-modal {
    --bs-modal-bg: transparent;
    --bs-modal-border-width: 0;
    --bs-modal-border-radius: 0;
    --bs-backdrop-opacity: 0.7;
}

/* play-bg.webp is used as a 9-slice frame: the top slice keeps the string lights.
   The centre slice is not filled because it contains bell/light overhangs. */
.tnc-modal__content {
    color: var(--text-color);
    background: linear-gradient(180deg, #7c1a7d 0%, #691284 40%, #4f0990 100%) padding-box;
    border-style: solid;
    border-width: 80px 52px 42px;
    border-image: url('../images/play-bg.webp') 80 52 42 / 80px 52px 42px round;
    filter: drop-shadow(0 12px 30px rgba(30, 0, 40, 0.6));
}

.tnc-modal__header {
    position: relative;
    justify-content: center;
    padding: 0.25rem 2.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 160, 230, 0.35);
}

.tnc-modal__header .title-pill {
    margin: 0;
}

.tnc-modal__close {
    position: absolute;
    top: 50%;
    right: 20px;
    margin: 0;
    opacity: 0.9;
    transform: translateY(-50%);
}

.tnc-modal__close:hover,
.tnc-modal__close:focus-visible {
    opacity: 1;
}

.tnc-modal__body {
    padding: 1.25rem 0.75rem 1.5rem 0.25rem;
}

.tnc-modal__list {
    padding-left: 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
}

.tnc-modal__list li + li {
    margin-top: 0.4rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767.98px) {
    .hero__title-art {
        width: 130%;
        max-width: none;
        margin-left: -15%;
        top: 25px;
    }

    .title-pill {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .steps__subtitle {
        font-size: 1rem;
    }

    .hero__firework--1{
        width: 100px;
        top: 14%;
        left: 10%;
    }

    .hero__firework--2 {
        top: 45%;
        left: 29.5%;
        width: 8.5%;
    }

    .hero__firework--3 {
        width: 100px;
        top: 35%;
        left: 70%;
    }

    .hero__logo img{
        width: 150px;
    }

    .collection{
        padding-top: 15px;
    }
    
}

@media (max-width: 575.98px) {
    .star-board {
        /* width: 125%; */
        /* margin-left: -12.5%; */
    }

    .prize-card__body {
        top: 55%;
        padding-top: 3cqi;
        gap: 2cqi;
    }

    .prize-card__title {
        font-size: 6.8cqi;
        line-height: 1.1;
    }

    .prize-card__stats {
        margin-top: 7px;
        padding-inline: 2%;
    }

    .prize-card__label,
    .prize-card__value {
        font-size: 5cqi;
    }

    .prize-card__label {
        margin-bottom: 0.2em;
    }

    .step__icon--deposit {
        width: 68%;
    }

    .step__title {
        font-size: 1rem;
    }

    .step__text {
        font-size: 0.8rem;
    }

    .tnc-modal__content {
        border-width: 56px 36px 30px;
        border-image-width: 56px 36px 30px;
    }

    .tnc-modal__list {
        font-size: 0.875rem;
    }
}
