/* SATCHEL SIDE = LEFT (Eivind, 2026-10-17: "satchel switcher never actually switches the satchel over").
   The setting (Settings > The game > Satchel side, localStorage 'ssw-hand', js/stage-sides.js) puts body.ps-hand-left|right on <body>.
   Right is the band as designed (css/band.css, letterbox.css, tile-size.css, phone-c.css: everything is laid out from the RIGHT edge).
   Left is the exact mirror of the whole CONTROLS CLUSTER: satchel | item tile | rewind + Next, the open satchel and the tile's fall into
   the bag, with the same distances from the LEFT edge (the same --row-right / --row-tiler / --row-ctlr numbers rowDims publishes).
   The people go to the other third in js/play-stage.js placeRow (and footCast on phones). The words and the choices are centred and
   are not touched here. Linked after tile-size.css and phone-c.css; only overrides. */

/* ---- desktop, tablet and the console stage (body.ps-rowr = the right cluster exists) ---- */
html body.ps-on.ps-rowr.ps-hand-left .ps-sat{left:var(--row-right,24px)!important;right:auto!important}
html body.ps-on.ps-rowr.ps-hand-left .ps-sat.open{left:var(--row-right,24px)!important;right:auto!important}
html body.ps-on.ps-rowr.ps-hand-left .ps-sat:not(.open){align-items:flex-start!important}
html body.ps-on.ps-rowr.ps-hand-left .ps-sat.open .ps-bag{align-self:flex-start}
html body.ps-on.ps-rowr.ps-hand-left .ps-bag .n{transform-origin:0 0}
/* rewind + Next keep their reading order (back on the left, forward on the right); the pair starts at the tile's side */
html body.ps-on.ps-rowr.ps-hand-left #psCtl{right:auto;left:var(--row-ctlr,140px);justify-content:flex-start}
html body.ps-on.ps-hand-left .ps-itile:not([hidden]){right:auto;left:var(--row-tiler,144px)}
@media (min-width:700px){
  html body.ps-on.ps-hand-left .ps-itile:not([hidden]){right:auto;left:calc(var(--row-tiler,144px) + var(--row-u,52px) * .21)}
}
/* the got-tile falls into the bag's mouth: the bag is now on its LEFT */
html body.ps-on.ps-hand-left .ps-itile.ps-drop{animation-name:psTileDropL}
@keyframes psTileDropL{0%{transform:none;opacity:1}60%{opacity:1}100%{transform:translate(calc(var(--row-u,52px) * -.95),calc(var(--row-u,52px) * .25)) scale(.25);opacity:0}}
@media (prefers-reduced-motion:reduce){html body.ps-on.ps-hand-left .ps-itile.ps-drop{animation:none;opacity:0}}
html body.ps-still.ps-hand-left .ps-itile.ps-drop{animation:none;opacity:0}

/* ---- phones, layout C: the strip under the header; the folded satchel + tile at the LEFT end, the people from the right ---- */
@media (max-width:699px){
  html body.ps-on.ps-hand-left .ps-sat:not(.open){right:auto!important;left:max(8px,env(safe-area-inset-left))!important;align-items:flex-start!important}
  html body.ps-on.ps-hand-left .ps-sat:not(.open) .ps-bag{transform-origin:0 0!important}
  html body.ps-on.ps-hand-left:not(.ps-rowr) .ps-itile:not([hidden]){right:auto!important;left:calc(max(8px,env(safe-area-inset-left)) + 68px)!important}
}
