/* Soft purple frames echo the site palette around transparent artwork. */
.item-image{
  display:grid;place-items:center;position:relative;flex:none;overflow:hidden;
  width:72px;height:56px;border:1px solid var(--border);border-radius:12px;
  background:linear-gradient(145deg,var(--accent-soft),var(--surface));color:var(--subtle);border-color:var(--accent-line);isolation:isolate;
}
.item-image__asset{
  grid-area:1/1;width:100%;height:100%;min-width:0;min-height:0;
  object-fit:contain;padding:5px;
}
.item-image[data-state="loading"] .item-image__asset{opacity:0}
.item-image__placeholder{
  grid-area:1/1;width:24px;height:24px;fill:none;stroke:currentColor;
  stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;opacity:.45;
}
.item-image [hidden],.item-image[hidden]{display:none}

/* Give artwork and names enough room within the results table. */
#table-wrap table{min-width:940px}
#table-wrap .identity-col,#table-wrap .identity-cell{width:36%;min-width:340px}
#table-wrap .identity-cell{padding:16px 20px}
#table-wrap .identity-col{padding-left:20px}
#table-wrap .skin-cell{gap:16px;min-height:66px}
#table-wrap .skin-info{flex:1;min-width:0}
#table-wrap .skin-name{max-width:100%;width:100%;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
#table-wrap .item-favorite-button{
  flex:none;width:36px;height:36px;min-height:36px;margin:0 0 0 2px;padding:8px;
  border-color:transparent;border-radius:9px;background:transparent;color:var(--subtle);
}
#table-wrap .item-favorite-button svg{display:block;width:18px;height:18px;stroke-width:1.5}
#table-wrap .item-favorite-button:hover,#table-wrap .item-favorite-button:focus-visible{
  background:var(--accent-soft);color:var(--accent-text);
}
#table-wrap .item-favorite-button[aria-pressed="true"]{color:var(--accent-text);background:var(--accent-soft)}
#table-wrap .item-favorite-button[aria-pressed="true"] svg{fill:currentColor;stroke:currentColor}

.item-image--list{width:84px;height:66px;border-radius:14px}
.item-image--detail{width:144px;height:112px;border-radius:20px}
.item-image--card{
  width:116px;height:94px;position:absolute;right:18px;top:58px;
  border:0;border-radius:14px;pointer-events:none;
}
.item-image--card .item-image__asset{padding:7px}
.hot-card--with-image .hot-name,.hot-card--with-image .hot-id{padding-right:126px}
.hot-card--with-image .hot-name{min-height:54px}
.hot-card--with-image .hot-price-row{margin-top:18px}
.item-image--detail .item-image__asset{padding:10px}
.item-image--detail .item-image__placeholder{width:36px;height:36px}
.detail-identity{display:flex;align-items:center;gap:24px;min-width:0;width:100%}
.detail-identity-copy{min-width:0;flex:1}
.detail-header h1{font-size:clamp(22px,1.85vw,28px);line-height:1.45;letter-spacing:-.4px}
.detail-header #favorite-toggle{margin-top:12px;min-height:36px;padding:5px 12px;font-size:13px;border-color:var(--border);border-radius:8px}
.detail-copy-icon{width:17px;height:17px;margin-left:10px}
#detail-image:empty{display:none}

@media(max-width:1100px){
  #table-wrap .identity-col,#table-wrap .identity-cell{width:340px}
}
@media(max-width:760px){
  #table-wrap .identity-col,#table-wrap .identity-cell{width:288px;min-width:288px}
  #table-wrap .identity-cell{padding:14px}
  #table-wrap .identity-col{padding-left:14px}
  #table-wrap .skin-cell{gap:12px;min-height:58px}
  #table-wrap .skin-name{font-size:14px;line-height:1.55}
  #table-wrap .item-favorite-button{width:40px;height:44px;min-height:44px;padding:10px;margin-left:0}
  .item-image--list{width:72px;height:58px;border-radius:12px}
  .item-image--card{right:16px;top:54px;width:108px;height:90px}
  .hot-card--with-image .hot-name,.hot-card--with-image .hot-id{padding-right:118px}
  .detail-identity{gap:20px}
  .item-image--detail{width:112px;height:92px;border-radius:16px}
  .item-image--detail .item-image__asset{padding:8px}
  .detail-header h1{font-size:23px}
}
@media(max-width:480px){
  #table-wrap .identity-col,#table-wrap .identity-cell{width:264px;min-width:264px}
  #table-wrap .skin-cell{gap:10px}
  .item-image--list{width:64px;height:54px;border-radius:11px}
  .item-image--card{right:18px;top:52px}
  .detail-identity{gap:16px;align-items:flex-start}
  .item-image--detail{width:88px;height:76px;border-radius:14px}
  .item-image--detail .item-image__asset{padding:6px}
  .detail-header h1{font-size:20px;line-height:1.5;letter-spacing:0}
  .detail-header #favorite-toggle{margin-top:10px;min-height:40px}
}
