/* MRC Crossword: touch play workspace, intentionally scoped to game pages. */
.mrc-cw-clear{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px}
.mrc-cw-clear svg{flex:none}
.mrc-cw-clear-confirmation{width:min(calc(100% - 32px),420px);max-width:420px;padding:24px;border:1px solid #cdc8dc;border-radius:8px;background:#fff;color:#202124;font-family:Manrope,system-ui,sans-serif}
.mrc-cw-clear-confirmation::backdrop{background:rgba(0,0,0,.45)}
.mrc-cw-clear-confirmation h2{font-size:20px;line-height:1.35;margin:0 0 12px}
.mrc-cw-clear-confirmation p{margin:0 0 22px;line-height:1.5}
.mrc-cw-clear-actions{display:flex;justify-content:flex-end;gap:10px}
.mrc-cw-clear-actions button{min-height:44px}
.mrc-cw-clear-confirm{background:#b42318;color:#fff;border-color:#b42318}
@media (max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game .mrc-cw-progress-controls{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0}
 body.mrc-crossword-game .mrc-cw-progress-controls #fresh{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:0;background:transparent}
 body.mrc-crossword-game .mrc-cw-progress-controls #fresh span{display:none}
}
@media (min-width:801px), (pointer:fine) {
  body.mrc-crossword-game #board .cell{container-type:inline-size}
  body.mrc-crossword-game #board .cell .char{font-size:46cqw;line-height:1;padding-top:4cqw}
  body.mrc-crossword-game #board .cell .num{font-size:24cqw;line-height:1}
}
@media (max-width:800px) and (pointer:coarse){
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play{overflow:hidden!important}
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout{
    position:fixed!important;top:var(--mrc-cw-top,0px)!important;left:0!important;
    width:100%!important;height:var(--mrc-cw-vh,100dvh)!important;max-height:none!important;
    z-index:900!important;display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,2fr) minmax(145px,1fr)!important;
    align-items:stretch!important;gap:0!important;overflow:hidden!important;
    background:var(--mrc-game-bg,#f4f1fc);margin:0!important;padding:0!important;
    overscroll-behavior:contain;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>section{
    min-width:0!important;min-height:0!important;display:flex!important;flex-direction:column!important;
    overflow:hidden!important;padding:env(safe-area-inset-top) 8px 5px!important;
  }
  body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar{
    display:flex;align-items:center;justify-content:space-between;gap:7px;
    padding:4px 3px 8px;flex:none;min-height:42px;
  }
  body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar a,
  body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar button{
    min-height:37px;min-width:37px;padding:5px 9px;font-size:14px;
    border:1px solid #777;border-radius:7px;background:var(--panel,#fff);color:var(--text,#222);
    text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
  }
  body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar .mrc-cw-zoom-buttons{display:flex;gap:5px}
  body.mrc-crossword-game.mrc-cw-touch-play .board-wrap{
    flex:1 1 auto!important;min-height:0!important;min-width:0!important;
    overflow:auto!important;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y!important;
    background:var(--panel,#fff);border:1px solid var(--mrc-game-edge,#aaa);border-radius:8px;
    padding:6px!important;
  }
  body.mrc-crossword-game.mrc-cw-touch-play .board-holder{
    width:max-content!important;max-width:none!important;height:max-content!important;
  }
  body.mrc-crossword-game.mrc-cw-touch-play #board{
    width:var(--mrc-cw-board-width,630px)!important;
    max-width:none!important;min-width:0!important;
    touch-action:pan-x pan-y!important;
  }
  body.mrc-crossword-game.mrc-cw-touch-play #board .cell{
    font-size:clamp(17px,calc(var(--mrc-cw-cell,42px) * .46),25px)!important;
    min-width:0!important;min-height:0!important;
  }
  body.mrc-crossword-game.mrc-cw-touch-play #board .cell .num{font-size:10px!important}
  body.mrc-crossword-game.mrc-cw-touch-play #status{font-size:12px;margin:4px 2px 0;flex:none}
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside.panel{
    display:flex!important;flex-direction:column!important;gap:5px;
    height:100%!important;max-height:none!important;min-height:0!important;min-width:0!important;
    margin:0!important;padding:11px 14px max(10px,env(safe-area-inset-bottom))!important;
    border:0!important;border-top:2px solid var(--mrc-game-edge,#777)!important;
    border-radius:12px 12px 0 0!important;background:var(--panel,#fff)!important;
    color:var(--text,#222)!important;overflow-y:auto!important;overscroll-behavior:contain;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #selectionTitle{
    margin:0!important;font-size:clamp(15px,4vw,19px)!important;line-height:1.25;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #selectionInfo{
    display:none!important;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #currentClue{
    font-size:clamp(17px,4.6vw,22px)!important;font-weight:600;line-height:1.35;
    min-height:0!important;overflow-wrap:anywhere;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #playArea{
    display:flex;flex-direction:column;gap:4px;min-height:0;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside .direction{gap:7px;flex:none}
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside .direction button{
    flex:1 1 0;min-width:0;min-height:38px;padding:4px 5px;font-size:13px;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #playArea .toolbar{
    margin:5px 0 0!important;gap:7px;
  }
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #playArea .toolbar button{
    flex:1;min-height:38px;font-size:13px;padding:5px;
  }
  body.mrc-crossword-game.mrc-cw-touch-play #kbd,
  body.mrc-crossword-game.mrc-cw-touch-play #playArea [data-i="keyhelp"],
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #wordList,
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside [data-i="words"],
  body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #buildPanel{display:none!important}
  body.mrc-crossword-game.mrc-cw-touch-play #letter{font-size:16px!important}
}
@media (max-width:800px) and (pointer:fine){.mrc-cw-board-bar{display:none!important}}
@media (min-width:801px){.mrc-cw-board-bar{display:none!important}}

/* Native keyboard is an explicit action on coarse-pointer mobile only. */
.mrc-cw-keyboard-action{display:none!important}
@media (max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game.mrc-cw-touch-play #mobileKeyboard{display:block!important;width:100%;min-height:44px;margin:5px 0 2px;font:inherit;font-weight:650;border:1px solid var(--mrc-game-edge,#777);border-radius:7px;background:var(--panel,#fff);color:var(--text,#222);cursor:pointer}
 body.mrc-crossword-game.mrc-cw-touch-play #mobileKeyboard[aria-pressed="true"]{background:var(--text,#222);color:var(--panel,#fff)}
 body.mrc-crossword-game.mrc-cw-touch-play #mobileKeyboard:focus-visible{outline:2px solid currentColor;outline-offset:3px}
}

/* Keyboard action available in both Crossword Tool and Game. */
.mrc-cw-keyboard-action{display:none}
@media(max-width:900px){.mrc-cw-keyboard-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;margin:8px 0 12px;background:#202124;color:#fff;border:1px solid #202124;border-radius:5px}}

/* MRC compact mobile crossword: controls above grid; clue alone below. */
@media (max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar .mrc-cw-zoom-buttons{gap:7px}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar button[aria-pressed="true"]{background:var(--text,#222);color:var(--panel,#fff)}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar button:disabled{opacity:.35}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-top-keyboard svg{display:block}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-info-row{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:30px;padding:3px 2px;flex:none}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-word-info{font-size:14px;font-weight:650;white-space:nowrap}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-info-row #status{margin:0!important;text-align:right;font-size:12px!important}
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #selectionTitle,
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside .direction,
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #mobileKeyboard,
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #playArea .toolbar,
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #mrcClueSource{display:none!important}
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside.panel{justify-content:flex-start!important;padding:14px 16px max(12px,env(safe-area-inset-bottom))!important;gap:0!important}
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #playArea{display:block!important;min-height:0!important}
 body.mrc-crossword-game.mrc-cw-touch-play main>.layout>aside #currentClue{margin:0!important}
 /* When the keyboard is closed, allow normal page scrolling and a generous grid. */
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open){overflow:auto!important}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) main>.layout{position:relative!important;top:auto!important;left:auto!important;height:auto!important;min-height:0!important;grid-template-rows:minmax(0,auto) auto!important;overflow:visible!important;z-index:auto!important}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) main>.layout>section{height:auto!important;min-height:0!important}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) .board-wrap{flex:none!important;height:min(62dvh,550px)!important}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) main>.layout>aside.panel{height:auto!important;min-height:100px!important}
 /* Keyboard visible: exactly 2/3 grid and 1/3 clue, with internal grid scrolling. */
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play.mrc-cw-keyboard-open main>.layout{grid-template-rows:minmax(0,2fr) minmax(0,1fr)!important}
}

/* MRC game-only compact keyboard: no system keyboard, no extra controls. */
@media (max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-clue-header{
  display:flex;justify-content:flex-end;align-items:center;min-height:37px;flex:none;
 }
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-clue-keyboard-toggle{
  width:40px;height:38px;min-height:38px;padding:5px;border:1px solid var(--mrc-game-edge,#888);
  border-radius:7px;background:var(--panel,#fff);color:var(--text,#222);
  display:inline-flex;align-items:center;justify-content:center;
 }
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-clue-keyboard-toggle[aria-expanded="true"]{
  background:var(--text,#222);color:var(--panel,#fff);
 }
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-mini-keyboard:not([hidden]){
  display:flex;flex-direction:column;gap:4px;width:100%;margin-top:auto;padding-top:7px;
  flex:none;touch-action:manipulation;
 }
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-mini-keyboard[hidden]{display:none!important}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-mini-row{display:flex;justify-content:center;gap:3px;width:100%}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-mini-row button{
  flex:1 1 0;min-width:0;min-height:38px;height:38px;padding:0 1px;
  background:var(--bg,#f4f5f7);color:var(--text,#222);border:1px solid var(--border,#ccc);
  border-radius:5px;font:600 clamp(12px,3.5vw,16px)/1 Manrope,system-ui,sans-serif;
  touch-action:manipulation;
 }
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-mini-row .mrc-cw-mini-delete{flex:1.45 1 0;font-size:22px}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar .mrc-cw-top-keyboard{display:none!important}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play.mrc-cw-mini-open{overflow:hidden!important}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play.mrc-cw-mini-open main>.layout{
  position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100dvh!important;
  grid-template-rows:minmax(0,1fr) minmax(210px,auto)!important;overflow:hidden!important;
 }
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play.mrc-cw-mini-open main>.layout>section{min-height:0!important}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play.mrc-cw-mini-open main>.layout>aside.panel{
  min-height:210px!important;height:auto!important;max-height:46dvh!important;overflow-y:auto!important;
  padding:8px 12px max(8px,env(safe-area-inset-bottom))!important;
 }
 body.mrc-crossword-game.mrc-cw-touch-play #letter{pointer-events:none!important}
}
@media (min-width:801px), (pointer:fine){.mrc-cw-clue-header,.mrc-cw-mini-keyboard{display:none!important}}

/* Focused mobile play: board and clues are the only scroll containers. */
@media (max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play{overflow:hidden!important;touch-action:auto}
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout,
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) main>.layout,
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play.mrc-cw-mini-open main>.layout{
  position:fixed!important;top:var(--mrc-cw-top,0px)!important;left:0!important;
  width:100%!important;height:var(--mrc-cw-vh,100dvh)!important;z-index:900!important;
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) minmax(125px,auto)!important;
  margin:0!important;padding:0!important;overflow:hidden!important;gap:0!important;
 }
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout>section,
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) main>.layout>section{
  height:100%!important;min-height:0!important;overflow:hidden!important;
 }
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play .board-wrap,
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) .board-wrap{
  height:auto!important;flex:1 1 auto!important;min-height:0!important;
  overflow:auto!important;overscroll-behavior:contain!important;
 }
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout>aside.panel,
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play:not(.mrc-cw-keyboard-open) main>.layout>aside.panel{
  height:auto!important;min-height:125px!important;max-height:45dvh!important;
  overflow-y:auto!important;overscroll-behavior:contain!important;
 }
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar{gap:5px!important}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar .mrc-cw-share-progress{
  min-width:0!important;font-size:12px!important;padding:5px 8px!important;white-space:nowrap;
 }
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-board-bar a{white-space:nowrap;font-size:12px!important;padding:5px 8px!important}
}

/* MRC 2026-10-13: compact focused play without changing board zoom or key sizes. */
@media (max-width:800px) and (pointer:coarse) {
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar {
    padding-top:2px!important;
    padding-bottom:4px!important;
    min-height:40px;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout>aside.panel {
    gap:3px!important;
    padding-top:7px!important;
    padding-bottom:max(8px,env(safe-area-inset-bottom))!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-clue-header {
    min-height:38px;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-mini-keyboard:not([hidden]) {
    margin-top:6px!important;
    padding-top:0!important;
  }
}

/* MRC 2026-10-13: the clue determines its own height; the board gets the rest.
   Applies only inside the immersive touch game. No keyboard/board logic changes. */
@media (max-width:800px) and (pointer:coarse) {
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout {
    grid-template-rows:minmax(0,1fr) auto!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout>aside.panel {
    height:auto!important;
    min-height:0!important;
    max-height:48dvh!important;
    align-self:end!important;
    gap:0!important;
    padding:7px 12px max(8px,env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-clue-header {
    min-height:38px!important;
    height:38px!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout>aside #playArea {
    flex:0 0 auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play main>.layout>aside #currentClue {
    margin:4px 0 0!important;
    padding:0!important;
    min-height:0!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-mini-keyboard:not([hidden]) {
    margin:8px 0 0!important;
    padding:0!important;
    flex:0 0 auto!important;
  }
}

/* Compact, full-width mobile action bar: labels share the remaining width. */
@media (max-width:800px) and (pointer:coarse) {
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar {
    width:100%!important;
    gap:clamp(3px,1.1vw,7px)!important;
    justify-content:space-between!important;
    padding-inline:0!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar > a,
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar > .mrc-cw-save-progress,
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar > .mrc-cw-share-progress {
    flex:1 1 0!important;
    min-width:0!important;
    min-height:40px!important;
    padding:5px 3px!important;
    font-size:clamp(11px,3vw,14px)!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar > .mrc-cw-zoom-buttons {
    display:flex!important;
    flex:0 0 auto!important;
    gap:4px!important;
    min-width:0!important;
  }
  body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar > .mrc-cw-zoom-buttons > button {
    flex:0 0 40px!important;
    width:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    padding:4px!important;
  }
}

/* Game sidebar shows only the current clue or current row/column sequence. */
body.mrc-crossword-game #wordList,
body.mrc-crossword-game aside [data-i="words"]{display:none!important}
body.mrc-crossword-game .mrc-cw-desktop-exit{display:none;margin:0 0 16px}
body.mrc-crossword-game.game-ready .mrc-cw-desktop-exit{display:inline-flex;align-items:center}
@media(max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game.game-ready .mrc-cw-desktop-exit{display:none}
}

/* Coordinate labels are fixed row/column references, never word numbers. */
body.mrc-crossword-game .cell .cw-axis{position:absolute;left:2px;top:2px;font-size:clamp(7px,.7vw,10px);font-family:Arial,sans-serif;line-height:1;white-space:nowrap;color:#444;pointer-events:none}
body.mrc-crossword-game .cell.black .cw-axis{color:#fff}
body.mrc-crossword-game .cw-status-line{display:block;line-height:1.4}
.mrc-cw-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0}
.mrc-cw-catalog-column{min-width:0;border-top:1px solid #aaa;padding-top:16px}.mrc-cw-catalog-column h3{margin:0 0 8px}.mrc-cw-catalog-column p{font-size:.9rem;line-height:1.5}
.mrc-cw-catalog-list{display:grid;gap:10px}.mrc-cw-catalog-card{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #aaa;border-radius:5px;color:inherit;text-decoration:none}.mrc-cw-catalog-card:hover{border-color:currentColor}.mrc-cw-catalog-card:focus-visible{outline:3px solid #1765ad;outline-offset:2px}.mrc-cw-catalog-card small{font-size:.85rem;color:inherit}
.mrc-cw-example-link{margin:0 0 16px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.mrc-cw-example-link[hidden],.mrc-cw-example-link [hidden]{display:none!important}.mrc-cw-example-link input{max-width:100%;min-width:0;flex:1 1 250px}.mrc-cw-example-link span{font-size:.85rem}
@media(max-width:650px){.mrc-cw-catalog{grid-template-columns:1fr}}
@media(max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-info-row{width:100%;min-width:0;gap:6px;box-sizing:border-box}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-word-info:empty{display:none}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-word-info{white-space:normal;min-width:0;flex:0 1 auto}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-progress-controls{flex:1 1 0;min-width:0;width:100%;justify-content:space-between}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-info-row #status{flex:1 1 0;min-width:0;white-space:normal!important;text-align:left!important;overflow-wrap:anywhere}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-progress-controls #fresh{flex:0 0 44px}
 body.mrc-crossword-game.mrc-cw-touch-play .cell .cw-axis{font-size:9px}
 body.mrc-crossword-game.mrc-cw-touch-play .mrc-cw-example-link{display:none}
}

/* Downloads are grouped in Save / share; their handlers remain available. */
body.mrc-crossword-game #mrcDownloadPuzzle,body.mrc-crossword-game #export{display:none!important}
body.mrc-crossword-game .mrc-cw-share-note:empty{display:none}
@media(max-width:800px) and (pointer:coarse){
 body.mrc-crossword-game.game-ready.mrc-cw-touch-play .mrc-cw-board-bar > .mrc-cw-share-progress{flex:2 1 0!important;white-space:normal!important}
 body.mrc-crossword-game .mrc-cw-share-note{flex:none;max-height:35dvh;overflow:auto}
}

.mrc-cw-share-dialog{box-sizing:border-box;width:min(460px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:22px;border:1px solid #aaa;border-radius:12px;background:var(--panel,#fff);color:var(--text,#222)}
.mrc-cw-share-dialog::backdrop{background:rgba(0,0,0,.4)}
.mrc-cw-share-dialog h2{font-size:1.25rem;margin:0 0 12px}
.mrc-cw-share-dialog p{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.mrc-cw-share-dialog input{box-sizing:border-box;width:100%;min-width:0;padding:10px;font-size:16px}
.mrc-cw-share-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.mrc-cw-share-dialog button{font:inherit;padding:10px 14px;min-height:44px;white-space:normal;color:inherit;background:var(--panel,#fff);border:1px solid #aaa;border-radius:6px;cursor:pointer}
