/* CHIBORIA — Magic Shop 3D item icons ONLY.
   Each illustration occupies a 384×512 cell of the transparent 4×2 sprite atlas.
   No changes to gameplay, item names, prices, inventory or shop interactions. */
.shop-stage .item-card .item-art-3d,
.item-art-3d {
  display:block;
  flex:0 0 auto;
  width:min(100%,136px);
  aspect-ratio:3/4;
  height:auto;
  margin:2px auto 0;
  background-image:url('/assets/items/chiboria-3d-items-spritesheet.png?v=1');
  background-repeat:no-repeat;
  background-size:400% 200%;
  background-position:var(--item-art-x,0%) var(--item-art-y,0%);
  background-color:transparent;
  filter:drop-shadow(0 9px 9px rgba(33,35,72,.20));
  transition:transform .23s ease,filter .23s ease;
  pointer-events:none;
}
.shop-stage .item-card:hover .item-art-3d {
  transform:translateY(-5px) scale(1.06);
  filter:drop-shadow(0 13px 14px rgba(36,37,80,.30));
}
/* Source item IDs deliberately unchanged to preserve purchase and inventory logic. */
.item-art-3d[data-item-art="solflare-saber"]   {--item-art-x:0%;--item-art-y:0%}
.item-art-3d[data-item-art="frostwhisper-bow"] {--item-art-x:33.333333%;--item-art-y:0%}
.item-art-3d[data-item-art="moonroot-staff"]   {--item-art-x:66.666667%;--item-art-y:0%}
.item-art-3d[data-item-art="ironbloom-aegis"] {--item-art-x:100%;--item-art-y:0%}
.item-art-3d[data-item-art="starforge-hammer"]{--item-art-x:0%;--item-art-y:100%}
.item-art-3d[data-item-art="phoenix-plume"]   {--item-art-x:33.333333%;--item-art-y:100%}
.item-art-3d[data-item-art="astral-prism"]    {--item-art-x:66.666667%;--item-art-y:100%}
.item-art-3d[data-item-art="vital-bloom"]     {--item-art-x:100%;--item-art-y:100%}
/* Inspect popup reuses the same detailed icon at a larger scale. */
.item-art-3d.modal-item-sprite {
  width:165px!important;
  max-width:70vw;
  aspect-ratio:3/4;
  height:auto!important;
  margin:0 auto 14px;
  filter:drop-shadow(0 12px 15px rgba(37,39,85,.25));
}
/* Item artwork remains legible at narrow card widths. */
@media(max-width:780px){
  .shop-stage .item-card .item-art-3d {width:min(100%,126px)}
}
@media(max-width:480px){
  .shop-stage .item-card .item-art-3d {width:min(100%,112px)}
}
@media(prefers-reduced-motion:reduce){
  .shop-stage .item-card .item-art-3d{transition:none}
}
