/* Item tiles (packs, cardholders, coupons, potions) on Search and Inventory.
   Markup: renderItemTile() in api/garam_item_catalog.js. Same footprint as card tiles. */
.garam-item-media { position:relative; display:flex; align-items:center; justify-content:center;
    width:100%; aspect-ratio:188 / 279; overflow:hidden; border-radius:13px;
    background:radial-gradient(circle at 50% 40%, #fff 0%, var(--garam-c-d6efff, #d6efff) 75%); }
.garam-item-image { position:relative; z-index:1; max-width:78%; max-height:78%; object-fit:contain;
    filter:drop-shadow(0 6px 12px rgba(var(--garam-rgb-156399, 21,99,153),.25)); }
.garam-item-media-cardholder .garam-item-image { width:100%; height:100%; max-width:none; max-height:none; filter:none; }

/* Card + cardholder (the bot's /profile composite): renderItemTile() and renderCard(holderOverlay).
   The stage keeps the card-tile shape; the composite keeps the holder canvas shape inside it. */
.garam-holder-stage { display:flex; align-items:center; justify-content:center; width:100%; height:100%;
    aspect-ratio:188 / 279; }
.garam-holder-composite { position:relative; display:block; }
.garam-holder-composite.is-wide { width:100%; height:auto; }
.garam-holder-composite.is-tall { height:100%; width:auto; }
.garam-holder-card { position:absolute; object-fit:cover; border-radius:5.5% / 3.7%; }
.garam-holder-frame { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
/* In a card tile the stage replaces the card picture (the same box). The pages' own
   .garam-card-image rule sets display:block, so the centering is restored here. */
.garam-card-open .garam-holder-stage.garam-card-image { display:flex; align-items:center; justify-content:center;
    height:auto; border-radius:0; }
/* A cardholder on a card opens the 3D viewer. */
button.garam-holder-open { display:block; border:0; padding:0; margin:0; background:transparent; cursor:pointer; color:inherit; }
button.garam-holder-open:focus-visible { outline:3px solid var(--garam-c-2396e2, #2396e2); outline-offset:2px; border-radius:13px; }
/* 🏷️ on sale, like the bot's inventory. */
.garam-item-marks { position:absolute; z-index:2; top:6px; right:6px; display:inline-flex; gap:3px;
    padding:3px 6px; border-radius:9px; background:rgba(255,255,255,.85); font-size:14px; line-height:1; }
.garam-item-text { display:flex; flex-direction:column; gap:2px; padding:8px 4px 0; min-width:0; }
.garam-item-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    color:var(--garam-c-123c5c, #123c5c); font-size:14px; font-weight:800; }
.garam-item-kind, .garam-item-code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    color:var(--garam-c-527f99, #527f99); font-size:12px; }
.garam-item-code { font-size:11px; font-family:ui-monospace, Consolas, monospace; padding-bottom:3px; }
html[data-garam-mode="dark"] body.garam-shell-body .garam-item-media { background:var(--garam-dark-hover) !important; }
html[data-garam-mode="dark"] body.garam-shell-body .garam-item-marks { background:rgba(0,0,0,.55) !important; }
html[data-garam-mode="dark"] body.garam-shell-body .garam-item-name { color:var(--garam-dark-text) !important; }
html[data-garam-mode="dark"] body.garam-shell-body .garam-item-kind,
html[data-garam-mode="dark"] body.garam-shell-body .garam-item-code { color:var(--garam-dark-muted) !important; }
