/* ==========================================================================
   猜字 CAIZI — Design System
   Xuan paper + ink + vermilion lantern accent.
   ========================================================================== */
:root {
  --bg: oklch(96.8% 0.013 88);
  --bg-deep: oklch(93.6% 0.018 88);
  --surface: oklch(99.2% 0.006 88);
  --surface-2: oklch(94.8% 0.014 88);
  --ink: oklch(21% 0.012 88);
  --text: oklch(28% 0.012 88);
  --muted: oklch(51% 0.014 88);
  --line: rgba(27, 25, 18, 0.13);
  --line-strong: rgba(27, 25, 18, 0.24);
  --accent: #a63b2e;          /* 朱砂 */
  --accent: oklch(46% 0.13 32);
  --accent-deep: #7f2b20;
  --accent-soft: rgba(166, 59, 46, 0.1);
  --gold: #c8962e;           /* 灯笼黄 */
  --gold: oklch(66% 0.12 75);
  --seal: #a63b2e;

  --shadow-card: 0 1px 2px rgba(30, 26, 18, 0.07), 0 26px 52px -22px rgba(30, 26, 18, 0.17);
  --shadow-ink: 0 1px 2px rgba(0,0,0,0.2), 0 28px 56px -20px rgba(20,18,12,0.45);
  --key-light: inset 0 1px 0 rgba(255,255,255,0.65);
  --hairline: inset 0 0 0 1px rgba(27,25,18,0.07);

  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-full: 999px;
  --font-serif: "Noto Serif SC","Songti SC","STSong","SimSun",serif;
  --font-sans: "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --font-latin: "Inter Tight","Noto Sans SC",system-ui,sans-serif;
  --font-mono: "JetBrains Mono","IBM Plex Mono",ui-monospace,"Consolas",monospace;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-serif); color: var(--ink); margin: 0; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); font-weight: 400; }
.eyebrow { display: inline-block; font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lead { color: var(--muted); font-size: 15px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(27,25,18,0.035) 1px, transparent 1px); background-size: 3px 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
#main { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: var(--radius-full);
  cursor: pointer; transition: transform .15s var(--ease-out), background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--surface); border-color: var(--ink); box-shadow: var(--key-light); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 13px; padding: 7px 13px; }
