.content-page * { box-sizing: border-box; }
.content-page {
  margin: 0;
  min-height: 100vh;
  background: #f4f7fb;
  color: #14213d;
  font-family: Arial, sans-serif;
  line-height: 1.65;
}
.content-page:has(.hub-page),
.content-page:has(.hub-grid) {
  background: #f3ead8;
}
.content-main { width: min(960px, calc(100% - 32px)); margin: 32px auto 56px; }
.content-main.content-hub { width: min(1360px, calc(100% - 24px)); }
.content-card { padding: clamp(20px, 5vw, 42px); border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(24,45,80,.08); }
.content-card.hub-page { border-color: #d4c4a4; background: #fffaf1; }
.content-card h1 { margin: 0 0 16px; color: #103d7a; font-size: clamp(30px, 6vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }
.hub-page h1 { color: #12263f; font-family: Georgia, "Iowan Old Style", Palatino, serif; }
.content-card h2 { margin-top: 30px; color: #135c91; line-height: 1.25; }
.lead { font-size: 18px; color: #344766; }
.eyebrow { margin: 0 0 8px; color: #006b9e; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumbs { margin-bottom: 14px; color: #41597b; overflow-wrap: anywhere; }
.breadcrumbs a, .prose a { color: #005ea8; }
.prose p, .prose li { max-width: 72ch; }
.prose li + li { margin-top: 8px; }
.example-box { margin: 24px 0; padding: 18px; border-left: 5px solid #007bb5; border-radius: 8px; background: #eaf6fc; }
.content-actions, .daily-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.daily-editorial { margin-top: 34px; padding-top: 8px; border-top: 1px solid #dbe3ef; color: #1d2d44; }
.daily-editorial details, .faq-list details { margin: 12px 0; padding: 14px 16px; border: 1px solid #cbd9e8; border-radius: 8px; background: #f8fbfe; }
.daily-editorial summary, .faq-list summary { cursor: pointer; color: #064b72; font-weight: 800; }
.solution-list li + li { margin-top: 12px; }
.related-reading { margin-top: 30px; padding: 18px; border-radius: 8px; background: #f1f7fb; }
.content-button, .daily-controls button { min-height: 46px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: #006da3; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.content-button.secondary { background: #e7f1f8; color: #064b72; border: 1px solid #9abbd0; }
.archive-list { columns: 2; padding-left: 22px; }
.archive-list li { margin: 7px 0; break-inside: avoid; }
.archive-list a { color: #005ea8; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.index-card { padding: 20px; border: 1px solid #cbd9e8; border-radius: 10px; background: #f8fbfe; }
.index-card h2 { margin-top: 0; }
.daily-game { margin-top: 28px; padding: clamp(14px, 4vw, 24px); border-radius: 12px; background: #0d1b2a; color: #fff; }
.daily-game h2 { color: #8ee3ff; }
.daily-letter-grid, .mine-grid { width: min(100%, 420px); margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.daily-letter, .mine-cell, .search-cell { min-width: 0; aspect-ratio: 1; border: 2px solid #8cb8d5; border-radius: 9px; background: #f8fbff; color: #10243e; font-size: clamp(19px, 6vw, 27px); font-weight: 800; cursor: pointer; }
.daily-letter.selected, .mine-cell.selected, .search-cell.selected { border-color: #fff; background: #1685c0; color: #fff; }
.mine-cell.used, .search-cell.found { border-color: #8be0ad; background: #176b3a; color: #fff; }
.daily-word { min-height: 52px; margin: 16px auto 0; padding: 12px; display: grid; place-items: center; border-radius: 8px; background: #182b3f; font-size: 21px; font-weight: 700; }
.daily-status { min-height: 28px; color: #fff; font-weight: 700; }
.found-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.found-list li { padding: 6px 10px; border-radius: 999px; background: #176b3a; }
.answer-slots li:not(.found) { background: #21394f; letter-spacing: .08em; }
.found-list li:has(.found-word) { padding: 0; }
.found-word { padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search-grid { width: min(100%, 520px); margin: auto; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.search-cell { border-radius: 4px; font-size: clamp(14px, 4.5vw, 22px); }
.search-word-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }
.search-word-list li { padding: 6px 10px; border-radius: 6px; background: #21394f; }
.search-word-list li.found { background: #176b3a; text-decoration: line-through; }
.mini-crossword { width: min(100%, 440px); margin: auto; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; padding: 5px; border-radius: 7px; background: #050505; }
.mini-cell { position: relative; min-width: 0; aspect-ratio: 1; border: 1px solid #8eb8d1; background: #f4eadb; }
.mini-cell.blocked { border-color: #050505; background: #050505; }
.mini-cell.active { border-color: #168fc4; background: #bde7ff; }
.mini-cell.wrong { border-color: #d32f2f; background: #ffc9c9; }
.mini-cell:focus-within { z-index: 2; border-color: #ffb000; background: #fff3a6; box-shadow: inset 0 0 0 2px #ffb000; }
.mini-cell input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #101820; text-align: center; text-transform: uppercase; font-size: clamp(15px, 5vw, 24px); font-weight: 800; }
.mini-number { position: absolute; z-index: 1; top: 1px; left: 2px; color: #101820; font-size: 9px; font-weight: 800; pointer-events: none; }
.mini-clues { margin-top: 22px; }
.mini-clue { width: 100%; margin: 4px 0; padding: 12px; border: 1px solid #76abc8; border-radius: 7px; background: #17334b; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.mini-clue.active { outline: 3px solid #8ee3ff; background: #147aa8; }
@media (max-width: 600px) {
  .content-main { width: min(100% - 20px, 960px); margin-top: 18px; }
  .content-card { padding: 20px 14px; }
  .archive-list { columns: 1; }
  .daily-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-controls button { min-width: 0; padding-inline: 8px; }
}

.site-more-games {
  position: relative;
}
.site-more-games > summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  padding: 10px 9px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.site-more-games > summary::-webkit-details-marker { display: none; }
.site-more-games > summary:hover,
.site-more-games[open] > summary {
  color: #0c2340;
  background: #c9a227;
}
.site-more-games-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 240px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #9abbd0;
  border-radius: 10px;
  background: #0d1b2a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.site-more-games-list a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  white-space: normal;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.daily-game [hidden] { display: none !important; }
.daily-controls button.secondary { background: #e7f1f8; color: #064b72; border: 1px solid #9abbd0; }
.daily-controls button:disabled, .lock-key:disabled { opacity: 0.55; cursor: default; }
.daily-status[data-tone="good"] { color: #8be0ad; }
.daily-status[data-tone="bad"] { color: #ffb4a8; }
.daily-game.solved .daily-status { font-size: 1.1em; }
.cell-ok { border-color: #8be0ad !important; background: #dff5e7 !important; }
.cell-bad { border-color: #e0604f !important; background: #ffe1dc !important; }
.chain-board { width: min(100%, 420px); margin: auto; }
.chain-step {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.chain-label { width: 44px; flex: none; color: #8ee3ff; font-size: 14px; font-weight: 700; text-align: right; }
.chain-step input, .gap-row input {
  width: 46px;
  height: 46px;
  min-width: 0;
  flex: 0 1 46px;
  padding: 0;
  border: 2px solid #8cb8d5;
  border-radius: 8px;
  background: #f8fbff;
  color: #10243e;
  text-align: center;
  text-transform: uppercase;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
}
.chain-step::after { content: ""; width: 44px; flex: none; }
.chain-letter {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #176b3a;
  font-size: 22px;
  font-weight: 800;
}
.chain-arrow { margin: 4px 0; text-align: center; color: #8ee3ff; }
.boggle-grid {
  width: min(100%, 360px);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(var(--boggle-size, 4), minmax(0, 1fr));
  gap: 6px;
}
.boggle-cell {
  min-width: 0;
  aspect-ratio: 1;
  border: 2px solid #8cb8d5;
  border-radius: 9px;
  background: #f8fbff;
  color: #10243e;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.boggle-cell.used { border-color: #8be0ad; background: #dff5e7; }
.boggle-cell.selected { border-color: #fff; background: #1685c0; color: #fff; }
.found-list li.revealed { background: #5b4a1c; }
.anagram-list, .gap-board { display: grid; gap: 12px; }
.daily-game .anagram-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(120px, 200px);
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
}
.anagram-row.row-ok { background: #17352a; }
.anagram-row.row-bad { background: #3a1818; }
.anagram-row.row-ok input { border-color: #8be0ad; }
.anagram-row.row-bad input { border-color: #e0604f; }
.anagram-tier {
  padding: 4px 8px;
  border-radius: 999px;
  background: #21394f;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.anagram-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.anagram-letters span {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #21394f;
  font-size: 19px;
  font-weight: 800;
}
.daily-game .root-field {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.anagram-row input, .daily-game .root-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid #8cb8d5;
  border-radius: 8px;
  background: #f8fbff;
  color: #10243e;
  text-transform: uppercase;
  font: inherit;
  font-weight: 800;
}
.lock-board { width: min(100%, 360px); margin: auto; display: grid; gap: 6px; }
.lock-row { display: grid; grid-template-columns: repeat(var(--lock-len, 5), minmax(0, 1fr)); gap: 6px; }
.lock-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #7ea6c2;
  border-radius: 8px;
  background: #152433;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 800;
}
.lock-cell.filled { border-color: #d6ecff; }
.lock-cell.exact { background: #0d7377; border-color: #8ee3ff; }
.lock-cell.near { background: #b35a1f; border-color: #ffd19a; }
.lock-cell.miss { background: #243040; color: #9aa7b5; }
.lock-keyboard {
  width: min(100%, 560px);
  margin: 14px auto 0;
  display: grid;
  gap: 6px;
}
.lock-key-row { display: flex; justify-content: center; gap: 4px; }
.lock-key-row .lock-key { flex: 1 1 0; min-width: 0; max-width: 46px; padding: 0; }
.lock-key-row .lock-key.wide { flex: 1.6 1 0; max-width: 84px; font-size: 14px; }
.alpha-pool, .pair-col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.lock-key, .alpha-chip, .pair-chip {
  min-width: 40px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #76abc8;
  border-radius: 7px;
  background: #17334b;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.lock-key.exact, .pair-chip.found, .alpha-chip.used { background: #176b3a; }
.lock-key.near { background: #b35a1f; }
.lock-key.miss { background: #243040; color: #8b97a6; }
.pair-chip.found, .alpha-chip.used { opacity: 0.7; cursor: default; }
.pair-chip.wrong { background: #8b2e2e; }
.gap-row { display: flex; justify-content: center; gap: 6px; }
.gap-fixed {
  width: 46px;
  height: 46px;
  flex: 0 1 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #21394f;
  font-size: 22px;
  font-weight: 800;
}
.pair-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair-col { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; }
.pair-chip.selected { outline: 3px solid #8ee3ff; background: #147aa8; }
.daily-game .mini-cell { display: block; }
.mini-dense { grid-template-columns: repeat(var(--mini-size, 6), minmax(0, 1fr)); width: min(100%, var(--mini-width, 360px)); }
.mini-number { font-size: 11px; }
.mini-len { color: #b9d7ea; font-size: 0.9em; }
.mini-cell input.cell-ok, .mini-cell input.cell-bad { border: 0 !important; }
.mini-cell input.cell-bad { color: #b3261e; }
.alpha-order { min-height: 52px; margin: 16px 0 0; padding-left: 28px; color: #8ee3ff; font-weight: 700; }
.alpha-order li { padding: 2px 6px; border-radius: 6px; }
.alpha-order li.row-ok { color: #8be0ad; }
.alpha-order li.row-bad { background: #3a1818; color: #ffb4a8; }
.root-word { text-align: center; font-size: 22px; }
.gallows-topic, .gallows-word { text-align: center; font-size: 20px; font-weight: 800; }
.gallows-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0; }
.gallows-slot { width: 30px; height: 38px; display: grid; place-items: center; border-bottom: 3px solid #8ee3ff; font-size: 24px; }
.gallows-slot.revealed { color: #ffb4a8; }
.bloom {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  position: relative;
}
.bloom-ring { position: absolute; inset: 0; }
.bloom-key {
  width: 58px;
  height: 58px;
  position: absolute;
  left: calc(50% - 29px);
  top: calc(50% - 29px);
  border: 1px solid #d7c49a;
  border-radius: 50%;
  background: #2a2418;
  color: #f5edda;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.bloom-ring .bloom-key:nth-child(1) { transform: translate(0, -88px); }
.bloom-ring .bloom-key:nth-child(2) { transform: translate(76px, -44px); }
.bloom-ring .bloom-key:nth-child(3) { transform: translate(76px, 44px); }
.bloom-ring .bloom-key:nth-child(4) { transform: translate(0, 88px); }
.bloom-ring .bloom-key:nth-child(5) { transform: translate(-76px, 44px); }
.bloom-ring .bloom-key:nth-child(6) { transform: translate(-76px, -44px); }
.bloom-ring .bloom-key:nth-child(n+7) { transform: translate(0, 0); }
.bloom-center { width: 72px; height: 72px; left: calc(50% - 36px); top: calc(50% - 36px); z-index: 1; background: #b08d3e; color: #1a160c; font-size: 30px; }
.quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
  margin: auto;
}
.quad-board {
  padding: 6px;
  display: grid;
  gap: 3px;
  border: 1px solid #b08d3e;
  border-radius: 10px;
  background: #16130e;
}
.quad-board.open { border-color: #8cb4d4; box-shadow: 0 0 0 2px #1a4a6e; }
.quad-board .lock-row { gap: 3px; }
.quad-board .lock-cell {
  border-width: 1px;
  border-radius: 5px;
  font-size: clamp(12px, 3.4vw, 17px);
}
.quad-board .lock-cell.exact { background: #1a4a6e; border-color: #8cb4d4; }
.quad-board .lock-cell.near { background: #b08d3e; color: #1a160c; border-color: #e6d3a3; }
.quad-answer { margin: 4px 0 0; text-align: center; color: #f0dfb2; font-weight: 800; letter-spacing: 0.1em; }
.visa-word {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f0dfb2;
}
.visa-lead { text-align: center; color: #e6d3a3; }
.visa-q {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #b08d3e;
  border-radius: 10px;
}
.visa-q legend { padding: 0 6px; font-weight: 700; }
.daily-game .visa-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 4px 0;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.visa-option input { width: 20px; height: 20px; flex: none; margin: 0; }
.visa-option:hover { background: rgba(255, 255, 255, 0.06); }
.visa-option.visa-correct { background: #17352a; outline: 1px solid #7dcea0; }
.visa-option.visa-wrong { background: #3a1818; }
.visa-ok { border-color: #7dcea0; background: #17352a; }
.visa-bad { border-color: #c0392b; background: #3a1818; }
.puzzle-instructions { color: #c5d6e4; }
.external-play { margin: 20px 0 28px; }
.external-play-frame {
  display: block;
  width: 100%;
  min-height: min(72vh, 760px);
  border: 1px solid #9abbd0;
  border-radius: 12px;
  background: #0d1b2a;
}
.external-play-note { color: #c5d6e4; font-size: 15px; }
@media (max-width: 600px) {
  .daily-game .anagram-row { grid-template-columns: auto minmax(0, 1fr); }
  .daily-game .anagram-row input { grid-column: 1 / -1; }
  .pair-columns { gap: 8px; }
  .pair-chip { padding: 8px 6px; overflow-wrap: anywhere; }
  .site-more-games { grid-column: 1 / -1; }
  .site-more-games-list { position: static; min-width: 0; }
  .quad-grid { gap: 6px; }
  .quad-board { padding: 4px; }
  .chain-label, .chain-step::after { width: 40px; font-size: 12px; }
  .chain-step { gap: 4px; }
  .lock-key-row .lock-key.wide { font-size: 13px; }
}
