:root {
  --ink: #1b201b;
  --muted: #6c7068;
  --paper: #f5f0e7;
  --paper-deep: #e9e1d3;
  --white: #fffdf8;
  --red: #dc523e;
  --red-dark: #b83b2c;
  --sage: #b7c4a6;
  --sage-dark: #5e7454;
  --yellow: #e8b958;
  --line: rgba(27, 32, 27, .14);
  --shadow: 0 24px 64px rgba(72, 57, 40, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(circle at 12% 3%, rgba(232,185,88,.13), transparent 25rem), var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(220,82,62,.3); outline-offset: 3px; }
.page-shell { width: min(100%, 1480px); margin: 0 auto; overflow: hidden; }
.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; }

.topbar {
  min-height: 88px;
  padding: 18px clamp(22px,5vw,76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  color: var(--white); background: var(--red); border-radius: 14px;
  font: 700 22px/1 "Songti SC", "Noto Serif SC", serif;
  transform: rotate(-3deg); box-shadow: inset -3px -3px 0 rgba(106,31,22,.14);
}
.brand-copy { display: flex; align-items: center; gap: 7px; }
.brand-copy strong { font-size: 18px; letter-spacing: -.045em; }
.brand-copy small { padding: 4px 6px 3px; border: 1px solid var(--line); border-radius: 5px; color: var(--red); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .progress-pill { border: 1px solid var(--line); background: rgba(255,253,248,.65); cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.icon-button:hover, .progress-pill:hover { transform: translateY(-2px); background: var(--white); }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.icon-button svg, .search-box svg, .quiz-audio svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.is-muted::after { content: ""; position: absolute; width: 21px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.progress-pill { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border-radius: 99px; font-size: 13px; }
.progress-dot { width: 9px; height: 9px; background: var(--sage-dark); border-radius: 50%; box-shadow: 0 0 0 4px rgba(94,116,84,.14); }

.hero {
  min-height: 680px;
  padding: 66px clamp(22px,7vw,110px) 84px;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(340px,.8fr);
  align-items: center;
  gap: clamp(56px,8vw,135px);
  position: relative;
}
.hero::after { content: ""; position: absolute; left: clamp(22px,7vw,110px); right: clamp(22px,7vw,110px); bottom: 0; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 25px; font: 500 clamp(62px,7.2vw,112px)/.86 Georgia,"Times New Roman",serif; letter-spacing: -.072em; }
h1 em { color: var(--red); font-weight: 500; }
h2 { margin-bottom: 0; font: 500 clamp(36px,4vw,58px)/1 Georgia,serif; letter-spacing: -.045em; }
.hero-description { max-width: 590px; color: var(--muted); font-size: clamp(17px,1.5vw,21px); line-height: 1.6; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 0; }
.hero-stats span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,253,248,.48); color: var(--muted); font-size: 12px; }
.hero-stats strong { color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.primary-button, .dark-button { border: 0; cursor: pointer; border-radius: 8px; font-weight: 800; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.primary-button { min-height: 52px; padding: 0 22px; color: var(--white); background: var(--red); box-shadow: 0 10px 24px rgba(184,59,44,.2); }
.primary-button:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(184,59,44,.25); }
.text-button { border: 0; background: none; cursor: pointer; font-weight: 750; padding: 10px 0; }
.shuffle-icon { display: inline-block; margin-right: 7px; font-size: 21px; transform: rotate(12deg); }
.hero-progress { max-width: 430px; margin-top: 30px; }
.hero-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.hero-progress-track { height: 7px; overflow: hidden; background: rgba(27,32,27,.1); border-radius: 99px; }
.hero-progress-track span { display: block; width: 0; height: 100%; background: var(--sage-dark); border-radius: inherit; transition: width 250ms ease; }

.hero-card-wrap { position: relative; width: min(100%,430px); justify-self: center; }
.featured-card {
  position: relative; min-height: 510px; padding: 28px 32px 32px; background: var(--white);
  border: 1px solid rgba(27,32,27,.09); border-radius: 18px; box-shadow: var(--shadow); transform: rotate(1.2deg);
  display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 260ms ease;
}
.featured-card:hover { transform: rotate(0) translateY(-5px); }
.featured-card::before { content: ""; position: absolute; inset: 12px; pointer-events: none; border: 1px solid rgba(220,82,62,.15); border-radius: 11px; }
.featured-topline { width: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.tone-tag { padding: 7px 10px; background: var(--paper); border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.favorite-button { border: 0; background: none; cursor: pointer; font-size: 28px; line-height: 1; color: var(--red); }
.favorite-button.is-favorite { font-size: 0; }
.favorite-button.is-favorite::after { content: "♥"; font-size: 25px; }
.featured-speaker { margin: 34px 0 4px; width: 66px; height: 42px; border: 0; background: none; cursor: pointer; }
.sound-rings { height: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; }
.sound-rings i { display: block; width: 4px; border-radius: 99px; background: var(--red); }
.sound-rings i:nth-child(1) { height: 16px; } .sound-rings i:nth-child(2) { height: 31px; } .sound-rings i:nth-child(3) { height: 22px; }
.is-speaking .sound-rings i { animation: speak 500ms ease infinite alternate; }
.is-speaking .sound-rings i:nth-child(2) { animation-delay: 100ms; } .is-speaking .sound-rings i:nth-child(3) { animation-delay: 200ms; }
@keyframes speak { to { height: 8px; } }
.featured-character { max-width: 100%; margin-top: 2px; font: 700 clamp(70px,9vw,142px)/1.05 "Kaiti SC","STKaiti","Songti SC",serif; letter-spacing: -.08em; overflow-wrap: anywhere; }
.featured-card.is-long-feature .featured-character { font-size: clamp(42px,5vw,74px); line-height: 1.15; letter-spacing: -.04em; }
.featured-pinyin { color: var(--red); font: italic 29px/1.25 Georgia,serif; }
.featured-meaning { margin-top: 8px; color: var(--muted); font-size: 16px; }
.featured-example { width: 100%; margin-top: auto; padding-top: 19px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.featured-example span { font-family: "Kaiti SC","STKaiti",serif; font-size: 21px; }
.featured-example small { color: var(--muted); }
.stamp { position: absolute; z-index: 2; padding: 8px 6px; color: var(--red); border: 2px solid var(--red); font: 700 13px/1 "Songti SC",serif; opacity: .75; }
.stamp-one { top: -28px; right: -22px; transform: rotate(12deg); } .stamp-two { bottom: 32px; left: -30px; transform: rotate(-9deg); }

.lesson-section { padding: 88px clamp(22px,7vw,110px) 106px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading > div:first-child { max-width: 760px; }
.section-intro { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.display-tools { display: flex; gap: 10px; }
.search-box { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.42); }
.search-box svg { width: 17px; color: var(--muted); }
.search-box input { width: 190px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.pinyin-toggle { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; padding: 0 14px; cursor: pointer; color: var(--muted); }
.pinyin-toggle.is-active { color: var(--sage-dark); background: rgba(183,196,166,.25); border-color: rgba(94,116,84,.35); }
.category-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding: 3px 0 5px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { white-space: nowrap; border: 1px solid var(--line); background: transparent; padding: 10px 14px; border-radius: 99px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 750; }
.category-tab span { margin-right: 5px; }
.category-tab small { margin-left: 5px; opacity: .65; }
.category-tab[aria-selected="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.result-line { display: flex; gap: 5px; justify-content: flex-end; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.word-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.word-card {
  min-height: 250px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.52);
  display: flex; flex-direction: column; position: relative; cursor: pointer; overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.word-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: 0 13px 30px rgba(72,57,40,.09); }
.word-card.is-learned { border-color: rgba(94,116,84,.55); }
.word-card-top { display: flex; align-items: center; justify-content: space-between; }
.category-label { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.mini-audio { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.mini-audio::before { content: "▶"; color: var(--red); font-size: 10px; margin-left: 2px; }
.mini-audio.is-speaking::before { content: "▮▮"; letter-spacing: 1px; }
.word-main { display: grid; gap: 7px; margin: auto 0 18px; }
.word-character { font: 600 62px/1.02 "Kaiti SC","STKaiti","Songti SC",serif; overflow-wrap: anywhere; }
.word-card.is-phrase .word-character { font-size: 38px; line-height: 1.15; }
.word-card.is-long .word-character { font-size: 29px; }
.word-pinyin { color: var(--red); font: italic 18px/1.25 Georgia,serif; transition: opacity 160ms ease; }
.hide-pinyin .word-pinyin { opacity: 0; }
.word-bottom { display: flex; justify-content: space-between; gap: 10px; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.word-meaning { font-weight: 750; font-size: 13px; line-height: 1.35; }
.learn-button { flex: 0 0 auto; border: 0; background: none; padding: 2px; cursor: pointer; color: var(--muted); font-size: 20px; }
.is-learned .learn-button { color: var(--sage-dark); }
.word-example { display: none; gap: 5px; margin-top: 15px; padding: 13px; border-radius: 10px; background: var(--paper); }
.word-card.is-open .word-example { display: grid; }
.word-example span { color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.word-example strong { font: 600 20px/1.3 "Kaiti SC",serif; }
.word-example small { color: var(--muted); line-height: 1.4; }
.empty-state { margin: 60px 0; color: var(--muted); text-align: center; }
.load-more { display: block; min-width: 200px; min-height: 48px; margin: 30px auto 0; padding: 0 20px; border: 1px solid var(--ink); border-radius: 10px; background: transparent; cursor: pointer; font-weight: 800; }
.load-more:hover { color: var(--white); background: var(--ink); }

.learning-method { margin: 0 clamp(22px,7vw,110px) 90px; padding: 66px clamp(24px,4vw,58px); background: var(--paper-deep); border: 1px solid var(--line); border-radius: 18px; }
.method-heading { max-width: 760px; }
.method-heading > p:last-child { max-width: 650px; margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 42px; }
.method-card { min-height: 240px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.method-card > span { color: var(--red); font: italic 18px/1 Georgia,serif; }
.method-card h3 { margin: 45px 0 13px; font: 500 25px/1.1 Georgia,serif; letter-spacing: -.025em; }
.method-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.quiz-banner { margin: 0 clamp(22px,7vw,110px) 90px; padding: 36px 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; color: var(--white); background: var(--red); border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.quiz-banner .eyebrow { color: #ffd8c9; }
.quiz-banner h2 { font-size: clamp(32px,3vw,47px); }
.quiz-banner p:last-child { margin: 10px 0 0; color: rgba(255,255,255,.78); }
.quiz-seal { width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: grid; place-content: center; text-align: center; font: 600 27px/1 "Kaiti SC",serif; transform: rotate(-5deg); }
.quiz-seal span { display: block; margin-top: 4px; font: 700 8px/1 sans-serif; text-transform: uppercase; letter-spacing: .15em; }
.dark-button { min-height: 50px; padding: 0 20px; color: var(--white); background: var(--ink); }
.dark-button:hover { transform: translateY(-2px); background: #080a07; }

.faq-section { padding: 20px clamp(22px,7vw,110px) 100px; display: grid; grid-template-columns: minmax(250px,.75fr) minmax(420px,1.25fr); gap: clamp(50px,8vw,120px); }
.faq-heading h2 { font-size: clamp(35px,3.5vw,52px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 23px 42px 23px 0; position: relative; cursor: pointer; list-style: none; font-weight: 750; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--red); font: 400 26px/1 Georgia,serif; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 650px; margin: -3px 45px 23px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

footer { padding: 30px clamp(22px,5vw,76px); display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-brand { margin-right: auto; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.footer-brand .brand-copy strong { font-size: 14px; }
.source-note { max-width: 330px; margin-bottom: 0; text-align: right; }
.source-note a { color: inherit; text-decoration-color: rgba(27,32,27,.35); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; padding: 12px 18px; color: var(--white); background: var(--ink); border-radius: 99px; transform: translate(-50%,30px); opacity: 0; pointer-events: none; transition: 200ms ease; font-size: 13px; box-shadow: var(--shadow); }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.mobile-nav { display: none; }

dialog { color: var(--ink); background: var(--paper); border: 0; border-radius: 18px; box-shadow: 0 35px 100px rgba(21,23,19,.32); }
dialog::backdrop { background: rgba(19,22,18,.58); backdrop-filter: blur(4px); }
.progress-dialog { width: min(92vw,480px); padding: 44px; }
.quiz-dialog { width: min(92vw,610px); padding: 42px; }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-size: 27px; }
.progress-visual { height: 11px; margin: 28px 0 14px; overflow: hidden; background: var(--paper-deep); border-radius: 99px; }
.progress-visual span { display: block; width: 0; height: 100%; background: var(--sage-dark); transition: width 300ms ease; }
.progress-dialog > p:not(.eyebrow) { color: var(--muted); }
.progress-dialog .primary-button { margin-top: 10px; }
.quiz-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.score-pill { padding: 7px 10px; border-radius: 99px; background: var(--paper-deep); font-size: 12px; }
.quiz-audio { margin: 28px auto 12px; border: 0; background: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.quiz-prompt { display: grid; justify-items: center; margin-bottom: 27px; text-align: center; }
.quiz-prompt span { max-width: 100%; font: 650 clamp(44px,8vw,82px)/1.15 "Kaiti SC",serif; overflow-wrap: anywhere; }
.quiz-prompt small { color: var(--red); font: italic 20px Georgia,serif; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-option { min-height: 56px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; text-align: left; font-weight: 650; }
.quiz-option:hover { border-color: var(--ink); }
.quiz-option.is-correct { color: #38502f; background: #dce7d5; border-color: #66805a; }
.quiz-option.is-wrong { color: #7f2f24; background: #f3d3cb; border-color: var(--red); }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { min-height: 20px; margin: 17px 0 0; text-align: center; color: var(--muted); font-weight: 700; }
.quiz-next { display: block; margin: 17px auto 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { max-width: 760px; }
  .hero-card-wrap { width: min(88%,450px); }
  .word-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 0; }
  .method-card h3 { margin-top: 28px; }
  .quiz-banner { grid-template-columns: auto 1fr; }
  .quiz-banner .dark-button { grid-column: 2; justify-self: start; }
  .faq-section { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); background: #f7f4ee; }
  .page-shell { overflow: visible; }
  .topbar { position: sticky; top: 0; z-index: 30; min-height: 68px; padding: 11px 15px; background: rgba(247,244,238,.9); backdrop-filter: blur(18px); }
  .brand { gap: 8px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 11px; font-size: 19px; }
  .brand-copy { gap: 5px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { padding: 3px 4px 2px; font-size: 7px; }
  .topbar-actions { gap: 7px; }
  .icon-button { width: 40px; height: 40px; background: var(--white); }
  .progress-pill { height: 40px; padding: 0 11px; background: var(--white); font-size: 11px; }
  .progress-pill .progress-dot { width: 7px; height: 7px; }

  .hero { min-height: 0; padding: 30px 16px 44px; grid-template-columns: 1fr; gap: 52px; }
  .hero::after { left: 16px; right: 16px; }
  .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: .16em; }
  h1 { margin-bottom: 17px; font-size: clamp(43px,13vw,59px); line-height: .92; letter-spacing: -.065em; }
  h2 { font-size: 34px; line-height: 1.02; }
  .hero-description { margin-bottom: 0; font-size: 15px; line-height: 1.55; }
  .hero-stats { gap: 6px; margin-top: 20px; }
  .hero-stats span { padding: 7px 9px; background: var(--white); font-size: 10px; }
  .hero-actions { display: grid; grid-template-columns: 1fr auto; gap: 15px; margin-top: 22px; }
  .primary-button { min-height: 50px; border-radius: 12px; }
  .text-button { font-size: 12px; }
  .hero-progress { margin-top: 23px; }
  .hero-card-wrap { width: calc(100% - 16px); }
  .featured-card { min-height: 390px; padding: 23px; border-radius: 22px; transform: rotate(.5deg); }
  .featured-card::before { border-radius: 15px; }
  .featured-speaker { margin-top: 22px; }
  .featured-character { font-size: clamp(66px,23vw,106px); }
  .featured-card.is-long-feature .featured-character { font-size: clamp(38px,11vw,53px); }
  .featured-pinyin { font-size: 24px; }
  .stamp-one { right: -10px; } .stamp-two { left: -10px; bottom: 24px; }

  .lesson-section { padding: 42px 14px 66px; }
  .section-heading { align-items: start; flex-direction: column; gap: 24px; margin-bottom: 18px; }
  .section-intro { margin-top: 14px; font-size: 13px; line-height: 1.6; }
  .display-tools { width: 100%; }
  .search-box { flex: 1; min-width: 0; height: 46px; border-radius: 13px; background: var(--white); }
  .search-box input { width: 100%; min-width: 0; font-size: 13px; }
  .pinyin-toggle { flex: 0 0 auto; min-height: 46px; border-radius: 13px; font-size: 11px; }
  .category-tabs { position: sticky; top: 68px; z-index: 20; margin: 0 -14px 10px; padding: 10px 14px; background: rgba(247,244,238,.94); backdrop-filter: blur(16px); }
  .category-tab { padding: 9px 12px; background: var(--white); font-size: 11px; }
  .result-line { justify-content: flex-start; margin: 4px 2px 10px; }
  .word-grid { grid-template-columns: 1fr; gap: 10px; }
  .word-card { min-height: 0; padding: 15px; border-radius: 16px; background: var(--white); box-shadow: 0 5px 20px rgba(72,57,40,.055); }
  .word-card:hover { transform: none; }
  .word-card-top { margin-bottom: 10px; }
  .mini-audio { width: 40px; height: 40px; background: rgba(220,82,62,.07); border-color: rgba(220,82,62,.16); }
  .word-main { grid-template-columns: auto 1fr; align-items: end; column-gap: 13px; row-gap: 2px; margin: 2px 0 14px; }
  .word-character { grid-row: 1 / 3; font-size: 53px; }
  .word-card.is-phrase .word-main, .word-card.is-long .word-main { grid-template-columns: 1fr; }
  .word-card.is-phrase .word-character, .word-card.is-long .word-character { grid-row: auto; font-size: 31px; line-height: 1.18; }
  .word-pinyin { padding-bottom: 4px; font-size: 17px; }
  .word-bottom { padding-top: 12px; align-items: center; }
  .word-meaning { font-size: 13px; }
  .learn-button { min-width: 38px; min-height: 38px; border-radius: 50%; background: var(--paper); }
  .word-example { margin-top: 12px; }
  .load-more { width: 100%; min-height: 50px; margin-top: 18px; border-radius: 14px; background: var(--white); }

  .learning-method { margin: 0 14px 54px; padding: 38px 18px; border-radius: 20px; }
  .method-heading > p:last-child { margin-top: 15px; font-size: 13px; }
  .method-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 28px; }
  .method-card { min-height: 0; padding: 20px; border-radius: 14px; }
  .method-card h3 { margin: 20px 0 9px; font-size: 22px; }
  .method-card p { font-size: 13px; }

  .quiz-banner { margin: 0 14px 54px; padding: 28px 22px; grid-template-columns: 1fr; gap: 16px; border-radius: 20px; }
  .quiz-seal { display: none; }
  .quiz-banner h2 { font-size: 34px; }
  .quiz-banner p:last-child { font-size: 13px; line-height: 1.55; }
  .quiz-banner .dark-button { grid-column: 1; width: 100%; min-height: 52px; border-radius: 12px; }

  .faq-section { padding: 0 16px 64px; grid-template-columns: 1fr; gap: 28px; }
  .faq-heading h2 { font-size: 34px; }
  .faq-list summary { padding: 20px 34px 20px 0; font-size: 14px; }
  .faq-list details p { margin-right: 20px; font-size: 13px; }

  footer { padding: 28px 16px 36px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-brand { margin-bottom: 4px; }
  .source-note { max-width: none; text-align: left; line-height: 1.5; }

  .mobile-nav {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 7px 10px env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(4,1fr);
    background: rgba(255,253,248,.94); border-top: 1px solid var(--line); backdrop-filter: blur(18px);
  }
  .mobile-nav button { min-height: 54px; border: 0; border-radius: 12px; background: transparent; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 9px; font-weight: 800; cursor: pointer; }
  .mobile-nav button span { font-size: 20px; line-height: 1; }
  .mobile-nav button.is-active { color: var(--red); background: rgba(220,82,62,.08); }
  .toast { bottom: calc(83px + env(safe-area-inset-bottom)); white-space: nowrap; }

  dialog { margin: auto 0 0; width: 100%; max-width: none; max-height: 90dvh; border-radius: 24px 24px 0 0; }
  .quiz-dialog, .progress-dialog { width: 100%; padding: 38px 19px calc(24px + env(safe-area-inset-bottom)); }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-header h2 { font-size: 29px; }
  .score-pill { margin-right: 20px; white-space: nowrap; }
  .quiz-prompt span { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
