/* Reference: Douyin's envelope/coin structure and live lucky-bag section layout.
   The operator requested vermilion rather than the reference's rose-red variant. */
.vr-ready-layer .vr-ready-card{position:relative;width:264px;height:352px;max-width:calc(100% - 30px);padding:0;overflow:hidden;border:0;border-radius:25px;background:#e92124;color:#ffe7b0;box-shadow:0 16px 48px #63080970,inset 0 1px #ff7863;text-align:center}
.vr-ready-card:before{content:"";position:absolute;left:-35%;right:-35%;bottom:-38px;height:116px;border:14px double #ff624125;border-radius:50%;pointer-events:none}
.vr-ready-card .vr-ready-close{z-index:5;top:10px;right:10px;color:#ffecda;width:24px;height:24px;font-size:22px}
.vr-ready-card .vr-ready-content{position:static;display:block;gap:0;height:100%;width:100%}
.vr-envelope-front{position:absolute;top:26px;left:19px;right:19px;z-index:2;display:flex;flex-direction:column;align-items:center}
.vr-envelope-sender{width:39px;height:39px;box-sizing:border-box;display:grid;place-items:center;margin:0 auto 9px;border:1px solid #ffe8ad;border-radius:50%;background:#b8141c;color:#ffe4a4;font-family:"Songti SC",serif;font-size:22px;font-weight:700;box-shadow:0 2px 4px #8d111a22}
.vr-envelope-front>small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#ffcf9e;line-height:1.6}
.vr-envelope-front>h3{font-size:23px;letter-spacing:2px;line-height:1.4;font-weight:650;color:#ffecba;margin:11px 0 5px}
.vr-envelope-front>p{font-size:10px;line-height:1.6;color:#ffd19e;margin:0}
.vr-envelope-flap{position:absolute;z-index:1;top:-12px;left:-13px;right:-13px;height:237px;box-sizing:border-box;border-bottom:5px solid #ffdfa0;border-radius:0 0 46% 46% / 0 0 21% 21%;background:linear-gradient(145deg,#f73125,#ec2024);box-shadow:0 3px 0 #b9171c22}
.vr-ready-card .vr-ready-content>.vr-envelope-open{position:absolute;z-index:3;top:199px;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:72px;height:72px;min-height:0;margin:0;padding:0;border-radius:50%;border:3px solid #ffe9b0;background:radial-gradient(circle at 36% 23%,#ffe9a5,#f6ce89 65%,#e7ac62);color:#bf562d;font-family:"Songti SC",STSong,serif;font-size:32px;font-weight:800;box-shadow:0 3px 8px #99131926,inset 0 0 0 3px #f4c475,inset 0 0 0 5px #ffdea0;cursor:pointer}
.vr-ready-card .vr-envelope-open:active{transform:translateX(-50%) scale(.96)}
.vr-ready-card .vr-envelope-open:disabled{opacity:.72;cursor:wait}
.vr-envelope-open[aria-busy=true]:after{content:"";position:absolute;inset:-7px;border:2px solid #ffe6a466;border-top-color:#fff1b5;border-radius:50%;animation:vr-red-loading .8s linear infinite}
.vr-ready-card .vr-ready-content>.vr-ready-hint{position:absolute;z-index:3;bottom:21px;left:16px;right:16px;margin:0;font-size:9px;color:#ffcda2;letter-spacing:0;line-height:1.6}
.vr-packet-reveal{position:absolute;top:8px;left:8px;right:8px;height:264px;padding:20px 15px 18px;box-sizing:border-box;border-radius:19px 19px 38% 38% / 19px 19px 10% 10%;background:linear-gradient(155deg,#fff8e6,#ffe6c6);color:#c1532e;box-shadow:0 4px 0 #f4c886}
.vr-packet-reveal .vr-envelope-sender{width:34px;height:34px;font-size:19px;margin-bottom:10px;background:#f02b25}
.vr-packet-reveal>small{display:block;font-size:11px;color:#cc7951;line-height:1.6}
.vr-packet-reveal>h3{font-size:17px;line-height:1.5;font-weight:600;margin:5px 0 8px;color:#b94f28}
.vr-packet-reveal .vr-reward-value{border:0;border-radius:0;background:none;box-shadow:none;margin:4px 0 6px;padding:0;width:auto}
.vr-packet-reveal .vr-reward-value>strong{font-size:35px;line-height:1.25;letter-spacing:-1px;font-weight:750;color:#e32a22}
.vr-packet-reveal .vr-reward-value>span{font-size:10px;color:#bc805b;margin-top:5px}
.vr-packet-reveal>p{font-size:10px;color:#c08b65;line-height:1.6;margin:6px 0}
.vr-ready-card[data-state=opened] .vr-ready-close{color:#c77e5a}
.vr-ready-card[data-state=opened] .vr-ready-content>button{position:absolute;left:17px;right:17px;bottom:36px;width:calc(100% - 34px);margin:0;padding:7px 12px;border:1px solid #ffe7b5;border-radius:20px;min-height:34px;background:linear-gradient(#ffe9b4,#f7c885);box-shadow:0 3px 8px #9b11192b;color:#a2492b;font-size:12px;font-weight:650}
.vr-ready-card[data-state=opened] .vr-ready-content>.vr-ready-hint{bottom:12px;font-size:8px}
.vr-bag-layer{align-items:flex-end;padding:0;background:#0005}
.vr-bag-layer .vr-bag-card{width:100%;max-width:none;max-height:74%;border:0;border-radius:17px 17px 0 0;box-shadow:0 -7px 30px #0003;background:#f6f6f7;color:#222;text-align:left}
.vr-bag-layer .vr-bag-head{height:45px;min-height:45px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;position:relative;padding:7px 40px;margin:0;background:linear-gradient(110deg,#f83425,#df171f);border-bottom:0}
.vr-bag-layer .vr-bag-emblem{width:30px;height:31px;flex:none;display:block;margin:0;border:0;background:none;box-shadow:none}
.vr-bag-layer .vr-bag-emblem svg{width:30px;height:31px;filter:drop-shadow(0 2px 2px #96151530)}
.vr-bag-layer .vr-bag-head h3{font-size:15px;line-height:1.4;letter-spacing:1px;font-weight:600;margin:0;color:#fff5df}
.vr-bag-layer .vr-bag-head>button{top:10px;right:12px;color:#fff0e5;font-size:23px}
.vr-bag-surface{padding:11px 12px max(12px,env(safe-area-inset-bottom))}
.vr-bag-timing{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border-radius:10px 10px 0 0;padding:10px 12px 6px}
.vr-bag-timing>div:last-child{text-align:right}
.vr-bag-layer .vr-bag-countdown{color:#eb2422;font-size:23px;letter-spacing:0;line-height:1.15;font-variant-numeric:tabular-nums;font-weight:700}
.vr-bag-timing span,.vr-bag-timing small{display:block;font-size:9px;color:#a2a2aa;line-height:1.5;margin-top:3px}
.vr-bag-timing span{color:#e44339}
.vr-bag-timing b{font-size:12px;font-weight:600;color:#33343c}
.vr-bag-layer .vr-bag-prize{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0;padding:9px 12px 12px;background:#fff;border:0;border-radius:0 0 10px 10px}
.vr-bag-prize-art{width:49px;height:55px;flex:none;border-radius:7px;background:#fff3e7;display:grid;place-items:center}
.vr-bag-prize-art svg{width:43px;height:49px}
.vr-bag-layer .vr-bag-prize .vr-bag-title{font-size:12px;line-height:1.5;font-weight:600;color:#303139;display:block;overflow-wrap:anywhere}
.vr-bag-layer .vr-bag-prize small{display:block;font-size:9px;color:#96969e;line-height:1.5;margin-top:2px}
.vr-bag-layer .vr-bag-prize .vr-bag-value{font-size:17px;font-weight:700;line-height:1.4;color:#e92a23;display:block;margin-top:2px}
.vr-bag-layer .vr-bag-conditions{margin:9px 0 0;padding:10px 12px;background:#fff;border-radius:9px}
.vr-bag-layer .vr-bag-conditions>strong{font-size:11px;font-weight:600;display:block;color:#3a3a43}
.vr-bag-layer .vr-bag-conditions p{font-size:10px;line-height:1.5;color:#686873;gap:6px;margin:8px 0 0}
.vr-bag-layer .vr-bag-conditions i{border-color:#e8c3b2;color:#d64a2a}
.vr-bag-layer .vr-bag-conditions b{font-size:9px;color:#a0a0a8;font-weight:400}
.vr-bag-layer .vr-bag-actions{padding:11px 0 0}
.vr-bag-layer .vr-bag-join{min-height:38px;border:0;border-radius:7px;padding:9px 12px;background:#ed2424;color:#fff;font-size:13px;font-weight:600;box-shadow:none}
.vr-bag-layer .vr-bag-join:disabled{background:#f9dad6;color:#c66c60}
.vr-bag-layer .vr-bag-actions>small{font-size:8px;color:#a4a3aa;line-height:1.5;margin:7px 0 2px}
.vr-bag-layer .vr-bag-wallet{color:#9b7770;font-size:9px;padding:3px}
.vr-bag-layer .vr-bag-result{color:#e82b25}
.room .vr-entries .rd-entry .rd-icon{background:none;border:0;box-shadow:none;border-radius:0}
.room .vr-entries .rd-entry small{background:#d82222e8;color:#fff5e7}
.room .vr-entries .rd-entry.bag .rd-icon svg{filter:drop-shadow(0 2px 2px #9e171735)}
.vr-sheet .vr-center-tabs button.active{color:#e62a23;border-bottom-color:#e62a23}
.vr-sheet .vr-task-heading>span{background:#fff0e9;color:#c7513b}
.vr-sheet .vr-task-main b,.vr-sheet .vr-wallet b,.vr-sheet .vr-history-row>b{color:#e62a23}
.vr-sheet .vr-task-main button{background:#e92824}
.vr-sheet .vr-task-main button:disabled{background:#e8e8eb;color:#9c9ca5}
.vr-sheet .vr-task.eligible{border-color:#f0c9bc}
.vr-sheet .vr-task progress{accent-color:#e92a25}
.vr-sheet .vr-bag-shortcut>b{color:#e62a23}
.vr-sheet .vr-mini-gift{background:#e62a23;color:#ffe5a8}
.vr-sheet .vr-history-row>b.debit{color:#87908e}
@keyframes vr-red-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.vr-envelope-open[aria-busy=true]:after{animation:none}}
@media(max-height:520px){.vr-ready-layer .vr-ready-card{width:225px;height:300px}.vr-envelope-front{top:19px}.vr-envelope-front>h3{font-size:20px;margin-top:7px}.vr-envelope-flap{height:204px}.vr-ready-card .vr-ready-content>.vr-envelope-open{top:171px;width:63px;height:63px;font-size:29px}.vr-envelope-front>p{font-size:9px}.vr-packet-reveal{height:221px;padding-top:13px}.vr-packet-reveal .vr-envelope-sender{margin-bottom:6px}.vr-packet-reveal>h3{margin:4px 0;font-size:15px}.vr-packet-reveal .vr-reward-value>strong{font-size:29px}}
/* Requested placement: upper right, below the viewer's host row. */
.room .vr-entries{top:94px;left:auto;right:12px;flex-direction:row;justify-content:flex-end;gap:8px}.room .vr-entry{top:94px;right:12px}
.room .vr-entries{flex-direction:column;align-items:center;justify-content:flex-start;gap:8px}.room .vr-entries .rd-entry .rd-icon{width:42px;height:40px}.room .vr-entries .rd-entry.bag .rd-icon{width:46px;height:40px}@media(max-height:560px){.room .vr-entries{top:74px;gap:6px}.room .vr-entries .rd-entry{grid-template-rows:32px 11px 12px}.room .vr-entries .rd-entry .rd-icon,.room .vr-entries .rd-entry.bag .rd-icon{width:36px;height:32px}}
.room .vr-entries .rd-entry{width:54px;box-sizing:border-box}
