/* Shared surfaces: the selected theme controls forums, profiles, forms and directories. */
html{--surface:#fff;--surface-alt:#edf3fa;--surface-head:#dce8f6;--surface-ink:#142440;--surface-muted:#526681;--surface-line:#c5d4e7;--surface-link:#174fa3;color-scheme:light}
html[data-theme=dark]{--surface:#13233a;--surface-alt:#192d47;--surface-head:#203957;--surface-ink:#edf5ff;--surface-muted:#b9cbe1;--surface-line:#476080;--surface-link:#8ce9f4;color-scheme:dark}
html[data-theme=army]{--surface:#303d29;--surface-alt:#24301e;--surface-head:#465337;--surface-ink:#fff3cd;--surface-muted:#d2d5b7;--surface-line:#8b9b6a;--surface-link:#fff1a0;color-scheme:dark}
html[data-theme=blue-blaster]{--surface:#123961;--surface-alt:#09294a;--surface-head:#1e507c;--surface-ink:#f0fbff;--surface-muted:#bfdef5;--surface-line:#4a96c8;--surface-link:#8df4ff;color-scheme:dark}
html[data-theme=alien-explorer]{--surface:#253132;--surface-alt:#182426;--surface-head:#3c4630;--surface-ink:#fff1cc;--surface-muted:#d3d9bd;--surface-line:#9b9464;--surface-link:#ffcc74;color-scheme:dark}
html[data-theme=handheld]{--surface:#f4edf8;--surface-alt:#e1d5e9;--surface-head:#d1bfdc;--surface-ink:#32263f;--surface-muted:#62506e;--surface-line:#a18bab;--surface-link:#703052}
html[data-theme=lcd-handheld]{--surface:#e2e8ca;--surface-alt:#ccd8b6;--surface-head:#b9c69e;--surface-ink:#233526;--surface-muted:#435644;--surface-line:#788b66;--surface-link:#274c31}
html[data-theme=doodle]{--surface:#fff8e5;--surface-alt:#ffebcf;--surface-head:#ffe0b1;--surface-ink:#54252b;--surface-muted:#79454a;--surface-line:#cc9c83;--surface-link:#a0223b}
html{--card:var(--surface);--foreground:var(--surface-ink);--card-foreground:var(--surface-ink);--border:var(--surface-line)}
html body{color:var(--surface-ink)}
html :is(.forum-marquee,.forum-rules,.forum-post,.forum-topic-heading,#forum-status,#forum-form,.reference-card,.guide-panel,.player-card,.arcade-panel,.arcade-saved-card,.arcade-banner,.profile-panel,.profile-section,.profile-feed,.feed-post,.feed-composer,.comment-card,.comment-form,.game-comment,.game-comments,.community-tile){background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;box-shadow:none}
html .forum-table td{background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}html .forum-table tr:nth-child(even) td{background:var(--surface-alt)!important}html :is(.forum-table th,.forum-author){background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html :is(.forum-marquee,.forum-rules,.forum-post,.forum-topic-heading,#forum-status,#forum-form,.reference-card,.guide-panel,.player-card,.arcade-panel) :is(h1,h2,h3,p,label,summary){color:var(--surface-ink)!important;text-shadow:none}
html :is(.forum-table small,.forum-author small,.forum-footer,.forum-marquee>span){color:var(--surface-muted)!important}
html main a:not(.genre-chip):not(.play-link):not(.tiktok-follow){color:var(--surface-link)}
html :is(.forum-board-nav a,.forum-toolbar button,.forum-pagination button,.forum-small,#forum-form button){background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html .forum-board-nav a[aria-current]{background:var(--surface-head)!important;box-shadow:inset 0 -3px var(--surface-link)}
html :is(#forum-form,.player-card,.arcade-panel,.reference-card,.report-dialog) :is(input,textarea,select){background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
.site-theme-label{display:flex;align-items:center;gap:8px;font:12px Arial;color:inherit}.site-theme-label select{max-width:170px;border:1px solid #627796;border-radius:8px;padding:8px;background:#182b47;color:#edf5ff;font:12px Arial}.arcade-mascot{width:105px;height:105px;object-fit:contain;flex:0 0 auto}.mvp-notice .arcade-mascot{align-self:center}@media(max-width:600px){.mvp-notice .arcade-mascot{width:80px;height:80px;align-self:flex-start}}
html :is(.player-game,.feed-game,.feed-reply,#feed-compose,.arcade-game-link,#community-dialog,#feedback-dialog,.chat-header,.messages,.quick-vibes,.room-switch,.chat-foot,.composer){background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html :is(.feed-meta,.feed-guidance,.feed-empty,.feed-reply small,.player-comments small,#player-status,.community-kicker){color:var(--surface-muted)!important}
html :is(#community-dialog,#feedback-dialog) :is(h2,h3,p,button),html .feed-avatar{color:var(--surface-ink)!important}html .feed-avatar{background:var(--surface-head)!important}
html :is(.game-comments,#feed-compose,.feed-post,#feedback-dialog) :is(input,textarea,select){background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] body{background-color:var(--surface-alt)!important;color:var(--surface-ink)}html .forum-table-wrap{border-color:var(--surface-line)}html :is(.player-card,.feed-post,.game-comments) button{background:var(--surface-head);color:var(--surface-ink);border-color:var(--surface-line)}
/* Sidebar news follows the same theme palette as forum and profile surfaces. */
html[data-theme] .lobby-events{background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] .lobby-events h3,html[data-theme] .lobby-event strong{color:var(--surface-ink)!important}
html[data-theme] .lobby-event{background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] .lobby-event:hover{background:var(--surface-head)!important;border-color:var(--surface-link)!important}
html[data-theme] .lobby-event:focus-visible{outline:3px solid var(--surface-link);outline-offset:3px}
html[data-theme] .lobby-event p{color:var(--surface-muted)!important}
html[data-theme] .lobby-event>span,html[data-theme] .lobby-event b{color:var(--surface-link)!important}
/* Readable chat surfaces in every theme, including the fullscreen chat overlay. */
html[data-theme] #chat{background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;box-shadow:0 4px 16px #10233b12}
html[data-theme] #chat :is(.chat-header,.room-switch,#messages,.quick-vibes,.composer,.chat-foot,.name-form,.emoji-picker){background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] #chat>.window-bar{background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] #chat :is(.chat-header h2,.chat-header p,.chat-spark,.chat-empty strong,.chat-empty p,.chat-empty>span,.community-chat-note,.community-chat-note button,.message-meta strong,.message-meta time,.live-label,.emoji-picker-top,.chat-foot button){color:var(--surface-ink)!important;text-shadow:none;opacity:1}
html[data-theme] #chat .chat-header h2{font-size:22px;line-height:1.4}
html[data-theme] #chat :is(.chat-header p,.message-meta,.chat-foot){font-size:12px;line-height:1.6}
html[data-theme] #chat .message{background:transparent!important;color:var(--surface-ink)!important}
html[data-theme] #chat .message p{background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;font-size:15px;line-height:1.65}
html[data-theme] #chat .message.own p{background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] #chat .message p.emoji-message{background:transparent!important;border:0!important}
html[data-theme] #chat :is(.quick-vibes button,.room-switch button,.emoji-tabs button,.emoji-grid button,.message-avatar){background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] #chat :is(.room-switch button.selected,.emoji-tabs button[aria-pressed=true]){background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-link)!important}
html[data-theme] #chat .composer input,html[data-theme] #chat .name-form input{background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;font-size:15px}
html[data-theme] #chat .composer input::placeholder{color:var(--surface-muted)!important;opacity:1}
html[data-theme] #chat .composer button{background:var(--surface-ink)!important;color:var(--surface)!important}
html[data-theme] #chat button:focus-visible{outline:3px solid var(--surface-link);outline-offset:3px}
/* Admin analytics must remain readable regardless of the site's selected theme. */
html[data-theme] body:has(#admin-content) main{color:var(--surface-ink)!important}
html[data-theme] :is(.admin-panel,.metric,.visual-panel){background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;box-shadow:0 4px 18px #10233b0d}
html[data-theme] :is(.admin-panel,.metric,.visual-panel) :is(h1,h2,h3,strong,span,small,p,label,summary,li,td,th){color:var(--surface-ink)!important;opacity:1;text-shadow:none}
html[data-theme] body:has(#admin-content) :is(.collection-heading h1,.eyebrow,#admin-status,#spend-status,#records-status,.shop-note){color:var(--surface-ink)!important;text-shadow:none}
html[data-theme] .admin-panel :is(table,td,th){font-size:14px;line-height:1.65;border-color:var(--surface-line)!important;font-variant-numeric:tabular-nums}
html[data-theme] .admin-panel th{background:var(--surface-head)!important;font-weight:700}
html[data-theme] .admin-panel td{background:var(--surface)!important}
html[data-theme] .admin-panel tbody tr:nth-child(even) td{background:var(--surface-alt)!important}
html[data-theme] .admin-panel tbody tr:hover td{background:var(--surface-head)!important}
html[data-theme] .admin-panel :is(input,select,textarea){background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;color-scheme:inherit}
html[data-theme] .admin-panel input::placeholder{color:var(--surface-muted)!important;opacity:1}
html[data-theme] body:has(#admin-content) :is(button,.shop-note){background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] body:has(#admin-content) :is(input,select,textarea,button,a):focus-visible{outline:3px solid var(--surface-link);outline-offset:3px}
html[data-theme] .visual-panel svg text{fill:var(--surface-ink)!important;opacity:1}
html[data-theme] .visual-panel svg line{stroke:var(--surface-line)!important}
html[data-theme] .visual-panel details{border-color:var(--surface-line)!important;color:var(--surface-ink)!important}
html[data-theme] .visual-panel rect:focus{stroke:var(--surface-ink)!important}
html[data-theme] .metric:before{background:var(--surface-link)!important}
html[data-theme] .chart-column{color:var(--surface-ink)!important}
html[data-theme] body:has(#admin-content) .site-header{background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] body:has(#admin-content) .site-header :is(nav a,.site-theme-label){color:var(--surface-ink)!important;opacity:1;text-shadow:none}
html[data-theme] .mvp-notice{background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;margin-top:24px}
html[data-theme] .mvp-notice strong{font-size:15px;line-height:1.5;color:var(--surface-ink)!important}.mvp-notice>div{min-width:0;flex:1}.mvp-notice p{font-size:16px;line-height:1.75}.mvp-notice button{font:700 16px/1.5 Arial;min-height:48px;cursor:pointer}.mvp-notice button:focus-visible{outline:3px solid var(--surface-link);outline-offset:4px}
/* Direct-access visual theme chooser, outside the More menu. */
.site-header .theme-picker{position:relative;flex:0 0 auto;order:2;z-index:2600;margin-left:0;font-family:Arial,sans-serif}.theme-picker>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;white-space:nowrap;min-height:42px;padding:10px 13px;border:1px solid #7285a2;border-radius:999px;background:#142a48;color:#eff8ff;font:700 12px/1.5 Arial,sans-serif}.theme-picker>summary::-webkit-details-marker{display:none}.theme-picker>summary:after{content:'▾';font-size:10px}.theme-picker>summary:focus-visible,.theme-picker button:focus-visible{outline:3px solid #26c9e1;outline-offset:3px}.theme-options{position:absolute;right:0;top:calc(100% + 10px);width:330px;max-width:calc(100vw - 32px);padding:16px;border-radius:16px;border:1px solid var(--surface-line);background:var(--surface);color:var(--surface-ink);box-shadow:0 15px 45px #07152950}.theme-options>strong{display:block;font:700 15px/1.5 Arial;margin-bottom:12px;color:var(--surface-ink)!important}.theme-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.site-header .theme-option-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;padding:11px!important;min-height:78px;white-space:normal;font:700 12px/1.4 Arial!important;text-align:left;border:1px solid var(--surface-line)!important;border-radius:10px;background:var(--surface-alt)!important;color:var(--surface-ink)!important;cursor:pointer}.theme-option-grid button[aria-pressed=true]{outline:2px solid var(--surface-link);outline-offset:1px}.theme-swatches{display:flex;gap:4px}.theme-swatches i{display:block;width:21px;height:16px;border:1px solid #73839880;border-radius:4px}.header-theme-control{order:2}.theme-picker select[hidden]{display:none!important}@media(max-width:600px){.site-header .theme-picker{margin-left:auto}.theme-picker>summary{padding:9px 11px;font-size:11px}.theme-options{width:300px;max-height:70dvh;overflow:auto}.theme-option-grid button{min-height:72px}.site-header .identity{margin-left:0}}
/* All White: clean white site chrome, with original game artwork preserved. */
html[data-theme=all-white]{color-scheme:light;--surface:#fff;--surface-alt:#fff;--surface-head:#fff;--surface-ink:#202632;--surface-muted:#515a67;--surface-line:#cdd2d9;--surface-link:#173c77;--background:#fff;--foreground:#202632;--card:#fff;--card-foreground:#202632;--popover:#fff;--popover-foreground:#202632;--primary:#202632;--primary-foreground:#fff;--secondary:#fff;--secondary-foreground:#202632;--muted:#fff;--muted-foreground:#515a67;--accent:#fff;--accent-foreground:#202632;--border:#cdd2d9;--input:#cdd2d9;--ring:#173c77;background:#fff;color:#202632}
html[data-theme=all-white] :is(body,.portal){background:#fff!important;background-image:none!important;color:#202632!important}
html[data-theme=all-white] :is(.site-header,.ticker,.home-hero,.hero-copy,#weekly-feature,.discovery-shelf,.game-card,.discovery-card,.community-tile,.rating-panel,.rooms,.room-tip,.provider-filter,.game-details,.game-window,.window-bar,.capture-tools,.arcade-tiktok,.tiktok-feed,.forum-marquee,.forum-rules,.forum-topic-heading,.forum-post,.forum-author,.player-card,.player-game,.feed-post,.feed-reply,.feed-game,#feed-compose,.arcade-panel,.arcade-saved-card,.arcade-banner,.arcade-game-link,.reference-card,.guide-panel,.shop-note,.shop-card,.sticker-pack,.report-dialog,.site-more-menu,.theme-picker>summary,.theme-options,.theme-option-grid button,.lobby-events,.lobby-event,.rom-banner){background:#fff!important;color:#202632!important;border-color:#cdd2d9!important;box-shadow:none!important}
html[data-theme=all-white] :is(.site-header,.ticker,.home-hero,.hero-copy,#weekly-feature,.discovery-shelf,.game-card,.discovery-card,.rooms,.game-details,.arcade-tiktok,.forum-marquee,.player-card,.reference-card,.guide-panel,.rom-banner) :is(h1,h2,h3,p,small,strong,.hero-kicker,.hero-stats,.tiktok-kicker){color:#202632!important;text-shadow:none!important}
html[data-theme=all-white] .site-header :is(.header-links a,.header-links button,.forum-top-nav a,nav a,.brand-release,.site-more>summary,.theme-picker>summary,.identity button){color:#202632!important;text-shadow:none!important;background:#fff!important;border-color:#cdd2d9!important}
html[data-theme=all-white] :is(.hero-actions button,.hero-actions a,#weekly-feature button,.mvp-notice button,.load-more,.discovery-nav button,.genre-tabs button,.provider-filter select,.search input,.header-search input,.tiktok-follow,.play-link,.player-share,.player-card button){background:#fff!important;color:#202632!important;border:1px solid #9aa3af!important;box-shadow:none!important}
html[data-theme=all-white] .header-search input::placeholder{color:#515a67;opacity:1}
html[data-theme=all-white] :is(.hero-copy h1 span,.hero-stats strong,.chat-spark,.section-number,.tiktok-kicker){color:#202632!important}
html[data-theme=all-white] :is(.community-version,.version-tag,.category-badge){background:#fff!important;color:#202632!important;border:1px solid #9aa3af!important;box-shadow:none!important}
html[data-theme=all-white] :is(.handheld-shell,.handheld-bezel,.handheld-controls,.arcade-deck,.deck-label,.handheld-brand,.handheld-controls p){background:#fff!important;color:#202632!important;border-color:#cdd2d9!important;text-shadow:none!important;box-shadow:none!important}
html[data-theme=all-white] .genre-chip{background:#fff!important;color:#202632!important;border-color:#9aa3af!important}
html[data-theme=all-white] :is(.genre-tabs button[aria-pressed=true],.discovery-nav button.active){outline:2px solid #202632;outline-offset:1px}
html[data-theme=all-white] .site-header{border-bottom:1px solid #cdd2d9!important}
html[data-theme=all-white] :is(.arcade-tiktok a,.hero-copy a,.room-tip a){color:#173c77!important}
html[data-theme=all-white] :is(#profile-menu,#controller-dialog,#sticker-shop,#community-dialog,#feedback-dialog){background:#fff!important;color:#202632!important;border-color:#9aa3af!important}
html[data-theme=all-white] :is(#profile-menu,#controller-dialog,#sticker-shop) :is(a,p,h2,h3,label,small,button){color:#202632!important}
html[data-theme=all-white] :is(input,textarea,select){color-scheme:light}
.theme-options{max-height:min(70dvh,520px);overflow-y:auto;overscroll-behavior:contain}
/* Pink Arcade: soft pink surfaces with readable plum text. */
html[data-theme=pink]{color-scheme:light;--surface:#fff7fb;--surface-alt:#ffe9f4;--surface-head:#ffd3e8;--surface-ink:#4a1636;--surface-muted:#743b5f;--surface-line:#d995b8;--surface-link:#8a1956;--background:#fff0f7;--foreground:#4a1636;--card:#fff7fb;--card-foreground:#4a1636;--popover:#fff7fb;--popover-foreground:#4a1636;--primary:#9c2462;--primary-foreground:#fff;--secondary:#ffe0ef;--secondary-foreground:#4a1636;--muted:#ffe9f4;--muted-foreground:#743b5f;--accent:#ffc8e2;--accent-foreground:#4a1636;--border:#d995b8;--input:#d995b8;--ring:#8a1956;background:#fff0f7;color:#4a1636}
html[data-theme=pink] :is(body,.portal){background:#fff0f7!important;color:#4a1636;background-image:none!important}
html[data-theme=pink] .site-header{background:#ffe0ef!important;color:#4a1636!important;border-bottom:3px solid #c45b91!important;box-shadow:none}
html[data-theme=pink] .site-header :is(.header-links a,.header-links button,.forum-top-nav a,nav a,.brand-release,.site-more>summary,.identity button){color:#4a1636!important;text-shadow:none;background:transparent;border-color:#bd6892}
html[data-theme=pink] :is(.theme-picker>summary,.header-search input){background:#fff7fb!important;color:#4a1636!important;border-color:#bd6892!important}
html[data-theme=pink] .header-search input::placeholder{color:#743b5f;opacity:1}
html[data-theme=pink] .ticker{background:#ffd3e8;color:#4a1636;border-color:#d995b8}
html[data-theme=pink] :is(.home-hero,.hero-copy,#weekly-feature,.discovery-shelf,.game-card,.discovery-card,.community-tile,.rating-panel,.rooms,.provider-filter,.game-details,.arcade-tiktok,.report-dialog,.site-more-menu,.rom-banner){background:#fff7fb!important;color:#4a1636!important;border-color:#d995b8!important;box-shadow:none!important}
html[data-theme=pink] .home-hero{background:linear-gradient(120deg,#ffe1ef,#fff7fb)!important}
html[data-theme=pink] :is(.hero-copy,#weekly-feature,.discovery-shelf,.game-card,.discovery-card,.rooms,.game-details,.arcade-tiktok,.rom-banner) :is(h1,h2,h3,p,small,strong){color:#4a1636!important;text-shadow:none!important}
html[data-theme=pink] :is(.hero-copy h1 span,.hero-kicker,.hero-stats,.hero-stats strong,.section-number,.tiktok-kicker){color:#8a1956!important}
html[data-theme=pink] :is(.hero-actions button,.hero-actions a,#weekly-feature button,.mvp-notice button,.tiktok-follow,.play-link,.load-more){background:#9c2462!important;color:#fff!important;border-color:#9c2462!important;box-shadow:none!important}
html[data-theme=pink] :is(.genre-tabs button,.discovery-nav button,.provider-filter select,.search input){background:#ffe9f4!important;color:#4a1636!important;border-color:#bd6892!important}
html[data-theme=pink] :is(.community-version,.version-tag){background:#ffd3e8!important;color:#4a1636!important;border-color:#bd6892!important;box-shadow:none!important}
html[data-theme=pink] .room-tip{background:#ffe9f4!important;color:#4a1636!important;border-color:#d995b8!important}
html[data-theme=pink] .site-header .header-links .active{border-color:#8a1956}
html[data-theme=pink] :is(#profile-menu,#controller-dialog,#sticker-shop){background:#fff7fb!important;color:#4a1636!important;border-color:#d995b8!important}
html[data-theme=pink] :is(#profile-menu,#controller-dialog,#sticker-shop) :is(a,p,h2,h3,label,small,button){color:#4a1636!important}
/* Theme-aware browser chrome: include html itself as well as nested scrollers. */
html{--scroll-thumb:#677b96;--scroll-track:#edf3fa;--scroll-hover:#435d7c}
html[data-theme=light]{--scroll-thumb:#677b96;--scroll-track:#edf3fa;--scroll-hover:#435d7c}
html[data-theme=all-white]{--scroll-thumb:#737b86;--scroll-track:#fff;--scroll-hover:#424c59}
html[data-theme=dark]{--scroll-thumb:#6f9bbf;--scroll-track:#10233a;--scroll-hover:#a3c9e9}
html[data-theme=army]{--scroll-thumb:#aeb985;--scroll-track:#202b1c;--scroll-hover:#d3dcad}
html[data-theme=blue-blaster]{--scroll-thumb:#0877b8;--scroll-track:#e4f1fc;--scroll-hover:#045382}
html[data-theme=pink]{--scroll-thumb:#a52f6b;--scroll-track:#fff0f7;--scroll-hover:#781d4b}
html[data-theme=alien-explorer]{--scroll-thumb:#e2ac60;--scroll-track:#182426;--scroll-hover:#ffcf8c}
html[data-theme=handheld]{--scroll-thumb:#82628f;--scroll-track:#eee4f3;--scroll-hover:#5c3b69}
html[data-theme=lcd-handheld]{--scroll-thumb:#526644;--scroll-track:#dbe4c2;--scroll-hover:#35472a}
html[data-theme=doodle]{--scroll-thumb:#ae3447;--scroll-track:#fff0d8;--scroll-hover:#7e2030}
html[data-theme],html[data-theme] *{scrollbar-color:var(--scroll-thumb) var(--scroll-track)!important;scrollbar-width:thin}
html[data-theme]::-webkit-scrollbar,html[data-theme] ::-webkit-scrollbar{width:8px;height:8px;background:var(--scroll-track)!important}
html[data-theme]::-webkit-scrollbar-track,html[data-theme] ::-webkit-scrollbar-track{background:var(--scroll-track)!important;border-radius:8px}
html[data-theme]::-webkit-scrollbar-thumb,html[data-theme] ::-webkit-scrollbar-thumb{background:var(--scroll-thumb)!important;border:1px solid var(--scroll-track)!important;border-radius:8px}
html[data-theme]::-webkit-scrollbar-thumb:hover,html[data-theme] ::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)!important}
html[data-theme]::-webkit-scrollbar-corner,html[data-theme] ::-webkit-scrollbar-corner,html[data-theme]::-webkit-scrollbar-button,html[data-theme] ::-webkit-scrollbar-button{background:var(--scroll-track)!important;color:var(--scroll-thumb)!important}
@media(forced-colors:active){html[data-theme],html[data-theme] *{scrollbar-color:auto!important}}
/* Header controls keep a predictable order, including signed-in admin accounts. */
.site-header.responsive-search-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"brand nav theme account" "search search search search";align-items:center;gap:10px 20px;padding:12px clamp(18px,4vw,64px)!important}
.responsive-search-header>.brand{grid-area:brand}.responsive-search-header>.header-links{grid-area:nav;justify-content:flex-start;gap:18px;order:initial;flex-wrap:wrap}.responsive-search-header>.theme-picker,.responsive-search-header>.header-theme-control{grid-area:theme;order:initial;margin:0!important}.responsive-search-header>.identity{grid-area:account;margin:0!important;display:flex;align-items:center;gap:8px;min-width:0}.responsive-search-header>.header-search{grid-area:search;width:100%;min-width:0;max-width:none;order:initial;margin:0}.responsive-search-header .brand-logo{width:112px;height:72px}.responsive-search-header #account-button,.responsive-search-header #admin-shortcut{font:600 12px/1.4 Arial!important;padding:10px 12px!important;white-space:nowrap}.responsive-search-header .theme-picker>summary{font-size:12px;padding:10px 12px}.responsive-search-header .header-search input{font:14px/1.4 Arial!important;padding:11px 16px!important;min-height:42px}.responsive-search-header .header-links>a,.responsive-search-header .header-links>button,.responsive-search-header .site-more>summary{font:700 13px/1.4 Arial!important;padding:10px 0!important}
@media(max-width:1150px){.site-header.responsive-search-header{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand theme account" "nav nav nav" "search search search";gap:8px 14px}.responsive-search-header>.header-links{gap:20px}.responsive-search-header .brand-logo{width:98px;height:64px}}
@media(max-width:600px){.site-header.responsive-search-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand theme" "account account" "nav nav" "search search";padding:10px 14px!important}.responsive-search-header>.identity{justify-content:flex-end}.responsive-search-header>.header-links{overflow-x:auto;flex-wrap:nowrap!important;max-width:100%;gap:18px;padding-bottom:4px}.responsive-search-header>.header-links>*{flex-shrink:0}.responsive-search-header .site-more-menu{position:fixed;left:14px;right:14px;top:170px;max-width:none;min-width:0}.responsive-search-header .theme-options{right:0}.mvp-notice{padding:16px;gap:16px}.mvp-notice p{font-size:14px;line-height:1.6}.mvp-notice button{max-width:100%;white-space:normal}}
/* Initial HTML already uses the finished layout; no guest-control flash. */
.site-header .guest-tag,.site-header #edit-name{display:none!important}.profile-loading{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 12px;box-sizing:border-box;border:1px solid var(--surface-line,#49618a);border-radius:999px;color:inherit;font:600 12px/1.4 Arial;white-space:nowrap}.identity:has(#account-button)>.profile-loading{display:none}.theme-picker-loading>select{display:none!important}.site-header .theme-picker>summary{min-width:124px;box-sizing:border-box}
.site-header{animation:none!important;opacity:1!important;transform:none!important}
/* Compact header: one desktop row, with search kept beside navigation. */
.site-header.responsive-search-header{grid-template-columns:auto auto minmax(180px,1fr) auto auto;grid-template-areas:"brand nav search theme account";gap:12px;padding:8px clamp(14px,2.5vw,40px)!important;min-height:0!important}.responsive-search-header .brand-logo{width:88px;height:56px}.responsive-search-header .brand-release{font-size:9px!important;padding:4px 6px}.responsive-search-header>.header-links{gap:14px;flex-wrap:nowrap!important}.responsive-search-header .header-links>a,.responsive-search-header .header-links>button,.responsive-search-header .site-more>summary{font-size:12px!important;padding:8px 0!important;min-height:32px}.responsive-search-header .header-search input{min-height:36px!important;height:36px;padding:8px 12px!important;font-size:13px!important}.responsive-search-header #account-button,.responsive-search-header #admin-shortcut{font-size:11px!important;padding:8px 10px!important;min-height:34px;box-sizing:border-box}.responsive-search-header>.identity{gap:6px}.responsive-search-header .theme-picker>summary{min-width:112px;min-height:34px;padding:7px 10px;font-size:11px}.responsive-search-header .profile-loading{min-height:34px;padding:8px 10px;font-size:11px}.responsive-search-header .theme-current{white-space:nowrap}.ticker{min-height:30px;padding-block:6px!important;font-size:11px}
@media(max-width:1500px){.site-header.responsive-search-header{grid-template-columns:auto minmax(150px,1fr) auto auto;grid-template-areas:"brand search theme account" "nav nav nav nav";gap:4px 12px}.responsive-search-header>.header-links{justify-content:flex-start;gap:20px}.responsive-search-header .brand-logo{width:78px;height:48px}}
@media(max-width:700px){.site-header.responsive-search-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand theme account" "search search search" "nav nav nav";gap:5px 8px;padding:8px 10px!important}.responsive-search-header .brand-logo{width:62px;height:42px}.responsive-search-header>.brand{gap:4px}.responsive-search-header .brand-release{font-size:8px!important;padding:3px 4px}.responsive-search-header>.theme-picker{justify-self:end}.responsive-search-header .theme-picker>summary{min-width:0;max-width:112px;gap:5px;padding:7px 8px;font-size:10px;min-height:32px}.responsive-search-header .theme-current{display:block;max-width:75px;overflow:hidden;text-overflow:ellipsis}.responsive-search-header>.header-links{gap:16px;overflow-x:auto;padding:0;max-width:100%;scrollbar-width:none}.responsive-search-header>.header-links::-webkit-scrollbar{display:none}.responsive-search-header .header-links>a,.responsive-search-header .header-links>button,.responsive-search-header .site-more>summary{font-size:11px!important;padding:6px 0!important;min-height:30px}.responsive-search-header #account-button .profile-label{display:none}.responsive-search-header #account-button{width:32px;height:32px;min-height:32px;padding:6px!important;justify-content:center}.responsive-search-header #account-button svg{width:18px;height:18px}.responsive-search-header #admin-shortcut{font-size:0!important;display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;min-height:32px;padding:6px!important}.responsive-search-header #admin-shortcut:before{content:'⚙';font:16px Arial}.responsive-search-header #admin-shortcut[hidden]{display:none!important}.responsive-search-header .profile-loading{font-size:0;width:32px;height:32px;min-height:32px;padding:6px}.responsive-search-header .profile-loading:before{content:'◯';font:17px Arial}.responsive-search-header .site-more-menu{top:130px}.responsive-search-header .theme-options{position:fixed;top:54px;right:10px;max-width:calc(100vw - 20px)}.ticker{padding-inline:14px!important}.ticker>span:first-child{display:none}}
/* Slightly larger branding without restoring the oversized header. */
.responsive-search-header .brand-logo{width:104px;height:64px}@media(max-width:1500px){.responsive-search-header .brand-logo{width:92px;height:56px}}@media(max-width:700px){.responsive-search-header .brand-logo{width:70px;height:46px}}
/* Version belongs beneath the logo, not alongside it. */
.site-header .brand{flex-direction:column!important;justify-content:center;align-items:center;gap:1px!important}.site-header .brand-release{font:700 8px/1 Arial!important;letter-spacing:.2px;padding:2px 5px!important;min-height:0;align-self:center}.responsive-search-header .brand-logo{height:58px}@media(max-width:1500px){.responsive-search-header .brand-logo{height:48px}}@media(max-width:700px){.responsive-search-header .brand-logo{height:40px}.site-header .brand-release{font-size:7px!important;padding:2px 4px!important}}
/* Profile menu uses the same surfaces as the active site theme. */
html[data-theme] #profile-menu{box-sizing:border-box;position:absolute;right:0;top:calc(100% + 12px);width:288px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 88px);overflow-y:auto;overflow-x:hidden;padding:12px!important;border:1px solid var(--surface-line)!important;border-radius:16px!important;background:var(--surface)!important;color:var(--surface-ink)!important;box-shadow:0 16px 45px #07162930!important;text-align:left;font:13px/1.5 Arial!important;letter-spacing:0;z-index:2600!important}
html[data-theme] #profile-menu #profile-nickname{display:block;padding:4px 8px 0;font:700 16px/1.4 Arial!important;color:var(--surface-ink)!important;overflow-wrap:anywhere}
html[data-theme] #profile-menu #profile-account-state{display:block;padding:0 8px 12px;margin:3px 0 8px;border-bottom:1px solid var(--surface-line);font:12px/1.5 Arial!important;color:var(--surface-muted)!important;overflow-wrap:anywhere;white-space:normal}
html[data-theme] #profile-menu>:is(a,button){box-sizing:border-box;display:flex;align-items:center;gap:9px;width:100%;min-height:40px;margin:3px 0;padding:10px 12px!important;border:1px solid transparent!important;border-radius:9px;background:transparent!important;color:var(--surface-ink)!important;text-decoration:none!important;text-align:left;font:500 13px/1.4 Arial!important;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;box-shadow:none!important;cursor:pointer}
html[data-theme] #profile-menu>:is(a,button):hover{background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] #profile-menu>:is(a,button):focus-visible{outline:2px solid var(--surface-link);outline-offset:-2px;background:var(--surface-alt)!important}
html[data-theme] #profile-menu>.profile-admin{background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;font-weight:700!important;margin-bottom:8px}
html[data-theme] #profile-menu>#profile-logout{border-top-color:var(--surface-line)!important;margin-top:8px;border-radius:0 0 9px 9px;color:var(--surface-link)!important}
html[data-theme] #profile-menu #profile-status{font:12px/1.5 Arial!important;color:var(--surface-muted)!important;padding-inline:8px;overflow-wrap:anywhere}
html[data-theme] #profile-menu [hidden],html[data-theme] #profile-menu[hidden]{display:none!important}html[data-theme] #profile-menu>button:disabled{opacity:.5;cursor:default}
@media(max-width:700px){html[data-theme] #profile-menu{top:calc(100% + 10px);max-height:calc(100dvh - 76px)}}
/* A single desktop navigation line with a restrained search field. */
.site-header.responsive-search-header{grid-template-columns:auto minmax(0,1fr) auto auto auto;grid-template-areas:"brand nav search theme account";gap:10px;padding:7px clamp(14px,2vw,32px)!important}.responsive-search-header>.header-search{width:clamp(130px,14vw,220px);max-width:220px!important;min-width:0;justify-self:end}.responsive-search-header>.header-links{gap:12px;overflow:visible;flex-wrap:nowrap!important}.responsive-search-header .header-links>a,.responsive-search-header .header-links>button,.responsive-search-header .site-more>summary{font-size:11px!important;white-space:nowrap;text-decoration:none!important;padding:8px 0!important}.responsive-search-header .header-search input{height:34px;min-height:34px!important;padding:7px 11px!important;font-size:12px!important}.responsive-search-header .theme-picker>summary{min-width:100px;min-height:32px;gap:5px;padding:7px 9px;font-size:10px}.responsive-search-header #account-button,.responsive-search-header #admin-shortcut{min-height:32px;padding:7px 9px!important;font-size:10px!important}.responsive-search-header>.identity{gap:5px}.responsive-search-header .brand-logo{width:98px;height:54px}.responsive-search-header .site-more-menu a{text-decoration:none!important}
@media(min-width:980px) and (max-width:1150px){.site-header.responsive-search-header{gap:8px;padding-inline:14px!important}.responsive-search-header>.header-links{gap:9px}.responsive-search-header>.header-search{width:130px}.responsive-search-header .brand-logo{width:86px;height:48px}.responsive-search-header .theme-picker>summary{min-width:94px;padding-inline:7px}.responsive-search-header #account-button,.responsive-search-header #admin-shortcut{padding-inline:7px!important}}
@media(max-width:979px){.site-header.responsive-search-header{grid-template-columns:auto minmax(130px,1fr) auto auto;grid-template-areas:"brand search theme account" "nav nav nav nav";gap:4px 10px}.responsive-search-header>.header-search{width:min(100%,240px);max-width:240px!important;justify-self:end}.responsive-search-header>.header-links{gap:18px}}
@media(max-width:700px){.site-header.responsive-search-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand theme account" "search search search" "nav nav nav";gap:5px 8px;padding:7px 10px!important}.responsive-search-header>.header-search{width:100%;max-width:none!important}.responsive-search-header>.header-links{overflow-x:auto;gap:16px}.responsive-search-header .brand-logo{width:70px;height:40px}.responsive-search-header #account-button,.responsive-search-header #admin-shortcut{width:32px;height:32px;padding:6px!important}.responsive-search-header #admin-shortcut{font-size:0!important}.responsive-search-header .theme-picker>summary{min-width:0;max-width:112px}}
/* Small illuminated opening-hours sign beneath the brand. */
.site-header .brand{gap:2px!important}.brand-open-sign{display:block;box-sizing:border-box;padding:3px 7px;border:1px solid #ff55bb;border-radius:4px;background:#11162d;color:#73fbff;font:700 8px/1.2 Arial,sans-serif;letter-spacing:1.1px;white-space:nowrap;text-shadow:0 0 3px #45efff,0 0 7px #21c5ed;box-shadow:0 0 4px #ff4fb688,inset 0 0 4px #ff4fb644}.site-header .brand-release{font:500 6px/1 Arial!important;padding:1px 3px!important;border:0!important;background:transparent!important;box-shadow:none!important;letter-spacing:.3px;opacity:.8}.ticker{justify-content:center!important;text-align:center!important}.ticker>span{display:none!important}.ticker>p{flex:0 1 auto!important;text-align:center!important;margin:0 auto!important}@media(max-width:700px){.brand-open-sign{font-size:7px;padding:2px 5px;letter-spacing:.6px}.site-header .brand-release{font-size:6px!important}.ticker>p{text-align:center!important}}

/* Keep homepage and contest surfaces in the selected palette. */
html[data-theme=pink]{--surface:#fff7fc;--surface-alt:#ffe8f4;--surface-head:#ffd4ea;--surface-ink:#4c1638;--surface-muted:#79506b;--surface-line:#da9abe;--surface-link:#a31364}
html[data-theme] :where(.site-header,.site-more-menu,.mvp-notice,.discovery-shelf,.social-game-tile,.catalog-filters,.contest-section,.contest-card,.contest-art,.tiktok-section,#free-to-play-discovery,#publisher-notice){background:var(--surface)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] :is(.ticker,.header-search input,.catalog-tools input,.contest-card details){background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
html[data-theme] :is(.site-header,.mvp-notice,.discovery-shelf,.contest-section,.contest-card) :is(h1,h2,h3,p,strong,small,summary){color:var(--surface-ink)!important;text-shadow:none}
html[data-theme] :is(.header-links>a,.header-links>button,.site-more>summary,.site-more-menu>a,.site-more-menu>button,.tile-title,.contest-deadline,.contest-art>span){color:var(--surface-link)!important}
html[data-theme] :is(.mvp-notice>button,.contest-actions>a,.contest-badge,.discovery-nav>button){background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}
@media(min-width:980px){.responsive-search-header>.header-links{gap:9px}.responsive-search-header>.header-search{width:clamp(100px,10vw,170px)}}
@media(min-width:980px) and (max-width:1250px){.site-header.responsive-search-header{grid-template-areas:"brand search theme account" "nav nav nav nav";grid-template-columns:auto minmax(0,1fr) auto auto}.responsive-search-header>.header-links{justify-content:center}}

html[data-theme] :is(.shelf-heading>span,.discovery-shelf>p,.tile-description,.tile-details>summary){color:var(--surface-muted)!important}html[data-theme] :is(.shelf-heading>a,.shelf-heading>button,.shelf-carousel>button,.carousel-arrow,.shelf-arrow){background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}html[data-theme] .mvp-mascot img{image-rendering:pixelated}

/* The default light page retains Crystal Arcade's navy navigation. */
html:not([data-theme]) .site-header,html[data-theme=light] .site-header{background:#0c1a30!important;color:#edf5ff!important;border-color:#29405f!important}
html:not([data-theme]) .site-header :is(.header-links>a,.header-links>button,.site-more>summary,.brand-release,.profile-loading),html[data-theme=light] .site-header :is(.header-links>a,.header-links>button,.site-more>summary,.brand-release,.profile-loading){color:#edf5ff!important}
html:not([data-theme]) .site-header :is(.header-search input,.theme-picker>summary,#account-button),html[data-theme=light] .site-header :is(.header-search input,.theme-picker>summary,#account-button){background:#162b47!important;color:#edf5ff!important;border-color:#617793!important}
html:not([data-theme]) .site-header .header-search input::placeholder,html[data-theme=light] .site-header .header-search input::placeholder{color:#bbcee5!important;opacity:1}
html:not([data-theme]) .site-header #admin-shortcut,html[data-theme=light] .site-header #admin-shortcut{background:#a4eee3!important;color:#112b43!important;border-color:#a4eee3!important}

/* About/version is a regular More-menu action in every theme. */
html[data-theme] .site-header .site-more-menu>.community-version,html:not([data-theme]) .site-header .site-more-menu>.community-version{display:block;box-sizing:border-box;width:100%;margin:0;padding:10px 12px!important;background:transparent!important;background-image:none!important;color:var(--surface-link,#174fa3)!important;border:0!important;border-radius:6px;box-shadow:none!important;text-shadow:none!important;text-align:left;font:400 12px/1.5 Arial!important;white-space:normal}
html[data-theme] .site-header .site-more-menu>.community-version:hover,html[data-theme] .site-header .site-more-menu>.community-version:focus-visible{background:var(--surface-head)!important;color:var(--surface-ink)!important}

/* Neon light on navigation, with the existing active marker preserved. */
html{--nav-light:69,224,255}html[data-theme=pink]{--nav-light:237,57,151}html[data-theme=army],html[data-theme=lcd-handheld]{--nav-light:163,198,60}html[data-theme=handheld]{--nav-light:160,92,219}html[data-theme=doodle]{--nav-light:226,71,71}html[data-theme=alien-explorer]{--nav-light:245,182,65}html[data-theme=all-white]{--nav-light:50,132,213}
html .site-header .header-links>:is(a,button),html .site-header .header-links>.site-more>summary{position:relative;border-radius:7px;isolation:isolate}
html .site-header .header-links>:is(a,button)::before,html .site-header .header-links>.site-more>summary::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:-9px -8px;border-radius:10px;background:radial-gradient(ellipse 64px 34px at var(--spot-x,50%) var(--spot-y,50%),rgba(var(--nav-light),.36),rgba(var(--nav-light),.13) 48%,transparent 78%);opacity:0;transition:opacity .18s ease}
html .site-header .header-links>.nav-spotlight::before,html .site-header .header-links>.site-more>summary.nav-spotlight::before{opacity:1}
html .site-header .header-links>:is(a,button):focus-visible::before,html .site-header .header-links>.site-more>summary:focus-visible::before{opacity:1;background-position:center;--spot-x:50%;--spot-y:50%}
html .site-header .header-links>:is(a,button):focus-visible,html .site-header .header-links>.site-more>summary:focus-visible{outline:2px solid var(--surface-link,#54d9f3);outline-offset:4px}
@media(prefers-reduced-motion:reduce){html .site-header .header-links>:is(a,button)::before,html .site-header .header-links>.site-more>summary::before{transition:none}}

/* Stable desktop proportions: do not switch to two rows at laptop widths. */
@media(min-width:980px){
html .site-header.responsive-search-header{grid-template-columns:94px minmax(0,1fr) minmax(90px,150px) auto auto!important;grid-template-areas:"brand nav search theme account"!important;align-items:center;gap:clamp(6px,.65vw,12px)!important;padding:10px clamp(14px,2vw,32px)!important;min-height:96px;box-sizing:border-box}
html .responsive-search-header>.header-links{justify-content:flex-start!important;gap:clamp(7px,.7vw,13px)!important;min-width:0;flex-wrap:nowrap!important}
html .responsive-search-header .header-links>a,html .responsive-search-header .header-links>button,html .responsive-search-header .site-more>summary{font:600 clamp(10px,.78vw,13px)/1.3 Arial!important;padding:10px 0!important;white-space:nowrap}
html .responsive-search-header>.header-search{width:100%!important;max-width:150px!important;min-width:0}
html .responsive-search-header .header-search input{height:34px!important;font:12px/1.3 Arial!important;padding:7px 10px!important}
html .responsive-search-header .brand-logo{width:88px!important;height:49px!important}html .responsive-search-header .brand{min-width:0}
html .responsive-search-header .theme-picker>summary{min-width:0!important;min-height:32px!important;padding:8px!important;font:600 10px/1.3 Arial!important;gap:5px}
html .responsive-search-header #account-button,html .responsive-search-header #admin-shortcut{min-height:32px!important;padding:8px!important;font:600 10px/1.3 Arial!important}
html .responsive-search-header>.identity{gap:5px!important;min-width:0}
}
@media(min-width:980px) and (max-width:1199px){html .site-header.responsive-search-header{grid-template-columns:82px minmax(0,1fr) 95px auto auto!important;gap:6px!important;padding-inline:12px!important}html .responsive-search-header>.header-links{gap:7px!important}html .responsive-search-header #admin-shortcut{font-size:9px!important;width:auto;min-width:70px;padding:7px!important}html .responsive-search-header .brand-logo{width:78px!important;height:44px!important}html .responsive-search-header .theme-picker>summary{font-size:9px!important;padding:7px!important}}

@media(min-width:980px) and (max-width:1199px){html .site-header.responsive-search-header{grid-template-columns:78px minmax(0,1fr) 82px auto auto!important}html .responsive-search-header>.header-links{gap:6px!important}html .responsive-search-header #account-button{padding:7px!important;font-size:9px!important}}

/* Theme/account controls use the selected palette; default keeps its navy header. */
html[data-theme]:not([data-theme=light]) .site-header .theme-picker>summary,html[data-theme]:not([data-theme=light]) .site-header #account-button{background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important;box-shadow:none!important;text-shadow:none!important}
html[data-theme]:not([data-theme=light]) .site-header .theme-picker>summary *,html[data-theme]:not([data-theme=light]) .site-header #account-button *{color:inherit!important;stroke:currentColor}
html[data-theme]:not([data-theme=light]) .site-header #admin-shortcut{background:var(--surface-head)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}

html .site-header .site-more-menu>.keyboard-help-link{display:block;width:100%;padding:10px 12px!important;border:0!important;border-radius:6px;background:transparent!important;color:var(--surface-link)!important;text-align:left;font:400 12px/1.5 Arial!important;box-shadow:none!important}html .site-header .site-more-menu>.keyboard-help-link:hover{background:var(--surface-head)!important;color:var(--surface-ink)!important}#keyboard-help{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:22px;border:1px solid var(--surface-line);border-radius:16px;background:var(--surface);color:var(--surface-ink);box-shadow:0 20px 70px #0005}#keyboard-help::backdrop{background:#05112688}.keyboard-help-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.keyboard-help-heading h2{font:700 19px/1.4 Arial;margin:0}.keyboard-help-heading button{border:0;border-radius:7px;background:var(--surface-alt);color:var(--surface-ink);font-size:22px;width:32px;height:32px;cursor:pointer}#keyboard-help dl{margin:18px 0}#keyboard-help dl>div{display:grid;grid-template-columns:145px 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--surface-line)}#keyboard-help dt,#keyboard-help dd{margin:0;font:13px/1.5 Arial}#keyboard-help kbd{display:inline-block;padding:3px 6px;border:1px solid var(--surface-line);border-bottom-width:3px;border-radius:5px;background:var(--surface-alt);color:var(--surface-ink);font:600 12px/1.4 monospace}#keyboard-help p{font:12px/1.6 Arial;color:var(--surface-muted);margin:0}@media(max-width:400px){#keyboard-help{padding:16px}#keyboard-help dl>div{grid-template-columns:120px 1fr}}

/* Compact banner copy with its action directly below. */
html .mvp-notice{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:18px!important;padding:18px 22px!important}
html .mvp-notice>.mvp-mascot{width:72px!important;height:72px!important}html .mvp-notice .mvp-mascot img{width:72px!important;height:72px!important;object-fit:contain}
html .mvp-notice>div{min-width:0}html .mvp-notice>div>strong{display:block;font:700 15px/1.4 Arial!important}html .mvp-notice>div>p{font:400 13px/1.6 Arial!important;margin:6px 0 10px!important;max-width:110ch}
html .mvp-notice>div>button[data-open-feedback]{display:inline-flex;align-items:center;width:auto!important;min-height:0!important;margin:0!important;padding:7px 11px!important;background:var(--surface-head)!important;color:var(--surface-ink)!important;border:1px solid var(--surface-line)!important;border-radius:8px!important;font:600 12px/1.4 Arial!important;box-shadow:none!important;cursor:pointer}
@media(max-width:600px){html .mvp-notice{grid-template-columns:50px minmax(0,1fr)!important;gap:12px!important;padding:14px!important;align-items:start!important}html .mvp-notice>.mvp-mascot,html .mvp-notice .mvp-mascot img{width:50px!important;height:50px!important}html .mvp-notice>div>strong{font-size:14px!important}}

/* Feedback belongs to navigation, never over game tiles. */
html #feedback-launch{position:static!important;inset:auto!important;z-index:auto!important;display:block;width:auto;margin:0;padding:10px 12px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--surface-link)!important;font:400 12px/1.5 Arial!important;text-align:left;box-shadow:none!important}
html .site-more-menu>#feedback-launch{width:100%}html #feedback-launch:hover{background:var(--surface-head)!important;color:var(--surface-ink)!important}

/* One orderly information area after the catalog and pagination. */
.arcade-site-info{box-sizing:border-box;width:calc(100% - 40px);max-width:1720px;margin:8px auto 28px;padding:24px;border:1px solid var(--surface-line);border-radius:14px;background:var(--surface);color:var(--surface-ink)}.site-info-top{display:grid;grid-template-columns:1fr 1fr;gap:32px}.arcade-site-info h2{font:700 15px/1.4 Arial!important;margin:0 0 8px!important;color:var(--surface-ink)}.arcade-site-info p{font:400 13px/1.7 Arial!important;margin:0 0 12px!important;max-width:100ch}.arcade-site-info a{font:600 12px/1.6 Arial;color:var(--surface-link);text-underline-offset:3px}.arcade-site-info small{display:block;font:11px/1.6 Arial;color:var(--surface-muted);margin-top:8px}.arcade-site-info small a{font-size:11px;font-weight:400}html .arcade-site-info #publisher-notice{margin:22px 0 0!important;padding:20px 0 0!important;border:0!important;border-top:1px solid var(--surface-line)!important;border-radius:0!important;background:transparent!important}.arcade-site-info #publisher-notice p:last-child{margin-bottom:0!important;font-size:11px!important;color:var(--surface-muted)}html .arcade-footer{display:flex!important;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;box-sizing:border-box;max-width:1720px;margin:0 auto;padding:18px 24px!important;border-top:1px solid var(--surface-line);color:var(--surface-muted);font:12px/1.6 Arial!important}.arcade-footer>span{display:inline-flex!important;align-items:center;gap:8px;flex-wrap:wrap}.arcade-footer .footer-live{white-space:nowrap}.arcade-footer #guest-total{display:inline!important}.arcade-footer>a{font:12px/1.6 Arial;color:var(--surface-link)}@media(max-width:650px){.arcade-site-info{width:calc(100% - 28px);padding:18px}.site-info-top{grid-template-columns:1fr;gap:22px}html .arcade-footer{padding:16px 18px!important;gap:10px}.arcade-footer .footer-live{white-space:normal}}

#chip-karaoke{box-sizing:border-box;width:min(1180px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto;border:1px solid #a663d3;border-radius:16px;background:#111426;color:#f7eafa;box-shadow:0 22px 100px #0009}#chip-karaoke::backdrop{background:#040818d9;backdrop-filter:blur(5px)}.karaoke-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 20px}.karaoke-toolbar h2{font:700 18px/1.4 Arial;margin:0;color:#a5f7ed}.karaoke-toolbar p{font:12px/1.5 Arial;margin:4px 0 0;color:#c8bdd9}.karaoke-toolbar button{flex-shrink:0;padding:9px 13px;border:1px solid #cd72c0;border-radius:8px;background:#30213f;color:#fff;font:600 12px Arial;cursor:pointer}.karaoke-stage{aspect-ratio:16/9;background:#111426}.karaoke-stage iframe{display:block;width:100%;height:100%;border:0}.karaoke-bottom{display:flex;justify-content:space-between;gap:12px;padding:12px 20px;font:12px/1.5 Arial;color:#bdb1cf}.karaoke-bottom a{color:#a5f7ed}@media(max-width:600px){.karaoke-toolbar{padding:12px;align-items:flex-start}.karaoke-toolbar h2{font-size:15px}.karaoke-toolbar p span{display:block}.karaoke-bottom{padding:12px;font-size:10px}#chip-karaoke{width:calc(100vw - 16px)}}

/* Fit the complete karaoke scene and controls inside the viewport. */
html #chip-karaoke{width:min(980px,calc(100vw - 40px),calc((100dvh - 170px)*16/9));max-height:calc(100dvh - 40px);margin:auto;overflow:auto}
html #chip-karaoke .karaoke-toolbar{padding:11px 16px}html #chip-karaoke .karaoke-toolbar h2{font:700 16px/1.35 Arial!important}html #chip-karaoke .karaoke-toolbar p{font:11px/1.4 Arial!important;margin:3px 0 0}html #chip-karaoke .karaoke-bottom{padding:9px 16px;font-size:11px}
@media(max-width:600px){html #chip-karaoke{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}html #chip-karaoke .karaoke-toolbar{padding:10px 12px}html #chip-karaoke .karaoke-toolbar h2{font-size:14px!important}}
@media(max-height:480px){html #chip-karaoke{width:min(calc(100vw - 24px),calc((100dvh - 125px)*16/9));max-height:calc(100dvh - 20px)}html #chip-karaoke .karaoke-toolbar{padding:7px 10px}html #chip-karaoke .karaoke-toolbar h2{font-size:13px!important}html #chip-karaoke .karaoke-toolbar p{font-size:10px!important}html #chip-karaoke .karaoke-bottom{padding:6px 10px;font-size:10px}}

/* Balance primary links between the brand and utility controls. */
@media(min-width:980px){html .site-header.responsive-search-header>.header-links{justify-content:center!important;padding-inline:clamp(4px,1vw,18px);box-sizing:border-box}}

/* Search has its own clear landing-page position; header controls remain quiet. */
html .site-header .theme-picker>summary{width:36px!important;min-width:36px!important;height:36px;justify-content:center;padding:8px!important;font-size:16px!important}html .theme-picker .theme-current{display:none!important}html .site-header #account-button{width:36px!important;min-width:36px!important;height:36px!important;padding:7px!important;justify-content:center}html .site-header #account-button .profile-label{display:none!important}
@media(min-width:980px){html .site-header.responsive-search-header{grid-template-columns:94px minmax(0,1fr) auto auto!important;grid-template-areas:"brand nav theme account"!important;gap:16px!important}html .site-header.responsive-search-header>.header-links{gap:0!important;justify-content:center!important}html .responsive-search-header .header-links>:is(a,button,.site-more){padding-inline:14px!important;border-right:1px solid var(--surface-line,#53617b)}html .responsive-search-header .header-links>:last-child{border-right:0}html .responsive-search-header .header-links>.site-more>summary{padding:10px 0!important}}
.landing-search{max-width:760px;margin:0 auto 22px;text-align:center;padding:0 14px}.landing-search>label{display:block;font:700 16px/1.4 Arial;margin-bottom:9px;color:var(--surface-ink)}.landing-search .header-search{display:block!important;width:100%!important;max-width:none!important;margin:0!important}.landing-search .header-search input{box-sizing:border-box;width:100%;height:44px!important;padding:11px 17px!important;border:1px solid var(--surface-line);border-radius:12px;background:var(--surface);color:var(--surface-ink);font:14px/1.4 Arial!important}.landing-search .header-search input::placeholder{color:var(--surface-muted);opacity:1}
html .arcade-about{margin-top:10px;margin-bottom:0}html .mvp-notice{grid-template-columns:46px minmax(0,1fr)!important;gap:12px!important;padding:10px 14px!important}html .mvp-notice>.mvp-mascot,html .mvp-notice .mvp-mascot img{width:46px!important;height:46px!important}html .mvp-notice>div>strong{font-size:12px!important}html .mvp-notice>div>p{font-size:11px!important;line-height:1.5!important;margin:3px 0 5px!important}html .mvp-notice>div>button[data-open-feedback]{padding:3px 7px!important;font-size:10px!important}
@media(min-width:980px) and (max-width:1199px){html .responsive-search-header .header-links>:is(a,button,.site-more){padding-inline:9px!important}}
@media(max-width:979px){html .site-header.responsive-search-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand theme account" "nav nav nav"!important}.landing-search{margin-top:8px}}

@media(min-width:980px){html .responsive-search-header .header-links>:is(a,button,.site-more){border-radius:0!important}}

/* Compact profile dropdown, aligned with the small banner typography. */
html[data-theme] .site-header #profile-menu{box-sizing:border-box;width:250px!important;min-width:0!important;max-width:calc(100vw - 24px)!important;padding:10px!important;border-radius:12px!important;max-height:calc(100dvh - 100px)!important;overflow-y:auto}
html[data-theme] .site-header #profile-menu>:is(a,button){box-sizing:border-box;width:100%;min-height:28px!important;margin:0!important;padding:6px 8px!important;font:400 11px/1.4 Arial!important;gap:6px!important;border-radius:6px!important}
html[data-theme] .site-header #profile-menu>#profile-nickname{font:700 13px/1.4 Arial!important;padding:2px 8px!important;margin:0!important}html[data-theme] .site-header #profile-menu>#profile-account-state,html[data-theme] .site-header #profile-menu #profile-status{font:400 10px/1.5 Arial!important;padding:3px 8px!important;margin:0 0 5px!important}html[data-theme] .site-header #profile-menu>#profile-logout{margin-top:5px!important;padding-top:8px!important}

/* Match More to the compact profile menu. */
html[data-theme] .site-header .site-more-menu{box-sizing:border-box;width:250px!important;min-width:0!important;max-width:calc(100vw - 24px)!important;padding:10px!important;border-radius:12px!important;max-height:calc(100dvh - 100px)!important;overflow-y:auto}
html[data-theme] .site-header .site-more-menu>:is(a,button){box-sizing:border-box;display:block;width:100%;min-height:28px!important;margin:0!important;padding:6px 8px!important;font:400 11px/1.4 Arial!important;gap:6px!important;border-radius:6px!important;text-align:left}

/* Dropdowns shrink to visible content; hidden account actions reserve no space. */
html[data-theme] .site-header #profile-menu,html[data-theme] .site-header .site-more-menu{height:auto!important;min-height:0!important;display:block;align-content:start!important;justify-content:start!important;gap:0!important;padding:8px!important}
html[data-theme] .site-header #profile-menu>:is(a,button),html[data-theme] .site-header .site-more-menu>:is(a,button){height:auto!important;min-height:0!important;max-height:none!important;padding:5px 7px!important;margin:0!important;line-height:1.4!important}
html[data-theme] .site-header #profile-menu [hidden],html[data-theme] .site-header #profile-menu[hidden],html[data-theme] .site-header .site-more-menu [hidden]{display:none!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important}
html[data-theme] .site-header #profile-menu>#profile-status:empty{display:none!important}html[data-theme] .site-header #profile-menu>#profile-account-state{padding-bottom:6px!important;margin-bottom:4px!important}
html .site-more:not([open])>.site-more-menu{display:none!important}

/* One alignment rule for native links and dynamically added More actions. */
html[data-theme] .site-header .site-more-menu>:is(a,button),html[data-theme] .site-header .site-more-menu>#feedback-launch,html[data-theme] .site-header .site-more-menu>.community-version,html[data-theme] .site-header .site-more-menu>.keyboard-help-link{box-sizing:border-box;display:block!important;width:100%!important;margin:0!important;padding:5px 7px!important;text-indent:0!important;text-align:left!important;font:400 11px/1.4 Arial!important;border:0!important;height:auto!important;min-height:0!important}
html[data-theme] .site-header .site-more-menu>[hidden]{display:none!important}

/* Keep compact dropdown widths close to their longest labels. */
html[data-theme] .site-header #profile-menu,html[data-theme] .site-header .site-more-menu{width:210px!important;min-width:0!important;max-width:calc(100vw - 24px)!important}
/* Inset the active marker, leaving a clear gap before vertical dividers. */
html .site-header .header-links>.active{position:relative;border-bottom:3px solid transparent!important}
html .site-header .header-links>.active::after{content:'';position:absolute;left:12px;right:12px;bottom:0;height:3px;background:#ff87c5;border:0;pointer-events:none}

.diamond-shower{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:99999}.falling-diamond{position:absolute;left:var(--x);top:-45px;width:var(--size);height:calc(var(--size)*1.25);filter:drop-shadow(0 0 4px var(--gem));animation:diamond-rain var(--duration) linear var(--delay) both}.falling-diamond svg{display:block;width:100%;height:100%}@keyframes diamond-rain{0%{transform:translate3d(0,-40px,0) rotate(0);opacity:0}8%{opacity:1}85%{opacity:1}100%{transform:translate3d(var(--drift),calc(100dvh + 100px),0) rotate(var(--spin));opacity:0}}@media(prefers-reduced-motion:reduce){.falling-diamond{top:12%;animation:diamond-still .8s ease-out both;filter:none;transform:none}@keyframes diamond-still{0%,100%{opacity:0}25%,70%{opacity:.85}}}

/* The dashboard shares the same round theme trigger as other pages. */
html[data-theme] .site-header .theme-picker>summary{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:7px!important;line-height:1!important;border-radius:50%!important;gap:2px!important}
html[data-theme=light] body:has(#admin-content) .site-header .theme-picker>summary{background:var(--surface-alt)!important;color:var(--surface-ink)!important;border-color:var(--surface-line)!important}

/* One compact, readable footer on public information pages. */
html body #reference-navigation{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 22px;width:calc(100% - 32px);max-width:1100px;margin:20px auto 0;padding:18px 12px 24px;border-top:1px solid var(--surface-line);background:transparent;color:var(--surface-ink);font:13px/1.6 Arial,sans-serif}html body #reference-navigation a{margin:0;padding:3px 0;color:var(--surface-link)!important;font:inherit;text-decoration:underline;text-underline-offset:3px}html body #reference-navigation a:hover{color:var(--surface-ink)!important}html body #reference-navigation a:focus-visible{outline:2px solid var(--surface-link);outline-offset:4px;border-radius:2px}@media(max-width:600px){html body #reference-navigation{gap:9px 18px;padding:16px 8px 22px;font-size:12px}}

/* Light dashboard uses the arcade navy navigation, with light content below. */
html[data-theme=light] body:has(#admin-content) .site-header,html:not([data-theme]) body:has(#admin-content) .site-header{background:#0c1a30!important;color:#edf5ff!important;border-color:#29405f!important}
html[data-theme=light] body:has(#admin-content) .site-header :is(nav a,.site-theme-label,.brand-release,.profile-loading){color:#edf5ff!important}
html[data-theme=light] body:has(#admin-content) .site-header :is(#account-button,.dm-launch,.theme-picker>summary){background:#162b47!important;color:#edf5ff!important;border-color:#617793!important}
html[data-theme=light] body:has(#admin-content) .site-header #admin-shortcut{background:#a4eee3!important;color:#112b43!important;border-color:#a4eee3!important}

.arcade-footer a{color:var(--surface-link)!important;text-underline-offset:3px}

/* Compact messenger: useful on a desktop without taking over the page. */
html body #community-drawer[open]{position:fixed!important;inset:auto 18px 18px auto!important;margin:0!important;width:min(360px,calc(100vw - 36px))!important;height:min(590px,calc(100dvh - 72px))!important;max-height:calc(100dvh - 72px)!important;min-height:0!important;overflow:hidden!important;border:1px solid var(--surface-line)!important;border-radius:18px!important;background:var(--surface)!important;box-shadow:0 20px 56px rgba(5,19,43,.3)!important}
html body #community-drawer::backdrop{background:rgba(6,18,37,.28)!important}
html body #community-drawer .community-drawer-heading{min-height:0!important;padding:10px 14px 8px!important;border-bottom:1px solid var(--surface-line)!important}
html body #community-drawer .community-drawer-heading small{font-size:9px!important;letter-spacing:.18em!important}
html body #community-drawer .community-drawer-heading h2{margin:2px 0 0!important;font-size:18px!important;line-height:1.1!important}
html body #community-drawer [data-community-close]{min-width:auto!important;min-height:30px!important;padding:5px 10px!important;font-size:11px!important}
html body #community-drawer .community-drawer-tabs{gap:6px!important;padding:7px 12px!important;border-bottom:1px solid var(--surface-line)!important}
html body #community-drawer .community-drawer-tabs button{min-height:30px!important;padding:5px 7px!important;font-size:11px!important}
html body #community-drawer .social{box-sizing:border-box;height:calc(100% - 96px)!important;min-height:0!important;padding:0!important;overflow:hidden!important}
html body #community-drawer #chat{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important}
html body #community-drawer #chat .window-bar,html body #community-drawer #chat .chat-header p,html body #community-drawer #chat .chat-hello-prompt,html body #community-drawer #chat .chat-shop-promo{display:none!important}
html body #community-drawer #chat .chat-header{padding:8px 12px 4px!important;min-height:0!important}
html body #community-drawer #chat .chat-header h2{margin:0!important;font-size:13px!important;line-height:1.2!important}
html body #community-drawer #messages{height:auto!important;min-height:150px!important;flex:1 1 auto!important;margin:0!important;padding:8px 12px!important;scroll-behavior:smooth!important}
html body #community-drawer #messages .message{padding:8px 9px!important;margin:0 0 7px!important;font-size:12px!important;line-height:1.35!important}
html body #community-drawer #messages .message img{max-width:72px!important;max-height:72px!important}
html body #community-drawer .chat-jump-latest{right:12px!important;bottom:132px!important;padding:4px 7px!important;font-size:10px!important}
html body #community-drawer #chat-reward-signin{display:none!important}
html body #community-drawer #chat .composer{order:2!important;display:flex!important;gap:7px!important;align-items:center!important;margin:0!important;padding:8px 12px!important;border-top:1px solid var(--surface-line)!important;background:var(--surface)!important}
html body #community-drawer #chat #draft{display:none!important}
html body #community-drawer #chat #draft-editor{min-height:36px!important;height:36px!important;padding:8px 11px!important;font-size:12px!important;line-height:18px!important;border-radius:18px!important}
html body #community-drawer #chat .composer button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:50%!important}
html body #community-drawer #chat .quick-vibes{order:3!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:35px!important;margin:0!important;padding:3px 12px 5px!important;gap:6px!important;overflow:visible!important;background:var(--surface)!important}
html body #community-drawer #chat .quick-vibes button{flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:50%!important;font-size:14px!important}
html body #community-drawer #chat .quick-vibes #sticker-shop-open{display:none!important}
html body #community-drawer #chat .emoji-picker{position:absolute!important;z-index:4!important;left:12px!important;right:auto!important;bottom:78px!important;width:min(240px,calc(100% - 24px))!important;max-height:196px!important;overflow:auto!important}
html body #community-drawer #chat .chat-foot{order:4!important;display:flex!important;min-height:22px!important;padding:2px 12px 7px!important;font-size:10px!important;line-height:1.25!important;background:var(--surface)!important}
@media(max-width:600px){html body #community-drawer[open]{inset:auto 8px 8px 8px!important;width:auto!important;height:min(570px,calc(100dvh - 16px))!important;max-height:calc(100dvh - 16px)!important;border-radius:16px!important}html body #community-drawer #messages{min-height:130px!important}}

/* The chat is one focused conversation, not a second site navigation panel. */
html body #community-drawer[open]{width:min(390px,calc(100vw - 36px))!important;height:min(540px,calc(100dvh - 64px))!important;max-height:calc(100dvh - 64px)!important;border-radius:16px!important}
html body #community-drawer .community-drawer-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:46px!important;padding:0 13px!important}
html body #community-drawer .community-drawer-heading h2{margin:0!important;font-size:15px!important;letter-spacing:.01em!important}
html body #community-drawer [data-community-close]{display:flex!important;align-items:center!important;justify-content:center!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:50%!important;font-size:19px!important;line-height:1!important}
html body #community-drawer .community-drawer-tabs{justify-content:flex-start!important;gap:0!important;padding:0 12px!important;border-bottom:1px solid var(--surface-line)!important}
html body #community-drawer .community-drawer-tabs button{min-width:64px!important;min-height:34px!important;padding:6px 10px!important;border-radius:0!important;background:transparent!important;color:var(--surface-muted)!important;font-size:11px!important}
html body #community-drawer .community-drawer-tabs button[aria-selected=true]{color:var(--surface-ink)!important;border-bottom:2px solid var(--surface-link)!important;font-weight:700!important}
html body #community-drawer .social{height:calc(100% - 81px)!important}
html body #community-drawer #chat .chat-header{display:flex!important;align-items:center!important;min-height:36px!important;padding:9px 13px 4px!important}
html body #community-drawer #chat .chat-header h2{font-size:13px!important}
html body #community-drawer #chat .room-switch{display:flex!important;gap:5px!important;padding:0 12px 7px!important}
html body #community-drawer #chat .room-switch button{min-height:25px!important;padding:3px 8px!important;border-radius:999px!important;font-size:10px!important}
html body #community-drawer #messages{padding:9px 13px!important}
html body #community-drawer #messages .message{max-width:84%!important;padding:7px 9px!important;margin-bottom:6px!important;border-radius:12px!important;font-size:12px!important}
html body #community-drawer #chat .composer{padding:9px 12px 5px!important}
html body #community-drawer #chat .quick-vibes{min-height:32px!important;padding:1px 12px 5px!important}
html body #community-drawer #chat .chat-foot{display:none!important}
html body #community-drawer #chat .emoji-picker{bottom:70px!important}
@media(max-width:600px){html body #community-drawer[open]{height:min(520px,calc(100dvh - 16px))!important;max-height:calc(100dvh - 16px)!important}}

/* Familiar compact-chat geometry: messages scroll in the middle; reply stays visible at the bottom. */
html body #community-drawer[open]{inset:auto 20px 20px auto!important;width:min(340px,calc(100vw - 40px))!important;height:min(440px,calc(100dvh - 80px))!important;max-height:calc(100dvh - 80px)!important}
html body #community-drawer .community-drawer-heading{min-height:42px!important;padding:0 12px!important}
html body #community-drawer .community-drawer-tabs{padding:0 10px!important}
html body #community-drawer .community-drawer-tabs button{min-height:31px!important;min-width:58px!important;padding:5px 8px!important}
html body #community-drawer .social{height:calc(100% - 73px)!important;display:block!important;min-height:0!important}
html body #community-drawer #chat-home{height:100%!important;min-height:0!important}
html body #community-drawer #chat{position:relative!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;height:100%!important;min-height:0!important;overflow:hidden!important}
html body #community-drawer #chat .chat-header{grid-row:1!important;min-height:31px!important;padding:8px 12px 3px!important}
html body #community-drawer #chat .chat-header h2{font-size:12px!important}
html body #community-drawer #chat .room-switch{display:none!important}
html body #community-drawer #messages{grid-row:2!important;display:block!important;min-height:0!important;height:auto!important;overflow-y:auto!important;padding:7px 12px!important;overscroll-behavior:contain!important}
html body #community-drawer #chat .composer{grid-row:3!important;order:initial!important;display:flex!important;position:relative!important;z-index:2!important;min-height:50px!important;padding:7px 10px!important;border-top:1px solid var(--surface-line)!important}
html body #community-drawer #chat #draft-editor{height:34px!important;min-height:34px!important;padding:7px 10px!important;font-size:12px!important}
html body #community-drawer #chat .composer button{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important}
html body #community-drawer #chat .quick-vibes{grid-row:4!important;order:initial!important;min-height:27px!important;height:27px!important;padding:0 12px 4px!important}
html body #community-drawer #chat .quick-vibes button{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;font-size:12px!important}
html body #community-drawer #chat .emoji-picker{bottom:57px!important}
html body #community-drawer .chat-jump-latest{bottom:98px!important}
@media(max-width:600px){html body #community-drawer[open]{inset:auto 10px 10px 10px!important;width:auto!important;height:min(440px,calc(100dvh - 20px))!important;max-height:calc(100dvh - 20px)!important}}

/* Deliberate breathing room around the only two chat controls people need. */
html body #community-drawer #chat .chat-header{margin-top:5px!important;padding-top:8px!important;padding-bottom:6px!important}
html body #community-drawer #chat .quick-vibes{height:33px!important;min-height:33px!important;margin-top:4px!important;padding:5px 12px 5px!important;border-top:0!important}

/* Keep every community view on the same compact type scale. */
html body #community-drawer[open]{width:260px!important;height:380px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important}
html body #community-drawer #chat .quick-vibes{justify-content:flex-start!important;align-items:center!important;padding-left:10px!important}
html body #community-drawer #chat .quick-vibes #emoji-toggle{margin-left:0!important;margin-right:auto!important}
html body #community-drawer #community-rooms{padding:10px!important;font-size:11px!important;line-height:1.35!important}
html body #community-drawer #community-rooms h2{font-size:13px!important;line-height:1.3!important;margin:0 0 3px!important}
html body #community-drawer #community-rooms>p,html body #community-drawer #community-rooms :is(strong,small,label,input,button){font-size:11px!important;line-height:1.35!important}
