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

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(
            circle at top,
            #174d3b 0%,
            #082b20 35%,
            #031812 70%,
            #010b08 100%
        );

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 15px;

    overflow-x: hidden;
}


.page {
    width: 100%;
    max-width: 650px;

    text-align: center;

    position: relative;
}


/* ========================= */
/* LOGO */
/* ========================= */

.logo {
    width: 150px;
    max-width: 70%;

    display: block;

    margin: 0 auto 15px;

    filter:
        drop-shadow(0 0 15px rgba(212,168,61,0.35));
}


/* ========================= */
/* TITLE */
/* ========================= */

h1 {
    font-family: Georgia, serif;

    color: #d4a83d;

    font-size: 44px;

    letter-spacing: 5px;

    margin-bottom: 8px;

    text-shadow:
        0 0 15px rgba(212,168,61,0.3);
}


.subtitle {
    color: #ddd;

    font-size: 15px;

    margin-bottom: 25px;

    letter-spacing: 1px;
}


/* ========================= */
/* CARD */
/* ========================= */

.card {

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.035)
        );

    border:
        1px solid rgba(212,168,61,0.35);

    backdrop-filter: blur(15px);

    border-radius: 24px;

    padding: 35px 25px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        inset 0 1px rgba(255,255,255,0.08);

    animation: fadeUp 0.6s ease;
}


.gift-icon {
    font-size: 45px;

    margin-bottom: 10px;

    animation: floatGift 2s ease-in-out infinite;
}


.card h2 {
    font-family: Georgia, serif;

    color: #e3bd5c;

    font-size: 28px;

    margin-bottom: 10px;
}


.card p {
    color: #ddd;

    line-height: 1.6;

    margin-bottom: 22px;
}


/* ========================= */
/* INPUT */
/* ========================= */

#phoneInput {

    width: 100%;

    padding: 16px 18px;

    border-radius: 12px;

    border:
        1px solid rgba(212,168,61,0.5);

    background:
        rgba(0,0,0,0.35);

    color: white;

    font-size: 16px;

    outline: none;

    text-align: center;

    margin-bottom: 15px;

    transition: 0.3s;
}


#phoneInput:focus {

    border-color: #d4a83d;

    box-shadow:
        0 0 20px rgba(212,168,61,0.18);
}


#phoneInput::placeholder {
    color: #aaa;
}


/* ========================= */
/* PRIMARY BUTTON */
/* ========================= */

.primary-btn {

    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f2d16b,
            #b8862c
        );

    color: #071b13;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(212,168,61,0.25);

    transition: 0.25s;
}


.primary-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(212,168,61,0.35);
}


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


/* ========================= */
/* ERROR */
/* ========================= */

.error {

    color: #ff7676 !important;

    font-size: 13px;

    min-height: 18px;

    margin-top: 8px;
}


/* ========================= */
/* SPIN SCREEN */
/* ========================= */

.spin-screen {

    animation: fadeUp 0.6s ease;
}


.welcome {

    color: #e3bd5c;

    font-size: 17px;

    margin-bottom: 15px;
}


/* ========================= */
/* WHEEL AREA */
/* ========================= */

.wheel-area {

    width: min(90vw, 520px);

    aspect-ratio: 1;

    margin: auto;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* ========================= */
/* POINTER */
/* ========================= */

.pointer {

    position: absolute;

    top: -3px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 20;

    font-size: 42px;

    line-height: 1;

    color: #f1cf68;

    text-shadow:
        0 3px 10px rgba(0,0,0,0.7);

    filter:
        drop-shadow(0 0 7px rgba(212,168,61,0.6));
}


/* ========================= */
/* CANVAS */
/* ========================= */

#wheel {

    width: 100%;

    height: 100%;

    border-radius: 50%;

    box-shadow:

        0 0 0 8px #d4a83d,

        0 0 0 14px #0a2f23,

        0 0 35px rgba(212,168,61,0.35),

        0 25px 60px rgba(0,0,0,0.55);
}


/* ========================= */
/* SPIN BUTTON */
/* ========================= */

