/**
 * Popups, inline forms, quizzes, reading-progress bar.
 *
 * Same family as the exit offer (.dtf-offer in main.css): white card, red
 * action, grey dismiss. Pixel values only. !important only where Tailwind's
 * preflight strips button/input backgrounds and borders.
 */

/* ---- modal ---------------------------------------------------------------- */
.dtf-pop {
    inset: 0;
    position: fixed;
    z-index: 9500;
}

body.dtf-pop-open {
    overflow: hidden;
}

.dtf-pop__backdrop {
    background: rgba(17, 17, 17, 0.55);
    inset: 0;
    position: absolute;
}

.dtf-pop__card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.32);
    left: 50%;
    max-height: calc(100vh - 32px);
    max-width: 440px;
    overflow-y: auto;
    padding: 40px 34px 30px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
}

.dtf-pop__card:focus {
    outline: none;
}

/* preflight */
.dtf-pop__x {
    background: none !important;
    border: 0 !important;
    color: #8a9099;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 6px 10px;
    position: absolute;
    right: 8px;
    top: 8px;
}

.dtf-pop__x:hover {
    color: #1d2327;
}

/* ---- body (shared by modal and inline) ------------------------------------

   The hierarchy is the whole point. An offer that sets every line at the same
   weight reads as a notice, and a notice gets closed. Smallest to largest:
   eyebrow → text → headline → highlight. The deal is the biggest thing on the
   card; the legal line is the smallest.
   -------------------------------------------------------------------------- */
.dtf-pop__body {
    text-align: center;
}

