/* Six pending client games: mobile numerals, hide under-board rules, flag-errors, Crossmath ops. */
html.is-play body #playMain.puzzle-page-shell .board-wrap > .board-legend {
  display: none !important;
}

body:is(.ds-crossmath, .ds-hitori, .ds-kuromasu, .ds-nurikabe, .ds-numberlink) #board .cell-numeral {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: clamp(0.68rem, calc(min(92vw, 22rem) / var(--n, 6) * 0.30), 1.02rem);
  font-variant-numeric: tabular-nums lining-nums;
  text-align: center;
  overflow: hidden;
  text-overflow: clip;
}

body.ds-calcudoku #board .digit {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: clamp(1.4rem, calc(min(92vw, 28rem) / var(--n, 4) * 0.37), 2.4rem);
  font-variant-numeric: tabular-nums lining-nums;
  text-align: center;
  overflow: hidden;
  text-overflow: clip;
}

body:is(.ds-crossmath) #board .digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: clamp(0.85rem, calc(min(92vw, 22rem) / var(--n, 6) * 0.42), 1.35rem);
  font-variant-numeric: tabular-nums lining-nums;
  overflow: hidden;
  text-overflow: clip;
}

body:is(.ds-hitori, .ds-kuromasu, .ds-nurikabe) #board .cell-numeral,
body:is(.ds-hitori, .ds-kuromasu, .ds-nurikabe) #board .cell.is-clue .digit {
  font-size: clamp(1.5rem, calc(min(92vw, 22rem) / var(--n, 7) * 0.50), 1.75rem);
  padding: 0 1px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
  line-height: 1;
  font-family: var(--font-digits, inherit);
  font-variant-numeric: tabular-nums lining-nums;
}

body:is(.ds-hitori, .ds-kuromasu, .ds-nurikabe) #board .cell-numeral-wide,
body:is(.ds-hitori, .ds-kuromasu, .ds-nurikabe) #board .cell.is-clue .digit-wide {
  font-size: clamp(1.125rem, calc(min(92vw, 22rem) / var(--n, 7) * 0.38), 1.375rem);
  letter-spacing: -0.04em;
}

body.ds-numberlink #board .cell-numeral {
  font-size: clamp(0.7rem, calc(min(92vw, 22rem) / var(--n, 6) * 0.34), 1rem);
  z-index: 1;
  pointer-events: none;
}

body.ds-numberlink #board .link {
  z-index: 0;
}

body.ds-crossmath #board.board-cross .op {
  font-size: clamp(1rem, 4.8vw, 1.45rem) !important;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.ds-crossmath #board.board-cross .result .cell-numeral {
  font-size: clamp(0.8rem, 3.6vw, 1.1rem);
}

body.ds-calcudoku #board .cage-label {
  font-size: clamp(0.62rem, calc(min(92vw, 28rem) / var(--n, 4) * 0.24), 1.05rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 88%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

body:is(.ds-calcudoku, .ds-crossmath, .ds-hitori, .ds-kuromasu, .ds-nurikabe, .ds-numberlink) #board .cell.is-flag-error,
body:is(.ds-calcudoku, .ds-crossmath, .ds-hitori, .ds-kuromasu, .ds-nurikabe, .ds-numberlink) #board .cross-num.is-flag-error {
  box-shadow: inset 0 -3px 0 0 var(--board-digit-bad, var(--vermillon));
}
