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

:root {
  --navy: #1e4172;
  --navy-deep: #17355c;
  --sky: #a5c9ed;
  --sky-soft: #c5daf0;
  --chunk: #bdcede;
  --parchment: #f1eadc;
  --ink: #1a2433;
  --muted: #6b7789;
  --paper: #ffffff;
  --paper-alt: #f0f2f5;
  --line: #d5dde8;
  --accent: #1e4172;
  --header: #1e4172;
  --tile: #bdcede;
  --tile-ink: #1e4172;
  --playfield: #ffffff;
  --radius: 8px;
  --radius-sm: 5px;
  --font: "Nunito", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --theme-color: #1e4172;
  color-scheme: light;
}

/* Per-game themes */
body.game-seven-little-words,
body.game-four-little-words {
  --header: #1e4172;
  --accent: #1e4172;
  --sky: #a5c9ed;
  --tile: #bdcede;
  --tile-ink: #1e4172;
  --playfield: #fff;
}

body.game-hootle {
  --header: #8b5230;
  --accent: #8b5230;
  --sky: #e8c48a;
  --tile: #f3d399;
  --tile-ink: #5c3418;
  --playfield: #faf6ef;
  --parchment: #f0e2c4;
  --theme-color: #8b5230;
}

body.game-red-herring {
  --header: #7a1520;
  --accent: #7a1520;
  --sky: #e8c6c7;
  /* Dusty mauve tiles + charcoal ink for readable light tiles */
  --tile: #d3bdbe;
  --tile-ink: #2a2224;
  --playfield: #f7f2ea;
  --parchment: #f0e8e0;
  --theme-color: #7a1520;
  --herring-bar: #6e1018;
  --herring-cream: #f7f2ea;
  --herring-divider: #c8bbb0;
  --herring-title: #2a2224;
  --herring-fish: #c62828;
}

body.game-tiny-little-crosswords {
  --header: #5c2d82;
  --accent: #5c2d82;
  --sky: #d4c4e0;
  --tile: #ffffff;
  --tile-ink: #3d2450;
  --playfield: #ece8f0;
  --parchment: #e6e1d5;
  --theme-color: #5c2d82;
  --font-puzzle: var(--font-mono);
  --tlc-block: #2a1a45;
  --tlc-fill: #c9b6e0;
}

body.game-woven-words {
  --header: #4a7c8c;
  --accent: #4a7c8c;
  --sky: #b7d0d8;
  --tile: #4a7c8c;
  --tile-ink: #ffffff;
  --playfield: #fdfaf3;
  --parchment: #d2c4b1;
  --theme-color: #4a7c8c;
}

body.game-monkey-wrench {
  --header: #1b3a1e;
  --accent: #1b3a1e;
  --sky: #a8c4a4;
  --tile: #8fa88c;
  --tile-ink: #ffffff;
  --playfield: #d8e6d4;
  --parchment: #e6e1d5;
  --theme-color: #1b3a1e;
  --mw-start: #5c3a1e;
  --mw-path: #2f6b34;
}

