/* Saturated full-tile rarity backgrounds; the outline is only a secondary cue. */
.rarity-0{--rarity:#bdc6cb;--rarity-light:#869198;--rarity-dark:#353e48}
.rarity-1{--rarity:#8fe46a;--rarity-light:#538f38;--rarity-dark:#193d21}
.rarity-2{--rarity:#82caff;--rarity-light:#367fc0;--rarity-dark:#16365e}
.rarity-3{--rarity:#dc9aff;--rarity-light:#9653b8;--rarity-dark:#452059}
.rarity-4{--rarity:#ffe194;--rarity-light:#c38c32;--rarity-dark:#644015}
.hero-art .armory-bag #weapons .bag-tile,.hero-art .armory-slot:not(.empty),.detail-item-art,.merge-preview>article,.loot-item32{
background:radial-gradient(ellipse at 40% 10%,#ffffff30,transparent 65%),linear-gradient(145deg,var(--rarity-light),var(--rarity-dark));box-shadow:inset 0 1px 0 #ffffff55,inset 0 -2px 5px #0005,0 2px 5px #0004;border-color:var(--rarity)}
.painted-gear33{display:inline-block;width:100%;height:100%;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 2px 2px #0009);pointer-events:none}
.armory-slot .painted-gear33{width:54px;height:54px;flex-shrink:0}
.hero-art .armory-bag #weapons .bag-tile .painted-gear33{width:48px;height:48px}
.detail-item-art .painted-gear33{width:80px;height:80px}.slot-upgrade-row .painted-gear33{width:64px;height:64px}
.merge-preview article>.painted-gear33{width:110px;height:110px;display:block;margin:0 auto 15px}
.loot-item32 .painted-gear33{width:40px;height:40px}.gear-detail-heading .detail-item-art{flex-shrink:0}
.hero-art #armory-slot{display:none}
#gear-dialog33{position:fixed;inset:0;margin:auto;width:min(590px,calc(100vw - 28px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:0;border:2px solid #b79859;border-radius:16px;background:#202a23;color:#f4e4be;box-shadow:0 20px 100px #000b, inset 0 0 0 4px #d5af5733;overflow:auto}
#gear-dialog33::backdrop{background:#08120ed9;backdrop-filter:blur(5px)}
#gear-dialog33 .gear-detail{margin:0;border:0;padding:42px 26px 26px;background:radial-gradient(ellipse at top left,#475140,#1b251f 75%)}
#gear-dialog33 h2{font:24px Georgia;color:#f3d99e;line-height:1.25}#gear-dialog33 p,#gear-dialog33 small{color:#c8bea6}
#gear-dialog33 .gear-close33{position:absolute;right:10px;top:8px;width:32px;height:32px;padding:0;background:#18231a;color:#ead2a0;border:1px solid #8b754c;font:25px Georgia;z-index:2}
#gear-dialog33 .gear-compare.single33{grid-template-columns:1fr}#gear-dialog33 .gear-compare{gap:10px;margin:18px 0}
#gear-dialog33 .gear-actions{margin:18px 0;gap:8px}#gear-dialog33 .gear-actions button{font-size:13px}
.slot-info33{border-top:1px solid #8f7b514f;padding-top:18px;display:flex;gap:15px;align-items:center;flex-wrap:wrap}.slot-info33>div{flex:1;min-width:180px}.slot-info33 strong{display:block;color:#f7dda5;font:24px Georgia;margin:6px 0}.slot-info33 small{font:10px system-ui;letter-spacing:1px}.slot-info33 p{font-size:12px;line-height:1.5;margin:5px 0}.slot-info33 button{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}.slot-info33 button:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.7)}.slot-info33 .upgrade-note33{flex-basis:100%;margin:0}
#power-toast33{position:fixed;top:24px;left:50%;transform:translateX(-50%);z-index:10000;display:flex;gap:15px;align-items:center;min-width:250px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:16px 26px 16px 18px;border:1px solid #bca568;border-radius:12px;background:linear-gradient(115deg,#243629f5,#111d19fa);box-shadow:0 12px 45px #0008,inset 0 0 0 3px #aa8a4230;pointer-events:none;color:#f8e5b2}
#power-toast33[hidden]{display:none}.power-emblem33{display:grid;place-items:center;width:49px;height:55px;border:1px solid #c5a457;border-radius:8px;background:radial-gradient(#9a783d66,#322b1c);flex-shrink:0}.power-emblem33 .ui-icon{width:36px;height:36px}#power-toast33 small{display:block;font:10px system-ui;letter-spacing:1.4px;color:#c9c4a9}#power-toast33 strong{display:block;margin:5px 0;font:bold 27px Georgia;white-space:nowrap}#power-toast33 b{color:#9aef76;margin-left:10px;font:700 23px system-ui}#power-toast33.power-loss33 b{color:#ff9b86}#power-toast33.power-loss33{border-color:#b97b61}#power-toast33 div>span{font:11px system-ui;color:#a8b4a2}
@media(max-width:600px){#gear-dialog33 .gear-detail{padding:42px 16px 20px}#gear-dialog33 h2{font-size:20px}#gear-dialog33 .gear-detail-heading{gap:12px}#gear-dialog33 .gear-compare{grid-template-columns:1fr}.slot-info33 button{width:100%}#power-toast33{top:12px;min-width:230px;padding:12px 18px}#power-toast33 strong{font-size:24px}}
#power-toast33{right:auto;bottom:auto;margin:0;overflow:visible}
.hero-art #page-raids .duel-slots .painted-gear33{width:48px;height:48px;max-width:100%}.shop-item-icon .painted-gear33{max-width:100%;max-height:100%}
/* Legacy atlas has a dark matte: blend it into the rarity color, not over it. */
.armory-slot:not(.empty) .painted-item,.bag-tile .painted-item,.detail-item-art .painted-item,.merge-preview .painted-item,.loot-item32 .painted-item{filter:none}
.rarity-0{--rarity-light:#65727c;--rarity-dark:#27323c}.rarity-1{--rarity-light:#3d7e2b;--rarity-dark:#173c20}.rarity-2{--rarity-light:#266da7;--rarity-dark:#15365c}.rarity-3{--rarity-light:#7e43a1;--rarity-dark:#412051}.rarity-4{--rarity-light:#b17b27;--rarity-dark:#573817}

.painted-item{background-image:url("assets/items-atlas-v33.png")}
