
/* =========================================
   TRICK OR TREAT
   Original design - responsive scaling
========================================= */

.trickortreat-page {
    --orange: #f68c2c;
    --charcoal: #363534;
    --dune: #f1efeb;
    --white: #fff;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 18px;
    background: var(--dune);
    color: var(--charcoal);
    font-family: Arial, Helvetica, sans-serif;
    display: grid;
    place-items: center;
}

    .trickortreat-page *,
    .trickortreat-page *::before,
    .trickortreat-page *::after {
        box-sizing: border-box;
    }

    /* =========================================
   MAIN LAYOUT
========================================= */

    .trickortreat-page .panel {
        width: min(92vw, 800px);
        margin: 0 auto;
        text-align: center;
    }

    /* Original Ashley logo */
    .trickortreat-page .logo-wrap {
        width: clamp(195px, 22vw, 280px);
        height: auto;
        margin: 0 auto 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trickortreat-page .logo {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* FRIENDS & FAMILY */
    .trickortreat-page .kicker {
        font-size: clamp(14px, 1.3vw, 18px);
        letter-spacing: .18em;
        font-weight: 800;
        margin-bottom: 8px;
    }

    /* TRICK OR TREAT */
    .trickortreat-page .title {
        font-size: clamp(34px, 6vw, 76px);
        line-height: .92;
        margin: 0;
        color: var(--charcoal);
        font-weight: 900;
    }

        .trickortreat-page .title span {
            color: var(--orange);
        }

    /* Instruction text */
    .trickortreat-page .sub {
        margin: 14px auto 0;
        max-width: 600px;
        font-size: clamp(17px, 1.5vw, 21px);
        line-height: 1.35;
    }

    /* =========================================
   PUMPKIN
========================================= */

    .trickortreat-page .pumpkin-wrap {
        position: relative;
        /* Scales to viewport without distortion */
        width: min(90vw, 50dvh, 560px);
        aspect-ratio: 1 / 1;
        margin: 46px auto 0;
        filter: drop-shadow( 0 12px 18px rgba(54, 53, 52, .18) );
        /* All children scale relative to pumpkin */
        container-type: inline-size;
    }

    /* =========================================
   ORIGINAL PRIZE REVEAL
========================================= */

    .trickortreat-page .reveal {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--charcoal);
        color: var(--white);
        /* Original grid layout */
        display: grid;
        place-content: center;
        text-align: center;
        /* Proportional to original 350px pumpkin */
        padding: 13.714cqw;
        border: 2.857cqw solid var(--orange);
    }

        /* YOU REVEALED */
        .trickortreat-page .reveal .small {
            font-size: 4.286cqw;
            letter-spacing: .15em;
            font-weight: 800;
            line-height: normal;
            white-space: nowrap;
        }

        /* $25 */
        .trickortreat-page .reveal .amount {
            font-size: 26.286cqw;
            line-height: .9;
            font-weight: 900;
            color: var(--orange);
            margin: 2.286cqw 0;
            white-space: nowrap;
        }

    /* Original asterisk */
    .trickortreat-page .offer-star {
        font-size: .48em;
        vertical-align: super;
        margin-left: 2px;
    }

    /* OFF */
    .trickortreat-page .reveal .off {
        font-size: 7.714cqw;
        font-weight: 900;
        line-height: normal;
    }

    /* YOUR PURCHASE */
    .trickortreat-page .reveal .purchase {
        font-size: 4cqw;
        margin-top: 2cqw;
        line-height: normal;
        white-space: nowrap;
    }

    /* =========================================
   ORIGINAL PUMPKIN STEM
========================================= */

    .trickortreat-page .stem {
        position: absolute;
        z-index: 4;
        top: -6.857cqw;
        left: 50%;
        width: 13.714cqw;
        height: 15.429cqw;
        transform: translateX(-50%) rotate(7deg);
        background: var(--charcoal);
        border-radius: 15px 15px 4px 4px;
    }

    /* Original leaf */
    .trickortreat-page .leaf {
        position: absolute;
        z-index: 3;
        top: -1.143cqw;
        left: 58%;
        width: 14.857cqw;
        height: 8cqw;
        background: var(--charcoal);
        border-radius: 100% 0 100% 0;
        transform: rotate(-14deg);
    }

    /* =========================================
   SCRATCH CANVAS
========================================= */

    .trickortreat-page #trick-scratch {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        touch-action: none;
        cursor: grab;
        z-index: 5;
    }

        .trickortreat-page #trick-scratch:active {
            cursor: grabbing;
        }

    /* =========================================
   DISCLAIMER
========================================= */

    .trickortreat-page .fine {
        font-size: 11px;
        line-height: 1.4;
        margin: 22px auto 0;
/*        max-width: 430px;*/
        color: #5c5a58;
    }

