/* Original identities, illustrated surfaces and actual rarity colors. */
body.arcane-layout #game-overlay .inventory-v2 :is(.owned-item,.paper-slot):has(img),body.arcane-layout #overlay-body .rarity-illustrated-tile,body.arcane-layout #arcane-loot-thumbs .rarity-illustrated-tile{background:radial-gradient(ellipse at 50% 105%,color-mix(in srgb,var(--rarity,#9baebe) 65%,transparent),transparent 80%),linear-gradient(145deg,#172b3a,#081522)!important;border:1px solid color-mix(in srgb,var(--rarity,#9baebe) 75%,#eafaff)!important;box-shadow:inset 0 0 0 1px #ffffff18,inset 0 -6px 12px color-mix(in srgb,var(--rarity,#9baebe) 22%,transparent),0 0 5px color-mix(in srgb,var(--rarity,#9baebe) 35%,transparent)!important;border-radius:8px!important}
body.arcane-layout #game-overlay .inventory-v2 :is(.owned-item,.paper-slot).selected{border:1px solid #d4ffff!important;box-shadow:inset 0 0 0 1px #35f6ff,inset 0 -4px 12px #1ce9f750,0 0 10px #39f7ffb0!important}
body.arcane-layout #game-overlay .inventory-v2 .item-original-polished,body.arcane-layout #overlay-body .item-original-polished,body.arcane-layout #modalbody .item-original-polished{filter:contrast(1.08) saturate(1.15) drop-shadow(0 1px 0 #eafaff4d) drop-shadow(0 2px 2px #020812bb)!important;image-rendering:auto}
body.arcane-layout #game-overlay .inventory-v2 img.item-faithful-redraw,body.arcane-layout #overlay-body img.item-faithful-redraw,body.arcane-layout #modalbody img.item-faithful-redraw{object-position:-10000px -10000px!important;background-image:var(--faithful-atlas)!important;background-size:var(--faithful-size-x,200%) var(--faithful-size-y,200%)!important;background-position:var(--faithful-x) var(--faithful-y)!important;background-repeat:no-repeat!important;filter:drop-shadow(0 2px 2px #01091399)!important}
body.arcane-layout #game-overlay .inventory-v2-detail img.item-faithful-redraw{width:140px!important;height:140px!important;flex-basis:140px!important;align-self:center!important;padding:0!important;margin:5px auto 14px!important}
body.arcane-layout #game-overlay .inventory-v2 .owned-item img{max-width:none!important;max-height:none!important;width:100%!important;height:100%!important}
body.arcane-layout #game-overlay .inventory-v2 .owned-item{padding:3px!important}
body.arcane-layout #game-overlay .inventory-v2 .paper-slot img.item-faithful-redraw{width:100%!important;height:100%!important;max-height:none!important}
body.arcane-layout #game-overlay .inventory-v2 .inventory-hero-banner{position:relative;isolation:isolate;background:#071b2b!important}
body.arcane-layout #game-overlay .inventory-v2 .inventory-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #071b2b, #071b2b22 80%), var(--inventory-hero-art) right 32% / cover no-repeat;
  z-index: -1;
  opacity: .82;
}

@media(prefers-reduced-motion:no-preference){body.arcane-layout #game-overlay .inventory-v2 .owned-item{transition:box-shadow .18s,border-color .18s,filter .18s}}
body.arcane-layout #game-overlay .inventory-v2 .paper-slot img.item-faithful-redraw{width:36px!important;height:36px!important;min-width:0!important;flex:0 0 36px!important;max-height:36px!important;aspect-ratio:1!important}
body.arcane-layout #game-overlay .inventory-v2 .paper-right .paper-slot img.item-faithful-redraw{width:25px!important;height:25px!important;max-height:25px!important;flex-basis:25px!important}
body.arcane-layout #game-overlay .inventory-v2 .owned-item img.item-faithful-redraw{aspect-ratio:1!important}
body.arcane-layout #game-overlay .inventory-v2-detail .item-faithful-redraw{margin-top:0!important;margin-bottom:5px!important;flex-basis:110px!important;width:110px!important;height:110px!important}
body.arcane-layout .wallet img.item-faithful-redraw,body.arcane-layout #arcane-loot-panel img.item-faithful-redraw{object-position:-10000px -10000px!important;background-image:var(--faithful-atlas)!important;background-size:var(--faithful-size-x,200%) var(--faithful-size-y,200%)!important;background-position:var(--faithful-x) var(--faithful-y)!important;background-repeat:no-repeat!important;object-fit:contain!important;filter:drop-shadow(0 1px 2px #0008)!important;aspect-ratio:1!important}
body.arcane-layout #arcane-wallet .wallet img.item-faithful-redraw{width:31px!important;height:31px!important;flex-basis:31px!important}
body.arcane-layout #overlay-body .material-chip img.item-faithful-redraw{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important}
body.arcane-layout #overlay-body :is(.workshop-item-icon,.workshop-result-image).item-faithful-redraw{aspect-ratio:1!important;object-fit:contain!important}

/* All item surfaces use the same artwork; native dimensions and equipment rules stay unchanged. */
img.item-faithful-redraw{object-position:-10000px -10000px!important;background-image:var(--faithful-atlas)!important;background-size:var(--faithful-size-x,200%) var(--faithful-size-y,200%)!important;background-position:var(--faithful-x) var(--faithful-y)!important;background-repeat:no-repeat!important;image-rendering:auto;aspect-ratio:1}
