/* GIFs & memes shelf (Wave 5, Mawari, 2026-12-03). Loaded only by pages on that shelf. */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.gm-preview { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; margin: 4px 0; border: 1px solid var(--rule-2); image-rendering: auto; }
.gm-cmp { color: var(--fire); }
.gm-stagewrap { position: relative; margin-top: 12px; display: flex; justify-content: center; background: var(--paper); border: 1px solid var(--rule); padding: 8px; }
.mm-canvas { display: block; max-width: 100%; max-height: 75vh; width: auto; height: auto; touch-action: none; }
.mm-canvas:focus-visible { outline: 2px solid var(--fire); outline-offset: 2px; }
.gm-anim { image-rendering: pixelated; max-width: 100%; }

.gm-frames { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 8px; }
.gm-frame { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 12px; align-items: center; padding: 8px; background: var(--paper); border: 1px solid var(--rule); cursor: grab; }
.gm-frame.dragging { opacity: .5; }
.gm-thumb { width: 80px; height: 80px; }
.gm-name { overflow-wrap: anywhere; color: var(--ink); min-width: 0; }
.gm-delay { display: flex; gap: 6px; align-items: center; font-size: var(--small); color: var(--ink-3); }
.gm-delay input { width: 6.5rem; }
.gm-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.gm-start.gm-compact .drop { padding: 8px 16px; }

.gs-grid { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.gs-item { display: grid; gap: 4px; padding: 6px; background: var(--paper); border: 1px solid var(--rule); justify-items: center; }
.gs-item canvas { width: 96px; height: 96px; }
.gs-pick { display: flex; gap: 6px; align-items: center; font-size: var(--small); color: var(--ink-2); }

.px-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 12px 0; }
.px-pair canvas { max-width: 100%; height: auto; display: block; border: 1px solid var(--rule-2); }
.px-after { image-rendering: pixelated; }
.px-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.px-sw { width: 22px; height: 22px; border: 1px solid var(--rule-2); display: inline-block; }

@media (max-width: 560px) {
  .gm-frame { grid-template-columns: 64px 1fr; }
  .gm-thumb { width: 64px; height: 64px; }
  .gm-delay, .gm-acts { grid-column: 1 / -1; justify-content: start; }
}
