.npuz {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-muted: #f0ebdf;
  --text: #1e1b15;
  --muted: #454138;
  --line: #8f7a58;
  --accent: #7a5a14;
  --accent-2: #5c4209;
  --focus: #005fcc;
  --ok: #1f6b3e;
  --bad: #8a1d2b;
  --button-bg: #fbf7ef;
  --button-hover: #eee4ce;
  --button-border: #8a7550;
  --tile-bg: #fffdf9;
  --tile-border: #8a7550;
  --blank-bg: #e6dece;
  --blank-border: #8a7550;
  --chip-bg: #f1e5cb;
  --chip-border: #8a7550;
  margin: 0;
  padding-bottom: 2rem;
}

@media (prefers-color-scheme: dark) {
  .npuz {
    --bg: #1a1712;
    --surface: #241f19;
    --surface-muted: #2f281f;
    --text: #f2eadb;
    --muted: #d0c3ae;
    --line: #9b8764;
    --accent: #d2b271;
    --accent-2: #e9ce99;
    --focus: #8ab4f8;
    --ok: #7ecf9e;
    --bad: #f4a6b3;
    --button-bg: #31271d;
    --button-hover: #3d3023;
    --button-border: #9b8764;
    --tile-bg: #2f251b;
    --tile-border: #9b8764;
    --blank-bg: #3a2f22;
    --blank-border: #9b8764;
    --chip-bg: #3a2f21;
    --chip-border: #9b8764;
  }

  .npuz-note {
    border-left-color: #c8ac72;
    background: #2d251d;
  }
}

.npuz *,
.npuz *::before,
.npuz *::after {
  box-sizing: border-box;
}

/* Prevent global site section rules from padding nested puzzle sections. */
.npuz section {
  padding: 0;
}

.npuz section + section {
  border-top: 0;
}

.npuz-skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 999;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.npuz-skip-link:focus {
  left: 0.75rem;
}

.npuz a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

.npuz a:hover {
  color: var(--accent-2);
}

.npuz code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.npuz :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.npuz-module-section {
  padding-top: 0.75rem;
  padding-bottom: 0.45rem;
}

.npuz-title-section {
  padding-top: 0.45rem;
  padding-bottom: 1rem;
}

.npuz-launch-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 1rem 1.05rem;
}

.npuz-module-nav {
  width: var(--tev-flow-width);
  margin: 0 auto;
}

.npuz-module-nav h2 {
  margin: 0 0 0.45rem;
}

.npuz-page-nav-section {
  padding-top: 1.7rem;
  padding-bottom: 0;
}

.npuz-page-nav {
  width: fit-content;
  max-width: min(780px, 94vw);
  margin: 0.55rem auto 0;
  padding: 0.55rem;
}

.npuz-page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(15.5rem, 1fr));
  gap: 0.65rem;
}

.npuz-page-link {
  color: var(--text);
  min-width: 0;
}

.npuz-page-link h3 {
  margin: 0;
}

.npuz-page-link p {
  margin-top: 0.35rem;
}

.npuz-page-link:hover,
.npuz-page-link:focus-visible {
  color: var(--text);
}

.npuz-hero-clean {
  width: var(--tev-shell-width);
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.npuz-hero-clean > .npuz-kicker,
.npuz-hero-clean > h1,
.npuz-hero-clean > .npuz-part-subhead,
.npuz-hero-clean > .npuz-module-nav,
.npuz-hero-clean > .npuz-snake-hero,
.npuz-hero-clean > .npuz-intro,
.npuz-hero-clean > .npuz-problem-card,
.npuz-hero-clean > .npuz-links {
  width: var(--tev-copy-width);
  margin-inline: auto;
  text-align: left;
}

.npuz-hero-clean > .npuz-module-nav {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.npuz-module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.npuz-launch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.npuz-module-links .npuz-launch {
  flex: 1 1 260px;
  font-size: 0.96rem;
  line-height: 1.25;
}

.npuz-launch-row .npuz-launch {
  flex: 1 1 260px;
}

.npuz-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--button-border);
  background: #f1e5cb;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.npuz-launch:hover {
  background: #ead9b6;
  color: var(--text);
}

.npuz-launch-ghost {
  background: #ffffff;
}

.npuz-launch-ghost:hover {
  background: #f6f0e4;
}

.npuz-launch-current {
  background: #e8dcc1;
  border-color: var(--button-border);
  color: var(--text);
  pointer-events: none;
}

.npuz-part-subhead {
  margin: 0 0 0.6rem;
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 700;
}

.npuz-flow-shell {
  width: min(860px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.npuz-flow-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.15rem 1.2rem;
}

.npuz-flow-card h2,
.npuz-flow-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Source Serif 4", Georgia, serif;
}

