/* Shared media states keep artwork space stable without exposing broken alt text. */
img[src*="/media/"],img[data-src*="/media/"]{color:transparent}
img[data-sm-state="loading"],img[data-sm-state="error"]{visibility:hidden!important}
.sm-media-host{position:relative}
.sm-media-box{position:absolute;display:grid;place-items:center;pointer-events:none;overflow:hidden;z-index:1}
.sm-media-shape,.sm-content-line{background:linear-gradient(105deg,rgba(127,145,166,.13) 20%,rgba(175,189,208,.25) 45%,rgba(127,145,166,.13) 70%);background-size:240% 100%;animation:sm-media-shimmer 1.8s ease-in-out infinite}
.sm-media-shape{display:block;width:68%;max-height:90%;aspect-ratio:1/1.13;clip-path:polygon(50% 0,86% 10%,96% 23%,90% 75%,74% 91%,50% 100%,26% 91%,10% 75%,4% 23%,14% 10%)}
.sm-media-box[data-kind="event"] .sm-media-shape{width:54%;aspect-ratio:1/1.8;clip-path:polygon(8% 0,92% 0,100% 5%,100% 29%,93% 32%,93% 38%,100% 41%,100% 59%,93% 62%,93% 68%,100% 71%,100% 95%,92% 100%,8% 100%,0 95%,0 71%,7% 68%,7% 62%,0 59%,0 41%,7% 38%,7% 32%,0 29%,0 5%)}
.sm-media-box[data-kind="collection"] .sm-media-shape{width:62%;aspect-ratio:1/1.35;clip-path:polygon(8% 0,92% 0,100% 6%,100% 94%,92% 100%,8% 100%,0 94%,0 6%)}
.sm-media-box[data-kind="trophy"] .sm-media-shape{aspect-ratio:1/1.2;clip-path:polygon(8% 12%,25% 12%,25% 0,75% 0,75% 12%,92% 12%,92% 40%,78% 53%,64% 53%,59% 70%,59% 82%,78% 82%,83% 100%,17% 100%,22% 82%,41% 82%,41% 70%,36% 53%,22% 53%,8% 40%)}
.sm-media-box[data-kind="profile"] .sm-media-shape{width:85%;aspect-ratio:1;clip-path:circle(50%)}
.sm-media-box[data-state="error"] .sm-media-shape{animation:none;opacity:.55}
.sm-media-error{position:absolute;bottom:8%;width:92%;text-align:center;color:var(--muted,#8b98aa);font:600 11px/1.4 system-ui}
.sm-content-skeletons{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px;padding:12px 0;pointer-events:none}
.sm-content-card{border:1px solid var(--border,#394555);border-radius:16px;padding:18px;min-height:190px;display:grid;justify-items:center;gap:14px}
.sm-content-card .sm-media-shape{height:130px;width:auto}
.sm-content-card[data-kind="event"] .sm-media-shape{aspect-ratio:1/1.8;clip-path:polygon(8% 0,92% 0,100% 5%,100% 30%,92% 35%,100% 40%,100% 60%,92% 65%,100% 70%,100% 95%,92% 100%,8% 100%,0 95%,0 70%,8% 65%,0 60%,0 40%,8% 35%,0 30%,0 5%)}
.sm-content-card[data-kind="collection"] .sm-media-shape{aspect-ratio:1/1.35;clip-path:inset(0 round 8px)}
.sm-content-line{height:9px;width:75%;border-radius:4px}
@keyframes sm-media-shimmer{from{background-position:120% 0}to{background-position:-120% 0}}
@media(prefers-reduced-motion:reduce){.sm-media-shape,.sm-content-line{animation:none}}
@media(max-width:600px){.sm-content-skeletons{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sm-content-card[data-kind="profile"] .sm-media-shape{aspect-ratio:1;clip-path:circle(50%)}
.sm-content-card[data-kind="trophy"] .sm-media-shape{aspect-ratio:1/1.2;clip-path:polygon(8% 12%,25% 12%,25% 0,75% 0,75% 12%,92% 12%,92% 40%,78% 53%,64% 53%,59% 70%,59% 82%,78% 82%,83% 100%,17% 100%,22% 82%,41% 82%,41% 70%,36% 53%,22% 53%,8% 40%)}

/* Small mascot slots retain the profile silhouette without overlapping error text. */
.sm-media-box[data-kind="profile"][data-state="error"] .sm-media-error{display:none}

/* Keep compact stamps and cards legible while retaining their shaped fallback. */
.sm-media-box[data-compact="true"] .sm-media-error{display:none}

.sm-media-box[data-state="error"] .sm-media-shape{animation:none}
