/* Game artwork (#285). Compact icons are square for live player lists; the projector banner
   keeps its existing landscape ratio. Invalid/slow images reveal the built-in initials fallback. */
.game-art {
    --game-art-radius: 0.45rem;
    position: relative;
    display: block;
    flex: none;
    min-width: 0;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    border-radius: var(--game-art-radius);
    background: #151a2e;
}
.game-art__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--game-color, #9aa5c9) 38%, #0b0f1d), color-mix(in srgb, var(--game-color, #9aa5c9) 14%, #0b0f1d));
    color: color-mix(in srgb, var(--game-color, #9aa5c9) 78%, #fff);
    font: 800 1.35rem/1 var(--gh-font-ui, system-ui, sans-serif);
    letter-spacing: 0.04em;
}
.game-art__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Current-activity icons use the same resolved URL but a plain 🎮 fallback. The square is fixed
   before image bytes arrive, so switching games or a failed request never changes the layout. */
.game-art-icon { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.game-art-icon__fallback,
.game-art-icon__image { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-art-icon__fallback { display: grid; place-items: center; background: #151a2e; color: #fff; line-height: 1; }
.game-art-icon__image { display: block; object-fit: contain; }
.game-art-icon__image[hidden], .game-art-icon__fallback[hidden] { display: none !important; }
.game-art-icon--sm { width: 3.1rem; height: 3.1rem; aspect-ratio: 1; border-radius: .3rem; }
.game-art-icon--sm .game-art-icon__fallback { font-size: 1.45rem; }
.game-art-icon--mobile { width: 1.5rem; height: 1.5rem; border-radius: .3rem; }
.game-art-icon--mobile .game-art-icon__fallback { font-size: 1.1rem; }
.game-art-icon--feed { width: 1.3em; height: 1.3em; border-radius: .2em; }
.game-art-icon--feed .game-art-icon__fallback { font-size: 1em; }
.game-art-icon--projector { width: 100%; height: 100%; border-radius: inherit; }
.game-art-icon--projector .game-art-icon__fallback { font-size: 1em; }
/* Full width of its card, but never a poster: capped in height. */
.game-art--banner { width: 100%; max-height: 6.5rem; }
.game-art--banner .game-art__fallback { font-size: 1.5rem; }
.game-art--sm { width: 3.1rem; aspect-ratio: 1; --game-art-radius: 0.3rem; }
.game-art--sm .game-art__fallback { font-size: 0.8rem; }
.game-art--lg { width: min(100%, 15rem); aspect-ratio: 1; }