.npuz-flow-card p,
.npuz-flow-card ul,
.npuz-flow-card ol {
  margin: 0.38rem 0 0;
}

.npuz-flow-card figure {
  margin: 0.55rem 0 0;
}

.npuz-flow-card ul,
.npuz-flow-card ol {
  padding-left: 1.2rem;
}

.npuz-flow-card li {
  margin-bottom: 0.35rem;
}

.npuz-module-footer {
  margin-top: 2rem;
  border-top: 1px solid #d2c6ad;
  background: #f0ebdf;
  color: #1e1b15;
  padding: 1.2rem 0 1.4rem;
}

.npuz-module-footer a {
  color: #7a5a14;
}

.npuz-module-footer p {
  margin: 0;
}

.npuz-module-footer p + p {
  margin-top: 0.45rem;
}

.npuz-credit {
  color: inherit;
  line-height: 1.5;
}

.npuz-credit a {
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  .npuz-module-footer {
    border-top-color: #5f4f38;
    background: #241f19;
    color: #f2eadb;
  }

  .npuz-module-footer a {
    color: #e9ce99;
  }
}

.npuz-compare-board {
  width: min(100%, 17rem);
}

.npuz-challenge-board {
  width: min(100%, 18rem);
}

.npuz-highlight {
  color: var(--accent-2);
  font-weight: 700;
}

.npuz-shell {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.npuz-intro-shell {
  width: min(1240px, 95vw);
}

.npuz[data-mode="play"] .npuz-intro-shell {
  display: grid;
  justify-items: center;
}

.npuz-intro-block {
  padding: 1.1rem 0 0.5rem;
}

.npuz-problem-card {
  margin: 0 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.8rem 0.9rem;
  max-width: 92ch;
}

.npuz-snake-hero,
.npuz-reduction-figure,
.npuz-guide-figure {
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.75rem;
}

.npuz-snake-hero img,
.npuz-reduction-figure img,
.npuz-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.npuz-snake-hero figcaption,
.npuz-reduction-figure figcaption,
.npuz-guide-figure figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
}

.npuz[data-mode="play"] .npuz-problem-card,
.npuz[data-mode="play"] .npuz-intro,
.npuz[data-mode="play"] .npuz-links {
  width: min(92ch, 100%);
  margin-inline: auto;
  text-align: left;
}

.npuz-problem-label {
  margin: 0 0 0.3rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.88rem;
  font-weight: 700;
}

.npuz-goal-visuals {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem;
}

.npuz-goal-visuals-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.npuz-goal-set {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.npuz-goal-set figcaption {
  font-weight: 700;
  color: var(--muted);
}

.npuz-reading-order {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.npuz-reading-order-centered {
  margin-bottom: 0.7rem;
  text-align: center;
}

.npuz-reading-order mjx-container {
  font-size: 0.92em !important;
}

.npuz-goal-board {
  width: min(100%, 18rem);
  display: grid;
  gap: 0.34rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  padding: 0.45rem;
}

.npuz-goal-board-15 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
}

.npuz-goal-board-7 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  aspect-ratio: 2 / 1;
}

.npuz-standalone-board {
  margin: 0.35rem auto 0.55rem;
}

.npuz-perm-mini-board {
  margin: 0.65rem auto;
  width: min(100%, 14rem);
}

.npuz-goal-tile,
.npuz-goal-blank {
  border-radius: 7px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  font-size: clamp(0.88rem, 2.2vw, 1.15rem);
}

.npuz-goal-tile {
  border: 1px solid var(--tile-border);
  background: var(--tile-bg);
  color: var(--text);
}

.npuz-goal-symbol {
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  font-style: italic;
}

.npuz-goal-symbol mjx-container {
  margin: 0 !important;
  font-size: 1em !important;
  line-height: 1 !important;
}

.npuz-goal-symbol mjx-container[jax="CHTML"] {
  display: inline-block;
}

.npuz-goal-symbol sub {
  font-size: 0.62em;
  line-height: 0;
  vertical-align: -0.32em;
  font-style: normal;
}

.npuz-goal-blank {
  border: 1px dashed var(--blank-border);
  background: var(--blank-bg);
}

.npuz-kicker {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.npuz h1,
.npuz h2 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}

.npuz h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
}

.npuz h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.npuz-intro,
.npuz-links {
  margin: 0;
  color: var(--muted);
  max-width: 92ch;
}

.npuz-links {
  margin-top: 0.45rem;
}

.npuz-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.5rem 0.9rem;
}

.npuz-main {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 0 0;
}

.npuz-main-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
}

.npuz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem;
  min-width: 0;
}

