/* «Имаджинариум»: its own bits of a round on the big screen, one look on the shared screen (/tv/) and on a PC player's
   stage (owner 2026-10-29: «версии некоторых экранов в ПК и ТВ почти не отличаются» → one code for both). The view is
   «Что за мем?»'s (meme-stage.css `.mms-root`); the markup and the moving part are shared/client/im-stage.ts, which puts
   `.ims` on the root. The page supplies the palette (--im-ink, --im-cream, --im-on-ink, --light-ink, --light-card and
   meme-stage.css's tokens).

   The storyteller on the cream prompt card (an ink «Рассказчик» plate and the chip), «выбирает карту…» while the
   association is made, face-down cards while they are played, the cards upright with the artwork untouched. */
.ims .tv-im-teller { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.ims .tv-im-teller-label { padding: 4px 12px; border-radius: 10px; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--im-on-ink); background: var(--im-ink); }
.ims .tv-im-teller .rp-player { font-size: 26px; color: var(--light-ink); }
.ims .tv-im-thinking { margin: 0; font-size: 30px; font-weight: 600; color: #5a4636; text-align: center; text-wrap: balance; }
.ims.is-im-association .tv-meme-hint { display: none; }
.ims.is-im-association :is(.tv-meme-side, .tv-foot) { display: none; }
.ims.is-voting .tv-im-teller { margin-bottom: 8px; }
.ims.is-voting .tv-im-teller .rp-player { font-size: 20px; }
.ims.is-voting .tv-im-thinking { font-size: 22px; }
.ims .tv-im-backs { height: 220px; max-width: 1100px; }
.ims .tv-im-back {
    position: relative; border-radius: var(--cut-1); background: var(--im-ink); box-shadow: var(--cut-shadow); opacity: .22; rotate: -1deg;
    background-image: repeating-linear-gradient(45deg, rgb(114 179 217 / 30%) 0 3px, transparent 3px 16px), repeating-linear-gradient(-45deg, rgb(255 240 202 / 18%) 0 3px, transparent 3px 16px);
    border: 3px solid var(--im-cream); transition: opacity .3s ease, transform .4s cubic-bezier(.3, 1.45, .5, 1);
}
.ims .tv-im-back:nth-child(even) { border-radius: var(--cut-2); rotate: 1.2deg; }
.ims .tv-im-back.is-played { opacity: 1; animation: mms-cut-in .55s cubic-bezier(.3, 1.45, .5, 1) both; }
.ims .tv-im-table .tv-meme-card { padding: 8px; }
.ims .tv-im-table .tv-meme-card-image { border-radius: 12px; }
/* A card is the size of its upright picture (im-stage.ts sets --im-card-w / -h; the grid's cell is bigger), centred in the cell. */
.ims .tv-im-table .tv-meme-card { place-self: center; width: min(100%, var(--im-card-w, 100%)); height: min(100%, var(--im-card-h, 100%)); }
/* The backs stand upright like the cards. */
.ims .tv-im-back { justify-self: center; height: 100%; aspect-ratio: 2 / 3; }
/* With cards (owner 2026-10-29: «на пк же можно карты в 1 ряд отобразить - крупнее получатся»): the prompt is a strip
   on top (Рассказчик, the chip and the association in one line), the cards take the whole width under it, one row
   when that makes them biggest (im-stage.ts memeGrid on IM_TABLE_BOX). */
.ims.is-voting .tv-meme-main { flex-direction: column; align-items: stretch; gap: 14px; padding: 0; }
.ims.is-voting .tv-meme-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; align-self: center; max-width: 1100px; padding: 12px 30px; rotate: -.6deg; }
.ims.is-voting .tv-im-teller { margin: 0; }
.ims.is-voting .tv-meme-prompt-text { font-size: 30px; }
.ims.is-voting .tv-im-thinking { font-size: 24px; }
.ims.is-voting .tv-meme-side { flex: 1; min-height: 0; gap: 10px; }
