/* Aevy game icons (CPM 1 / CPM 2): the small cover on scripts, and the Game icon picker in Upload / Edit. */
.gm { position: relative; display: inline-block; flex: none; line-height: 0; border-radius: 22%; overflow: hidden; background: var(--surface2, #1b1f27); box-shadow: 0 0 0 1px rgba(127, 127, 127, .35), 0 4px 12px rgba(0, 0, 0, .18); }
.gm img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gm b { position: absolute; inset: auto 0 0 0; padding: 9px 0 3px; border-radius: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font: 800 9px/1 var(--sans, system-ui, sans-serif); letter-spacing: .04em; text-align: center; }

/* inline, next to the title in the script dialog */
.gm-sm { width: 36px; height: 36px; margin-right: 10px; vertical-align: -9px; }
.gm-sm b { display: none; }

/* scripts page card: icon left of the title */
.gm-lg { width: 48px; height: 48px; }
.sc-hd { display: flex; align-items: center; gap: 12px; margin-top: 2px; min-width: 0; }
.sc-hd .sc-title { margin: 0; min-width: 0; flex: 1 1 auto; }

/* pinned to the corner of a tile / post picture */
.gm-abs { position: absolute; top: 10px; left: 10px; z-index: 3; width: 40px; height: 40px; }
.tile .gm-abs { top: 10px; left: 10px; }
@media (max-width: 760px) {
  .tile .gm-abs { top: 6px; left: 6px; width: 28px; height: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
  .tile .gm-abs b { display: none; }
}

/* Game icon picker (Upload dialog) */
#gameBox[hidden] { display: none; }
.gm-pick { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line, rgba(127, 127, 127, .3)); border-radius: 14px; }
.gm-prev { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--surface2, rgba(127, 127, 127, .15)) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .3); opacity: .5; transition: opacity .2s; }
.gm-prev.on { opacity: 1; }
.gm-pick-in { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.gm-pick .hint { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted, #8b95a7); }
@media (prefers-reduced-motion: reduce) { .gm-prev { transition: none; } }

/* feed card (the Scripts page): icon left of the title and description */
.ig-title.has-gm { display: flex; align-items: flex-start; gap: 12px; }
.ig-title.has-gm .ig-tx { min-width: 0; flex: 1 1 auto; }
.ig-title.has-gm .gm { margin-top: 1px; }
