:root {
  --bg: #f6f1e8;
  --surface: #fffaf3;
  --ink: #15202b;
  --muted: #5c6570;
  --navy: #10233a;
  --gold: #e8b84a;
  --line: rgba(16, 35, 58, 0.1);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif), "Iowan Old Style", Palatino, Georgia, serif;
  line-height: 1.65;
  font-size: 18px;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
}
.skip-link:focus { top: 12px; }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.hero {
  padding: 28px 0 12px;
}
.moved {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #10233a;
  color: #fffaf3;
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--ink);
}
.moved-note {
  max-width: 42rem;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0 48px;
}
@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .game-grid { grid-template-columns: repeat(6, 1fr); }
  .game-card:first-child { grid-column: auto; }
  .game-card { grid-column: span 2; }
  .game-card:nth-child(-n+3) { grid-column: span 2; }
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(16, 35, 58, 0.04);
}
.game-card:hover { border-color: rgba(16, 35, 58, 0.28); }
.game-card .kicker {
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, var(--navy));
  margin: 0 0 6px;
}
.game-card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.game-card p { margin: 0 0 16px; color: var(--muted); flex: 1; }
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent, var(--navy));
  color: #fff;
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  width: fit-content;
}

.editorial h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.editorial p { margin: 0 0 1rem; }
.editorial ul, .editorial ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.editorial li { margin: 0 0 0.45rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px;
  margin: 0 0 10px;
}
.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}
.inner-page .page-heading h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.eyebrow {
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.crumbs {
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.crumbs a { color: inherit; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px 48px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-links a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.contact-line, .operator-line { color: var(--muted); }
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}

.skill-section { margin: 0 0 48px; }
.skill-section > h2 { margin: 0 0 4px; font-size: 1.55rem; letter-spacing: -0.02em; }
.skill-lede { margin: 0 0 14px; color: var(--muted); }
.skill-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
.game-card h3 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -0.02em; }
.inner-page .lede { margin-top: 0; }

/* 2026-11-17 restructure: banner, latest list, category links, more-games block */
.moved-banner {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 35, 58, 0.06);
  color: var(--ink);
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
}
.moved-banner a { font-weight: 600; }
.section-title { margin: 0 0 4px; font-size: 1.55rem; letter-spacing: -0.02em; }
.section-lede { margin: 0 0 14px; color: var(--muted); }
.home-section { margin: 0 0 44px; }
.category-links { margin: 0 0 40px; }
.category-links-title {
  margin: 0 0 8px;
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.category-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(16, 35, 58, 0.16);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
}
.category-links a[aria-current="page"] { border-color: var(--navy); background: rgba(16, 35, 58, 0.06); }
.latest-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-height: 48px;
  padding: 10px 2px;
  text-decoration: none;
  color: inherit;
}
.latest-list strong { font-size: 1.08rem; }
.latest-list .tag {
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
}
.latest-list .desc { color: var(--muted); flex-basis: 100%; font-size: 0.95rem; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0 32px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
.more-games {
  margin: 40px 0 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.more-games h2 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -0.02em; }
.more-games-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px 18px; }
@media (min-width: 720px) { .more-games-list { grid-template-columns: repeat(2, 1fr); } }
.more-games-list a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 8px 0; text-decoration: none; }
.more-games-list span { color: var(--muted); font-size: 0.9rem; }
.more-games-links { margin: 0 0 8px; font-size: 0.95rem; line-height: 2; }
.compare-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: 0.95rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.compare-table th { font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Game guides (/play/*) */
.play-notice {
  background: #fff3d6;
  border: 1px solid #e8c879;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.5;
}
.play-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.play-actions .play-btn { text-decoration: none; }
.play-btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.play-table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.play-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.play-table th, .play-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.play-table thead th { background: var(--surface); }
.play-checked { font-size: 0.85rem; color: var(--muted); margin-top: 1.5rem; }
.play-embed { margin: 6px 0 24px; }
.play-embed-box { position: relative; width: 100%; max-width: 1200px; aspect-ratio: 16 / 9; min-height: 560px; }
.play-embed-note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.play-index-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 10px; }
.play-index-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.play-index-list a { font-weight: 650; }
.play-index-list span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

/* Homepage "Today" module */
.today-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.today-list li {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(8rem, 1.2fr) minmax(6.5rem, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
}
.today-name { font-weight: 700; }
.today-puzzle, .today-status { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.today-list li[data-done="1"] .today-status { color: #1d7a3a; font-weight: 600; }
.today-play {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent, var(--navy));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  min-width: 4.5rem;
}
.today-list li[data-done="1"] .today-play { background: transparent; color: var(--accent, var(--navy)); box-shadow: inset 0 0 0 2px currentColor; }
@media (max-width: 560px) {
  .today-list li { grid-template-columns: 1fr auto; }
  .today-puzzle, .today-status { grid-column: 1; font-size: 0.88rem; }
  .today-play { grid-column: 2; grid-row: 1 / span 3; }
}
.ged-nav {
  position: static;
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid rgba(16, 35, 58, 0.08);
  color: #15202b;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  box-sizing: border-box;
}
.ged-nav *,
.ged-nav *::before,
.ged-nav *::after { box-sizing: border-box; }
.ged-nav .ged-nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ged-nav .ged-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ged-nav .ged-nav-mark { display: flex; flex-shrink: 0; }
.ged-nav .ged-nav-name { font-size: 1.05rem; }
.ged-nav .ged-nav-more { position: relative; z-index: 40; }
.ged-nav .ged-nav-more > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 35, 58, 0.16);
  border-radius: 999px;
  background: #fffaf3;
  font-size: 0.95rem;
}
.ged-nav .ged-nav-more > summary::-webkit-details-marker { display: none; }
.ged-nav .ged-nav-more[open] > summary { border-color: #10233a; }
.ged-nav .ged-nav-more ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 8px;
  list-style: none;
  width: min(320px, calc(100vw - 32px));
  background: #fffaf3;
  border: 1px solid rgba(16, 35, 58, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(16, 35, 58, 0.12);
  z-index: 40;
}
.ged-nav .ged-nav-more a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.ged-nav .ged-nav-more a:hover,
.ged-nav .ged-nav-more a[aria-current="page"] { background: rgba(16, 35, 58, 0.06); }
.ged-nav .ged-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.ged-nav .ged-nav-more strong { display: block; font-size: 0.98rem; }
.ged-nav .ged-nav-more em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: #5c6570;
}
.ged-nav .ged-nav-more li.ged-nav-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin-top: 6px;
  padding: 8px 6px 2px;
  border-top: 1px solid rgba(16, 35, 58, 0.1);
}
.ged-nav .ged-nav-more .ged-nav-cats-label {
  width: 100%;
  padding: 0 4px 2px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c6570;
}
.ged-nav .ged-nav-more li.ged-nav-cats a {
  display: inline-flex;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .ged-nav {
    height: 40px;
    max-height: 40px;
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(16, 35, 58, 0.08);
  }
  .ged-nav .ged-nav-wrap {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 12px;
    gap: 8px;
  }
  .ged-nav .ged-nav-brand {
    min-height: 40px;
    height: 40px;
    gap: 8px;
  }
  .ged-nav .ged-nav-mark svg {
    width: 22px;
    height: 22px;
  }
  .ged-nav .ged-nav-name { font-size: 0.92rem; }
  .ged-nav .ged-nav-more > summary {
    min-height: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    font-size: 0.85rem;
  }
}

/* r18y 合集主题补充：原生模板新增结构与文章排版（门户 CSS 之上增量，不改动原两段） */
.ged-topnav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.ged-topnav a { color: var(--navy); text-decoration: none; font-size: 15px; }
.ged-topnav a:hover { text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
article.post h2 { margin-top: 28px; }
