/* Inventory palette: pale Astilbe blossoms, slate-blue leaves and muted gold.
   Filter decorative backgrounds only, never item art, text or rarity colours. */
:root{--astilbe-frame-filter:saturate(.65) brightness(.97)}
body #milestones-dialog.docked-panel{background-image:none!important;isolation:isolate}
body #milestones-dialog.docked-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/milestones-menu-new.png?build=e9a96a5f87c84d9d') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #library-dialog.docked-panel{background-image:none!important;isolation:isolate}
body #library-dialog.docked-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/Library.png?build=668f26ee093e63fd') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #skills-dialog.docked-panel{background-image:none!important;isolation:isolate}
body #skills-dialog.docked-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/Library.png?build=668f26ee093e63fd') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #adventurer-inspection{background-image:none!important;isolation:isolate}
body #adventurer-inspection::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/Library.png?build=668f26ee093e63fd') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #adventure-menu.docked-panel{background-image:none!important;isolation:isolate}
body #adventure-menu.docked-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/journal-menu.png?build=2fabb4386ec1d258') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #bank-dialog.service-panel{background-image:none!important;isolation:isolate}
body #bank-dialog.service-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/bank-menu-inventory.png?build=311cac74fb5006ac') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #shop-dialog.service-panel{background-image:none!important;isolation:isolate}
body #shop-dialog.service-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/shop-menu.png?build=c69d0ee86cbfff12') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #craft-dialog.service-panel{background-image:none!important;isolation:isolate}
body #craft-dialog.service-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/crafting-menu.png?build=912ff08d72abf764') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #game-guide.patch-notes-panel{background-image:none!important;isolation:isolate}
body #game-guide.patch-notes-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:transparent url('assets/ui/patch-notes.png?build=ecf6f45e7513ac52') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #milestones-dialog .skills-milestones-button{background-image:none;isolation:isolate}
body #milestones-dialog .skills-milestones-button::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("assets/ui/skills-button.png?build=eba0c191a7a97c6e") center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
body #character-select,html.game-ui-ready body #character-select:modal{background-image:none!important;isolation:isolate}
body #character-select::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('assets/ui/char-select-screen.png?build=458249d7bacee4e6') center/100% 100% no-repeat;filter:var(--astilbe-frame-filter)}
#milestones-dialog #character-stats>div.stat-extra,.adventurer-stat{background-image:none!important;isolation:isolate}
.adventurer-stat{position:relative}
#milestones-dialog #character-stats>div.stat-extra::before,.adventurer-stat::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('assets/ui/milestones-menu-new.png?build=e9a96a5f87c84d9d') 13.36% 34.38%/249.65% 2744.44% no-repeat;filter:var(--astilbe-frame-filter)}
.mobile-xp-frame{filter:var(--astilbe-frame-filter)}

/* Reuse the inventory's outer artwork on plain rectangular menus without changing their boxes. */
body #overlay:not(.quest-dialog) .dialog,
body #world-map-dialog,
body #game-guide:not(.patch-notes-panel),
body .mobile-layout-editor,
body .mobile-rotate {
 border-image-source:url('assets/ui/inventory-frame2.png?build=105ca7755a2967b8');
 border-image-slice:70;
 border-image-width:18px;
 border-image-outset:0;
 border-image-repeat:stretch;
 background-color:#09111b;
 box-shadow:0 16px 48px #0009;
}
:root{
 --popup-surface:radial-gradient(ellipse at top,#20334c33,transparent 65%),linear-gradient(135deg,#0d1825,#09111b 55%,#111b29);
 --popup-border:#aa9073;--popup-text:#eee9de;--popup-muted:#bdafc7;
 --popup-button:linear-gradient(110deg,#172435,#0b1420 50%,#172435);
}

.mobile-xp-frame{object-fit:cover;object-position:50% 50%}
