
@media (max-width: 560px) {
    .scratch2000-modal {
        padding: 8px;
    }

    .scratch2000-modal-pattern {
        animation: none;
    }

    .scratch2000-modal-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px 8px 14px;
    }

    .scratch2000-star-stage {
        min-height: min(410px, calc(100vh - 152px));
        min-height: min(410px, calc(100dvh - 152px));
    }

    .scratch2000-modal.has-result .scratch2000-star-stage {
        min-height: min(350px, calc(100vh - 280px));
        min-height: min(350px, calc(100dvh - 280px));
    }

    .scratch2000-modal-title {
        font-size: clamp(20px, 7vw, 27px);
    }

    .scratch2000-result {
        width: calc(100% - 12px);
    }

    .scratch2000-result span {
        font-size: 14px;
        line-height: 1.25;
    }

    .scratch2000-play-ticket--floppy {
        width: min(350px, 88vw);
        min-height: 318px;
        padding-inline: 11px;
    }

    .scratch2000-floppy-shutter {
        width: 76%;
        min-height: 78px;
        padding: 8px 10px;
    }

    .scratch2000-floppy-brand .scratch2000-ticket-title {
        font-size: 25px;
    }

    .scratch2000-floppy-brand img {
        width: 46px;
        height: 46px;
    }

    /* ponytail: drop filter/hue flash on touch GPUs; transform/opacity keep feedback */
    .scratch2000-play-ticket.is-revealed,
    .scratch2000-prize-star,
    .scratch2000-zone.is-scratching {
        filter: none !important;
        animation-duration: 0.01ms !important;
    }

    .scratch2000-modal.is-win .scratch2000-play-ticket,
    .scratch2000-modal.is-loss .scratch2000-play-ticket {
        filter: none !important;
    }
}

@media (pointer: coarse) {
    .scratch2000-modal-pattern {
        animation: none;
    }

    .scratch2000-prize-star {
        animation: none;
        filter: drop-shadow(6px 8px 0 rgba(25, 8, 64, 0.62));
    }

    .scratch2000-zone.is-scratching {
        animation: none;
    }
}

@media (max-height: 620px) {
    .scratch2000-modal {
        place-items: start center;
        padding-block: 8px;
    }

    .scratch2000-modal-title {
        font-size: clamp(19px, 5vw, 25px);
    }

    .scratch2000-modal-balance {
        margin-top: 5px;
    }

    .scratch2000-star-stage {
        min-height: 330px;
    }

    .scratch2000-modal.has-result .scratch2000-star-stage {
        min-height: 270px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scratch2000-modal,
    .scratch2000-modal-dialog,
    .scratch2000-modal-pattern,
    .scratch2000-prize-star,
    .scratch2000-ticket-stage,
    .scratch2000-result,
    .scratch2000-zone,
    .scratch2000-particle,
    .home-scratch-wallet.is-denied,
    .scratch2000-star-stage {
        animation: none !important;
        transition: none !important;
    }
}
