:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1c1c1a;
  --muted: #5f5f58;
  --line: #e4e2da;
  --brand: #2f6b4f;
  --brand-hover: #24563f;
  --soft: #e6f0ea;
  --accent: #f2b33d;
  --warn: #b54708;
  --warn-soft: #fff4e5;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.wrap { width: 100%; max-width: 1112px; margin-inline: auto; padding-inline: 16px; }
.page { padding-block: 18px 64px; min-height: 65vh; }
header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-block: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo b { color: var(--brand); }
.logo-mark { flex: none; }
nav { display: flex; align-items: center; gap: 18px; }
header nav a, header summary {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.games-menu { position: relative; }
.games-menu summary { list-style: none; padding: 0; white-space: nowrap; }
.games-menu summary::-webkit-details-marker { display: none; }
.games-menu > div {
  position: absolute;
  right: 0;
  top: 46px;
  min-width: 180px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.games-menu a { display: flex; }
.crumb {
  font-size: 13px;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
  color: var(--ink);
}
.crumb a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.crumb-separator { white-space: pre; }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 12px; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 14px; max-width: 70ch; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--soft);
  color: var(--brand);
  padding: 1px 5px;
  border-radius: 4px;
}


.info-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.info-bar > span, .info-bar > time { white-space: nowrap; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--brand);
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
}
.checked { color: var(--brand); }
.globle-info { gap: 6px 8px; }
.info-segment { display: inline-block; white-space: nowrap; }
.info-dot { margin-right: 8px; }
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 12px;
}
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  border-radius: var(--radius);
  font-size: 16px;
  padding: 8px 12px;
  font-weight: 700;
  border: 2px solid var(--brand);
}
.action:hover { text-decoration: none; }
.answer-button { background: var(--brand); color: #ffffff; }
.answer-button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.hint-button { background: var(--surface); color: var(--brand); }
.hint-button:hover { background: var(--soft); }
.answer-disclosure, .hint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.answer-disclosure { scroll-margin-top: 16px; }
summary { min-height: 48px; padding: 12px 16px; }
.answer-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  min-height: 80px;
  list-style: none;
}
.answer-disclosure > summary::-webkit-details-marker,
.hint > summary::-webkit-details-marker { display: none; }
.answer-placeholder {
  font: 700 20px / 1.4 ui-monospace, monospace;
  color: var(--muted);
  letter-spacing: 0.08em;
  overflow: hidden;
  user-select: none;
}
.answer-disclosure[open] .answer-placeholder { display: none; }
.answer-disclosure[open] > summary::before { content: "Answer revealed"; font-weight: 700; }
.answer-disclosure[open] .tap { font-size: 0; }
.answer-disclosure[open] .tap::after { content: "Hide"; font-size: 14px; }
.tap { font-size: 14px; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.answer-body { padding: 0 18px 18px; }
.answer-body h2:first-child { margin-top: 0; }
.word-path, .path-part { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.word-tile {
  font: 700 20px ui-monospace, monospace;
  background: var(--soft);
  color: var(--brand);
  padding: 10px 14px;
  border-radius: 8px;
}
.word-tile.end { background: var(--accent); color: #3d2a00; }
.answer-label { overflow-wrap: anywhere; font: 700 24px ui-monospace, monospace; }
.country-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--brand);
}
.country-card .answer-label { font-size: 32px; line-height: 1.25; margin: 0 0 10px; }
.country-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.country-tag dd { margin: 0; }
.country-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.globle-steps { list-style: decimal; padding-left: 28px; margin-block: 16px; }
.globle-steps li { padding-block: 6px; padding-left: 4px; }
.globle-steps li::marker { color: var(--brand); font-weight: 700; }
.arrow { color: var(--muted); }
.solution-steps {
  list-style: decimal;
  padding-left: 28px;
  margin-block: 16px;
  font-family: ui-monospace, monospace;
}
.solution-steps li { padding-block: 6px; }
.changed-letter {
  color: var(--brand);
  background: var(--soft);
  font-weight: 700;
  padding: 1px 2px;
  border-radius: 3px;
}
.letter-change { white-space: nowrap; }
.notes-body { padding: 0 16px 16px; }
.notes-body h3 { font-size: 18px; margin-top: 4px; }
.notes-body p { padding: 0; margin-bottom: 14px; }


.recent-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.recent-table th, .recent-table td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.recent-table th:first-child { width: 45%; }
.recent-table a { display: inline-flex; align-items: center; min-height: 44px; }
.recent-table summary { padding-inline: 0; color: var(--brand); }
.recent-table p { font-family: ui-monospace, monospace; }
.other-compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.other-compact a { min-height: 44px; padding-inline: 14px; text-decoration: none; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.section-heading h2 { margin: 0; }
.section-heading a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
.hint { margin-block: 8px; }
.hint summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  font-weight: 600;
}
.hint summary::after { content: "+"; color: var(--brand); }
.hint:has(.tap) summary::after, .hint:has(.tap)[open] summary::after { content: none; }
.hint .when-open, .hint[open] .when-closed { display: none; }
.hint[open] .when-open { display: inline; }
.hint[open] summary::after { content: "\2212"; }
.hint p { padding: 0 16px 14px; margin: 0; }
.level {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  margin-right: 8px;
  font-size: 14px;
}
.local-date {
  margin: 12px 0;
  padding: 14px;
  background: var(--soft);
  color: var(--brand);
  border-radius: var(--radius);
  font-size: 14px;
}
.local-date a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.content-section { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); }
.guide-list, .prose ul { list-style: disc; padding-left: 24px; margin: 0 0 16px; }
.guide-list li, .prose li { margin-bottom: 10px; }
.text-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.text-links a { min-height: 44px; display: inline-flex; align-items: center; }
.side-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.side-card h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
}
.side-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.side-card a:hover { color: var(--brand); }
aside { margin-top: 36px; }
footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 24px; }
.footer-games, .footer-bottom {
  display: flex;
  gap: 12px 24px;
  align-items: center;
  flex-wrap: wrap;
}
footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.footer-bottom { justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 12px; }
.footer-bottom nav { flex-wrap: wrap; gap: 16px; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: var(--surface); z-index: 100; }
.skip-link:focus { top: 8px; }


