/* REL-GM (owner directive 2026-11-16 §1): the games' one accent is Mulberry Wine (#7A4A63, the Solitaire back colour);
   the older brick accents (typed Sudoku numbers, clue rules, Show Errors, wrong letters, messages) use it. Buttons on the
   teal bands are white or warm ivory; the gold left is gameplay marking only (chosen square, selected card, "Here"). */
body.gm { --vs-sienna: #7A4A63; --vs-sienna-h: #693F55; --vs-sienna-d: #341F2A; }
/* Round 2026-11-06 refinements, loaded AFTER games.css (and hub.css / solitaire.css where used). Mockup only.
   1. One compact game header row: Back, the title truly centred, the game's New action (directive, Sudoku).
   2. The "How to play" control and its dialog (all three games).
   3. Landing: three equal game cards (11-05c design 1) with a small "New this week" marker. */

/* ── 1. game header row ──
   Three columns 1fr / auto / 1fr: the title sits in the centre of the SCREEN, not the centre of what is left over
   after the Back link, so it is centred whatever the two side items measure. */
.gm-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0 8px; padding: 4px var(--r4-pad) 4px; border-bottom: 1px solid var(--vs-line); background: #fff; }
.gm-head > .gm-back { justify-self: start; font-size: var(--t-sm); padding: 0 6px 0 0; margin: 0; min-height: 44px; white-space: nowrap; }
.gm-head h1 { margin: 0 !important; text-align: center; font-size: calc(24px * var(--fs, 1)) !important; line-height: 1.15 !important; font-weight: 800 !important; color: var(--vs-teal) !important; white-space: nowrap; }
.gm-head .gm-act { justify-self: end; display: flex; align-items: center; gap: 8px; }
.gm-head .gm-act .gm-b2 { min-height: 44px; padding: 4px 12px; white-space: nowrap; }
.gm-head .gm-meta { grid-column: 1 / -1; text-align: center; margin: 0 0 2px; font-size: var(--t-sm); color: var(--vs-muted); }
@media (max-width: 599.98px) { .gm-head .gm-meta { display: none; } .gm-head h1 { font-size: calc(22px * var(--fs, 1)) !important; } }
@media (max-width: 359.98px) { .gm-head { gap: 0 4px; padding-left: 8px; padding-right: 8px; } .gm-head .gm-act .gm-b2 { padding: 4px 8px; font-size: 15px; } .gm-head > .gm-back { font-size: 16px; } }
body.large-text .gm-head .gm-act .gm-b2 { font-size: calc(16px * var(--fs, 1)); }
@media (max-width: 359.98px) { body.large-text .gm-head .gm-act .gm-b2 { font-size: 16px; padding: 4px 6px; } body.large-text .gm-head h1 { font-size: 22px !important; } }
@media (min-width: 1024px) { .gm-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-top: 6px; padding-bottom: 6px; } .gm-head h1 { font-size: calc(28px * var(--fs, 1)) !important; } }

