/* ==========================================================================
   成语日课 — Design System
   Palette: warm rice paper + cinnabar. One accent only.
   ========================================================================== */

:root {
  --bg: #f4eee2;
  --bg: oklch(95.8% 0.014 82);
  --bg-soft: #ede4d3;
  --bg-soft: oklch(93.2% 0.018 82);
  --surface: #fbf7ee;
  --surface: oklch(97.8% 0.009 82);
  --surface-2: #f7f1e6;
  --ink: #1d1914;
  --ink: oklch(21% 0.012 62);
  --text: #241f19;
  --text: oklch(25% 0.012 62);
  --muted: #6d6357;
  --muted: oklch(51% 0.014 70);
  --line: rgba(29, 25, 20, 0.12);
  --line-strong: rgba(29, 25, 20, 0.22);
  --accent: #b23a2b;
  --accent: oklch(54% 0.15 30);
  --accent-deep: #8d2a1e;
  --accent-soft: rgba(178, 58, 43, 0.1);
  --cream: #fbf7ee;

  --shadow-contact: 0 1px 2px rgba(41, 33, 24, 0.08);
  --shadow-ambient: 0 24px 48px -18px rgba(41, 33, 24, 0.22);
  --shadow-card: 0 1px 2px rgba(41, 33, 24, 0.08), 0 24px 48px -18px rgba(41, 33, 24, 0.2);
  --shadow-ink: 0 1px 2px rgba(0, 0, 0, 0.2), 0 28px 56px -20px rgba(29, 25, 20, 0.42);
  --key-light: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --hairline: inset 0 0 0 1px rgba(29, 25, 20, 0.07);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --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);
  --ease-press: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 8% -6%, rgba(255, 253, 247, 0.92), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(214, 197, 172, 0.34), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, var(--bg-soft) 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Paper grain — fixed, non-interactive */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.16'/></svg>");
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}
.container-narrow {
  width: 100%;
  max-width: 908px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.section { padding-top: clamp(76px, 9vw, 132px); padding-bottom: clamp(76px, 9vw, 132px); }
.section-tight { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-muted { color: var(--muted); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 10px 0 0; }
.section-head .lead { max-width: 380px; margin: 0; color: var(--muted); font-size: 15px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.01em; }
h2 em, h1 em { font-style: normal; color: var(--accent); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead-text { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--muted); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hairline-top { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
  transition: transform 160ms var(--ease-press), background-color 200ms ease, box-shadow 240ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 240ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-ink {
  color: var(--cream);
  background: linear-gradient(180deg, #312a22 0%, var(--ink) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    var(--shadow-contact),
    0 12px 28px -14px rgba(29, 25, 20, 0.5);
}
.btn-ink:hover { background: linear-gradient(180deg, #3a3229 0%, #241f19 100%); }

.btn-accent {
  color: var(--cream);
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 26px -14px rgba(178, 58, 43, 0.8);
}
.btn-accent:hover { background: var(--accent-deep); }

.btn-ghost {
  color: var(--text);
  background: rgba(251, 247, 238, 0.5);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--text); }

.btn-cream {
  color: var(--ink);
  background: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px -14px rgba(0, 0, 0, 0.5);
}
.btn-cream:hover { background: #fffdf7; }

.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 226, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: box-shadow 240ms ease, background-color 240ms ease;
}
.site-header.is-scrolled {
  background: rgba(244, 238, 226, 0.92);
  box-shadow: inset 0 -1px 0 var(--line), 0 10px 30px -24px rgba(41, 33, 24, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-seal {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 10px -4px rgba(178, 58, 43, 0.7);
}
.brand-name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  align-self: flex-end;
  padding-bottom: 3px;
}

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius-full);
  transition: color 180ms ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.visit-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(251, 247, 238, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.visit-pill strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.visit-sep { opacity: 0.35; }
.visit-label { opacity: 0.8; }

.pulse-dot { position: relative; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-ring 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 3.5px auto; background: var(--text); transition: transform 240ms var(--ease-out), opacity 180ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 12px clamp(20px, 4vw, 48px) 20px;
  background: rgba(251, 247, 238, 0.98);
  box-shadow: 0 24px 40px -24px rgba(41, 33, 24, 0.4), inset 0 -1px 0 var(--line);
  z-index: 49;
}
.mobile-nav.is-open { display: block; animation: dropdown-in 220ms var(--ease-out); }
.mobile-nav a { display: block; padding: 12px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(40px, 5.6vw, 84px);
  padding-top: clamp(52px, 6.4vw, 92px);
  padding-bottom: clamp(40px, 5vw, 68px);
}
.hero-copy { position: relative; z-index: 2; }

.eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.issue {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.hero-title {
  font-size: clamp(2.7rem, 5.1vw, 4.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-title em {
  position: relative;
  white-space: nowrap;
  color: var(--accent);
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -0.06em;
  height: 0.2em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'><path d='M2 12 C40 4 74 15 108 8 C142 2 176 9 198 5' fill='none' stroke='%23b23a2b' stroke-width='3' stroke-linecap='round' opacity='0.55'/></svg>") center / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-sub {
  max-width: 30em;
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.8;
  color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero-note { margin: 20px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }

.hero-stage { position: relative; z-index: 2; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% -6% 6%;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 70%, rgba(178, 58, 43, 0.14), transparent 70%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Game card
   -------------------------------------------------------------------------- */
.game-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  min-height: 524px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--key-light), var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px rgba(29, 25, 20, 0.05);
  z-index: -1;
}

.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-kicker { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.game-round { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.game-round strong { color: var(--text); font-weight: 500; }

.timer {
  --p: 100;
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(29, 25, 20, 0.1) 0);
  transition: background 120ms linear;
}
.timer::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--surface);
}
.timer span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.timer.is-low { background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(178, 58, 43, 0.16) 0); }
.timer.is-low span { color: var(--accent); }

.game-progress { height: 3px; margin-top: 18px; border-radius: 99px; background: rgba(29, 25, 20, 0.08); overflow: hidden; }
.game-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 360ms var(--ease-out); }

.game-body { display: flex; flex-direction: column; flex: 1; padding-top: 22px; }
.game-prompt { margin: 0 0 16px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.idiom-slots { display: flex; gap: 10px; margin-bottom: 12px; }
.slot {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-contact);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease-out);
}
.slot.is-blank { color: transparent; background: rgba(178, 58, 43, 0.07); box-shadow: inset 0 0 0 1.5px rgba(178, 58, 43, 0.35); }
.slot.is-blank::after { content: ""; width: 12px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0.55; }
.slot.is-filled { background: var(--ink); color: var(--cream); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-contact); animation: slot-flip 420ms var(--ease-out); }
.slot.is-correct { animation: slot-pop 420ms var(--ease-out); }
@keyframes slot-flip { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes slot-pop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }

.game-pinyin { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: lowercase; }
.game-hint {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(29, 25, 20, 0.04);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  box-shadow: inset 3px 0 0 rgba(178, 58, 43, 0.55);
}

.options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; }
.option {
  position: relative;
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-contact);
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--text);
  transition: transform 160ms var(--ease-press), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.option:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--text), 0 10px 18px -12px rgba(41, 33, 24, 0.5); }
.option:active:not(:disabled) { transform: scale(0.97); }
.option:disabled { cursor: default; }
.option.is-correct { background: var(--ink); color: var(--cream); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-contact); }
.option.is-wrong { background: rgba(178, 58, 43, 0.08); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(178, 58, 43, 0.28); text-decoration: line-through; }
.option.is-dim { opacity: 0.42; }

