.word-label {
  font-size: 28px;
  line-height: 1em;
}

.word {
  display: inline-block;
  margin: 5px;
  background-color: #eeeeee;
  padding: 10px;
}

.word-inline {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wordlist_length_section_list {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.wordlist_length_section_list li a {
  text-decoration: none;
  color: #000;
}

/* Quordle solver shell */
.quordle-solver-layout {
  width: 100%;
}

.quordle-solver-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 5px;
  box-sizing: border-box;
}

.quordle-instructions {
  color: #1a1a1b;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 8px;
}

/* Color legend chips — same fills as live tiles (white text on tile bg) */
.quordle-instructions strong.tile-gray,
.quordle-instructions strong.tile-yellow,
.quordle-instructions strong.tile-green,
.quordle-solver-howto .tile-gray,
.quordle-solver-howto .tile-yellow,
.quordle-solver-howto .tile-green {
  display: inline-block;
  padding: 0.08em 0.42em;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  vertical-align: baseline;
}

.quordle-instructions strong.tile-gray,
.quordle-solver-howto .tile-gray {
  background: #56595b;
}

.quordle-instructions strong.tile-yellow,
.quordle-solver-howto .tile-yellow {
  background: #85701c;
}

.quordle-instructions strong.tile-green,
.quordle-solver-howto .tile-green {
  background: #457a40;
}

/* Below boards, right-aligned — sits under the gray shell (not inside it) */
.quordle-toolbar {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.quordle-toolbar.is-visible {
  display: flex;
}

.quordle-toolbar-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid #56595b;
  background: #fff;
  color: #1a1a1b;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.quordle-toolbar-btn:hover {
  background: #f3f3f3;
}

.quordle-toolbar-btn:focus-visible {
  outline: 2px solid #1a1a1b;
  outline-offset: 2px;
}

/* Sticky wrapper at ≥1500px — gray paint lives on .quordle-form-shell */
.quordle-form-pin {
  position: relative;
}

.quordle-form-shell {
  position: relative;
}

.quordle-undo {
  display: none;
  border-color: #2f5f2c;
  background: #457a40;
  color: #fff;
}

.quordle-undo:hover {
  background: #3a6836;
  border-color: #2a5528;
  color: #fff;
}

.quordle-clear-all {
  display: none;
  border-color: #444;
  background: #fff;
  color: #111;
}

.quordle-clear-all:hover {
  background: #f0f0f0;
  border-color: #222;
  color: #000;
}

#quordle-message {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 20;
  transform: translate(-50%, -50%) scale(0.96);
  margin: 0;
  padding: 12px 18px;
  border-radius: 4px;
  background: #1a1a1b;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
#quordle-message.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* 2×2 boards — compact, original light styling */
.quordle-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quordle-board {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  /* Let 1fr columns shrink below header intrinsic width (Mark solved) */
  min-width: 0;
}

.quordle-board.is-solved {
  opacity: 0.55;
}

.quordle-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0;
  background: transparent;
  color: inherit;
}

.quordle-board-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: #222;
}

