html,body{color:#eee;background:#000;width:100%;height:100%;margin:0;font-family:Segoe UI,Arial,sans-serif;overflow:hidden}*{scrollbar-width:thin;scrollbar-color:#4a5c63 transparent}#page{box-sizing:border-box;flex-direction:column;height:100vh;padding:10px;display:flex}body select{appearance:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#eee;font:inherit;cursor:pointer;background-color:#1a1a1a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3 3.5-3' fill='none' stroke='%239fe6ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat;background-size:12px;border:1px solid #444;border-radius:6px;padding:6px 30px 6px 9px;line-height:1.3;transition:background-color .15s,border-color .15s,box-shadow .15s}body select:hover:not(:disabled){background-color:#222;border-color:#666}body select:focus-visible{border-color:#7fd0ff;outline:none;box-shadow:0 0 0 2px #7fd0ff33}body select:disabled{color:#777;cursor:not-allowed;opacity:.75;background-color:#151515;border-color:#333}body select option{color:#eee;background:#1a1a1a}#room-bar{color:#999;text-transform:none;letter-spacing:normal;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;font-size:12px;display:flex}#room-bar select{max-width:220px;padding-top:4px;padding-bottom:4px;font-size:12px}#ui-language-select{box-sizing:border-box;width:100%}#room-bar .room-note{color:#ffb86b}#room-bar .room-note a{color:inherit}#layout{flex:1;grid-template:"info info""leaders chat"minmax(0,1fr)/1fr 3fr;gap:10px;min-height:0;display:grid}#layout.video-open{grid-template-columns:1fr 3fr auto;grid-template-areas:"info info info""leaders chat video"}.card{background:#111;border:1px solid #222;border-radius:10px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}#chat-card{grid-area:chat;position:relative}#leaderboard-card{grid-area:leaders}#room-info-card{grid-area:info}#video-btn{color:#9fe6ff;background:#12303d;border-color:#2b7fa0}#video-btn:hover{background:#1a4558}#video-btn[aria-pressed=true]{color:#fff;background:#1f7fa8;border-color:#7fd0ff}#video-card{grid-area:video;width:clamp(240px,56.25vh - 129.375px,32vw)}#video-card[hidden]{display:none}#video-body{background:#000;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:0;display:flex;position:relative}#video-stage{aspect-ratio:9/16;width:100%;max-height:100%;position:relative}#video-player{object-fit:contain;background:#000;width:100%;height:100%}#video-fs-btn{z-index:6;color:#fff;cursor:pointer;opacity:0;background:#0000008c;border:1px solid #ffffff4d;border-radius:6px;width:32px;height:32px;font-size:18px;line-height:1;transition:opacity .15s;position:absolute;top:8px;right:8px}#video-fs-btn:before{content:"⛶"}#video-stage:hover #video-fs-btn,#video-fs-btn:focus-visible{opacity:1}#video-stage:fullscreen #video-fs-btn{opacity:1}#video-stage:fullscreen{aspect-ratio:auto;background:#000;justify-content:center;align-items:center;width:100vw;height:100vh;max-height:none;display:flex}#video-stage:fullscreen #video-player{aspect-ratio:9/16;width:auto;max-width:100%;height:100%}#video-stage:fullscreen #gift-player{aspect-ratio:9/16;height:100%;inset:auto}#video-stage:fullscreen #gift-player-canvas{width:100%;height:100%}#video-stage #gift-player-canvas{object-fit:contain;width:100%;height:100%}#video-status{color:#ffb86b;margin:0;padding:6px 10px;font-size:12px}#video-status:empty{display:none}.video-head-actions{gap:6px;display:flex}#video-download{z-index:7;box-sizing:border-box;color:#bbb;background:#0a0a0af2;border-bottom:1px solid #333;flex-direction:column;gap:8px;max-height:100%;padding:10px;font-size:12px;display:flex;position:absolute;top:0;left:0;right:0;overflow-y:auto}#video-download[hidden]{display:none}#video-download p{margin:0;line-height:1.4}#video-download textarea{box-sizing:border-box;resize:vertical;color:#ddd;background:#0b0b0b;border:1px solid #222;border-radius:4px;width:100%;margin:0;font:11px/1.4 ui-monospace,Menlo,Consolas,monospace}.video-clip-grid{grid-template-columns:auto 1fr;align-items:center;gap:6px 10px;display:grid}#video-download{counter-reset:step}.video-step:before{counter-increment:step;content:counter(step) ". ";color:#fff;font-weight:700}#video-download a{color:#7fd0ff}#video-download strong{color:#fff}#video-download code{color:#ddd;background:#0b0b0b;border-radius:3px;padding:1px 4px;font:11px ui-monospace,Menlo,Consolas,monospace}.video-os{align-items:center;gap:6px;display:flex}.video-os span{margin-right:2px}.video-os .toggle-btn[aria-pressed=true]{color:#7fd0ff;border-color:#7fd0ff}.video-capcut{align-items:flex-start;gap:6px;line-height:1.4;display:flex}.video-clip-time{color:#fff;font:13px ui-monospace,Menlo,Consolas,monospace}.video-download-row{flex-wrap:wrap;gap:6px;display:flex}.card h2{text-transform:uppercase;letter-spacing:.05em;color:#999;background:#111;border-bottom:1px solid #222;justify-content:space-between;align-items:center;gap:8px;margin:0;padding:10px 14px;font-size:14px;display:flex}.lang-picker{text-transform:none;letter-spacing:normal;align-items:center;gap:6px;font-size:12px;display:flex}.lang-picker select{padding-top:4px;padding-bottom:4px;font-size:12px}.toggle-btn{color:#eee;text-transform:none;letter-spacing:normal;cursor:pointer;background:#1a1a1a;border:1px solid #444;border-radius:4px;flex:none;padding:3px 8px;font-size:12px}.toggle-btn:hover{background:#2a2a2a}.toggle-btn.off{color:#ff8a8a;background:#3a1a1a;border-color:#633}.feed{flex-direction:column;flex:1;gap:6px;min-height:0;padding:8px 12px;display:flex;overflow-y:auto}.timestamp{color:#666;margin-right:6px;font-size:11px}#gift-player{pointer-events:none;z-index:5;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}#gift-player-canvas{width:auto;height:60%;display:none}.chat-entry{font-size:calc(13px * var(--chat-scale,1));word-break:break-word;cursor:pointer;content-visibility:auto;contain-intrinsic-size:auto 44px;line-height:1.4}.chat-entry.chat-jump-flash{animation:1.6s ease-out chat-jump-flash}@keyframes chat-jump-flash{0%{background:#ffd24a73}to{background:0 0}}.chat-entry.chat-virtual{content-visibility:visible;flex:none}.chat-entry.chat-pending{content-visibility:visible;height:var(--chat-est,30px);overflow:hidden}.chat-entry.chat-gift{text-align:right;color:#ffd24a;font-size:calc(12px * var(--chat-scale,1))}.chat-entry.chat-gift.replayable{cursor:pointer}.chat-gift-icon{vertical-align:middle;width:16px;height:16px}#chat-feed.hide-gifts .chat-entry.chat-gift{display:none}.chat-line.original{--ts-width:calc(52px * var(--chat-scale,1));--ts-indent:calc(var(--ts-width) + 6px);padding-left:var(--ts-indent);text-indent:calc(-1 * var(--ts-indent))}.chat-line.original .timestamp{width:var(--ts-width);font-variant-numeric:tabular-nums;text-indent:0;display:inline-block}#chat-feed .timestamp{font-size:calc(11px * var(--chat-scale,1))}.chat-line.quote{margin:2px 0 0 calc(58px * var(--chat-scale,1));color:#aab2bd;text-overflow:ellipsis;white-space:nowrap;background:#ffffff0d;border-left:3px solid #6b7280;border-radius:0 6px 6px 0;padding:2px 8px;font-size:.9em;overflow:hidden}.chat-line.quote[hidden]{display:none}.chat-line.quote .quote-icon{opacity:.8;margin-right:4px}.chat-line.quote .quote-who{font-weight:600}#chat-feed.hide-quotes .chat-line.quote{display:none}.chat-line.translation.quote-translation{margin:2px 0 0 58px;font-size:.9em}.chat-line.translation{color:#9fe6ff;background:#123a4a;border-radius:6px;margin-bottom:4px;padding:4px 8px;font-style:italic}#chat-feed.oldest-first .chat-entry:has(>.chat-line.quote,>.chat-line.translation){flex-direction:column-reverse;display:flex}#chat-feed.oldest-first .chat-line.translation{margin-top:4px;margin-bottom:0}#chat-feed.oldest-first .chat-line.translation.quote-translation,#chat-feed.oldest-first .chat-line.quote{margin-top:0;margin-bottom:2px}.chat-entry .nickname{color:#7fd0ff;cursor:pointer;font-weight:600}.chat-debug-dialog{box-sizing:border-box;color:#eee;background:#111;border:1px solid #444;border-radius:10px;width:min(800px,100vw - 32px);max-height:min(80vh,800px);padding:16px}.chat-debug-dialog::backdrop{background:#000000b8}.chat-debug-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.chat-debug-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.chat-debug-header h2{color:#eee;margin:0;font-size:16px}#chat-debug-content{color:#cde4f5;white-space:pre;background:#080808;border:1px solid #292929;border-radius:6px;flex:1;min-height:0;margin:0;padding:12px;font:12px/1.5 Consolas,Courier New,monospace;overflow:auto}.avatar{object-fit:cover;vertical-align:middle;background:#222;border-radius:50%;width:1.6em;height:1.6em;margin-right:6px}.avatar.missing{display:none}.chat-entry.starred-user{background:#ffd54f1f;border-radius:6px;margin:-2px -6px;padding:2px 6px;box-shadow:inset 3px 0 #ffd54f}.chat-entry.has-highlight{background:color-mix(in srgb, var(--chat-highlight) 22%, transparent);box-shadow:inset 3px 0 0 var(--chat-highlight);border-radius:6px;margin:-2px -6px;padding:2px 6px}.keyword-wrap{text-transform:none;letter-spacing:normal;position:relative}.keyword-wrap.active .toggle-btn{color:#ffd54f;border-color:#ffd54f}.header-actions{align-items:center;gap:6px;display:flex}#chat-search{box-sizing:border-box;color:#eee;width:150px;min-width:0;font:inherit;text-transform:none;letter-spacing:normal;background:#1a1a1a;border:1px solid #444;border-radius:4px;padding:4px 7px;font-size:12px}#chat-search:focus{border-color:#7fd0ff;outline:1px solid #7fd0ff}#chat-feed .chat-entry.search-hidden,#chat-feed .chat-entry.starred-hidden,#chat-feed.hide-hashtags .chat-entry.hashtag-only{display:none}#chat-feed .chat-entry.deleted .original{opacity:.45;text-decoration:line-through}#chat-feed .chat-entry.deleted .original:after{content:" 🗑";text-decoration:none;display:inline-block}#opt-my-username{box-sizing:border-box;color:#eee;width:100%;font:inherit;background:#111;border:1px solid #444;border-radius:4px;padding:4px 6px}.mention{color:#6cb6ff;background:#6cb6ff26;border-radius:3px;padding:0 3px;font-weight:600}.chat-entry.from-me,.chat-entry.mentions-me{border-left:3px solid var(--me-highlight,#4cd964);background:color-mix(in srgb, var(--me-highlight,#4cd964) 12%, transparent)}#chat-feed .chat-entry.keyword-match{background:#ffd54f61;border-left:none;border-radius:6px;margin:-2px -6px;padding:2px 6px;box-shadow:inset 4px 0 #ffd54f}.chat-entry.mentions-me .mention{color:#ffb020;background:#ffb02040}.keyword-help{color:#ccc;margin:0}#keyword-input{box-sizing:border-box;color:#eee;width:100%;height:160px;font:inherit;resize:vertical;background:#111;border:1px solid #444;border-radius:4px;margin-top:8px;padding:4px 6px}.chat-entry.has-text-color,.chat-entry.has-text-color .nickname{color:var(--chat-text-color)}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=768px){#chat-card h2{flex-wrap:wrap}#chat-card .chat-search{flex:100%;order:1}#chat-search{width:100%}}.options-dialog{box-sizing:border-box;color:#eee;background:#111;border:1px solid #444;border-radius:10px;width:min(380px,100vw - 32px);padding:16px;font-size:13px}.options-dialog::backdrop{background:#000000b8}.options-dialog-header{margin-bottom:12px;position:relative}.options-dialog-header h2{margin:0;font-size:15px}#chat-feed.has-me-text .chat-entry.from-me,#chat-feed.has-me-text .chat-entry.mentions-me,#chat-feed.has-me-text .chat-entry.from-me .nickname,#chat-feed.has-me-text .chat-entry.mentions-me .nickname{color:var(--me-text)}.opt-section{border-top:1px solid #2a2a2a;margin-top:14px;padding-top:12px}.opt-section:first-of-type{border-top:none;margin-top:0;padding-top:0}.opt-section h3{color:#9fe6ff;text-transform:uppercase;letter-spacing:.04em;margin:0 0 8px;font-size:12px;font-weight:600}.opt-row{justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:6px;display:flex}.opt-field,.opt-check{cursor:pointer;gap:6px;display:flex}.opt-field{cursor:default;flex-direction:column}.opt-check{align-items:flex-start;margin-top:8px}.opt-hint{color:#888;font-size:11px}#opt-me-colors{flex-wrap:wrap;gap:16px;margin-top:10px;display:flex}#opt-me-colors[hidden]{display:none}.opt-inline input[type=number]{color:#fff;background:#1a1a1a;border:1px solid #555;border-radius:4px;width:80px;margin-left:6px;padding:2px 4px}.opt-row{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.opt-row .opt-inline{color:#aaa;align-items:center;font-size:12px;display:flex}.help-wrap{position:relative}.help-btn{color:#aaa;cursor:pointer;background:#1a1a1a;border:1px solid #555;border-radius:50%;width:20px;height:20px;padding:0;font-size:12px;line-height:18px}.help-btn:hover,.help-btn[aria-expanded=true]{color:#fff;border-color:#7fd0ff}.help-panel{z-index:10;color:#ddd;text-transform:none;letter-spacing:normal;white-space:normal;background:#262626;border:1px solid #444;border-radius:6px;width:220px;padding:8px 10px;font-size:12px;line-height:1.4;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.help-panel[hidden]{display:none}.toggle-btn.active{background:#ffd54f33;border-color:#ffd54f}.toggle-btn.recording{background:#e5484d33;border-color:#e5484d}.star-filter-btn.active{background:#ffd54f33;border-color:#ffd54f}.star-filter-btn:not(.active){filter:grayscale();opacity:.7}.color-picker-title{color:#9fe6ff;margin-bottom:6px;font-size:12px;font-weight:600}.color-picker-swatches{grid-template-columns:repeat(6,24px);gap:6px;display:grid}.color-picker-swatch{cursor:pointer;border:2px solid #0000;border-radius:50%;width:24px;height:24px;padding:0}.color-picker-swatch:hover{border-color:#fff}.color-picker-swatch.selected{box-shadow:0 0 0 2px #1a1a1a,0 0 0 4px #fff}.color-picker-clear{color:#999;text-align:left;cursor:pointer;background:0 0;border:none;border-top:1px solid #333;width:100%;margin-top:8px;padding:7px 0 0;font-size:12px;display:block}.color-picker-clear:hover{color:#eee}.color-picker-clear[hidden]{display:none}.chat-entry .username{color:#666;font-size:12px}.chat-entry .emote{vertical-align:middle;width:auto;height:1.2em;margin:0 1px}.load-more-btn{color:#9fe6ff;cursor:pointer;background:#111;border:none;border-top:1px solid #222;flex:none;margin:0;padding:9px 12px;font-size:13px;display:none}.load-more-btn.visible{display:block}.load-more-btn[hidden]{display:none}.load-more-btn:hover:not(:disabled){background:#1a1a1a}.load-more-btn:disabled{color:#666;cursor:default}.to-top-btn{z-index:10;color:#eee;cursor:pointer;background:#1a1a1acc;border:1px solid #444;border-radius:50%;width:34px;height:34px;font-size:16px;line-height:1;display:none;position:absolute;top:52px;left:50%;transform:translate(-50%);box-shadow:0 2px 6px #00000080}.to-top-btn.visible{display:block}.to-top-btn:hover{background:#2a2a2acc}.card.oldest-first>h2{order:-2}.card.oldest-first>.load-more-btn{border-top:none;border-bottom:1px solid #222;order:-1}.card.oldest-first>.to-top-btn{top:auto;bottom:12px}.feed.oldest-first{overflow-anchor:none;flex-direction:column-reverse}.to-top-btn.has-new{color:#9fe6ff;border-color:#7fd0ff;border-radius:17px;width:auto;padding:0 12px;font-size:13px}.leader-entry{background:#1a1a1a;border-radius:6px;font-size:13px}.leader-entry>summary{cursor:pointer;align-items:center;gap:10px;padding:8px 10px;list-style:none;display:flex}.leader-entry>summary::-webkit-details-marker{display:none}.leader-entry>summary:after{content:"▾";color:#999;flex:none;transform:rotate(-90deg)}.leader-entry[open]>summary:after{transform:none}.leader-gifts{margin:0;padding:0 10px 8px 44px;list-style:none}.leader-gift{align-items:center;gap:8px;padding:3px 0;display:flex}.leader-gift .icon{object-fit:contain;flex:none;width:22px;height:22px}.leader-gift .gift-name{color:#ff7fb0;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.leader-gift .gift-qty{color:#ccc;flex:none}.leader-gift .gift-coins{color:#7fd0ff;flex:none;font-size:12px}.leader-entry .rank{text-align:right;color:#666;flex:none;width:24px;font-weight:700}.leader-entry:first-child .rank{color:#ffd54f}.leader-entry:nth-child(2) .rank{color:#c0c8d0}.leader-entry:nth-child(3) .rank{color:#d08a4f}.leader-entry .avatar{flex:none;width:24px;height:24px;margin:0}.leader-entry .leader-name{color:#ffd54f;text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;margin-right:auto;font-weight:600;overflow:hidden}.leader-entry .leader-coins{color:#7fd0ff;flex:none;font-weight:700}.leader-empty{color:#666;padding:8px 2px;font-size:13px}#room-info-card .feed{flex-direction:column;align-items:stretch;gap:10px;padding:10px 12px}.stat-tiles{flex-flow:wrap;gap:10px;display:flex}.stat-tile.has-cover{padding-right:68px}.room-cover{object-fit:cover;background:#222;border-radius:8px;width:52px;height:52px;position:absolute;top:8px;right:8px}.room-cover[hidden]{display:none}.stat-tile{background:#1a1a1a;border-radius:8px;flex-direction:column;flex:1;gap:2px;min-width:120px;padding:8px 12px;display:flex;position:relative}.stat-tile .stat-label{text-transform:uppercase;letter-spacing:.05em;color:#999;font-size:11px}.stat-tile .stat-value{color:#7fd0ff;font-size:20px;font-weight:700}.stat-tile button.stat-value{font:inherit;text-align:left;background:0 0;border:0;align-self:flex-start;padding:0;font-size:20px;font-weight:700}.stat-tile button.stat-value:not(:disabled){cursor:pointer;text-underline-offset:3px;text-decoration:underline}.stat-tile button.stat-value:not(:disabled):hover{color:#b5e4ff}.stat-tile button.stat-value:focus-visible{outline-offset:2px;outline:2px solid #7fd0ff}.stat-tile button.stat-value:disabled{color:#7fd0ff;opacity:1}.stat-value.status-value-inline{align-items:center;gap:8px;display:flex}.status-rows{flex-direction:column;gap:4px;display:flex}.status-row{align-items:center;gap:8px;display:flex}.status-text{color:#ccc;font-size:13px;font-weight:600}.status-dot{background:#666;border-radius:50%;flex:none;width:14px;height:14px;display:inline-block}.status-dot.status-connected{background:#8bc34a}.status-dot.status-pending{background:#ffc107}.status-dot.status-disconnected{background:#ff6b6b}.stat-tile .stat-sub{color:#999;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.stat-tile.gift-coins .stat-value{color:#ffd54f}#room-details-list th{color:#999;text-align:left;white-space:nowrap;width:40%;font-weight:600}#room-details-list td{overflow-wrap:anywhere}#room-details-list .time-toggle{color:#7fd0ff;font:inherit;cursor:pointer;text-underline-offset:3px;background:0 0;border:0;padding:0;text-decoration:underline}.joined-viewers-dialog{box-sizing:border-box;color:#eee;background:#111;border:1px solid #444;border-radius:10px;width:min(700px,100vw - 32px);max-height:min(80vh,700px);padding:16px}.joined-viewers-dialog::backdrop{background:#000000b8}.joined-viewers-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.joined-viewers-header h2{color:#eee;margin:0;font-size:16px}.joined-viewers-header p{color:#999;margin:6px 0 0;font-size:12px}.joined-viewers-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.joined-viewers-table-wrap{flex:1;min-height:0;overflow-y:auto}.joined-viewers-table th:first-child{width:100%}.joined-viewers-table th:not(:first-child),.joined-viewers-table td:not(:first-child){white-space:nowrap}.joined-viewer{align-items:center;gap:10px;min-width:0;display:flex}.joined-viewer .avatar{flex:none;width:32px;height:32px;margin:0}.joined-viewer .avatar.missing{visibility:hidden;display:block}.joined-viewer .missing-avatar{display:block}.joined-viewer-text{min-width:0}.joined-viewer-name{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.joined-viewers-table{border-collapse:collapse;text-align:left;width:100%;font-size:13px}.joined-viewers-table th,.joined-viewers-table td{border-bottom:1px solid #292929;padding:8px}.joined-viewers-table th{color:#999;text-transform:uppercase;background:#111;font-size:11px;position:sticky;top:0}.joined-viewers-username{color:#888;text-overflow:ellipsis;white-space:nowrap;font-size:11px;display:block;overflow:hidden}.joined-viewers-dialog .load-more-btn{border:1px solid #333;width:100%;margin-top:8px;display:block}.joined-viewers-dialog .load-more-btn[hidden]{display:none}img.avatar[src^="/api/avatar/"]{cursor:pointer}.profile-card{box-sizing:border-box;color:#eee;background:#111;border:1px solid #444;border-radius:10px;width:min(360px,100vw - 32px);max-height:calc(100dvh - 32px);padding:18px;position:fixed;overflow-y:auto}.profile-card::backdrop{background:#000000b8}.profile-card-close{color:#ccc;cursor:pointer;background:0 0;border:none;width:28px;height:28px;padding:0;font-size:22px;line-height:28px;position:absolute;top:6px;right:8px}.profile-card-close:hover{color:#fff}.profile-header{align-items:center;gap:14px;margin-right:20px;display:flex}.profile-avatar{object-fit:cover;background:#222;border-radius:50%;flex:none;width:72px;height:72px}.profile-avatar.missing{visibility:hidden}.profile-names{min-width:0}.profile-name{overflow-wrap:anywhere;font-size:17px;font-weight:600}.profile-handle{color:#9fe6ff;overflow-wrap:anywhere;margin-top:2px;font-size:13px;text-decoration:none;display:block}.profile-handle:hover{text-decoration:underline}.profile-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px;display:grid}.profile-stat{background:#1a1a1a;border-radius:6px;flex-direction:column;align-items:center;padding:8px 4px;display:flex}.profile-stat-value{font-size:15px;font-weight:600}.profile-stat-label{color:#ccc;text-transform:uppercase;margin-top:2px;font-size:11px}.profile-times{color:#ccc;margin-top:14px;font-size:12px;line-height:1.6}.profile-times a{color:#9fe6ff}.profile-message{color:#ccc;margin:12px 20px 12px 0}.profile-actions{gap:6px;margin-bottom:12px;display:flex}.profile-icon-btn{color:#eee;cursor:pointer;background:#222;border:1px solid #444;border-radius:4px;width:28px;height:28px;padding:0;font-size:15px;line-height:1}.profile-icon-btn:hover{background:#2e2e2e}.profile-icon-btn.active{background:#1b3a45;border-color:#9fe6ff}[data-star-key].starred:before{content:"⭐";margin-right:3px;font-size:.85em}.profile-trigger{cursor:pointer}.profile-settings{border-top:1px solid #333;margin-top:14px;padding-top:10px}.profile-settings>summary{cursor:pointer;color:#9fe6ff;font-size:13px;font-weight:600}.profile-settings-body{flex-direction:column;align-items:flex-start;gap:10px;margin-top:10px;display:flex}.viewer-chart-wrap{box-sizing:border-box;background:#1a1a1a;border-radius:8px;height:140px;padding:8px 10px;display:flex;position:relative}.chart-load-earlier-btn{color:#9fe6ff;cursor:pointer;z-index:2;background:#282828cc;border:none;border-radius:4px;height:24px;padding:0 8px;font-size:12px;position:absolute;top:4px;right:32px}.chart-load-earlier-btn[hidden]{display:none}.chart-load-earlier-btn:disabled{color:#666;cursor:default}.chart-resize{cursor:ns-resize;touch-action:none;height:14px;position:absolute;bottom:0;left:0;right:0}.chart-resize:after{content:"";background:#ffffff4d;border-radius:2px;width:36px;height:4px;margin-left:-18px;position:absolute;bottom:3px;left:50%}.chart-resize:hover:after,.chart-resize.dragging:after{background:#fff9}.chart-toolbar{flex-direction:column;gap:4px;margin-left:6px;display:flex}.chart-tool{cursor:pointer;opacity:.45;background:#3c3c3ce6;border:none;border-radius:4px;width:26px;height:26px;padding:0;font-size:13px;line-height:1}.chart-tool[hidden]{display:none}.chart-tool[aria-pressed=true]{opacity:1;background:#3b5b8c}#viewer-chart{touch-action:pan-y;flex:1;min-width:0;height:100%;display:block}.bookmark-dialog{box-sizing:border-box;color:#eee;background:#111;border:1px solid #444;border-radius:10px;width:min(360px,100vw - 32px);padding:18px}.bookmark-dialog::backdrop{background:#000000b8}.bookmark-dialog-header{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.bookmark-dialog h2{margin:0;font-size:17px}.bookmark-dialog label,.bookmark-dialog input{box-sizing:border-box;width:100%;display:block}.bookmark-dialog label{color:#bbb;margin-bottom:5px;font-size:13px}.bookmark-dialog input{color:#eee;background:#1a1a1a;border:1px solid #555;border-radius:5px;padding:8px}.bookmark-dialog-status{color:#ff9b7c;min-height:18px;margin:8px 0 0;font-size:12px}.bookmark-dialog-actions{grid-template-columns:auto 1fr auto auto;gap:8px;margin-top:12px;display:grid}.bookmark-dialog-actions button{color:#eee;cursor:pointer;background:#333;border:1px solid #555;border-radius:5px;padding:7px 10px}.bookmark-dialog-actions .bookmark-delete-btn{color:#ffb0a0}.btn-confirm,.bookmark-dialog-actions button.btn-confirm{color:#eafff0;cursor:pointer;background:#1f7a3d;border:1px solid #2fa458;border-radius:5px}.btn-confirm:hover:not(:disabled){background:#27934a}.btn-danger,.bookmark-dialog-actions button.btn-danger{color:#fff0ee;cursor:pointer;background:#8f2a2a;border:1px solid #c04545;border-radius:5px}.btn-danger:hover:not(:disabled){background:#a93434}.btn-confirm:disabled{opacity:.5;cursor:default}#bookmark-dialog-close{color:#ff8b8b}#admin-login-form>div:last-child{gap:8px;margin-top:12px;display:flex}#admin-login-form>div:last-child button{padding:7px 10px}.rooms-dialog{width:min(760px,100vw - 32px);max-height:min(85vh,760px);overflow:hidden}.rooms-dialog[open]{display:flex}.rooms-dialog>form{flex-direction:column;width:100%;min-height:0;display:flex}.rooms-dialog>form>p:first-of-type{color:#bbb;font-size:13px}.rooms-timezone{align-items:center;gap:8px;display:flex}.rooms-timezone select{color:#eee;background:#1a1a1a;border:1px solid #555;border-radius:5px;flex:1;min-width:0;padding:6px}.rooms-table-wrap{border:1px solid #333;border-radius:6px;flex:auto;min-height:0;overflow:auto}.rooms-table{border-collapse:collapse;width:100%}.rooms-table th{z-index:1;color:#bbb;text-align:left;background:#1a1a1a;border-bottom:1px solid #444;padding:8px;font-size:12px;font-weight:600;position:sticky;top:0}.rooms-table td{border-bottom:1px solid #222;padding:4px 8px}.rooms-table td:nth-child(2),.rooms-table td:nth-child(3){width:130px}.rooms-table td:last-child{white-space:nowrap;width:1%}.monitored-room-editable{cursor:text}.monitored-room-editable:hover,.monitored-room-editable:focus-visible{background:#1a1a1a;outline:1px dashed #555}.monitored-room-delete,.monitored-room-icon-btn{align-items:center;padding:6px 8px;display:inline-flex}.monitored-room-actions button+button{margin-left:6px}.monitored-room-start{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.monitored-room-start::-webkit-calendar-picker-indicator{cursor:pointer;filter:invert()}.monitored-room-capture{text-align:center}.capture-archived{color:#2e9e5b;font-weight:700}.capture-live{color:#e5484d}.capture-none{opacity:.5}.sort-btn{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.sort-indicator{margin-left:4px;font-size:10px}.rooms-table input,.rooms-dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.rooms-table input{margin:0}.monitored-room-remove{padding:8px}.room-divider{text-align:center;color:#777;text-transform:uppercase;letter-spacing:.08em;border-top:1px dashed #333;border-bottom:1px dashed #333;margin:6px 0;padding:8px 4px;font-size:11px}.chat-entry.chat-system{color:#9aa;font-style:italic}.chat-entry.chat-system-stream_started,.chat-entry.chat-system-publisher_connected{color:#7fbf8f}.chat-entry.chat-system-stream_ended,.chat-entry.chat-system-publisher_disconnected{color:#d9a066}@media (pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}}@media (width<=768px){html,body{height:auto;min-height:100%;overflow-y:auto}#page{height:auto;min-height:100vh}#layout{flex:none;grid-template:"info""leaders""chat""gifts"/1fr;height:auto}#layout.video-open{grid-template:"info""video""leaders""chat""gifts"/1fr}#video-card{width:auto;height:70vh}#room-info-card>h2{flex-wrap:wrap;row-gap:8px}#room-info-card>h2>span:first-child{white-space:nowrap}#room-bar{flex-wrap:wrap;flex:100%;justify-content:stretch}#room-bar .room-note:empty{display:none}#room-bar .room-note{flex:100%}#room-bar label{display:none}#room-bar select{flex:1 1 0;min-width:0;max-width:none}#room-bar .keyword-wrap{flex:none}#leaderboard-card{height:40vh}#chat-card{height:60vh}.card.collapsible>h2{cursor:pointer}.card.collapsible>h2:after{content:"▾";color:#999;flex:none;transition:transform .15s}.card.collapsible.collapsed,#leaderboard-card.collapsed,#chat-card.collapsed{height:auto}.card.collapsible.collapsed>h2{border-bottom:none}.card.collapsible.collapsed>h2:after{transform:rotate(-90deg)}.card.collapsible.collapsed>:not(h2):not(#gift-player){display:none}#gift-player{z-index:20;position:fixed;inset:0}#gift-player-canvas{width:90%;height:auto;max-height:80%}}