.game-feedback {
  min-height: 52px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  background: transparent;
  transition: background-color 220ms ease;
}
.game-feedback.is-correct { background: rgba(178, 58, 43, 0.07); color: var(--text); }
.game-feedback.is-wrong { background: rgba(29, 25, 20, 0.055); color: var(--text); }
.game-feedback strong { color: var(--accent); font-weight: 500; }

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.game-foot strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

.game-next { margin-top: 12px; }

.game-result {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(251, 247, 238, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(29, 25, 20, 0.08);
  animation: result-in 420ms var(--ease-out);
}

.game-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background: rgba(251, 247, 238, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(29, 25, 20, 0.08);
  animation: result-in 360ms var(--ease-out);
}
.intro-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.intro-title { margin: 10px 0 0; font-family: var(--font-serif); font-size: clamp(1.9rem, 3.4vw, 2.45rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.intro-meta { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.intro-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--muted); }
.intro-facts strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.intro-note { margin: 12px 0 0; text-align: center; font-size: 10.5px; color: var(--muted); }
@keyframes result-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
.result-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.result-score { margin: 8px 0 2px; font-family: var(--font-serif); font-size: clamp(3.4rem, 8vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.result-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.result-grid { margin: 18px 0 4px; font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.18em; color: var(--accent); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.result-note { margin-top: 14px; font-size: 11px; color: var(--muted); }

.game-skeleton { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; }
.sk { border-radius: 10px; background: rgba(29, 25, 20, 0.06); position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.5s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 26px 18px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-serif); font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.stat strong.accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.how-figure { position: sticky; top: calc(var(--header-h) + 40px); }
.how-big {
  font-family: var(--font-serif);
  font-size: clamp(7rem, 16vw, 12rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--text);
}
.how-big sup { font-family: var(--font-mono); font-size: 0.12em; letter-spacing: 0.1em; color: var(--accent); vertical-align: super; }
.how-big-label { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 15em; }
.how-figure-rule { width: 48px; height: 2px; margin-top: 26px; background: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); padding-top: 7px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.8; }

/* --------------------------------------------------------------------------
   Editorial / why
   -------------------------------------------------------------------------- */
.why { background: linear-gradient(180deg, rgba(237, 228, 211, 0) 0%, rgba(237, 228, 211, 0.55) 26%, rgba(237, 228, 211, 0.55) 74%, rgba(237, 228, 211, 0) 100%); }
.why-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.why-figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: var(--surface); }
.why-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why-figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(29, 25, 20, 0.08); border-radius: inherit; pointer-events: none; }
.figure-brand {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.figure-caption { position: absolute; left: 20px; bottom: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--cream); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.why-copy h2 { max-width: 13em; }
.why-copy p { margin-top: 20px; color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.why-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.why-facts dt { font-family: var(--font-serif); font-size: 26px; font-weight: 700; line-height: 1; }
.why-facts dd { margin: 8px 0 0; font-size: 11px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Bento / dictionary
   -------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: 1.52fr 1fr; gap: 14px; align-items: stretch; }
.bento-side { display: flex; flex-direction: column; gap: 14px; }
.bento-side .bento-card { flex: 1; }
.bento-main {
  position: relative;
  overflow: hidden;
  min-height: 372px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #262019 0%, var(--ink) 58%, #14110d 100%);
  color: var(--cream);
  box-shadow: var(--shadow-ink), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}
.bento-main::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -46%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 58, 43, 0.3), transparent 65%);
  pointer-events: none;
}
.bento-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(251, 247, 238, 0.55); }
.bento-main h3 { margin: 10px 0 0; font-size: clamp(1.5rem, 2.3vw, 2rem); color: var(--cream); }
.bento-main .bento-desc { margin: 12px 0 22px; max-width: 30em; font-size: 14px; line-height: 1.8; color: rgba(251, 247, 238, 0.62); }