html {
  background: var(--paper-alt);
  color: var(--ink);
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.45;
  background: var(--paper-alt);
  color: var(--ink);
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

a:hover {
  color: color-mix(in srgb, var(--accent) 75%, #000);
}

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

/* ——— Top chrome (web nav, navy like app bar) ——— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: calc(0.4rem + env(safe-area-inset-top, 0px)) calc(0.65rem + env(safe-area-inset-right, 0px))
    0.4rem calc(0.65rem + env(safe-area-inset-left, 0px));
  background: var(--header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
  flex: 0 1 auto;
}

.brand:hover {
  color: #fff;
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.brand__wordmark {
  display: none;
  height: 2.35rem;
  width: auto;
  max-width: min(14rem, 52vw);
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
}

.site-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  overflow-x: visible;
  min-width: 0;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

@media (min-width: 640px) {
  .site-header {
    padding: calc(0.55rem + env(safe-area-inset-top, 0px)) calc(1.15rem + env(safe-area-inset-right, 0px))
      0.55rem calc(1.15rem + env(safe-area-inset-left, 0px));
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand__icon {
    display: none;
  }

  .brand__wordmark {
    display: block;
    height: 3rem;
    max-width: min(18rem, 38vw);
  }

  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav a {
    min-height: 2.75rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .brand__wordmark {
    height: 4rem;
    max-width: min(24rem, 42vw);
  }
}

/* ——— Shell ——— */
/* Puzzle/clue pages: reading-friendly ~45rem */
.site-main {
  width: min(45rem, 100% - 1.25rem);
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 0 3rem;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}

/* Home: full viewport width on mobile (padding via .hub-body) */
body.home .site-main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 4.5rem;
  background: #fff;
  min-height: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}

/* Pack / game browse: a bit wider than puzzle pages */
.site-main--wide {
  width: min(60rem, 100% - 1.25rem);
}

@media (min-width: 900px) {
  body.home .site-main {
    width: min(87.5rem, 100% - 2rem); /* 1400px */
    max-width: none;
    margin: 0 auto;
  }

  .hub-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-main--wide {
    width: min(72rem, 100% - 2rem); /* 1152px */
  }
}

@media (min-width: 1100px) {
  body.home .site-main {
    width: min(90rem, 100% - 2.5rem); /* 1440px */
  }
}

.site-footer {
  margin-top: auto;
  padding: 1rem calc(1rem + env(safe-area-inset-right, 0px)) calc(1.35rem + env(safe-area-inset-bottom, 0px))
    calc(1rem + env(safe-area-inset-left, 0px));
  background: var(--header);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0.2rem 0;
  max-width: 720px;
}

.site-footer a {
  color: #fff;
}

.site-footer .quiet {
  opacity: 0.85;
}

/* ——— Hub home ——— */
.hub-body {
  padding: 0.85rem 1rem 1.25rem;
  max-width: 100%;
  box-sizing: border-box;
}

.hub-search {
  margin: 0 0 1rem;
}

.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.game-grid > li {
  display: flex;
  min-width: 0;
}

@media (min-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  animation: hub-rise 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

.game-card:hover {
  color: inherit;
}

.game-card:hover .game-card__art {
  border-color: color-mix(in srgb, var(--card-pastel, var(--sky)) 70%, var(--navy));
  transform: translateY(-2px);
}

.game-card__art {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.65rem 0.85rem;
  box-sizing: border-box;
  background-color: var(--card-pastel, #c5daf0);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 65, 114, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card__icon-link {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.game-card__dates {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
  margin-top: auto;
}

.game-card__date {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #c8d0da;
  background: #fff;
  color: #243447;
  font-size: clamp(0.72rem, 2.8vw, 0.84rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

a.game-card__date:hover {
  border-color: color-mix(in srgb, var(--navy) 55%, #c8d0da);
  color: var(--navy);
  background: #f7fafc;
}

.game-card__date.is-missing {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.game-icon {
  width: min(5.5rem, 72%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #1a1a1a;
  background: var(--icon-bg, #fff);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.14);
  color: var(--icon-fg, var(--navy));
  font-weight: 900;
  font-size: clamp(1.25rem, 6vw, 2rem);
  letter-spacing: -0.04em;
}

@media (min-width: 900px) {
  .game-icon {
    width: 118px;
    height: 118px;
    font-size: 2rem;
  }
}

.game-icon__art,
.game-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.game-card__meta {
  display: block;
  width: 100%;
  padding: 0 0.2rem;
  text-align: center;
  min-width: 0;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.game-card__meta strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.2em);
  color: var(--navy);
  font-size: clamp(0.88rem, 3.6vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.game-card__tag {
  display: block;
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--navy) 55%, #5a6570);
  font-size: 0.74rem;
  line-height: 1.3;
}

a.game-card__meta .game-card__blurb,
.game-card__blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 0.35rem;
  padding: 0 0.15rem;
  min-height: calc(2 * 1.35em);
  color: #3d4f63;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

a.game-card__meta:hover .game-card__blurb {
  color: #3d4f63;
}

.continue-visit {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.65rem;
  background: var(--paper-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.continue-visit[hidden] {
  display: none;
}

.continue-visit__link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.continue-visit__clear {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.5rem;
}

.hub-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@keyframes hub-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ——— Search ——— */
#search,
.pack-search {
  scroll-margin-top: calc(3.75rem + env(safe-area-inset-top, 0px));
}

.pack-search {
  margin: 0 0 1rem;
}

.pack-search__label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: var(--navy);
}

.pack-search__control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.1rem 0.75rem;
  background: #fff;
  border: 2px solid var(--sky);
  border-radius: 999px;
}

.pack-search__control:focus-within {
  border-color: var(--navy);
}

.pack-search__icon {
  color: var(--muted);
  flex: 0 0 auto;
}

input[data-search],
input[data-pack-filter],
.pack-search__input {
  width: 100%;
  min-height: 2.85rem;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

input[data-search]:focus,
input[data-pack-filter]:focus {
  outline: none;
}

.pack-search__tip,
.hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

[data-results] {
  margin-top: 0.75rem;
}

[data-results] h2 {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

[data-results] ul,
.qa,
.pack-list,
.paths,
.hub-games,
.pack-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

[data-results] a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

[data-results] a:hover {
  border-color: var(--sky);
}

[data-results] strong {
  color: var(--accent);
  font-weight: 800;
}

[data-results] .where,
[data-results] .clue {
  color: var(--muted);
  font-size: 0.88rem;
}

[data-results] .clue {
  font-style: italic;
}

/* ——— Game page chrome ——— */
.page-title,
h1 {
  margin: 0.2rem 0 0.55rem;
  color: var(--header);
  font-size: clamp(1.45rem, 3vw + 0.6rem, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.game-intro {
  margin: 0 auto 1.1rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: center;
}

.crumb {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.crumb a {
  font-weight: 700;
  text-decoration: none;
}

.crumb a:hover {
  color: var(--header);
  text-decoration: underline;
}

.crumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.range {
  text-align: center;
  color: var(--muted);
}

.note {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0.5rem 0 0.85rem;
}

.quick a {
  font-weight: 750;
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

button,
.btn,
select {
  font: inherit;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--header);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover,
.btn:hover {
  color: #fff;
  background: color-mix(in srgb, var(--header) 88%, #000);
  transform: translateY(-1px);
}

.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  cursor: default;
  transform: none;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-end;
  justify-content: center;
  margin: 0.45rem 0 0.85rem;
}

.pager .btn {
  flex: 1 1 7.5rem;
}

label.part {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--header);
}

select {
  min-height: 2.7rem;
  min-width: 4.4rem;
  padding: 0 0.45rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.site-stats {
  margin: 1.75rem 0 0;
  padding: 1.35rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.site-stats__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.site-stats__title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--header);
}

.site-stats__subtitle {
  margin: 0 0 1.15rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}

.stats-grid:last-child {
  margin-bottom: 0;
}

.stats-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid--pair .stat-card:nth-child(3n) {
  border-right: 1px solid var(--line);
}

.stats-grid--pair .stat-card:nth-child(2n) {
  border-right: none;
}

.stats-grid--pair .stat-card {
  border-bottom: none;
}

.stat-card {
  padding: 1rem 0.85rem 0.9rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card:nth-child(3n) {
  border-right: none;
}

.stat-card:nth-last-child(-n + 3) {
  border-bottom: none;
}

.stat-card__value {
  margin: 0 0 0.2rem;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--header);
  font-variant-numeric: tabular-nums;
}

.stat-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--ink);
}

.stat-card__caption {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .stat-card:nth-child(2n) {
    border-right: none;
  }

  .stat-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .stat-card:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: none !important;
  }

  .stat-card:not(:last-child) {
    border-bottom: 1px solid var(--line) !important;
  }

  .stat-card:last-child {
    border-bottom: none !important;
  }
}

.faq-page .faq-list {
  margin: 1.75rem 0 0;
}

.faq-item {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  margin-right: 0.35rem;
  font-weight: 700;
  color: var(--header);
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item__q {
  display: inline;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--header);
}

.faq-item__a {
  margin: 0.65rem 0 0 1.45rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.faq-item__a p {
  margin: 0 0 0.65rem;
}

.faq-item__a p:last-child {
  margin-bottom: 0;
}

.faq-item__a code,
.faq-item__a kbd {
  font-size: 0.92em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.35rem !important;
  max-width: none;
}

.site-footer__links a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.info-page__body {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: left;
}

.info-page__body h2 {
  margin: 1.35rem 0 0.45rem;
  color: var(--header);
  font-size: 1.12rem;
  font-weight: 800;
}

.info-page__body p {
  margin: 0 0 0.75rem;
}

.info-page__body ul {
  margin: 0 0 0.85rem 1.1rem;
  padding: 0;
}

.info-page__body li {
  margin: 0.25rem 0;
}

.info-page__body a {
  font-weight: 700;
}

.info-page__updated {
  margin-top: 1.25rem !important;
  color: var(--muted);
  font-size: 0.92rem;
}

.gaps-panel {
  margin: 1.1rem 0 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--paper) 88%, var(--sky));
}

.gaps-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--header);
}

.gaps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.gaps-list a {
  font-weight: 600;
}

.cal {
  width: 100%;
  max-width: 22rem;
  margin: 0.85rem auto 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cal__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  padding: 0.65rem 0.55rem 0.45rem;
}

.cal__part {
  flex: 1 1 5.5rem;
  min-width: 0;
}

.cal__part select {
  width: 100%;
  min-width: 0;
}

.cal__step {
  flex: 0 0 auto;
  min-width: 2.5rem;
  min-height: 2.7rem;
  padding: 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1;
  background: var(--header);
  color: #fff;
}

.cal__step:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  background: var(--muted);
}

.cal__heading {
  margin: 0.15rem 0 0.55rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
}

.cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--header);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cal__dow span {
  display: grid;
  place-items: center;
  padding: 0.4rem 0;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
}

.cal__cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--header);
  background: var(--paper);
}

.cal__cell:nth-child(7n) {
  border-right: none;
}

.cal__cell.is-empty {
  color: transparent;
  pointer-events: none;
}

.cal__cell.is-muted {
  color: #c5ccd6;
  font-weight: 600;
  cursor: default;
}

.cal__cell.is-open:hover {
  background: var(--sky-soft);
}

.cal__cell.is-selected {
  background: var(--header);
  color: #fff;
}

.cal__cell.is-selected.is-muted {
  background: color-mix(in srgb, var(--header) 45%, #fff);
  color: #fff;
}

@media (max-width: 420px) {
  .cal {
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .cal__toolbar {
    padding-inline: 0.35rem;
  }

  .cal__cell {
    font-size: 0.85rem;
  }
}

html[data-theme="dark"] .cal {
  background: #1a2433;
  border-color: #2e3c50;
}

html[data-theme="dark"] .cal__heading {
  color: #e8eef7;
}

html[data-theme="dark"] .cal__cell {
  background: #1a2433;
  border-color: #2e3c50;
  color: var(--sky);
}

html[data-theme="dark"] .cal__cell.is-muted {
  color: #4a5568;
}

html[data-theme="dark"] .cal__cell.is-open:hover {
  background: #243247;
}

html[data-theme="dark"] .cal__cell.is-selected {
  background: var(--header);
  color: #fff;
}

/* ——— 7LW Clue | Solution table ——— */
.qa-wrap {
  margin: 0.75rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.puzzle-bar + .qa-wrap {
  margin-top: 0;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.qa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.qa-table th,
.qa-table td {
  border: 1px solid var(--line);
  padding: 0.28rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}

.qa-table thead th {
  background: var(--paper-alt);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
}

.qa-table tbody tr {
  animation: clue-in 0.35s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

.qa-table tbody tr:nth-child(even) {
  background: var(--paper-alt);
}

.qa-table tbody tr:nth-child(odd) {
  background: #fff;
}

.qa-clue-cell {
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.qa-solution {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.qa-chunks {
  margin-top: 0.1rem;
}

.qa-chunks .chunks {
  gap: 0.18rem;
}

.qa-chunks .chunk-tile {
  min-width: 1.55rem;
  min-height: 1.35rem;
  padding: 0.08rem 0.22rem;
  font-size: 0.68rem;
  border-radius: 3px;
}

/* Legacy clue-list (kept for any residual markup) */
.clue-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.clue-row {
  padding: 0.75rem 0.85rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.clue-row:nth-child(even) {
  background: var(--paper-alt);
}

.clue {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.letter-count {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
}

.answer {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--header);
  overflow-wrap: anywhere;
}

.answer.hero {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.12em;
}

.chunk-tray {
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: var(--header);
  border-radius: var(--radius);
}

.chunks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chunk-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.35rem;
  padding: 0.25rem 0.45rem;
  background: var(--tile);
  color: var(--tile-ink);
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

@keyframes clue-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hootle */
.hootle-board {
  margin: 1rem auto;
  max-width: 16rem;
  display: grid;
  gap: 0.35rem;
}

.hootle-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}

.hootle-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--tile);
  color: var(--tile-ink);
  border: 2px solid color-mix(in srgb, var(--header) 35%, transparent);
  border-radius: 4px;
  font-weight: 900;
  font-size: 1.25rem;
}

.hootle-cell.is-filled {
  background: var(--header);
  color: #fff;
  border-color: var(--header);
}

/* Red Herring — official-style 2×2 playfield */
.herring-play {
  max-width: 26rem;
  margin: 0.85rem auto 1.25rem;
  background: var(--herring-cream, var(--playfield));
  border: 1px solid color-mix(in srgb, var(--herring-bar, var(--header)) 28%, #ddd);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.herring-play__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  background: var(--herring-bar, var(--header));
  color: #fff;
  text-align: center;
}

.herring-play__title {
  margin: 0;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

.herring-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  margin: 0;
  padding: 1rem 0.85rem 1.15rem;
  background: var(--herring-cream, var(--playfield));
}

.herring-cat {
  min-width: 0;
}

.herring-cat__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 1.55rem;
  margin: 0 0 0.4rem;
  padding: 0 0 0.35rem;
  border-bottom: 1px solid var(--herring-divider, #c8bbb0);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--herring-title, #2a2224);
  line-height: 1.2;
}

.herring-cat__title--fish {
  justify-content: flex-start;
  min-height: 2.35rem;
  color: var(--herring-fish, #c62828);
}

.herring-tiles {
  display: grid;
  gap: 0.4rem;
}

.herring-tile {
  display: grid;
  place-items: center;
  min-height: 2.55rem;
  padding: 0.4rem 0.55rem;
  background: var(--tile);
  color: var(--tile-ink);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.98rem;
  text-align: center;
  line-height: 1.2;
}

.herring__fish {
  width: 3.75rem;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme="dark"] body.game-red-herring .herring-play {
  border-color: #4a2a2e;
}

html[data-theme="dark"] body.game-red-herring .herring-play__title,
html[data-theme="dark"] body.game-red-herring .herring-play__bar {
  color: #fff;
}

html[data-theme="dark"] body.game-red-herring .herring-board,
html[data-theme="dark"] body.game-red-herring .herring-play {
  background: #f7f2ea;
}

html[data-theme="dark"] body.game-red-herring .herring-cat__title {
  color: #2a2224;
}

html[data-theme="dark"] body.game-red-herring .herring-tile {
  background: #d3bdbe;
  color: #2a2224;
}

/* Grids */
.grid {
  display: grid;
  gap: 3px;
  width: min(100%, 22rem);
  margin: 0.55rem auto 1rem;
  padding: 4px;
  background: #1a1a1a;
  border-radius: 6px;
}

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #fff;
  color: var(--tile-ink);
  font-weight: 800;
  font-size: clamp(0.7rem, 2.2vw, 1rem);
  border-radius: 2px;
}

.cell.block {
  background: #1a1a1a;
}

body.game-tiny-little-crosswords .tlc-board {
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  padding: 1rem 0.85rem 1.15rem;
  background: linear-gradient(180deg, #f7f4fb 0%, #ebe4f3 100%);
  border: 1px solid #d4c6e4;
  border-radius: 10px;
}

body.game-tiny-little-crosswords .tlc-theme {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 700;
  color: var(--header);
  letter-spacing: 0.01em;
}

body.game-tiny-little-crosswords .tlc-grid-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

body.game-tiny-little-crosswords .grid {
  background: var(--tlc-block);
  gap: 0;
  padding: 0;
  width: min(100%, 15.5rem);
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
}

body.game-tiny-little-crosswords .cell {
  border: 1px solid #1a1028;
  border-radius: 0;
  background: #fff;
  color: var(--tile-ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.95rem, 3.4vw, 1.2rem);
}

body.game-tiny-little-crosswords .cell.block {
  background: var(--tlc-block);
  border-color: var(--tlc-block);
}

body.game-tiny-little-crosswords .tlc-answers {
  margin: 0.65rem 0 0;
}

body.game-tiny-little-crosswords .tlc-dir {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
}

body.game-tiny-little-crosswords .tlc-answer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.game-tiny-little-crosswords .tlc-answer {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  background: var(--header);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

body.game-tiny-little-crosswords h2:not(.tlc-dir) {
  color: var(--muted);
}

body.game-woven-words .grid {
  background: transparent;
  gap: 6px;
  padding: 0;
}

body.game-woven-words .cell {
  background: var(--tile);
  color: #fff;
  border-radius: 8px;
  font-size: clamp(0.85rem, 2.6vw, 1.2rem);
}

body.game-woven-words .cell.block {
  background: transparent;
  visibility: hidden;
}

/* Monkey Wrench hex board */
.mw-words {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 0.75rem 0;
  padding: 0.85rem;
  background: var(--header);
  color: #fff;
  border-radius: var(--radius);
}

.mw-words li {
  font-weight: 700;
  font-size: 0.95rem;
}

.hex-board {
  --hex-size: clamp(1.55rem, 7.2vw, 2.15rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--hex-size) * -0.18);
  margin: 0.85rem auto 1rem;
  padding: 0.85rem 0.35rem;
  background: var(--playfield);
  border-radius: var(--radius);
  max-width: 100%;
  overflow-x: auto;
}

.hex-row {
  display: flex;
  gap: 0.18rem;
  justify-content: center;
}

.hex-row:nth-child(even) {
  margin-left: calc(var(--hex-size) * 0.55);
}

.hex-cell {
  width: var(--hex-size);
  height: calc(var(--hex-size) * 1.1);
  display: grid;
  place-items: center;
  background: var(--tile);
  color: var(--tile-ink);
  font-weight: 800;
  font-size: calc(var(--hex-size) * 0.42);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-cell.is-empty {
  background: transparent;
  color: transparent;
}

.hex-cell.is-start {
  background: var(--mw-start, #5c3a1e);
  color: #fff;
}

.hex-cell.is-path {
  background: var(--mw-path, #2f6b34);
  color: #fff;
}

.paths li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.paths .word {
  font-weight: 800;
  color: var(--header);
}

/* Multi-puzzle daily (7LW/4LW lanes) */
.daily-puzzle {
  margin: 1.5rem 0 0;
  padding-top: 0;
}

.daily-puzzle + .daily-puzzle {
  margin-top: 1.75rem;
}

.puzzle-bar {
  background: var(--header);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.puzzle-bar h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Packs */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 1rem 0 0.65rem;
}

.section-head h2 {
  margin: 0;
  color: var(--header);
  font-size: 1.15rem;
}

.section-head a {
  font-weight: 750;
  text-decoration: none;
}

.pack-ledger {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pack-rail {
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in srgb, var(--header) 18%, transparent);
}

.pack-rail:first-child {
  border-top: none;
  padding-top: 0;
}

.pack-rail__title {
  margin: 0;
  color: var(--header);
  font-size: 1.05rem;
  font-weight: 800;
}

.pack-rail__count {
  margin: 0.15rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.pack-rail__note {
  margin: -0.25rem 0 0.55rem;
}

.pack-rail__tiles,
ul.pack-list.pack-rail__tiles {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.55rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pack-rail__tiles > li {
  flex: 0 0 auto;
  list-style: none;
}

a.pack-btn,
.pack-btn--parts {
  --pack-bg: #47a1c0;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 8.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  width: 8.75rem;
  min-width: 8.75rem;
  aspect-ratio: 1;
  height: auto;
  padding: 0.85rem 0.55rem 0.65rem;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: var(--pack-bg);
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(20, 32, 48, 0.16);
  scroll-snap-align: start;
  transition: filter 0.15s ease, transform 0.15s ease;
}

a.pack-btn:hover,
.pack-btn--parts:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
}

a.pack-btn:focus-visible,
.pack-btn--parts:focus-within {
  outline: 2px solid color-mix(in srgb, var(--pack-bg) 40%, #000);
  outline-offset: 2px;
}

.pack-btn--parts {
  aspect-ratio: auto;
  height: auto;
  min-height: 8.75rem;
  gap: 0.45rem;
  padding-bottom: 0.55rem;
}

.pack-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0.1rem 0 0.2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--pack-bg);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.pack-btn__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.pack-btn__head:hover .pack-btn__name {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.pack-btn__name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.pack-btn__range {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-btn__parts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.pack-btn__part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.15rem 0.35rem;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.pack-btn__part:hover,
.pack-btn__part:focus-visible {
  background: rgba(255, 255, 255, 0.36);
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 1px;
  filter: none;
}

a.pack-btn.is-dim,
.pack-btn--parts.is-dim {
  opacity: 0.35;
}

a.pack-btn.is-hit,
.pack-btn--parts.is-hit {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 48rem) {
  a.pack-btn,
  .pack-btn--parts {
    flex-basis: 9.5rem;
    width: 9.5rem;
    min-width: 9.5rem;
  }

  .pack-btn--parts {
    min-height: 9.5rem;
  }

  .pack-btn__icon {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.45rem;
  }
}

.pack-filter-row {
  margin: 0 0 0.85rem;
}

.pack-filter-row .pack-search__control {
  border-radius: var(--radius);
}

.nums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
  justify-content: center;
}

.nums a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.3rem 0.55rem;
  background: var(--sky);
  color: var(--header);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.nums a:hover {
  background: var(--header);
  color: #fff;
}

.game-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.game-home-actions--tutorial {
  justify-content: center;
}

.tutorial-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 2.7rem;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--header);
  color: #fff;
}

.tutorial-pill__label {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.15rem 0.2rem;
}

.tutorial-pill__label:hover,
.tutorial-pill__label:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tutorial-parts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.tutorial-pill .pack-btn__part {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  min-width: 2.15rem;
  min-height: 2.15rem;
}

.tutorial-pill .pack-btn__part:hover,
.tutorial-pill .pack-btn__part:focus-visible {
  background: rgba(255, 255, 255, 0.36);
  color: #fff;
  filter: none;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 1px;
}

.btn--tutorial {
  background: var(--header);
  color: #fff;
  border-color: var(--header);
  font-weight: 800;
}

.btn--tutorial:hover {
  filter: brightness(1.08);
  color: #fff;
}

.bonus .label,
.kicker {
  font-weight: 800;
  color: var(--header);
}

.kicker {
  text-align: center;
  font-family: var(--font-puzzle, var(--font));
}

/* Dark mode soft override */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #121820;
  color: #e8eef6;
}

html[data-theme="dark"] body.home .site-main,
html[data-theme="dark"] .game-card__art,
html[data-theme="dark"] .clue-list,
html[data-theme="dark"] .qa-wrap,
html[data-theme="dark"] .note,
html[data-theme="dark"] [data-results] a {
  background: #1a2330;
  border-color: #2c3a4d;
  color: #e8eef6;
}

html[data-theme="dark"] a.pack-btn,
html[data-theme="dark"] .pack-btn--parts {
  background: var(--pack-bg);
  color: #fff;
  border: none;
}

html[data-theme="dark"] .pack-btn__name,
html[data-theme="dark"] .pack-btn__range {
  color: #fff;
}

html[data-theme="dark"] .pack-btn__range {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .qa-table thead th {
  background: #15202c;
  color: #8a9bb0;
  border-color: #2c3a4d;
}

html[data-theme="dark"] .qa-table th,
html[data-theme="dark"] .qa-table td {
  border-color: #2c3a4d;
}

html[data-theme="dark"] .qa-table tbody tr:nth-child(odd) {
  background: #1a2330;
}

html[data-theme="dark"] .qa-table tbody tr:nth-child(even) {
  background: #15202c;
}

html[data-theme="dark"] .qa-solution {
  color: var(--sky-soft);
}

html[data-theme="dark"] .game-card__date {
  background: #243044;
  border-color: #3a4a60;
  color: #e8eef6;
}

html[data-theme="dark"] a.game-card__date:hover {
  background: #2a384c;
  border-color: #6a8cb0;
  color: #c5daf0;
}

html[data-theme="dark"] .pack-btn__part {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

html[data-theme="dark"] .game-card__meta strong,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] h1 {
  color: #c5daf0;
}

html[data-theme="dark"] .game-card__tag {
  color: #9aabbd;
}

html[data-theme="dark"] a.game-card__meta .game-card__blurb,
html[data-theme="dark"] .game-card__blurb {
  color: #a8b6c6;
}

html[data-theme="dark"] a.game-card__meta:hover .game-card__blurb {
  color: #a8b6c6;
}

html[data-theme="dark"] .clue-row:nth-child(even) {
  background: #15202c;
}

html[data-theme="dark"] .puzzle-bar {
  background: color-mix(in srgb, var(--header) 85%, #000);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  a.game-card__meta .game-card__blurb,
  .game-card__blurb {
    font-size: 0.875rem;
  }

  .game-card__tag {
    font-size: 0.8125rem;
  }

  .qa-table thead th {
    font-size: 0.8125rem;
  }

  .pack-btn__range {
    font-size: 0.8125rem;
  }

  .qa-chunks .chunk-tile {
    font-size: 0.75rem;
  }
}