#spinBtn {

    position: absolute;

    width: 115px;

    height: 115px;

    border-radius: 50%;

    border:
        5px solid #0b3d2e;

    background:
        radial-gradient(
            circle,
            #f3d574,
            #c49430
        );

    color: #072117;

    font-size: 21px;

    font-weight: 900;

    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.5),
        inset 0 2px 5px rgba(255,255,255,0.5);

    z-index: 10;

    transition: 0.2s;
}


#spinBtn:hover {

    transform: scale(1.06);

    box-shadow:
        0 5px 25px rgba(212,168,61,0.45);
}


#spinBtn:active {
    transform: scale(0.98);
}


#spinBtn:disabled {

    cursor: not-allowed;

    opacity: 0.65;
}


/* ========================= */
/* RESULT */
/* ========================= */

.result {

    margin: 25px auto 15px;

    max-width: 500px;

    padding: 18px;

    border-radius: 15px;

    background:
        rgba(255,255,255,0.06);

    border:
        1px solid rgba(212,168,61,0.2);

    color: #ddd;

    font-size: 16px;

    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* ========================= */
/* WHATSAPP */
/* ========================= */

.whatsapp-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    padding: 15px 24px;

    border-radius: 12px;

    background:
        #20c463;

    color: white;

    font-weight: 800;

    letter-spacing: 0.3px;

    box-shadow:
        0 8px 25px rgba(32,196,99,0.2);

    transition: 0.25s;
}


.whatsapp-btn:hover {

    transform: translateY(-2px);

    background: #24d96d;
}


/* ========================= */
/* ALREADY PLAYED */
/* ========================= */

.success-icon {

    font-size: 55px;

    margin-bottom: 10px;
}


.saved-offer {

    margin: 25px 0;

    padding: 22px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(212,168,61,0.15),
            rgba(255,255,255,0.04)
        );

    border:
        1px solid rgba(212,168,61,0.35);
}


.saved-offer span {

    display: block;

    color: #aaa;

    font-size: 12px;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.saved-offer strong {

    display: block;

    color: #f0cd67;

    font-family: Georgia, serif;

    font-size: 32px;

    margin-bottom: 10px;
}


.saved-offer small {

    color: #ddd;

    font-size: 14px;
}


.tomorrow {

    margin-top: 22px;

    color: #aaa !important;

    font-size: 13px;
}


.countdown {

    margin-top: 12px;

    color: #e4bd5b;

    font-weight: 700;

    font-size: 15px;
}


/* ================================================= */
/* PREMIUM WIN POPUP */
/* ================================================= */

.popup-overlay {

    position: fixed;

    inset: 0;

    z-index: 999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0,0,0,0.82);

    backdrop-filter: blur(12px);

    animation: overlayIn 0.35s ease;
}


.popup-overlay.show {

    display: flex;
}


/* POPUP */

.win-popup {

    width: min(92vw, 460px);

    position: relative;

    overflow: hidden;

    text-align: center;

    padding: 38px 25px 30px;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #0d3d2e,
            #061e16
        );

    border:
        2px solid rgba(212,168,61,0.65);

    box-shadow:
        0 30px 100px rgba(0,0,0,0.7),
        0 0 60px rgba(212,168,61,0.15);

    animation: popupIn 0.55s cubic-bezier(.17,.67,.35,1.3);
}


.popup-glow {

    position: absolute;

    width: 250px;

    height: 250px;

    top: -130px;

    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(242,209,107,0.3),
            transparent 70%
        );

    pointer-events: none;
}


/* CLOSE */

.close-popup {

    position: absolute;

    top: 12px;

    right: 15px;

    width: 35px;

    height: 35px;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.08);

    color: white;

    font-size: 25px;

    cursor: pointer;

    z-index: 5;
}


.close-popup:hover {

    background:
        rgba(255,255,255,0.15);
}


/* TROPHY */

.trophy {

    font-size: 65px;

    margin-bottom: 5px;

    animation:
        trophyPop 0.7s ease,
        trophyFloat 2s ease-in-out 0.7s infinite;
}


/* CONGRATS */

.congrats {

    color: #f3d574;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 5px;
}