/* =========================================
   IPAD / TABLET
========================================= */

@media (max-width: 1100px) {
    .trickortreat-page .panel {
        width: 94%;
    }

    .trickortreat-page .pumpkin-wrap {
        width: min(86vw, 49dvh, 530px);
    }
}

/* =========================================
   IPHONE / MOBILE
========================================= */

@media (max-width: 650px) {
    .trickortreat-page {
        padding: 20px 14px;
    }

        .trickortreat-page .panel {
            width: 100%;
        }

        .trickortreat-page .logo-wrap {
            width: clamp(180px, 52vw, 225px);
            margin-bottom: 15px;
        }

        .trickortreat-page .kicker {
            font-size: 13px;
        }

        .trickortreat-page .title {
            font-size: clamp(34px, 10vw, 54px);
        }

        .trickortreat-page .sub {
            font-size: 16px;
            max-width: 340px;
        }

        .trickortreat-page .pumpkin-wrap {
            width: min(90vw, 48dvh, 410px);
            margin-top: 42px;
        }

        .trickortreat-page .fine {
            font-size: 11px;
            max-width: 340px;
        }
}

/* =========================================
   SHORT LANDSCAPE SCREENS
========================================= */

@media (max-height: 600px) and (min-width: 651px) {
    .trickortreat-page .pumpkin-wrap {
        width: min(48dvh, 350px);
        margin-top: 20px;
    }

    .trickortreat-page .logo-wrap {
        width: 190px;
        margin-bottom: 10px;
    }

    .trickortreat-page .title {
        font-size: 42px;
    }
}

/* Remove extra top space on iPhone */
@media (max-width: 650px) {
    .trickortreat-page {
        min-height: calc(100dvh - 55px);
        padding: 10px 14px 24px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

        .trickortreat-page .panel {
            width: 100%;
            margin: 0 auto;
        }
}
/* =========================================
   NEW HTML - DEFAULT TEXT DISPLAY
========================================= */

.trickortreat-page .sub-line {
    display: inline;
}

.trickortreat-page .disclaimer-desktop {
    display: block;
}

.trickortreat-page .disclaimer-mobile {
    display: none;
}


/* =========================================
   DESKTOP ONLY
   Updated sizing + single-line disclaimer
========================================= */

@media (min-width: 1101px) {

    .trickortreat-page .sub {
        max-width: 500px;
        font-size: 17px;
    }

    .trickortreat-page .pumpkin-wrap {
        width: min(78vw, 350px);
    }

    .trickortreat-page .fine {
        max-width: none;
        width: max-content;
        white-space: nowrap;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
}


/* =========================================
   MOBILE - DISCLAIMER FORMATTING ONLY
   Keep existing iPhone layout unchanged
========================================= */

@media (max-width: 650px) {

    .trickortreat-page .sub-line {
        display: block;
    }

    .trickortreat-page .disclaimer-desktop {
        display: none;
    }

    .trickortreat-page .disclaimer-mobile {
        display: block;
    }

        .trickortreat-page .disclaimer-mobile span {
            display: block;
        }
}

/* Space between instruction text and pumpkin */
.trickortreat-page .pumpkin-wrap {
    margin-top: 52px;
}

/* Slightly tighter spacing on mobile */
@media (max-width: 650px) {
    .trickortreat-page .pumpkin-wrap {
        margin-top: 48px;
    }
}