/* Complete the pale-paper theme inside existing chat and sect pages. */
#game-root :is(.world-chat-announcement-list,.world-chat-log,.world-chat-composer,
 .sect-task-view,.sect-kungfu-row,.sect-duty-card,.sect-duty-card.is-locked) {
 background:#e0dccf; border-color:#aaa18b; color:#30382f; opacity:1;
}
#game-root :is(.world-chat-announcement,.world-chat-message,.sect-kungfu-row,.sect-duty-card) {
 background:linear-gradient(135deg,#eee9dc,#dcd7c8);border:1px solid #aaa18b;
 border-radius:5px;box-shadow:inset 0 0 0 2px #f4efdf66;
}
#game-root .world-chat-message.is-current-player,#game-root .sect-duty-card.is-running {background:#dedfce;border-color:#868c71;}
#game-root :is(.world-chat-announcement p,.world-chat-message__content) {color:#30382f;font-size:14px;line-height:1.65;}
#game-root :is(.world-chat-announcement__heading strong,.world-chat-message__heading strong,.world-chat-message__player) {color:#30382f;font-size:15px;}
#game-root :is(.world-chat-announcement__heading time,.world-chat-message__heading time,.world-chat-message__heading span,
 .world-chat-composer__footer span,.world-chat-empty,.world-chat-announcement-empty,.world-chat-status) {color:#5b5e50;font-size:12px;}
#game-root button.world-chat-message__player,#game-root button.sect-kungfu-row__name {
 background:transparent!important;box-shadow:none;border:0;color:#30382f!important;
}
#game-root button.world-chat-message__player::after,#game-root button.sect-kungfu-row__name::after {display:none;}
#game-root .world-chat-composer textarea {background:#f0ecdf!important;color:#30382f;font-size:14px;border-color:#98927b;}
#game-root .world-chat-composer textarea::placeholder {color:#646657;}
#game-root :is(.world-chat-composer,.sect-task-hall,.sect-kungfu-library) button:disabled,
#game-root .dungeon-card button:disabled {background:#d2cfc2!important;color:#585d50!important;border-color:#a4a08f!important;opacity:1!important;}
#game-root :is(.sect-task-hall,.sect-kungfu-library) :is(p,span,li,strong,h3,b) {color:#343b30;}
#game-root .sect-kungfu-row__type {color:#535a4a;font-size:13px;}
#game-root .sect-kungfu-row__name {font-size:16px;}
#game-root .sect-kungfu-row .sect-kungfu-row__exchange {font-size:12px;min-height:36px;}
#game-root .sect-kungfu-row {min-height:46px;}
#game-root .sect-kungfu-library__list {max-height:min(65vh,520px);}
#game-root .sect-task-view {padding:10px;gap:10px;width:100%;}
#game-root .sect-duty-card__info strong {font-size:16px;color:#30382f;}
#game-root .sect-duty-card__info :is(p,span) {font-size:13px;color:#535a4a;line-height:1.5;}
#game-root .sect-duty-card__button {font-size:13px;}
#game-root :is(.sect-duty-card__countdown,.sect-construction-remaining) {font-size:13px!important;color:#535a4a!important;}
#game-root .sect-task-section :is(h3,li) {font-size:14px;line-height:1.6;}
#game-root .sect-task-section li.is-insufficient {color:#914839;}
#game-root .sect-building-page {
 background:transparent;grid-template-rows:minmax(180px,48%) auto;align-content:start;
 padding:8px;gap:10px;overflow-y:auto;
}
#game-root .sect-building-page__media {background:#e5e0d2;border-color:#a59b80;border-radius:4px;padding:3px;}
#game-root .sect-building-page__media img {object-fit:cover;border-radius:2px;}
#game-root .sect-building-page__media span {color:#535a4a;font-size:14px;}
#game-root .sect-building-page__functions {background:transparent;border:0;box-shadow:none;padding:0;}
#game-root .sect-building-function-list {gap:8px;}
#game-root .sect-building-function {min-height:42px;font-size:14px;}
#game-root :is(.sect-building-function,.sect-duty-card,.sect-kungfu-row,.world-chat-announcement) {position:relative;}
#game-root :is(.sect-building-function,.sect-duty-card,.sect-kungfu-row,.world-chat-announcement)::after {
 content:"";position:absolute;inset:3px;pointer-events:none;opacity:.6;
 background:var(--silk-corner-0) left top/8px 8px no-repeat,var(--silk-corner-2) right bottom/8px 8px no-repeat;
}
#game-root .sect-building-function-page {background:transparent;}
#game-root .dungeon-card.is-locked {opacity:1;filter:none;}
#game-root .dungeon-card__art {background:#ddd7c7;overflow:hidden;border-radius:5px;filter:none;}
#game-root .dungeon-card__art img {width:100%;height:100%;object-fit:cover;filter:none;opacity:1;}
#game-root .dungeon-card :is(.dungeon-card__recommendation,.dungeon-card__daily) {color:#535a4a!important;font-size:13px;}
#game-root .dungeon-card :is(h3,.dungeon-card__name) {color:#30382f!important;}
#game-root :is(.page-panel,dialog) :is(.world-chat-composer,.sect-task-hall,.sect-kungfu-library,.dungeon-card) button:disabled {background:#d2cfc2!important;color:#585d50!important;opacity:1!important;}
@media(max-width:400px){
 #game-root .sect-kungfu-row {grid-template-columns:34px minmax(0,1fr) 92px;gap:4px;}
 #game-root .sect-duty-card {padding:9px;gap:7px;}
 #game-root .sect-duty-card__info strong {font-size:15px;}
}