.dtf-pop__step {
    color: #8a9099;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

/* Says what this is, quietly, so the headline does not have to. */
.dtf-pop__eyebrow {
    color: #8a9099;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.3;
    margin: 0 0 10px;
    text-transform: uppercase;
}

/* The deal. Deliberately the loudest element on the card. */
.dtf-pop__highlight {
    color: var(--dtf-pop-accent, var(--dtf-red, #e11d2f));
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 10px;
    text-wrap: balance;
}

.dtf-pop__title {
    color: #1d2327;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 10px;
    text-wrap: balance;
}

/* With a highlight above it the headline is support, not the hero. */
.dtf-pop__highlight + .dtf-pop__title {
    font-size: 19px;
    font-weight: 700;
}

.dtf-pop__text {
    color: #5a6470;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.dtf-pop__text p {
    margin: 0 0 10px;
}

.dtf-pop__text p:last-child {
    margin-bottom: 0;
}

.dtf-pop__text strong {
    color: #1d2327;
}

.dtf-pop__form {
    margin: 0;
}

/* preflight */
.dtf-pop__input {
    background: #ffffff !important;
    border: 1px solid #cdd2d8 !important;
    border-radius: 3px;
    box-sizing: border-box;
    color: #1d2327 !important;
    display: block;
    font-family: inherit;
    font-size: 15px;
    margin: 0 0 10px;
    padding: 14px 16px;
    width: 100%;
}

.dtf-pop__input::placeholder {
    color: #8a9099;
}

.dtf-pop__input:focus {
    border-color: var(--dtf-pop-accent, #1d2327) !important;
    outline: none;
}

.dtf-pop__consent {
    align-items: flex-start;
    color: #8a9099;
    cursor: pointer;
    display: flex;
    font-size: 11px;
    gap: 8px;
    line-height: 1.5;
    margin: 4px 0 14px;
    text-align: left;
}

.dtf-pop__consent input {
    flex: none;
    margin-top: 2px;
    width: auto;
}

.dtf-pop__err {
    color: #b91c1c;
    font-size: 13px;
    margin: 0 0 10px;
}

.dtf-pop__err[hidden] {
    display: none;
}

/* preflight — one class for <a> and <button> */
.dtf-pop__cta {
    background: var(--dtf-pop-accent, var(--dtf-red, #e11d2f)) !important;
    border: 0 !important;
    border-radius: 3px;
    box-sizing: border-box;
    color: #ffffff !important;
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 15px 24px;
    text-align: center;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.06s ease;
    width: 100%;
}

.dtf-pop__cta:hover:not(:disabled) {
    color: #ffffff !important;
    filter: brightness(0.92);
}

.dtf-pop__cta:active:not(:disabled) {
    transform: translateY(1px);
}

.dtf-pop__cta:disabled {
    cursor: default;
    opacity: 0.6;
}

/* The legal line. Present, readable, and clearly not the message. */
.dtf-pop__fine {
    color: #9aa0a7;
    font-size: 11px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.dtf-pop__fine a {
    color: #5a6470;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* preflight — the soft way out. A card whose only exit is the × in the corner
   reads as a warning dialog. */
.dtf-pop__no {
    background: none !important;
    border: 0 !important;
    color: #8a9099;
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 12px;
    margin: 14px auto 0;
    padding: 4px 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dtf-pop__no:hover {
    color: #1d2327;
}

/* ---- quiz ----------------------------------------------------------------- */
.dtf-pop__options {
    display: grid;
    gap: 8px;
    margin: 6px 0 14px;
}

/* preflight */
.dtf-pop__option {
    background: #ffffff !important;
    border: 1px solid #cdd2d8 !important;
    border-radius: 3px;
    color: #1d2327;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 16px;
    text-align: left;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.dtf-pop__option:hover,
.dtf-pop__option.is-on {
    background: #fff4f5 !important;
    border-color: var(--dtf-red, #e11d2f) !important;
}

/* preflight */
.dtf-pop__back {
    background: none !important;
    border: 0 !important;
    color: #8a9099;
    cursor: pointer;
    font-size: 13px;
    padding: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dtf-pop__back:hover {
    color: #1d2327;
}

/* ---- coupon reveal -------------------------------------------------------- */
.dtf-pop__coupon {
    background: #f7f8fa;
    border: 1px dashed #cdd2d8;
    border-radius: 3px;
    margin: 6px 0 16px;
    padding: 14px;
}

.dtf-pop__coupon-label {
    color: #5a6470;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.dtf-pop__coupon-code {
    color: #1d2327;
    font-size: 22px;
    letter-spacing: 0.08em;
}

/* ---- inline form ---------------------------------------------------------- */
.dtf-form-inline {
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    margin: 24px 0;
    max-width: 560px;
    padding: 28px 24px;
}

.dtf-form-inline .dtf-pop__title {
    font-size: 22px;
}

/* ---- reading progress ----------------------------------------------------- */
.dtf-progress {
    background: rgba(17, 17, 17, 0.06);
    height: 4px;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 950;   /* above the sticky header (900) */
}

.admin-bar .dtf-progress {
    top: 32px;
}

.dtf-progress__fill {
    background: var(--dtf-red, #e11d2f);
    display: block;
    height: 100%;
    width: 0;
}

@media (max-width: 480px) {
    .dtf-pop__card {
        padding: 32px 22px 24px;
    }

    .dtf-pop__highlight {
        font-size: 34px;
    }

    .dtf-pop__title {
        font-size: 21px;
    }

    .dtf-pop__highlight + .dtf-pop__title {
        font-size: 17px;
    }
}

/* =============================================================================
   LAYOUTS

   The body markup is identical in every layout; only the card changes. That
   keeps one render path for the form, the quiz and the message.
   ============================================================================= */

.dtf-pop__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* ---- image across the top ---- */
.dtf-pop__card--image_top {
    overflow: hidden;
    padding-top: 0;
}

.dtf-pop__card--image_top .dtf-pop__media {
    height: 180px;
    margin: 0 -34px 24px;
}

/* ---- image beside the text ---- */
@media (min-width: 720px) {
    .dtf-pop__card--image_left {
        display: grid;
        /* Closer to half than a thumbnail: in every reference the picture is
           a full panel, not an icon beside the text. */
        grid-template-columns: 44% minmax(0, 1fr);
        max-width: 760px;
        overflow: hidden;
        padding: 0;
    }

    .dtf-pop__card--image_left .dtf-pop__media {
        height: 100%;
    }

    .dtf-pop__card--image_left .dtf-pop__body {
        padding: 44px 40px 34px;
        text-align: left;
    }

    .dtf-pop__card--image_left .dtf-pop__no {
        margin-left: 0;
    }

    .dtf-pop__card--image_left .dtf-pop__consent {
        text-align: left;
    }
}

/* Below that width the image would squeeze the form, so it stacks. */
@media (max-width: 719px) {
    .dtf-pop__card--image_left {
        overflow: hidden;
        padding-top: 0;
    }

    .dtf-pop__card--image_left .dtf-pop__media {
        height: 160px;
        margin: 0 -34px 22px;
    }
}

/* ---- compact bar along the bottom ---- */
.dtf-pop__card--compact {
    border-radius: 6px 6px 0 0;
    bottom: 0;
    left: 50%;
    max-width: 720px;
    padding: 20px 24px;
    top: auto;
    transform: translate(-50%, 0);
}

.dtf-pop__card--compact .dtf-pop__title {
    font-size: 19px;
}

.dtf-pop__card--compact .dtf-pop__text {
    margin-bottom: 14px;
}

@media (min-width: 720px) {
    .dtf-pop__card--compact .dtf-pop__form {
        align-items: start;
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dtf-pop__card--compact .dtf-pop__input {
        margin-bottom: 0;
    }

    .dtf-pop__card--compact .dtf-pop__cta {
        width: auto;
    }

    .dtf-pop__card--compact .dtf-pop__consent,
    .dtf-pop__card--compact .dtf-pop__err {
        grid-column: 1 / -1;
    }
}

/* ---- inline forms use the same layout classes ---- */
.dtf-form-inline.dtf-pop__card--image_top .dtf-pop__media,
.dtf-form-inline.dtf-pop__card--image_left .dtf-pop__media {
    margin: -28px -24px 20px;
    height: 160px;
}

@media (min-width: 720px) {
    .dtf-form-inline.dtf-pop__card--image_left {
        display: grid;
        gap: 0;
        grid-template-columns: 200px minmax(0, 1fr);
        max-width: 680px;
        overflow: hidden;
        padding: 0;
    }

    .dtf-form-inline.dtf-pop__card--image_left .dtf-pop__media {
        height: 100%;
        margin: 0;
    }

    .dtf-form-inline.dtf-pop__card--image_left .dtf-pop__body {
        padding: 28px 24px;
        text-align: left;
    }
}

/* =============================================================================
   CLAIM, TIMER, NOTES — shared by every layout
   ============================================================================= */

.dtf-pop__top:empty {
    display: none;
}

/* The question under a choice popup's headline. */
.dtf-pop__prompt {
    color: #5a6470;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px;
}

.dtf-pop__claim {
    margin-top: 6px;
}

.dtf-pop__or {
    color: #8a9099;
    font-size: 12px;
    margin: 14px 0 10px;
}

.dtf-pop__note {
    color: #5a6470;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* preflight */
.dtf-pop__cta--ghost {
    background: transparent !important;
    border: 1px solid currentColor !important;
    color: #1d2327 !important;
    margin-top: 10px;
}

.dtf-pop__cta--ghost:hover:not(:disabled) {
    color: #1d2327 !important;
}

.dtf-pop__timer {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 16px;
}

.dtf-pop__timer[hidden] {
    display: none;
}

.dtf-pop__timer-label {
    color: #8a9099;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dtf-pop__timer-clock {
    background: var(--dtf-pop-accent, #1d2327);
    border-radius: 4px;
    color: #ffffff;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    min-width: 70px;
    padding: 10px 12px;
    text-align: center;
}

.dtf-pop__timer.is-over .dtf-pop__timer-clock {
    opacity: 0.5;
}

.dtf-pop__logo {
    display: block;
    height: auto;
    margin: 0 auto 20px;
    max-height: 56px;
    max-width: 200px;
    width: auto;
}

/* =============================================================================
   FULL SCREEN

   The whole window, like a landing page: a colour or gradient, the offer
   centred, choices as big round buttons, the image as decoration at the
   bottom (hidden on phones so it never covers a choice) or as the background.
   ============================================================================= */

.dtf-pop__card--fullscreen {
    align-items: center;
    background: linear-gradient(180deg, var(--dtf-pop-bg-from, #e11d2f) 0%, var(--dtf-pop-bg-to, var(--dtf-pop-bg-from, #8f0d18)) 100%);
    border-radius: 0;
    bottom: 0;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    max-height: none;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 72px 24px 56px;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
}

.dtf-pop__card--fullscreen .dtf-pop__body {
    margin: auto 0;
    max-width: 560px;
    position: relative;
    width: 100%;
    z-index: 2;
}

/* preflight */
.dtf-pop__card--fullscreen .dtf-pop__x {
    font-size: 34px;
    position: fixed;
    right: 14px;
    top: 10px;
    z-index: 3;
}

.dtf-pop__card--fullscreen .dtf-pop__highlight {
    font-size: 64px;
}

.dtf-pop__card--fullscreen .dtf-pop__title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.04;
    margin-bottom: 14px;
}

.dtf-pop__card--fullscreen .dtf-pop__highlight + .dtf-pop__title {
    font-size: 28px;
}

.dtf-pop__card--fullscreen .dtf-pop__text,
.dtf-pop__card--fullscreen .dtf-pop__prompt {
    font-size: 16px;
}

.dtf-pop__card--fullscreen .dtf-pop__options {
    justify-items: center;
    margin: 18px 0;
}

/* preflight */
.dtf-pop__card--fullscreen .dtf-pop__option {
    background: var(--dtf-pop-accent, #1d2327) !important;
    border: 0 !important;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    max-width: 320px;
    padding: 15px 22px;
    text-align: center;
    transition: filter 0.12s ease, transform 0.06s ease;
    width: 100%;
}

.dtf-pop__card--fullscreen .dtf-pop__option:hover,
.dtf-pop__card--fullscreen .dtf-pop__option.is-on {
    background: var(--dtf-pop-accent, #1d2327) !important;
    filter: brightness(1.12);
}

.dtf-pop__card--fullscreen .dtf-pop__option:active {
    transform: translateY(1px);
}

.dtf-pop__card--fullscreen .dtf-pop__form,
.dtf-pop__card--fullscreen .dtf-pop__claim {
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
}

.dtf-pop__card--fullscreen .dtf-pop__cta {
    border-radius: 999px;
}

.dtf-pop__card--fullscreen .dtf-pop__coupon {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(17, 17, 17, 0.2);
}

.dtf-pop__card--fullscreen .dtf-pop__media {
    bottom: 0;
    left: 0;
    line-height: 0;
    max-width: 40%;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.dtf-pop__card--fullscreen .dtf-pop__media img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    width: 100%;
}

.dtf-pop__card--img-bottom_right .dtf-pop__media {
    left: auto;
    right: 0;
}

.dtf-pop__card--fullscreen.dtf-pop__card--img-cover .dtf-pop__media {
    height: 100%;
    max-width: none;
    right: 0;
    top: 0;
    width: 100%;
}

.dtf-pop__card--fullscreen.dtf-pop__card--img-cover .dtf-pop__media img {
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.dtf-pop__card--fullscreen.dtf-pop__card--img-cover::before {
    background: rgba(17, 17, 17, 0.45);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 1;
}

/* ---- white text ---- */
.dtf-pop--tone-light .dtf-pop__eyebrow,
.dtf-pop--tone-light .dtf-pop__step,
.dtf-pop--tone-light .dtf-pop__timer-label,
.dtf-pop--tone-light .dtf-pop__or {
    color: rgba(255, 255, 255, 0.86);
}

.dtf-pop--tone-light .dtf-pop__highlight,
.dtf-pop--tone-light .dtf-pop__title,
.dtf-pop--tone-light .dtf-pop__text strong,
.dtf-pop--tone-light .dtf-pop__fine a,
.dtf-pop--tone-light .dtf-pop__back,
.dtf-pop--tone-light .dtf-pop__back:hover,
.dtf-pop--tone-light .dtf-pop__no:hover {
    color: #ffffff;
}

.dtf-pop--tone-light .dtf-pop__text,
.dtf-pop--tone-light .dtf-pop__prompt,
.dtf-pop--tone-light .dtf-pop__note,
.dtf-pop--tone-light .dtf-pop__consent {
    color: rgba(255, 255, 255, 0.92);
}

.dtf-pop--tone-light .dtf-pop__fine,
.dtf-pop--tone-light .dtf-pop__no {
    color: rgba(255, 255, 255, 0.78);
}

.dtf-pop--tone-light .dtf-pop__err {
    background: #ffffff;
    border-radius: 3px;
    padding: 6px 10px;
}

/* preflight */
.dtf-pop--tone-light .dtf-pop__x {
    color: #ffffff;
}

.dtf-pop--tone-light .dtf-pop__cta--ghost,
.dtf-pop--tone-light .dtf-pop__cta--ghost:hover:not(:disabled) {
    color: #ffffff !important;
}

@media (max-width: 719px) {
    .dtf-pop__card--fullscreen {
        padding: 64px 18px 40px;
    }

    .dtf-pop__card--fullscreen .dtf-pop__highlight {
        font-size: 42px;
    }

    .dtf-pop__card--fullscreen .dtf-pop__title {
        font-size: 32px;
    }

    .dtf-pop__card--fullscreen .dtf-pop__highlight + .dtf-pop__title {
        font-size: 22px;
    }

    /* Decoration never covers a choice on a phone. */
    .dtf-pop__card--img-bottom_left .dtf-pop__media,
    .dtf-pop__card--img-bottom_right .dtf-pop__media {
        display: none;
    }
}


/* =============================================================================
   PRIZE GAME — spin the wheel / scratch card (kind "game", full screen)

   Every prize is listed first, the visitor plays, the prize the server drew
   is revealed with a short confetti burst. Pixel units only; motion is cut to
   a quick turn and no confetti under prefers-reduced-motion.
   ============================================================================= */

.dtf-game__couldwin {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 18px 0 8px;
    opacity: 0.85;
    text-transform: uppercase;
}

.dtf-game__prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 4px;
    max-width: 560px;
}

.dtf-game__chip {
    align-items: center;
    background: rgba(17, 17, 17, 0.05);
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    line-height: 1.2;
    padding: 7px 13px;
}

.dtf-pop--tone-light .dtf-game__chip {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

.dtf-game__dot {
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    display: inline-block;
    flex: none;
    height: 10px;
    width: 10px;
}

.dtf-game__stage {
    margin: 10px auto 0;
    max-width: 440px;
    width: 100%;
}

/* ---- wheel ---- */
.dtf-game__wheel-wrap {
    aspect-ratio: 1 / 1;
    margin: 26px auto 22px;
    max-width: 78vw;
    position: relative;
    width: 340px;
}

.dtf-game__wheel {
    border-radius: 50%;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    display: block;
    height: 100%;
    transform: rotate(0deg);
    width: 100%;
    will-change: transform;
}

.dtf-game__rim {
    fill: #ffffff;
}

.dtf-game__seg {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1;
}

.dtf-game__label {
    fill: #ffffff;
    font-family: inherit;
    font-weight: 900;
    letter-spacing: 0.02em;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.25);
    stroke-width: 0.6px;
}

.dtf-game__hub {
    fill: #ffffff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.dtf-game__hub-dot {
    fill: var(--dtf-pop-accent, var(--dtf-red, #e11d2f));
}

.dtf-game__bulb {
    fill: #ffd84d;
    animation: dtfGameBulb 1.2s ease-in-out infinite;
}

.dtf-game__bulb.is-alt {
    animation-delay: 0.6s;
}

.dtf-game__wheel-wrap.is-spinning .dtf-game__bulb {
    animation-duration: 0.3s;
}

@keyframes dtfGameBulb {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.dtf-game__pointer {
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 32px solid #ffffff;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35));
    height: 0;
    left: 50%;
    position: absolute;
    top: -16px;
    transform: translateX(-50%);
    width: 0;
    z-index: 2;
}

.dtf-pop--tone-dark .dtf-game__pointer {
    border-top-color: #1d2327;
}

.dtf-game__go {
    display: block;
    margin: 0 auto;
    max-width: 320px;
}

/* The play and claim buttons have to be the brightest thing on a coloured background. */
.dtf-pop--tone-light .dtf-game__claim .dtf-pop__cta,
.dtf-pop--tone-light .dtf-game__go {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: var(--dtf-pop-bg-from, #e11d2f) !important;
}

.dtf-pop--tone-dark .dtf-game__claim .dtf-pop__cta,
.dtf-pop--tone-dark .dtf-game__go {
    background: #1d2327 !important;
    color: #ffffff !important;
}

.dtf-game__go:disabled {
    opacity: 0.85;
}

/* Keep the wheel and its button on screen on shorter windows. */
@media (max-height: 820px) {
    .dtf-game__wheel-wrap {
        margin: 20px auto 16px;
        width: 290px;
    }
}

@media (max-height: 680px) {
    .dtf-game__wheel-wrap {
        width: 240px;
    }
}

/* ---- scratch card ---- */
.dtf-game__scratch {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    height: 210px;
    margin: 24px auto 12px;
    max-width: 86vw;
    overflow: hidden;
    position: relative;
    touch-action: none;
    user-select: none;
    width: 400px;
}

.dtf-game__scratch-prize {
    align-items: center;
    background: radial-gradient(circle at 50% 40%, #fff7e6 0%, #ffffff 70%);
    bottom: 0;
    color: #1d2327;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    left: 0;
    padding: 16px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
}

.dtf-game__scratch-small {
    color: #8a9099;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dtf-game__scratch-big {
    color: var(--dtf-pop-accent, var(--dtf-red, #e11d2f));
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
}

.dtf-game__scratch canvas {
    bottom: 0;
    cursor: grab;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.6s ease;
    width: 100%;
}

.dtf-game__scratch.is-revealed canvas {
    opacity: 0;
    pointer-events: none;
}

.dtf-game__hint {
    font-size: 13px;
    margin: 0 0 14px;
    opacity: 0.85;
}

/* ---- the reveal ---- */
.dtf-game__won {
    animation: dtfGamePop 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

@keyframes dtfGamePop {
    0% { opacity: 0; transform: scale(0.55); }
    100% { opacity: 1; transform: scale(1); }
}

.dtf-game__confetti {
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

.dtf-game__confetti span {
    animation-fill-mode: forwards;
    animation-name: dtfGameConfetti;
    animation-timing-function: cubic-bezier(0.3, 0.6, 0.6, 1);
    border-radius: 2px;
    height: 14px;
    position: absolute;
    top: -16px;
    width: 8px;
}

@keyframes dtfGameConfetti {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(900px) rotate(720deg); }
}

/* ---- businesses only (VIES) — every popup kind ---- */
.dtf-pop__vat {
    color: #1e40af;
    font-size: 12px;
    line-height: 1.45;
    margin: 10px auto 0;
    max-width: 420px;
}

.dtf-pop--tone-light .dtf-pop__vat {
    color: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .dtf-game__bulb,
    .dtf-game__won {
        animation: none;
    }
    .dtf-game__confetti {
        display: none;
    }
}

@media (max-width: 480px) {
    .dtf-game__wheel-wrap {
        margin-top: 22px;
    }
    .dtf-game__scratch {
        height: 180px;
    }
    .dtf-game__scratch-big {
        font-size: 28px;
    }
}

.dtf-pop--tone-light .dtf-game__couldwin,
.dtf-pop--tone-light .dtf-game__hint {
    color: #ffffff;
}

/* =============================================================================
   EDITOR PREVIEW (only rendered with the signed preview flag)
   ============================================================================= */
.dtf-pop-preview-badge {
    background: #1d2327;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    left: 12px;
    top: 12px;
    opacity: 0.9;
    padding: 6px 12px;
    pointer-events: none;
    position: fixed;
    z-index: 99999;
}

.dtf-pop-preview-again {
    background: #e11d2f !important;
    border: 0 !important;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    left: 50%;
    padding: 14px 24px;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
}
