.pk-scene{position:absolute;inset:0;z-index:2;pointer-events:none}.pk-timer{position:absolute;top:calc(21.5% - 24px);height:22px;left:0;right:0;text-align:center;color:#fff;font-size:14px;font-weight:700;background:#8013473b;line-height:22px}.pk-energy{position:absolute;top:21.5%;height:17px;left:0;right:0;display:flex;background:#388dff}.pk-red{height:100%;background:#ff318b}.pk-blue{height:100%;background:#4fa6ff}.pk-energy>b{position:absolute;top:0;font-size:12px;line-height:17px;color:#25212b;text-shadow:0 1px #fff2;font-weight:700}.pk-energy>b:nth-last-child(2){left:6px}.pk-energy>b:last-child{right:6px}.pk-frames{position:absolute;left:0;right:0;top:calc(21.5% + 17px);height:40.6%;display:flex}.pk-frame{position:relative;width:50%;height:100%;pointer-events:auto;overflow:hidden;border-right:1px solid #fff2}.pk-frame.recipient{outline:1px solid #ffe28a66;outline-offset:-1px}.pk-frame img.pk-poster,.pk-right-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.pk-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#20202b;font-size:12px;color:#9a94a7}.pk-host-name{position:absolute;left:8px;right:8px;bottom:9px;font-size:12px;color:white;text-shadow:0 1px 3px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pk-right .pk-host-name{text-align:right}.pk-supporters{position:absolute;top:calc(62.1% + 17px);left:0;right:0;display:flex;background:#0002;padding:6px 12px;height:39px}.pk-supporter-team{display:flex;gap:9px;width:50%;align-items:center}.pk-supporters-right{justify-content:flex-end}.pk-supporter{display:inline-flex;position:relative}.pk-supporter small{position:absolute;right:-4px;bottom:-5px;font-size:9px;font-weight:700;color:#f6cc86;text-shadow:0 1px 2px #000}.pk-active #sourceVideo{inset:auto!important;left:0!important;top:calc(21.5% + 17px)!important;width:50%!important;height:40.6%!important;aspect-ratio:auto!important;object-fit:cover!important}.pk-link-mode .pk-timer{color:#eee;font-size:11px}.lucky-bag{position:absolute;left:12px;top:144px;width:40px;height:49px;padding:0;background:none;z-index:5}.lucky-bag img{width:40px;height:45px;object-fit:contain}.lucky-bag>span{position:absolute;bottom:0;left:1px;right:1px;text-align:center;font-size:9px;color:#ffe1a3;background:#630c3e88;border-radius:6px;line-height:13px}.lucky-bag-panel{position:absolute;inset:auto 0 0;background:#24162b;color:#fff;z-index:28;border-radius:15px 15px 0 0;padding:24px 25px;text-align:center;box-shadow:0 -5px 60px #0006}.lucky-bag-close{position:absolute;right:14px;top:11px;background:none;font-size:25px;color:#c4b6c9}.lucky-bag-panel h3{font-size:18px;font-weight:500;margin:2px 0 12px}.lucky-bag-panel>img{display:block;width:88px;height:100px;object-fit:contain;margin:auto}.lucky-bag-panel>b{display:block;color:#ffe2a1;font-size:18px;margin:15px 0}.lucky-bag-panel p{font-size:12px;color:#bdaac3;line-height:1.7;overflow-wrap:anywhere}.lucky-bag-join{display:block;width:100%;padding:13px;border-radius:25px;background:#ff3078;font-size:15px;margin-top:20px}
.pk-active .room-features-top,.pk-active .right-tools,.pk-active .treasure-entry{display:none}.phone:has(#giftSheet:not([hidden])) .pk-active .treasure-entry{display:flex}.pk-active .chat-list{top:calc(62.1% + 64px);bottom:78px;justify-content:flex-end;overflow:hidden}.pk-active .chat-line:nth-last-child(n+5){display:none}

.pk-active{--pk-bar-top:21.5%;--pk-energy-height:17px;--pk-video-height:40.6%}.pk-timer{top:calc(var(--pk-bar-top) - 24px);height:24px;line-height:24px}.pk-energy{top:var(--pk-bar-top);height:var(--pk-energy-height);align-items:stretch;overflow:hidden;z-index:2}.pk-red{flex:none;height:100%}.pk-blue{flex:1;width:auto!important;height:100%}.pk-energy>b{top:0;bottom:0;line-height:1;display:flex;align-items:center;padding:0;white-space:nowrap}.pk-frames{top:calc(var(--pk-bar-top) + var(--pk-energy-height));height:var(--pk-video-height)}.pk-active #sourceVideo{top:calc(var(--pk-bar-top) + var(--pk-energy-height))!important;height:var(--pk-video-height)!important}.pk-supporters{top:calc(var(--pk-bar-top) + var(--pk-energy-height) + var(--pk-video-height));box-sizing:border-box}.lucky-bag{width:48px;height:58px;left:8px;top:135px;display:flex;align-items:center;justify-content:center;flex-direction:column}.lucky-bag>canvas{display:block;width:46px;height:46px;flex:none}.lucky-bag>span{height:13px;line-height:13px;bottom:0;left:5px;right:5px;border-radius:5px;background:#1d10199c;color:#fff;font-size:9px;font-variant-numeric:tabular-nums;letter-spacing:.1px}.pk-active .lucky-bag{top:calc(var(--pk-bar-top) - 63px)}.lucky-bag.ended>canvas{opacity:.78}.lucky-bag-panel>canvas{display:block;width:88px;height:88px;margin:auto}

.pk-capture-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#20202b}.pk-composite #sourceVideo{width:100%!important;opacity:0}.pk-composite .pk-frame{background:none}.pk-red{transition:width .65s ease-in-out}.lucky-bag{width:40px;height:43px;left:8px}.lucky-bag>canvas{width:38px;height:38px}.lucky-bag>span{left:1px;right:1px;height:12px;line-height:12px}.pk-active .lucky-bag{top:calc(var(--pk-bar-top) - 47px)}.pk-link-mode{--pk-bar-top:19%;--pk-energy-height:0px}.pk-link-mode .pk-timer{display:none}.pk-link-mode .lucky-bag{top:calc(var(--pk-bar-top) - 12px)}.pk-link-mode .chat-list{top:calc(59.6% + 30px)}

.pk-timer{top:calc(var(--pk-bar-top) + var(--pk-energy-height));left:calc(50% - 53px);right:auto;width:106px;z-index:3;border-radius:0 0 10px 10px;background:#1b101d99;font-weight:600;font-size:13px}.pk-link-mode .pk-timer{display:none}

/* A stable quarter-second score sample drives the same red/blue boundary. */
.pk-red{transition:width .25s linear}.pk-timer,.pk-energy>b{font-variant-numeric:tabular-nums}.pk-energy[hidden],.pk-timer[hidden]{display:none!important}

/* The measured stage geometry is shared by both video sources and every PK overlay. */
.pk-active{background:linear-gradient(155deg,#240a20 0%,#180b25 48%,#0d1030 100%)}
.pk-active #liveSourceBackdrop,.pk-active #demoBackground,.pk-active #backgroundImage{visibility:hidden}
.pk-active [data-live-recovery]{left:0!important;top:calc(var(--pk-bar-top) + var(--pk-energy-height))!important;width:50%!important;height:var(--pk-video-height)!important}
.pk-composite [data-live-recovery]{visibility:hidden}
.pk-frames{overflow:hidden}
.pk-timer{top:calc(var(--pk-bar-top) - var(--pk-timer-height,24px));height:var(--pk-timer-height,24px);line-height:var(--pk-timer-height,24px);border-radius:0;background:transparent}
.pk-supporters{height:var(--pk-support-height,39px)}
.pk-active .chat-list{top:calc(var(--pk-bar-top) + var(--pk-energy-height) + var(--pk-video-height) + var(--pk-support-height,39px) + 8px)}
.pk-link-mode .chat-list{top:calc(var(--pk-bar-top) + var(--pk-video-height) + 8px)}
