/* Compact existing memory/supply presentation; purchase state stays in runtime. */
.meta-compact-heading,.shop-supply-heading{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;width:100%}
.meta-compact-heading>h3,.shop-supply-heading>h3{flex:0 1 auto;min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere}
.meta-compact-heading>.info-control,.shop-supply-heading>.info-control{flex:0 0 auto}
.shop-item[data-shop-item="memory"]{position:relative;display:block;min-height:0;padding:16px}
.shop-item[data-shop-item="memory"]>.shop-art{position:absolute;top:16px;left:16px;display:block;width:48px;height:48px;aspect-ratio:1;object-fit:contain}
.shop-item[data-shop-item="memory"]>div{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;min-width:0}
.shop-item[data-shop-item="memory"] .meta-compact-heading{min-height:48px;padding-left:60px}
.shop-item[data-shop-item="memory"] .meta-compact-summary{width:100%;margin:0;padding:0}
.shop-item[data-shop-item="memory"] .meta-contribution{display:flex;flex-direction:column;gap:8px;min-width:0;width:100%}
.shop-item[data-shop-item="memory"] .meta-level-progress{display:block;width:100%;margin:0}
.shop-item[data-shop-item="memory"] .meta-note{margin:0;white-space:normal;overflow-wrap:anywhere}
.shop-item[data-shop-item="memory"] .shop-buy{min-height:48px;margin:0;white-space:normal;overflow-wrap:anywhere}
/* These are separate real groups, not adjacent tiles in a single grid. */
.shop-content .cosmetic-grid+.cosmetic-grid{margin-top:20px}
/* The square bitmap fills the existing portrait frame; tilt/shadow are inherited. */
.rewarded-card[data-rewarded-type="supply"] .rewarded-card-art img{
  width:82px;height:104px;max-width:min(82px,100%);max-height:104px;
  object-fit:cover;object-position:center;overflow:hidden;
}
@media(min-width:521px) and (max-width:680px){
  .rewarded-card[data-rewarded-type="supply"] .rewarded-card-art img{
    width:64px;height:82px;max-width:min(64px,100%);max-height:82px;
  }
  /* The rotated card fits the 90px row; the unchanged soft shadow gets its own gap. */
  .rewarded-card[data-rewarded-type="supply"] .rewarded-card-art{margin-bottom:24px}
}