.dict-form { position: relative; display: flex; gap: 8px; margin-top: auto; }
.dict-input {
  flex: 1;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(251, 247, 238, 0.07);
  box-shadow: inset 0 0 0 1px rgba(251, 247, 238, 0.18);
  color: var(--cream);
  font-size: 14px;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.dict-input::placeholder { color: rgba(251, 247, 238, 0.4); }
.dict-input:focus { outline: none; background: rgba(251, 247, 238, 0.1); box-shadow: inset 0 0 0 1px rgba(251, 247, 238, 0.5); }
.dict-form .search-icon { position: absolute; left: 15px; top: 15px; width: 17px; height: 17px; color: rgba(251, 247, 238, 0.55); pointer-events: none; }
.dict-form .btn { height: 48px; flex: none; }

.dict-results { margin-top: 16px; display: flex; flex-direction: column; }
.dict-result {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  transition: background-color 180ms ease;
}
a.dict-result { cursor: pointer; }
.dict-result:hover { background: rgba(251, 247, 238, 0.8); }
.dict-result .w { font-family: var(--font-serif); font-size: 17px; color: var(--text); }
.dict-result .w small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--muted); }
.dict-result .e { font-size: 12.5px; line-height: 1.6; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.dict-result mark { background: rgba(178, 58, 43, 0.14); color: var(--accent-deep); padding: 0 1px; border-radius: 2px; }
.dict-empty { padding: 12px 2px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }

.bento-main .dict-result { border-top-color: rgba(251, 247, 238, 0.1); }
.bento-main .dict-result:hover { background: rgba(251, 247, 238, 0.05); }
.bento-main .dict-result .w { color: var(--cream); }
.bento-main .dict-result .w small { color: rgba(251, 247, 238, 0.42); }
.bento-main .dict-result .e { color: rgba(251, 247, 238, 0.62); -webkit-line-clamp: 1; }
.bento-main .dict-result mark { background: rgba(178, 58, 43, 0.45); color: var(--cream); }
.bento-main .dict-empty { color: rgba(251, 247, 238, 0.5); border-top-color: rgba(251, 247, 238, 0.1); }

#dictSearchResults .dict-result { grid-template-columns: 6.4em 1fr; padding: 13px 2px; }
#dictSearchResults .dict-result .e { -webkit-line-clamp: 2; }

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--key-light), var(--shadow-card);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
  overflow: hidden;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--key-light), 0 1px 2px rgba(41, 33, 24, 0.08), 0 34px 56px -24px rgba(41, 33, 24, 0.3); }
