/* Lounge controls stay above the video; conversation occupies the bottom. */
.room-actions{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:9px;z-index:15}.wallet-row{display:flex;align-items:center;gap:9px}#wallet{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:84px;white-space:nowrap;font-variant-numeric:tabular-nums}.diamond-icon{display:block;width:21px;height:21px;flex-shrink:0}.wallet-plus{font-size:17px;opacity:.65}.sound-button{display:grid;place-items:center;width:40px;height:40px;padding:9px;border:1px solid #d9d6ce;border-radius:50%;background:#fff9;color:#51453e}.sound-button svg{width:22px;height:22px}.sound-cross{display:none}.is-muted .sound-cross{display:block}.is-muted .sound-waves{display:none}.private-shortcut button{border:0;border-radius:20px;padding:8px 14px;background:#ede4dc;color:#634d41;font-weight:700;min-height:36px}.private-shortcut button:disabled{opacity:.55}.topbar{align-items:flex-start;min-height:95px}.brand{margin-top:8px}.stage-top{justify-content:flex-start;pointer-events:none}.stage-top button{pointer-events:auto}.chat-heading{justify-content:space-between}.chat-heading #online{border:0;background:transparent;color:inherit;font-size:13px;font-weight:700;padding:7px 0;text-align:left}.chat-heading #online[data-connecting=true]{opacity:.7}.message .who.name-colored,.name-colored{color:hsl(var(--name-hue,24) 62% 35%)}.who time{color:#948a81}#people-list .name-colored{padding:9px 0;color:hsl(var(--name-hue,24) 62% 35%)}.donation{position:absolute;z-index:9;left:50%;top:27%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:90%;padding:15px 20px;border-radius:22px;border:1px solid #fff9;background:linear-gradient(120deg,#ffe8bded,#ffe7f7ed 55%,#dfd6ffee);color:#683d65;box-shadow:0 8px 38px #57315f44;backdrop-filter:blur(16px);pointer-events:none}.donation>.diamond-icon{width:34px;height:34px}.donation strong{display:block;font-size:16px;overflow-wrap:anywhere}.donation span{display:block;font-size:13px;margin-top:4px}.donation i{font-size:24px;color:#ac69a7;font-style:normal;animation:tip-spark 1.5s ease-in-out infinite}.donation.hidden{display:none}.room-actions .hidden{display:none}#sound:focus-visible,#online:focus-visible,.private-shortcut button:focus-visible{outline:2px solid #d486aa;outline-offset:3px}@keyframes tip-spark{50%{transform:rotate(30deg) scale(1.25);opacity:.6}}
@media(max-width:760px){.topbar{height:108px;min-height:0;padding:12px 14px;pointer-events:none;background:linear-gradient(#21191d88,transparent);align-items:flex-start}.topbar a,.topbar button{pointer-events:auto}.brand{margin-top:5px}.room-actions{gap:8px}.wallet-row{gap:7px}#wallet{height:37px;padding:7px 11px;min-width:78px;border:1px solid #ffffff4d;background:#211c2859;color:#fff;backdrop-filter:blur(12px)}.sound-button{width:37px;height:37px;padding:8px;background:#211c2859;color:#fff;border-color:#ffffff4d;backdrop-filter:blur(12px)}.private-shortcut button{background:#fff0f2e8;color:#634653;min-height:34px;padding:7px 13px;font-size:12px;box-shadow:0 2px 12px #0001}.stage-top{top:66px;left:14px;right:auto}.chat{bottom:max(8px,env(safe-area-inset-bottom));height:44%;max-height:calc(var(--view-height,100dvh) - 180px);min-height:220px}.chat-heading{padding:0 12px;min-height:32px}.chat-heading #online{color:#ffffffe6;font-size:12px;text-shadow:0 1px 8px #0009}.chat .message .who.name-colored{color:hsl(var(--name-hue,24) 95% 80%)}.chat .who time{color:#fff7}.mail-open .chat{height:68%;max-height:calc(var(--view-height,100dvh) - 126px)}.mail-open .chat-heading #online{color:#695b53;text-shadow:none}.chat-hidden .chat{bottom:max(8px,env(safe-area-inset-bottom));min-height:0;height:auto}.donation{top:27%;padding:12px 15px;border-radius:18px;gap:10px}.donation strong{font-size:14px}.donation span{font-size:12px}.donation>.diamond-icon{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.donation i{animation:none}}

@media(max-width:760px){.mail-open .chat-heading{display:flex}.chat-hidden:not(.mail-open) .chat{height:142px;min-height:142px}}
@media(max-height:570px) and (max-width:760px){.chat{min-height:155px;max-height:calc(var(--view-height,100dvh) - 110px)}.chat-heading{display:flex}.topbar{height:92px}.room-actions{gap:5px}}

.vip-status{flex-shrink:0;border:1px solid #c4a16c70;border-radius:13px;padding:12px 14px;margin:9px 0;background:linear-gradient(120deg,#fff3d9,#f9ecf6);color:#674b36;animation:vip-arrive .55s ease-out}.vip-status-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.vip-emblem{font-size:10px;letter-spacing:2px;color:#996727;font-weight:800}.vip-status time{font-size:12px;font-variant-numeric:tabular-nums}.vip-status>strong{display:block;font-size:13px;overflow-wrap:anywhere}.vip-status p{font-size:11px;line-height:1.6;margin:4px 0 0}.vip-status.is-mine{border-color:#d09a42;box-shadow:0 0 24px #c2924026}.vip-offer{display:flex;align-items:baseline;justify-content:space-between;background:linear-gradient(120deg,#f8edda,#f0e4f2);border:1px solid #d7bf9566;border-radius:14px;padding:18px 20px;color:#6a4937}.vip-offer strong{font-size:28px}.vip-offer span{font-weight:700}.vip-disclosure strong{display:block;color:#654a3a;margin-bottom:8px}.vip-policy{font-size:11px;line-height:1.8}#private-dialog #confirm-private{background:linear-gradient(120deg,#8b683e,#83648c);font-size:13px}#private-dialog .dialog-actions{flex-wrap:wrap}#private-dialog .dialog-actions button{flex:1;min-width:130px}#enter{border:1px solid #ba965553;background:linear-gradient(120deg,#fff0d1,#f4dfeb);color:#755038}.waiting h2{overflow-wrap:anywhere;max-width:100%}@keyframes vip-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:760px){.vip-status{padding:9px 12px;margin:7px 0;background:linear-gradient(120deg,#342737f2,#4f3a2ce8);color:#fff0d5;backdrop-filter:blur(12px)}.vip-emblem{color:#f5d596}.vip-status>strong{font-size:12px}.vip-status p{font-size:10px;color:#ead8cd}.vip-status time{font-size:11px}.vip-active .chat{height:52%;max-height:calc(var(--view-height,100dvh) - 135px)}.vip-active.mail-open .chat{height:68%}.vip-active .waiting{padding-top:150px}.vip-active .waiting .moon{display:none}.vip-active .waiting small{display:none}.chat-hidden.vip-active:not(.mail-open) .chat{height:auto;min-height:0}.chat-hidden.vip-active .vip-status p{display:none}}
@media(prefers-reduced-motion:reduce){.vip-status{animation:none}}

.vip-policy summary{cursor:pointer;color:#8b7c6c;font-size:11px}.vip-policy p{font-size:11px}.send-state{font-size:10px;opacity:.6;margin-left:8px}.retry-message{display:inline-block;padding:3px 7px;margin-left:8px;border-radius:6px;background:#f4dcdc;color:#8b3434;font-size:11px}.vip-disclosure{color:#654a3a}

/* App-style commerce dialogs and one-line chat composer. */
#private-dialog,#purchase-dialog,#reaction-dialog{
 width:min(94vw,560px);max-width:560px;max-height:90dvh;padding:0;border:0;border-radius:28px;
 overflow:hidden;background:#fffdfb;color:#433b46;box-shadow:0 28px 90px #271b3138,0 2px 12px #3b244018;
}
#reaction-dialog{max-width:620px}
#private-dialog::backdrop,#purchase-dialog::backdrop,#reaction-dialog::backdrop{background:#1c15265c;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#private-dialog[open],#purchase-dialog[open],#reaction-dialog[open]{animation:commerce-rise .28s cubic-bezier(.2,.75,.25,1)}
.commerce-shell{display:flex;flex-direction:column;max-height:90dvh;min-height:0}
.commerce-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-shrink:0;padding:25px 27px 19px;background:linear-gradient(145deg,#fffdfb 20%,#f7f0f8 100%)}
.commerce-header h2{margin:4px 0 2px!important;font-size:23px!important;font-weight:750!important;letter-spacing:-.7px}
.commerce-header p{margin:0;color:#8b7c8e;font-size:11px;line-height:1.65!important}
.commerce-eyebrow{color:#9a7ca9;font:700 9px/1.2 'Outfit',sans-serif;letter-spacing:2.1px}
.commerce-header .commerce-close{display:grid;place-items:center;flex:0 0 38px;width:38px;min-height:38px;padding:0;border:1px solid #eadfeb;border-radius:50%;background:#ffffffb8;color:#756578;font-size:24px;font-weight:300;line-height:1}
.commerce-body{min-height:0;padding:0 27px 27px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.vip-offer-card,.reaction-offer-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:17px 18px;border:1px solid #eadfec;border-radius:19px;background:linear-gradient(120deg,#f7f0fa,#fff8ed);box-shadow:inset 0 1px #fff}
.vip-offer-icon,.reaction-offer-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#fff9;color:#906b9f;font-size:21px;box-shadow:0 5px 16px #79548518}
.vip-offer-card>div:nth-child(2),.reaction-offer-card>div:nth-child(2){display:grid;gap:2px;min-width:0}
.vip-offer-card>div:nth-child(2)>span,.reaction-offer-card>div:nth-child(2)>span{color:#9b8d9e;font-size:10px}
.vip-offer-card>div:nth-child(2)>strong,.reaction-offer-card>div:nth-child(2)>strong{overflow:hidden;color:#55495a;font-size:18px;font-weight:760;letter-spacing:-.4px;text-overflow:ellipsis;white-space:nowrap}
.commerce-price{display:flex!important;align-items:center!important;justify-content:flex-end;gap:6px!important;color:#765d81;white-space:nowrap}
.commerce-price .diamond-icon{width:20px;height:20px;color:#9b79aa}
.commerce-price>strong{font-size:17px!important;font-weight:760!important;font-variant-numeric:tabular-nums}
.commerce-price small{color:#8e7d92;font-size:9px}
.vip-core-list{display:grid;gap:10px;margin:17px 1px;padding:0;list-style:none}
.vip-core-list li{display:flex;align-items:center;gap:10px;color:#736776;font-size:12px}
.vip-core-list i{display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;border-radius:50%;background:#ede4f2;color:#8b699b;font-size:11px;font-style:normal;font-weight:800}
.commerce-copy{margin:15px 2px 12px!important;color:#746a76!important;font-size:12px!important}
.commerce-note{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:12px 14px;border:1px solid #ece3ec;border-radius:15px;background:#fbf8fb}
.commerce-note>span{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:10px;background:#eee5f2;color:#82688e;font-size:16px}
.commerce-note p{margin:0;color:#96899a;font-size:10px;line-height:1.55!important}
.commerce-note strong{color:#6e606f;font-size:11px}
.commerce-balance{display:flex;align-items:center;justify-content:space-between;min-height:52px;margin-top:15px;padding:10px 14px;border:1px solid #ece4ed;border-radius:15px;background:#fbf8fb;color:#897a8d}
.commerce-balance>span{font-size:10px;font-weight:650}
.commerce-balance>strong{display:flex;align-items:center;gap:7px;color:#5f5064;font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}
.commerce-balance .diamond-icon{width:20px;height:20px;color:#9b79aa}
.commerce-dialog .vip-policy{margin:12px 2px;color:#96899a;font-size:10px;line-height:1.65}
.commerce-dialog .vip-policy summary{cursor:pointer;color:#88788c}
.commerce-dialog .vip-policy p{margin:7px 0 0;font-size:10px;line-height:1.7!important}
.commerce-dialog .form-error{margin:10px 2px 0;font-size:11px;line-height:1.5!important}
.commerce-primary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:54px;margin-top:14px;padding:13px 18px;border-radius:16px;background:linear-gradient(120deg,#866a93,#705878);color:#fff;font-size:13px;font-weight:700;box-shadow:0 10px 24px #75547d36}
#private-dialog #confirm-private,#purchase-dialog #confirm-purchase{background:linear-gradient(120deg,#866a93,#705878)}
.commerce-primary strong{font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.commerce-primary:active{transform:scale(.99)}
#reaction-dialog .commerce-body{padding-top:1px}
#reaction-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#reaction-list .reaction-choice{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:82px;padding:13px;border:1px solid #ebe3eb;border-radius:17px;background:#fff;color:#564c58;box-shadow:0 4px 14px #5c3c6810;text-align:left;transition:border-color .18s,background .18s,transform .18s}
#reaction-list .reaction-choice:hover{border-color:#d8c5dd;background:#fdf9ff;transform:translateY(-1px)}
.reaction-choice-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#f0e5f4,#fff0dc);color:#8b699a;font-size:19px}
.reaction-choice-copy{display:grid;gap:5px;min-width:0}
#reaction-list .reaction-choice-copy strong{display:block;overflow:hidden;color:#5b4e5e;font-size:13px;font-weight:720;text-overflow:ellipsis;white-space:nowrap}
#reaction-list .reaction-choice-price{display:flex;align-items:center;gap:4px;color:#97899a;font-size:10px}
.reaction-choice-price .diamond-icon{width:14px;height:14px;color:#9b79aa}
.reaction-choice-arrow{color:#b4a8b7;font-size:24px;font-weight:300}
#chat-form{display:grid;grid-template-columns:38px minmax(0,1fr) 40px;align-items:center;gap:8px;min-height:54px;padding:7px;border:1px solid #e4dbe6;border-radius:18px;background:#fff;box-shadow:0 5px 18px #4f385d12;transition:border-color .18s,box-shadow .18s}
#chat-form:focus-within{border-color:#aa91b5;box-shadow:0 0 0 3px #9d7baa18,0 7px 22px #4f385d17}
#chat-form #draft{display:block;min-width:0;width:100%;height:38px;min-height:0;margin:0;padding:8px 2px;border:0;outline:0;background:transparent;color:#514752;font-size:13px;line-height:22px;text-overflow:ellipsis}
#chat-form #draft::placeholder{color:#aaa0ab;font-size:12px}
#chat-form #choose-reaction,#chat-form #send{display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;border-radius:12px}
#chat-form #choose-reaction{border:1px solid #e7dce9;background:#f4eef6;color:#856d90;font-size:18px}
#chat-form #send{background:linear-gradient(145deg,#9377a0,#755c7f);color:#fff;box-shadow:0 5px 13px #62416c36}
#chat-form #send svg{width:20px;height:20px}
#chat-form button:disabled{box-shadow:none;opacity:.45}
@keyframes commerce-rise{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:760px){
 #private-dialog,#purchase-dialog,#reaction-dialog{width:100%;max-width:none;max-height:92dvh;margin:auto 0 0;border-radius:28px 28px 0 0}
 .commerce-shell{max-height:92dvh}
 .commerce-header{padding:21px 18px 15px}
 .commerce-header h2{font-size:21px!important}
 .commerce-header .commerce-close{flex-basis:36px;width:36px;min-height:36px}
 .commerce-body{padding:0 16px max(16px,env(safe-area-inset-bottom))}
 .vip-offer-card,.reaction-offer-card{gap:10px;padding:14px;border-radius:17px}
 .vip-offer-icon,.reaction-offer-icon{width:40px;height:40px;border-radius:13px}
 .vip-offer-card>div:nth-child(2)>strong,.reaction-offer-card>div:nth-child(2)>strong{font-size:16px}
 .commerce-price{gap:4px!important}.commerce-price>strong{font-size:15px!important}.commerce-price .diamond-icon{width:18px;height:18px}
 #reaction-list{grid-template-columns:1fr;gap:8px}
 #reaction-list .reaction-choice{min-height:72px;padding:10px 12px;border-radius:15px}
 #chat-form{grid-template-columns:36px minmax(0,1fr) 38px;gap:6px;min-height:52px;padding:6px;border-color:#ffffff30;border-radius:18px;background:#241e2ae8;box-shadow:0 7px 24px #0003;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 #chat-form:focus-within{border-color:#cdb3dba3;box-shadow:0 0 0 3px #d3b7df18,0 7px 24px #0004}
 #chat-form #draft{height:38px;padding-inline:2px;color:#fff;font-size:16px}
 #chat-form #draft::placeholder{color:#c2b7c6;font-size:12px}
 #chat-form #choose-reaction{width:36px;height:36px;min-height:36px;border-color:#ffffff21;background:#ffffff13;color:#e4ceeb}
 #chat-form #send{width:38px;height:38px;min-height:38px;background:linear-gradient(145deg,#aa8ab8,#866a92)}
}
@media(prefers-reduced-motion:reduce){#private-dialog[open],#purchase-dialog[open],#reaction-dialog[open]{animation:none}.reaction-choice,.commerce-primary,#chat-form{transition:none}}

/* Unified evening palette for commerce, reactions, rankings and private notes. */
:root{--night:#19151f;--night-2:#211b29;--night-3:#2a2232;--night-4:#34293e;--night-line:#ffffff18;--night-text:#f7f1f8;--night-muted:#b7aabb;--night-accent:#c5a7d2}
#private-dialog,#purchase-dialog,#reaction-dialog,#store-dialog,#people-dialog{border:1px solid var(--night-line);background:var(--night);color:var(--night-text);box-shadow:0 30px 100px #08050dbd,0 1px 0 #ffffff0b inset}
#private-dialog::backdrop,#purchase-dialog::backdrop,#reaction-dialog::backdrop,#store-dialog::backdrop,#people-dialog::backdrop{background:#09060db8;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.commerce-header,.store-header{border-bottom:1px solid #ffffff0d;background:linear-gradient(145deg,#282031,#1d1824 72%)}
.commerce-header h2,.store-header h2{color:var(--night-text)}
.commerce-header p,.store-header p{color:var(--night-muted)}
.commerce-eyebrow,.store-eyebrow{color:#c2a0cf}
.commerce-header .commerce-close,.store-header #close-store{border-color:#ffffff17;background:#ffffff0a;color:#d9cadf}
.commerce-header .commerce-close:hover,.store-header #close-store:hover{background:#ffffff13;color:#fff}
.commerce-body,.store-content{background:var(--night)}
.vip-offer-card,.reaction-offer-card,.store-balance-card{border-color:#ffffff13;background:linear-gradient(125deg,#30263a,#26202e);box-shadow:inset 0 1px #ffffff0b}
.vip-offer-icon,.reaction-offer-icon{background:#ffffff0c;color:#d4b4df;box-shadow:none}
.vip-offer-card>div:nth-child(2)>span,.reaction-offer-card>div:nth-child(2)>span{color:#aa9caf}
.vip-offer-card>div:nth-child(2)>strong,.reaction-offer-card>div:nth-child(2)>strong{color:#f4edf5}
.commerce-price{color:#e3c9ea}
.commerce-price .diamond-icon,.commerce-balance .diamond-icon,.store-balance-card .diamond-icon,.commerce-cta-price .diamond-icon{color:#c99ddb}
.commerce-price small{color:#aa9caf}
.vip-core-list li{color:#c8bdcb}
.vip-core-list i{background:#a576b52e;color:#d8bce2}
.commerce-copy{color:#c7bcc9!important}
.commerce-note,.commerce-balance{border-color:#ffffff12;background:#24202b;color:#b7aabb}
.commerce-note>span{background:#ae80be24;color:#d3b0df}
.commerce-note p{color:#a99dac}.commerce-note strong{color:#ded3e0}
.commerce-balance>strong,.store-balance-card strong{color:#f3eaf5}
.commerce-dialog .vip-policy,.commerce-dialog .vip-policy summary{color:#a99dac}
.commerce-dialog .vip-policy p{color:#938699}
.commerce-primary,#private-dialog #confirm-private,#purchase-dialog #confirm-purchase{background:linear-gradient(120deg,#9e75ad,#765783);box-shadow:0 12px 28px #09060d66;color:#fff}
.commerce-cta-price{display:flex;align-items:center;gap:6px}.commerce-cta-price .diamond-icon{width:17px;height:17px}
#reaction-list .reaction-choice{border-color:#ffffff12;background:#24202b;color:#f2ebf3;box-shadow:0 5px 18px #08050d35}
#reaction-list .reaction-choice:hover{border-color:#a57ab866;background:#302639}
.reaction-choice-icon{background:linear-gradient(145deg,#3a2c45,#302636);color:#d1b0dc}
#reaction-list .reaction-choice-copy strong{color:#f2ebf4}
#reaction-list .reaction-choice-price{color:#bbaec0}
.reaction-choice-price .diamond-icon{color:#c99ddb}
.reaction-choice-arrow{color:#84788a}
.store-balance-card>span,.store-section-heading span{color:#aa9caf}.store-section-heading strong{color:#eee6f0}
#store-dialog .package{min-height:94px;border-color:#ffffff12;background:#24202b;color:#f0e9f2;box-shadow:0 5px 18px #08050d30}
#store-dialog .package:hover{border-color:#a57ab866;background:#302639}
#store-dialog .package[aria-pressed=true]{border-color:#b68ac7;background:linear-gradient(145deg,#3b2d46,#2e2733);box-shadow:0 0 0 1px #b68ac7,0 10px 24px #09060d55}
#store-dialog .package .diamond-icon{color:#c99ddb}
#store-dialog .package .package-price{margin-top:auto;color:#d2c5d5}
.package-check{border-color:#ffffff24}.package[aria-pressed=true] .package-check{border-color:#ae7fbe;background:#ae7fbe}
.store-checkout{background:var(--night)}
#store-dialog #checkout{background:#2b2530;color:#7f7483}
#store-dialog #checkout.has-selection{background:linear-gradient(120deg,#9e75ad,#765783);color:#fff;box-shadow:0 12px 28px #09060d66}
#store-result{background:var(--night)}#store-result h3{color:var(--night-text)}#store-result p{color:var(--night-muted)}
#store-result .result-icon{background:linear-gradient(145deg,#3b2c47,#2d2534);color:#d0addd;box-shadow:0 10px 28px #09060d55}
#store-result .receipt-link{color:#d0addd}
#store-result #store-done{background:linear-gradient(120deg,#9e75ad,#765783)}

#people-dialog{width:min(92vw,430px);max-width:430px;max-height:78dvh;padding:0;overflow:hidden;border-radius:26px}
#people-dialog .dialog-heading{padding:23px 24px 17px;border-bottom:1px solid #ffffff10;background:linear-gradient(145deg,#282031,#1d1824)}
#people-dialog .dialog-heading h2{margin:4px 0 1px;color:var(--night-text);font-size:21px;font-weight:750}
#people-dialog .dialog-heading p{margin:0;color:var(--night-muted);font-size:10px;line-height:1.5}
#people-dialog .dialog-heading button{display:grid;place-items:center;flex:0 0 36px;min-height:36px;padding:0;border:1px solid #ffffff17;border-radius:50%;background:#ffffff0a;color:#d9cadf}
#people-list{max-height:58dvh;margin:0;padding:10px 18px 18px;overflow:auto;list-style:none}
#people-list .people-row{display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:9px 5px;border-bottom:1px solid #ffffff0d;color:var(--night-text)}
.people-rank{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#ffffff0b;color:#a99cad;font:700 10px/1 'Outfit',sans-serif}
.people-name{min-width:0}.people-name strong{display:block;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
#people-dialog .name-colored{color:hsl(var(--name-hue,275) 66% 78%)}
.people-spent{display:flex;align-items:center;gap:5px;color:#d9c8df;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.people-spent .diamond-icon{width:17px;height:17px;color:#c99ddb}

.mail-open .chat{border-color:#ffffff12;background:linear-gradient(180deg,#201a27f7,#17131cfb);color:var(--night-text);box-shadow:0 -12px 42px #05030870}
.mail-open .tabs{background:#ffffff0b}.mail-open .tabs button{color:#b7aabb}.mail-open .tabs button[aria-selected=true]{background:#ffffff12;color:#f4edf5;box-shadow:none}
.mail-open .mailbox-heading h3{color:#f1eaf3}.mail-open .mailbox-heading small,.mail-open .mail-empty{color:#9f92a4}
.mail-open .note-letter{border-color:#ffffff11;background:#25202b;color:#eee7ef;box-shadow:0 5px 18px #07040b3d}
.mail-open .note-letter.sent{border-color:#b38ac02b;background:#302638}
.mail-open .note-letter header{color:#c6a9cf}.mail-open .note-letter p{color:#f0e8f2}.mail-open .note-letter small{color:#95899a}
.mail-open .note-paper{border-color:#ffffff16;background:#211b29;color:#f3ebf4;box-shadow:0 10px 28px #07040b45}
.mail-open .note-paper label{color:#c7a8d1}.mail-open .note-paper #note-body{color:#fff;background:transparent}.mail-open .note-paper #note-body::placeholder{color:#867b8b}
.mail-open .note-actions small{color:#9f92a4}.mail-open .note-actions button{background:linear-gradient(120deg,#9e75ad,#765783);color:#fff}
.mail-open #note-error{color:#e89aaa}

@media(max-width:760px){
 #people-dialog{width:100%;max-width:none;max-height:84dvh;margin:auto 0 0;border-radius:26px 26px 0 0}
 #people-list{padding-bottom:max(18px,env(safe-area-inset-bottom))}
 #store-dialog .package{min-height:78px}
 .mail-open .chat{background:linear-gradient(180deg,#211b29f8,#17131c)}
 .mail-open .chat-heading #online{color:#e9ddec;text-shadow:none}
}

/* Shared note-check scene and unread indicators. */
#mail{z-index:4;object-fit:contain;background:#201c1a}
.tabs button{position:relative}
.tabs .tab-unread{display:inline-block;width:7px;height:7px;margin-left:4px;border:1px solid #fff;border-radius:50%;background:#ff465d;box-shadow:0 0 0 2px #ff465d22,0 1px 5px #8d102f80;vertical-align:1px}
@media(max-width:760px){#mail{object-fit:cover}}

/* Public room lifecycle notices stay compact while Yuna remains voice-only. */
.join-profile{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.join-profile label{margin-top:8px}
.join-profile select,.join-profile input{box-sizing:border-box;width:100%;min-height:46px;margin:7px 0 0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:inherit;font-size:16px}
.chat-hidden #mailbox{display:none!important}
.message.system{display:flex;justify-content:center;margin:5px 0 14px;text-align:center}
.message.system .text{margin:0;padding:5px 10px;border:1px solid #e7dfe9;border-radius:999px;background:#f7f3f8;color:#8e8291;font-size:10px;line-height:1.35}
@media(max-width:760px){.chat .message.system .text{border-color:#ffffff1f;background:#211a27b8;color:#d4c8d8;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}}

/* VIP spectating uses the same evening palette and compact controls. */
#spectate.spectate-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:46px;margin:16px 0 12px;padding:11px 16px;border:1px solid #c5a7d24d;border-radius:16px;background:linear-gradient(135deg,#594163,#37283f);color:var(--night-text);box-shadow:0 6px 24px #08050d55;font-size:13px;font-weight:650}
#spectate svg,.spectator-bar svg,.spectate-summary svg{width:18px;height:18px;flex-shrink:0;color:var(--night-accent)}
#spectate-cost{margin-left:3px;padding-left:12px;border-left:1px solid #ffffff26;color:#dcc8e4;font-size:11px;font-weight:500;white-space:nowrap}
#spectate:hover{border-color:#c5a7d28c;background:linear-gradient(135deg,#654c70,#44314e)}
#spectate:focus-visible,#spectator-leave:focus-visible{outline:2px solid var(--night-accent);outline-offset:3px}
.spectator-bar{display:flex;align-items:center;gap:5px;min-width:0;margin-left:auto;padding:4px 8px;border:1px solid #ffffff1c;border-radius:999px;background:#17131c66;color:#e5d6ec;font-size:10px;line-height:1.5;font-weight:500}
.spectator-bar svg{width:14px;height:14px}.spectator-bar #spectator-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#spectator-leave{flex-shrink:0;margin-left:3px;padding:3px 6px;border:0;border-left:1px solid #ffffff26;border-radius:0;background:transparent;color:#e6c8f0;font-size:10px;line-height:1.5}
#spectate-dialog{width:min(92vw,420px);max-width:420px;max-height:85dvh;margin:auto;padding:0;overflow:hidden;border:1px solid var(--night-line);border-radius:24px;background:var(--night);color:var(--night-text);box-shadow:0 28px 90px #08050dbd}
#spectate-dialog::backdrop{background:#09060db8;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
#spectate-dialog .commerce-shell{max-height:85dvh}#spectate-dialog .commerce-header{padding:21px 22px 16px}#spectate-dialog .commerce-header h2{font-size:21px!important}#spectate-dialog .commerce-body{padding:18px 22px 22px}
.spectate-summary{display:flex;align-items:center;gap:8px;color:#e3c9ea}.spectate-summary strong{font-size:16px}.spectate-summary>span{margin-left:auto;color:var(--night-muted);font-size:10px}
#spectate-dialog .commerce-copy{margin:13px 0!important;line-height:1.85!important}#spectate-confirm{justify-content:center;margin-top:16px}
.vip-visibility label{border-color:var(--night-line);background:var(--night-2)}.vip-visibility small,.vip-visibility p{color:var(--night-muted)}.vip-visibility label:has(input:checked){border-color:#c5a7d280;background:#35293e}.vip-visibility input{accent-color:var(--night-accent)}
.stage-top{flex-wrap:wrap;align-items:center}.voice-status{font-size:12px;color:#eee3f5;background:#211a29cc;border-radius:12px;padding:5px 9px;max-width:100%;line-height:1.4}.voice-status:empty{display:none}#mic[aria-pressed=true]{background:#755883;border-color:#c5a7d2}

/* Avoid a second keyboard-sized gap when the visual viewport is panned. */
@media(max-width:760px){
 html{height:100%;overflow:hidden}
 body{position:fixed;top:var(--view-top,0px);left:0;right:0;width:100%;height:var(--view-height,100dvh);min-height:0;overflow:hidden}
 body>main{position:relative;height:100%;min-height:0;padding:0}
 .vip-status-top{gap:6px}.spectator-bar{max-width:calc(100% - 85px)}
 .keyboard-open .chat,.keyboard-open.vip-active .chat,.keyboard-open.mail-open .chat{bottom:0;height:calc(100% - 72px);max-height:calc(100% - 72px);min-height:0;padding:4px 12px 6px}
 .keyboard-open .chat-heading,.keyboard-open .tabs,.keyboard-open #channel-note,.keyboard-open .vip-status>strong,.keyboard-open .vip-status>p{display:none}
 .keyboard-open .vip-status{padding:7px 10px;margin:0 0 5px}.keyboard-open .vip-status-top{margin:0}
 .keyboard-open #messages{flex:1;min-height:0}.keyboard-open #chat-form,.keyboard-open #note-form{flex-shrink:0;margin-top:auto}
 .keyboard-open .topbar{height:66px;min-height:0;padding:8px 12px}.keyboard-open .private-shortcut{display:none}
 .keyboard-open .stage-top{top:56px}.keyboard-open .mailbox-heading{display:none}
 #spectate-dialog .commerce-header{padding:19px 18px 14px}#spectate-dialog .commerce-body{padding:16px 18px 20px}
}

#spectate-label{flex:1;text-align:left}#spectate-cost{margin-left:auto}
/* Each role has its own controls; changing Lounge / Notes cannot move the VIP invitation. */
.vip-owner #online,.vip-owner .tabs,.spectating #online,.spectating .tabs,.spectating #channel-note,.spectating #vip-status,.vip-waiting #vip-status{display:none!important}
.vip-owner .chat-heading{justify-content:flex-end}
.vip-owner #messages{order:1;flex:1;min-height:0}.vip-owner #vip-status{order:2;flex-shrink:0;margin:6px 0;padding:8px 12px}
.vip-owner #vip-status>strong,.vip-owner #vip-status>p{display:none}.vip-owner .vip-status-top{margin:0}
.vip-owner #chat-status{order:3}.vip-owner #chat-form{order:4;margin-top:0}
#spectator-people{display:flex;align-items:center;gap:5px;border:0;padding:0;background:none;color:inherit;font:inherit;white-space:nowrap}
#spectator-people:not(:disabled):hover{color:#fff}#spectator-people:focus-visible{outline:2px solid var(--night-accent);outline-offset:4px}
#watchers-dialog{width:min(90vw,360px);max-height:70dvh;padding:20px;border:1px solid var(--night-line);border-radius:22px;background:var(--night);color:var(--night-text)}
#watchers-dialog::backdrop{background:#09060db8;backdrop-filter:blur(14px)}#watchers-dialog h2{margin:0;font-size:18px}#watchers-dialog button{background:transparent;color:var(--night-muted)}
#watchers-list{list-style:none;padding:0;margin:14px 0 0;max-height:45dvh;overflow:auto}#watchers-list li{padding:11px 4px;border-bottom:1px solid var(--night-line);font-size:14px}
.vip-waiting .waiting{z-index:10;background:transparent;pointer-events:none;justify-content:flex-start;padding:110px 18px 0}
.vip-waiting .stage:after{inset:0;background:#211829bb;z-index:8}
.vip-waiting .waiting .moon,.vip-waiting .waiting small{display:none}.vip-waiting .waiting h2{font-size:16px;margin:12px 0;color:#fff}
.vip-waiting .waiting p{font-size:11px;margin:2px 0;color:#d2c2d8}.vip-waiting .waiting p:empty{display:none}
.vip-waiting #spectate{pointer-events:auto;min-width:245px;max-width:100%;margin:10px 0 4px}
.vip-waiting #remaining{margin:8px 0;color:#baabc4;font-size:13px}
/* Compact spectator status shares the normal chat heading; no video overlay or message cards. */
.watch-hud{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;min-width:0;flex:1;color:var(--night-muted);font-size:11px;text-shadow:0 1px 5px #000}
.watch-hud.hidden{display:none}#watch-title{overflow-wrap:anywhere}#watch-clock{font-variant-numeric:tabular-nums;white-space:nowrap}
.private-shortcut #spectator-leave{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid #e2ccec66;border-radius:999px;background:linear-gradient(135deg,#403149e8,#241d2ce8);color:#f7eef9;font-size:11px;box-shadow:0 7px 24px #08050d55,inset 0 1px #ffffff17;backdrop-filter:blur(12px)}.private-shortcut #spectator-leave svg{width:17px;height:17px;color:#dcbbe7}.private-shortcut #spectator-leave:hover{border-color:#e2cceca8;background:linear-gradient(135deg,#513d5ce8,#2d2336e8)}.private-shortcut #spectator-leave.hidden{display:none}
.spectating .chat-heading{align-items:center;gap:10px;flex-shrink:0}.spectating #toggle-chat{margin:0;flex-shrink:0}
.spectating .chat{height:30%;min-height:0;max-height:35%;background:transparent}
.spectating.chat-hidden #messages{display:none}.spectating .stage-caption{display:none}
@media(max-width:760px){
 .vip-waiting .waiting{padding-top:112px}.vip-waiting .chat,.vip-waiting.mail-open .chat{height:calc(100% - 295px);max-height:calc(100% - 295px);min-height:0}
 .keyboard-open.vip-owner .chat{height:calc(100% - 72px);max-height:calc(100% - 72px)}
 .keyboard-open.vip-owner #vip-status{margin:4px 0}.keyboard-open.vip-owner #chat-form{margin-top:0}
 .keyboard-open.vip-waiting .waiting{display:none}.keyboard-open.vip-waiting .chat{height:calc(100% - 72px);max-height:calc(100% - 72px)}
 .spectating .chat{height:30%;min-height:0;max-height:35%}
 .spectating.chat-hidden .chat{height:auto;min-height:0;max-height:none}
}



.note-paper .note-price{margin:8px 0 0;color:var(--night-muted);font-size:10px;line-height:1.5}.note-paper #note-error{font-size:11px}

/* Informational rows stay quiet so the filled CTA is the only obvious action. */
#purchase-dialog .reaction-offer-card{padding:12px 2px 17px;border:0;border-bottom:1px solid #ffffff18;border-radius:0;background:transparent;box-shadow:none;cursor:default}
#purchase-dialog .reaction-offer-icon{width:38px;height:38px;border:1px solid #ffffff15;border-radius:12px;background:#ffffff08}
#purchase-dialog .commerce-balance{min-height:44px;margin-top:3px;padding:12px 2px 5px;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:default}
