/* front_door: the two cheering Mosscaps (arena.MASCOTS, web/mascots.js; ps-site-polish, Nov 26 2026). Aaron: "i would
   love to have the mushrooms, dancing on the site... when people are playing... one on each side, like mascots". Loaded
   after theater.css on the homepage and /live. The art is the game's own red cap, cut from its sheet by
   mascot_build.py (web/mosscap-cheer.png: 27 cells of 72 x 64, 9 across), shown only at whole multiples of its own
   pixel (--s is 1, 2 or 3) with crisp edges, and moved only by whole cells and whole art pixels: web/mascots.js writes
   the cell (--c, --r), the step in art pixels (--dx, --dy) and the facing (--f) once on .mc, and both Mosscaps read the
   same values, so they move as one. The right one is the left one in a mirror (scaleX(-1) on its box), so when the
   left one steps left the right one steps right. They stand beside the stage or under it, never on it: the layer
   takes no room in the page and no presses, and it is not drawn at all until someone is playing. */
.mcs .stage { position: relative; }      /* their layer is laid out from the stage (theater's own position still wins) */
.arena.mcs { overflow-x: clip; }         /* the clear edge of a cell past the window's side never makes the page scroll sideways */
.mc { position: absolute; inset: 0; z-index: 2; pointer-events: none; --s: 2; --c: 8; --r: 0; --dx: 0; --dy: 0; --f: -1; }
.mc i { position: absolute; left: 0; top: 0; display: block; width: calc(72px * var(--s)); height: calc(64px * var(--s)); }
.mc .mc-r { transform: scaleX(-1); }
.mc b { display: block; width: 100%; height: 100%;
  background: url("/static/mosscap-cheer.png") no-repeat;
  background-size: calc(648px * var(--s)) calc(192px * var(--s));
  background-position: calc(var(--c) * -72px * var(--s)) calc(var(--r) * -64px * var(--s));
  image-rendering: crisp-edges; image-rendering: pixelated;
  transform: translate(calc(var(--dx) * var(--s) * 1px), calc(var(--dy) * var(--s) * 1px)) scaleX(var(--f)); }

/* Room for them, kept whether they are there or not, so nothing moves when they come.
   Beside: a window wide for its height puts the Be next card beside the picture (theater.css), which leaves 40 px at
   each end, not enough to stand in. So while this page is the big stage the picture gives up 72 px a side there (1232
   wide instead of 1324 in a 1920 x 969 window), and the two stand at twice their size. Theater and full screen are
   untouched.
   Under: where the card sits under the stage (a phone, a tablet, a narrow window) the gap between the score strip and
   the card is 96 px, their floor at twice their size, instead of 32 (64 on a phone). */
@media (min-aspect-ratio: 49/25) and (min-width: 1500px) and (min-height: 800px) {
  .arena.big.mcs .stage:not(.th-on) { width: min(100vw - 688px, (100vh - var(--around)) * 16 / 9); }
}
.arena.big.mcs .cabinet { row-gap: 96px; }
@media (max-width: 1180px) { .arena.mcs .cabinet { row-gap: 96px; } }
@media (max-width: 700px) { .arena.mcs .cabinet, .arena.big.mcs .cabinet { row-gap: 64px; } }      /* the rail's own 32 px makes it 96 */
