/* Uniform transparent canvases; shared by inventory, detail, market and loadout. */
.arena-design .item-art { padding:28px 12px 12px; isolation:isolate; }
.arena-design .item-art>img[data-item-visual] {
    display:block; width:100%; height:100%; max-width:100%; max-height:100%;
    object-fit:contain; object-position:50% 50%; margin:0; flex:none;
    image-rendering:auto; transform:none; filter:none;
}
.arena-design .item-art .item-id { z-index:2; line-height:1.5; }
.arena-design .item-detail { align-items:start; }
.arena-design .item-detail>.item-art {
    height:auto; min-height:230px; aspect-ratio:2/1; align-self:start;
    padding:22px; display:grid; place-items:center; border-radius:4px 16px 4px 4px;
}
.arena-design .item-detail>.item-art>img[data-item-visual] { width:100%; height:100%; min-height:0; }
.arena-design .item-detail>div { min-width:0; }
.arena-design .product-emblem {
    height:auto; min-height:130px; aspect-ratio:2/1; padding:12px;
    display:grid; place-items:center; overflow:hidden;
}
.arena-design .product-emblem>img[data-item-visual] {
    display:block; width:100%; height:100%; max-width:100%; max-height:100%;
    object-fit:contain; object-position:center; image-rendering:auto; margin:0; transform:none;
}
.arena-design .loadout-card>img[data-item-visual],
.arena-design .personal-loadout .loadout-card>img[data-item-visual] {
    display:block; width:100%; height:auto; aspect-ratio:2/1; min-height:76px; max-height:112px;
    object-fit:contain; object-position:center; image-rendering:auto; margin:12px 0; padding:2px;
}
@media(max-width:700px) {
    .arena-design .item-art { padding:25px 7px 8px; }
    .arena-design .item-detail>.item-art { min-height:195px; padding:16px; }
    .arena-design .product-emblem { min-height:120px; padding:9px; }
}
.arena-design .item-detail>.item-art { width:100%; max-width:100%; min-width:0; grid-template: minmax(0,1fr) / minmax(0,1fr); }
.arena-design .item-detail h1 { overflow-wrap:anywhere; word-break:normal; }
@media(max-width:700px) {
    .arena-design .item-detail { grid-template-columns:minmax(0,1fr); }
    .arena-design .item-detail h1 { font-size:36px; }
}
.arena-design .product-emblem { width:100%; max-width:100%; min-width:0; grid-template:minmax(0,1fr) / minmax(0,1fr); }
.arena-design .product-emblem>img[data-item-visual] { min-width:0; min-height:0; }
.arena-design .item-info h3 { overflow-wrap:anywhere; }
/* Do not enlarge the prepared image beyond its actual pixel dimensions. */
.arena-design .item-art>img[data-item-visual] { max-width:512px; max-height:256px; }
/* Keep pale/white equipment details readable on the daylight surfaces. */
[data-theme=light] .arena-design img[data-item-visual] { filter:drop-shadow(0 1px 1px #15313b66); }
