/* Logical 400×500 stage; image aspect ratio differs by < 0.04%. */
.hk-coupon-overlay {position:fixed;inset:0;z-index:10000;box-sizing:border-box;overflow:auto;background:rgba(27,20,18,.52);padding:24px 8px;display:flex;align-items:flex-start;justify-content:center;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;overscroll-behavior:contain}
.hk-coupon-dialog {position:relative;margin:auto;width:460px;max-width:100%;outline:none;animation:hk-coupon-in .24s ease-out}
.hk-coupon-closebar {height:48px;display:flex;justify-content:flex-end}
.hk-coupon-close {width:44px;height:44px;border:1px solid #e4d3bd;border-radius:50%;font-size:27px;color:#5d3727;background:#fff8ed;cursor:pointer}
.hk-coupon-sizer {position:relative;width:100%}
.hk-coupon-stage {position:absolute;left:0;top:0;width:400px;height:500px;transform-origin:top left;color:#54271c}
.hk-coupon-art {position:absolute;inset:0;width:400px;height:500px;pointer-events:none;user-select:none}
.hk-coupon-stage button {font-family:inherit;cursor:pointer}
.hk-coupon-badge {position:absolute;left:30px;top:88px;width:117px;text-align:center;transform:rotate(-10deg);font-size:15px;font-weight:700;line-height:24px}
.hk-coupon-title {position:absolute;left:40px;top:139px;width:320px;margin:0;text-align:center;line-height:38px;font-size:28px;font-weight:700;font-family:"Noto Serif SC","Songti SC",STSong,serif}
.hk-coupon-subtitle {position:absolute;left:35px;top:181px;width:330px;text-align:center;line-height:23px;font-size:13px}
.hk-coupon-ticket {position:absolute;left:55px;top:215px;width:290px;height:76px;display:flex;align-items:center;border:1px solid #dba487;border-radius:12px;box-sizing:border-box;background:rgba(247,216,194,.5)}
.hk-coupon-money {width:145px;display:flex;justify-content:center;align-items:baseline;color:#8e2e2d;white-space:nowrap;font-family:Georgia,serif;line-height:1}
.hk-coupon-symbol {font-size:24px;margin-right:2px}
.hk-coupon-amount {font-size:58px;font-weight:700;letter-spacing:-2px}
.hk-coupon-description {padding-left:15px;border-left:1px dashed #c49072;line-height:1.5;flex:1;min-width:0}
.hk-coupon-name {font-size:16px;font-weight:700}
.hk-coupon-threshold {font-size:13px;white-space:nowrap}
.hk-coupon-footnote {position:absolute;left:38px;top:300px;width:324px;text-align:center;font-size:12px;line-height:18px;white-space:normal}
.hk-coupon-primary {position:absolute;left:55px;top:380px;width:290px;height:58px;border:1px solid #f7d6b3;border-radius:30px;background:linear-gradient(#fff7e7,#f5d5aa);color:#7e2723;font-size:19px;font-weight:700;box-shadow:0 4px 12px #4c171a22}
.hk-coupon-primary:disabled {cursor:wait;opacity:.85}
.hk-coupon-links {position:absolute;left:55px;top:440px;width:290px;height:58px;display:flex;align-items:center}
.hk-coupon-links button {width:50%;height:58px;background:none;border:0;color:#fff5e8;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.hk-coupon-message {margin:10px 8px 0;padding:10px 14px;border-radius:12px;color:#582c25;background:#fff8ed;font-size:14px;line-height:1.5;min-height:0}
.hk-coupon-message:empty {display:none}
.hk-coupon-rule-panel{position:absolute;inset:48px 0 0;background:#fff9f0;color:#54271c;border-radius:20px;overflow:auto;padding:24px;z-index:2;box-sizing:border-box}
.hk-coupon-rule-panel p{white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}
.hk-coupon-rule-panel button{min-height:44px;padding:10px 24px;color:#fff;background:#8e2e2d;border:0;border-radius:12px}
.hk-coupon-overlay *{box-sizing:border-box}
.hk-coupon-fallback .hk-coupon-stage {border-radius:24px;background:#fff4e5}
.hk-coupon-fallback .hk-coupon-art {display:none}
.hk-coupon-fallback .hk-coupon-links button {color:#54271c}
.hk-coupon-fallback .hk-coupon-badge {transform:none}
.hk-coupon-overlay button:focus-visible {outline:3px solid #e6b65f;outline-offset:3px}
@keyframes hk-coupon-in {from {opacity:0;translate:0 8px} to {opacity:1;translate:0 0}}
@media (prefers-reduced-motion:reduce) {.hk-coupon-dialog {animation:none}}
@supports(padding:max(0px)) {.hk-coupon-overlay {padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}}