.quordle-solved-btn {
  border: 1px solid #457a40;
  background: #eef7ee;
  color: #245524;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
.quordle-solved-btn:hover {
  background: #e0f0e0;
}
.quordle-solved-btn:focus-visible {
  outline: 2px solid #1a1a1b;
  outline-offset: 2px;
}
.quordle-solved-btn.active {
  background: #457a40;
  border-color: #457a40;
  color: #fff;
}

.quordle-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.quordle-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

@keyframes quordle-row-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.quordle-row.is-invalid {
  animation: quordle-row-shake 0.5s ease;
}

.quordle-row.is-invalid .quordle-tile.has-letter {
  background: #b00020;
  border-color: #b00020;
  color: #fff;
}

/* Future unused rows: five short stubs aligned with live tiles (same width + gap) */
.quordle-row-future {
  pointer-events: none;
  gap: 4px;
}

.quordle-tile-stub {
  width: 32px;
  height: 12px;
  box-sizing: border-box;
  /* Match live tiles' 2px border so visual gaps match (stubs have no outline otherwise) */
  border: 2px solid transparent;
  background: #d0d0d0;
  background-clip: padding-box;
  border-radius: 1px;
  flex: 0 0 32px;
}

.quordle-row.is-active .quordle-tile:not(.has-letter) {
  border-style: dashed;
  border-color: #767676;
}

.quordle-tile:focus {
  outline: none;
}

.quordle-tile:focus-visible,
.quordle-board[data-board="0"] .quordle-tile.is-cursor:not(.has-letter) {
  border-color: #1a1a1b;
  box-shadow: inset 0 0 0 1px #1a1a1b;
}

/* Blinking caret on the active typing tile (tiles are buttons, so no native caret) */
@keyframes quordle-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.quordle-board[data-board="0"] .quordle-tile.is-cursor:not(.has-letter)::after {
  content: "";
  display: block;
  width: 2px;
  height: 1.05em;
  background: #1a1a1b;
  animation: quordle-caret-blink 1.05s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .quordle-board[data-board="0"] .quordle-tile.is-cursor:not(.has-letter)::after {
    animation: none;
    opacity: 1;
  }
}

.quordle-tile {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  /* Border ≥3:1 vs white board (WCAG 1.4.11) */
  border: 2px solid #767676;
  background: #fff;
  color: #1a1a1b;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: default;
  border-radius: 0;
  box-sizing: border-box;
  line-height: 1;
}

/* Tile fills darkened so white letters meet ≥4.5:1 */
.quordle-tile.has-letter {
  cursor: pointer;
  background: #56595b;
  border-color: #56595b;
  color: #fff;
}

.quordle-tile.tile-absent {
  background: #56595b;
  border-color: #56595b;
  color: #fff;
}

.quordle-tile.tile-present {
  background: #85701c;
  border-color: #85701c;
  color: #fff;
}

.quordle-tile.tile-correct {
  background: #457a40;
  border-color: #457a40;
  color: #fff;
}

.quordle-tile:disabled {
  cursor: default;
}

/* Hidden input — opens the native keyboard on mobile; desktop still uses keydown */
/* Visually-hidden native-keyboard input. MUST stay 1×1 with no padding/border:
   the Newspaper theme's global input styling out-specifies a plain `.class`
   selector and inflates this to ~464×34px, and because it's position:absolute
   past the boards, that inflated box spills ~14px below the form content and
   triggers a spurious vertical scrollbar (form is capped with overflow-y:auto).
   Use the #id selector + !important so the theme can't win. Keep it focusable
   (no display:none) so programmatic focus still opens the mobile keyboard. */
#quordle-type-input.quordle-type-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  caret-color: transparent;
  pointer-events: none;
}

/* Results */
.quordle-solver-results {
  margin-top: 24px;
}

.quordle-solver-placeholder {
  display: block;
}

.quordle-solver-placeholder.is-hidden {
  display: none;
}

.quordle-solver-howto {
  text-align: left;
  border: 2px dotted #c7c7c7;
  border-radius: 8px;
  padding: 18px 22px;
  box-sizing: border-box;
}

.quordle-solver-howto h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.quordle-solver-howto-sub {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.4;
}

.quordle-solver-howto ol {
  margin: 0;
  padding-left: 1.2rem;
}

.quordle-solver-howto li {
  margin-bottom: 8px;
  color: #444;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* Color legend chips shared with .quordle-instructions (see above) */

#quordle-board-results,
#quordle-board-results-top,
#quordle-board-results-bottom,
.quordle-board-results {
  display: none;
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.quordle-board-result {
  margin: 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  min-width: 0;
}

.quordle-board-result.is-solved {
  opacity: 0.65;
}

.quordle-board-result-title,
.quordle-board-result h3 {
  text-align: left;
  margin: -10px -10px 10px;
  padding: 9px 12px;
  font-size: 1.05rem;
  font-weight: 800;
  background: #1a1a1b;
  color: #fff;
  border-radius: 3px 3px 0 0;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.25;
}

.quordle-board-meta {
  text-align: left;
  color: #555;
  font-size: 0.875rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.quordle-muted {
  text-align: left;
  color: #555;
  font-size: 0.875rem;
  margin: 0;
}

.quordle-show-more-wrap {
  margin-top: 8px;
}

.quordle-show-more-btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 2px solid #457a40;
  border-radius: 4px;
  background: #eef7ee;
  color: #245524;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
}

.quordle-show-more-btn:hover {
  background: #dcefda;
  border-color: #3a6e35;
}

.quordle-show-more-btn:focus-visible {
  outline: 2px solid #1a1a1b;
  outline-offset: 2px;
}

.quordle-show-more-meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3d6b3a;
}

.quordle-word-group {
  margin-top: 8px;
}

.quordle-word-group:first-of-type {
  margin-top: 0;
}

.quordle-word-group + .quordle-word-group {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
}

.quordle-word-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  background: transparent;
  border-radius: 0;
}

