.pi-gifts-panel{position:relative;flex:none;padding:8px 14px;border-top:1px solid #ffffff18;color:#ede1d4;font:12px/1.4 system-ui}.pi-gifts-panel [hidden]{display:none!important}.pi-gifts-toggle{border:0;background:none;color:#e2c394;cursor:pointer;padding:7px 0;font:inherit}.pi-gifts-feedback{font-size:10px;color:#b9abb3;margin:4px 0}.pi-gifts-log{max-height:86px;overflow:auto;scrollbar-width:thin}.pi-gifts-event{font-size:10px;margin:5px 0}.pi-gift-badge{display:inline-block;border:1px solid #a4885f;border-radius:4px;padding:1px 5px;margin-left:6px;color:#e9ca94;font:9px/1.5 system-ui}.pi-gifts-menu{position:absolute;z-index:30;bottom:100%;left:6px;right:6px;padding:16px;border:1px solid #826747;border-radius:12px;background:#201b23;box-shadow:0 12px 35px #0008}.pi-gifts-menu p{font-size:11px;color:#c0adb6}.pi-gifts-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.pi-gifts-heading button{border:0;background:none;color:#eee;font:24px/1 system-ui;cursor:pointer}.pi-gifts-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:12px 0}.pi-gifts-choice{display:grid;justify-items:center;gap:7px;min-width:0;padding:9px 2px;border:1px solid #ffffff18;border-radius:7px;background:#15121a;color:var(--gift-color);cursor:pointer}.pi-gifts-choice span{font:30px/1 Georgia}.pi-gifts-choice small{font:9px system-ui}.pi-gifts-choice[aria-pressed=true]{border-color:#d9b77c;background:#5b453944}.pi-gifts-send{width:100%;padding:12px 5px;border:1px solid #df5470;border-radius:7px;background:#ac203f;color:#fff;cursor:pointer;font:600 12px system-ui}.pi-gifts-send:disabled{opacity:.5;cursor:wait}.pi-gifts-panel button:focus-visible,.pi-regis-gifts button:focus-visible{outline:2px solid #e2bc7d;outline-offset:3px}.pi-regis-gifts{margin:20px 0;padding:20px;border:1px solid #877053;border-radius:12px}.pi-gifts-total{display:block;font-size:28px;margin:12px 0}.pi-regis-log{max-height:220px;overflow:auto;padding-left:20px;font-size:12px}.pi-regis-log li{margin:8px 0}.pi-gift-scene{z-index:8}.pi-gift-copy{overflow-wrap:anywhere}.pi-gift-scene .pi-gift-hero svg{fill:var(--metal)}
@media(max-width:700px){.pi-gifts-panel{padding:5px 12px}.pi-gifts-log{max-height:48px}.pi-gifts-feedback{font-size:9px}.pi-gifts-menu{max-height:55dvh;overflow:auto}.pi-gifts-menu p{font-size:10px}.pi-gift-scene{left:8px!important}}

.pi-gifts-choice svg{width:32px;height:32px;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round;fill:none}
.pi-gifts-choice svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}.pi-gifts-consent{display:flex;gap:7px;align-items:flex-start;margin:10px 0;color:#d9c7cf;font-size:10px}.pi-gifts-consent input{margin:2px 0;accent-color:#c89160;flex:none}.pi-gifts-resume{display:block;width:100%;margin-top:8px;padding:10px 7px;border:1px solid #8e6b60;border-radius:6px;background:#30212c;color:#ead9cb;cursor:pointer;font:11px system-ui}.pi-gifts-resume:disabled{opacity:.5;cursor:default}.pi-topup{border-top:1px solid #ffffff1b;margin-top:12px;padding-top:10px}.pi-topup label{font:10px system-ui;color:#c5b0bc}.pi-topup input{width:80px;margin-left:12px;background:#18121c;color:#fff;border:1px solid #8e6b60;border-radius:4px;padding:6px;font:12px system-ui}.pi-choice-price{color:#d9c4ac!important;font-size:8px!important}.pi-checkout{color:#efe4db;background:#1b141e;border:1px solid #9c7755;border-radius:14px;width:min(460px,calc(100vw - 24px));max-height:90dvh;padding:24px;overflow:auto;font:13px/1.5 system-ui}.pi-checkout::backdrop{background:#000b}.pi-checkout-amount{font:32px Georgia;color:#efd4a9;margin:20px 0}.pi-card-host{padding:14px;border:1px solid #ae9aa3;border-radius:7px;background:#fff;color:#291b24;margin:16px 0;font-size:12px}.pi-checkout .pi-gifts-heading button{color:#e5c1cc}.pi-gifts-panel [hidden],.pi-checkout [hidden]{display:none!important}.pi-gifts-finance{font:12px/1.5 system-ui;color:#cab6c1}.pi-wallet-balance{font-weight:600!important}.pi-gifts-menu{max-height:min(640px,80dvh);overflow:auto}.pi-gift-copy{overflow-wrap:anywhere}.pi-gifts-event strong{font-weight:600}.pi-gift-scene{z-index:8}
@media(max-width:700px){.pi-gifts-menu{position:fixed;left:8px;right:8px;bottom:70px;max-height:65dvh}.pi-gifts-choice{padding:6px 2px}.pi-gifts-grid{margin:8px 0}.pi-topup{margin-top:8px;padding-top:7px}.pi-gifts-consent{font-size:10px}.pi-checkout{padding:18px}}

.pi-wallet-details{margin-top:12px;border-top:1px solid #ffffff18;padding-top:8px}.pi-wallet-details summary{font:11px system-ui;color:#cdb295;cursor:pointer}.pi-wallet-details .pi-topup{border-top:0;margin-top:0}.pi-gifts-panel [hidden],.pi-gifts-menu [hidden]{display:none!important}

/* Phone live overlay: restore interaction without blocking the video elsewhere. */
@media(max-width:820px),(orientation:landscape) and (max-height:520px){
html body .room-page.room-v2.room-v2 .pi-gifts-panel,html body .room-page.room-v2.room-v2 .pi-gifts-menu{pointer-events:auto!important}
html body .room-page.room-v2.room-v2 .pi-gifts-menu{position:fixed;left:8px;right:8px;bottom:calc(112px + env(safe-area-inset-bottom));max-height:calc(100dvh - 180px);overscroll-behavior:contain;z-index:30}
html body .room-page.room-v2.room-v2 .player::before{display:none!important}
html body .room-page.room-v2.room-v2 .pi-gifts-feedback{min-height:13px}
}

/* Layout only: gift purchase, confirmation and access rules are unchanged. */
html.rv-room-locked{overflow:hidden!important;overscroll-behavior:none!important;scrollbar-gutter:auto!important}
body.rv-room-locked{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;overflow:hidden!important;overscroll-behavior:none!important}
html.rv-room-locked .room-page.room-v2{overscroll-behavior:none!important;overflow:hidden!important;max-width:100%!important}
html.rv-room-locked .room-page.room-v2 .chat{overscroll-behavior:none!important}
html.rv-room-locked .room-page.room-v2 .messages,html.rv-room-locked .room-page.room-v2 .pi-gifts-menu{overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y pinch-zoom}
html.rv-room-locked .room-page.room-v2 .rv-emojis{overscroll-behavior-x:contain!important;touch-action:pan-x pinch-zoom}
html.rv-room-locked .room-page.room-v2 .player{touch-action:pinch-zoom}
html body .room-page.room-v2.room-v2 .pi-gifts-panel{display:contents;pointer-events:none!important}
html body .room-page.room-v2.room-v2 .pi-gifts-toggle{display:flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto!important;width:auto!important;min-width:44px;min-height:44px!important;height:44px!important;padding:0 12px;border:1px solid #d9b77c66;border-radius:22px;background:#292027;color:#ecd1a5;cursor:pointer;pointer-events:auto!important}
html body .room-page.room-v2.room-v2 .rv-compose{min-width:0!important}
html body .room-page.room-v2.room-v2 #comment textarea{min-width:0!important}
.pi-gifts-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pi-gifts-toggle[hidden]{display:none!important}
.pi-gifts-toggle:focus-visible{outline:2px solid #efd1a0;outline-offset:3px}
html body .room-page.room-v2.room-v2 .pi-gifts-menu{position:absolute;inset:auto 10px calc(var(--rv-form-h,96px) + 8px);width:auto;max-height:min(480px,calc(100% - var(--rv-form-h,96px) - 20px));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;z-index:30;pointer-events:auto!important;padding:16px;border-radius:18px;background:#1b1720;box-shadow:0 12px 40px #0009}
.pi-gifts-heading button{min-width:44px;min-height:44px;padding:8px;display:grid;place-items:center}
.pi-gifts-heading strong{font:600 15px/1.3 system-ui}
.pi-gifts-history{margin-top:12px;border-top:1px solid #ffffff18;padding-top:10px}
.pi-gifts-history summary{font:11px/1.4 system-ui;color:#bdaeb8;cursor:pointer;min-height:28px}
.pi-gifts-history .pi-gifts-log{max-height:88px}
.pi-gifts-menu .pi-gifts-feedback{min-height:0!important;margin:6px 0;font-size:11px}
.pi-gifts-menu .pi-gifts-grid{gap:6px}
.pi-gifts-menu .pi-gifts-choice{min-height:86px}
.pi-gifts-menu .pi-gifts-choice small{font-size:10px}
.pi-gifts-menu .pi-choice-price{font-size:10px!important}
.pi-gifts-menu .pi-gifts-send{min-height:44px;font-size:13px;border-radius:12px}
@media(max-width:820px),(orientation:landscape) and (max-height:520px){
html body .room-page.room-v2.room-v2{width:auto!important}
html body .room-page.room-v2.room-v2 .pi-gifts-menu{position:absolute;left:10px;right:10px;bottom:calc(var(--rv-form-h,96px) + 8px);max-height:min(480px,calc(var(--rv-vh,100dvh) - var(--rv-form-h,96px) - 76px));z-index:30}
html body .room-page.room-v2.room-v2 .pi-gifts-toggle{width:44px!important;min-width:44px;padding:0;border-radius:50%;background:#30252d}
html body .room-page.room-v2.room-v2 .pi-gifts-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html body .room-page.room-v2.room-v2 .rv-compose{gap:7px!important;min-width:0}
html body .room-page.room-v2.room-v2 #comment textarea{min-width:0!important;font-size:16px!important}
html body .room-page.room-v2.room-v2 #comment button[type=submit]{width:44px!important;min-width:44px!important;padding:0!important;font-size:0!important;gap:0!important}
html body .room-page.room-v2.room-v2 .rv-emojis{width:100%!important}
html body .room-page.room-v2.room-v2 .rv-emojis button{min-width:44px!important;min-height:40px!important;padding:8px 10px!important}
html body .room-page.room-v2.room-v2 .live-like-button{overflow:hidden!important;min-height:50px!important}
html body .room-page.room-v2.room-v2 .messages{height:min(30vh,240px)!important;max-height:min(30vh,240px)!important;scrollbar-width:none}
html body .room-page.room-v2.room-v2.rv-typing .rv-emojis{display:none!important}
html body .room-page.room-v2.room-v2.rv-typing .messages{height:auto!important;max-height:none!important}
html body .room-page.room-v2.room-v2 .pi-gift-scene{left:12px!important;bottom:calc(var(--rv-form-h,96px) + 18px)!important;zoom:1;width:min(270px,calc(100% - 76px));height:210px;max-width:none;transform-origin:bottom left}
html body .room-page.room-v2.room-v2 .pi-gift-scene strong{font-size:23px}
html body .room-page.room-v2.room-v2.rv-typing .pi-gift-scene{visibility:hidden}
}
@media(max-width:360px){.pi-gifts-menu .pi-gifts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pi-gifts-menu .pi-gifts-choice{min-height:78px}}
@media(orientation:landscape) and (max-height:520px){
html body .room-page.room-v2.room-v2 .pi-gifts-menu{left:auto;right:10px;width:min(380px,55vw);bottom:10px;max-height:calc(var(--rv-vh,100dvh) - 70px)}
html body .room-page.room-v2.room-v2 .pi-gift-scene{left:auto!important;right:12px;bottom:16px!important;width:240px;height:190px}
}

.pi-gift-control[hidden]{display:none!important}.pi-gift-control{color:#eee4db;min-width:0}.pi-control-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:6px 0 22px}.pi-control-eyebrow{color:#ceaf7c;font-size:10px;letter-spacing:2px}.pi-control-header h2{font:34px Georgia,serif;margin:8px 0}.pi-control-header p{color:#a99da8;font-size:12px}.pi-control-actions{display:flex;gap:8px;flex-wrap:wrap}.pi-control-actions button{border:1px solid #6b5444;border-radius:8px;background:#241b22;color:#e6cfb0;padding:10px 14px;cursor:pointer}.pi-control-actions button:disabled{opacity:.5;cursor:default}.pi-control-status{font-size:11px;color:#c7b391;min-height:18px}.pi-control-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pi-control-stat{border:1px solid #ffffff16;background:linear-gradient(130deg,#241c22,#161319);padding:20px;border-radius:12px;min-width:0}.pi-control-stat span{display:block;color:#b9a8b1;font-size:11px}.pi-control-stat strong{display:block;color:#f4dfbb;font:32px Georgia,serif;margin-top:15px;overflow-wrap:anywhere}.pi-control-finance{font:11px/1.7 system-ui;color:#a99ba6;margin:14px 0 28px}.pi-control-filter{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #ffffff16;padding-top:22px}.pi-control-filter label{font-size:11px;color:#bdabb5}.pi-control-filter select{display:block;background:#211a22;color:#e3d5cc;border:1px solid #625144;border-radius:8px;padding:10px 12px;margin-top:8px;max-width:100%;font:12px system-ui}.pi-control-filter p{max-width:380px;font:11px/1.6 system-ui;color:#a99ba6}.pi-control-breakdown{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:22px 0}.pi-control-breakdown article{border:1px solid #ffffff15;border-radius:10px;padding:14px;box-shadow:inset 0 2px var(--gift-color)}.pi-control-breakdown span{font-size:10px;color:#bfb0b8}.pi-control-breakdown strong{display:block;font:25px Georgia;margin-top:9px;color:var(--gift-color)}.pi-control-history{border:1px solid #ffffff14;border-radius:12px;overflow:hidden;margin-bottom:14px}.pi-control-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 18px;background:#18141b}.pi-control-row+.pi-control-row{border-top:1px solid #ffffff12}.pi-control-row>div{min-width:0}.pi-control-row>div:last-child{text-align:right}.pi-control-row strong{display:block;font-size:12px;overflow-wrap:anywhere}.pi-control-row small{display:block;color:#998c98;font:10px system-ui;margin-top:6px}.pi-control-row span{font-size:12px}.pi-control-badge{display:inline-block;margin-left:10px;border:1px solid #8b704d;border-radius:20px;padding:3px 8px;color:#d6b57f;font-size:9px!important}.pi-control-refunded{color:#e4a0a0!important}.pi-control-empty{padding:36px;text-align:center;color:#a595a2;font-size:12px}.pi-regis-gift-notice{position:fixed;right:24px;top:80px;z-index:9999;max-width:min(360px,calc(100vw - 30px));padding:14px 18px;border:1px solid #9b7d50;border-radius:10px;background:#211822;color:#edd5ae;box-shadow:0 15px 35px #0006;font:12px system-ui;pointer-events:none}.pi-regis-gift-notice[hidden]{display:none!important}.pi-regis-gift-stage{position:fixed;top:18%;left:50%;transform:translateX(-50%);width:min(350px,90vw);height:270px;z-index:9998;pointer-events:none}.pi-regis-gift-stage .pi-gift-scene{left:0!important;top:0!important;bottom:auto!important;max-width:100%;width:100%;zoom:1}
@media(max-width:820px){.pi-control-header{flex-direction:column;gap:8px}.pi-control-header h2{font-size:28px}.pi-control-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pi-control-stat{padding:15px}.pi-control-stat strong{font-size:25px}.pi-control-filter{align-items:flex-start;flex-direction:column;gap:4px}.pi-control-breakdown{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pi-control-breakdown article{padding:12px}.pi-control-row{padding:13px 12px}.pi-control-badge{display:block;margin:6px 0 0}.pi-regis-gift-notice{top:65px;right:15px}}

@media(max-width:820px),(orientation:landscape) and (max-height:520px){html body .room-page.room-v2.room-v2 .pi-gift-scene{top:clamp(84px,20dvh,180px);bottom:auto!important;left:max(14px,calc((100% - 300px)/2))!important;right:auto;width:min(300px,calc(100% - 28px));height:245px;zoom:1;transform-origin:center}}
@media(orientation:landscape) and (max-height:520px){html body .room-page.room-v2.room-v2 .pi-gift-scene{top:70px;left:18px!important;right:auto;width:min(270px,42vw);height:min(210px,calc(100dvh - 90px));bottom:auto!important}}

/* One compact, labelled gift action in the real live composer. */
html body .room-page.room-v2.room-v2 .pi-gifts-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:auto!important;min-width:82px!important;min-height:44px;padding:0 11px!important;border:1px solid #9d7c46!important;border-radius:24px!important;background:#30251c!important;color:#f1d4a0!important;white-space:nowrap;flex:0 0 auto;box-shadow:inset 0 1px #ffffff0c}
html body .room-page.room-v2.room-v2 .pi-gifts-toggle svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html body .room-page.room-v2.room-v2 .pi-gifts-toggle span{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important;white-space:nowrap;font:600 12px/1 system-ui}
html body .room-page.room-v2.room-v2 .pi-gifts-toggle:active{background:#453323!important}
.staff-page .pi-preview-with-activity{height:auto!important;max-height:none!important;overflow:visible!important}
.staff-page .pi-live-activity{margin-top:20px;padding-top:18px;border-top:1px solid #ffffff16;color:#e8dcd5;min-width:0}
.pi-live-activity-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.pi-live-activity-header h3{font:600 15px system-ui;margin:0}.pi-live-activity-header small{color:#b9a17a;font:10px system-ui}
.pi-live-activity-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}.pi-live-activity-grid>section{min-width:0}
.pi-live-gifts{border:1px solid #78604466;border-radius:10px;background:#1c161a;padding:13px}.pi-live-gifts-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.pi-live-gifts-head h4{font:600 13px system-ui;margin:0}.pi-live-gifts-head strong{font:12px system-ui;color:#e5c18a;background:#8d68352b;border:1px solid #9d7d4744;border-radius:20px;padding:3px 8px}
.pi-live-gift-list{max-height:230px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.pi-live-gift-row{padding:10px 0;border-top:1px solid #ffffff0d}.pi-live-gift-row strong{display:block;font:600 11px system-ui;overflow-wrap:anywhere;color:#eddbbf}.pi-live-gift-row span{display:block;font:11px/1.45 system-ui;color:#c3aebb;margin-top:4px}.pi-live-gift-row small{display:block;color:#998995;font:9px system-ui;margin-top:4px}.pi-live-gifts>button{width:100%;margin-top:10px;border:1px solid #88683d;border-radius:7px;background:#30221e;color:#ddbd8c;padding:9px;font:11px system-ui;cursor:pointer}.pi-live-gifts-empty{font:11px/1.6 system-ui;color:#9e8d98;margin:12px 0}
.staff-page .pi-live-activity .live-comments{display:block!important;margin:0!important;padding:13px!important;border:1px solid #ffffff14!important;border-radius:10px!important;background:#181419!important;min-width:0}.pi-live-activity .live-comments .card-head{margin-bottom:10px}.pi-live-activity .live-comments h2{font:600 13px system-ui!important;margin:0}.pi-live-activity .live-comments .eyebrow{display:none}.pi-live-activity .live-comments-list{max-height:230px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.pi-live-activity .live-comment{padding:9px 0!important;border-bottom:1px solid #ffffff0d}.pi-live-activity .live-comment strong{font-size:11px;overflow-wrap:anywhere}.pi-live-activity .live-comment p{font:12px/1.5 system-ui;margin:5px 0;overflow-wrap:anywhere}.pi-live-activity .live-comment span,.pi-live-activity .live-comment small{font-size:9px;color:#a18f9b}.pi-live-activity .live-comments .secondary.small{font-size:10px;padding:8px}.pi-live-activity .staff-empty{font:11px/1.6 system-ui;color:#9e8d98}
@media(max-width:380px){.pi-live-activity-grid{gap:8px}.pi-live-gifts,.staff-page .pi-live-activity .live-comments{padding:10px!important}.pi-live-activity-header small{max-width:110px;text-align:right}.pi-live-gift-list,.pi-live-activity .live-comments-list{max-height:190px}}
