/* Locked play (owner 11-11, D-20261112-08: crossword X3 + X2, Sudoku S2, Solitaire L1). Loaded last on each game page.
   While playing the footer is hidden; its links are in the Menu and its credits are in How to play. */
body[data-page="sudoku"] footer,
body[data-page="solitaire"] footer,
body.xw-locked footer { display: none; }
/* credits live in How to play (the dialog has them) */
body[data-page="sudoku"] .sd-right > .gm-lic,
body[data-page="solitaire"] .sl-wrap > #credit,
body.xw-locked .gm-lic { display: none; }

/* ── Sudoku S2: the page scrolls as before, the number pad is docked. Phones: along the bottom of the screen like a
   keyboard (Restart and Show solution sit under the board, which scrolls). From 768 px: beside the board, in view. ── */
@media (max-width: 767.98px) {
  body[data-page="sudoku"] .sd-right:not(#s) { position: sticky; bottom: 0; z-index: 30; background: #fff; padding: 6px var(--r4-pad, 16px) 8px; margin: 0 calc(-1 * var(--r4-pad, 16px)); box-shadow: 0 -8px 14px -8px rgba(6, 47, 55, .5); }
  body[data-page="sudoku"] .sd-right .sd-panel { gap: 6px; padding-bottom: 6px; }
  body[data-page="sudoku"] .sd-wrap { padding-bottom: 0; }
  body[data-page="sudoku"] .sd-left > .sd-more-moved:not(#s) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; padding: 0; }
  body[data-page="sudoku"] .sd-left > .sd-more-moved .gm-b2 { min-height: 48px; width: 100%; }
}
@media (min-width: 768px) {
  body[data-page="sudoku"] .sd-wrap:not(#s) { justify-content: center; align-items: start; }
  body[data-page="sudoku"] .sd-right:not(#s) { grid-column: 2; position: sticky; top: calc(var(--gm-top, 76px) + 12px); }
}
@media (min-width: 768px) and (max-width: 899.98px) { body[data-page="sudoku"] .sd-wrap:not(#s) { grid-template-columns: minmax(0, 560px) minmax(260px, 340px); column-gap: 24px; } }
/* tablets (768 to 899 px): the pad beside the board uses the three-column keys of the wider pad, and the tool buttons
   stack their icon over the word, so the pad fits its column */
@media (min-width: 768px) and (max-width: 899.98px) {
  body[data-page="sudoku"] .sd-keys:not(#s) { grid-template-columns: repeat(3, 1fr); }
  body[data-page="sudoku"] .sd-keys .erase { grid-column: span 3; min-height: 48px; }
  body[data-page="sudoku"] .sd-panel > .sd-tools .gm-b2:not(#s) { flex-direction: column; gap: 0; font-size: 15px; padding: 2px; }
  body[data-page="sudoku"] .sd-panel > .sd-tools:not(#s) { gap: 6px; padding: 8px 8px; }
}
/* REL-INT (2026-11-16): very narrow widths (390 at 200% zoom = 195 CSS px). Layout only, play unchanged: the top bar
   may wrap onto a second line and Restart / Show solution stack, instead of pushing the page sideways. The board is
   sized by fit() in sudoku/index.html (smallest square 16 px there). */
@media (max-width: 15rem) {
  body[data-page="sudoku"] .sd-bar.gm-band:not(#s) { flex-wrap: wrap; row-gap: 6px; }
  body[data-page="sudoku"] .sd-left > .sd-more-moved:not(#s) { grid-template-columns: minmax(0, 1fr); }
  body[data-page="sudoku"] .sd-left > .sd-more-moved .gm-b2 { white-space: normal; }
}
/* FINALFIX 11-18 (critic final #7): a tool that cannot be used yet (Undo before a move, Hint/Check before a game) keeps the
   button's shape on the felt but reads "not yet": a muted cream face, a dashed outline (the site's disabled sign, as on the
   calendar's disabled arrow) and muted dark words (#4F5E66 on #E6E1D6, 5.6:1), instead of a faded grey-teal tile */
:is(.sd-panel, .sl-board) .gm-b2:is([disabled], [aria-disabled="true"]):not(#s):not(#s) {
  opacity: 1 !important; background: #E6E1D6 !important; color: #4F5E66 !important; border: 2px dashed #4F5E66 !important;
  box-shadow: none !important; cursor: default; }
:is(.sd-panel, .sl-board) .gm-b2:is([disabled], [aria-disabled="true"]):not(#s):not(#s) * { color: inherit !important; }