.bento-card h4 { margin: 8px 0 0; font-family: var(--font-serif); font-size: 19px; }
.bento-card p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.bento-card .bento-glyph {
  position: absolute;
  right: 10px;
  bottom: -16px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(29, 25, 20, 0.07);
  pointer-events: none;
  user-select: none;
}
.bento-card .bento-arrow { position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 200ms ease, color 200ms ease, transform 260ms var(--ease-out); }
.bento-card:hover .bento-arrow { background: var(--ink); color: var(--cream); transform: translateX(2px); }
.bento-card.is-accent { background: var(--accent); color: var(--cream); }
.bento-card.is-accent p { color: rgba(251, 247, 238, 0.72); }
.bento-card.is-accent .bento-tag { color: rgba(251, 247, 238, 0.6); }
.bento-card.is-accent .bento-glyph { color: rgba(251, 247, 238, 0.16); }
.bento-card.is-accent .bento-arrow { box-shadow: inset 0 0 0 1px rgba(251, 247, 238, 0.3); }

/* --------------------------------------------------------------------------
   Picks
   -------------------------------------------------------------------------- */
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--key-light), var(--shadow-card);
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease;
}
.pick:hover { transform: translateY(-3px); box-shadow: var(--key-light), 0 1px 2px rgba(41, 33, 24, 0.08), 0 34px 56px -24px rgba(41, 33, 24, 0.3); }
.pick.is-feature { grid-column: span 2; min-height: 220px; }.pick .pick-word { font-family: var(--font-serif); font-size: 30px; font-weight: 700; letter-spacing: 0.02em; }
.pick.is-feature .pick-word { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.pick .pick-pinyin { margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--accent); text-transform: lowercase; }
.pick .pick-desc { margin: 14px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick .pick-more { margin-top: auto; padding-top: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); transition: color 200ms ease; }
.pick:hover .pick-more { color: var(--accent); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 780px; margin: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  transition: color 180ms ease;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 300ms var(--ease-out); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { margin: 0 0 22px; max-width: 46em; font-size: 14.5px; line-height: 1.85; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: clamp(48px, 6vw, 76px) 0 44px; }
.footer-brand p { margin-top: 14px; max-width: 21em; font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-seal { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.footer h4 { margin: 0 0 16px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13.5px; color: var(--text); transition: color 180ms ease; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; }
.ghost-mark {
  margin-top: -0.06em;
  pointer-events: none;
  user-select: none;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.78;
  font-size: clamp(8rem, 22vw, 21rem);
  background: linear-gradient(to bottom, rgba(178, 58, 43, 0.5), rgba(178, 58, 43, 0) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transform: translateY(0.16em);
}

/* --------------------------------------------------------------------------
   Sub-page hero & prose
   -------------------------------------------------------------------------- */
.page-hero { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(28px, 3vw, 44px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { opacity: 0.4; }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.page-hero .lead-text { max-width: 40em; margin-top: 20px; }
.title-pinyin { margin: 12px 0 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent); text-transform: lowercase; }

.prose { max-width: 820px; }
.prose h2 { margin: 54px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.95; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .muted { color: var(--muted); }

.summary-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--key-light), var(--shadow-card);
  margin: 28px 0 8px;
  box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px rgba(29, 25, 20, 0.06), var(--shadow-contact);
}
.summary-card .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.summary-card p { margin: 8px 0 0; font-size: 17px; line-height: 1.85; }

.fact-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 14.5px; }
.fact-table th, .fact-table td { padding: 13px 4px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { width: 7.5em; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.fact-table td { color: var(--text); line-height: 1.8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-serif);
  font-size: 14px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.chip:hover { background: var(--ink); color: var(--cream); box-shadow: none; }
.chip small { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.chip:hover small { color: rgba(251, 247, 238, 0.6); }

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #2a231b 0%, var(--ink) 72%);
  color: var(--cream);
  box-shadow: var(--shadow-ink), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.cta-band h2 { color: var(--cream); font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.cta-band p { margin: 10px 0 0; font-size: 13.5px; color: rgba(251, 247, 238, 0.62); }

/* --------------------------------------------------------------------------
   Dictionary index
   -------------------------------------------------------------------------- */
.dict-hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.dict-search-lg { position: relative; display: flex; gap: 8px; margin-top: 28px; max-width: 620px; }
.dict-search-lg .dict-input {
  height: 54px;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-contact);
  padding-left: 46px;
}
.dict-search-lg .dict-input::placeholder { color: var(--muted); opacity: 0.75; }
.dict-search-lg .dict-input:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); background: var(--surface); }
.dict-search-lg .search-icon { width: 18px; height: 18px; color: var(--muted); left: 17px; top: 18px; pointer-events: none; }
.dict-search-lg .btn { height: 54px; }

.dict-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.dict-meta strong { color: var(--text); font-weight: 500; }

.letter-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.letter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 14px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--key-light), var(--shadow-card);
  transition: transform 260ms var(--ease-out), background-color 220ms ease, color 220ms ease, box-shadow 260ms ease;
}
.letter-card strong { font-family: var(--font-serif); font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.letter-card span { margin-top: 5px; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.letter-card em { margin-top: 12px; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.letter-card:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.letter-card:hover span, .letter-card:hover em { color: rgba(251, 247, 238, 0.55); }

.letter-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.dict-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.dict-row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 13px 4px; border-bottom: 1px solid var(--line); transition: background-color 160ms ease; }
.dict-row > * { min-width: 0; }
.dict-row:hover { background: rgba(251, 247, 238, 0.7); }
.dict-row .w { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.dict-row .w small { display: block; font-family: var(--font-mono); font-size: 9px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); }
.dict-row .e { font-size: 12px; line-height: 1.65; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.search-state { padding: 40px 4px; text-align: center; color: var(--muted); font-size: 14px; }
.search-state strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Play page
   -------------------------------------------------------------------------- */
.play-layout { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.play-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.play-copy .game-card { margin: 0; max-width: 560px; }
.play-notes { list-style: none; padding: 0; margin: 28px 0 0; }
.play-notes li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.play-notes li span { font-family: var(--font-mono); font-size: 10px; color: var(--accent); padding-top: 3px; }

/* --------------------------------------------------------------------------
   Motion utilities
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(2) { transition-delay: 70ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 140ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 210ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 280ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 350ms; }
.stagger.is-in > *:nth-child(7) { transition-delay: 420ms; }
.stagger.is-in > *:nth-child(8) { transition-delay: 490ms; }

.rise { opacity: 0; transform: translateY(18px); animation: rise-in 700ms var(--ease-out) forwards; }
.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 140ms; }
.rise-3 { animation-delay: 220ms; }
.rise-4 { animation-delay: 300ms; }
.rise-5 { animation-delay: 380ms; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

.t-shine { position: relative; overflow: hidden; isolation: isolate; }
.t-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent calc(50% + 34%));
  transform: translateX(-130%);
  transition: transform 720ms var(--ease-out);
  pointer-events: none;
}
.t-shine:hover::after, .t-shine:focus-visible::after { transform: translateX(130%); }

.t-magnetic { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform 380ms var(--ease-out), background-color 200ms ease, box-shadow 240ms ease; }
.t-tilt { transform-style: preserve-3d; perspective: 900px; }
.t-tilt.is-tilting { transform: rotateX(calc(var(--ty, 0) * -5deg)) rotateY(calc(var(--tx, 0) * 5deg)) translateY(-3px); transition: transform 120ms linear; }

.digit-pop .digit { display: inline-block; animation: digit-pop 520ms cubic-bezier(0.34, 1.45, 0.64, 1) both; }
@keyframes digit-pop { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

@keyframes ripple-grow { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  transition: top 180ms ease;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; }
  .hero-stage { display: flex; justify-content: center; }
  .game-card { margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; }
  .why-figure { order: 2; max-width: 720px; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-figure { position: static; }
  .how-big { font-size: clamp(6rem, 18vw, 9rem); }
  .play-layout { grid-template-columns: 1fr; }
  .play-copy { position: static; }
  .dict-list { grid-template-columns: repeat(2, 1fr); }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .letter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-actions .btn { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-side { flex-direction: row; }
  .bento-main { min-height: 0; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .pick.is-feature { grid-column: span 2; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .dict-hero { grid-template-columns: 1fr; }
  .why-facts { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand-sub { display: none; }
  .visit-pill { padding: 0 10px; height: 32px; font-size: 10px; gap: 5px; }
  .visit-pill::before { content: "今日"; font-size: 9px; letter-spacing: 0.06em; color: var(--muted); }
  .visit-label { display: none; }
  .visit-sep { display: none; }
  .visit-pill [data-visits-total] { display: none; }
  .hero { padding-top: 36px; gap: 32px; }
  .hero-title { font-size: clamp(2.35rem, 10vw, 3rem); }
  .hero-title em { white-space: normal; }
  .hero-cta .btn { flex: 1 1 100%; }
  .game-card { padding: 18px; min-height: 480px; border-radius: 20px; }
  .game-card::before { display: none; }
  .slot { width: 52px; height: 52px; font-size: 27px; border-radius: 12px; }
  .idiom-slots { gap: 8px; }
  .options { grid-template-columns: 1fr 1fr; }
  .option { height: 50px; font-size: 22px; }
  .game-foot { font-size: 9px; flex-wrap: wrap; gap: 6px 12px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 14px; }
  .bento { grid-template-columns: 1fr; }
  .bento-side { flex-direction: column; }
  .bento-main { grid-column: auto; }
  .pick-grid { grid-template-columns: 1fr; }
  .pick.is-feature { grid-column: auto; }
  .dict-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .why-facts { grid-template-columns: 1fr; gap: 14px; }
  .dict-search-lg { flex-direction: column; }
  .dict-search-lg .btn { width: 100%; }
  .letter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prose p, .prose li { font-size: 16px; }
  .fact-table th { width: 6em; }
  .cta-band { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .stagger > *, .rise { opacity: 1 !important; transform: none !important; }
}