.npuz-card.npuz-game {
  padding: 1.75rem;
}

.npuz-theory p {
  margin: 0.45rem 0 0;
}

.npuz[data-mode="play"] .npuz-theory {
  text-align: left;
}

.npuz[data-mode="play"] .npuz-theory > * {
  width: min(72ch, 100%);
  margin-inline: auto;
}

.npuz[data-mode="play"] .npuz-theory .npuz-steps {
  margin: 0.55rem auto 0;
  max-width: 72ch;
  padding-left: 1.2rem;
  list-style-position: outside;
  text-align: left;
}

.npuz-game {
  display: grid;
  gap: 1.05rem;
}

.npuz-help {
  margin: 0;
  color: var(--muted);
}

.npuz-controls {
  display: grid;
  gap: 0.75rem;
}

.npuz-fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.75rem 0.7rem;
}

.npuz-fieldset legend {
  font-weight: 700;
  padding-inline: 0.2rem;
}

.npuz-radio-row {
  display: grid;
  gap: 0.35rem;
}

.npuz-radio-row label,
.npuz-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.npuz-button-row,
.npuz-guess-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.4rem, 1fr));
  gap: 0.45rem;
}

.npuz button,
.npuz textarea {
  font: inherit;
}

.npuz button {
  min-height: 2.6rem;
  border-radius: 8px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--text);
  cursor: pointer;
  padding: 0.42rem 0.62rem;
  font-weight: 600;
}

.npuz button:hover {
  background: var(--button-hover);
}

.npuz button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.npuz-status-message {
  margin: 0;
  border-left: 3px solid var(--line);
  padding-left: 0.6rem;
}

.npuz-status-message.npuz-status-success {
  border-left-color: var(--ok);
  font-weight: 700;
}

.npuz-board-wrap {
  display: grid;
  justify-items: center;
}

.npuz-board {
  --cols: 4;
  --rows: 4;
  width: min(100%, 30rem);
  max-width: 30rem;
  aspect-ratio: calc(var(--cols) / var(--rows));
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  gap: 0.44rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  padding: 0.52rem;
}

.npuz-tile,
.npuz-blank {
  border-radius: 8px;
  min-height: 0;
}

.npuz-tile {
  border: 1px solid var(--tile-border);
  background: var(--tile-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 3.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
}

.npuz-tile.npuz-movable {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.npuz-blank {
  border: 1px dashed var(--blank-border);
  background: var(--blank-bg);
}

.npuz-stats {
  display: grid;
  gap: 0.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.62rem;
}

.npuz-stats h2,
.npuz-practice h2,
.npuz-lab h2 {
  font-size: 1.06rem;
  margin: 0;
}

.npuz-stats p,
.npuz-verdict,
.npuz-guess-feedback,
.npuz-score {
  margin: 0;
}

.npuz-lab {
  display: grid;
  gap: 0.9rem;
}

.npuz-metrics {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.npuz-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.62rem;
  background: var(--surface-muted);
}

.npuz-metrics dt {
  color: var(--muted);
  font-weight: 700;
}

.npuz-metrics dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.npuz-chip {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  padding: 0.16rem 0.58rem;
  min-width: 2.3rem;
  text-align: center;
}

.npuz-practice {
  display: grid;
  gap: 0.52rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 0.62rem;
}

.npuz-verdict.npuz-solvable {
  color: var(--ok);
  font-weight: 700;
}

.npuz-verdict.npuz-unsolvable {
  color: var(--bad);
  font-weight: 700;
}

.npuz-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.64rem;
}

.npuz-details summary {
  cursor: pointer;
  font-weight: 700;
}

.npuz-details p {
  margin: 0.58rem 0;
}

.npuz-details textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid var(--button-border);
  background: var(--surface);
}

.npuz-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid #8b6a1a;
  background: #f8f3e8;
}

