/* GAMES mockups, round 2026-11-05b. Loaded AFTER the live site's /vsra.css, so the site's tokens (--vs-teal #0a4652,
   --vs-deep, --vs-sand, --t-body 18px, --fs for A+), Figtree, header, menu drawer and footer apply. Prefix gm-. Mockup only.
   Compact rule (owner PART 2.1): one strong button per view; secondary = small white buttons; tertiary = underlined links;
   8-12 px between related items, ~24 px between sections; 44 px hit areas built from padding, not margins. */

.mk-strip { background: #f0c9c9; color: var(--vs-ink); font: 700 12px/20px var(--vs-font); height: 20px; padding: 0 8px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mk-strip b { letter-spacing: .06em; }
header .logo-text::after, body.large-text header .logo-text::after { content: none !important; display: none !important; }
body.gm { background: #fff !important; }
body.gm main { display: block; padding: 56px 0 0 !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-drawer .hx-new { font-size: 12px; font-weight: 800; background: #fbf0ec; color: #7A4A63; border-radius: 0; padding: 0 5px; margin-left: 6px; }
.menu-drawer .hx-mg { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--vs-muted); padding: 10px 1.5rem 2px; margin: 0; }
footer .hx-fnav { display: grid; gap: 0 28px; padding: 8px 0 6px; border-bottom: 1px solid rgba(255,255,255,.22); }
footer .hx-fnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
footer .hx-fnav li { margin: 0; list-style: none; }
footer .hx-fnav li::before { content: none !important; }
footer .hx-fnav a { color: #fff !important; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; font-size: calc(16px * var(--fs, 1)); }
footer .hx-fnav .hx-fh { color: #b9d6da; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 0; }
@media (min-width: 768px) { footer .hx-fnav { grid-template-columns: auto auto; justify-content: start; } }

/* ── shared frame ── */
.gm-pad { padding-left: var(--r4-pad); padding-right: var(--r4-pad); }
/* one compact title line: back link, title, meta; no band, no subtitle paragraph */
.gm-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px var(--r4-pad) 6px; border-bottom: 1px solid var(--vs-line); }
.gm-title h1 { margin: 0 !important; font-size: calc(26px * var(--fs, 1)) !important; line-height: 1.15 !important; font-weight: 800 !important; color: var(--vs-teal) !important; }
.gm-title .gm-meta { font-size: var(--t-sm); color: var(--vs-muted); margin: 0; }
.gm-title .gm-back { order: -1; font-size: var(--t-sm); }
.gm-link { color: var(--vs-teal); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; background: none; border: 0; padding: 10px 2px; margin: -10px -2px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
.gm-link:hover { color: var(--vs-deep); }
.gm-back.gm-link { padding: 0 4px 0 0; margin: 0; min-height: 44px; }
.gm-title { align-items: center; }

/* buttons: primary (one per view), secondary (small, white), segmented */
.gm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 18px; border-radius: 0; border: 2px solid var(--vs-deep); background: var(--vs-teal); color: #fff !important; font: 800 var(--t-btn, 17px)/1.1 var(--vs-font); text-decoration: none; box-shadow: 0 3px 0 var(--vs-deep); cursor: pointer; }
.gm-btn:hover { background: var(--vs-teal-2); }
.gm-btn:active { transform: translateY(3px); box-shadow: none; }
.gm-b2 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px 12px; border-radius: 0; border: 2px solid #3f7a86; background: #fff; color: var(--vs-teal); font: 700 var(--t-btn-sm, 16px)/1.1 var(--vs-font); box-shadow: 0 2px 0 #3f7a86; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gm-b2:hover { background: #e6f3f2; }
.gm-b2:active { transform: translateY(2px); box-shadow: none; }
.gm-b2[aria-pressed="true"] { background: var(--vs-teal); color: #fff; border-color: var(--vs-deep); box-shadow: 0 2px 0 var(--vs-deep); }
.gm-b2 svg { width: 20px; height: 20px; flex: none; }
.gm-b2[disabled] { opacity: .5; cursor: default; }
:is(.gm-btn, .gm-b2, .gm-link, .gm-key, select):focus-visible { outline: 3px solid var(--vs-focus, #0b0c0c); outline-offset: 2px; }

.gm-select { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 700; color: var(--vs-ink); }
.gm-select select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 4px 34px 4px 12px; border: 2px solid #3f7a86; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a4652' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center / 12px 8px; font: 700 var(--t-btn-sm, 16px)/1.1 var(--vs-font); color: var(--vs-teal); cursor: pointer; }

.gm-msg { min-height: 1.4em; margin: 8px 0 0; font-size: var(--t-body); line-height: 1.35; color: var(--vs-ink); }
.gm-msg.good { color: var(--vs-green); font-weight: 700; }
.gm-msg.warn { color: var(--vs-red); font-weight: 700; }
.gm-note { font-size: var(--t-sm); color: var(--vs-muted); margin: 0; line-height: 1.4; }
.gm-lic { font-size: 14px; color: var(--vs-muted); margin: 12px 0 0; line-height: 1.4; }

/* ── dialog (win, confirm) ── */
.gm-dlg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--vs-scrim, rgba(6,47,55,.82)); padding: 16px; }
.gm-dlg[hidden] { display: none; }
.gm-dlg .gm-card { background: #fff; border-radius: 0; max-width: 420px; width: 100%; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.3); text-align: center; }
.gm-dlg h2 { margin: 6px 0 4px !important; font-size: calc(28px * var(--fs, 1)) !important; color: var(--vs-teal) !important; line-height: 1.15 !important; }
.gm-dlg p { margin: 0 0 14px; font-size: var(--t-body); line-height: 1.4; }
.gm-dlg .gm-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gm-win-mark { width: 72px; height: 72px; margin: 0 auto; }
.gm-win-mark circle { fill: #eaf6ef; stroke: var(--vs-green); stroke-width: 4; }
.gm-win-mark path { fill: none; stroke: var(--vs-green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: gm-draw .5s .15s ease-out forwards; }
@keyframes gm-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .gm-win-mark path { animation: none; stroke-dashoffset: 0; } }

/* ═════════════ SUDOKU ═════════════ */
.sd-wrap { padding: 10px var(--r4-pad) 24px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.sd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-bar .sd-new { margin-left: auto; }
.sd-board { --sd-size: min(100%, 560px); width: var(--sd-size); aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, 1fr); border: 3px solid var(--vs-ink); border-radius: 0; overflow: hidden; background: var(--vs-ink); gap: 1px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sd-cell { position: relative; background: #fff; border: 0; padding: 0; margin: 0; display: grid; place-items: center; font: 600 clamp(20px, 6.2vw, 34px)/1 var(--vs-font); color: var(--vs-teal); cursor: pointer; min-width: 0; }
.sd-cell.given { color: var(--vs-ink); font-weight: 800; }
.sd-cell.peer { background: #eef5f6; }
.sd-cell.same { background: #d2e7e9; }
.sd-cell.sel { background: #9fcbd1; outline: 3px solid var(--vs-ink); outline-offset: -3px; z-index: 2; }
.sd-cell.wrong { color: var(--vs-red); background: #fbe9ec; }
.sd-cell.wrong::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--vs-red); }
.sd-cell.hint { background: #f6e2dc; box-shadow: inset 0 0 0 3px #7A4A63; }
.sd-cell.hintarea { background: #fbf0ec; }
.sd-cell .nt { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); font: 600 clamp(9px, 2.4vw, 13px)/1 var(--vs-font); color: #31525a; }
.sd-cell .nt span { display: grid; place-items: center; }
.sd-board.won .sd-cell { animation: sd-glow .9s ease-out both; animation-delay: calc(var(--d, 0) * 40ms); }
@keyframes sd-glow { 0% { background: #fff; } 40% { background: #cfead8; } 100% { background: #f1faf4; } }
@media (prefers-reduced-motion: reduce) { .sd-board.won .sd-cell { animation: none; background: #f1faf4; } }

.sd-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sd-tools .gm-b2 { padding: 4px 6px; flex-direction: column; gap: 1px; min-height: 52px; font-size: 15px; }
.sd-keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gm-key { min-height: 52px; border-radius: 0; border: 2px solid #3f7a86; background: #fff; color: var(--vs-teal); font: 700 26px/1 var(--vs-font); box-shadow: 0 2px 0 #3f7a86; cursor: pointer; position: relative; }
.gm-key:active { transform: translateY(2px); box-shadow: none; }
.gm-key.notes { background: #f4f8f9; font-weight: 600; color: #31525a; border-style: dashed; }
.gm-key .left { position: absolute; right: 5px; top: 3px; font-size: 12px; font-weight: 700; color: var(--vs-muted); }
.gm-key.done { opacity: .35; }
.gm-key.erase { font-size: 16px; }
.sd-more { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; }
.sd-set { border: 1px solid var(--vs-line); border-radius: 0; padding: 8px 12px; margin: 0; }
.sd-set legend { font-weight: 800; font-size: var(--t-sm); padding: 0 4px; }
.sd-set label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: var(--t-sm); cursor: pointer; }
.sd-set input { width: 22px; height: 22px; accent-color: var(--vs-teal); }
.sd-help { font-size: var(--t-sm); line-height: 1.45; color: var(--vs-ink); }
.sd-help summary { cursor: pointer; font-weight: 700; color: var(--vs-teal); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: flex; align-items: center; }
.sd-help p { margin: 4px 0; }
.sd-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.85); font-weight: 700; font-size: var(--t-body); color: var(--vs-teal); z-index: 5; }
.sd-board-wrap { position: relative; width: min(100%, 560px); }
.sd-status { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--vs-muted); }

/* desktop: board left, controls right, all in the first screen */
@media (min-width: 900px) {
  .sd-wrap { grid-template-columns: minmax(0, 560px) minmax(280px, 380px); column-gap: 28px; align-items: start; }
  .sd-left { grid-column: 1; }
  .sd-right { grid-column: 2; display: grid; gap: 10px; align-content: start; position: sticky; top: 76px; }
  .sd-keys { grid-template-columns: repeat(3, 1fr); }
  .gm-key { min-height: 60px; font-size: 28px; }
  .sd-keys .erase { grid-column: span 3; min-height: 48px; }
}
@media (max-width: 899.98px) { .sd-right { display: grid; gap: 10px; } }
body.large-text .sd-tools .gm-b2 { font-size: 15px; }

@media print {
  header, footer, .mk-strip, .sd-right, .sd-bar, .gm-title .gm-back, .menu-drawer, .menu-overlay, .skip-link { display: none !important; }
  body.gm main { padding: 0 !important; }
  .sd-board { width: 16cm; border-width: 3px; }
  .sd-cell { font-size: 26pt; }
  .sd-cell:not(.given) { color: transparent; }
  .sd-cell .nt { display: none; }
  .sd-cell.sel, .sd-cell.peer, .sd-cell.same, .sd-cell.wrong { background: #fff; outline: 0; }
}

/* ═════════════ CROSSWORD (Exolve, restyled) ═════════════ */
.xw-wrap { padding: 8px var(--r4-pad) 24px; }
.xw-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 6px; }
.xw-tools .gm-note { margin-right: auto; }
/* Exolve frame: site font and size, no serif, no widget chrome */
.xw-wrap .xlv-frame { font-family: var(--vs-font) !important; font-size: calc(18px * var(--fs, 1)) !important; color: var(--vs-ink); }
.xw-wrap .xlv-title-setter, .xw-wrap .xlv-preamble { display: none !important; }
.xw-wrap .xlv-clues-panel { margin-top: 0 !important; }
.xw-wrap .xlv-clues-label { font-size: calc(19px * var(--fs, 1)) !important; font-weight: 800; color: var(--vs-teal); border-bottom: 2px solid var(--vs-teal) !important; padding-bottom: 2px; margin-bottom: 4px; }
.xw-wrap .xlv-clues-table td { padding: 4px 4px !important; line-height: 1.3; vertical-align: top; cursor: pointer; }
.xw-wrap .xlv-clue-label { font-weight: 800; color: var(--vs-teal); padding-right: 6px !important; }
.xw-wrap .xlv-active-clue { border-radius: 0; }
/* current clue strip above the grid: big, high-contrast, always beside the grid */
.xw-wrap .xlv-curr-clue { font-family: var(--vs-font) !important; font-size: calc(18px * var(--fs, 1)) !important; line-height: 1.3 !important; background: #f7f1e6 !important; border: 2px solid #7A4A63 !important; border-radius: 0; padding: 6px 8px !important; box-shadow: 0 2px 0 #7A4A63; }
.xw-wrap .xlv-curr-clue-label { font-weight: 800; color: var(--vs-teal) !important; }
.xw-wrap .xlv-nav-button { min-width: 40px; min-height: 40px; border-radius: 0 !important; font-size: 18px !important; font-weight: 800 !important; }
/* control buttons: secondary tier, compact, one row */
.xw-wrap .xlv-controls-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.xw-wrap .xlv-controls-row button.xlv-button { font: 700 var(--t-btn-sm, 16px)/1.1 var(--vs-font) !important; min-height: 44px; padding: 4px 12px !important; margin: 0 !important; border-radius: 0 !important; background: #fff !important; color: var(--vs-teal) !important; border: 2px solid #3f7a86 !important; box-shadow: 0 2px 0 #3f7a86; }
.xw-wrap .xlv-controls-row button.xlv-button:hover { background: #e6f3f2 !important; }
.xw-wrap .xlv-small-button { font-family: var(--vs-font) !important; }
.xw-wrap .xlv-status { font-size: var(--t-sm) !important; color: var(--vs-muted) !important; }
.xw-wrap .xlv-small-print, .xw-wrap .xlv-saving { font-size: 14px !important; color: var(--vs-muted) !important; }
.xw-wrap .xlv-hint { color: #7A4A63 !important; font-weight: 600; }
.xw-wrap .xlv-grid text { font-family: var(--vs-font) !important; }
.xw-wrap .xlv-phone-kb { font-family: var(--vs-font) !important; }
.xw-wrap .xlv-phone-kb-btn { font-weight: 700 !important; }
.xw-wrap .xlv-frame:focus { outline: none; }
.xw-wrap .xlv-cell-num { font-weight: 700; fill: #0d2a30 !important; } /* 06b: size comes from the cell size (exolve-m.js) */
@media (max-width: 699.98px) { .xw-tools .gm-note { display: none; } .xw-wrap { padding-left: 6px; padding-right: 6px; } .xw-tools { padding: 0 10px; } .gm-lic { padding: 0 10px; } }
@media (min-width: 1000px) { .xw-wrap .xlv-clues-box { max-height: calc(100vh - 230px); overflow-y: auto; } }

/* title-row links (Print, Help popover) */
.gm-tl { margin-left: auto; display: flex; gap: 16px; align-items: center; position: relative; }
.gm-pop > summary { list-style: none; }
.gm-pop > summary::-webkit-details-marker { display: none; }
.gm-pop-body { position: absolute; right: 0; top: 100%; z-index: 60; width: min(360px, calc(100vw - 32px)); background: #fff; border: 2px solid var(--vs-teal); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px 14px; font-size: var(--t-sm); line-height: 1.45; }
.gm-pop-body p { margin: 6px 0; }
/* crossword compact controls */
.xw-wrap .xw-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.xw-wrap .xw-ctl .xlv-button, .xw-wrap .xw-more-body .xlv-button, .xw-wrap .xw-more > summary { font: 700 var(--t-btn-sm, 16px)/1.1 var(--vs-font) !important; min-height: 44px; padding: 4px 12px !important; margin: 0 !important; border-radius: 0 !important; background: #fff !important; color: var(--vs-teal) !important; border: 2px solid #3f7a86 !important; box-shadow: 0 2px 0 #3f7a86; cursor: pointer; display: inline-flex; align-items: center; }
.xw-wrap .xw-ctl .xlv-button:hover, .xw-wrap .xw-more > summary:hover { background: #e6f3f2 !important; }
.xw-wrap .xw-nav { display: inline-flex; gap: 4px; }
.xw-wrap .xw-nav .xlv-button { min-width: 44px; justify-content: center; font-size: 24px !important; padding: 0 !important; }
.xw-wrap .xw-more { position: relative; }
.xw-wrap .xw-more > summary { list-style: none; }
.xw-wrap .xw-more > summary::-webkit-details-marker { display: none; }
.xw-wrap .xw-more > summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 0 0 8px; }
.xw-wrap .xw-more-body { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 50; background: #fff; border: 2px solid var(--vs-teal); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px; display: grid; gap: 6px; min-width: 190px; }
.xw-wrap .xw-more-body .xlv-button { width: 100%; justify-content: flex-start; }
.xw-wrap .xw-more-body #xlv1-reveal-all { color: var(--vs-red) !important; border-color: #b3576a !important; box-shadow: 0 2px 0 #b3576a; }
.xw-wrap .xw-start { position: absolute; margin: 0; font-size: var(--t-sm); color: var(--vs-muted); padding: 10px 2px; }
.xw-wrap .xlv-status { font-family: var(--vs-font) !important; margin-top: 4px; }
.xw-wrap .xlv-small-print { display: none !important; }
@media (max-width: 599.98px) {
  .gm-title { padding-top: 4px; padding-bottom: 4px; gap: 0 10px; }
  .gm-title h1 { font-size: calc(22px * var(--fs, 1)) !important; }
  .gm-title .gm-meta { font-size: 15px; }
  .gm-tl { gap: 12px; }
  .xw-wrap .xw-ctl { gap: 6px; }
  .xw-wrap .xw-nav .xlv-button { min-width: 40px; }
}
.sd-busy[hidden] { display: none; }
.sd-right .sd-help { margin: 0; }
.sd-right .sd-help summary { min-height: 40px; }
.sd-right .sd-more { margin-top: -2px; }
body[data-page="sudoku"] .gm-msg { margin: 6px 0 0; min-height: 0; }
body[data-page="sudoku"] .gm-msg:empty { display: none; }
.sd-status { margin-top: 4px; }
.sd-cell.sel.hint { background: #f6e2dc; }
@media (max-width: 599.98px) { body[data-page="sudoku"] .gm-title .gm-meta { display: none; } }
@media (max-width: 359.98px) { .xw-wrap { padding-left: 0; padding-right: 0; } .xw-wrap .xlv-grid-panel, .xw-wrap .xlv-grid-parent-centerer { margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; } .xw-wrap .xw-ctl, .xw-wrap .xlv-status { padding: 0 8px; } }
.xw-wrap .xlv-phone-kb, .xlv-phone-kb { font-size: 16px !important; }
@media (max-width: 339.98px) { .xw-wrap .xlv-grid-and-clues-flex, .xw-wrap .xlv-grid-panel, .xw-wrap .xlv-grid-parent-centerer, .xw-wrap .xlv-clues-panel, .xw-wrap .xlv-curr-clue, .xw-wrap .xlv-controls-etc, .xw-wrap .xlv-controls, .xw-wrap .xlv-controls-row, .xw-wrap .xlv-wide-box, .xw-wrap .xlv-status, .xw-wrap .xlv-clues-box, .xw-wrap .xlv-clues-flex, .xw-wrap [id$="-clues"], .xw-wrap .xlv-clues-panel hr { max-width: 316px !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; } .xw-wrap .xlv-grid-parent { margin-left: 1px !important; } }
@media (max-width: 599.98px) { .xw-wrap .xw-more-body { left: auto; right: 0; } }
@media (max-width: 339.98px) { .xlv-phone-kb { left: 0 !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; padding-left: 2px !important; padding-right: 2px !important; } .xlv-phone-kb-row { max-width: 100% !important; } }
.xw-wrap .xw-ctl { position: relative; } .xw-wrap .xw-more { position: static; } .xw-wrap .xw-more-body, .xw-wrap .xw-more-body[style] { left: 0 !important; right: auto !important; }
.sd-wrap { max-width: none; }
@media (min-width: 900px) { .sd-wrap { grid-template-columns: minmax(380px, 560px) minmax(280px, 380px); justify-content: start; } }
@media (min-width: 900px) and (max-height: 820px) { .sd-board { --sd-size: min(100%, calc(100vh - 230px)); } .sd-board-wrap { width: min(100%, calc(100vh - 230px)); } }

/* ═════════════ round 2026-11-05c additions ═════════════ */
/* compact segmented control (level switch, draw 1/3, view switches): one bordered strip, not four buttons */
.gm-seg { display: inline-flex; border: 2px solid #3f7a86; border-radius: 0; overflow: hidden; background: #fff; max-width: 100%; }
.gm-seg > button { appearance: none; border: 0; border-left: 1px solid #9fc2c8; background: #fff; color: var(--vs-teal); font: 700 var(--t-btn-sm, 16px)/1 var(--vs-font); min-height: 44px; padding: 0 12px; cursor: pointer; flex: 1 1 auto; white-space: nowrap; }
.gm-seg > button:first-child { border-left: 0; }
.gm-seg > button[aria-checked="true"], .gm-seg > button[aria-pressed="true"] { background: var(--vs-teal); color: #fff; box-shadow: inset 0 -3px 0 #f0c9c9; }
.gm-seg > button:focus-visible { outline: 3px solid var(--vs-focus, #0b0c0c); outline-offset: -3px; }
.sd-lvnote { flex: 1 0 100%; margin: 0; }
@media (max-width: 380px) { .gm-seg > button { padding: 0 8px; font-size: 15px; } body.large-text .gm-seg > button { padding: 0 6px; } }

/* ── crossword 11-05c: view switch, close-up, clue list, clue text size ── */
.xw-viewbar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 6px; position: relative; }
.xw-viewbar .gm-seg > button { padding: 0 10px; }
.xw-aa > summary { list-style: none; font-size: 20px; min-width: 44px; justify-content: center; }
.xw-aa > summary::-webkit-details-marker { display: none; }
.xw-aa .gm-pop-body { right: auto; left: 0; }
@media (min-width: 600px) { .xw-aa .gm-pop-body { left: auto; right: 0; } }
.xw-wrap .xlv-clues-panel, .xw-wrap .xlv-clues-table td { font-size: calc(18px * var(--fs, 1) * var(--xw-csz, 1)) !important; }
.xw-wrap .xlv-curr-clue { font-size: calc(18px * var(--fs, 1) * var(--xw-csz, 1)) !important; }
.xw-msg { min-height: 0; margin: 6px 0 0; font-size: calc(var(--t-sm) * var(--xw-csz, 1)); }
.xw-msg:empty { display: none; }
/* close-up: the grid is enlarged inside a scroll box; the current clue stays pinned above it */
.xw-zoom .xlv-grid-parent-centerer { overflow: auto !important; max-height: min(58vh, 560px); max-width: 100%; border: 2px solid var(--vs-teal); border-radius: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.xw-zoom [id$="-curr-clue"] { position: sticky; top: 0; z-index: 3; }
@media (min-width: 1024px) { .xw-zoom .xlv-grid-parent-centerer { max-height: calc(100vh - 260px); } }
/* clue list: one box per answer; Exolve's grid and lists are hidden, its buttons stay and act on the clue in focus */
.xw-listmode [id$="-grid-parent"], .xw-listmode .xlv-clues-panel, .xw-listmode .xlv-curr-clue, .xw-listmode .xw-start, .xw-listmode .xlv-phone-kb { display: none !important; }
.xw-list { font-size: calc(var(--t-body) * var(--xw-csz, 1)); }
.xw-list .gm-note { font-size: calc(var(--t-sm) * var(--xw-csz, 1)); margin: 4px 0 8px; }
.xw-lh { font-size: calc(20px * var(--fs, 1) * var(--xw-csz, 1)) !important; margin: 8px 0 4px !important; color: var(--vs-teal) !important; border-bottom: 2px solid var(--vs-teal); }
.xw-ol { list-style: none; margin: 0; padding: 0; }
.xw-li { padding: 6px 4px 8px; border-bottom: 1px solid var(--vs-line); list-style: none; }
.xw-li::before { content: none !important; }
.xw-li.on { background: #f7f1e6; box-shadow: inset 4px 0 0 #7A4A63; }
.xw-li label { display: block; line-height: 1.35; cursor: pointer; }
.xw-li label b { color: var(--vs-teal); }
.xw-len { color: var(--vs-muted); }
.xw-li-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.xw-tiles { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 100%; }
.xw-tiles span { width: 26px; height: 30px; border: 1.5px solid var(--vs-ink); display: grid; place-items: center; font: 700 18px/1 var(--vs-font); background: #fff; }
.xw-in::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #5f6b6e; }
.xw-in { font: 700 calc(18px * var(--xw-csz, 1)) / 1 var(--vs-font); letter-spacing: .12em; text-transform: uppercase; min-height: 44px; padding: 4px 10px; border: 2px solid #3f7a86; border-radius: 0; width: min(100%, 15em); box-sizing: border-box; }
.xw-in:focus-visible { outline: 3px solid var(--vs-focus, #0b0c0c); outline-offset: 2px; }
.xw-state { font-size: calc(15px * var(--xw-csz, 1)); color: var(--vs-muted); }
.xw-li.full .xw-state { color: var(--vs-green); font-weight: 700; }
@media (min-width: 900px) { .xw-lcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } }
@media (max-width: 380px) { .xw-tiles span { width: 19px; height: 26px; font-size: 15px; } .xw-viewbar .gm-seg > button { padding: 0 7px; font-size: 15px; } }
.xw-zoom .xlv-grid-parent-centerer { width: min(calc(100vw - 20px), 640px); box-sizing: border-box; text-align: left; }
.xw-zoom [id$="-grid-panel"], .xw-zoom [id$="-grid-and-clues"], .xw-zoom .xlv-frame { min-width: 0 !important; max-width: 100%; }
@media (min-width: 1024px) { .xw-zoom .xlv-grid-parent-centerer { width: min(52vw, calc(100vh - 220px)); } }
body.xw-zoomed .xlv-phone-kb { left: 0 !important; width: 100% !important; max-width: 100vw !important; box-sizing: border-box; } body.xw-zoomed .xlv-phone-kb-row { max-width: 100% !important; }
.gm-pop:not([open]) > .gm-pop-body, details:not([open]) > .gm-pop-body { display: none; }
.xw-zoom [id$="-grid-and-clues"], .xw-zoom [id$="-grid-panel"], .xw-zoom [id$="-controls-etc"], .xw-zoom [id$="-controls"], .xw-zoom .xw-ctl, .xw-zoom [id$="-curr-clue"], .xw-zoom .xlv-status { max-width: min(calc(100vw - 20px), 640px) !important; width: auto !important; box-sizing: border-box; }
@media (min-width: 1024px) { .xw-zoom [id$="-grid-panel"], .xw-zoom [id$="-controls-etc"], .xw-zoom [id$="-controls"], .xw-zoom .xw-ctl, .xw-zoom [id$="-curr-clue"] { max-width: min(52vw, calc(100vh - 220px)) !important; } .xw-zoom [id$="-grid-and-clues"] { max-width: none !important; } }
.xw-zoom [id$="-grid-and-clues"] { min-width: 0 !important; } @media (max-width: 1023.98px) { .xw-zoom #xw { overflow-x: clip; } .xw-zoom [id$="-grid-and-clues"] { width: 100% !important; max-width: 100% !important; } }
@media (max-width: 1023.98px) { .xw-zoom [id$="-clues"], .xw-zoom .xlv-clues-panel, .xw-zoom .xlv-clues-panel > * { max-width: 100% !important; min-width: 0 !important; width: auto !important; } }
.xw-cc { display: none; }
.xw-zoom .xw-cc { display: block; margin: 0 0 6px; font-size: calc(18px * var(--fs, 1) * var(--xw-csz, 1)); line-height: 1.3; background: #f7f1e6; border: 2px solid #7A4A63; border-radius: 0; padding: 6px 8px; box-shadow: 0 2px 0 #7A4A63; }
.xw-cc b { color: var(--vs-teal); margin-right: 4px; }
.xw-cc span { color: var(--vs-muted); }
.xw-zoom [id$="-curr-clue"], .xw-zoom .xw-start { display: none !important; }
@media (max-width: 599.98px) { .xw-zoom .xlv-grid-parent-centerer { max-height: max(260px, calc(100svh - 480px)); } }
@media (max-width: 599.98px) {
  .xw-wrap [id$="-curr-clue"], .xw-wrap .xw-start { display: none !important; }
  .xw-wrap .xw-cc { display: block; margin: 0 0 4px; font-size: calc(17px * var(--fs, 1) * var(--xw-csz, 1)); line-height: 1.3; background: #f7f1e6; border: 2px solid #7A4A63; border-radius: 0; padding: 5px 8px; box-shadow: 0 2px 0 #7A4A63; }
  .xw-listmode .xw-cc { display: none !important; }
  .xw-wrap .xlv-grid-panel, .xw-wrap [id$="-grid-panel"] { margin-top: 0 !important; }
}
@media (max-width: 599.98px) { .xw-wrap .xlv-clear-area { display: none !important; } } .xw-zoom .xlv-clear-area, .xw-listmode .xlv-clear-area { display: none !important; }
@media (max-width: 599.98px) { .xw-wrap .xw-cc { min-height: calc(2.6em + 14px); box-sizing: border-box; } }
@media (max-width: 599.98px) { .xw-wrap .xw-cc { height: calc(2.6em + 14px); min-height: 0; overflow: hidden; display: flex; align-items: center; } .xw-cc .t { display: block; line-height: 1.3; } }
.xw-zoom .xw-cc { height: calc(2.6em + 14px); overflow: hidden; display: flex; align-items: center; box-sizing: border-box; }
@media (min-width: 1024px) { .xw-wrap [id$="-clues"] > .xw-msg { margin: 0 0 8px; padding: 8px 12px; border-left: 4px solid #7A4A63; background: #f7f1e6; border-radius: 0; } }
/* 11-05c: our own clue strip is used at every width (in the page flow, so it never covers the view switch or a
   square); on computers it sticks under the site header while the page scrolls. Exolve's floating strip is hidden. */
.xw-wrap [id$="-curr-clue"], .xw-wrap .xw-start, .xw-wrap .xlv-clear-area { display: none !important; }
.xw-wrap .xw-cc { display: block; margin: 0 0 6px; font-size: calc(18px * var(--fs, 1) * var(--xw-csz, 1)); line-height: 1.3; background: #f7f1e6; border: 2px solid #7A4A63; border-radius: 0; padding: 6px 10px; box-shadow: 0 2px 0 #7A4A63; box-sizing: border-box; }
@media (min-width: 600px) { .xw-wrap .xw-cc { position: sticky; top: 60px; z-index: 20; max-width: 100%; min-height: calc(1.3em + 16px); } }
@media (min-width: 1024px) { .xw-wrap:not(.xw-zoom) .xw-cc { max-width: var(--xw-gridw, 100%); } }
.xw-listmode .xw-cc { display: none !important; }
.xw-wrap .xw-cc { height: calc(2.6em + 16px); min-height: 0; overflow: hidden; display: flex; align-items: center; } .xw-cc .t { display: block; line-height: 1.3; } .xw-listmode .xw-cc { display: none !important; }
