/* 星星红包雨：深酒红、柔金星芒；飘落与点击反馈只更新 transform / opacity。 */
.redpack-app {
  --rp-gold: #f8d69a; --rp-soft: #d1ad86; --rp-line: #d8a15b57;
  position: relative; isolation: isolate; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
  padding: 16px 22px 16px; color: #f4d6a7; font-family: inherit;
  background: radial-gradient(ellipse at 50% 54%, #a3283b88 0, #77152c55 28%, transparent 64%), linear-gradient(145deg, #2b071d, #5a1027 48%, #280617);
  -webkit-tap-highlight-color: transparent;
}
.redpack-app::before, .redpack-app::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.redpack-app::before { background: repeating-conic-gradient(from 7deg at 50% 54%, transparent 0deg 17deg, #f5c57a0b 17.1deg 17.6deg, transparent 18deg 33deg); opacity: .85; }
.redpack-app::after { background: radial-gradient(circle at 9% 12%, #ffda8c 0 1px, transparent 2px), radial-gradient(circle at 88% 8%, #ffda8c99 0 1px, transparent 2px), radial-gradient(circle at 17% 38%, #ffda8c80 0 1px, transparent 2px), radial-gradient(circle at 79% 31%, #ffda8c80 0 1px, transparent 2px), radial-gradient(circle at 90% 62%, #ffda8c 0 1px, transparent 2px), radial-gradient(circle at 6% 74%, #ffda8c80 0 1px, transparent 2px), radial-gradient(circle at 63% 86%, #ffda8c 0 1px, transparent 2px), radial-gradient(circle at 28% 91%, #ffda8c66 0 1px, transparent 2px); }
.redpack-app *, .redpack-app *::before, .redpack-app *::after { box-sizing: border-box; }
.redpack-app [hidden] { display: none !important; }
.redpack-app button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.redpack-app button:disabled { cursor: default; }
.redpack-app button:focus-visible, .redpack-app summary:focus-visible { outline: 2px solid #ffe3a2; outline-offset: 4px; }
.redpack-app b, .redpack-app strong { font-weight: 650; }
.rp-heading { text-align: center; margin: 0 0 12px; }
.rp-eyebrow { color: #d8b276; font-size: 10px; letter-spacing: 3px; }
.rp-heading > .rp-eyebrow { font-size: 9px; letter-spacing: 2px; }
.rp-heading h1 { margin: 5px 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(30px, 7.7vw, 44px); font-weight: 800; letter-spacing: 3px; line-height: 1.18; color: #ffe6b4; text-shadow: 0 3px 0 #7c251e, 0 0 24px #f7b96220; }
.rp-heading p { margin: 0; font-size: 10px; color: #e2b992; letter-spacing: 2px; line-height: 1.6; }
.rp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-width: 480px; margin: 0 auto 17px; padding: 3px; border: 1px solid #ce925350; border-radius: 10px; background: #2e071b73; }
.rp-tabs button { min-height: 33px; border: 0; border-radius: 7px; color: #d7b18c; background: transparent; font-size: 12px; touch-action: manipulation; }
.rp-tabs button[aria-current] { color: #ffe4ab; background: linear-gradient(120deg, #a348356b, #8c2b2b5c); box-shadow: inset 0 0 0 1px #e9b96d58; font-weight: 650; }
.rp-notice, .rp-session { max-width: 720px; margin: 0 auto 13px; padding: 10px 12px; border: 1px solid #e6b16f62; border-radius: 9px; background: #782934ab; color: #ffe1a8; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.rp-session { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #401024b8; }
.rp-session button { flex: none; border: 0; background: transparent; color: #ffe2a2; font-size: 11px; min-height: 30px; padding: 3px; }
.rp-session-time { font-variant-numeric: tabular-nums; }
.rp-scoreboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-width: 660px; margin: 0 auto; text-align: center; }
.rp-scoreboard > div { min-width: 0; padding: 7px 4px 6px; border: 1px solid #dcaa6854; border-radius: 10px; background: linear-gradient(120deg, #8d273836, #4d11277a); box-shadow: inset 0 1px #fbc4770d; }
.rp-scoreboard > .rp-score-time { background: linear-gradient(135deg, #bb433d66, #75172b70); border-color: #ecbb7070; }
.rp-scoreboard > div > span { color: #e7c39c; font-size: 10px; }
.rp-scoreboard strong { display: flex; justify-content: center; align-items: baseline; gap: 3px; padding-top: 3px; font-size: 24px; line-height: 1.25; font-variant-numeric: tabular-nums; color: #ffe6b3; }
.rp-scoreboard strong small { font-size: 10px; color: #e0bb90; font-weight: 400; }
.rp-scoreboard .rp-score-time strong { color: #ffecc6; }
.rp-last-seconds .rp-score-time { box-shadow: inset 0 0 0 1px #ffd69070; }
.rp-game-instruction { position: relative; z-index: 6; margin: 6px auto 4px; text-align: center; color: #c9a281; font-size: 10px; line-height: 1.7; pointer-events: none; text-shadow: 0 1px 3px #260516, 0 0 5px #260516; }
.rp-game-instruction * { pointer-events: none; }
.rp-game-instruction strong { color: #f9d497; font-weight: 550; }
.rp-arena { position: relative; isolation: isolate; width: 100%; max-width: 960px; margin: 0 auto; overflow: hidden; border-radius: 14px; contain: layout paint; }
/* 指标与雨区共用外舞台；真实红包坐标及点击边界从指标卡底沿开始。 */
.rp-stage-hud { position: relative; z-index: 6; display: flow-root; pointer-events: none; }
.rp-stage-hud *, .rp-stage-space, .rp-stage-space * { pointer-events: none; }
.rp-stage-hud .rp-scoreboard > div { background: linear-gradient(120deg, #70243559, #41102266); text-shadow: 0 1px 3px #260516, 0 0 5px #260516; }
.rp-stage-hud .rp-scoreboard > .rp-score-time { background: linear-gradient(135deg, #9c353b66, #68182966); }
.rp-rain-field { position: relative; isolation: isolate; width: 100%; display: flow-root; overflow: hidden; contain: layout paint; }
.rp-stage-space { position: relative; width: 100%; height: 339px; height: clamp(234px, calc(100vh - 492px), 464px); height: clamp(234px, calc(100svh - 492px), 464px); }
.rp-orbit { position: absolute; width: 244px; height: 244px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #da9d5015; border-radius: 50%; box-shadow: 0 0 0 22px #d4994e07, 0 0 0 43px #d4994e05; pointer-events: none; }
.rp-orbit::before { content: ''; position: absolute; inset: 23px; border: 1px solid #e5b96b16; border-radius: 50%; }
.rp-orbit span { position: absolute; inset: 0; display: grid; place-items: center; color: #e6bb7313; font-family: "Songti SC", SimSun, serif; font-size: 104px; transform: rotate(-12deg); }
.rp-sky { position: absolute; inset: 0; color: #e1b972; pointer-events: none; }
.rp-sky i { position: absolute; font-style: normal; font-size: 14px; opacity: .65; }
.rp-sky i:nth-child(1) { top: 13%; left: 13%; font-size: 10px; }
.rp-sky i:nth-child(2) { top: 24%; right: 12%; font-size: 18px; }
.rp-sky i:nth-child(3) { top: 58%; left: 9%; font-size: 10px; }
.rp-sky i:nth-child(4) { bottom: 20%; right: 8%; font-size: 12px; }
.rp-sky i:nth-child(5) { top: 9%; left: 67%; font-size: 9px; }
.rp-sky i:nth-child(6) { bottom: 12%; left: 20%; font-size: 20px; }
.rp-track { position: absolute; z-index: 5; left: 15%; right: 15%; bottom: 0; height: 2px; background: #e2ad6510; overflow: hidden; }
.rp-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #b47148, #f0ce8a); transform-origin: left center; will-change: transform; }
.rp-playing-note { position: absolute; z-index: 1; top: 8px; left: 0; right: 0; font-size: 9px; letter-spacing: 2px; text-align: center; color: #e1b58270; pointer-events: none; }
.rp-intro { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; }
.rp-hero-envelope { position: relative; width: 82px; height: 102px; border: 2px solid #f0b861; border-radius: 12px; background: linear-gradient(140deg, #ff7148, #e94330 60%, #c12d24); box-shadow: 0 7px 19px #1d001959, inset 0 0 0 3px #dd4c35, inset 0 0 0 4px #ffd28c91; transform: rotate(-12deg); margin: 0 0 22px; overflow: hidden; }
.rp-hero-envelope::before { content: ''; position: absolute; left: -8px; right: -8px; top: -22px; height: 62px; background: linear-gradient(180deg, #ff8a51, #ed5a37); border-bottom: 1px solid #ffc77e; border-radius: 0 0 50% 50%; }
.rp-hero-envelope > span { position: absolute; top: 29px; left: 23px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #b75a22; background: radial-gradient(circle at 38% 25%, #fff0ad, #efbd5f); border: 2px solid #fff0ab; box-shadow: 0 2px 5px #8d2d2547; font-size: 23px; font-weight: 650; }
.rp-hero-envelope > i { position: absolute; bottom: 15px; left: 0; width: 100%; text-align: center; color: #ffdfa0; font-size: 11px; letter-spacing: 3px; font-style: normal; padding-left: 3px; }
.rp-intro h2 { color: #f8d99f; font-family: inherit; font-size: 19px; letter-spacing: 1px; font-weight: 600; margin: 0 0 8px; line-height: 1.5; }
.rp-intro p { text-align: center; margin: 0; color: #d6ad86; line-height: 1.8; font-size: 11px; }
.rp-arena-footer { position: absolute; z-index: 1; bottom: 10px; left: 0; right: 0; text-align: center; color: #b9896e; font-size: 9px; letter-spacing: .7px; pointer-events: none; }
.rp-intro:not([hidden]) ~ .rp-arena-footer { display: none; }
.rp-packet-layer, .rp-feedback-layer { position: absolute; inset: 0; pointer-events: none; }
.rp-packet-layer { z-index: 2; }
.rp-feedback-layer { z-index: 5; }
.redpack-app .rp-packet { position: absolute; top: 0; left: 0; display: none; align-items: center; justify-content: center; width: 66px; height: 82px; padding: 0; margin: 0; border: 0; background: transparent; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.redpack-app .rp-packet[data-active="1"] { display: flex; }
.rp-packet-body { position: relative; display: block; width: 49px; height: 62px; border: 1.5px solid #ffd081; border-radius: 7px; background: linear-gradient(135deg, #ff7a4e, #f44a31 55%, #d33229); overflow: hidden; box-shadow: 0 3px 9px #20021655, inset 0 0 0 2px #e44e35, inset 0 0 0 3px #ffcc7e80; pointer-events: none; }
.rp-packet-flap { position: absolute; left: -4px; right: -4px; top: -15px; height: 39px; border-bottom: 1px solid #ffd18b; border-radius: 0 0 50% 50%; background: linear-gradient(#ff9457, #f3633c); }
.rp-packet-seal { position: absolute; top: 18px; left: 13px; display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid #fff0ab; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fff1ac, #ebad49); color: #be6828; font-size: 15px; font-weight: 700; line-height: 1; box-shadow: 0 1px 5px #a7392766; }
.rp-packet-body i { position: absolute; bottom: 7px; left: 0; width: 100%; color: #ffe1a5; font-size: 7px; letter-spacing: 1.5px; text-align: center; font-style: normal; }
.rp-feedback { position: absolute; right: 22px; bottom: 20px; display: none; font-size: 27px; font-weight: 800; line-height: 1; color: #ffde8c; text-shadow: 0 2px 0 #ae493b, 0 0 10px #eeb55a66; font-variant-numeric: tabular-nums; will-change: transform, opacity; }
.rp-feedback[data-active="1"] { display: block; }
.rp-live-summary { display: flex; align-items: center; justify-content: space-between; gap: 9px; max-width: 480px; margin: 10px auto 12px; min-height: 59px; padding: 10px 15px; border: 1px solid #ca8d4e5c; border-radius: 13px; background: linear-gradient(110deg, #a3403b45, #69233070); box-shadow: inset 0 1px #edbf7912; }
.rp-live-summary > div > span { display: block; color: #c99c7b; font-size: 9px; }
.rp-live-summary i { font-style: normal; opacity: .6; margin: 0 3px; }
.rp-live-summary strong { display: block; margin-top: 5px; color: #ffe5ac; font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; }
.rp-live-summary strong b { font-size: 18px; }
.rp-live-summary strong small { color: #cda780; font-size: 10px; font-weight: 400; }
.rp-luck-feedback { color: #f9d68c; font-size: 18px; white-space: nowrap; font-weight: 550; text-shadow: 0 0 12px #e7b36933; }
.rp-main-action { max-width: 480px; margin: 0 auto; }
.redpack-app .rp-primary { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; min-height: 49px; padding: 9px 12px; border: 1px solid #ffe9ba; border-radius: 12px; background: linear-gradient(110deg, #ffdc96, #ffe8b7 49%, #eec174); box-shadow: inset 0 1px #fff3d6, 0 4px 0 #ad7044, 0 7px 18px #1e04152b; color: #732333; font-size: 16px; letter-spacing: 1px; font-weight: 750; touch-action: manipulation; }
.redpack-app .rp-primary:disabled { opacity: .93; }
.rp-primary:active { transform: translateY(2px); box-shadow: inset 0 1px #fff3d6, 0 2px 0 #ad7044; }
.rp-primary > span { font-size: 19px; font-weight: 400; }
.rp-game-footnote { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; color: #af7d69; font-size: 9px; }
.rp-game-footnote i { width: 2px; height: 2px; background: #b58b62; border-radius: 50%; }
.rp-result { max-width: 560px; margin: 18px auto 0; padding: 26px 18px 20px; border: 1px solid #dca46166; border-radius: 18px; background: linear-gradient(150deg, #79283a99, #351023ed); text-align: center; }
.rp-result-badge { display: grid; place-items: center; width: 47px; height: 47px; margin: 0 auto 14px; border: 1px solid #e4b36f96; border-radius: 50%; background: #ae784329; color: #ffdb92; font-size: 25px; }
.rp-result h2 { color: #ffe2a4; font-family: inherit; margin: 9px 0; font-size: 23px; font-weight: 650; }
.rp-result > p { margin: 0; color: #c89c80; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.rp-result-totals { display: grid; grid-template-columns: 1fr 1.25fr; margin: 24px 0; align-items: center; }
.rp-result-totals > div + div { border-left: 1px solid #d39b5661; }
.rp-result-totals span { color: #cba17c; font-size: 10px; }
.rp-result-totals strong { display: block; margin-top: 7px; color: #ffe1a0; font-size: 31px; font-variant-numeric: tabular-nums; }
.rp-result-totals small { font-size: 12px; font-weight: 400; }
.rp-result-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.rp-text-button { min-height: 38px; padding: 8px 3px; border: 0; background: transparent; color: #ecc98b; font-size: 11px; }
.rp-text-button > span { display: inline-block; margin-left: 5px; }
.rp-text-button[aria-expanded="true"] > span { transform: rotate(180deg); }
.rp-detail { margin: 8px -3px 0; padding: 0 11px; border: 1px solid #c494545e; border-radius: 11px; background: #29091a80; text-align: left; }
.rp-detail-heading, .rp-detail-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 0; font-size: 11px; }
.rp-detail-heading { border-bottom: 1px solid #c1915144; }
.rp-detail-heading > span { color: #b68e70; font-size: 9px; }
.rp-detail-list, .rp-history-detail { max-height: 300px; max-height: min(300px, 46vh); max-height: min(300px, 46svh); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.rp-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 11px 0; border-bottom: 1px dashed #bd884134; font-size: 11px; }
.rp-detail-row:last-child { border-bottom: 0; }
.rp-detail-row > span { min-width: 0; color: #d2ac86; }
.rp-detail-row i { color: #e0bc79; font-style: normal; margin-right: 4px; }
.rp-detail-row strong { flex: none; color: #ffdda0; font-variant-numeric: tabular-nums; }
.rp-detail-row time { display: block; margin-top: 5px; color: #b88d74; font-size: 9px; font-variant-numeric: tabular-nums; line-height: 1.6; overflow-wrap: anywhere; }
.rp-detail-footer { color: #f8d596; border-top: 1px solid #c1915144; }
.rp-empty-inline { padding: 4px 0; color: #b78d70; font-size: 11px; text-align: center; }
.rp-information { max-width: 620px; margin: 0 auto; padding: 23px 17px 20px; border: 1px solid #c4905352; border-radius: 16px; background: linear-gradient(145deg, #5c1d30cc, #2c0a1de8); }
.rp-information h2 { margin: 9px 0 23px; color: #f9daa0; font-family: inherit; font-size: 22px; font-weight: 650; line-height: 1.5; }
.rp-rule-steps > div { display: flex; gap: 12px; padding: 0 0 22px; }
.rp-rule-steps > div > b { display: grid; flex: none; place-items: center; width: 31px; height: 31px; border: 1px solid #ca965467; border-radius: 9px; background: #b77b3921; color: #e6bf7d; font-size: 11px; font-weight: 500; }
.rp-rule-steps p { margin: 2px 0 0; }
.rp-rule-steps strong { display: block; margin-bottom: 6px; color: #efc994; font-size: 12px; }
.rp-rule-steps p > span { display: block; color: #c59b7d; font-size: 11px; line-height: 1.9; }
.rp-rule-steps em { font-style: normal; }
.rp-custom-rules { padding: 15px 0 18px; color: #dbb58c; border-top: 1px solid #bc894b49; font-size: 12px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-rule-note { margin: 1px 0 20px; padding: 11px; border: 1px solid #bf8b4f45; border-radius: 9px; background: #ca965019; color: #c09a77; font-size: 10px; line-height: 1.9; }
.rp-rules-status { color: #b98f71; font-size: 10px; line-height: 1.7; }
.redpack-app .rp-outline { display: block; width: 100%; min-height: 43px; padding: 10px 8px; border: 1px solid #d1a15d8c; border-radius: 9px; background: #a56e2e17; color: #edc988; font-size: 12px; touch-action: manipulation; }
.rp-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.rp-history-heading h2 { margin-bottom: 20px; }
.rp-history-heading .rp-text-button { flex: none; font-size: 10px; }
.rp-history-note { margin: -10px 0 18px; color: #ba9274; font-size: 10px; line-height: 1.8; }
.rp-history-card { margin: 0 0 12px; border: 1px solid #c1905259; border-radius: 10px; background: #320c206e; overflow: hidden; }
.rp-history-card summary { display: flex; align-items: center; gap: 9px; min-height: 75px; padding: 12px 10px; cursor: pointer; list-style: none; }
.rp-history-card summary::-webkit-details-marker { display: none; }
.rp-history-icon { display: grid; place-items: center; width: 30px; height: 37px; flex: none; border: 1px solid #dbac6a99; border-radius: 5px; background: #c14935a6; color: #ffdb91; font-size: 17px; }
.rp-history-copy { flex: 1; min-width: 0; }
.rp-history-copy strong { display: block; color: #e6bf8b; font-size: 11px; }
.rp-history-copy small { display: block; margin-top: 5px; color: #b58a70; font-size: 9px; line-height: 1.6; }
.rp-history-amount { flex: none; text-align: right; }
.rp-history-amount strong { display: block; color: #f4cc87; font-size: 15px; font-variant-numeric: tabular-nums; }
.rp-history-amount small { display: block; margin-top: 6px; color: #ba916c; font-size: 8px; }
.rp-history-times { display: grid; gap: 9px; margin: 0 10px; padding: 12px 0; border-top: 1px solid #b77e4540; border-bottom: 1px solid #b77e4533; }
.rp-history-times > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; color: #b48a6e; font-size: 9px; }
.rp-history-times strong { color: #ddbc8d; font-size: 10px; font-weight: 450; font-variant-numeric: tabular-nums; }
.rp-history-detail { margin: 0 11px; }
.rp-history-status { padding: 12px 0 20px; color: #c19b75; font-size: 11px; line-height: 1.7; text-align: center; }
.rp-history-more { margin: 10px 0 20px; }
.rp-history-empty { padding: 24px 0 38px; text-align: center; }
.rp-history-empty > span { display: block; margin-bottom: 18px; color: #dfb876; font-size: 38px; }
.rp-history-empty strong { display: block; color: #ddbc8e; font-size: 12px; }
.rp-history-empty p { margin-top: 11px; color: #b28b6e; font-size: 10px; }
@media (min-width: 700px) {
  .redpack-app { padding-top: 16px; }
  .rp-heading { margin-bottom: 12px; }
  .rp-heading h1 { font-size: 40px; letter-spacing: 5px; }
  .rp-heading p { font-size: 11px; }
  .rp-scoreboard > div { padding-top: 6px; padding-bottom: 6px; }
  .rp-scoreboard strong { font-size: 25px; padding-top: 2px; }
  .rp-game-instruction { font-size: 11px; }
  .rp-stage-space { height: 376px; height: clamp(286px, calc(100vh - 466px), 526px); height: clamp(286px, calc(100svh - 466px), 526px); }
  .rp-packet-body { width: 54px; height: 68px; }
  .rp-packet-seal { left: 14px; top: 19px; width: 24px; height: 24px; font-size: 17px; }
  .rp-packet-body i { font-size: 8px; bottom: 9px; }
  .rp-orbit { width: 300px; height: 300px; }
  .rp-orbit span { font-size: 136px; }
}
@media (max-width: 350px) {
  .redpack-app { padding-left: 12px; padding-right: 12px; }
  .rp-heading h1 { font-size: 30px; letter-spacing: 2px; }
  .rp-heading p { font-size: 10px; }
  .rp-scoreboard { gap: 7px; }
  .rp-scoreboard > div > span { font-size: 9px; }
  .rp-scoreboard strong { font-size: 23px; gap: 2px; }
  .rp-scoreboard strong small { font-size: 9px; }
  .rp-game-instruction { font-size: 9px; }
  .rp-luck-feedback { font-size: 15px; }
  .rp-live-summary { padding-left: 11px; padding-right: 11px; }
  .rp-live-summary strong { font-size: 12px; }
  .rp-live-summary strong b { font-size: 16px; }
  .rp-intro h2 { font-size: 16px; }
  .rp-information { padding-left: 12px; padding-right: 12px; }
  .rp-information h2 { font-size: 20px; }
  .rp-history-heading .rp-eyebrow { letter-spacing: 1px; font-size: 9px; }
  .rp-history-card summary { gap: 7px; padding-left: 8px; padding-right: 8px; }
  .rp-history-copy small { font-size: 8px; }
  .rp-history-amount strong { font-size: 13px; }
}
@media (max-height: 650px) {
  .redpack-app { padding-top: 8px; padding-bottom: 8px; }
  .rp-heading { margin-bottom: 6px; }
  .rp-heading > .rp-eyebrow, .rp-heading > p { display: none; }
  .rp-heading h1 { font-size: 27px; line-height: 1.15; margin: 0; letter-spacing: 2px; }
  .rp-tabs { padding: 2px; margin-bottom: 8px; }
  .rp-tabs button { min-height: 27px; font-size: 11px; }
  .rp-scoreboard { gap: 7px; margin-bottom: 0; }
  .rp-scoreboard > div { padding-top: 4px; padding-bottom: 4px; border-radius: 8px; }
  .rp-scoreboard > div > span { font-size: 8px; }
  .rp-scoreboard strong { padding-top: 1px; font-size: 21px; line-height: 1.1; }
  .rp-scoreboard strong small { font-size: 9px; }
  .rp-game-instruction { font-size: 9px; margin-top: 6px; margin-bottom: 1px; }
  .rp-stage-space { height: 184px; height: clamp(144px, calc(100vh - 342px), 314px); height: clamp(144px, calc(100svh - 342px), 314px); }
  .rp-orbit { width: 170px; height: 170px; }
  .rp-orbit span { font-size: 83px; }
  .rp-intro { padding: 8px; }
  .rp-hero-envelope { width: 51px; height: 62px; border-radius: 7px; margin-bottom: 11px; }
  .rp-hero-envelope::before { top: -21px; height: 43px; }
  .rp-hero-envelope > span { top: 17px; left: 13px; width: 21px; height: 21px; font-size: 15px; }
  .rp-hero-envelope > i { bottom: 7px; font-size: 7px; letter-spacing: 1px; }
  .rp-intro h2 { font-size: 14px; margin-bottom: 4px; }
  .rp-intro p { font-size: 9px; }
  .rp-playing-note { top: 5px; font-size: 8px; }
  .rp-arena-footer { font-size: 8px; bottom: 8px; }
  .rp-live-summary { margin-top: 7px; margin-bottom: 8px; min-height: 44px; padding: 7px 12px; border-radius: 10px; }
  .rp-live-summary > div > span { font-size: 8px; }
  .rp-live-summary strong { margin-top: 3px; font-size: 12px; }
  .rp-live-summary strong b { font-size: 15px; }
  .rp-luck-feedback { font-size: 16px; }
  .redpack-app .rp-main-action .rp-primary { min-height: 42px; padding-top: 7px; padding-bottom: 7px; font-size: 14px; border-radius: 10px; }
  .rp-game-footnote { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rp-primary:active { transform: none; } }

/* 超级大奖光效：来自已校验的原始快照，统一添加命名空间。 */
.rp-jp-redpacket{position:relative;width:72px;height:88px;border:2px solid #ffa77e;border-radius:11px 11px 13px 13px;background:linear-gradient(125deg,#ff7771 0%,#ef3447 29%,#d21a3c 70%,#a70e36 100%);box-shadow:inset 0 0 0 2px #ee456055,inset 0 -17px 16px #790b2526,0 0 13px #ff7c6133;overflow:hidden;display:block;transform:translateZ(0)}
.rp-jp-redpacket::before{content:"";position:absolute;left:-2px;right:-2px;top:-1px;height:31px;border-radius:11px 11px 48% 48%;background:linear-gradient(160deg,#ff9281,#f44155 80%);border-bottom:2px solid #ffb66e;box-shadow:0 4px 8px #6b092327}
.rp-jp-redpacket::after{content:"";position:absolute;left:7px;right:7px;bottom:7px;height:1px;background:#ffb98c80}
.rp-jp-coin{position:absolute;top:21px;left:50%;transform:translateX(-50%);width:37px;height:37px;border-radius:50%;background:radial-gradient(circle at 26% 20%,#fff6c8 0%,#fbd67c 38%,#eaa03d 100%);border:1px solid #ffe8a7;display:grid;place-items:center;color:#9e342b;font-size:20px;font-weight:1000;box-shadow:0 2px 0 #a23b29,0 0 14px #fff0a544}
.rp-jp-packet-word{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:9px;font-weight:900;letter-spacing:3px;color:#ffe7b5}
.rp-jp-cinema{position:absolute;inset:0;z-index:20;overflow:hidden;isolation:isolate;display:block;pointer-events:auto}
.rp-jp-cinema-backdrop{position:absolute;inset:0;background:radial-gradient(ellipse 85% 48% at 50% 44%,#b22e43ea,#4b102ce6 65%,#1b0613f5 100%);opacity:0;animation:rpJpCinemaFade .35s ease forwards}
@keyframes rpJpCinemaFade{to{opacity:1}}
.rp-jp-cinema-backdrop::after{content:"";position:absolute;inset:0;background:repeating-conic-gradient(from 0deg at 50% 43%,transparent 0 11deg,#ffd88717 13deg,transparent 15deg 27deg);opacity:.75}
.rp-jp-cinema-specks{position:absolute;inset:0;background-image:radial-gradient(circle,#ffe2a0 0 1px,transparent 2px);background-size:83px 96px;opacity:.35;pointer-events:none}
.rp-jp-cinema-top{position:absolute;top:calc(env(safe-area-inset-top, 0px) + clamp(43px,7.5vh,79px));left:12px;right:12px;text-align:center;z-index:4;opacity:0;transform:translateY(16px);animation:rpJpBannerIn .65s .2s ease forwards}
.rp-jp-cinema-flag{font-size:10px;letter-spacing:5px;font-weight:800;color:#ffdc9b;display:flex;gap:12px;align-items:center;justify-content:center}
.rp-jp-cinema-flag::before,.rp-jp-cinema-flag::after{content:"";height:1px;width:29px;background:linear-gradient(90deg,transparent,#ffe9a4)}.rp-jp-cinema-flag::after{transform:rotate(180deg)}
.rp-jp-cinema-headline{margin:13px 0 0;font-size:clamp(28px,7.5vw,44px);letter-spacing:4px;font-weight:1000;color:#fff4c9;text-shadow:0 0 15px #ffb85d90,0 3px 15px #640f23}
.rp-jp-cinema-top p{font-size:12px;color:#f9d5aa;margin:9px 0 0;letter-spacing:1px}
@keyframes rpJpBannerIn{to{opacity:1;transform:translateY(0)}}
.rp-jp-energy{position:absolute;left:50%;top:44%;width:0;height:0;z-index:3;pointer-events:none}
.rp-jp-energy-rays{position:absolute;left:0;top:0;width:460px;height:460px;margin-left:-230px;margin-top:-230px;opacity:0;border-radius:50%;background:repeating-conic-gradient(from 12deg,#ffdc853e 0deg 5deg,transparent 7deg 19deg,#fff8cf3b 20deg 21deg,transparent 23deg 34deg);mask-image:radial-gradient(circle,transparent 0 6%,#000 15%,#000 47%,transparent 70%);animation:rpJpRaysEnter 2s .35s cubic-bezier(.15,.65,.25,1) forwards}
@keyframes rpJpRaysEnter{0%{transform:scale(.13) rotate(-35deg);opacity:0}25%{opacity:.98}80%{opacity:.95}100%{transform:scale(1.43) rotate(70deg);opacity:0}}
.rp-jp-energy-glow{position:absolute;left:0;top:0;width:250px;height:250px;margin:-125px 0 0 -125px;border-radius:50%;background:radial-gradient(circle,#fffbd9 0%,#ffe4a5 14%,#ffc66d9e 28%,#ffad4c52 48%,transparent 71%);filter:blur(8px);opacity:0;animation:rpJpGlowUnfold 2s .3s ease-in-out forwards}
@keyframes rpJpGlowUnfold{0%{opacity:0;transform:scale(.1)}30%{opacity:.8}73%{opacity:1}100%{opacity:.05;transform:scale(2.3)}}
.rp-jp-energy-ring{position:absolute;left:0;top:0;width:210px;height:210px;margin:-105px 0 0 -105px;border:3px solid #ffe3a1;border-radius:50%;box-shadow:0 0 16px #fff1b8,0 0 24px #efab3a,inset 0 0 13px #ffe7a4;opacity:0;animation:rpJpRingBloom 1.46s .55s cubic-bezier(.09,.6,.17,1) forwards}
.rp-jp-energy-ring.rp-jp-r2{width:255px;height:255px;margin:-127.5px 0 0 -127.5px;border-width:2px;animation-delay:.78s;animation-duration:1.42s}
.rp-jp-energy-ring.rp-jp-r3{width:169px;height:169px;margin:-84.5px 0 0 -84.5px;border-width:3px;animation-delay:1.08s;animation-duration:1.22s}
@keyframes rpJpRingBloom{0%{opacity:0;transform:scale(.1)}17%{opacity:1}62%{opacity:.85}100%{opacity:0;transform:scale(2.1)}}
.rp-jp-epic-packet{position:absolute;left:0;top:0;width:72px;height:88px;z-index:6;transform:translate(calc(-50% + var(--origin-x, 0px)),calc(-50% + var(--origin-y, 0px))) scale(.96);transform-origin:center center;will-change:transform,opacity;filter:drop-shadow(0 0 16px #ffe6aa);animation:rpJpEpicLand .98s cubic-bezier(.2,.66,.2,1) forwards}
.rp-jp-epic-packet .rp-jp-redpacket{box-shadow:inset 0 0 0 2px #ee456055,inset 0 -17px 16px #790b2526,0 0 24px #ffd273ae;animation:rpJpPowerRise 1.05s .99s ease-in forwards}
@keyframes rpJpPowerRise{0%{transform:scale(1);filter:brightness(1)}60%{transform:scale(1.11);filter:brightness(1.16)}100%{transform:scale(1.22);filter:brightness(1.4)}}
@keyframes rpJpEpicLand{0%{transform:translate(calc(-50% + var(--origin-x, 0px)),calc(-50% + var(--origin-y, 0px))) scale(.96)}55%{transform:translate(-50%,-50%) scale(2.13)}80%{transform:translate(-50%,-50%) scale(1.74)}100%{transform:translate(-50%,-50%) scale(1.9)}}
.rp-jp-cinema.is-charging .rp-jp-cinema-backdrop,.rp-jp-cinema.is-burst .rp-jp-cinema-backdrop{animation:rpJpCinemaPulse 1.18s ease-in-out infinite alternate}
@keyframes rpJpCinemaPulse{from{filter:saturate(1) brightness(1)}to{filter:saturate(1.22) brightness(1.15)}}
@keyframes rpJpScreenQuake{0%{transform:translate3d(0,0,0)}25%{transform:translate3d(.5px,-1px,0)}50%{transform:translate3d(-1.2px,.8px,0)}75%{transform:translate3d(1px,.5px,0)}100%{transform:translate3d(-.6px,-.4px,0)}}
@keyframes rpJpContentShake{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(.8px,-.6px,0)}}
.rp-jp-cinema.is-burst .rp-jp-epic-packet{animation:rpJpEpicBurst 1.15s cubic-bezier(.19,.64,.26,1) forwards}
@keyframes rpJpEpicBurst{0%{opacity:1;transform:translate(-50%,-50%) scale(1.98)}18%{opacity:1;transform:translate(-50%,-50%) scale(2.22) rotate(-5deg);filter:brightness(1.8) drop-shadow(0 0 38px #fff2c4)}60%{opacity:1;transform:translate(-50%,-50%) scale(2.92) rotate(6deg);filter:brightness(2.2) drop-shadow(0 0 65px #fff9df)}100%{opacity:0;transform:translate(-50%,-50%) scale(4.8) rotate(12deg);filter:brightness(3.4) drop-shadow(0 0 90px #fff9df)}}
.rp-jp-strobe-layer,.rp-jp-shockwaves,.rp-jp-whiteout{position:absolute;inset:0;pointer-events:none}
.rp-jp-strobe-layer{z-index:7}
.rp-jp-strobe{position:absolute;inset:-18%;opacity:0;background:radial-gradient(circle at 50% 44%,#fffef5 0%,#fff2b8 13%,#ffd37d88 26%,transparent 56%);mix-blend-mode:screen;filter:blur(4px)}
.rp-jp-cinema.is-charging .rp-jp-strobe.rp-jp-s1{animation:rpJpStrobePulse 1.1s .2s ease-in-out infinite}
.rp-jp-cinema.is-charging .rp-jp-strobe.rp-jp-s2{animation:rpJpStrobePulse 1.05s .45s ease-in-out infinite}
.rp-jp-cinema.is-charging .rp-jp-strobe.rp-jp-s3{animation:rpJpStrobePulse .95s .68s ease-in-out infinite}
.rp-jp-cinema.is-burst .rp-jp-strobe.rp-jp-s1{animation:rpJpStrobeBlast .95s linear 0s 2 forwards}
.rp-jp-cinema.is-burst .rp-jp-strobe.rp-jp-s2{animation:rpJpStrobeBlast .95s linear .16s 2 forwards}
.rp-jp-cinema.is-burst .rp-jp-strobe.rp-jp-s3{animation:rpJpStrobeBlast .95s linear .32s 2 forwards}
@keyframes rpJpStrobePulse{0%,100%{opacity:.06;transform:scale(.78)}45%{opacity:.5;transform:scale(1.05)}70%{opacity:.18;transform:scale(.92)}}
@keyframes rpJpStrobeBlast{0%{opacity:0;transform:scale(.75)}12%{opacity:1;transform:scale(1.18)}24%{opacity:.08;transform:scale(1.28)}36%{opacity:.96;transform:scale(1.4)}48%{opacity:.18;transform:scale(1.52)}60%{opacity:.9;transform:scale(1.67)}100%{opacity:0;transform:scale(2.2)}}
.rp-jp-flash{position:absolute;inset:0;background:radial-gradient(circle at 50% 44%,#fffef7 0%,#fff2b8 10%,#ffd3728a 28%,#ffad4d2c 48%,transparent 75%);opacity:0;z-index:7;pointer-events:none;mix-blend-mode:screen}
.rp-jp-cinema.is-burst .rp-jp-flash{animation:rpJpFlashBang 1.65s ease-out forwards}
@keyframes rpJpFlashBang{0%{opacity:0}7%{opacity:1}18%{opacity:.3}28%{opacity:.98}38%{opacity:.45}48%{opacity:.95}62%{opacity:.25}76%{opacity:.82}100%{opacity:0}}
.rp-jp-whiteout{background:radial-gradient(circle at 50% 44%,#fffef8 0 12%,#fff2c0 20%,#ffd4887c 35%,transparent 62%);z-index:8;opacity:0;mix-blend-mode:screen}
.rp-jp-cinema.is-burst .rp-jp-whiteout{animation:rpJpWhiteoutBang 1.6s ease-out forwards}
@keyframes rpJpWhiteoutBang{0%{opacity:0;transform:scale(.6)}18%{opacity:.15}30%{opacity:.96}52%{opacity:.35}70%{opacity:.75}100%{opacity:0;transform:scale(1.6)}}
.rp-jp-shockwaves{z-index:8}
.rp-jp-shock{position:absolute;left:50%;top:44%;width:120px;height:120px;border-radius:50%;transform:translate(-50%,-50%) scale(.15);opacity:0;border:3px solid #ffe4a8;box-shadow:0 0 30px #fff0b3,inset 0 0 22px #ffd16e}
.rp-jp-shock.rp-jp-s2{border-color:#fff6d0;border-width:2px}.rp-jp-shock.rp-jp-s3{border-color:#ffd480;border-width:4px}.rp-jp-shock.rp-jp-s4{border-color:#fff0bc;border-width:2px}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s1{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .02s forwards}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s2{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .18s forwards}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s3{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .36s forwards}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s4{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .54s forwards}
@keyframes rpJpShockwave{0%{opacity:0;transform:translate(-50%,-50%) scale(.18)}12%{opacity:1}68%{opacity:.65}100%{opacity:0;transform:translate(-50%,-50%) scale(7.3)}}
.rp-jp-fx-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:9;pointer-events:none}
.rp-jp-bigwin{position:absolute;left:0;right:0;top:clamp(160px,23%,230px);z-index:11;text-align:center;opacity:0;transform:translateY(42px) scale(.7);pointer-events:none;padding:0 12px}
.rp-jp-cinema.is-revealed .rp-jp-bigwin{animation:rpJpBigWinIn 1.18s cubic-bezier(.16,1.25,.32,1) forwards}
@keyframes rpJpBigWinIn{0%{opacity:0;transform:translateY(42px) scale(.56)}30%{opacity:1;transform:translateY(-8px) scale(1.16)}55%{opacity:1;transform:translateY(4px) scale(.98)}78%{opacity:1;transform:translateY(-2px) scale(1.07)}100%{opacity:1;transform:translateY(0) scale(1)}}
.rp-jp-crown{font-size:37px;filter:drop-shadow(0 0 15px #ffd288);line-height:1.2}
.rp-jp-win-kicker{margin-top:5px;font-size:11px;color:#fff4c6;letter-spacing:4px;font-weight:900}
.rp-jp-win-title{margin:4px 0 0;font-size:clamp(30px,8vw,43px);line-height:1.18;letter-spacing:3px;font-weight:1000;background:linear-gradient(180deg,#fffcef 0%,#ffe69c 44%,#efb450 95%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 5px 8px #661a27)}
.rp-jp-prize{margin:8px 0 0;font-size:clamp(54px,13.2vw,75px);font-weight:1000;letter-spacing:-2px;line-height:1.2;font-variant-numeric:tabular-nums;color:#fff4ca;text-shadow:0 3px #b95b33,0 0 24px #ffe5a7ac,0 0 55px #ffc16c7a;white-space:nowrap}
.rp-jp-prize small{font-size:17px;margin-left:4px;letter-spacing:0}
.rp-jp-win-sub{margin:9px 0 0;color:#ffe1ad;font-size:12px;letter-spacing:1px}
.rp-jp-cinema.is-revealed .rp-jp-win-title{animation:rpJpTitlePulse 1.2s ease-in-out infinite alternate}
@keyframes rpJpTitlePulse{from{filter:drop-shadow(0 5px 8px #661a27)}to{filter:drop-shadow(0 0 18px #ffcf7a) drop-shadow(0 0 36px #ffc15f)}}
.rp-jp-cinema.is-revealed .rp-jp-prize{animation:rpJpPrizePulse .9s ease-in-out infinite alternate}
@keyframes rpJpPrizePulse{0%{transform:scale(1);text-shadow:0 3px #b95b33,0 0 24px #ffe5a7ac,0 0 55px #ffc16c7a}100%{transform:scale(1.08);text-shadow:0 3px #b95b33,0 0 28px #fff1bd,0 0 66px #ffd06c,0 0 110px #ffefad}}

/* 快照动画只作用于开奖层；既有页面布局与金额逻辑保持独立。 */
.rp-heading { position: relative; }
.redpack-app .rp-sound-toggle { position: absolute; right: 0; top: -6px; min-height: 28px; padding: 3px 8px; border: 1px solid #ffdeb454; border-radius: 99px; background: #2c0a1d88; color: #f9d0a1; font-size: 10px; }
.redpack-app.rp-jackpot-active { z-index: 100; }
.rp-jp-cinema { position: fixed; inset: 0; width: min(100%, 540px); height: 100vh; height: 100dvh; margin: auto; background: #250715; box-shadow: 0 0 0 100vmax #18040fe6; outline: none; }
.rp-jp-cinema.is-charging, .rp-jp-cinema.is-burst { animation: rpJpScreenQuake .18s linear infinite alternate; }
.rp-jp-cinema-backdrop { opacity: 1; }
.rp-jp-cinema :is(h2, p) { font-family: inherit; }
.rp-jp-cinema .rp-jp-win-title { color: transparent; }
.rp-jp-settlement { position: absolute; z-index: 12; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); left: 15px; right: 15px; max-height: 48%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; animation: rpJpBannerIn .55s ease both; }
.rp-jp-settlement .rp-result { margin: 0 auto; padding: 14px; background: linear-gradient(153deg,#6a1a35f2,#320b25fa 69%); }
.rp-jp-settlement .rp-result-badge, .rp-jp-settlement .rp-result > .rp-eyebrow { display: none; }
.rp-jp-settlement .rp-result h2 { margin-top: 0; font-size: 20px; }
.rp-jp-settlement .rp-result-totals { margin: 13px 0; }
.rp-jp-settlement .rp-result-totals strong { margin-top: 4px; font-size: 26px; }
.rp-jp-settlement .rp-primary { min-height: 41px; font-size: 14px; }
.rp-jp-settlement .rp-detail-list { max-height: 130px; }
.rp-jp-cinema.is-settled .rp-jp-bigwin { opacity: 1; transform: none; top: 20%; }
.rp-jp-cinema.is-settled :is(.rp-jp-bigwin, .rp-jp-win-title, .rp-jp-prize, .rp-jp-cinema-backdrop) { animation: none; }
.rp-jp-cinema.is-settled .rp-jp-epic-packet { display: none; }
.rp-detail-row.is-effect { background: #ffce7712; }
.rp-detail-row.is-effect > span { color: #ffe6aa; }
@media (max-height: 745px) {
  .rp-jp-cinema-top { top: calc(env(safe-area-inset-top, 0px) + 25px); }
  .rp-jp-cinema-headline { margin-top: 6px; font-size: 31px; }
  .rp-jp-cinema-top p { margin-top: 4px; }
  .rp-jp-bigwin { top: 23%; }
  .rp-jp-crown { font-size: 29px; }
  .rp-jp-win-title { font-size: 30px; }
  .rp-jp-prize { font-size: clamp(48px,12vw,62px); margin-top: 4px; }
  .rp-jp-win-sub { margin-top: 4px; font-size: 10px; }
  .rp-jp-settlement { max-height: 47%; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .rp-jp-settlement .rp-result { padding: 11px; }
}
@media (max-height: 590px) {
  .rp-jp-cinema-top { top: 8px; }
  .rp-jp-cinema-headline { font-size: 23px; }
  .rp-jp-cinema-top p { font-size: 10px; }
  .rp-jp-bigwin, .rp-jp-cinema.is-settled .rp-jp-bigwin { top: 18%; }
  .rp-jp-cinema.is-settled .rp-jp-crown { display: none; }
  .rp-jp-win-title { font-size: 26px; }
  .rp-jp-prize { font-size: 46px; }
  .rp-jp-settlement { max-height: 48%; }
  .rp-jp-settlement .rp-result h2 { font-size: 17px; }
  .rp-jp-settlement .rp-result-totals { margin: 8px 0; }
}
@media (max-width: 350px) {
  .rp-jp-cinema-headline { font-size: 26px; letter-spacing: 2px; }
  .rp-jp-win-title { font-size: 26px; letter-spacing: 1px; }
  .rp-jp-prize { font-size: 46px; }
  .rp-sound-toggle { top: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-jp-cinema, .rp-jp-cinema * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .rp-jp-strobe-layer, .rp-jp-whiteout, .rp-jp-flash, .rp-jp-shockwaves, .rp-jp-fx-canvas { display: none; }
}

/* 星星红包雨：深酒红、柔金星芒；飘落与点击反馈只更新 transform / opacity。 */
.redpack-app {
  --rp-gold: #f8d69a; --rp-soft: #d1ad86; --rp-line: #d8a15b57;
  position: relative; isolation: isolate; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
  padding: 16px 22px 16px; color: #f4d6a7; font-family: inherit;
  background: radial-gradient(ellipse at 50% 54%, #a3283b88 0, #77152c55 28%, transparent 64%), linear-gradient(145deg, #2b071d, #5a1027 48%, #280617);
  -webkit-tap-highlight-color: transparent;
}

.redpack-app::before, .redpack-app::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.redpack-app::before { background: repeating-conic-gradient(from 7deg at 50% 54%, transparent 0deg 17deg, #f5c57a0b 17.1deg 17.6deg, transparent 18deg 33deg); opacity: .85; }
.redpack-app::after { background: radial-gradient(circle at 9% 12%, #ffda8c 0 1px, transparent 2px), radial-gradient(circle at 88% 8%, #ffda8c99 0 1px, transparent 2px), radial-gradient(circle at 17% 38%, #ffda8c80 0 1px, transparent 2px), radial-gradient(circle at 79% 31%, #ffda8c80 0 1px, transparent 2px), radial-gradient(circle at 90% 62%, #ffda8c 0 1px, transparent 2px), radial-gradient(circle at 6% 74%, #ffda8c80 0 1px, transparent 2px), radial-gradient(circle at 63% 86%, #ffda8c 0 1px, transparent 2px), radial-gradient(circle at 28% 91%, #ffda8c66 0 1px, transparent 2px); }
.redpack-app *, .redpack-app *::before, .redpack-app *::after { box-sizing: border-box; }
.redpack-app [hidden] { display: none !important; }
.redpack-app button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.redpack-app button:disabled { cursor: default; }
.redpack-app button:focus-visible, .redpack-app summary:focus-visible { outline: 2px solid #ffe3a2; outline-offset: 4px; }
.redpack-app b, .redpack-app strong { font-weight: 650; }
.rp-heading { text-align: center; margin: 0 0 12px; }
.rp-eyebrow { color: #d8b276; font-size: 10px; letter-spacing: 3px; }
.rp-heading > .rp-eyebrow { font-size: 9px; letter-spacing: 2px; }
.rp-heading h1 { margin: 5px 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(30px, 7.7vw, 44px); font-weight: 800; letter-spacing: 3px; line-height: 1.18; color: #ffe6b4; text-shadow: 0 3px 0 #7c251e, 0 0 24px #f7b96220; }
.rp-heading p { margin: 0; font-size: 10px; color: #e2b992; letter-spacing: 2px; line-height: 1.6; }
.rp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-width: 480px; margin: 0 auto 17px; padding: 3px; border: 1px solid #ce925350; border-radius: 10px; background: #2e071b73; }
.rp-tabs button { min-height: 33px; border: 0; border-radius: 7px; color: #d7b18c; background: transparent; font-size: 12px; touch-action: manipulation; }
.rp-tabs button[aria-current] { color: #ffe4ab; background: linear-gradient(120deg, #a348356b, #8c2b2b5c); box-shadow: inset 0 0 0 1px #e9b96d58; font-weight: 650; }
.rp-notice, .rp-session { max-width: 720px; margin: 0 auto 13px; padding: 10px 12px; border: 1px solid #e6b16f62; border-radius: 9px; background: #782934ab; color: #ffe1a8; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.rp-session { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #401024b8; }
.rp-session button { flex: none; border: 0; background: transparent; color: #ffe2a2; font-size: 11px; min-height: 30px; padding: 3px; }
.rp-session-time { font-variant-numeric: tabular-nums; }
.rp-scoreboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-width: 660px; margin: 0 auto; text-align: center; }
.rp-scoreboard > div { min-width: 0; padding: 7px 4px 6px; border: 1px solid #dcaa6854; border-radius: 10px; background: linear-gradient(120deg, #8d273836, #4d11277a); box-shadow: inset 0 1px #fbc4770d; }
.rp-scoreboard > .rp-score-time { background: linear-gradient(135deg, #bb433d66, #75172b70); border-color: #ecbb7070; }
.rp-scoreboard > div > span { color: #e7c39c; font-size: 10px; }
.rp-scoreboard strong { display: flex; justify-content: center; align-items: baseline; gap: 3px; padding-top: 3px; font-size: 24px; line-height: 1.25; font-variant-numeric: tabular-nums; color: #ffe6b3; }
.rp-scoreboard strong small { font-size: 10px; color: #e0bb90; font-weight: 400; }
.rp-scoreboard .rp-score-time strong { color: #ffecc6; }
.rp-last-seconds .rp-score-time { box-shadow: inset 0 0 0 1px #ffd69070; }
.rp-game-instruction { position: relative; z-index: 6; margin: 6px auto 4px; text-align: center; color: #c9a281; font-size: 10px; line-height: 1.7; pointer-events: none; text-shadow: 0 1px 3px #260516, 0 0 5px #260516; }
.rp-game-instruction * { pointer-events: none; }
.rp-game-instruction strong { color: #f9d497; font-weight: 550; }
.rp-arena { position: relative; isolation: isolate; width: 100%; max-width: 960px; margin: 0 auto; overflow: hidden; border-radius: 14px; contain: layout paint; }
/* 指标与雨区共用外舞台；真实红包坐标及点击边界从指标卡底沿开始。 */
.rp-stage-hud { position: relative; z-index: 6; display: flow-root; pointer-events: none; }
.rp-stage-hud *, .rp-stage-space, .rp-stage-space * { pointer-events: none; }
.rp-stage-hud .rp-scoreboard > div { background: linear-gradient(120deg, #70243559, #41102266); text-shadow: 0 1px 3px #260516, 0 0 5px #260516; }
.rp-stage-hud .rp-scoreboard > .rp-score-time { background: linear-gradient(135deg, #9c353b66, #68182966); }
.rp-rain-field { position: relative; isolation: isolate; width: 100%; display: flow-root; overflow: hidden; contain: layout paint; }
.rp-stage-space { position: relative; width: 100%; height: 339px; height: clamp(234px, calc(100vh - 492px), 464px); height: clamp(234px, calc(100svh - 492px), 464px); }
.rp-orbit { position: absolute; width: 244px; height: 244px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #da9d5015; border-radius: 50%; box-shadow: 0 0 0 22px #d4994e07, 0 0 0 43px #d4994e05; pointer-events: none; }
.rp-orbit::before { content: ''; position: absolute; inset: 23px; border: 1px solid #e5b96b16; border-radius: 50%; }
.rp-orbit span { position: absolute; inset: 0; display: grid; place-items: center; color: #e6bb7313; font-family: "Songti SC", SimSun, serif; font-size: 104px; transform: rotate(-12deg); }
.rp-sky { position: absolute; inset: 0; color: #e1b972; pointer-events: none; }
.rp-sky i { position: absolute; font-style: normal; font-size: 14px; opacity: .65; }
.rp-sky i:nth-child(1) { top: 13%; left: 13%; font-size: 10px; }
.rp-sky i:nth-child(2) { top: 24%; right: 12%; font-size: 18px; }
.rp-sky i:nth-child(3) { top: 58%; left: 9%; font-size: 10px; }
.rp-sky i:nth-child(4) { bottom: 20%; right: 8%; font-size: 12px; }
.rp-sky i:nth-child(5) { top: 9%; left: 67%; font-size: 9px; }
.rp-sky i:nth-child(6) { bottom: 12%; left: 20%; font-size: 20px; }
.rp-track { position: absolute; z-index: 5; left: 15%; right: 15%; bottom: 0; height: 2px; background: #e2ad6510; overflow: hidden; }
.rp-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #b47148, #f0ce8a); transform-origin: left center; will-change: transform; }
.rp-playing-note { position: absolute; z-index: 1; top: 8px; left: 0; right: 0; font-size: 9px; letter-spacing: 2px; text-align: center; color: #e1b58270; pointer-events: none; }
.rp-intro { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; }
.rp-hero-envelope { position: relative; width: 82px; height: 102px; border: 2px solid #f0b861; border-radius: 12px; background: linear-gradient(140deg, #ff7148, #e94330 60%, #c12d24); box-shadow: 0 7px 19px #1d001959, inset 0 0 0 3px #dd4c35, inset 0 0 0 4px #ffd28c91; transform: rotate(-12deg); margin: 0 0 22px; overflow: hidden; }
.rp-hero-envelope::before { content: ''; position: absolute; left: -8px; right: -8px; top: -22px; height: 62px; background: linear-gradient(180deg, #ff8a51, #ed5a37); border-bottom: 1px solid #ffc77e; border-radius: 0 0 50% 50%; }
.rp-hero-envelope > span { position: absolute; top: 29px; left: 23px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #b75a22; background: radial-gradient(circle at 38% 25%, #fff0ad, #efbd5f); border: 2px solid #fff0ab; box-shadow: 0 2px 5px #8d2d2547; font-size: 23px; font-weight: 650; }
.rp-hero-envelope > i { position: absolute; bottom: 15px; left: 0; width: 100%; text-align: center; color: #ffdfa0; font-size: 11px; letter-spacing: 3px; font-style: normal; padding-left: 3px; }
.rp-intro h2 { color: #f8d99f; font-family: inherit; font-size: 19px; letter-spacing: 1px; font-weight: 600; margin: 0 0 8px; line-height: 1.5; }
.rp-intro p { text-align: center; margin: 0; color: #d6ad86; line-height: 1.8; font-size: 11px; }
.rp-arena-footer { position: absolute; z-index: 1; bottom: 10px; left: 0; right: 0; text-align: center; color: #b9896e; font-size: 9px; letter-spacing: .7px; pointer-events: none; }
.rp-intro:not([hidden]) ~ .rp-arena-footer { display: none; }
.rp-packet-layer, .rp-feedback-layer { position: absolute; inset: 0; pointer-events: none; }
.rp-packet-layer { z-index: 2; }
.rp-feedback-layer { z-index: 5; }
.redpack-app .rp-packet { position: absolute; top: 0; left: 0; display: none; align-items: center; justify-content: center; width: 66px; height: 82px; padding: 0; margin: 0; border: 0; background: transparent; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
.redpack-app .rp-packet[data-active="1"] { display: flex; }
.rp-packet-body { position: relative; display: block; width: 49px; height: 62px; border: 1.5px solid #ffd081; border-radius: 7px; background: linear-gradient(135deg, #ff7a4e, #f44a31 55%, #d33229); overflow: hidden; box-shadow: 0 3px 9px #20021655, inset 0 0 0 2px #e44e35, inset 0 0 0 3px #ffcc7e80; pointer-events: none; }
.rp-packet-flap { position: absolute; left: -4px; right: -4px; top: -15px; height: 39px; border-bottom: 1px solid #ffd18b; border-radius: 0 0 50% 50%; background: linear-gradient(#ff9457, #f3633c); }
.rp-packet-seal { position: absolute; top: 18px; left: 13px; display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid #fff0ab; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fff1ac, #ebad49); color: #be6828; font-size: 15px; font-weight: 700; line-height: 1; box-shadow: 0 1px 5px #a7392766; }
.rp-packet-body i { position: absolute; bottom: 7px; left: 0; width: 100%; color: #ffe1a5; font-size: 7px; letter-spacing: 1.5px; text-align: center; font-style: normal; }
.rp-feedback { position: absolute; right: 22px; bottom: 20px; display: none; font-size: 27px; font-weight: 800; line-height: 1; color: #ffde8c; text-shadow: 0 2px 0 #ae493b, 0 0 10px #eeb55a66; font-variant-numeric: tabular-nums; will-change: transform, opacity; }
.rp-feedback[data-active="1"] { display: block; }
.rp-live-summary { display: flex; align-items: center; justify-content: space-between; gap: 9px; max-width: 480px; margin: 10px auto 12px; min-height: 59px; padding: 10px 15px; border: 1px solid #ca8d4e5c; border-radius: 13px; background: linear-gradient(110deg, #a3403b45, #69233070); box-shadow: inset 0 1px #edbf7912; }
.rp-live-summary > div > span { display: block; color: #c99c7b; font-size: 9px; }
.rp-live-summary i { font-style: normal; opacity: .6; margin: 0 3px; }
.rp-live-summary strong { display: block; margin-top: 5px; color: #ffe5ac; font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; }
.rp-live-summary strong b { font-size: 18px; }
.rp-live-summary strong small { color: #cda780; font-size: 10px; font-weight: 400; }
.rp-luck-feedback { color: #f9d68c; font-size: 18px; white-space: nowrap; font-weight: 550; text-shadow: 0 0 12px #e7b36933; }
.rp-main-action { max-width: 480px; margin: 0 auto; }
.redpack-app .rp-primary { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; min-height: 49px; padding: 9px 12px; border: 1px solid #ffe9ba; border-radius: 12px; background: linear-gradient(110deg, #ffdc96, #ffe8b7 49%, #eec174); box-shadow: inset 0 1px #fff3d6, 0 4px 0 #ad7044, 0 7px 18px #1e04152b; color: #732333; font-size: 16px; letter-spacing: 1px; font-weight: 750; touch-action: manipulation; }
.redpack-app .rp-primary:disabled { opacity: .93; }
.rp-primary:active { transform: translateY(2px); box-shadow: inset 0 1px #fff3d6, 0 2px 0 #ad7044; }
.rp-primary > span { font-size: 19px; font-weight: 400; }
.rp-game-footnote { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; color: #af7d69; font-size: 9px; }
.rp-game-footnote i { width: 2px; height: 2px; background: #b58b62; border-radius: 50%; }
.rp-result { max-width: 560px; margin: 18px auto 0; padding: 26px 18px 20px; border: 1px solid #dca46166; border-radius: 18px; background: linear-gradient(150deg, #79283a99, #351023ed); text-align: center; }
.rp-result-badge { display: grid; place-items: center; width: 47px; height: 47px; margin: 0 auto 14px; border: 1px solid #e4b36f96; border-radius: 50%; background: #ae784329; color: #ffdb92; font-size: 25px; }
.rp-result h2 { color: #ffe2a4; font-family: inherit; margin: 9px 0; font-size: 23px; font-weight: 650; }
.rp-result > p { margin: 0; color: #c89c80; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.rp-result-totals { display: grid; grid-template-columns: 1fr 1.25fr; margin: 24px 0; align-items: center; }
.rp-result-totals > div + div { border-left: 1px solid #d39b5661; }
.rp-result-totals span { color: #cba17c; font-size: 10px; }
.rp-result-totals strong { display: block; margin-top: 7px; color: #ffe1a0; font-size: 31px; font-variant-numeric: tabular-nums; }
.rp-result-totals small { font-size: 12px; font-weight: 400; }
.rp-result-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.rp-text-button { min-height: 38px; padding: 8px 3px; border: 0; background: transparent; color: #ecc98b; font-size: 11px; }
.rp-text-button > span { display: inline-block; margin-left: 5px; }
.rp-text-button[aria-expanded="true"] > span { transform: rotate(180deg); }
.rp-detail { margin: 8px -3px 0; padding: 0 11px; border: 1px solid #c494545e; border-radius: 11px; background: #29091a80; text-align: left; }
.rp-detail-heading, .rp-detail-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 0; font-size: 11px; }
.rp-detail-heading { border-bottom: 1px solid #c1915144; }
.rp-detail-heading > span { color: #b68e70; font-size: 9px; }
.rp-detail-list, .rp-history-detail { max-height: 300px; max-height: min(300px, 46vh); max-height: min(300px, 46svh); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.rp-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 11px 0; border-bottom: 1px dashed #bd884134; font-size: 11px; }
.rp-detail-row:last-child { border-bottom: 0; }
.rp-detail-row > span { min-width: 0; color: #d2ac86; }
.rp-detail-row i { color: #e0bc79; font-style: normal; margin-right: 4px; }
.rp-detail-row strong { flex: none; color: #ffdda0; font-variant-numeric: tabular-nums; }
.rp-detail-row time { display: block; margin-top: 5px; color: #b88d74; font-size: 9px; font-variant-numeric: tabular-nums; line-height: 1.6; overflow-wrap: anywhere; }
.rp-detail-footer { color: #f8d596; border-top: 1px solid #c1915144; }
.rp-empty-inline { padding: 4px 0; color: #b78d70; font-size: 11px; text-align: center; }
.rp-information { max-width: 620px; margin: 0 auto; padding: 23px 17px 20px; border: 1px solid #c4905352; border-radius: 16px; background: linear-gradient(145deg, #5c1d30cc, #2c0a1de8); }
.rp-information h2 { margin: 9px 0 23px; color: #f9daa0; font-family: inherit; font-size: 22px; font-weight: 650; line-height: 1.5; }
.rp-rule-steps > div { display: flex; gap: 12px; padding: 0 0 22px; }
.rp-rule-steps > div > b { display: grid; flex: none; place-items: center; width: 31px; height: 31px; border: 1px solid #ca965467; border-radius: 9px; background: #b77b3921; color: #e6bf7d; font-size: 11px; font-weight: 500; }
.rp-rule-steps p { margin: 2px 0 0; }
.rp-rule-steps strong { display: block; margin-bottom: 6px; color: #efc994; font-size: 12px; }
.rp-rule-steps p > span { display: block; color: #c59b7d; font-size: 11px; line-height: 1.9; }
.rp-rule-steps em { font-style: normal; }
.rp-custom-rules { padding: 15px 0 18px; color: #dbb58c; border-top: 1px solid #bc894b49; font-size: 12px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-rule-note { margin: 1px 0 20px; padding: 11px; border: 1px solid #bf8b4f45; border-radius: 9px; background: #ca965019; color: #c09a77; font-size: 10px; line-height: 1.9; }
.rp-rules-status { color: #b98f71; font-size: 10px; line-height: 1.7; }
.redpack-app .rp-outline { display: block; width: 100%; min-height: 43px; padding: 10px 8px; border: 1px solid #d1a15d8c; border-radius: 9px; background: #a56e2e17; color: #edc988; font-size: 12px; touch-action: manipulation; }
.rp-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.rp-history-heading h2 { margin-bottom: 20px; }
.rp-history-heading .rp-text-button { flex: none; font-size: 10px; }
.rp-history-note { margin: -10px 0 18px; color: #ba9274; font-size: 10px; line-height: 1.8; }
.rp-history-card { margin: 0 0 12px; border: 1px solid #c1905259; border-radius: 10px; background: #320c206e; overflow: hidden; }
.rp-history-card summary { display: flex; align-items: center; gap: 9px; min-height: 75px; padding: 12px 10px; cursor: pointer; list-style: none; }
.rp-history-card summary::-webkit-details-marker { display: none; }
.rp-history-icon { display: grid; place-items: center; width: 30px; height: 37px; flex: none; border: 1px solid #dbac6a99; border-radius: 5px; background: #c14935a6; color: #ffdb91; font-size: 17px; }
.rp-history-copy { flex: 1; min-width: 0; }
.rp-history-copy strong { display: block; color: #e6bf8b; font-size: 11px; }
.rp-history-copy small { display: block; margin-top: 5px; color: #b58a70; font-size: 9px; line-height: 1.6; }
.rp-history-amount { flex: none; text-align: right; }
.rp-history-amount strong { display: block; color: #f4cc87; font-size: 15px; font-variant-numeric: tabular-nums; }
.rp-history-amount small { display: block; margin-top: 6px; color: #ba916c; font-size: 8px; }
.rp-history-times { display: grid; gap: 9px; margin: 0 10px; padding: 12px 0; border-top: 1px solid #b77e4540; border-bottom: 1px solid #b77e4533; }
.rp-history-times > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; color: #b48a6e; font-size: 9px; }
.rp-history-times strong { color: #ddbc8d; font-size: 10px; font-weight: 450; font-variant-numeric: tabular-nums; }
.rp-history-detail { margin: 0 11px; }
.rp-history-status { padding: 12px 0 20px; color: #c19b75; font-size: 11px; line-height: 1.7; text-align: center; }
.rp-history-more { margin: 10px 0 20px; }
.rp-history-empty { padding: 24px 0 38px; text-align: center; }
.rp-history-empty > span { display: block; margin-bottom: 18px; color: #dfb876; font-size: 38px; }
.rp-history-empty strong { display: block; color: #ddbc8e; font-size: 12px; }
.rp-history-empty p { margin-top: 11px; color: #b28b6e; font-size: 10px; }
@media (min-width: 700px) {
  .redpack-app { padding-top: 16px; }
  .rp-heading { margin-bottom: 12px; }
  .rp-heading h1 { font-size: 40px; letter-spacing: 5px; }
  .rp-heading p { font-size: 11px; }
  .rp-scoreboard > div { padding-top: 6px; padding-bottom: 6px; }
  .rp-scoreboard strong { font-size: 25px; padding-top: 2px; }
  .rp-game-instruction { font-size: 11px; }
  .rp-stage-space { height: 376px; height: clamp(286px, calc(100vh - 466px), 526px); height: clamp(286px, calc(100svh - 466px), 526px); }
  .rp-packet-body { width: 54px; height: 68px; }
  .rp-packet-seal { left: 14px; top: 19px; width: 24px; height: 24px; font-size: 17px; }
  .rp-packet-body i { font-size: 8px; bottom: 9px; }
  .rp-orbit { width: 300px; height: 300px; }
  .rp-orbit span { font-size: 136px; }
}
@media (max-width: 350px) {
  .redpack-app { padding-left: 12px; padding-right: 12px; }
  .rp-heading h1 { font-size: 30px; letter-spacing: 2px; }
  .rp-heading p { font-size: 10px; }
  .rp-scoreboard { gap: 7px; }
  .rp-scoreboard > div > span { font-size: 9px; }
  .rp-scoreboard strong { font-size: 23px; gap: 2px; }
  .rp-scoreboard strong small { font-size: 9px; }
  .rp-game-instruction { font-size: 9px; }
  .rp-luck-feedback { font-size: 15px; }
  .rp-live-summary { padding-left: 11px; padding-right: 11px; }
  .rp-live-summary strong { font-size: 12px; }
  .rp-live-summary strong b { font-size: 16px; }
  .rp-intro h2 { font-size: 16px; }
  .rp-information { padding-left: 12px; padding-right: 12px; }
  .rp-information h2 { font-size: 20px; }
  .rp-history-heading .rp-eyebrow { letter-spacing: 1px; font-size: 9px; }
  .rp-history-card summary { gap: 7px; padding-left: 8px; padding-right: 8px; }
  .rp-history-copy small { font-size: 8px; }
  .rp-history-amount strong { font-size: 13px; }
}
@media (max-height: 650px) {
  .redpack-app { padding-top: 8px; padding-bottom: 8px; }
  .rp-heading { margin-bottom: 6px; }
  .rp-heading > .rp-eyebrow, .rp-heading > p { display: none; }
  .rp-heading h1 { font-size: 27px; line-height: 1.15; margin: 0; letter-spacing: 2px; }
  .rp-tabs { padding: 2px; margin-bottom: 8px; }
  .rp-tabs button { min-height: 27px; font-size: 11px; }
  .rp-scoreboard { gap: 7px; margin-bottom: 0; }
  .rp-scoreboard > div { padding-top: 4px; padding-bottom: 4px; border-radius: 8px; }
  .rp-scoreboard > div > span { font-size: 8px; }
  .rp-scoreboard strong { padding-top: 1px; font-size: 21px; line-height: 1.1; }
  .rp-scoreboard strong small { font-size: 9px; }
  .rp-game-instruction { font-size: 9px; margin-top: 6px; margin-bottom: 1px; }
  .rp-stage-space { height: 184px; height: clamp(144px, calc(100vh - 342px), 314px); height: clamp(144px, calc(100svh - 342px), 314px); }
  .rp-orbit { width: 170px; height: 170px; }
  .rp-orbit span { font-size: 83px; }
  .rp-intro { padding: 8px; }
  .rp-hero-envelope { width: 51px; height: 62px; border-radius: 7px; margin-bottom: 11px; }
  .rp-hero-envelope::before { top: -21px; height: 43px; }
  .rp-hero-envelope > span { top: 17px; left: 13px; width: 21px; height: 21px; font-size: 15px; }
  .rp-hero-envelope > i { bottom: 7px; font-size: 7px; letter-spacing: 1px; }
  .rp-intro h2 { font-size: 14px; margin-bottom: 4px; }
  .rp-intro p { font-size: 9px; }
  .rp-playing-note { top: 5px; font-size: 8px; }
  .rp-arena-footer { font-size: 8px; bottom: 8px; }
  .rp-live-summary { margin-top: 7px; margin-bottom: 8px; min-height: 44px; padding: 7px 12px; border-radius: 10px; }
  .rp-live-summary > div > span { font-size: 8px; }
  .rp-live-summary strong { margin-top: 3px; font-size: 12px; }
  .rp-live-summary strong b { font-size: 15px; }
  .rp-luck-feedback { font-size: 16px; }
  .redpack-app .rp-main-action .rp-primary { min-height: 42px; padding-top: 7px; padding-bottom: 7px; font-size: 14px; border-radius: 10px; }
  .rp-game-footnote { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rp-primary:active { transform: none; } }

/* 超级大奖光效：来自已校验的原始快照，统一添加命名空间。 */
.rp-jp-redpacket{position:relative;width:72px;height:88px;border:2px solid #ffa77e;border-radius:11px 11px 13px 13px;background:linear-gradient(125deg,#ff7771 0%,#ef3447 29%,#d21a3c 70%,#a70e36 100%);box-shadow:inset 0 0 0 2px #ee456055,inset 0 -17px 16px #790b2526,0 0 13px #ff7c6133;overflow:hidden;display:block;transform:translateZ(0)}
.rp-jp-redpacket::before{content:"";position:absolute;left:-2px;right:-2px;top:-1px;height:31px;border-radius:11px 11px 48% 48%;background:linear-gradient(160deg,#ff9281,#f44155 80%);border-bottom:2px solid #ffb66e;box-shadow:0 4px 8px #6b092327}
.rp-jp-redpacket::after{content:"";position:absolute;left:7px;right:7px;bottom:7px;height:1px;background:#ffb98c80}
.rp-jp-coin{position:absolute;top:21px;left:50%;transform:translateX(-50%);width:37px;height:37px;border-radius:50%;background:radial-gradient(circle at 26% 20%,#fff6c8 0%,#fbd67c 38%,#eaa03d 100%);border:1px solid #ffe8a7;display:grid;place-items:center;color:#9e342b;font-size:20px;font-weight:1000;box-shadow:0 2px 0 #a23b29,0 0 14px #fff0a544}
.rp-jp-packet-word{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:9px;font-weight:900;letter-spacing:3px;color:#ffe7b5}
.rp-jp-cinema{position:absolute;inset:0;z-index:20;overflow:hidden;isolation:isolate;display:block;pointer-events:auto}
.rp-jp-cinema-backdrop{position:absolute;inset:0;background:radial-gradient(ellipse 85% 48% at 50% 44%,#b22e43ea,#4b102ce6 65%,#1b0613f5 100%);opacity:0;animation:rpJpCinemaFade .35s ease forwards}
@keyframes rpJpCinemaFade{to{opacity:1}}
.rp-jp-cinema-backdrop::after{content:"";position:absolute;inset:0;background:repeating-conic-gradient(from 0deg at 50% 43%,transparent 0 11deg,#ffd88717 13deg,transparent 15deg 27deg);opacity:.75}
.rp-jp-cinema-specks{position:absolute;inset:0;background-image:radial-gradient(circle,#ffe2a0 0 1px,transparent 2px);background-size:83px 96px;opacity:.35;pointer-events:none}
.rp-jp-cinema-top{position:absolute;top:calc(env(safe-area-inset-top, 0px) + clamp(43px,7.5vh,79px));left:12px;right:12px;text-align:center;z-index:4;opacity:0;transform:translateY(16px);animation:rpJpBannerIn .65s .2s ease forwards}
.rp-jp-cinema-flag{font-size:10px;letter-spacing:5px;font-weight:800;color:#ffdc9b;display:flex;gap:12px;align-items:center;justify-content:center}
.rp-jp-cinema-flag::before,.rp-jp-cinema-flag::after{content:"";height:1px;width:29px;background:linear-gradient(90deg,transparent,#ffe9a4)}.rp-jp-cinema-flag::after{transform:rotate(180deg)}
.rp-jp-cinema-headline{margin:13px 0 0;font-size:clamp(28px,7.5vw,44px);letter-spacing:4px;font-weight:1000;color:#fff4c9;text-shadow:0 0 15px #ffb85d90,0 3px 15px #640f23}
.rp-jp-cinema-top p{font-size:12px;color:#f9d5aa;margin:9px 0 0;letter-spacing:1px}
@keyframes rpJpBannerIn{to{opacity:1;transform:translateY(0)}}
.rp-jp-energy{position:absolute;left:50%;top:44%;width:0;height:0;z-index:3;pointer-events:none}
.rp-jp-energy-rays{position:absolute;left:0;top:0;width:460px;height:460px;margin-left:-230px;margin-top:-230px;opacity:0;border-radius:50%;background:repeating-conic-gradient(from 12deg,#ffdc853e 0deg 5deg,transparent 7deg 19deg,#fff8cf3b 20deg 21deg,transparent 23deg 34deg);mask-image:radial-gradient(circle,transparent 0 6%,#000 15%,#000 47%,transparent 70%);animation:rpJpRaysEnter 2s .35s cubic-bezier(.15,.65,.25,1) forwards}
@keyframes rpJpRaysEnter{0%{transform:scale(.13) rotate(-35deg);opacity:0}25%{opacity:.98}80%{opacity:.95}100%{transform:scale(1.43) rotate(70deg);opacity:0}}
.rp-jp-energy-glow{position:absolute;left:0;top:0;width:250px;height:250px;margin:-125px 0 0 -125px;border-radius:50%;background:radial-gradient(circle,#fffbd9 0%,#ffe4a5 14%,#ffc66d9e 28%,#ffad4c52 48%,transparent 71%);filter:blur(8px);opacity:0;animation:rpJpGlowUnfold 2s .3s ease-in-out forwards}
@keyframes rpJpGlowUnfold{0%{opacity:0;transform:scale(.1)}30%{opacity:.8}73%{opacity:1}100%{opacity:.05;transform:scale(2.3)}}
.rp-jp-energy-ring{position:absolute;left:0;top:0;width:210px;height:210px;margin:-105px 0 0 -105px;border:3px solid #ffe3a1;border-radius:50%;box-shadow:0 0 16px #fff1b8,0 0 24px #efab3a,inset 0 0 13px #ffe7a4;opacity:0;animation:rpJpRingBloom 1.46s .55s cubic-bezier(.09,.6,.17,1) forwards}
.rp-jp-energy-ring.rp-jp-r2{width:255px;height:255px;margin:-127.5px 0 0 -127.5px;border-width:2px;animation-delay:.78s;animation-duration:1.42s}
.rp-jp-energy-ring.rp-jp-r3{width:169px;height:169px;margin:-84.5px 0 0 -84.5px;border-width:3px;animation-delay:1.08s;animation-duration:1.22s}
@keyframes rpJpRingBloom{0%{opacity:0;transform:scale(.1)}17%{opacity:1}62%{opacity:.85}100%{opacity:0;transform:scale(2.1)}}
.rp-jp-epic-packet{position:absolute;left:0;top:0;width:72px;height:88px;z-index:6;transform:translate(calc(-50% + var(--origin-x, 0px)),calc(-50% + var(--origin-y, 0px))) scale(.96);transform-origin:center center;will-change:transform,opacity;filter:drop-shadow(0 0 16px #ffe6aa);animation:rpJpEpicLand .98s cubic-bezier(.2,.66,.2,1) forwards}
.rp-jp-epic-packet .rp-jp-redpacket{box-shadow:inset 0 0 0 2px #ee456055,inset 0 -17px 16px #790b2526,0 0 24px #ffd273ae;animation:rpJpPowerRise 1.05s .99s ease-in forwards}
@keyframes rpJpPowerRise{0%{transform:scale(1);filter:brightness(1)}60%{transform:scale(1.11);filter:brightness(1.16)}100%{transform:scale(1.22);filter:brightness(1.4)}}
@keyframes rpJpEpicLand{0%{transform:translate(calc(-50% + var(--origin-x, 0px)),calc(-50% + var(--origin-y, 0px))) scale(.96)}55%{transform:translate(-50%,-50%) scale(2.13)}80%{transform:translate(-50%,-50%) scale(1.74)}100%{transform:translate(-50%,-50%) scale(1.9)}}
.rp-jp-cinema.is-charging .rp-jp-cinema-backdrop,.rp-jp-cinema.is-burst .rp-jp-cinema-backdrop{animation:rpJpCinemaPulse 1.18s ease-in-out infinite alternate}
@keyframes rpJpCinemaPulse{from{filter:saturate(1) brightness(1)}to{filter:saturate(1.22) brightness(1.15)}}
@keyframes rpJpScreenQuake{0%{transform:translate3d(0,0,0)}25%{transform:translate3d(.5px,-1px,0)}50%{transform:translate3d(-1.2px,.8px,0)}75%{transform:translate3d(1px,.5px,0)}100%{transform:translate3d(-.6px,-.4px,0)}}
@keyframes rpJpContentShake{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(.8px,-.6px,0)}}
.rp-jp-cinema.is-burst .rp-jp-epic-packet{animation:rpJpEpicBurst 1.15s cubic-bezier(.19,.64,.26,1) forwards}
@keyframes rpJpEpicBurst{0%{opacity:1;transform:translate(-50%,-50%) scale(1.98)}18%{opacity:1;transform:translate(-50%,-50%) scale(2.22) rotate(-5deg);filter:brightness(1.8) drop-shadow(0 0 38px #fff2c4)}60%{opacity:1;transform:translate(-50%,-50%) scale(2.92) rotate(6deg);filter:brightness(2.2) drop-shadow(0 0 65px #fff9df)}100%{opacity:0;transform:translate(-50%,-50%) scale(4.8) rotate(12deg);filter:brightness(3.4) drop-shadow(0 0 90px #fff9df)}}
.rp-jp-strobe-layer,.rp-jp-shockwaves,.rp-jp-whiteout{position:absolute;inset:0;pointer-events:none}
.rp-jp-strobe-layer{z-index:7}
.rp-jp-strobe{position:absolute;inset:-18%;opacity:0;background:radial-gradient(circle at 50% 44%,#fffef5 0%,#fff2b8 13%,#ffd37d88 26%,transparent 56%);mix-blend-mode:screen;filter:blur(4px)}
.rp-jp-cinema.is-charging .rp-jp-strobe.rp-jp-s1{animation:rpJpStrobePulse 1.1s .2s ease-in-out infinite}
.rp-jp-cinema.is-charging .rp-jp-strobe.rp-jp-s2{animation:rpJpStrobePulse 1.05s .45s ease-in-out infinite}
.rp-jp-cinema.is-charging .rp-jp-strobe.rp-jp-s3{animation:rpJpStrobePulse .95s .68s ease-in-out infinite}
.rp-jp-cinema.is-burst .rp-jp-strobe.rp-jp-s1{animation:rpJpStrobeBlast .95s linear 0s 2 forwards}
.rp-jp-cinema.is-burst .rp-jp-strobe.rp-jp-s2{animation:rpJpStrobeBlast .95s linear .16s 2 forwards}
.rp-jp-cinema.is-burst .rp-jp-strobe.rp-jp-s3{animation:rpJpStrobeBlast .95s linear .32s 2 forwards}
@keyframes rpJpStrobePulse{0%,100%{opacity:.06;transform:scale(.78)}45%{opacity:.5;transform:scale(1.05)}70%{opacity:.18;transform:scale(.92)}}
@keyframes rpJpStrobeBlast{0%{opacity:0;transform:scale(.75)}12%{opacity:1;transform:scale(1.18)}24%{opacity:.08;transform:scale(1.28)}36%{opacity:.96;transform:scale(1.4)}48%{opacity:.18;transform:scale(1.52)}60%{opacity:.9;transform:scale(1.67)}100%{opacity:0;transform:scale(2.2)}}
.rp-jp-flash{position:absolute;inset:0;background:radial-gradient(circle at 50% 44%,#fffef7 0%,#fff2b8 10%,#ffd3728a 28%,#ffad4d2c 48%,transparent 75%);opacity:0;z-index:7;pointer-events:none;mix-blend-mode:screen}
.rp-jp-cinema.is-burst .rp-jp-flash{animation:rpJpFlashBang 1.65s ease-out forwards}
@keyframes rpJpFlashBang{0%{opacity:0}7%{opacity:1}18%{opacity:.3}28%{opacity:.98}38%{opacity:.45}48%{opacity:.95}62%{opacity:.25}76%{opacity:.82}100%{opacity:0}}
.rp-jp-whiteout{background:radial-gradient(circle at 50% 44%,#fffef8 0 12%,#fff2c0 20%,#ffd4887c 35%,transparent 62%);z-index:8;opacity:0;mix-blend-mode:screen}
.rp-jp-cinema.is-burst .rp-jp-whiteout{animation:rpJpWhiteoutBang 1.6s ease-out forwards}
@keyframes rpJpWhiteoutBang{0%{opacity:0;transform:scale(.6)}18%{opacity:.15}30%{opacity:.96}52%{opacity:.35}70%{opacity:.75}100%{opacity:0;transform:scale(1.6)}}
.rp-jp-shockwaves{z-index:8}
.rp-jp-shock{position:absolute;left:50%;top:44%;width:120px;height:120px;border-radius:50%;transform:translate(-50%,-50%) scale(.15);opacity:0;border:3px solid #ffe4a8;box-shadow:0 0 30px #fff0b3,inset 0 0 22px #ffd16e}
.rp-jp-shock.rp-jp-s2{border-color:#fff6d0;border-width:2px}.rp-jp-shock.rp-jp-s3{border-color:#ffd480;border-width:4px}.rp-jp-shock.rp-jp-s4{border-color:#fff0bc;border-width:2px}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s1{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .02s forwards}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s2{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .18s forwards}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s3{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .36s forwards}
.rp-jp-cinema.is-burst .rp-jp-shock.rp-jp-s4{animation:rpJpShockwave 1.45s cubic-bezier(.08,.7,.2,1) .54s forwards}
@keyframes rpJpShockwave{0%{opacity:0;transform:translate(-50%,-50%) scale(.18)}12%{opacity:1}68%{opacity:.65}100%{opacity:0;transform:translate(-50%,-50%) scale(7.3)}}
.rp-jp-fx-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:9;pointer-events:none}
.rp-jp-bigwin{position:absolute;left:0;right:0;top:clamp(160px,23%,230px);z-index:11;text-align:center;opacity:0;transform:translateY(42px) scale(.7);pointer-events:none;padding:0 12px}
.rp-jp-cinema.is-revealed .rp-jp-bigwin{animation:rpJpBigWinIn 1.18s cubic-bezier(.16,1.25,.32,1) forwards}
@keyframes rpJpBigWinIn{0%{opacity:0;transform:translateY(42px) scale(.56)}30%{opacity:1;transform:translateY(-8px) scale(1.16)}55%{opacity:1;transform:translateY(4px) scale(.98)}78%{opacity:1;transform:translateY(-2px) scale(1.07)}100%{opacity:1;transform:translateY(0) scale(1)}}
.rp-jp-crown{font-size:37px;filter:drop-shadow(0 0 15px #ffd288);line-height:1.2}
.rp-jp-win-kicker{margin-top:5px;font-size:11px;color:#fff4c6;letter-spacing:4px;font-weight:900}
.rp-jp-win-title{margin:4px 0 0;font-size:clamp(30px,8vw,43px);line-height:1.18;letter-spacing:3px;font-weight:1000;background:linear-gradient(180deg,#fffcef 0%,#ffe69c 44%,#efb450 95%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 5px 8px #661a27)}
.rp-jp-prize{margin:8px 0 0;font-size:clamp(54px,13.2vw,75px);font-weight:1000;letter-spacing:-2px;line-height:1.2;font-variant-numeric:tabular-nums;color:#fff4ca;text-shadow:0 3px #b95b33,0 0 24px #ffe5a7ac,0 0 55px #ffc16c7a;white-space:nowrap}
.rp-jp-prize small{font-size:17px;margin-left:4px;letter-spacing:0}
.rp-jp-win-sub{margin:9px 0 0;color:#ffe1ad;font-size:12px;letter-spacing:1px}
.rp-jp-cinema.is-revealed .rp-jp-win-title{animation:rpJpTitlePulse 1.2s ease-in-out infinite alternate}
@keyframes rpJpTitlePulse{from{filter:drop-shadow(0 5px 8px #661a27)}to{filter:drop-shadow(0 0 18px #ffcf7a) drop-shadow(0 0 36px #ffc15f)}}
.rp-jp-cinema.is-revealed .rp-jp-prize{animation:rpJpPrizePulse .9s ease-in-out infinite alternate}
@keyframes rpJpPrizePulse{0%{transform:scale(1);text-shadow:0 3px #b95b33,0 0 24px #ffe5a7ac,0 0 55px #ffc16c7a}100%{transform:scale(1.08);text-shadow:0 3px #b95b33,0 0 28px #fff1bd,0 0 66px #ffd06c,0 0 110px #ffefad}}

/* 快照动画只作用于开奖层；既有页面布局与金额逻辑保持独立。 */
.rp-heading { position: relative; }
.redpack-app .rp-sound-toggle { position: absolute; right: 0; top: -6px; min-height: 28px; padding: 3px 8px; border: 1px solid #ffdeb454; border-radius: 99px; background: #2c0a1d88; color: #f9d0a1; font-size: 10px; }
.redpack-app.rp-jackpot-active { z-index: 100; }
.rp-jp-cinema { position: fixed; inset: 0; width: min(100%, 540px); height: 100vh; height: 100dvh; margin: auto; background: #250715; box-shadow: 0 0 0 100vmax #18040fe6; outline: none; }
.rp-jp-cinema.is-charging, .rp-jp-cinema.is-burst { animation: rpJpScreenQuake .18s linear infinite alternate; }
.rp-jp-cinema-backdrop { opacity: 1; }
.rp-jp-cinema :is(h2, p) { font-family: inherit; }
.rp-jp-cinema .rp-jp-win-title { color: transparent; }
.rp-jp-settlement { position: absolute; z-index: 12; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); left: 15px; right: 15px; max-height: 48%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; animation: rpJpBannerIn .55s ease both; }
.rp-jp-settlement .rp-result { margin: 0 auto; padding: 14px; background: linear-gradient(153deg,#6a1a35f2,#320b25fa 69%); }
.rp-jp-settlement .rp-result-badge, .rp-jp-settlement .rp-result > .rp-eyebrow { display: none; }
.rp-jp-settlement .rp-result h2 { margin-top: 0; font-size: 20px; }
.rp-jp-settlement .rp-result-totals { margin: 13px 0; }
.rp-jp-settlement .rp-result-totals strong { margin-top: 4px; font-size: 26px; }
.rp-jp-settlement .rp-primary { min-height: 41px; font-size: 14px; }
.rp-jp-settlement .rp-detail-list { max-height: 130px; }
.rp-jp-cinema.is-settled .rp-jp-bigwin { opacity: 1; transform: none; top: 20%; }
.rp-jp-cinema.is-settled :is(.rp-jp-bigwin, .rp-jp-win-title, .rp-jp-prize, .rp-jp-cinema-backdrop) { animation: none; }
.rp-jp-cinema.is-settled .rp-jp-epic-packet { display: none; }
.rp-detail-row.is-effect { background: #ffce7712; }
.rp-detail-row.is-effect > span { color: #ffe6aa; }
@media (max-height: 745px) {
  .rp-jp-cinema-top { top: calc(env(safe-area-inset-top, 0px) + 25px); }
  .rp-jp-cinema-headline { margin-top: 6px; font-size: 31px; }
  .rp-jp-cinema-top p { margin-top: 4px; }
  .rp-jp-bigwin { top: 23%; }
  .rp-jp-crown { font-size: 29px; }
  .rp-jp-win-title { font-size: 30px; }
  .rp-jp-prize { font-size: clamp(48px,12vw,62px); margin-top: 4px; }
  .rp-jp-win-sub { margin-top: 4px; font-size: 10px; }
  .rp-jp-settlement { max-height: 47%; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .rp-jp-settlement .rp-result { padding: 11px; }
}
@media (max-height: 590px) {
  .rp-jp-cinema-top { top: 8px; }
  .rp-jp-cinema-headline { font-size: 23px; }
  .rp-jp-cinema-top p { font-size: 10px; }
  .rp-jp-bigwin, .rp-jp-cinema.is-settled .rp-jp-bigwin { top: 18%; }
  .rp-jp-cinema.is-settled .rp-jp-crown { display: none; }
  .rp-jp-win-title { font-size: 26px; }
  .rp-jp-prize { font-size: 46px; }
  .rp-jp-settlement { max-height: 48%; }
  .rp-jp-settlement .rp-result h2 { font-size: 17px; }
  .rp-jp-settlement .rp-result-totals { margin: 8px 0; }
}
@media (max-width: 350px) {
  .rp-jp-cinema-headline { font-size: 26px; letter-spacing: 2px; }
  .rp-jp-win-title { font-size: 26px; letter-spacing: 1px; }
  .rp-jp-prize { font-size: 46px; }
  .rp-sound-toggle { top: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-jp-cinema, .rp-jp-cinema * { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .rp-jp-strobe-layer, .rp-jp-whiteout, .rp-jp-flash, .rp-jp-shockwaves, .rp-jp-fx-canvas { display: none; }
}

/* 今日红包雨幸运儿：红金色循环名单。 */

.redpack-app .rp-winners {
  width: min(100%, 420px);
  padding: 15px 16px 12px;
  border: 1px solid #ffd58d;
  border-radius: 18px;
  overflow: hidden;
  background:
          radial-gradient(
                  ellipse at 50% 0,
                  #ffcd7240,
                  transparent 70%
          ),
          linear-gradient(135deg, #b82e35, #7e152b 65%, #581022);
  box-shadow:
          0 8px 26px #24001566,
          0 0 22px #ffb95424,
          inset 0 0 0 4px #ffdc8b12;
}

.redpack-app .rp-winners-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #ffda923d;
  color: #ffe6a9;
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 2px 4px #4b061c80;
}

.redpack-app .rp-winners-heading::before,
.redpack-app .rp-winners-heading::after {
  content: "✦";
  flex: none;
  color: #ffd16c;
  font-size: 14px;
}

.redpack-app .rp-winners-window {
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  background: #35071d42;
}

.redpack-app .rp-winners-track {
  will-change: transform;
}

.redpack-app .rp-winners-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 12px;
}

.redpack-app .rp-winners-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff1db;
  font-size: 16px;
  font-weight: 600;
}

.redpack-app .rp-winners-amount {
  color: #ffdf7d;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px #ffc54a40;
}

.redpack-app .rp-winners-amount small {
  margin-right: 3px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 350px) {
  .redpack-app .rp-winners {
    padding-right: 10px;
    padding-left: 10px;
  }

  .redpack-app .rp-winners-heading {
    gap: 5px;
    font-size: 15px;
    letter-spacing: 0;
  }

  .redpack-app .rp-winners-row {
    gap: 8px;
    padding: 0 9px;
  }

  .redpack-app .rp-winners-name {
    font-size: 14px;
  }

  .redpack-app .rp-winners-amount {
    font-size: 22px;
  }
}

@media (max-height: 650px) {
  .redpack-app .rp-winners {
    padding-top: 10px;
    padding-bottom: 8px;
    border-radius: 13px;
  }

  .redpack-app .rp-winners-heading {
    margin-bottom: 6px;
    padding-bottom: 6px;
    font-size: 15px;
  }
}
/* 开启失败、结束结算提示弹窗 */
.rp-message-dialog {
  position: fixed;
  inset: 0;
  width: min(360px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 26px 22px 20px;
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid #d9ad69;
  border-radius: 18px;
  background: linear-gradient(145deg, #4b1630, #2b071b);
  color: #fff2d4;
  text-align: center;
  box-shadow: 0 18px 60px #0008;
  cursor: pointer;
}

.rp-message-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.rp-message-dialog:focus-visible {
  outline: 2px solid #ffe1a0;
  outline-offset: 3px;
}

.rp-message-dialog__title {
  margin: 0 0 14px;
  color: #ffe1a0;
  font-size: 20px;
  font-weight: 700;
}

.rp-message-dialog__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rp-message-dialog__hint {
  margin: 18px 0 0;
  color: #d5b5aa;
  font-size: 12px;
}

/* Host chrome uses guixin's existing styles. Only the activity container expands. */
.phone.redpack-phone{max-width:1016px}
#redpack-root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
#redpack-root .redpack-app button{letter-spacing:normal}