.live-reference-room{position:absolute;inset:0;overflow:hidden;width:100%;height:100%;background:#071321;color:#f5e5bd}
.app:has(.live-reference-room) .platform-capsule{display:none}
.live-reference-room *{box-sizing:border-box}.live-reference-room button{font:inherit;color:inherit}
.live-reference-stage,.live-reference-stage .live-stage,.live-reference-stage .live-video,.live-reference-stage .live-dancevid{position:absolute;inset:0;width:100%;height:100%}
.live-reference-stage .live-stage{background-size:cover;background-position:center}.live-reference-stage video{object-fit:cover}
.live-reference-chrome{position:absolute;inset:0;z-index:10;pointer-events:none}.live-reference-chrome button{pointer-events:auto}
.live-reference-header{position:absolute;inset:18px 20px auto;display:flex;align-items:center;height:38px;gap:10px}
.live-reference-round{position:relative;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent}.live-reference-round img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.live-reference-pause{margin-right:auto}.live-reference-more{margin-left:auto}.live-reference-title{display:flex;align-items:center;justify-content:center;gap:10px;min-width:250px;font-family:"Source Han Serif SC",serif;font-size:12px;letter-spacing:1.2px;text-shadow:0 2px 6px #000}
.live-reference-title i{width:38px;height:1px;background:linear-gradient(90deg,transparent,#e7c985)}.live-reference-title i:last-child{transform:scaleX(-1)}
.live-reference-host{position:absolute;top:64px;left:16px;width:210px;height:93px}.live-reference-host-frame{position:absolute;left:0;top:0;width:210px;height:54px}
.live-reference-avatar{position:absolute;left:4px;top:5px;width:44px;height:44px;border-radius:50%;background-size:cover;background-position:center 14%;box-shadow:0 0 8px rgba(232,195,106,.45)}
.live-reference-host-copy{position:absolute;left:54px;top:8px;display:flex;flex-direction:column;gap:3px}.live-reference-host-copy b{font-size:14px;letter-spacing:.5px}.live-reference-host-copy span{display:flex;align-items:center;gap:3px;font-size:11px}
.live-reference-host-copy img{width:14px;height:14px}.live-reference-follow{position:absolute;left:145px;top:7px;width:62px;height:39px;padding:0;border:0;background:transparent}.live-reference-follow>img{position:absolute;inset:0;width:100%;height:100%}.live-reference-follow span{position:relative;font-size:12px}
.live-reference-rank-trigger{position:absolute;left:8px;top:60px;display:flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid rgba(232,195,106,.6);border-radius:16px;background:rgba(4,12,22,.74);font-size:11px}.live-reference-rank-trigger img{width:18px;height:18px}.live-reference-rank-trigger img:last-child{width:12px;height:12px}
.live-reference-left-actions{position:absolute;left:18px;top:286px;display:grid;gap:12px}.live-reference-left-actions button{position:relative;width:50px;height:72px;padding:0;border:0;background:transparent}.live-reference-left-actions .button-frame{position:absolute;left:3px;top:0;width:44px;height:44px}.live-reference-left-actions button>.live-reference-icon,.live-reference-left-actions button>img:not(.button-frame){position:absolute;left:11px;top:8px;width:28px;height:28px}.live-reference-left-actions span{position:absolute;left:0;right:0;bottom:5px;font-size:10px;text-shadow:0 2px 5px #000}
.live-reference-shortcuts{position:absolute;right:12px;top:136px;display:grid;gap:8px}.live-reference-shortcuts button{position:relative;width:72px;height:92px;padding:0;border:0;background:transparent}.shortcut-frame{position:absolute;inset:0;width:100%;height:100%}.shortcut-gift{position:absolute;left:12px;top:7px;width:48px;height:55px;object-fit:contain}.live-reference-shortcuts .live-reference-original-gift{display:grid;place-items:center;font-size:34px;line-height:1}.live-reference-shortcuts span{position:absolute;left:2px;right:2px;bottom:8px;font-size:10px;text-shadow:0 2px 5px #000}
.live-reference-ranking{position:absolute;left:16px;top:112px;width:205px;height:170px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .22s ease,transform .22s ease,visibility .22s;pointer-events:none}
[data-live-view="ranking"] .live-reference-ranking{opacity:1;visibility:visible;transform:none;pointer-events:auto}.live-reference-ranking .panel-frame{position:absolute;inset:0;width:100%;height:100%}.ranking-title{position:absolute;left:14px;right:12px;top:10px;display:flex;justify-content:space-between;font-size:12px}.ranking-title button{width:22px;height:22px;padding:0;border:0;background:transparent}.ranking-title img{width:100%;height:100%}
.ranking-tabs{position:absolute;left:18px;right:18px;top:38px;display:grid;grid-template-columns:1fr 1fr}.ranking-tabs button{height:24px;border:1px solid rgba(232,195,106,.35);background:rgba(7,19,33,.5);font-size:10px}.ranking-tabs .is-active{border-radius:14px;background:rgba(232,195,106,.16)}
.ranking-rows{position:absolute;left:15px;right:15px;top:66px;display:grid;gap:4px}.ranking-row{display:grid;grid-template-columns:22px 28px 1fr auto;align-items:center;height:28px;font-size:10px}.rank-number{display:grid;place-items:center;width:18px;height:18px;border:1px solid #d7b66c;border-radius:50%}.rank-avatar{width:23px;height:23px;border:1px solid #d7b66c;border-radius:50%;background:rgba(255,255,255,.12)}.ranking-row b{font-weight:600}.ranking-row em{font-style:normal}
.live-reference-composer{position:absolute;left:16px;right:16px;bottom:18px;display:flex;gap:10px;height:44px}.comment-field{position:relative;display:flex;align-items:center;gap:7px;flex:1;height:44px;padding:0 15px;border:0;background:transparent;text-align:left}.comment-field>img:first-child{position:absolute;inset:0;width:100%;height:100%}.comment-field .live-reference-icon,.comment-field>img:not(:first-child){position:relative;width:22px;height:22px}.comment-field span{position:relative;flex:1;color:rgba(245,229,189,.6);font-size:11px}.drawer-gift-toggle{position:relative;width:44px;height:44px;padding:0;border:0;background:transparent}.drawer-gift-toggle>img:first-child{position:absolute;inset:0;width:100%;height:100%}.drawer-gift-toggle>img:last-child{position:absolute;left:9px;top:9px;width:26px;height:26px}
.live-reference-gift-drawer{position:absolute;left:12px;right:12px;bottom:8px;height:414px;opacity:0;visibility:hidden;transform:translateY(24px);transition:opacity .25s ease,transform .25s ease,visibility .25s;pointer-events:none}
[data-live-view="gifts"] .live-reference-gift-drawer{opacity:1;visibility:visible;transform:none;pointer-events:auto}[data-live-view="gifts"]>.live-reference-chrome>.live-reference-composer{opacity:0;visibility:hidden;pointer-events:none}
[data-live-view="gifts"]>.live-reference-chrome>.live-reference-composer *{pointer-events:none!important}
.drawer-frame{position:absolute;inset:0;width:100%;height:100%}.gift-drawer-header{position:absolute;left:20px;right:20px;top:18px;display:flex;align-items:center;gap:8px}.gift-drawer-header h2{margin:0 auto 0 0;font:16px "Source Han Serif SC",serif;letter-spacing:1px}.gift-drawer-header button{display:flex;align-items:center;gap:4px;height:28px;padding:0 8px;border:1px solid rgba(232,195,106,.55);border-radius:7px;background:rgba(7,19,33,.72);font-size:10px}.gift-drawer-header img{width:17px;height:17px}
.gift-drawer-sub{position:absolute;left:22px;right:22px;top:58px;display:flex;align-items:center;border-top:1px solid rgba(232,195,106,.25);padding-top:10px}.gift-drawer-sub>div{display:flex;flex-direction:column}.gift-drawer-sub b{font-size:13px}.gift-drawer-sub span{font-size:9px;color:rgba(245,229,189,.45)}.gift-drawer-sub button{display:flex;align-items:center;gap:2px;margin-left:auto;border:0;background:transparent;font-size:11px}.gift-drawer-sub img{width:13px;height:13px}
.gift-drawer-grid{position:absolute;left:20px;right:20px;top:112px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.gift-drawer-grid>button{position:relative;height:112px;padding:0;border:0;background:transparent}.gift-card-frame{position:absolute;inset:0;width:100%;height:100%}.gift-card-object{position:absolute;left:12%;right:12%;top:6px;width:76%;height:58px;object-fit:contain}.gift-drawer-grid .live-reference-original-gift{display:grid;place-items:center;font-size:38px;line-height:1}.gift-drawer-grid b{position:absolute;left:2px;right:2px;top:68px;font-size:10px}.gift-drawer-grid span{position:absolute;left:0;right:0;bottom:8px;display:flex;align-items:center;justify-content:center;gap:2px;font-size:9px}.gift-drawer-grid span img{width:13px;height:13px}.gift-drawer-grid .is-selected{filter:drop-shadow(0 0 7px rgba(232,195,106,.55))}
.gift-drawer-composer{position:absolute;left:20px;right:20px;bottom:18px;display:flex;gap:8px;height:44px}.gift-drawer-composer .comment-field{min-width:0}.gift-send{position:relative;width:122px;height:44px;padding:0;border:0;background:transparent}.gift-send img{position:absolute;inset:0;width:100%;height:100%}.gift-send span{position:relative;color:#5d3b21;font:20px "Source Han Serif SC",serif}
.live-reference-heart{position:absolute;z-index:12;width:28px;height:28px}.live-reference-heart img{width:100%;height:100%}.live-reference-show-gift{width:72px;height:72px;object-fit:contain}
.live-reference-room button:active{transform:scale(.96)}.live-reference-room button:focus-visible{outline:2px solid #f4d897;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.live-reference-ranking,.live-reference-gift-drawer,.live-reference-room button{transition:none!important}}

/* Figma: 主播对话 / 主播礼物 / 主播榜单 */
.live-reference-dialogue{position:absolute;inset:0;pointer-events:none}
.live-reference-dialogue button{pointer-events:auto}
.live-reference-hostbar{
  position:absolute;left:14px;top:26px;width:242px;height:44px;
  display:flex;align-items:center;padding:4px 7px 4px 5px;
  border:1px solid rgba(255,225,154,.34);border-radius:23px;
  background:linear-gradient(90deg,rgba(8,9,15,.91),rgba(12,9,18,.72));
  box-shadow:0 5px 16px rgba(0,0,0,.4);pointer-events:auto
}
.live-reference-hostbar .live-reference-avatar{
  position:relative;left:auto;top:auto;width:36px;height:36px;flex:0 0 36px;
  border:1px solid rgba(255,231,174,.7);box-shadow:none
}
.live-reference-hostbar .live-reference-host-copy{
  position:relative;left:auto;top:auto;min-width:0;margin-left:7px;gap:1px;flex:1
}
.live-reference-hostbar .live-reference-host-copy b{
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  color:#fff;font:600 12px "Source Han Sans SC",sans-serif
}
.live-reference-hostbar .live-reference-host-copy span{color:rgba(255,255,255,.76);font-size:9px}
.live-reference-hostbar .live-reference-host-copy img{width:11px;height:11px}
.live-reference-hostbar .live-reference-follow{
  position:relative;left:auto;top:auto;width:58px;height:28px;flex:0 0 58px
}
.live-reference-hostbar .live-reference-follow span{font:600 11px "Source Han Sans SC",sans-serif;color:#fff}
.live-reference-room-actions{
  position:absolute;right:13px;top:29px;height:38px;display:flex;align-items:center;gap:7px;pointer-events:auto
}
.live-reference-room-actions button{
  width:34px;height:34px;padding:0;border:0;border-radius:50%;
  background:rgba(7,7,12,.68);box-shadow:0 4px 12px rgba(0,0,0,.35)
}
.live-reference-room-actions img{width:100%;height:100%;object-fit:contain}
.live-reference-gift-strip{
  position:absolute;left:14px;right:14px;top:80px;height:50px;
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;pointer-events:auto
}
.live-reference-gift-strip button{position:relative;min-width:0;padding:0;border:0;background:transparent}
.live-reference-gift-strip .shortcut-frame{
  position:absolute;inset:0;width:100%;height:100%;object-fit:fill;filter:drop-shadow(0 4px 7px rgba(0,0,0,.4))
}
.live-reference-gift-strip .shortcut-gift{
  position:absolute;left:8%;top:7%;width:84%;height:84%;object-fit:contain
}
.live-reference-side-share{
  position:absolute;left:18px;top:386px;width:42px;height:42px;padding:0;border:0;background:transparent
}
.live-reference-side-share>img:first-child{position:absolute;inset:0;width:100%;height:100%}
.live-reference-side-share>img:last-child{position:absolute;left:9px;top:9px;width:24px;height:24px}
.live-reference-rank-dock{
  position:absolute;right:-1px;top:460px;width:47px;height:102px;padding:8px 5px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  border:1px solid rgba(255,220,135,.58);border-radius:13px 0 0 13px;
  background:rgba(6,7,12,.78);box-shadow:0 6px 16px rgba(0,0,0,.45)
}
.live-reference-rank-dock img{width:22px;height:22px;object-fit:contain}
.live-reference-rank-dock img:last-child{width:12px;height:12px;transform:rotate(180deg)}
.live-reference-rank-dock span{font-size:9px;writing-mode:vertical-rl;letter-spacing:2px}
.live-reference-chat-feed{
  position:absolute;left:17px;bottom:78px;width:238px;min-height:138px;padding:14px 15px;
  border-radius:13px;background:linear-gradient(90deg,rgba(4,5,9,.76),rgba(4,5,9,.48));
  box-shadow:0 8px 22px rgba(0,0,0,.28);color:#fff;
  font:10px/1.8 "Source Han Sans SC",sans-serif;text-shadow:0 2px 5px #000
}
.live-reference-chat-feed p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-reference-chat-feed b{color:#f8d88e;font-weight:500}
.live-reference-composer{left:14px;right:14px;bottom:15px;height:43px;gap:7px}
.live-reference-composer .comment-field{
  height:43px;padding:0 13px;border-radius:23px;background:rgba(5,6,10,.74);
  box-shadow:inset 0 0 0 1px rgba(255,221,142,.3),0 5px 16px rgba(0,0,0,.38)
}
.live-reference-composer .comment-field>img:first-child{display:none}
.live-reference-composer .comment-field span{color:rgba(255,255,255,.54)}
.live-reference-send,.live-reference-composer .drawer-gift-toggle{
  position:relative;width:43px;height:43px;flex:0 0 43px;padding:0;border:1px solid rgba(255,221,142,.44);
  border-radius:50%;background:rgba(5,6,10,.76)
}
.live-reference-send img{width:25px;height:25px;object-fit:contain}
.live-reference-composer .drawer-gift-toggle>img:first-child{display:none}
.live-reference-composer .drawer-gift-toggle>img:last-child{left:8px;top:8px;width:27px;height:27px}

.live-reference-gift-drawer,.live-reference-ranking{
  left:0;right:0;bottom:0;top:auto;width:auto;
  border-top:1px solid rgba(255,221,142,.48);
  background:linear-gradient(180deg,rgba(8,9,14,.93),rgba(3,4,8,.985));
  box-shadow:0 -14px 36px rgba(0,0,0,.52);transform:translateY(28px)
}
.live-reference-gift-drawer{height:455px;border-radius:19px 19px 0 0}
[data-live-view="gifts"] .live-reference-gift-drawer,
[data-live-view="ranking"] .live-reference-ranking{transform:none}
[data-live-view="gifts"] .live-reference-chat-feed,
[data-live-view="ranking"] .live-reference-chat-feed{opacity:0;visibility:hidden}
.gift-drawer-header{left:18px;right:18px;top:17px}
.gift-drawer-header h2{font:18px "Source Han Serif SC",serif;color:#fff}
.gift-drawer-header button{background:#11131b;border-color:rgba(255,221,142,.42)}
.gift-drawer-sub{left:20px;right:20px;top:58px}
.gift-drawer-grid{left:16px;right:16px;top:103px;grid-template-columns:repeat(4,1fr);gap:8px 10px}
.gift-drawer-grid>button{height:112px}
.gift-drawer-grid .gift-card-object{top:4px;height:64px}
.gift-drawer-grid b{top:69px;color:#fff;font-family:"Source Han Sans SC",sans-serif}
.gift-drawer-grid span{color:#f2d18a}
.gift-drawer-composer{left:15px;right:15px;bottom:13px}

.live-reference-ranking{
  height:354px;border-radius:19px 19px 0 0;padding:0;opacity:0;visibility:hidden
}
.live-reference-ranking .ranking-title{
  left:19px;right:16px;top:18px;align-items:center;color:#fff;
  font:18px "Source Han Serif SC",serif
}
.live-reference-ranking .ranking-title button{width:30px;height:30px}
.live-reference-ranking .ranking-tabs{left:18px;right:18px;top:58px;gap:9px}
.live-reference-ranking .ranking-tabs button{
  height:36px;border-color:rgba(255,221,142,.42);background:rgba(17,19,27,.86);
  color:#fff;font-size:12px
}
.live-reference-ranking .ranking-tabs .is-active{border-radius:18px;background:rgba(181,130,53,.3)}
.live-reference-ranking .ranking-rows{left:18px;right:18px;top:105px;gap:9px}
.live-reference-ranking .ranking-row{
  height:58px;padding:0 12px;grid-template-columns:32px 42px 1fr auto;
  border:1px solid rgba(255,221,142,.23);border-radius:11px;background:rgba(255,255,255,.035);
  color:#fff;font-size:12px
}
.live-reference-ranking .rank-number{width:24px;height:24px}
.live-reference-ranking .rank-avatar{width:34px;height:34px}

/* Strict 940x1671 Figma placement overrides */
.live-reference-hostbar{left:13px;right:78px;top:17px;width:auto;height:38px;border-radius:20px}
.live-reference-hostbar .live-reference-avatar{width:32px;height:32px;flex-basis:32px}
.live-reference-hostbar .live-reference-host-copy b{font-size:11px}
.live-reference-hostbar .live-reference-follow{width:54px;height:25px;flex-basis:54px}
.live-reference-rank-dock{
  left:auto;right:10px;top:19px;width:62px;height:32px;padding:0 7px;
  flex-direction:row;gap:3px;border-radius:17px;
  writing-mode:horizontal-tb;background:rgba(7,7,12,.78)
}
.live-reference-rank-dock img{width:15px;height:15px}
.live-reference-rank-dock img:last-child{width:10px;height:10px;transform:none}
.live-reference-rank-dock span{font-size:9px;writing-mode:horizontal-tb;letter-spacing:0}
.live-reference-gift-strip{left:12px;right:12px;top:60px;height:45px;gap:5px}
.live-reference-side-gift,.live-reference-side-share{
  position:absolute;left:17px;width:40px;height:40px;padding:0;border:0;background:transparent
}
.live-reference-side-gift{top:276px}
.live-reference-side-share{top:331px}
.live-reference-side-gift>img:first-child,.live-reference-side-share>img:first-child{position:absolute;inset:0;width:100%;height:100%}
.live-reference-side-gift>img:last-child,.live-reference-side-share>img:last-child{position:absolute;left:8px;top:8px;width:24px;height:24px}
.live-reference-chat-feed{
  left:13px;bottom:64px;width:224px;min-height:137px;padding:14px 14px;
  border-radius:0 14px 14px 0;background:rgba(5,6,10,.58)
}
.live-reference-composer{left:13px;right:13px;bottom:13px;height:39px;gap:8px}
.live-reference-composer .comment-field{height:39px;border-radius:20px;padding:0 10px}
.live-reference-composer .comment-field .live-reference-icon,
.live-reference-composer .comment-field>img:not(:first-child){width:20px;height:20px}
.live-reference-smile{
  width:39px;height:39px;flex:0 0 39px;padding:0;border:1px solid rgba(255,221,142,.42);
  border-radius:50%;background:rgba(5,6,10,.76)
}
.live-reference-smile img{width:25px;height:25px;object-fit:contain}
.live-reference-send,.live-reference-composer .drawer-gift-toggle{display:none}
.live-reference-gift-drawer,.live-reference-ranking{height:380px;border-radius:0}
.gift-drawer-header{top:13px}
.gift-drawer-sub{top:51px}
.gift-drawer-grid{top:92px}
.gift-drawer-grid>button{height:105px}
.gift-drawer-composer{bottom:10px;height:39px}
.live-reference-ranking .ranking-title{top:14px}
.live-reference-ranking .ranking-tabs{top:48px}
.live-reference-ranking .ranking-rows{top:94px}
[data-live-view="gifts"]>.live-reference-chrome>.live-reference-composer{opacity:0;visibility:hidden;pointer-events:none}

/* Runtime implementation: Figma is the component/layout reference only.
   The live video remains the visible stage beneath independent UI layers. */
.live-reference-figma-back{
  position:absolute;z-index:3;left:10px;top:18px;width:42px;height:42px;
  display:grid;place-items:center;padding:0;border:1px solid rgba(255,221,142,.58);
  border-radius:50%;background:rgba(7,7,12,.76);
  box-shadow:0 4px 14px rgba(0,0,0,.38),inset 0 0 0 2px rgba(255,224,152,.08);
  pointer-events:auto
}
.live-reference-figma-back img{width:23px;height:23px;object-fit:contain}
.live-reference-hostbar,
.live-reference-gift-strip,
.live-reference-left-actions{opacity:1!important;visibility:visible!important}
.live-reference-hostbar{left:58px;right:76px;top:18px}
.live-reference-gift-strip{left:13px;right:13px;top:67px;height:48px;gap:5px}
.live-reference-gift-strip button{border-radius:10px;overflow:hidden;background:rgba(20,16,34,.72)}
.live-reference-gift-strip .shortcut-frame{opacity:.78}
.live-reference-gift-strip .shortcut-gift{left:4%;top:2%;width:92%;height:92%}
.live-reference-left-actions{
  left:14px;top:236px;display:grid;gap:8px;z-index:3
}
.live-reference-left-actions button{
  width:46px;height:46px;padding:0;border:0;background:transparent
}
.live-reference-left-actions .button-frame{left:0;top:0;width:46px;height:46px}
.live-reference-left-actions button>.live-reference-icon,
.live-reference-left-actions button>img:not(.button-frame){left:10px;top:10px;width:26px;height:26px}
.live-reference-chat-feed{
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
  transform-origin:left bottom
}
.live-reference-chat-feed.is-collapsed{
  opacity:0;visibility:hidden;transform:translateY(14px) scale(.96);pointer-events:none
}
.live-reference-chat-feed.is-expanded{
  opacity:1;visibility:visible;transform:none
}
.chat-toggle .chat-chevron{
  position:relative;display:grid;place-items:center;width:22px;height:22px;
  transition:transform .25s cubic-bezier(.2,.85,.25,1.25)
}
.chat-toggle .chat-chevron img{width:18px!important;height:18px!important}
.chat-toggle.is-collapsed .chat-chevron{transform:rotate(180deg)}
.chat-toggle:active .chat-chevron{animation:liveChatArrowHop .34s ease}
@keyframes liveChatArrowHop{
  0%,100%{translate:0 0}
  45%{translate:0 -5px}
}
.live-reference-follow{transition:filter .2s ease,transform .2s ease}
.live-reference-follow.is-active{filter:saturate(.72) brightness(.88)}
.live-reference-ranking{
  z-index:4;background:rgba(5,6,10,.92);box-shadow:none
}
.live-reference-gift-drawer{
  z-index:4;background:rgba(5,6,10,.94);box-shadow:none
}
.live-reference-room[data-live-view="default"] .live-reference-ranking,
.live-reference-room[data-live-view="default"] .live-reference-gift-drawer{
  pointer-events:none
}

/* Latest Figma live-room boards (dialogue / gifts / ranking), 940 x 1671.
   The exported background is reference-only; these independent layers sit over video. */
.live-reference-figma-back{
  left:3.15%;top:2.25%;width:6.8%;height:auto;aspect-ratio:1;
  border:1px solid rgba(255,228,165,.72);
  background:linear-gradient(145deg,rgba(57,49,75,.94),rgba(31,28,43,.9))
}
.live-reference-figma-back img{width:42%;height:42%;transform:rotate(180deg)}
.live-reference-hostbar{
  left:13.35%;right:auto;top:2.28%;width:51.2%;height:5.35%;
  padding:0 3.2% 0 10.8%;border:0;border-radius:999px;
  background:linear-gradient(90deg,rgba(45,34,67,.86),rgba(27,22,43,.92));
  box-shadow:none
}
.live-reference-hostbar .live-reference-avatar{
  position:absolute;left:0;top:-1px;width:18.4%;height:auto;aspect-ratio:1;
  border:2px solid #f6dd9a;background-position:center 18%
}
.live-reference-hostbar .live-reference-host-copy{margin:0;display:block}
.live-reference-hostbar .live-reference-host-copy b{
  color:#fff4c8;font:700 clamp(12px,3.2cqw,30px) "Source Han Serif SC",serif;
  text-shadow:0 2px 5px rgba(0,0,0,.65)
}
.live-reference-hostbar .live-reference-follow{
  position:absolute;left:auto;right:5.5%;top:25%;width:22%;height:50%
}
.live-reference-hostbar .live-reference-follow span{
  font:500 clamp(10px,2.2cqw,22px) "Source Han Serif SC",serif
}
.live-reference-rank-dock{
  left:72.7%;right:0;top:3.55%;width:27.3%;height:2.85%;padding:0 3%;
  justify-content:flex-start;gap:5%;border-radius:999px 0 0 999px;
  border-color:rgba(255,225,150,.58);background:rgba(7,9,15,.9)
}
.live-reference-rank-dock img{width:12%;height:auto}
.live-reference-rank-dock img:last-child{margin-left:auto;width:9%}
.live-reference-rank-dock span{
  font:500 clamp(9px,2.15cqw,20px) "Source Han Serif SC",serif;
  writing-mode:horizontal-tb
}
.live-reference-gift-strip{
  left:4.2%;right:4.2%;top:8.9%;height:5.55%;display:flex;gap:1.9%
}
.live-reference-gift-strip button{
  flex:0 0 9.65%;height:100%;border-radius:20%;background:rgba(35,27,57,.84)
}
.live-reference-gift-strip .shortcut-frame{opacity:.95;object-fit:fill}
.live-reference-gift-strip .shortcut-gift{left:5%;top:5%;width:90%;height:90%}
.live-reference-left-actions{
  left:4.05%;top:36.05%;width:7.4%;gap:3.35cqh
}
.live-reference-left-actions button{width:100%;height:auto;aspect-ratio:1}
.live-reference-left-actions .button-frame{inset:0;width:100%;height:100%}
.live-reference-left-actions button>.live-reference-icon,
.live-reference-left-actions button>img:not(.button-frame){
  left:17%;top:17%;width:66%;height:66%
}
.live-reference-chat-feed{
  left:2.9%;bottom:7.45%;width:48.6%;min-height:28.5%;padding:4.1% 3.6%;
  border-radius:5% 8% 8% 5%;background:rgba(20,18,29,.58);
  font:clamp(10px,2.2cqw,20px)/2 "Source Han Serif SC",serif
}
.live-reference-composer{
  left:2.9%;right:2.9%;bottom:2.35%;height:4.95%;gap:1.8%
}
.live-reference-composer .comment-field{
  flex:0 0 48.6%;height:100%;padding:0 3.2%;border-radius:999px;
  border:1px solid rgba(255,232,175,.35);background:rgba(35,31,46,.76)
}
.live-reference-smile{
  width:auto;height:100%;aspect-ratio:1;flex:0 0 auto;
  border-color:rgba(255,226,151,.32);background:rgba(42,35,54,.76)
}
.live-reference-gift-drawer,.live-reference-ranking{
  left:0;right:0;bottom:0;width:auto;border-radius:0;
  background:rgba(6,8,13,.92);box-shadow:none
}
.live-reference-gift-drawer,.live-reference-ranking{height:43.3%}
.gift-drawer-header,.live-reference-ranking .ranking-title{top:3.2%;left:3%;right:3%}
.gift-drawer-header h2,.live-reference-ranking .ranking-title{
  font-family:"Source Han Serif SC",serif
}
.gift-drawer-grid{
  left:5%;right:5%;top:15%;grid-template-columns:repeat(4,1fr);
  column-gap:6%;row-gap:5%
}
.gift-drawer-grid>button{height:auto;aspect-ratio:1.08}
.gift-drawer-grid .gift-card-frame{display:none}
.gift-drawer-grid .gift-card-object{left:8%;right:8%;top:0;width:84%;height:68%}
.gift-drawer-grid b{display:none}
.gift-drawer-grid span{
  bottom:4%;justify-content:center;padding-left:0;
  color:#fff3c5;font:clamp(9px,2cqw,19px) "Source Han Serif SC",serif
}
.gift-drawer-header{align-items:center}
.gift-drawer-header h2{font-size:clamp(13px,2.8cqw,27px)}
.gift-drawer-rank{
  margin-left:auto;display:flex;align-items:center;gap:.5cqw;
  color:#fff4ca;font:clamp(8px,1.7cqw,17px) "Source Han Serif SC",serif
}
.gift-drawer-rank b{
  display:grid;place-items:center;width:2.8cqw;height:2.8cqw;border-radius:50%;
  background:linear-gradient(#a98962,#6d5035);color:#fff;font-weight:500
}
.live-reference-ranking .ranking-title{
  justify-content:flex-end;color:#f8e5ae;
  font:clamp(8px,1.6cqw,16px) "Source Han Serif SC",serif
}
.live-reference-ranking .ranking-tabs{left:3%;right:3%;top:3.2%;width:39%;gap:0}
.live-reference-ranking .ranking-tabs button{
  height:3.4cqh;border:0;background:transparent;text-align:left;padding:0 2%;
  color:rgba(255,255,255,.48)
}
.live-reference-ranking .ranking-tabs .is-active{
  border-radius:0;border-bottom:2px solid #ff827e;background:transparent;color:#fff
}
.live-reference-ranking .ranking-rows{left:3%;right:3%;top:13%;gap:.65cqw}
.live-reference-ranking .ranking-row{
  height:5.9cqw;border:0;
  border-radius:0;background:transparent
}
.live-reference-ranking .ranking-row{grid-template-columns:6.5% 8% 1fr auto}
.live-reference-ranking .rank-number{width:4.2cqw;height:4.2cqw}
.live-reference-ranking .ranking-row:nth-child(n+4) .rank-number{
  border-radius:3px;transform:rotate(45deg);color:transparent;
  background:linear-gradient(145deg,#f6d988,#76552d)
}
.ranking-current-host{
  position:absolute;left:2%;right:2%;bottom:2.5%;height:6cqw;
  display:grid;grid-template-columns:5% 8% 1fr auto 5%;align-items:center;gap:1%;
  padding:0 2%;border:1px solid #e9c873;border-radius:999px;
  background:rgba(8,11,17,.92);color:#fff;text-align:left
}
.ranking-current-host .rank-avatar{width:4.4cqw;height:4.4cqw}
.ranking-current-host em{font-style:normal;color:#d998a4;font-size:clamp(8px,1.6cqw,16px)}
.live-reference-rank-dock img:last-child{transform:rotate(-90deg)}

/* MCP source: 稳住别崩ui / 84:303, 84:224, 84:115, 84:2.
   Coordinates below are normalized directly from the 940 x 1671 Figma frames. */
.live-reference-room{container-type:inline-size;font-family:"Source Han Sans CN","Source Han Sans SC","Noto Sans CJK SC",sans-serif}
.live-reference-chrome{font-family:inherit}
.live-reference-figma-back{
  left:2.9787%;top:2.9922%;width:7.3404%;height:4.0096%;aspect-ratio:auto;
  padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
.live-reference-figma-back img{width:100%;height:100%;object-fit:contain;transform:none}
.live-reference-hostbar{
  left:-7.0213%;right:auto;top:2.3938%;width:71.4894%;height:5.2065%;
  display:block;padding:0;border:0;border-radius:999px;
  background:linear-gradient(90deg,rgba(25,25,25,.92),rgba(0,0,0,.86))
}
.live-reference-hostbar .live-reference-avatar{
  position:absolute;left:28.869%;top:0;width:12.946%;height:100%;
  border:0;background-position:center;background-size:cover;box-shadow:none
}
.live-reference-avatar-ring{
  position:absolute;left:28.125%;top:-8.05%;width:14.435%;height:116.1%;object-fit:fill;pointer-events:none
}
.live-reference-hostbar .live-reference-host-copy{position:absolute;left:45.238%;top:24%;margin:0}
.live-reference-hostbar .live-reference-host-copy b{
  color:#fff;font:400 clamp(12px,3.404cqw,32px)/1.2 "Source Han Sans CN","Source Han Sans SC",sans-serif;
  text-shadow:none
}
.live-reference-hostbar .live-reference-follow{
  position:absolute;left:78.125%;right:auto;top:4.02%;width:18.304%;height:91.95%;padding:0
}
.live-reference-hostbar .live-reference-follow>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.live-reference-hostbar .live-reference-follow span{
  position:absolute;z-index:1;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font:400 clamp(9px,2.128cqw,20px)/1 "Source Han Sans CN","Source Han Sans SC",sans-serif
}
.live-reference-follow.is-active{filter:none}
.live-reference-rank-dock{
  left:72.8723%;right:auto;top:2.8127%;width:27.1277%;height:4.3088%;
  display:flex;padding:0 2.35% 0 4.55%;gap:1.55%;border:0;border-radius:0;background:transparent;box-shadow:none
}
.live-reference-rank-dock .rank-pill-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.live-reference-rank-dock>img:not(.rank-pill-bg){position:relative;z-index:1;width:10.2%;height:auto;object-fit:contain}
.live-reference-rank-dock>img:last-child{margin-left:auto;width:9.4%;transform:none}
.live-reference-rank-dock span{
  position:relative;z-index:1;color:#fff;font:400 clamp(9px,2.128cqw,20px) "Source Han Sans CN","Source Han Sans SC",sans-serif
}
.live-reference-gift-strip{
  left:auto;right:2.55%;top:9.8%;width:13.3%;height:54.5%;
  display:flex;flex-direction:column;justify-content:flex-start;gap:1.2%;overflow:visible
}
.live-reference-gift-strip button{
  position:relative;align-self:center;flex:0 0 10.8%;width:82%;height:auto;overflow:visible;padding:0;
  border:0;border-radius:50%;
  background:radial-gradient(circle at 48% 38%,rgba(42,48,66,.5),rgba(8,12,24,.5) 72%);
  box-shadow:inset 0 1px 5px rgba(255,255,255,.08),0 4px 11px rgba(0,0,0,.46)
}
.live-reference-gift-strip .shortcut-gift{
  left:-8%;top:-11%;width:116%;height:94%;object-fit:contain;
  transform-origin:50% 62%;animation:liveGiftEmphasis 2.8s ease-in-out infinite
}
.live-reference-gift-strip button:nth-child(2n) .shortcut-gift{animation-delay:-.7s}
.live-reference-gift-strip button:nth-child(3n) .shortcut-gift{animation-delay:-1.4s}
.live-reference-free-pill{
  position:absolute;z-index:3;left:17%;right:17%;bottom:-3%;height:30%;
  display:flex;align-items:center;justify-content:center;gap:4%;
  border:1px solid rgba(255,225,151,.5);border-radius:999px;
  background:rgba(5,9,18,.9);color:#fff0c7;
  font:600 clamp(7px,1.48cqw,14px)/1 "Source Han Sans CN","Source Han Sans SC",sans-serif;
  box-shadow:0 2px 5px rgba(0,0,0,.42)
}
.live-reference-free-pill img{position:static!important;width:24%!important;height:auto!important;object-fit:contain}
.live-reference-free-pill b{font:inherit;color:inherit}
@keyframes liveGiftEmphasis{
  0%,68%,100%{transform:translateY(0) rotate(0) scale(1)}
  76%{transform:translateY(-3%) rotate(-3deg) scale(1.045)}
  84%{transform:translateY(-1%) rotate(3deg) scale(1.055)}
  92%{transform:translateY(0) rotate(-1deg) scale(1.02)}
}
.live-reference-left-actions{
  left:2.9787%;top:35.0688%;width:9.9465%;display:flex;flex-direction:column;gap:2.2329cqh
}
.live-reference-left-actions button{width:100%;height:auto;aspect-ratio:93.497/93.497}
.live-reference-left-actions button>img:not(.button-frame){position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.live-reference-chat-feed{
  left:2.9787%;bottom:auto;top:63.9138%;width:48.2979%;height:31.2986%;min-height:0;
  padding:3.19% 3.617%;border-radius:30px 30px 0 0;background:linear-gradient(rgba(0,0,0,.86),rgba(0,0,0,.42));
  color:#fff;font:400 clamp(9px,2.128cqw,20px)/2 "Source Han Sans CN","Source Han Sans SC",sans-serif;
  box-shadow:none;text-shadow:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:rgba(255,220,142,.5) transparent;
  clip-path:inset(0 round 30px 30px 0 0)
}
.live-reference-chat-feed::-webkit-scrollbar{width:4px}
.live-reference-chat-feed::-webkit-scrollbar-track{background:transparent}
.live-reference-chat-feed::-webkit-scrollbar-thumb{border-radius:4px;background:rgba(255,220,142,.5)}
.live-reference-chat-feed p{margin:0}
.live-reference-composer{left:2.9787%;right:auto;bottom:auto;top:92.8785%;width:72.2%;height:4.6679%;gap:2.4%}
.live-reference-composer .comment-field{
  position:relative;flex:0 0 82.545%;height:100%;padding:0;border:0;border-radius:999px;background:rgba(0,0,0,.86);box-shadow:none
}
.live-reference-composer .comment-field>img:first-child{
  display:block;position:absolute;left:3.744%;top:12.82%;width:12.996%;height:75.64%;object-fit:contain
}
.live-reference-composer .chat-divider{position:absolute;left:19.16%;top:10.25%;width:1px;height:79.5%;background:rgba(255,255,255,.8)}
.live-reference-composer .chat-chevron{position:absolute;right:6.83%;top:17.95%;width:11.01%;height:64.1%}
.live-reference-composer .chat-chevron img{width:100%!important;height:100%!important;object-fit:contain}
.chat-toggle.is-collapsed .chat-chevron{transform:rotate(180deg)}
.live-reference-smile{
  width:auto;height:100%;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.86)
}
.live-reference-smile img{width:75.64%;height:75.64%;object-fit:contain}
.live-reference-ranking,.live-reference-gift-drawer{
  left:-4.7872%;right:auto;top:55.1167%;bottom:auto;width:109.4681%;height:48.9539%;
  border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden
}
.drawer-figma-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.gift-drawer-header{left:16.617%;right:6.317%;top:7.824%;height:auto}
.gift-drawer-header h2{margin:0;color:#ffebc5;font:400 clamp(14px,3.404cqw,32px) "Source Han Sans CN","Source Han Sans SC",sans-serif}
.gift-drawer-rank{color:#fff;font:400 clamp(9px,2.128cqw,20px) "Source Han Sans CN","Source Han Sans SC",sans-serif}
.gift-drawer-rank img{width:2.766cqw;height:2.766cqw;object-fit:contain}
.gift-drawer-grid{
  left:16.617%;right:auto;top:23.105%;width:77.065%;display:grid;
  grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,26.1%);column-gap:5.17%;row-gap:2.57%
}
.gift-drawer-grid>button{height:auto;aspect-ratio:1;padding:0;border:0;background:transparent}
.gift-drawer-grid .gift-card-object{position:absolute;left:0;top:0;width:100%;height:84%;object-fit:contain}
.gift-drawer-grid span{
  position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;
  color:#ffebc5;font:400 clamp(12px,3.404cqw,32px) "Source Han Sans CN","Source Han Sans SC",sans-serif;white-space:nowrap
}
.gift-drawer-grid span img{width:21%;height:auto}
.gift-drawer-grid .is-selected{filter:drop-shadow(0 0 8px rgba(255,221,142,.7))}
.live-reference-ranking .ranking-title{
  left:auto;right:13.41%;top:8.92%;color:#fff;font:400 clamp(8px,1.702cqw,16px) "Source Han Sans CN","Source Han Sans SC",sans-serif
}
.live-reference-ranking .ranking-title b{color:#f99;font-weight:400}
.live-reference-ranking .ranking-tabs{left:16.617%;right:auto;top:7.824%;width:25.5%;display:flex;gap:16%;z-index:1}
.live-reference-ranking .ranking-tabs button{
  width:auto;height:auto;padding:0 0 1.6cqw;border:0;background:transparent;color:#6e6e6e;
  font:400 clamp(14px,3.404cqw,32px) "Source Han Sans CN","Source Han Sans SC",sans-serif
}
.live-reference-ranking .ranking-tabs .is-active{color:#ffebc5;border-radius:0;border-bottom:2px solid #ffebc5;background:transparent}
.live-reference-ranking .ranking-rows{left:12%;right:auto;top:22.25%;width:76.2%;display:grid;gap:1.05cqw}
.live-reference-ranking .ranking-row{
  height:6.9cqw;padding:0;display:grid;grid-template-columns:8.55% 9.4% 1fr auto;gap:2.1%;align-items:center;
  border:0;border-radius:0;background:transparent;color:#fff;font:400 clamp(10px,2.553cqw,24px) "Source Han Sans CN","Source Han Sans SC",sans-serif
}
.rank-number-art{width:100%;height:100%;object-fit:contain}
.live-reference-ranking .rank-avatar{width:100%;height:auto;aspect-ratio:1;border:0;background:transparent}
.live-reference-ranking .rank-avatar img{width:100%;height:100%;object-fit:contain}
.live-reference-ranking .ranking-row em{color:#ff9c9c;font-size:66.67%;font-style:normal}
.ranking-current-host{
  left:8.75%;right:auto;bottom:7.45%;width:91.35%;height:16.63%;padding:0 7.5%;
  grid-template-columns:5% 9.4% 1fr auto 5%;border:0;border-radius:0;background:transparent
}
.rank-current-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.ranking-current-host>*:not(.rank-current-bg){position:relative;z-index:1}
.ranking-current-host b{font:400 clamp(10px,2.553cqw,24px) "Source Han Sans CN","Source Han Sans SC",sans-serif}
.ranking-current-host em{color:#ff9c9c;font-size:clamp(8px,1.702cqw,16px);font-style:normal}

/* Live runtime interactions: real chat, dismissible drawers and populated ranking avatars. */
.live-reference-chat-feed strong{color:#ffd777;font-weight:600}
.live-reference-drawer-backdrop{
  position:absolute;z-index:3;inset:0;padding:0;border:0;background:rgba(0,0,0,.08)
}
.live-reference-ranking,.live-reference-gift-drawer{
  top:55.1167%;bottom:0;height:auto
}
.live-reference-composer .comment-field input{
  position:absolute;left:23.5%;top:0;width:57%;height:100%;padding:0;border:0;outline:0;
  background:transparent;color:#fff;
  font:400 clamp(9px,2.128cqw,20px) "Source Han Sans CN","Source Han Sans SC",sans-serif
}
.live-reference-composer,.live-reference-composer .comment-field,
.live-reference-composer .comment-field input{pointer-events:auto}
.live-reference-composer .comment-field input::placeholder{color:rgba(255,255,255,.58)}
.live-reference-composer button.chat-chevron{padding:0;border:0;background:transparent}
.live-reference-composer .comment-field input{width:47%}
.live-reference-composer .chat-send-text{
  position:absolute;right:14.5%;top:16%;width:16.5%;height:68%;padding:0;border:0;border-radius:999px;
  background:linear-gradient(180deg,#ffe9b2,#c79342)!important;color:#332109;
  font:600 clamp(9px,2.05cqw,19px) "Source Han Serif SC",serif
}
.live-reference-composer .chat-chevron{right:3.2%;width:8.8%}
.live-reference-emoji-picker{
  position:absolute;z-index:6;left:37%;bottom:7.8%;width:43%;padding:2.1%;
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.2cqw;
  border:1px solid rgba(255,223,148,.52);border-radius:14px;
  background:rgba(10,11,17,.95);box-shadow:0 8px 24px rgba(0,0,0,.48)
}
.live-reference-emoji-picker button{
  height:4.8cqw;padding:0;border:1px solid rgba(255,226,158,.2);border-radius:8px;
  background:rgba(255,255,255,.06);color:#fff;font:clamp(10px,2.1cqw,20px) "Source Han Serif SC",serif
}
.live-reference-chat-bubble{
  position:absolute;z-index:5;left:4.2%;bottom:8.2%;max-width:48%;padding:2.1% 3%;
  display:flex;flex-direction:column;gap:.35cqw;border-radius:18px 18px 18px 5px;
  background:rgba(8,9,14,.86);color:#fff;border:1px solid rgba(255,224,153,.28);
  box-shadow:0 7px 22px rgba(0,0,0,.38);
  animation:liveChatBubbleFloat 3.6s ease-out forwards;
  font:clamp(9px,2cqw,19px)/1.4 "Source Han Sans CN","Source Han Sans SC",sans-serif
}
.live-reference-chat-bubble b{color:#ffd987;font-weight:500}
@keyframes liveChatBubbleFloat{
  0%{opacity:0;transform:translateY(10px)}
  12%,66%{opacity:1;transform:translateY(0)}
  100%{opacity:0;transform:translateY(-34px)}
}
.gift-drawer-grid{
  left:12.2449%;right:auto;top:23.1051%;width:77.0651%;height:54.7677%;
  grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);
  column-gap:5.1702%;row-gap:4.6875%
}
.gift-drawer-grid>button{height:100%;min-height:0;aspect-ratio:auto}
.gift-drawer-header{left:12.2449%;right:auto;top:7.82396%;width:77.0651%}
.gift-drawer-grid .gift-card-object{left:0;top:0;width:100%;height:78.4543%;object-fit:contain}
.gift-drawer-grid span{bottom:0;height:21.5457%}
.live-reference-ranking .ranking-row{grid-template-columns:8.55% 10.2% 1fr auto}
.live-reference-ranking .rank-avatar{
  position:relative;width:100%;height:auto;aspect-ratio:1;border:0;border-radius:50%;
  background:transparent;overflow:visible
}
.live-reference-ranking .rank-avatar img{
  position:absolute;z-index:0;inset:-8%;width:116%;height:116%;object-fit:contain;pointer-events:none
}
.live-reference-ranking .rank-avatar-photo{
  position:absolute;z-index:1;inset:7%;border-radius:50%;
  background-color:#101a2d;background-position:center 18%;background-size:cover;
  box-shadow:inset 0 0 0 1px rgba(255,221,142,.3);pointer-events:none
}
.ranking-current-host{grid-template-columns:8% 10.2% 1fr auto 5%}
.ranking-current-medal{position:relative!important;z-index:1;width:100%;height:100%;object-fit:contain}

/* Gift artwork stays square/transparent on disk and is finally clipped by the round UI slot. */
.live-reference-gift-strip .live-reference-original-gift,
.gift-drawer-grid .live-reference-original-gift{
  border-radius:50%;
  clip-path:circle(50% at 50% 50%);
}
