.hundred-page {
  --accent: var(--orange);
  --green: var(--game-green);
  --accent-soft: var(--warning-surface);
}
.hundred-page .mo-cell {
  font-size: clamp(9px, 3.5vmin, 24px);
}
.hu-cipher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.hu-cipher-word {
  display: inline-flex;
  gap: 2px;
}
.hu-cipher-word button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 20px !important;
  min-height: 38px !important;
  padding: 3px !important;
}
.hu-cipher-word strong {
  font-size: 17px;
}
.hu-cipher-word small {
  font-size: 9px;
  color: var(--muted);
}
.hu-black {
  background: var(--ink) !important;
  color: var(--paper) !important;
}
.hu-mark {
  background: var(--accent-soft) !important;
}
.hu-grid .mo-cell {
  font-size: clamp(9px, 3.5vmin, 24px);
}
.hu-grid .mo-cell[data-fixed="true"] {
  font-weight: 800;
  color: var(--ink);
}
.hu-grid .mo-cell[data-region] {
  border-color: var(--muted);
}
.hu-grid .mo-cell[data-selected="true"] {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.hu-piece {
  display: grid;
  place-items: center;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(12px, 4vmin, 32px);
  margin: auto;
}
.hu-piece[data-player="2"] {
  background: var(--accent);
  color: var(--paper);
}
.hu-clue {
  position: absolute;
  top: 1px;
  left: 2px;
  font: 700 clamp(6px, 1.6vmin, 12px) var(--font-mono, monospace);
}
.mo-cell {
  position: relative;
}
.hu-word-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(8px, 2vw, 24px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}
.hu-word-panel h3 {
  font: 500 clamp(19px, 4vmin, 34px) var(--font-display, Georgia);
  line-height: 1.3;
  margin: 0;
}
.hu-word-panel p {
  margin: 0;
  font-size: clamp(11px, 2vmin, 16px);
}
.hu-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hu-answers button {
  padding: 12px;
  min-height: 40px;
  white-space: normal !important;
}
.hu-input {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 0;
}
.hu-keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}
.hu-keyboard button {
  min-width: 24px !important;
  min-height: 28px !important;
  padding: 3px !important;
}
.hu-rack {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hu-token {
  border: 1px solid var(--line);
  padding: 8px;
  font: 600 clamp(15px, 3vmin, 27px) var(--font-mono, monospace);
}
.hu-arithmetic {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.hu-rules-note {
  font-size: 12px;
  color: var(--muted);
}
.hu-rush-target {
  background: var(--accent) !important;
  color: var(--paper) !important;
}
.hu-subtle {
  color: var(--muted);
}
.hu-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hu-links a {
  text-decoration: underline;
}
.hu-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hu-form-row input {
  min-width: 0;
  flex: 1;
}
.gv-input .hu-keyboard {
  max-width: 100%;
}
.mo-board.hu-grid {
  gap: 2px !important;
}
.hu-grid .mo-cell {
  min-width: 0 !important;
  min-height: 0 !important;
}
.hu-board-text {
  font-family: var(--font-mono, monospace);
}
@media (max-height: 520px) {
  .hu-word-panel {
    gap: 7px;
  }
  .hu-answers {
    gap: 5px;
  }
  .hu-answers button {
    padding: 6px;
    min-height: 32px;
  }
  .hu-keyboard button {
    min-width: 20px !important;
    min-height: 24px !important;
  }
  .hu-word-panel h3 {
    font-size: 20px;
  }
}

body[data-game="backgammon"] #board {
  height: 100%;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
body[data-game="backgammon"] .mo-cell {
  aspect-ratio: auto !important;
  height: 100% !important;
  font-size: clamp(9px, 2.4vmin, 18px) !important;
  border-radius: 0;
  line-height: 1.5;
}

.hu-bg-point {
  fill: var(--surface-3);
}
.hu-bg-point[data-alternate="1"] {
  fill: var(--warning-surface);
}
.hu-bg-man {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1;
}
.hu-bg-man[data-owner="2"] {
  fill: var(--orange);
}
@media (max-width: 549px) {
  body[data-game="backgammon"] #board {
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }
}

body[data-game="backgammon"] .mo-cell {
  padding: 0 !important;
}
body[data-game="backgammon"] .mo-cell svg {
  width: 100% !important;
  height: 100% !important;
}
