/* receipt {"source":"kasten/platform/js/sides.css","source_sha":"f4c457cf4685","why":"platform code, new_car_sow_001 scope item 9 SCREEN + WINDOW STACK (NEW-D-003)","writer":"kasten/platform/factory.py","writer_sha":"1a878b7c75b6"} */
/* TWO SIDES (sow_094 THE PART; sides.mjs): the play on one side, the people on the other; the flip is one mark (html[data-flip]).
   The part places; a skin styles inside a zone and never places one, so the part's placing wins over a skin's (the !important below is that
   rule, and nothing else). The game side's first zone takes the height left and scrolls in itself; the hand stays at the foot. */
/* :root raises the part one step over a felt's own frame rule on its box (a skin's #app[data-fit] grid), and no further */
:root :is(#app, main)[data-sides="two"] { display: flex !important; flex-direction: column !important; align-items: stretch !important; max-width: none !important; }
:root #app[data-sides="two"] { height: 100dvh; min-height: 0; }
:root :is(#app, main)[data-sides="two"] > * { align-self: stretch !important; }
/* a felt that is its own box (main) takes the page's width and the height under the bar, as a skin's #app does */
#app:has(> main[data-sides="two"]) { max-width: none !important; height: 100dvh; min-height: 0; }
:root main[data-sides="two"] { width: auto !important; align-self: stretch !important; margin-inline: 0 !important; flex: 1 1 0; min-height: 0; }
.sides { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, var(--sides-play, 7fr)) minmax(0, var(--sides-talk, 3fr)); gap: 16px; padding: 8px 16px 16px; }
.sides > .side { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.sides > .side > * { grid-area: auto !important; position: relative !important; inset: auto !important; margin-inline: 0 !important; flex: none; min-width: 0; }
.sides > [data-side="game"] > :first-child { flex: 1 1 0; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; }
.sides > [data-side="people"] { overflow-y: auto; overscroll-behavior: contain; }
html[data-flip] .sides > [data-side="game"] { order: 2; }
/* the coins at the top of the people side, one person a line (CG-D-1951) */
.sides > [data-side="people"] > .chiprow { grid-template-columns: minmax(0, 1fr); margin: 0; }
/* the gold "Your go" band: on two sides it lies INSIDE the bar's empty middle (cue.mjs "inside the top bar, never over the felt"), so neither
   side moves when it is drawn (a 52px drop under the bar on every go of yours moved both sides, measured 2026-12-03) */
#app:has(.sides) > .topbar > .gocue { top: 50%; left: 50%; right: auto; width: max-content; max-width: 34%; padding-block: 4px; transform: translate(-50%, -50%); }
/* flipped, the widths go with the sides: the play keeps the wide column */
html[data-flip] .sides { grid-template-columns: minmax(0, var(--sides-talk, 3fr)) minmax(0, var(--sides-play, 7fr)); }
