/* Original palette and artwork remain intact; reuse the existing ornamental vocabulary. */
#game-root .page-panel:not(.cultivate-panel):not(.is-scene-mode) {
 background-image:var(--silk-paper-grain),url('../assets/images/themes/jade-v20/page-ornament.svg'),linear-gradient(145deg,#bfccb9,#abc0b0) !important;
 background-size:120px 120px,480px 170px,100% 100% !important;
 background-position:center,center bottom,center !important;
 background-repeat:repeat,no-repeat,no-repeat !important;
}
#game-root :is(.daily-practice-task,.daily-practice-milestone,
 .cave-operation-bar,.cave-building-card,.spirit-root-summary-card,.spirit-formation-material,
 .attribute-basic-section,.attribute-source-section,.reserved-slot-card,
 .alchemy-control-panel,.forging-control-panel,.alchemy-material-slot,.forging-material-slot,
 .sect-duty-card,.sect-task-section,.dungeon-card,.shop-product-card,
 .artifact-detail-section,.artifact-cultivation-card,.physique-card,.physique-panel-section,
 .companion-current,.companion-known-card,.spirit-beast-profile,.spirit-beast-card,
 .newcomer-task-row,.server-opening-competition-reward-card,.kungfu-card,
 .settings-section,.mail-detail-content,.slot-selection-context,.slot-selection-board,
 .black-market-listing-section,.black-market-purchase-detail):not(.is-current-player):not(.is-selected):not(.is-running) {
 background:var(--silk-corner-0) left 3px top 3px/10px 10px no-repeat,
  var(--silk-corner-2) right 3px bottom 3px/10px 10px no-repeat,
  var(--silk-paper-grain) center/100px 100px repeat,
  linear-gradient(135deg,#c8d1be,#b6c8b5) !important;
}
#game-root dialog {
 background:var(--silk-corner-0) left 6px top 6px/16px 16px no-repeat,
  var(--silk-corner-2) right 6px bottom 6px/16px 16px no-repeat,
  var(--silk-paper-grain) center/120px 120px repeat,
  linear-gradient(135deg,#c3ceba,#acc2b2) !important;
}
#game-root .newcomer-activity-page .daily-practice-task.is-complete {
 border-color:#8fa38c;
}

/* Artifact customization uses the same readable jade controls as the game. */
#game-root [data-role="artifact-custom-dialog"] {
 max-height:min(640px,calc(var(--game-base-height) - 32px),calc(100dvh - 24px));
}
#game-root [data-role="artifact-custom-dialog"] .artifact-action-dialog__content {
 max-height:min(638px,calc(var(--game-base-height) - 34px),calc(100dvh - 26px));
 scrollbar-width:none;
 overscroll-behavior:contain;
}
#game-root [data-role="artifact-custom-dialog"] .artifact-action-dialog__content::-webkit-scrollbar { display:none; }
#game-root [data-role="artifact-custom-dialog"] .artifact-choice-section {
 border-color:#96aa96;
 background:rgba(222,230,210,.2);
}
#game-root [data-role="artifact-custom-dialog"] :is(legend,.artifact-action-summary) { color:#244e4f!important; }
#game-root [data-role="artifact-custom-dialog"] .artifact-choice-grid--appearance { grid-template-columns:repeat(3,minmax(0,1fr)); }
#game-root [data-role="artifact-custom-dialog"] label span {
 min-height:36px;
 box-sizing:border-box;
 padding:6px 4px;
 border:1px solid #8fa58e;
 border-radius:7px;
 background:var(--silk-paper-grain) center/100px 100px repeat,linear-gradient(135deg,#d2dbc7,#bccdb7)!important;
 color:#244e4f!important;
 font-size:.76rem;
 line-height:1.35;
 cursor:pointer;
}
#game-root [data-role="artifact-custom-dialog"] input:checked + span {
 background:linear-gradient(135deg,#2a6060,#1d484e)!important;
 color:#fff0c9!important;
 border-color:#b5a36b;
 box-shadow:inset 0 0 0 1px rgba(235,222,179,.22);
}
#game-root [data-role="artifact-custom-dialog"] input:focus-visible + span { outline:2px solid #245d61; outline-offset:2px; }
#game-root [data-role="artifact-custom-dialog"] label.is-disabled span {
 background:#b9c5b2!important;
 color:#596954!important;
 opacity:1;
 cursor:default;
}

#game-root .bag-panel,
#game-root .bag-slot-grid,
#game-root .dungeon-panel,
#game-root .dungeon-list {
  /* Hide scrollbar chrome only; retain each container's existing overflow. */
  scrollbar-width: none;
  scrollbar-gutter: auto;
  -ms-overflow-style: none;
}

#game-root .bag-panel::-webkit-scrollbar,
#game-root .bag-slot-grid::-webkit-scrollbar,
#game-root .dungeon-panel::-webkit-scrollbar,
#game-root .dungeon-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
