/* Solitaire L1 (owner 11-11, D-20261112-08): the table is locked to the window. Nothing on the page scrolls while you
   play. The felt takes all the room between the hero row and a slim strip under it (the message, the deal line and
   "Play this deal again"); the page script sizes the cards so the longest possible column still fits.
   The footer is hidden (games-lock.css); the card credits are in How to play. */
html:has(body.sl-locked), body.sl-locked { overflow: hidden; overscroll-behavior: none; }
/* overflow: clip (not hidden) so focus() can never scroll the felt out of place */
html body.sl-locked main:not(#s):not(#s):not(#s):not(#s):not(#s):not(#s) { position: fixed; inset: 0; height: var(--gm-vh, 100dvh); padding-top: var(--gm-top, 64px) !important; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; overflow: clip; }
body.sl-locked main > .container { flex: none; }
@media (max-height: 520px) { body.sl-locked main > .container { display: none; } }
body.sl-locked .sl-wrap:not(#s):not(#s) {
  flex: 1 1 0; min-height: 0; max-width: none; margin: 0 auto; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto auto; column-gap: 12px; align-items: stretch;
  padding: 6px var(--r4-pad) 4px; width: 100%;
}
@media (max-width: 440px) { body.sl-locked .sl-wrap:not(#s):not(#s) { padding-left: 8px; padding-right: 8px; } }
@media (min-width: 760px) { body.sl-locked .sl-wrap:not(#s):not(#s) { width: min(100%, calc(var(--bw, 100%) + 2 * var(--r4-pad))); } }
body.sl-locked .sl-wrap > #board.sl-board { grid-column: 1 / -1; grid-row: 1; min-height: 0 !important; height: auto !important; margin: 0 !important; justify-self: stretch; overflow: hidden; overflow: clip; display: flex; flex-direction: column; }
body.sl-locked .sl-board > .sl-bar { flex: none; }
body.sl-locked .sl-board > .sl-top { flex: none; }
body.sl-locked .sl-board > .sl-tab { flex: none; }
/* last resort only (a very small screen, cards at their smallest, a very long column): the felt's columns scroll inside the table */
body.sl-locked .sl-board.tabscroll > .sl-tab { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 4px; margin: 0 -4px; }
/* the strip: the message across the width (room for three lines on a phone, so it never moves the table), under it the deal line */
body.sl-locked .sl-wrap > .sl-msg:not(#s):not(#s) { grid-column: 1 / -1; grid-row: 2; margin: 4px 0 0 !important; max-width: none !important; min-height: 0; height: calc(3 * 1.3em); overflow-y: auto; font-size: calc(15px * var(--fs, 1)); line-height: 1.3; padding: 0 !important; background: none; border: 0; }
body.sl-locked .sl-wrap > .sl-msg:empty:not(#s):not(#s) { display: block; }
@media (min-width: 760px) { body.sl-locked .sl-wrap > .sl-msg:not(#s):not(#s) { height: calc(2 * 1.3em); } }
body.sl-locked .sl-wrap > .sl-status { grid-column: 1 / -1; grid-row: 3; margin: 0 !important; max-width: none !important; min-height: 44px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: calc(14px * var(--fs, 1)); }
body.sl-locked .sl-wrap > .sl-status #moves { min-width: 0; white-space: normal; line-height: 1.2; }   /* wraps to two lines on a phone instead of being cut off */
body.sl-locked .sl-wrap > .sl-status #replay { flex: none; margin: 0; white-space: nowrap; }
body.sl-locked .sl-wrap > #credit { display: none; }
/* the Start panel sits on the table; on a very small screen with A+ it scrolls inside the table */
body.sl-locked .sl-start:not(#s) { overflow-y: auto; overscroll-behavior: contain; }
/* FINALFIX 11-18 (critic final #3; main ruling A): on a computer the table keeps the L1 fit rule, but the tool row and the
   New Game panel use the site's normal text size (18 px, --fs-ui) instead of 16 px; rem, so A+ and browser text size still grow it.
   The tool row's buttons are sized in kit.css (its @layer kit wins over this file), next to the kit's .gm-b2 rule. */
@media (min-width: 760px) {
  body.sl-locked .sl-start-card :is(.gm-seg > button, .gm-note, .sl-start-warn, .sl-go, .sl-keep):not(#s),
  body.sl-locked .sl-set :is(.gm-seg > button, .gm-note, label):not(#s) { font-size: max(1.125rem, 1em) !important; }
}
