/* Palace night banquet: shared site palette. Card geometry and story artwork stay in their own modules. */
:root{--bg:#241722;--sidebar:#251722;--panel:#342330;--panel-soft:#3b2937;--panel-2:#412d3b;--line:#694759;--text:#fff0df;--muted:#c6afbb;--dim:#a18b99;--accent:#ff93ab;--gold:#f3d38e;--gold-soft:#d9b778;--green:#6ed9ba;--danger:#ffaaa5;--glass-bg:linear-gradient(145deg,#46303be8,#2d1c2be8);--glass-line:#d6a5ba33;--glass-shadow:0 16px 50px #14081240;color-scheme:dark}
body,body[data-page="home"]{background:radial-gradient(ellipse at 85% 0,#a4476c15,transparent 52%),#241722;color:var(--text);background-attachment:fixed}
body .topbar,body .sidebar,body[data-page="home"] .topbar,body[data-page="home"] .sidebar{background:linear-gradient(135deg,#301d2cf5,#211520f7);border-color:#79506466}
body .topbar{color:var(--text)}
body .home-manifesto h1 span{color:var(--accent)}
body :is(.panel,.book-card,.character-card,.story-row,.creator-profile,.guide-document,.guide-index,.stat-grid>div,.play-data-card,.registration-card,.auth-register .registration-card){background:var(--glass-bg);border-color:var(--glass-line);color:var(--text)}
body :is(.modal,.account-dropdown,.discovery-options){background:#342330fa;border-color:#95657b80;color:var(--text)}
body .modal-head,body .modal-footer{background:#2d1d29;border-color:var(--line)}
body .modal-overlay{background:#170c1cc7}
body :is(.auth-layout,.auth-layout.auth-register){background:#241722}
body :is(.auth-panel,.auth-register .auth-panel){background:radial-gradient(ellipse at top right,#ed94a910,transparent 58%),#2a1b27}
body .auth-scene{background:#21131f}
body .auth-scene:after,body .auth-register .auth-scene:after{background:linear-gradient(180deg,#32132922,#32132905 30%,#3213299c 65%,#21131ff5)}
body :is(.field input,.field textarea,.field select,input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select){background:linear-gradient(120deg,#3c2a36,#2b1c28);border-color:#91627788;color:var(--text)}
body :is(input,textarea)::placeholder{color:#b298a8}
body :is(label,.intro,.discovery-options label,.newcomer-heading p,.newcomer-steps p){color:var(--muted)}
body :is(input,textarea,select):focus{border-color:var(--accent)!important;outline:none;box-shadow:0 0 0 3px #ff93ab15}
body :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--accent)}
body :is(.sidebar-bottom,.page-footer,.account-menu-profile,.account-menu-divider){border-color:var(--line)}
body .button:not(.primary):not(.quiet){background:#3c2937;border-color:#91627788;color:var(--text)}
body .button.primary{background:var(--accent);border-color:var(--accent);color:#42162b}
body .button:not(:disabled):hover,body .icon-button:hover{border-color:var(--accent);color:var(--text)}
body .button.primary:not(:disabled):hover{background:#ffa7ba;color:#42162b}
body :is(.nav-button:not(.active):hover,.account-dropdown>button:hover,.account-dropdown>button:focus-visible){background:#513346;color:var(--text)}
body .nav-button.active{background:var(--accent);color:#42162b;border-color:var(--accent)}
body :is(.site-nav button.active,.platform-tabs button.active,.dossier-tabs button.active,.play-tabs button.active){color:var(--accent);border-color:var(--accent)}
body .site-nav button.active:after{background:var(--accent)}
body :is(.filter,.discovery-controls .filter){background:#402b388c;border-color:#91627766;color:#ead6df}
body :is(.filter.active,.discovery-controls .filter.active){background:var(--accent);color:#42162b;border-color:var(--accent)}
body .discovery-controls .search{background:#382531e8;border-color:#95657b80;color:var(--muted)}
body #hall-search-form #world-search{color:var(--text);background:none;box-shadow:none}
body .discovery-advanced>summary{border-color:#95657b66;color:#ead6df}
body .discovery-advanced[open]>summary{border-color:var(--accent);color:var(--accent)}
body :is(.discovery-hint,.discovery-controls .story-count,.shelf-description,.account-menu-profile small){color:var(--muted)}
body :is(.tag,.status-pill,.shelf-genres span){color:#edcfda;border-color:#a56c8370;background:#3b27345c}
body .glass-story-card .shelf-genres span{color:#edcfda;border-color:#a56c8370;background:#3b2734b8}
body .glass-story-card .access-label{color:var(--gold);border-color:#a56c8370;background:#382632e8}
body .account-button{background:#402b3870;border-color:#95657b66;color:var(--text)}
body .user-avatar{background:#27483f;color:#d5f1e4;border-color:#6ed9ba55}
body .glass-story-card,body[data-page="home"] .glass-story-card{background:#281a25;border-color:#a56c8340}
body .glass-story-card:hover,body[data-page="home"] .glass-story-card:hover{border-color:#ff93ab88}
body .glass-story-card .shelf-overlay,body[data-page="home"] .glass-story-card .shelf-overlay{background:linear-gradient(0deg,#20131ff7 0%,#20131fe0 65%,#20131f88 88%,transparent)}
body :is(.r3-sidebar-announcement,.status-box,.hint,.notice,.code-result,.role-choice,.entry-choice,.template-card,.config-field,.creation-guide,.artwork-panel,.script-shelf .shelf-card){background-color:#382632;border-color:#92607666;color:var(--text)}
body :is(.role-choice:has(input:checked),.entry-choice.active,.template-card.selected){background:#573445;border-color:var(--accent);color:var(--text)}
body :is(.newcomer-steps article,.invitation-row,.price-card,.profile-summary,.creation-mode-card,.creation-step,.editor-help){background-color:#382632;border-color:#92607666}
body :is(.newcomer-heading>span,.newcomer-steps article>span,.creator-identity,.creator-stats b){color:var(--gold)}
body .r3-sidebar-announcement h3,body .r3-sidebar-announcement strong{color:var(--gold)}
body :is(.tab.active,.platform-tabs .active,.creation-tabs .active,.config-tabs .active){border-color:var(--accent);color:var(--accent)}
body :is(.platform-tabs button.active,.auth-tabs button.active){background:#ff93ab22;color:var(--accent);border-color:var(--accent)}
body .deepseek-guide{background:linear-gradient(120deg,#f3d38e0b,#30212d);border-color:#f3d38e44}
body .deepseek-guide-body a{color:var(--gold)}
body .deepseek-guide :is(summary small,dd span){color:var(--muted)}
body .deepseek-guide-body code{background:#24172299;color:#e8ceda}
body .profile-editor .field:has(input[type=file]){background:#3b2937;border-color:#a56c8366}
body :is(.cover-upload,.asset-add,.config-field,.layout-mini-preview,.artwork-panel,.editor-help,.editor-help-panel,.creation-side-help){background-color:#3b2937;border-color:#92607666;color:var(--text)}
body .table-wrap{background:#30202c;border-color:#92607666;scrollbar-color:#9b687f #30202c}
body .platform-table,body .platform-table tbody,body .platform-table tbody tr{background:#30202c;color:var(--text);border-color:#92607655}
body .platform-table tbody tr:nth-child(even){background:#382632}
body .platform-table tbody tr:hover{background:#49303f}
body .platform-table :is(th,td){border-color:#92607655;color:var(--text)}
body .platform-table th{background:#3b2734;color:var(--gold)}
body .platform-table td b{color:var(--text)}
body .platform-table td small{color:var(--muted)}
body table.platform-table.responsive-records tbody td{background:transparent!important;color:var(--text)}
body table.platform-table.responsive-records tbody td:before{color:var(--muted)}
body .status{background:#49303f;color:#ecd5df;border-color:#a56c8366}
body .status.published{background:#27483f;color:#c1f2df;border-color:#6ed9ba55}
body .status.pending{background:#5b4232;color:#ffe4aa;border-color:#f3d38e55}
body .about-hero{background:#30202c}
body .about-hero>div{background:linear-gradient(90deg,#2c182cdd,#2c182c44)}
body .about-columns article{background:#342330;border-color:#92607666}
body .about-community{background:linear-gradient(110deg,#402a39,#30202c);border-color:#92607666}
body :is(.about-columns p,.about-community p,.about-steps p){color:var(--muted)}
body .auth-worlds span{background:#3b2734bb;border-color:#a36b8266;color:#ead5df}
body .r3-chat-toggle{background:linear-gradient(110deg,#ffc2b4,#ff93ab);color:#42162b;border-color:#ffd8b480;box-shadow:0 9px 26px #1c0d2444}
body .r3-chat-panel{background:linear-gradient(145deg,#402b38fa,#2c1c2afc);border-color:#b8809a66;color:var(--text)}
body .r3-chat-tabs{border-color:#92607655}
body .r3-chat-tabs button{color:var(--muted)}
body .r3-chat-tabs button.active{color:var(--accent);border-color:var(--accent)}
body .r3-chat-message.own p{background:#ff93ab1e}
body :is(.r3-chat-empty,.r3-chat-status,.r3-quiet,.r3-chat-panel header small){color:var(--muted)}
body :is(.toasts,.success,.status-success){background-color:#27483f;border-color:#6ed9ba77;color:#d0f5e7}
body :is(.toasts.error,.form-error,.error){color:var(--danger)}
body .toasts.error{background:#542d3b;border-color:#dd829788}
body :is(table th,table td){border-color:#92607655}
body table th{background:#34212f;color:var(--gold)}
body :is(.brand>img,.mobile-brand>img,.initial-loading>img,.newcomer-heading>img){filter:brightness(0) saturate(100%) invert(86%) sepia(23%) saturate(567%) hue-rotate(340deg) brightness(106%) contrast(91%)}
body .story-detail-hero,body .story-people .cast-photo.framed-portrait{background-color:#281a25}
/* Keep the accepted solid play canvas and its actor framing. Shared controls use the site palette. */
body .novel-layout,body .novel-layout .message-column,body .novel-layout .novel-page-background,body .novel-layout .novel-visual,body .novel-layout .scene-banner,body .novel-layout .composer{background:#141414!important}
body .novel-layout .novel-page-background::after,body .novel-layout[data-decoration=true] .novel-visual::before{background:none!important}

/* Content changes in place; the established story-card grids are reused. */
.hall-content-viewport{position:relative;min-width:0;isolation:isolate;overflow-anchor:none}
.hall-content-viewport[data-transition=slide]{overflow:hidden}
.hall-content-panel{min-width:0;width:100%}
.hall-content-outgoing{position:absolute;inset:0 auto auto 0;width:100%;pointer-events:none}
.hall-content-viewport[aria-busy=true]{cursor:progress}
.hall-content-viewport .hall-section:first-child{margin-top:22px}
.hall-active-list>.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px}
.hall-active-list>.section-title>.button{font-size:12px;padding:8px 12px;min-height:36px}
.hall-result-status{display:block;position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.hall-rank-tabs{display:flex;gap:8px;align-items:center;margin:16px 0 0;overflow-x:auto;scrollbar-width:none;max-width:100%}
.hall-rank-tabs::-webkit-scrollbar{display:none}
.hall-rank-tabs button{flex:none;border:1px solid #95657b55;border-radius:99px;background:#402b3866;color:var(--muted);padding:8px 17px;font-size:13px;min-height:36px;white-space:nowrap}
.hall-rank-tabs button[aria-pressed=true]{background:#ff93ab20;color:#ffc3cf;border-color:#ff93ab77;font-weight:750}
.hall-channel-tabs,.hall-mobile-account{display:none}
@media(min-width:721px){
 .main[data-hall-view=overview] .hall-rank-tabs{display:none}
 body .bottom-nav{display:none!important}
}
@media(max-width:720px){
 body .about-hero>div{background:linear-gradient(145deg,#3b2734,#2e1c2b)}
 body .bottom-nav:not(.hidden){display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;position:fixed;inset:auto 0 0;height:calc(64px + env(safe-area-inset-bottom));padding:5px 8px calc(5px + env(safe-area-inset-bottom));background:#2a1928f5;border-top:1px solid #a06b8250;z-index:45;backdrop-filter:blur(18px)}
 body .bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:52px;font-size:10px!important;line-height:1.4;color:#c0a7b6;border-radius:10px;min-width:0;width:auto;max-width:100%;padding:4px 0!important}
 body .bottom-nav button.active{color:var(--accent);background:#ff93ab12}
 body .bottom-nav button svg{width:21px;height:21px}
 body .bottom-nav .mobile-create svg{width:30px;height:30px;padding:5px;background:var(--accent);color:#42162b;border-radius:9px}
 body .main:not(.chat-mode){padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
 body .topbar .site-nav{display:none}
 body :is(.topbar,.top-actions){min-height:56px;height:56px}
 body:is([data-page=home],[data-page=catalogue],[data-page=board]) .topbar{display:none}
 body:is([data-page=home],[data-page=catalogue],[data-page=board]) .main{display:flex;flex-direction:column;padding-top:0}
 .palace-discovery{order:-2;position:sticky;top:0;z-index:30;padding:12px 0 10px;margin:0 -1px 0;background:#241722f5;backdrop-filter:blur(16px);border-bottom:1px solid #b9809830}
 .palace-discovery>form{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:10px;align-items:center}
 .palace-discovery .search{grid-row:1;grid-column:1;height:42px;border-radius:12px;padding:0 12px}
 .palace-discovery .search input{font-size:16px}
 .hall-mobile-account{display:flex;align-items:center;justify-content:center;grid-row:1;grid-column:2;min-height:42px;color:#f3d38e}
 .hall-channel-tabs{display:flex;align-items:center;gap:28px;grid-row:2;grid-column:1;padding:3px 0 0}
 .hall-channel-tabs button{position:relative;padding:5px 1px 9px;font-size:19px;font-weight:650;min-height:40px;color:var(--muted)}
 .hall-channel-tabs button[aria-pressed=true]{color:var(--text);font-weight:850}
 .hall-channel-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:4px;left:1px;right:1px;height:4px;border-radius:5px;background:var(--accent)}
 .palace-discovery .discovery-advanced{grid-row:2;grid-column:2;justify-self:end}
 .palace-discovery .discovery-advanced>summary{padding:8px;border:0;font-size:0;gap:0;min-height:40px}
 .palace-discovery .discovery-advanced>summary svg{width:19px;height:19px}
 .palace-discovery .filter-tabs{display:none;grid-column:1/-1;grid-row:3;gap:7px;margin:0;overflow-x:auto;scrollbar-width:none;padding:1px 0 4px}
 .palace-discovery[data-category-open=true] .filter-tabs{display:flex}
 .palace-discovery .filter{font-size:12px;min-height:35px;padding:6px 12px;border-radius:99px}
 .palace-discovery .story-count{display:none}
 .hall-rank-tabs{margin:6px 0 0;gap:7px;padding-bottom:2px}
 .hall-rank-tabs button{padding:7px 13px;min-height:33px;font-size:12px;border-color:transparent;background:#46303c99}
 .hall-rank-tabs button[aria-pressed=true]{background:#ff93ab25;border-color:#ff93ab55}
 .main>.home-manifesto,.main>.page-heading{order:-1}
 .hall-content-viewport{flex:none}
 .hall-content-viewport .hall-section:first-child{margin-top:20px}
 body .toasts{bottom:calc(82px + env(safe-area-inset-bottom))}
 body .sidebar.menu-open{z-index:80;background:#2a1928fa}
}
@media(prefers-reduced-motion:reduce){.hall-content-panel{animation:none!important;transition:none!important}}