.quordle-word-group-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #ececec;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.quordle-word-group-swatch.is-common {
  background: #dcefda;
  border-color: #457a40;
}

.quordle-word-group-count {
  font-weight: 600;
  color: #555;
  letter-spacing: 0;
  text-transform: none;
}

/* Dense chip cloud — 3 columns, fills box width */
.quordle-word-cloud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  align-content: flex-start;
}

.quordle-word-chip {
  display: block;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  padding: 5px 4px;
  margin: 0;
  background: #ececec;
  color: #222;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 2px;
  white-space: nowrap;
}

.quordle-word-chip.is-common {
  background: #dcefda;
  font-weight: 700;
}

.quordle-best-guess {
  display: none;
  text-align: center;
  margin: 0 0 16px;
  padding: 18px 14px 16px;
  background: #f2f7f1;
  border: 1px solid #b7d4b4;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(106, 170, 100, 0.14);
  box-sizing: border-box;
}

.quordle-best-guess-label,
#best-guess-header {
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f5a2c;
  background: transparent;
  border: 0;
  line-height: 1.3;
}

#best-guess-div {
  margin: 0;
  text-align: center;
}

.quordle-best-word {
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.quordle-best-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #457a40;
  border: 2px solid #457a40;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  border-radius: 4px;
  line-height: 1;
  box-sizing: border-box;
}

.quordle-best-hint {
  text-align: center;
  color: #555;
  font-size: 0.875rem;
  margin: 10px 0 0;
  line-height: 1.35;
}