.btn-xs { font-size: 12px; padding: 4px 10px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-seal { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--surface); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 900; font-size: 22px; box-shadow: var(--hairline), 0 4px 10px -4px rgba(166,59,46,0.5); }
.brand-name { font-family: var(--font-serif); font-weight: 900; font-size: 20px; color: var(--ink); }
.brand-sub { font-family: var(--font-latin); font-size: 10px; letter-spacing: 0.22em; color: var(--muted); margin-top: 2px; display: block; line-height: 1; }
.brand { flex-direction: row; }
.brand-name { display: flex; flex-direction: column; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { padding: 7px 13px; border-radius: var(--radius-full); font-size: 14px; color: var(--text); font-weight: 500; }
.site-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full); padding: 4px 6px 4px 14px; width: 240px; transition: border-color .2s, box-shadow .2s; }
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.header-search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 13px; font-family: var(--font-sans); color: var(--ink); min-width: 0; }
.header-search button { border: 0; background: var(--accent); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.header-search svg { width: 15px; height: 15px; }
.visit-pill { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 11px; border-radius: var(--radius-full); white-space: nowrap; }
.visit-pill strong { color: var(--ink); font-family: var(--font-latin); font-weight: 600; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #2f9e56; box-shadow: 0 0 0 0 rgba(47,158,86,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,158,86,0.45)} 70%{box-shadow:0 0 0 7px rgba(47,158,86,0)} 100%{box-shadow:0 0 0 0 rgba(47,158,86,0)} }
.visit-sep { opacity: 0.5; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 10px 5vw 18px; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.mobile-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-search { display: flex; gap: 6px; margin-bottom: 8px; }
.mobile-search input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-family: var(--font-sans); }
.mobile-search button { padding: 9px 16px; border-radius: 8px; background: var(--ink); color: #fff; border: 0; cursor: pointer; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 18px 0 4px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero { padding-bottom: 8px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; padding: 44px 0 30px; }
.hero-copy h1 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 900; line-height: 1.08; margin: 10px 0 14px; letter-spacing: 0.01em; }
.hero-lead { color: var(--muted); font-size: 16.5px; max-width: 46ch; margin-bottom: 22px; }
.hero-search { display: flex; gap: 8px; max-width: 460px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-full); padding: 6px; box-shadow: var(--shadow-card); }
.hero-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 8px 14px; font-size: 15px; font-family: var(--font-sans); min-width: 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line); font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-card { position: relative; background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-card); text-align: center; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.lantern { position: relative; width: 58px; height: 70px; margin: 0 auto 12px; background: var(--accent); border-radius: 50% / 42%; box-shadow: inset -6px -8px 16px rgba(0,0,0,0.25), 0 8px 18px -6px rgba(166,59,46,0.5); display: grid; place-items: center; color: var(--gold); font-family: var(--font-serif); font-weight: 900; font-size: 30px; }
.lantern::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 22px; height: 7px; background: var(--gold); border-radius: 3px; }
.lantern::after { content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 3px; height: 12px; background: var(--gold); }
.daily-label { font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.daily-q { font-family: var(--font-serif); font-size: 24px; font-weight: 700; line-height: 1.5; color: var(--ink); margin: 14px 0 18px; min-height: 3em; }
.daily-a { margin: 8px 0 14px; }
.daily-answer { display: inline-block; font-family: var(--font-serif); font-size: 52px; font-weight: 900; color: var(--accent); margin: 4px 0 8px; }
.daily-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stat band ---------- */
.stat-band { margin-top: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.stat-item { background: var(--surface); padding: 20px 18px; text-align: center; }
.stat-item strong { display: block; font-family: var(--font-latin); font-size: 30px; font-weight: 700; color: var(--ink); }
.stat-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section-tight { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-top: 6px; }
.section-head .lead { max-width: 40ch; }

/* ---------- Char page hero ---------- */
.char-hero { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: 36px; align-items: center; padding: 18px 0 10px; }
.answer-card { background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 26px; text-align: center; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.answer-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, var(--accent-soft), transparent 65%); pointer-events: none; }
.answer-eyebrow { font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; text-transform: uppercase; position: relative; z-index: 1; }
.answer-char { font-family: var(--font-serif); font-size: clamp(80px, 12vw, 130px); font-weight: 900; line-height: 1.05; color: var(--ink); margin: 6px 0; transition: filter .25s; position: relative; z-index: 1; }
.answer-py { font-size: 20px; color: var(--muted); font-family: var(--font-serif); position: relative; z-index: 1; }
.answer-switch { margin-top: 16px; position: relative; z-index: 1; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 34px; height: 19px; background: var(--line-strong); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(15px); }
.char-info h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 900; }
.char-title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 8px 0 12px; }
.char-py { font-size: 22px; color: var(--muted); font-family: var(--font-serif); font-weight: 400; }
.direct-answer { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 13px 16px; font-size: 15px; margin-bottom: 16px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.fact-grid > div { padding: 12px 14px; background: var(--surface); }
.fact-grid dt { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.fact-grid dd { margin: 3px 0 0; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.fact-grid dd a { border-bottom: 1px solid var(--line-strong); }

/* ---------- Riddle list ---------- */
.riddle-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.riddle-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.riddle-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.riddle-q { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.riddle-idx { font-family: var(--font-latin); font-size: 12px; color: var(--muted); flex-shrink: 0; min-width: 22px; }
.riddle-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.tag-human { background: var(--accent-soft); color: var(--accent); }
.tag-gen { background: var(--surface-2); color: var(--muted); }
.riddle-a { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 12px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; } }
.riddle-answer { font-family: var(--font-serif); font-size: 30px; font-weight: 900; color: var(--accent); transition: filter .25s; }
.riddle-a-hint { font-size: 12px; color: var(--muted); }
.riddle-reveal-all { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- Char grid / cells ---------- */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.char-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; transition: border-color .2s, transform .15s, background .2s; }
.char-cell:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.char-cell.hot { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.cc-c { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.cc-m { font-size: 10.5px; color: var(--muted); font-family: var(--font-latin); white-space: nowrap; }
.char-grid-hot .cc-c { font-size: 34px; }

/* ---------- Related ---------- */
.related-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.related-col h3 { font-size: 16px; margin-bottom: 10px; font-weight: 600; }
.related-col h3 span { color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- Lookup / index ---------- */
.lookup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lookup-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 20px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.lookup-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-card); }
.lookup-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--surface); font-family: var(--font-serif); font-weight: 900; font-size: 22px; margin-bottom: 12px; }
.lookup-card h3 { font-size: 18px; margin-bottom: 5px; }
.lookup-card p { color: var(--muted); font-size: 13px; }
.lookup-hero { padding: 22px 0 10px; }
.lookup-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.lookup-hero .lead { margin: 6px 0 16px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--surface); font-family: var(--font-sans); font-size: 13px; color: var(--ink); }
.filter-bar input { flex: 1; min-width: 200px; }
.filter-meta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.filter-meta strong { color: var(--ink); }
.alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.alpha-nav a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-latin); font-weight: 600; font-size: 14px; color: var(--ink); }
.alpha-nav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.radical-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.radical-nav a { display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 11px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line); font-family: var(--font-serif); font-size: 16px; color: var(--ink); }
.radical-nav a:hover { background: var(--accent-soft); border-color: var(--accent); }
.radical-nav em { font-style: normal; font-size: 11px; color: var(--muted); font-family: var(--font-latin); }
.index-group { margin-bottom: 30px; }
.index-group h3 { font-size: 18px; margin-bottom: 10px; }
.index-group .more { margin-top: 8px; font-size: 13px; }
.index-group .more a { color: var(--accent); }