.npuz-challenge-set {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

.npuz-challenge-label {
  margin: 0 0 0.45rem;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.npuz-steps {
  margin: 0;
  padding-left: 1.2rem;
}

.npuz-steps li {
  margin-bottom: 0.45rem;
}

.npuz-teach {
  display: grid;
  gap: 0.6rem;
}

.npuz-walk-grid {
  display: grid;
  gap: 0.65rem;
}

.npuz-walk {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 0.62rem 0.7rem;
}

.npuz-walk h3 {
  margin: 0 0 0.32rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
}

.npuz-walk p {
  margin: 0.32rem 0;
}

.npuz-walk-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
}

.npuz-goal-board-demo {
  width: min(100%, 16rem);
}

.npuz-goal-movable {
  border-radius: 7px;
  border: 1px solid var(--tile-border);
  background: var(--tile-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  font-size: clamp(0.88rem, 2.2vw, 1.15rem);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.npuz-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.npuz-example-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npuz-example-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.npuz-example-stack {
  display: grid;
  gap: 0.7rem;
  width: min(26rem, 100%);
  margin: 0 auto 0.8rem;
}

.npuz-board-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: start;
}

.npuz-board-state-grid {
  width: var(--tev-copy-width);
  margin: 0 auto 1.35rem;
}

.npuz-board-state-grid .npuz-example {
  border-radius: 12px;
  background: var(--surface);
  padding: 0.9rem 0.95rem;
}

.npuz-example {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: 8px;
  padding: 0.55rem 0.62rem;
}

.npuz-example h3 {
  margin: 0 0 0.25rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
}

.npuz-example p {
  margin: 0.3rem 0;
}

.npuz-board-example {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.npuz-board-example .npuz-goal-board {
  width: min(100%, 15rem);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(30, 27, 21, 0.04);
  padding: 0.55rem;
}

.npuz-theorem {
  margin: 0.65rem 0 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 0.75rem 0.85rem;
}

.npuz-theorem p {
  margin: 0.25rem 0 0;
}

.npuz-theorem-label {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.npuz-claim-box + .npuz-details {
  margin-top: 0.7rem;
}

.npuz-perm-diagram {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  padding: 0.65rem;
}

.npuz-perm-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.npuz-perm-diagram line {
  stroke: var(--accent-2);
  stroke-width: 2.35;
  stroke-linecap: round;
}

.npuz-perm-diagram line.npuz-perm-line-tau {
  stroke: #2c6b99;
  stroke-width: 2.5;
}

.npuz-perm-diagram line.npuz-perm-line-sigma {
  stroke: #8a5a10;
  stroke-width: 2.5;
  stroke-dasharray: 7 5;
}

.npuz-perm-diagram circle {
  fill: var(--surface);
  stroke: var(--tile-border);
  stroke-width: 1.5;
}

.npuz-perm-diagram text {
  fill: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.npuz-perm-diagram figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
}

.npuz-perm-diagram-compact {
  padding: 0.5rem;
}

.npuz-string-grid .npuz-example {
  display: grid;
  align-content: start;
}

.npuz-example-grid-clean .npuz-example {
  display: grid;
  align-content: start;
  border-radius: 12px;
  background: var(--surface);
  padding: 0.8rem 0.9rem;
}

.npuz-example-grid-clean .npuz-example h3 {
  margin-bottom: 0.35rem;
}

.npuz-parity-figure {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  padding: 0.65rem;
}

.npuz-parity-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.npuz-parity-figure rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
}

.npuz-parity-figure line {
  stroke: var(--accent-2);
  stroke-width: 2.25;
  stroke-linecap: round;
}

.npuz-parity-figure circle {
  fill: var(--surface);
  stroke: var(--tile-border);
  stroke-width: 1.7;
}

.npuz-parity-figure text {
  fill: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.npuz-parity-figure figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
}

.npuz-cycle-sequence {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.npuz-cycle-arrow {
  color: var(--accent-2);
  font-size: 1.15rem;
  font-weight: 700;
}

.npuz-mini-board {
  width: 5.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  padding: 0.38rem;
}

.npuz-mini-tile,
.npuz-mini-blank {
  min-height: 2rem;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
}

.npuz-mini-tile {
  border: 1px solid var(--tile-border);
  background: var(--tile-bg);
  color: var(--text);
}

.npuz-mini-blank {
  border: 1px dashed var(--blank-border);
  background: var(--blank-bg);
}

.npuz-config-error {
  margin: 0.38rem 0 0;
  min-height: 1.1em;
  color: var(--bad);
}

@media (max-width: 880px) {
  .npuz-main-lab {
    grid-template-columns: 1fr;
  }

  .npuz-example-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .npuz {
    padding-bottom: 1.2rem;
  }

  .npuz-goal-visuals-pair {
    grid-template-columns: 1fr;
  }

  .npuz-launch-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .npuz-page-links {
    grid-template-columns: 1fr;
  }

  .npuz-example-grid-two,
  .npuz-example-grid-three,
  .npuz-board-pair {
    grid-template-columns: 1fr;
  }

  .npuz-launch-row .npuz-launch {
    flex: initial;
  }

  .npuz-main {
    padding-top: 1rem;
  }

  .npuz-card {
    padding: 1rem;
  }

  .npuz-card.npuz-game {
    padding: 1.25rem;
  }

  .npuz-button-row,
  .npuz-guess-controls {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .npuz-module-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .npuz *,
  .npuz *::before,
  .npuz *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
