/* STUFF ON THE ARENA'S GRID (nf-stuff.js): until his sprites, a box its size with its name on it (Maayan, 2026-11-24: "for
   now use placeholder 'box'"); solid when nothing passes it, outlined and see-through when it is walked over. Never over a
   button (pointer-events none). */
.nf-stuff { position: absolute; left: 0; bottom: 0; display: grid; place-items: center; box-sizing: border-box; pointer-events: none; border-radius: 4px;
  transition: left 300ms var(--g-ease), bottom 300ms var(--g-ease), width 300ms var(--g-ease), height 300ms var(--g-ease); }
.nf-stuff img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.nf-stuff span { padding: 2px 4px; font: 700 11px/1.15 system-ui, sans-serif; text-align: center; color: #f3e9d2; text-shadow: 0 1px 3px rgb(0 0 0 / .8); }
.nf-stuff[data-blocks="all"] { background: #5a4632; border: 2px solid #2a1f14; box-shadow: 0 6px 12px rgb(0 0 0 / .45); }
.nf-stuff[data-blocks="move"] { background: #7a6650; border: 2px solid #3a2c1d; box-shadow: 0 4px 8px rgb(0 0 0 / .4); }
.nf-stuff[data-blocks="no"] { background: rgb(243 233 210 / .12); border: 2px dashed rgb(243 233 210 / .7); }
.nf-stuff.has-pic[data-blocks] { background: none; border: 0; box-shadow: none; border-radius: 0; }   /* his picture: nothing round it */
.nf-stuff { transition: opacity 220ms var(--g-ease); }
.nf-stuff.is-set { transition: opacity 220ms var(--g-ease), left 300ms var(--g-ease), bottom 300ms var(--g-ease), width 300ms var(--g-ease), height 300ms var(--g-ease); }   /* moving only once it is in */
.nf-stuff.is-wait { opacity: 0; }   /* on its squares, unseen until its picture is in (nf-stuff.js) */
.nf.is-paused .nf-stuff { transition: none; }
@media (prefers-reduced-motion: reduce) { .nf-stuff { transition: none; } }
/* ITS FLOOR (nf-stuff.js: the theme's terrain on the mat): its two tiles and rim; a party's square keeps its colour */
.nf__plane[data-terrain] { background: var(--nf-ta); border-color: var(--nf-te); transition: background var(--g-mid) var(--g-ease); }
.nf__plane[data-terrain] > i.is-dark:not([data-party]) { background: var(--nf-tb); }
/* THE GROUND IN PIECES (nf-ground.js): the flat mat unseen (its squares still the places), the pieces under everything on
   them; a party's square its colour over its piece */
.nf__board.has-ground .nf__plane { opacity: 0; }
.nf__ground { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* NO COLOURED SQUARES (Maayan, 2026-11-27: "Cells should not have colors anymore"): a fighter's side and its turn its ring's (sprite.js halo) */
/* THE ONE PLAYING NOW (nf-ground.js): its square gold, its party's colour round it, a little ground between them */
.nf-now { position: absolute; left: 0; top: 0; width: 64px; height: 64px; box-sizing: border-box; transform-origin: 0 0; pointer-events: none; z-index: 5; border: 4px solid var(--nf-team, #f0c24b); border-radius: 3px; transition: opacity 200ms; }
.nf-now::after { content: ""; position: absolute; inset: 4px; border-radius: 1px; background: rgb(240 194 75 / .72); }
.nf-now[data-party="1"] { --nf-team: var(--nf-p1, #f0c24b); } .nf-now[data-party="2"] { --nf-team: var(--nf-p2, #e8574a); }
.nf-now[hidden] { display: none; } .nf-now { display: none; }   /* the one playing now: its ring glows instead */