/* ── 2. How to play ── a small secondary control (never the strong button) with a visible word and a "?" mark */
.gm-howto { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 4px; border: 0; background: none; color: var(--vs-teal); font: 700 var(--t-btn-sm, 16px)/1 var(--vs-font); cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
.gm-howto::before { content: "?"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--vs-teal); font-size: 16px; font-weight: 800; text-decoration: none; flex: none; }
.gm-howto:hover { color: var(--vs-deep); }
.gm-howto:focus-visible { outline: 3px solid var(--vs-focus, #0b0c0c); outline-offset: 2px; border-radius: 0; }

/* REL-GM 2026-11-16: How to play is drawn in the shared popup shell (kit 0d, dialog.vs-pop: head with the title and the X,
   only the body scrolls); the old card, teal top bar, "Close" button and footer rules are removed. */
.gm-help-body:focus-visible { outline: 3px solid var(--vs-focus, #0b0c0c); outline-offset: -3px; }
.gm-help-body { overflow-y: auto; font-size: var(--t-body); line-height: 1.45; outline: none; }
.gm-help-body h3 { margin: 12px 0 2px !important; font-size: calc(19px * var(--fs, 1)) !important; color: var(--vs-ink) !important; line-height: 1.25 !important; }
.gm-help-body h3:first-child { margin-top: 4px !important; }
.gm-help-body p { margin: 0 0 6px; }
.gm-help-body ul { margin: 0 0 6px; padding-left: 1.2em; }
.gm-help-body li { margin: 0 0 3px; }
.gm-help-body kbd { font: 700 .9em/1 var(--vs-font); border: 1.5px solid #9fb6bb; border-bottom-width: 3px; border-radius: 0; padding: 1px 6px; background: #f6f9fa; }
html.gm-help-on { overflow: hidden; }

/* ── 3. landing: three equal cards; "New this week" is a small marker inside the crossword card ── */
.gh-tiles.eq { grid-template-columns: 1fr; }
@media (min-width: 700px) and (max-width: 1023.98px) { .gh-tiles.eq { grid-template-columns: 1fr; } .gh-tiles.eq > :first-child { grid-column: auto; } }
@media (min-width: 1024px) { .gh-tiles.eq { grid-template-columns: repeat(3, 1fr); } }
.gh-tiles.eq .gh-tile { grid-template-columns: 64px 1fr auto; padding: 12px 14px; min-height: 112px; }
.gh-tiles.eq .gh-tile svg.ic { width: 64px; height: 64px; }
@media (min-width: 1024px) {
  .gh-tiles.eq .gh-tile { grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; align-items: start; padding: 16px 18px 18px; min-height: 0; }
  .gh-tiles.eq .gh-tile svg.ic { grid-row: auto; grid-column: 1; width: 88px; height: 88px; margin-bottom: 6px; }
  .gh-tiles.eq .gh-tile p { grid-column: 1 / -1; }
  .gh-tiles.eq .gh-tile h2 { grid-column: 1; }
  .gh-tiles.eq .gh-tile .gh-go { grid-row: 1; grid-column: 2; align-self: start; }
}
.gh-new { position: absolute; top: -11px; right: 14px; display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 0; font: 800 14px/1 var(--vs-font); background: #fbf0ec; color: #7A4A63; border: 1.5px solid #7A4A63; letter-spacing: .01em; }
.gh-new[hidden] { display: none; }
.gh-tile .gh-chip { margin-left: 4px; }
.sd-status { align-items: center; } .sd-status .gm-howto { margin-left: auto; margin-right: -4px; }
@media (max-width: 899.98px) { .sd-bar .gm-seg { flex: 1 1 auto; } }
/* A+ on narrow phones: the site enlarges every h1; in the one-row game header the title keeps a fixed size so the
   row never overflows (the A+ text size still applies to everything else) */
@media (max-width: 419.98px) { body.large-text main .gm-head h1, body main .gm-head h1 { font-size: 22px !important; } }
@media (max-width: 599.98px) { .gm-head { padding-top: 2px; padding-bottom: 2px; } }
/* the site sets every "main h1" with very high specificity (css/pieces/18-system.css:66); match it plus one class */
main .gm-head h1:not(#s):not(#s):not(#s):not(#s) { font-size: calc(24px * var(--fs, 1)) !important; }
@media (max-width: 419.98px) { main .gm-head h1:not(#s):not(#s):not(#s):not(#s) { font-size: 22px !important; } }
@media (min-width: 1024px) { main .gm-head h1:not(#s):not(#s):not(#s):not(#s) { font-size: calc(28px * var(--fs, 1)) !important; } }
.gh-tiles.eq { grid-auto-rows: 1fr; }

/* round 06b: the Sudoku Settings summary is a full 44 px tall tap target (it was 40) */
.sd-right .sd-help > summary, .sd-help > summary { min-height: 44px; }

/* ── round 11-10 (owner D-20261110-14): game pages carry the site header and footer; the page starts below the fixed
   header, whose height site-frame.js measures (it grows with A+ and on narrow screens) ── */
body.gm main { padding-top: var(--gm-top, 56px) !important; }

/* ── Sudoku grid, round 11-10 (owner: "the boxes are not properly even with their borders"). The 3 × 3 box lines are
   grid tracks of their own (2 px + the 1 px gaps either side = 4 px), not shadows laid over the squares, and the page
   sets a whole-pixel square size (--c) so every thin line is exactly 1 px and every square the same size at any width
   and with A+. Board width = 9 squares + 10 gaps + 2 box tracks + 2 × 3 px border. ── */
.sd-board { width: var(--sd-w, min(100%, 560px)); grid-template-columns: repeat(3, var(--c, 1fr)) 2px repeat(3, var(--c, 1fr)) 2px repeat(3, var(--c, 1fr)); grid-template-rows: repeat(3, var(--c, 1fr)) 2px repeat(3, var(--c, 1fr)) 2px repeat(3, var(--c, 1fr)); gap: 1px; aspect-ratio: auto; box-sizing: border-box; }
.sd-cell { box-shadow: none; }
.sd-cell.hint { box-shadow: inset 0 0 0 3px #7A4A63; }
.sd-cell:disabled { cursor: default; }
@media print { .sd-board { --c: 1fr !important; width: 16cm !important; aspect-ratio: 1; } }

/* level name above the board (the level is chosen in the New Game panel) */
.sd-bar .sd-lvname { margin: 0; font-weight: 800; font-size: var(--t-body); color: var(--vs-ink); min-height: 1.4em; }
/* New Game panel: sits on the board (same grid cell), never moves the controls beside it */
/* the panel lies over the board (and, on a narrow screen with A+, a little below it) without moving anything */

.sd-start { position: absolute; top: 0; left: 0; right: 0; min-height: 100%; z-index: 4; display: grid; align-items: center; justify-items: center; background: rgba(255, 255, 255, .9); border-radius: 0; padding: 10px; box-sizing: border-box; min-width: 0; }
.sd-start[hidden] { display: none; }
.sd-start-card { background: #fff; border: 2px solid #3f7a86; border-radius: 0; box-shadow: 0 3px 0 #3f7a86, 0 8px 22px rgba(0,0,0,.18); padding: 14px 16px 10px; width: min(100%, 420px); box-sizing: border-box; display: grid; gap: 8px; justify-items: center; text-align: center; }
.sd-start-card h2 { margin: 0 !important; font-size: calc(26px * var(--fs, 1)) !important; line-height: 1.15 !important; color: var(--vs-teal) !important; }
.sd-start-q { margin: 0; font-weight: 700; font-size: var(--t-body); }
.sd-pick { width: 100%; }
.sd-pick > button { flex: 1 1 0; min-height: 48px; }
.sd-start .sd-lvnote { margin: 0; text-align: center; }
.sd-start-warn { margin: 0; color: var(--vs-ink); font-weight: 700; }
.sd-go { width: 100%; }
.sd-back { margin: 0; padding: 0 4px; min-height: 44px; }
@media (max-width: 419.98px) { .sd-pick { display: grid; grid-template-columns: 1fr 1fr; } .sd-pick > button:nth-child(3) { border-left: 0; } .sd-pick > button:nth-child(n+3) { border-top: 1px solid #9fc2c8; } .sd-start-card { padding: 10px 10px 6px; gap: 6px; } .sd-start { padding: 6px; } }
.sd-start [hidden] { display: none !important; }

/* ── round 3 (owner 11-10: "proper hero sections" on Sudoku, Crossword and Solitaire): the Games page's photo band
   (css/pieces/15-page-bands.css) with the back link above the title and the game's own action beside it. Phones keep
   it compact: no subtitle line, a narrower picture, so the game still starts high on the first screen. ── */

.gm-hero .gm-act { display: flex; align-items: center; gap: 8px; }
.gm-hero .gm-act .gm-b2 { min-height: 44px; padding: 4px 14px; white-space: nowrap; background: #fff; }

.page-photo[data-photo="sudoku"] { --ph-pos: 50% 40%; --ph-z: 1.15; --ph-org: 50% 40%; --ph-pos-w: 50% 45%; --ph-z-w: 1.05; --ph-org-w: 50% 45%; --ph-sat: .8; --ph-br: 1.08; }
.page-photo[data-photo="crossword"] { --ph-pos: 34% 50%; --ph-z: 1.25; --ph-org: 34% 50%; --ph-pos-w: 50% 50%; --ph-z-w: 1; --ph-org-w: 50% 50%; --ph-sat: 1; --ph-br: 1.04; }
.page-photo[data-photo="solitaire"] { --ph-pos: 58% 55%; --ph-z: 1.2; --ph-org: 58% 55%; --ph-pos-w: 50% 52%; --ph-z-w: 1; --ph-org-w: 50% 52%; --ph-sat: .9; --ph-br: 1.05; }

/* ── round 4 (owner 11-10: "why does 'How to play' and 'Settings' have different font sizes? ... a little janky";
   the '‹ Games' hero link in dark brick) ── */
/* one style for every text control in the game areas (How to play, Settings, Restart, Show solution, Print, Play this
   deal again, Keep playing): the button size, bold, the same underline, centred on one line at 44 px tall */
main :is(.gm-howto, .gm-link:not(.gm-back), details > summary.gm-link, details.sd-help > summary):not(#s):not(#s) { font: 700 var(--t-btn-sm, 16px)/1.2 var(--vs-font); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
main :is(details > summary.gm-link, details.sd-help > summary):not(#s):not(#s) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; box-sizing: border-box; }
/* the hero's back link is the site's second colour */

/* Sudoku: New Game above the board is as tall as the tool buttons beside it, so their tops and bottoms line up */
@media (min-width: 900px) { .sd-bar .sd-new { min-height: 52px; } }
/* Sudoku: the board and its controls sit together in the middle of the page, like the Solitaire table */
@media (min-width: 900px) { .sd-wrap:not(#s) { justify-content: center; } }

/* ── round 5 (owner 11-10: "just have a '?' icon and a cog gear icon on the top right (with the cog gear / settings on the
   right)"): How to play and Settings are square icon buttons in the game's own button style, 44 px, at the right end of
   the control row; each has a name for screen readers (aria-label) and a tooltip (title) ── */
.gm-ib:not(#s) { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 44px; min-width: 44px; padding: 0; box-sizing: border-box; flex: none; cursor: pointer; list-style: none; }
.gm-ib::-webkit-details-marker { display: none; }
summary.gm-ib::marker { content: ""; }
.gm-ib svg { width: 24px; height: 24px; display: block; }
details[open] > summary.gm-ib:not(#s) { background: var(--vs-teal-t, #e3f0f1); }
.gm-ib:focus-visible { outline: 3px solid var(--vs-focus, #0b0c0c); outline-offset: 2px; }
/* Sudoku: the row above the board is the control row (level name, New Game, ?, gear); Settings opens as a pop-up */
.sd-bar { position: relative; flex-wrap: nowrap; }
.sd-bar .sd-lvname { flex: 1 1 auto; min-width: 0; }
.sd-bar .sd-new { margin-left: auto; }
.sd-set-pop { position: static; }
.sd-set-pop > .gm-pop-body { top: calc(100% + 6px); }
.sd-set-pop .sd-set { border: 0; padding: 0; }
@media (min-width: 900px) { .sd-bar .gm-ib:not(#s) { width: 52px; height: 52px; } }
/* Crossword: the ? sits at the top right, at the end of the timer row */
.xw-links { align-items: center; }
.xw-timer > .gm-help-ib { margin-left: 12px; }
body.large-text .gm-ib svg { display: block; }

/* ── round 5c (owner 11-10): one family with Solitaire's table. The woven felt (moved here from solitaire-1106.css) also
   makes the dark-teal control band above the Sudoku board and the Crossword grid. ── */
/* woven felt (owner picked option B, round 3; round 4 owner: "too subtle ... too fine and minimal"): a basket weave of
   light threads with a dark edge on a 16 px tile over a fine noise, so the weave shows at normal distance; inline
   SVG only, no image file. The cards and the white controls keep their contrast. */
.sl-board, .gm-band {
  background-color: #0d4b56;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect x='0' y='1' width='8' height='2' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='0' y='3' width='8' height='1' fill='%23000' fill-opacity='0.1'/%3E%3Crect x='0' y='5' width='8' height='2' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='0' y='7' width='8' height='1' fill='%23000' fill-opacity='0.1'/%3E%3Crect x='9' y='0' width='2' height='8' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='11' y='0' width='1' height='8' fill='%23000' fill-opacity='0.1'/%3E%3Crect x='13' y='0' width='2' height='8' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='15' y='0' width='1' height='8' fill='%23000' fill-opacity='0.1'/%3E%3Crect x='1' y='8' width='2' height='8' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='3' y='8' width='1' height='8' fill='%23000' fill-opacity='0.1'/%3E%3Crect x='5' y='8' width='2' height='8' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='7' y='8' width='1' height='8' fill='%23000' fill-opacity='0.1'/%3E%3Crect x='8' y='9' width='8' height='2' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='8' y='11' width='8' height='1' fill='%23000' fill-opacity='0.1'/%3E%3Crect x='8' y='13' width='8' height='2' fill='%23fff' fill-opacity='0.07'/%3E%3Crect x='8' y='15' width='8' height='1' fill='%23000' fill-opacity='0.1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the band: the control row above the puzzle on the felt, white words, the same white buttons and brick New Game as the
   Solitaire table */
.gm-band:not(#s) { border-radius: 0; padding: 8px 10px; box-sizing: border-box; color: #fff; }
.gm-band .gm-b2:not(.sd-new):not(#s) { border-color: #fff4e2; box-shadow: 0 2px 0 #062f37; }
.gm-band .gm-b2:focus-visible, .gm-band summary:focus-visible, .gm-band .gm-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #0b0c0c; }
/* Sudoku */
.sd-bar.gm-band .sd-lvname:not(#s) { color: #fff; }
.sd-bar.gm-band .sd-new:not(#s) { background: #FAF4E9; color: #0d2a30; border-color: #FAF4E9; box-shadow: 0 2px 0 rgba(0,0,0,.35); font-weight: 800; }   /* REL-GM: warm ivory, bold (no brick or yellow buttons) */
.sd-bar.gm-band .sd-new:hover:not(#s) { background: #fff; }
.sd-bar.gm-band:not(#s) { margin-bottom: 0; }
@media (min-width: 900px) { .sd-bar.gm-band .sd-new:not(#s) { min-height: 44px; } .sd-bar .gm-ib:not(#s):not(#s) { width: 44px; height: 44px; } }
/* Crossword: the timer row is the band (timer, Pause, Hide timer, ?) */
.xw-timer.gm-band:not(#s) { min-height: 60px; margin: 0 0 8px; }
.xw-timer.gm-band .xw-time:not(#s) { color: #fff; }
.xw-timer.gm-band .xw-tstate:not(#s) { color: #fff4e2; }
.xw-timer.gm-band.paused .xw-time:not(#s), .xw-timer.gm-band.paused .xw-tstate:not(#s) { color: var(--gm-gold, #e0b13a); }
.xw-timer.gm-band .gm-link:not(#s) { color: #fff; }
.xw-timer.gm-band .gm-link:hover:not(#s) { color: #fff4e2; }

/* Sudoku highlights in gold like Solitaire (owner 11-10): the selected square is gold with dark numbers and a dark
   outline; a hint square is pale gold with a gold ring; the row, column and box keep the pale teal shading (gold there
   turned muddy beside the gold square). Numbers the player types are dark brick; the puzzle's own numbers stay dark. */
.sd-cell.sel:not(#s) { background: #ecc55a; }
.sd-cell.hint:not(#s), .sd-cell.sel.hint:not(#s) { background: #f8e7b5; box-shadow: inset 0 0 0 3px #b8871a; }
.sd-cell.hintarea:not(#s) { background: #fcf4dc; }
.sd-cell:not(.given):not(.wrong):not(#s) { color: var(--vs-sienna, #7A4A63); }
.sd-cell.given:not(#s) { color: var(--vs-ink, #0d2a30); }
.xw-timer.gm-band:not(#s) { flex-wrap: nowrap; gap: 0 10px; }
.xw-timer.gm-band .xw-tstate:not(#s) { flex: 1 1 auto; min-width: 0; }
.xw-timer.gm-band .xw-tbtns:not(#s) { margin-left: auto; flex: none; }
.xw-timer.gm-band > .gm-help-ib:not(#s) { margin-left: 4px; }
@media (max-width: 419.98px) { .xw-timer.gm-band:not(#s) { gap: 0 6px; padding: 6px 8px; } .xw-timer.gm-band .xw-tstate:not(#s) { font-size: 14px; } }

/* ── round 6 (owner 11-10, Sudoku only): plain teal, no felt pattern; the band sits on the grid's top edge as one unit;
   the controls are one panel with the same teal band on top; clear gold shading for the row, column and box ── */
.sd-bar.gm-band:not(#s) { background-image: none; background-color: #0d4b56; border-radius: 0; margin: 0; padding: 8px 10px; min-height: 60px; width: var(--sd-bw, 100%); box-sizing: border-box; }
.sd-board-wrap:not(#s) { margin-top: 0; }
.sd-board-wrap .sd-board:not(#s) { border-top-left-radius: 0; border-top-right-radius: 0; }
.sd-bar .sd-timer { font: 800 var(--t-body, 18px)/1 var(--vs-font); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sd-bar .sd-timer::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2.5M9.5 2.5h5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2.5M9.5 2.5h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sd-bar .sd-timer[hidden] { display: none; }
.sd-bar .sd-lvname:not(#s) { flex: 0 1 auto; }
.sd-bar .sd-new:not(#s) { margin-left: auto; }
/* the panel */
.sd-panel { display: grid; gap: 10px; border: 2px solid #0d4b56; border-radius: 0; background: #fff; overflow: hidden; padding: 0 0 12px; }
.sd-panel > .sd-tools:not(#s) { background: #0d4b56; padding: 8px 10px; min-height: 60px; box-sizing: border-box; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: center; }
.sd-panel > .sd-tools .gm-b2:not(#s) { flex-direction: row; gap: 5px; min-height: 44px; padding: 4px 6px; font-size: 16px; border-color: #fff4e2; box-shadow: 0 2px 0 #062f37; }
.sd-panel > .sd-tools .gm-b2[aria-pressed="true"]:not(#s) { background: #7A4A63; color: #FAF4E9; border-color: #FAF4E9; }   /* REL-GM: was gold; Mulberry with ivory words (fill vs no fill, not hue alone) */
.sd-panel > .sd-tools .gm-b2:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #0b0c0c; }
.sd-panel > .sd-keys:not(#s), .sd-panel > .sd-more:not(#s) { padding: 0 10px; }
.sd-panel > .sd-more:not(#s) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.sd-panel > .sd-more .gm-b2:not(#s) { min-height: 48px; width: 100%; }
.sd-right > .gm-lic:not(#s) { margin: 6px 2px 0; }
@media (max-width: 419.98px) { .sd-panel > .sd-tools:not(#s) { gap: 5px; padding: 8px 6px; } .sd-panel > .sd-tools .gm-b2:not(#s) { flex-direction: column; gap: 0; font-size: 14px; padding: 2px; } .sd-panel > .sd-tools:not(#s) { min-height: 0; } }
body.large-text .sd-panel > .sd-tools .gm-b2:not(#s) { flex-direction: column; gap: 0; font-size: 15px; padding: 2px; }
/* shading: the selected square gold with a dark outline; its row, column and box a clear light gold; the same number
   a deeper light gold. Every number keeps at least 4.5:1 (dark 9.1:1 and brick 4.9:1 on the selected gold; brick 5.8:1
   and 6.6:1 on the two light golds). */
.sd-cell.peer:not(#s) { background: #f7e8bd; }
.sd-cell.same:not(#s) { background: #f1d88c; }
.sd-cell.sel:not(#s) { background: #ecc55a; }
/* the band keeps one row; only on the narrowest screens with A+ does the level name take a line of its own */
.sd-bar.gm-band:not(#s) { flex-wrap: wrap; row-gap: 6px; }
.sd-bar .sd-lvname:not(#s) { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 359.98px) { .sd-bar.gm-band:not(#s) { column-gap: 4px; padding-left: 8px; padding-right: 8px; } .sd-bar .sd-new:not(#s) { padding: 4px 8px; } body.large-text .sd-bar .sd-lvname:not(#s) { flex-basis: 100%; } }

/* SUDOKU round (owner 11-17): one button fill. New Game was warm ivory (#FAF4E9) beside white buttons; every Sudoku
   button now has the kit's surface fill (#FDFBF6, as the site-wide kit sets for secondary buttons), and New Game keeps
   only its bold words. A pressed button (Notes on) keeps its Mulberry fill. */
body[data-page="sudoku"] .gm-b2:not([aria-pressed="true"]):not(#s), body[data-page="sudoku"] .gm-key:not(.notes):not(#s) { background: var(--c-surface, #FDFBF6); }
body[data-page="sudoku"] .gm-b2:not([aria-pressed="true"]):hover:not(#s) { background: #e6f3f2; }
.sd-bar.gm-band .sd-new:not(#s) { color: var(--vs-teal); border-color: #fff4e2; box-shadow: 0 2px 0 #062f37; }
/* Hint, third step: the squares that prove the step (numbers that rule other spots out, notes that can go) get a
   dashed gold ring; the pattern keeps the solid gold ring; the area keeps the pale gold shading. */
.sd-cell.hintwhy:not(#s) { outline: 3px dashed #b8871a; outline-offset: -6px; }