.quordle-best-status {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.quordle-solver-full-hr {
  display: block;
  width: 100%;
  margin: 24px 0 30px;
  border: 0;
  border-top: 1px solid #ccc;
  clear: both;
}

@media (max-width: 767px) {
  /* Full-width gray shell. NOT 100vw: with a vertical scrollbar, 100vw is wider
     than the content box, so the shell overhangs and the overflow-x:clip
     ancestors slice both edges (Word 1 / Mark solved got cut). Filling the
     parent width keeps it clip-safe while still spanning the column. */
  .quordle-solver-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    /* Slight inset around the white boards; text gets its own extra pad below */
    padding: 12px 8px;
  }

  .quordle-instructions {
    padding: 0 6px;
    margin: 0 0 12px;
  }

  .quordle-boards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quordle-board {
    padding: 8px 6px;
  }

  .quordle-board-header {
    gap: 4px;
    margin-bottom: 6px;
  }

  .quordle-board-title {
    /* ≥16px effective for low-vision readability (was 0.875rem / ~14px) */
    font-size: 1.125rem;
  }

  .quordle-solved-btn {
    padding: 6px 12px;
    font-size: 1rem;
  }

  .quordle-row,
  .quordle-row-future {
    gap: 3px;
    width: 100%;
  }

  /* Fill each board like Quordle — no fixed px cap */
  .quordle-tile {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: none;
    aspect-ratio: 1 / 1;
    font-size: clamp(0.85rem, 4.2vw, 1.15rem);
  }

  .quordle-best-tile {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .quordle-tile-stub {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    height: 10px;
  }

  #quordle-board-results,
  #quordle-board-results-top,
  #quordle-board-results-bottom,
  .quordle-board-results {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quordle-board-result {
    padding: 12px;
  }

  .quordle-board-result-title,
  .quordle-board-result h3 {
    margin: -12px -12px 10px;
    padding: 10px 12px;
    font-size: 1.1rem;
  }

  .quordle-word-cloud {
    gap: 6px;
  }

  .quordle-word-chip {
    font-size: 17px;
    line-height: 1.4;
    padding: 7px 6px;
    border-radius: 4px;
  }
}

/* Desktop: slightly larger tiles still compact; 2×2 word lists */
@media (min-width: 1200px) {
  .quordle-solver-container {
    max-width: 640px;
  }

  .quordle-tile {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 1.05rem;
  }

  .quordle-tile-stub {
    width: 34px;
    flex-basis: 34px;
  }

  .quordle-board-results {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1500px) {
  .quordle-solver-layout {
    display: flex;
    flex-wrap: nowrap;
    /* Stretch so the form column is as tall as the results — otherwise the
       sticky pin’s containing block is only ~instructions tall and “stick”
       ends after a few dozen pixels of scroll. */
    align-items: stretch;
    gap: 12px;
    /* Break the tool out of the theme's 24px side padding on .td-pb-span9 (only
       for this tool, so other page content keeps its padding) to give the
       results column enough width for a 728px leaderboard ad without clipping.
       calc + negative margins widen the layout by exactly those 48px. */
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
  }

  /* Intro scrolls with the page (above viewport once past). Boards pin below. */
  .quordle-solver-container .quordle-instructions {
    margin: 0;
    padding: 12px 12px 10px;
    font-size: 0.9rem;
    background: #f1f1f1;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
  }

  .quordle-solver-container {
    /* Narrower form (was 480) so the results column can reach 728px for a
       leaderboard ad. Padding lives on instructions + shell so the gray shell
       can split: intro scrolls away, boards stick; toolbar sits under gray.
       Must stretch with the layout (not fit-content) so sticky has a tall
       containing block while the word list scrolls. */
    width: 430px;
    max-width: 430px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    align-self: stretch;
    height: auto;
    min-height: 100%;
    position: relative;
    background: transparent;
    overflow: visible;
  }

  /* Stick boards (+ toolbar under the gray shell) once the intro has scrolled
     off. Parent column stretches with the results so sticky has room to travel. */
  .quordle-solver-container .quordle-form-pin {
    position: sticky;
    top: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
  }

  /* Only when the pin would sit behind the footer ad: cap height + scroll.
     Bottom padding keeps Undo/Clear reachable at the end of the scroll. */
  .quordle-solver-container.is-too-tall .quordle-form-pin {
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 16px;
  }

  .quordle-solver-container .quordle-form-shell {
    background: #f1f1f1;
    padding: 12px;
    border-radius: 0 0 5px 5px;
    box-sizing: border-box;
  }

  /* Empty howto: nothing to scroll past yet — don’t stretch/stick */
  .quordle-solver-container.placeholder-visible {
    align-self: flex-start;
    height: fit-content;
    min-height: 0;
  }

  .quordle-solver-container.placeholder-visible .quordle-form-pin {
    position: relative;
    top: auto;
  }

  .quordle-solver-container .quordle-toolbar {
    margin-top: 8px;
  }

  .quordle-solver-results {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
  }

  .quordle-solver-howto {
    width: 100%;
  }

  .quordle-tile {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 1rem;
  }

  .quordle-tile-stub {
    width: 32px;
    flex-basis: 32px;
  }

  /* Wide results column: keep 2×2 so all four lists stay on screen together */
  .quordle-board-results {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dark mode — palette/hooks from site CMT dark CSS (wordle-solver/dark-mode).
   Site rules force white borders/text on inputs & buttons; restore Quordle tiles. */
html.cmt-dark-mode-active .quordle-solver-container,
html.wp-dark-mode-active .quordle-solver-container {
  background-color: rgb(45, 46, 46) !important;
  border: 1px solid #fff !important;
}

/* ≥1500px: shell is split (intro scrolls, boards pin) — paint each piece */
@media (min-width: 1500px) {
  html.cmt-dark-mode-active .quordle-solver-container,
  html.wp-dark-mode-active .quordle-solver-container {
    background: transparent !important;
    border: none !important;
  }

  html.cmt-dark-mode-active .quordle-solver-container .quordle-instructions,
  html.wp-dark-mode-active .quordle-solver-container .quordle-instructions {
    background-color: rgb(45, 46, 46) !important;
    border: 1px solid #fff !important;
    border-bottom: none !important;
  }

  html.cmt-dark-mode-active .quordle-solver-container .quordle-form-shell,
  html.wp-dark-mode-active .quordle-solver-container .quordle-form-shell {
    background-color: rgb(45, 46, 46) !important;
    border: 1px solid #fff !important;
    border-top: none !important;
  }
}

html.cmt-dark-mode-active .quordle-board,
html.wp-dark-mode-active .quordle-board {
  background: rgb(36, 37, 37) !important;
  border-color: rgb(90, 93, 93) !important;
}

html.cmt-dark-mode-active .quordle-tile-stub,
html.wp-dark-mode-active .quordle-tile-stub {
  background: rgb(57, 60, 60) !important;
}

html.cmt-dark-mode-active .quordle-board-title,
html.wp-dark-mode-active .quordle-board-title {
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-board-result-title,
html.wp-dark-mode-active .quordle-board-result-title,
html.cmt-dark-mode-active .quordle-board-result h3,
html.wp-dark-mode-active .quordle-board-result h3 {
  background: #0e0e0f !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-board-meta,
html.wp-dark-mode-active .quordle-board-meta,
html.cmt-dark-mode-active .quordle-muted,
html.wp-dark-mode-active .quordle-muted {
  color: #c9c7c6 !important;
}

html.cmt-dark-mode-active .quordle-board-result,
html.wp-dark-mode-active .quordle-board-result {
  background: rgb(45, 46, 46) !important;
  border-color: rgb(90, 93, 93) !important;
  color: #e5e0d8 !important;
}

html.cmt-dark-mode-active .quordle-best-guess,
html.wp-dark-mode-active .quordle-best-guess {
  background: rgb(45, 52, 44) !important;
  border-color: #457a40 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

html.cmt-dark-mode-active .quordle-best-guess-label,
html.wp-dark-mode-active .quordle-best-guess-label,
html.cmt-dark-mode-active #best-guess-header,
html.wp-dark-mode-active #best-guess-header {
  color: #9ccc96 !important;
}

html.cmt-dark-mode-active .quordle-best-tile,
html.wp-dark-mode-active .quordle-best-tile {
  background: #457a40 !important;
  border-color: #457a40 !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-best-hint,
html.wp-dark-mode-active .quordle-best-hint,
html.cmt-dark-mode-active .quordle-best-status,
html.wp-dark-mode-active .quordle-best-status {
  color: #c9c7c6 !important;
}

html.cmt-dark-mode-active .quordle-instructions,
html.wp-dark-mode-active .quordle-instructions {
  color: #c9c7c6 !important;
}

html.cmt-dark-mode-active #quordle-message,
html.wp-dark-mode-active #quordle-message {
  background: #fff !important;
  color: #1a1a1b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

/* Color legend chips keep real tile fills in dark mode */
html.cmt-dark-mode-active .quordle-instructions .tile-gray,
html.wp-dark-mode-active .quordle-instructions .tile-gray,
html.cmt-dark-mode-active .quordle-solver-howto .tile-gray,
html.wp-dark-mode-active .quordle-solver-howto .tile-gray {
  background: #56595b !important;
  color: #fff !important;
}
html.cmt-dark-mode-active .quordle-instructions .tile-yellow,
html.wp-dark-mode-active .quordle-instructions .tile-yellow,
html.cmt-dark-mode-active .quordle-solver-howto .tile-yellow,
html.wp-dark-mode-active .quordle-solver-howto .tile-yellow {
  background: #85701c !important;
  color: #fff !important;
}
html.cmt-dark-mode-active .quordle-instructions .tile-green,
html.wp-dark-mode-active .quordle-instructions .tile-green,
html.cmt-dark-mode-active .quordle-solver-howto .tile-green,
html.wp-dark-mode-active .quordle-solver-howto .tile-green {
  background: #457a40 !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-solver-howto,
html.wp-dark-mode-active .quordle-solver-howto {
  border-color: #666 !important;
}
html.cmt-dark-mode-active .quordle-solver-howto h3,
html.cmt-dark-mode-active .quordle-solver-howto .quordle-solver-howto-sub,
html.cmt-dark-mode-active .quordle-solver-howto li,
html.cmt-dark-mode-active .quordle-solver-howto strong:not(.tile-gray):not(.tile-yellow):not(.tile-green),
html.wp-dark-mode-active .quordle-solver-howto h3,
html.wp-dark-mode-active .quordle-solver-howto .quordle-solver-howto-sub,
html.wp-dark-mode-active .quordle-solver-howto li,
html.wp-dark-mode-active .quordle-solver-howto strong:not(.tile-gray):not(.tile-yellow):not(.tile-green) {
  color: #e5e0d8 !important;
}

html.cmt-dark-mode-active .quordle-toolbar,
html.wp-dark-mode-active .quordle-toolbar {
  background: transparent !important;
  border-color: transparent !important;
}

html.cmt-dark-mode-active .quordle-toolbar-btn,
html.wp-dark-mode-active .quordle-toolbar-btn,
html.cmt-dark-mode-active button.quordle-toolbar-btn,
html.wp-dark-mode-active button.quordle-toolbar-btn {
  background: rgb(57, 60, 60) !important;
  color: #e5e0d8 !important;
  border-color: #999 !important;
}

html.cmt-dark-mode-active .quordle-toolbar-btn:hover,
html.wp-dark-mode-active .quordle-toolbar-btn:hover {
  background: rgb(70, 73, 73) !important;
}

html.cmt-dark-mode-active .quordle-undo,
html.wp-dark-mode-active .quordle-undo,
html.cmt-dark-mode-active button.quordle-undo,
html.wp-dark-mode-active button.quordle-undo {
  background: #457a40 !important;
  border-color: #6aaa64 !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-undo:hover,
html.wp-dark-mode-active .quordle-undo:hover {
  background: #528a4c !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-clear-all,
html.wp-dark-mode-active .quordle-clear-all,
html.cmt-dark-mode-active button.quordle-clear-all,
html.wp-dark-mode-active button.quordle-clear-all {
  background: rgb(57, 60, 60) !important;
  border-color: #bbb !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-clear-all:hover,
html.wp-dark-mode-active .quordle-clear-all:hover {
  background: rgb(70, 73, 73) !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-solved-btn,
html.wp-dark-mode-active .quordle-solved-btn,
html.cmt-dark-mode-active button.quordle-solved-btn,
html.wp-dark-mode-active button.quordle-solved-btn {
  background: #2d4a2d !important;
  border-color: #457a40 !important;
  color: #dff5df !important;
}

html.cmt-dark-mode-active .quordle-solved-btn:hover,
html.wp-dark-mode-active .quordle-solved-btn:hover {
  background: #355535 !important;
}

html.cmt-dark-mode-active .quordle-solved-btn.active,
html.wp-dark-mode-active .quordle-solved-btn.active {
  background: #457a40 !important;
  border-color: #457a40 !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-show-more-btn,
html.wp-dark-mode-active .quordle-show-more-btn,
html.cmt-dark-mode-active button.quordle-show-more-btn,
html.wp-dark-mode-active button.quordle-show-more-btn {
  background: #2d4a2d !important;
  border-color: #457a40 !important;
  color: #dff5df !important;
}

html.cmt-dark-mode-active .quordle-show-more-btn:hover,
html.wp-dark-mode-active .quordle-show-more-btn:hover {
  background: #355535 !important;
}

html.cmt-dark-mode-active .quordle-show-more-meta,
html.wp-dark-mode-active .quordle-show-more-meta {
  color: #b7d8b7 !important;
}

/* Empty / uncommitted tiles — site dark CSS turns buttons white-bordered */
html.cmt-dark-mode-active .quordle-tile:not(.tile-absent):not(.tile-present):not(.tile-correct):not(.has-letter),
html.wp-dark-mode-active .quordle-tile:not(.tile-absent):not(.tile-present):not(.tile-correct):not(.has-letter),
html.cmt-dark-mode-active button.quordle-tile:not(.tile-absent):not(.tile-present):not(.tile-correct):not(.has-letter),
html.wp-dark-mode-active button.quordle-tile:not(.tile-absent):not(.tile-present):not(.tile-correct):not(.has-letter) {
  background: #111 !important;
  color: #fff !important;
  border-color: #949494 !important;
  box-shadow: none !important;
}

html.cmt-dark-mode-active .quordle-row.is-active .quordle-tile:not(.has-letter),
html.wp-dark-mode-active .quordle-row.is-active .quordle-tile:not(.has-letter) {
  border-style: dashed !important;
  border-color: #c9c7c6 !important;
}

html.cmt-dark-mode-active .quordle-tile:focus-visible,
html.wp-dark-mode-active .quordle-tile:focus-visible,
html.cmt-dark-mode-active .quordle-board[data-board="0"] .quordle-tile.is-cursor:not(.has-letter),
html.wp-dark-mode-active .quordle-board[data-board="0"] .quordle-tile.is-cursor:not(.has-letter) {
  border-color: #fff !important;
  box-shadow: inset 0 0 0 1px #fff !important;
}

html.cmt-dark-mode-active .quordle-board[data-board="0"] .quordle-tile.is-cursor:not(.has-letter)::after,
html.wp-dark-mode-active .quordle-board[data-board="0"] .quordle-tile.is-cursor:not(.has-letter)::after {
  background: #fff;
}

html.cmt-dark-mode-active .quordle-tile.has-letter,
html.wp-dark-mode-active .quordle-tile.has-letter,
html.cmt-dark-mode-active .quordle-tile.tile-absent,
html.wp-dark-mode-active .quordle-tile.tile-absent {
  background: #56595b !important;
  border-color: #56595b !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-row.is-invalid .quordle-tile.has-letter,
html.wp-dark-mode-active .quordle-row.is-invalid .quordle-tile.has-letter {
  background: #c62828 !important;
  border-color: #c62828 !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-tile.tile-present,
html.wp-dark-mode-active .quordle-tile.tile-present {
  background: #85701c !important;
  border-color: #85701c !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-tile.tile-correct,
html.wp-dark-mode-active .quordle-tile.tile-correct {
  background: #457a40 !important;
  border-color: #457a40 !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .quordle-word-group + .quordle-word-group,
html.wp-dark-mode-active .quordle-word-group + .quordle-word-group {
  border-top-color: rgb(90, 93, 93) !important;
}

html.cmt-dark-mode-active .quordle-word-group-label,
html.wp-dark-mode-active .quordle-word-group-label {
  color: #c9c7c6 !important;
}

html.cmt-dark-mode-active .quordle-word-group-count,
html.wp-dark-mode-active .quordle-word-group-count {
  color: #c9c7c6 !important;
}

html.cmt-dark-mode-active .quordle-word-group-swatch,
html.wp-dark-mode-active .quordle-word-group-swatch {
  background: rgb(57, 60, 60) !important;
  border-color: #666 !important;
}

html.cmt-dark-mode-active .quordle-word-group-swatch.is-common,
html.wp-dark-mode-active .quordle-word-group-swatch.is-common {
  background: #2d4a2d !important;
  border-color: #457a40 !important;
}

html.cmt-dark-mode-active .quordle-word-chip,
html.wp-dark-mode-active .quordle-word-chip {
  background: rgb(57, 60, 60) !important;
  color: #e5e0d8 !important;
}

html.cmt-dark-mode-active .quordle-word-chip.is-common,
html.wp-dark-mode-active .quordle-word-chip.is-common {
  background: #2d4a2d !important;
  color: #dff5df !important;
}

html.cmt-dark-mode-active .quordle-solver-full-hr,
html.wp-dark-mode-active .quordle-solver-full-hr {
  border-top-color: rgb(90, 93, 93) !important;
}

html.cmt-dark-mode-active .word,
html.wp-dark-mode-active .word {
  background-color: rgb(45, 46, 46) !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}

html.cmt-dark-mode-active .wordlist_length_section_list li a,
html.wp-dark-mode-active .wordlist_length_section_list li a {
  color: #e5e0d8 !important;
}
