/* ============================================================
   MandarinKu — stylesheet
   ============================================================ */
:root {
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --ink: #23201d;
  --ink-2: #5d5751;
  --muted: #918a80;
  --border: #e9e2d7;
  --accent: #b7332a;
  --accent-dark: #92271f;
  --accent-soft: #fbeeeb;
  --gold: #b3862f;
  --gold-soft: #fbf3df;
  --green: #2f7d5d;
  --green-soft: #e7f4ee;
  --blue: #36668f;
  --shadow: 0 6px 24px rgba(60, 45, 30, .07);
  --shadow-lg: 0 20px 60px rgba(40, 28, 18, .18);
  --radius: 16px;
  --hanzi-font: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
}

[data-theme="dark"] {
  --bg: #17181b;
  --surface: #212327;
  --surface-2: #1b1d20;
  --ink: #f2eee8;
  --ink-2: #c4bdb3;
  --muted: #8d857b;
  --border: #34363b;
  --accent: #e05a4c;
  --accent-dark: #c84336;
  --accent-soft: #3a2523;
  --gold: #d6a94b;
  --gold-soft: #352d1c;
  --green: #54b58a;
  --green-soft: #1e332c;
  --blue: #79a9d1;
  --shadow: 0 6px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 242px; flex: 0 0 242px; background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; }
.brand-seal {
  width: 40px; height: 40px; border-radius: 11px; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-family: var(--hanzi-font);
  font-size: 23px; box-shadow: 0 5px 14px rgba(183, 51, 42, .28);
}
.brand-text strong { display: block; font-size: 17px; letter-spacing: -.3px; }
.brand-text span { display: block; font-size: 11px; color: var(--muted); }
.sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.3px; color: var(--muted);
  padding: 14px 22px 6px;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav-item {
  border: 0; background: transparent; text-align: left; display: flex;
  align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: 13.5px; position: relative;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-ico { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 19px; }
.nav-ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-badge {
  margin-left: auto; background: var(--accent); color: #fff; font-style: normal;
  font-size: 10px; min-width: 19px; height: 19px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px;
}
.sidebar-foot { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid var(--border); }
.foot-line { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.foot-note { margin-top: 6px; font-size: 10.5px; color: var(--muted); line-height: 1.4; }

.content-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 72px; flex: 0 0 72px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 32px; position: sticky; top: 0; z-index: 20;
}
.topbar-title span { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.3px; }
.topbar-title small { display: block; font-size: 11.5px; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); font-size: 18px; color: var(--ink-2); display: grid; place-items: center;
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold);
  display: grid; place-items: center; font-family: var(--hanzi-font); font-size: 18px; font-weight: 700;
}
.menu-toggle { display: none; border: 0; background: transparent; font-size: 21px; }
.view { padding: 28px 32px 60px; max-width: 1240px; width: 100%; margin: 0 auto; }
.bottom-nav { display: none; }

/* ---------- generic ---------- */
h1.page-title { font-size: 24px; margin: 0 0 4px; letter-spacing: -.6px; }
p.page-sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .muted { color: var(--muted); font-size: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 13px; gap: 12px; }
.section-head h2 { font-size: 17px; margin: 0; letter-spacing: -.3px; }
.section-head .link { color: var(--accent); font-size: 12px; font-weight: 700; background: none; border: 0; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 9px 15px; font-weight: 650; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 6px 10px; font-size: 11.5px; border-radius: 8px; }
.btn.wide { width: 100%; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 6px 13px; font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.gold.active { background: var(--gold); border-color: var(--gold); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2);
}
.tag.red { background: var(--accent-soft); color: var(--accent); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.hz { font-family: var(--hanzi-font); font-weight: 600; }
.py { color: var(--green); font-weight: 650; }
.bar { height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-family: var(--hanzi-font); font-size: 44px; color: var(--border); margin-bottom: 8px; }

/* ---------- home ---------- */
.hero {
  border-radius: 20px; padding: 28px 30px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #a82b24 0%, #c14635 55%, #d1674b 100%);
  box-shadow: 0 14px 36px rgba(150, 45, 32, .24);
}
.hero::after {
  content: "学"; position: absolute; right: 26px; top: -32px; font-family: var(--hanzi-font);
  font-size: 210px; line-height: 1; color: rgba(255,255,255,.09); pointer-events: none;
}
.hero h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.7px; }
.hero p { margin: 0 0 20px; color: rgba(255,255,255,.85); font-size: 13px; max-width: 480px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn.primary { background: #fff; color: var(--accent-dark); border-color: #fff; }
.hero .btn.light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.42); }
.hero .btn.light:hover { background: rgba(255,255,255,.24); color: #fff; }
.stat-card { display: flex; align-items: center; gap: 13px; }
.stat-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: 0 0 42px; }
.stat-ico.red { background: var(--accent-soft); color: var(--accent); }
.stat-ico.green { background: var(--green-soft); color: var(--green); }
.stat-ico.gold { background: var(--gold-soft); color: var(--gold); }
.stat-num { font-size: 21px; font-weight: 750; line-height: 1.2; }
.stat-label { font-size: 11.5px; color: var(--muted); }
.level-card { cursor: pointer; transition: transform .16s, border-color .16s; }
.level-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.level-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.level-num { font-size: 13px; font-weight: 750; }
.level-count { font-size: 11px; color: var(--muted); }
.level-words { font-family: var(--hanzi-font); font-size: 15px; color: var(--ink-2); margin: 10px 0 12px; letter-spacing: 2px; }
.tone-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.tone-pill {
  flex: 1; min-width: 110px; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; text-align: center; background: var(--surface); cursor: pointer;
}
.tone-pill:hover { border-color: var(--accent); }
.tone-pill b { font-size: 19px; color: var(--green); display: block; font-family: var(--hanzi-font); }
.tone-pill small { color: var(--muted); font-size: 10.5px; }