.win-popup h2 {

    font-family: Georgia, serif;

    color: white;

    font-size: 42px;

    letter-spacing: 3px;

    margin-bottom: 22px;

    text-shadow:
        0 0 20px rgba(242,209,107,0.3);
}


/* WINNING OFFER */

.winning-offer {

    padding: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(212,168,61,0.20),
            rgba(212,168,61,0.05)
        );

    border:
        1px solid rgba(212,168,61,0.5);

    margin-bottom: 15px;
}


.winning-offer span {

    display: block;

    color: #cfcfcf;

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.winning-offer strong {

    display: block;

    font-family: Georgia, serif;

    font-size: 38px;

    color: #f4d56f;

    text-shadow:
        0 0 20px rgba(242,209,107,0.25);
}


/* COUPON */

.coupon-box {

    padding: 15px;

    border:
        1px dashed rgba(212,168,61,0.55);

    border-radius: 12px;

    margin-bottom: 15px;
}


.coupon-box span {

    display: block;

    color: #aaa;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 6px;
}


.coupon-box strong {

    color: white;

    font-size: 21px;

    letter-spacing: 3px;
}


/* TEXT */

.reserved-text {

    color: #ccc;

    font-size: 14px;

    margin-bottom: 10px;
}


.validity {

    color: #f0cd67;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 20px;
}


/* POPUP WHATSAPP */

.popup-whatsapp {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 16px;

    border-radius: 12px;

    background:
        #20c463;

    color: white;

    text-decoration: none;

    font-weight: 900;

    margin-bottom: 10px;

    box-shadow:
        0 8px 25px rgba(32,196,99,0.2);

    transition: 0.25s;
}


.popup-whatsapp:hover {

    transform: translateY(-2px);

    background: #25d96d;
}


/* CONTINUE */

.continue-btn {

    width: 100%;

    padding: 13px;

    border-radius: 12px;

    border:
        1px solid rgba(212,168,61,0.35);

    background:
        rgba(255,255,255,0.05);

    color: #ddd;

    cursor: pointer;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s;
}


.continue-btn:hover {

    background:
        rgba(255,255,255,0.10);
}


/* ================================================= */
/* CONFETTI */
/* ================================================= */

#confettiContainer {

    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 2000;
}


.confetti {

    position: absolute;

    width: 9px;

    height: 16px;

    top: -30px;

    animation:
        confettiFall linear forwards;
}


/* ========================= */
/* ANIMATIONS */
/* ========================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(20px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}


@keyframes floatGift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


@keyframes overlayIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes popupIn {

    0% {

        opacity: 0;

        transform:
            scale(0.7)
            translateY(30px);
    }

    100% {

        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }
}


@keyframes trophyPop {

    0% {

        transform:
            scale(0)
            rotate(-20deg);

        opacity: 0;
    }

    70% {

        transform:
            scale(1.15)
            rotate(5deg);
    }

    100% {

        transform:
            scale(1)
            rotate(0);
    }
}


@keyframes trophyFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


@keyframes confettiFall {

    0% {

        transform:
            translateY(-30px)
            rotate(0deg);

        opacity: 1;
    }

    100% {

        transform:
            translateY(110vh)
            rotate(720deg);

        opacity: 0;
    }
}


/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 600px) {

    body {
        padding: 20px 12px;
    }


    .logo {
        width: 125px;
    }


    h1 {
        font-size: 32px;

        letter-spacing: 3px;
    }


    .subtitle {
        font-size: 13px;

        margin-bottom: 20px;
    }


    .card {
        padding: 28px 18px;
    }


    .wheel-area {
        width: min(92vw, 440px);
    }


    #spinBtn {

        width: 90px;

        height: 90px;

        font-size: 17px;
    }


    .pointer {
        font-size: 34px;
    }


    .win-popup {

        padding:
            32px
            18px
            22px;

        border-radius: 22px;
    }


    .trophy {
        font-size: 55px;
    }


    .win-popup h2 {
        font-size: 34px;
    }


    .winning-offer strong {
        font-size: 31px;
    }


    .coupon-box strong {
        font-size: 18px;
    }
}