.qr-voice-caption:not([hidden]) {
    position: absolute;
    z-index: 10;
    bottom: 18%;
    inset-inline: 8%;
    margin: 0;
    padding: 8px 14px;
    border-radius: 18px;
    background: #111827c9;
    color: white;
    line-height: 1.4;
    text-align: center;
    max-height: 5.4em;
    overflow: hidden;
}
#qrScratchCard {
    perspective: 1200px;
    height: clamp(260px, 72vw, 345px) !important;
    background: #fff !important;
    border: 0 !important;
    animation: none !important;
}
#qrScratchCard .qr-scratch-fold {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}
#qrScratchCard.is-flipped .qr-scratch-fold { transform: rotateY(180deg); }
#qrScratchCard .qr-scratch-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 22px;
    backface-visibility: hidden;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 18px;
    padding-top: 18px;
    border: 5px solid transparent;
    background: radial-gradient(ellipse at 75% 24%, #ff5915, #890a05 55%, #3d0507) padding-box,
        linear-gradient(135deg, #c3b5ff, #fff6a6, #9ffafa, #f4aafa) border-box;
}
.qr-scratch-cover header { border-radius: 0 0 14px 14px; background: #fff7d7; color: #111827; padding: 5px 18px; }
.qr-scratch-cover strong { color: #fff5d6; font: 900 clamp(20px, 9vw, 40px)/1.05 system-ui; text-align: center; }
#qrScratchCard .qr-scratch-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/scratch-card-cover.png') center / 104% 116% no-repeat;
}
#qrScratchCard #qrScratchPrize { visibility: hidden; }
#qrScratchCard canvas {
    top: auto !important;
    bottom: 11% !important;
    left: 12% !important;
    width: 76% !important;
    height: 21% !important;
    border-radius: 11px;
    backface-visibility: hidden;
}
#qrScratchCard #qrScratchHint { color: #fff !important; background: #390709; padding: 2px 8px; }
#qrScratchCard #qrCouponReward {
    inset: 0 !important;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    padding: 18px !important;
    overflow: auto;
    background: linear-gradient(145deg, #172345, #090e1c) !important;
}
#qrScratchCard.is-flipped .qr-scratch-mute { display: none; }
#qrScratchCard #qrVipReward { color: #ffefc7 !important; }
#qrVipImage:not([hidden]) { width: min(40%, 115px); max-height: 105px; object-fit: contain; border-radius: 12px; }
#qrVipGift:not([hidden]) { font-size: 2.5rem; }
#qrVipImage[hidden], #qrVipGift[hidden], #qrVoiceCaption[hidden] { display: none !important; }
#qrShareStatus { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#qrShareStatus button, #qrShareStatus a { color: #115e59; padding: 8px; }
@media (prefers-reduced-motion: reduce) {
    #qrScratchCard .qr-scratch-fold { transition: none; }
}