/* ---------- vocabulary ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 16px; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input, .field {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 10px;
  padding: 9px 12px 9px 34px; outline: none; font-size: 13px;
}
.search-box input:focus, .field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box::before { content: "⌕"; position: absolute; left: 12px; top: 6px; color: var(--muted); font-size: 17px; }
select.field { padding-left: 10px; width: auto; }
.word-list { display: flex; flex-direction: column; gap: 8px; }
.word-row {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
  transition: border-color .15s, background .15s;
}
.word-row:hover { border-color: var(--accent); background: var(--surface-2); }
.word-main { flex: 1; min-width: 0; }
.word-hz { font-family: var(--hanzi-font); font-size: 22px; font-weight: 650; line-height: 1.2; }
.word-py { color: var(--green); font-size: 12.5px; font-weight: 650; margin-left: 9px; }
.word-idn { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.word-actions { display: flex; align-items: center; gap: 5px; }
.mini-btn {
  width: 31px; height: 31px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; font-size: 14px; color: var(--ink-2);
}
.mini-btn:hover { color: var(--accent); border-color: var(--accent); }
.mini-btn.on { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.status-dot.learning { background: var(--gold); }
.status-dot.mastered { background: var(--green); }
.list-foot { text-align: center; margin-top: 18px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(24, 18, 14, .55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px);
}
.modal {
  background: var(--surface); border-radius: 18px; width: min(640px, 100%);
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); padding: 24px; position: relative;
}
.modal-close {
  position: absolute; right: 14px; top: 12px; border: 0; background: transparent;
  font-size: 22px; color: var(--muted); line-height: 1;
}
.detail-head { display: flex; gap: 20px; align-items: flex-start; padding-right: 24px; }
.detail-hz { font-family: var(--hanzi-font); font-size: 64px; line-height: 1.1; font-weight: 600; }
.detail-tr { font-size: 12px; color: var(--muted); }
.detail-py { color: var(--green); font-size: 20px; font-weight: 650; }
.detail-mean { font-size: 14px; margin: 14px 0 4px; font-weight: 600; }
.detail-en { font-size: 12px; color: var(--muted); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.detail-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.tone-break { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.tone-break h4 { margin: 0 0 10px; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.tone-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; }
.tone-chip b { font-family: var(--hanzi-font); font-size: 19px; color: var(--green); }
.tone-chip small { display: block; font-size: 10px; color: var(--muted); }

/* ---------- flashcards ---------- */
.card-setup { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.flashcard {
  min-height: 340px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; padding: 30px; position: relative; overflow: hidden; text-align: center;
}
.flashcard::before {
  content: ""; position: absolute; inset: 12px; border: 1px dashed var(--border); border-radius: 13px; pointer-events: none;
}
.flashcard .fc-hz { font-family: var(--hanzi-font); font-size: 100px; line-height: 1.1; font-weight: 600; }
.flashcard .fc-hint { font-size: 11px; color: var(--muted); margin-top: 18px; }
.flashcard .fc-py { color: var(--green); font-size: 26px; font-weight: 650; }
.flashcard .fc-idn { font-size: 16px; font-weight: 600; margin-top: 12px; max-width: 480px; }
.flashcard .fc-en { color: var(--muted); font-size: 12px; margin-top: 8px; max-width: 480px; }
.fc-controls { display: flex; gap: 10px; margin-top: 16px; }
.fc-controls .btn { flex: 1; padding: 12px; }
.progress-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.progress-line .bar { flex: 1; }
.key-hint { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- quiz ---------- */
.quiz-shell { max-width: 760px; margin: 0 auto; }
.quiz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quiz-head .bar { flex: 1; }
.q-prompt {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px; text-align: center; margin-bottom: 16px; box-shadow: var(--shadow);
}
.q-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.q-main { font-family: var(--hanzi-font); font-size: 54px; font-weight: 600; margin: 10px 0; line-height: 1.25; }
.q-main.text { font-family: inherit; font-size: 25px; font-weight: 700; }
.q-sub { font-size: 13px; color: var(--ink-2); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option {
  border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 14px;
  text-align: left; font-size: 14px; font-weight: 600; min-height: 56px;
  display: flex; align-items: center; gap: 10px;
}
.option:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-2); }
.option .opt-key {
  width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center; font-size: 11px; flex: 0 0 24px;
}
.option.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.option.wrong { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.feedback { border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 13px; }
.feedback.ok { background: var(--green-soft); color: var(--green); }
.feedback.no { background: var(--accent-soft); color: var(--accent); }
.answer-input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  font-size: 18px; outline: none; text-align: center;
}
.answer-input:focus { border-color: var(--accent); }
.result-card { text-align: center; padding: 40px 20px; }
.result-score { font-size: 52px; font-weight: 800; color: var(--accent); line-height: 1; }
.result-list { text-align: left; margin-top: 22px; }
.result-list .word-row { padding: 8px 12px; }

/* ---------- tones ---------- */
.tone-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tone-card { text-align: center; padding: 18px 10px; cursor: pointer; }
.tone-card:hover { border-color: var(--accent); }
.tone-card .mark { font-family: var(--hanzi-font); font-size: 34px; font-weight: 650; color: var(--green); }
.tone-card .name { font-size: 12px; font-weight: 700; margin: 6px 0 2px; }
.tone-card .desc { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.tone-card svg { width: 100%; height: 34px; margin-top: 8px; }
.syllable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.syl-card {
  border: 1px solid var(--border); background: var(--surface); border-radius: 11px; padding: 11px;
  text-align: center; cursor: pointer;
}
.syl-card:hover { border-color: var(--accent); }
.syl-card b { display: block; font-size: 19px; color: var(--green); font-family: var(--hanzi-font); }
.syl-card small { color: var(--muted); font-size: 10px; }
.pair-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pair-box { flex: 1; min-width: 140px; text-align: center; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.pair-box b { font-family: var(--hanzi-font); font-size: 30px; color: var(--green); display: block; }

/* ---------- writing ---------- */
.write-wrap { display: flex; gap: 24px; flex-wrap: wrap; }
.write-canvas-box { flex: 0 0 340px; }
.write-canvas {
  width: 340px; height: 340px; touch-action: none; cursor: crosshair; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.write-info { flex: 1; min-width: 240px; }
.write-hz { font-family: var(--hanzi-font); font-size: 68px; line-height: 1.1; }

/* ---------- stats ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chart-col .bar-v { width: 100%; max-width: 42px; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 3px; }
.chart-col small { font-size: 10px; color: var(--muted); }

/* ---------- settings ---------- */
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.set-row:last-child { border-bottom: 0; }
.set-row .label strong { display: block; font-size: 13px; }
.set-row .label small { color: var(--muted); font-size: 11px; }
.switch { width: 44px; height: 24px; border-radius: 12px; border: 0; background: var(--border); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--accent); }
.switch.on::after { left: 23px; }
input[type=range] { accent-color: var(--accent); width: 170px; }
.attr-note { font-size: 11px; color: var(--muted); line-height: 1.7; }

/* ---------- toast ---------- */
.toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 10px;
  font-size: 12.5px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tone-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .menu-toggle { display: block; }
  .view { padding: 20px 16px 90px; }
  .topbar { padding: 0 16px; height: 62px; flex-basis: 62px; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bn-item { border: 0; background: transparent; color: var(--muted); font-size: 10px; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .bn-item span { font-family: var(--hanzi-font); font-size: 19px; }
  .bn-item.active { color: var(--accent); }
  .sidebar.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .write-canvas-box { flex: 1 1 100%; }
  .write-canvas { width: min(340px, 100%); height: auto; aspect-ratio: 1; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tone-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 22px; }
  .hero h1 { font-size: 22px; }
  .detail-hz { font-size: 52px; }
  .flashcard .fc-hz { font-size: 78px; }
}