.home-intro { padding-top: 28px; margin-bottom: 40px; }
.eyebrow { color: var(--brand); font-size: 14px; font-weight: 700; display: block; margin-bottom: 12px; }
.home h1 { font-size: 36px; max-width: 760px; }
.home-intro p { color: var(--muted); margin-top: 16px; }
.game-group { margin-block: 36px; }
.game-cards { display: grid; gap: 16px; }
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.card-title h3 { margin: 0; }
.card-title h3 a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.card-title h3 a:hover { color: var(--brand); text-decoration: underline; }
.game-card p { color: var(--muted); font-size: 14px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.button-link:hover { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; }
.button-link.outline { background: var(--surface); color: var(--brand); }
.button-link.outline:hover { background: var(--soft); }
.narrow { max-width: 752px; }
.lead { margin-block: 16px 24px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.date-nav { display: flex; justify-content: space-between; flex-wrap: wrap; margin-block: 16px; gap: 12px; }
.date-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.date-nav > span { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; }
.archive-list article { border-bottom: 1px solid var(--line); padding-block: 14px; }
.archive-list article > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-right: 10px; }
.archive-list details summary { color: var(--brand); padding-inline: 0; }
.archive-list details p { font-family: ui-monospace, monospace; }
.error-page { padding-block: 64px; }
.prose { margin-top: 24px; }
.desktop-break { display: none; }
.ff-info { margin-top: 12px; }
.ff-play { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.ff-prompt-nav { flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.ff-prompt-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.ff-prompt-nav a:hover { color: var(--brand); background: var(--soft); }
.ff-prompt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0;
  scroll-margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.ff-prompt:target { border-color: var(--brand); }
.ff-prompt-number { color: var(--brand); font-weight: 700; font-size: 14px; }
.ff-prompt h2 { margin: 6px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.ff-conditions { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.ff-fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 8px 0;
  background: var(--surface);
  scroll-margin-top: 16px;
}
.ff-fold > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-weight: 600;
  min-height: 48px;
}
.ff-fold > summary::-webkit-details-marker { display: none; }
.ff-fold > summary .ff-open, .ff-fold[open] > summary .ff-closed { display: none; }
.ff-fold[open] > summary .ff-open { display: inline; }
.ff-fold > p { padding: 0 16px 14px; margin: 0; }
.ff-hint-levels { padding: 0 8px 8px; }
.ff-hint-levels .ff-fold > summary { padding-inline: 10px; font-size: 14px; }
.ff-answer > summary { min-height: 80px; }
.ff-answer-body { padding: 0 14px 16px; overflow-wrap: anywhere; }
.ff-answer-body h3 { margin: 20px 0 10px; font-size: 16px; }
.ff-answer-body .answer-label { font-size: 28px; margin: 6px 0 14px; }
.ff-recommended-label { font-size: 14px; font-weight: 600; }
.ff-list-body { padding: 0 16px 8px; }
.ff-list-body h4 { font-weight: 700; margin: 12px 0 4px; font-size: 15px; }
.ff-list-body p { margin-bottom: 12px; }
.ff-completeness { margin: 8px 0 16px; }
.ff-anchor { scroll-margin-top: 16px; }
.ff-archive-list article { padding-block: 14px; border-bottom: 1px solid var(--line); }
.ff-archive-list .ff-fold { background: transparent; border: 0; }
.ff-archive-list summary { padding-inline: 0; }
.ff-archive-list ol { list-style: decimal; padding: 0 18px 8px 28px; }
.ff-archive-list li { padding-block: 10px; }
@media (max-width: 640px) {
  .home h1 { font-size: 28px; }
  .actions { grid-template-columns: 1fr; }
  .card-actions { grid-template-columns: 1fr; }
  .game-cards { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .globle-info .info-reset { flex-basis: 100%; }
  .globle-info .info-reset .info-dot { display: none; }
}
@media (min-width: 700px) {
  .game-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home h1 { font-size: 44px; }
  .desktop-break { display: block; }
}
@media (min-width: 900px) {
  .other-compact { display: none; }
  h1 { font-size: 32px; }
  .answer-grid { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 32px; }
  aside { margin-top: 0; }
  .game-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}