/* ---------- 精选 ---------- */
.jx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.jx-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; }
.jx-title { display: inline-block; font-family: var(--font-serif); font-size: 26px; font-weight: 900; color: var(--accent); margin-bottom: 10px; }
.jx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.jx-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.jx-list li:last-child { border-bottom: 0; }
.jx-q { font-family: var(--font-serif); font-size: 15.5px; color: var(--ink); }
.jx-a { font-size: 12px; color: var(--muted); white-space: nowrap; transition: filter .25s; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 15px 18px; text-align: left; cursor: pointer; font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.faq-q svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: transform .25s; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.faq-a-inner { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { padding: 0 18px; }
.faq-item.is-open .faq-a-inner { padding: 0 18px 16px; }
.faq-a-inner { color: var(--text); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 40px 0 30px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 12px 0; max-width: 34ch; }
.footer-brand .brand { margin-bottom: 4px; }
.footer-seal { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.footer h4 { font-size: 14px; margin-bottom: 10px; font-family: var(--font-sans); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer a { font-size: 13px; color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; }
.ghost-mark { position: absolute; right: -10px; bottom: -40px; font-family: var(--font-serif); font-weight: 900; font-size: 200px; color: var(--ink); opacity: 0.035; pointer-events: none; line-height: 1; }

/* ---------- Prose / 404 ---------- */
.prose { max-width: 720px; padding: 20px 0 50px; }
.prose h1 { font-size: 34px; margin-bottom: 14px; }
.prose h2 { font-size: 22px; margin: 26px 0 10px; }
.prose p, .prose li { font-size: 15.5px; color: var(--text); margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.nf { min-height: 60vh; display: grid; place-items: center; padding: 40px 0; }
.nf-card { text-align: center; }
.nf-code { font-family: var(--font-latin); font-size: 80px; font-weight: 800; color: var(--accent); line-height: 1; }
.nf h1 { font-size: 28px; margin: 10px 0 8px; }
.nf p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Hide-answer mode ---------- */
body.hide-answer .answer-text { filter: blur(10px); user-select: none; }
body.hide-answer .answer-text:hover { cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .visit-pill { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
  .header-search { width: 100%; }
  .hero, .char-hero { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .lookup-grid { grid-template-columns: repeat(2, 1fr); }
  .riddle-list, .jx-grid { grid-template-columns: 1fr; }
  .related-columns { grid-template-columns: 1fr 1fr; }
  .related-col:last-child { grid-column: span 2; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .header-search { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .related-columns { grid-template-columns: 1fr; }
  .related-col:last-child { grid-column: auto; }
  .char-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  .cc-c { font-size: 24px; }
  .char-grid-hot .cc-c { font-size: 28px; }
}
