/* =============================================================
   识字小课堂 · 视觉层
   -------------------------------------------------------------
   与兄弟页 pinyin-eval / focus-trainer 同族：
   奶油纸底（#fff6ec）+ 家族橙（#ff8a3d）+ 白卡 + 圆角 20 + 模糊光斑。

   本页的身份符号 → 田字格 / 米字格（笔顺练习纸）。
   零外链：系统字体栈，无图片，无字体文件，图标用字符。
   ============================================================= */

/* ============================================================
   1. 设计令牌
   ============================================================ */
:root {
  /* ---------- 底色 / 背景 ---------- */
  --bg: #fff6ec; /* 主背景 奶油纸 */
  --bg-blob-1: #ffe8cf; /* 暖光斑 */
  --bg-blob-2: #ffe0e6; /* 粉光斑 */
  --card: #ffffff; /* 卡片纯白 */
  --paper: #fffdf8; /* 练习纸白 */
  --paper-tint: #fffaf2;

  /* ---------- 文字 ---------- */
  --ink: #3d2f28; /* 正文 */
  --ink-2: #584840; /* 次级文字 */
  --muted: #a2908a; /* 辅助文字 */
  --faint: #c9b6ab;

  /* ---------- 描边 ---------- */
  --line: #f3e5d8;
  --line-2: #ecd9c6;

  /* ---------- 主强调色（家族橙） ---------- */
  --accent: #ff8a3d;
  --accent-ink: #b5651d;
  --accent-soft: #fff0e3;
  --accent-deep: #ef6c14;
  --accent-line: #ffd9b8;
  --gold: #f5a623;

  /* ---------- 反馈色 ---------- */
  --green: #22c55e;
  --green-ink: #15803d;
  --green-soft: #e9fbee;
  --red: #ef4444;
  --red-ink: #b91c1c;
  --red-soft: #fdecec;

  /* ---------- 圆角 / 阴影 ---------- */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(180, 120, 60, 0.12);
  --shadow-soft: 0 4px 14px rgba(180, 120, 60, 0.08);
  --shadow-lift: 0 14px 34px rgba(180, 120, 60, 0.18);

  /* ---------- 字体 ---------- */
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  /* 汉字用楷体优先：小学课本就是楷体，孩子看着最亲切 */
  --font-hz: 'Kaiti SC', 'STKaiti', KaiTi, '楷体', 'Songti SC', 'SimSun',
    'PingFang SC', var(--font);
  --font-num: ui-rounded, 'SF Pro Rounded', var(--font);

  /* ---------- 尺寸 ---------- */
  --tap: 44px;
  --wrap-max: 900px;
}

/* ============================================================
   2. 基础重置
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 柔和背景光斑 */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 420px;
  height: 420px;
  background: var(--bg-blob-1);
  top: -120px;
  right: -100px;
}
body::after {
  width: 380px;
  height: 380px;
  background: var(--bg-blob-2);
  bottom: -140px;
  left: -110px;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
button:disabled {
  cursor: not-allowed;
}

.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;
}

/* ============================================================
   3. 顶栏 + 标签
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 10px;
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--wrap-max);
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.brand h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand h1 .logo {
  margin-right: 4px;
}
.brand p {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs {
  display: flex;
  background: #f6e9db;
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
  flex: none;
}
.tabs .tab {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tabs .tab.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.tabs .tab:disabled {
  opacity: 0.4;
}

@media (max-width: 720px) {
  .topbar-row {
    flex-wrap: wrap;
  }
  .tabs {
    flex: 1 1 100%;
    order: 2;
  }
  .tabs .tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
  }
}

/* ============================================================
   4. 布局与视图
   ============================================================ */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 16px 16px 64px;
}

.view {
  display: none;
  animation: viewIn 0.28s ease;
}
.view.active {
  display: block;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  margin: 6px 0 4px;
}
.section-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.empty-tip {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 60px 10px;
}

/* ============================================================
   5. 首页
   ============================================================ */
.hero {
  background: linear-gradient(150deg, #fff4e4, #ffe9d3);
  border: 2px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.hero-title {
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 900;
  letter-spacing: 1px;
  color: #7c3d10;
}
.hero-sub {
  font-size: 13px;
  color: #a0642f;
  margin-top: 4px;
  font-weight: 700;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.hero-chip {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #8a5a2b;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 11px 6px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat-item b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.2;
}
.stat-item span {
  font-size: 11px;
  color: var(--muted);
}
.stat-item.ok b {
  color: var(--green);
}
.stat-item.bad b {
  color: var(--red);
}

/* ---------- 错题重练入口 ---------- */
.mistake-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--red-soft);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.me-emoji {
  font-size: 30px;
  line-height: 1;
}
.me-text {
  flex: 1;
  min-width: 0;
}
.me-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.me-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}
.me-btn {
  flex-shrink: 0;
  padding: 11px 17px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
  transition: transform 0.14s ease;
}
.me-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.me-btn:not(:disabled):active {
  transform: scale(0.95);
}

/* ---------- 分组卡片 ---------- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.group-card {
  text-align: left;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.group-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.group-card:active {
  transform: scale(0.99);
}
.gc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gc-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-ink);
}
.gc-best {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  white-space: nowrap;
}
.gc-best.is-none {
  color: var(--muted);
  background: #faf3ec;
  font-weight: 700;
}

.notice-note {
  background: var(--accent-soft);
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.gc-chars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.gc-char {
  font-family: var(--font-hz);
  font-size: clamp(22px, 6.2vw, 30px);
  line-height: 1.15;
  text-align: center;
  background: var(--paper-tint);
  border-radius: 10px;
  padding: 4px 0;
  color: var(--ink);
}
.gc-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

/* ---------- 教材对照 ---------- */
.lesson-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 4px 14px;
  margin-bottom: 18px;
}
.lesson-box > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lesson-box > summary::-webkit-details-marker {
  display: none;
}
.lesson-box > summary .caret {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
}
.lesson-box[open] > summary .caret {
  transform: rotate(90deg);
}
.lesson-box > summary .lt-note {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.lesson-unit {
  border-top: 1px dashed var(--line);
  padding: 10px 0;
}
.lesson-unit-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.lesson-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 5px 0;
}
.lesson-name {
  flex: none;
  width: 82px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 3px;
}
.lesson-chars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lesson-char {
  font-family: var(--font-hz);
  font-size: 17px;
  line-height: 1;
  background: var(--paper-tint);
  border-radius: 8px;
  padding: 5px 7px;
  color: var(--ink);
}
.lesson-char.wrong {
  background: var(--red-soft);
  color: var(--red-ink);
}

/* ============================================================
   6. 生字练习（分组）
   ============================================================ */
.back-row {
  margin-bottom: 12px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: transform 0.14s ease;
}
.back-btn:hover {
  transform: translateX(-2px);
}

.group-head {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 13px 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.group-head .gh-name {
  font-size: 19px;
  font-weight: 900;
  color: var(--accent-ink);
}
.group-head .gh-meta {
  font-size: 12px;
  color: var(--muted);
}
.group-head .gh-best {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.char-card {
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 4px 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.char-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.char-card:active {
  transform: scale(0.97);
}
.char-py {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  font-family: var(--font-num);
  letter-spacing: 0.3px;
}
.char-hz {
  font-family: var(--font-hz);
  font-size: clamp(38px, 11vw, 54px);
  line-height: 1.1;
}
.char-n {
  font-size: 10px;
  color: var(--muted);
}

.big-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff9d4d, #ff7a2f);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 10px 24px rgba(255, 122, 47, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.big-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 122, 47, 0.4);
}
.big-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.big-btn.secondary {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  letter-spacing: 1px;
}
.hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* ============================================================
   7. 字卡（整屏不滚动 · 讲解 / 练习 双 tab）
   -------------------------------------------------------------
   .hz-card                 整块白卡：高度锁在一屏之内
     .hz-card__head         固定头：返回 + 房间条 + tab 栏
     .hz-card__body         内容区（可伸缩，必要时只自己内部滚动）
       .hz-pane.hz-teach    讲解 tab
       .hz-pane.hz-practice 练习 tab
     .hz-card__foot         固定底：上一个字 / 下一个字
   ============================================================ */
:root {
  /* 顶栏实测高度 / 底部安全区：JS 运行时覆盖 */
  --hz-top-h: 122px;
  --hz-bottom-pad: 0px;
  /* 宽屏断点：JS（hanzi-app.js）与 CSS 的媒体查询都按这个值 */
  --hz-wide: 720px;
  /* 矮屏断点：≤700px 走紧凑版；≤560px（横屏）走双栏 */
  --hz-short: 700px;
  --hz-land: 560px;
  /* 字卡高度 = 一屏 - 顶栏 - 上下留白 */
  --hz-card-h: calc(100vh - var(--hz-top-h) - var(--hz-bottom-pad) - 28px);
}
@supports (height: 100dvh) {
  :root {
    --hz-card-h: calc(100dvh - var(--hz-top-h) - var(--hz-bottom-pad) - 28px);
  }
}

/* 字卡视图：整页不滚动 */
body.is-card {
  overflow: hidden;
}
/* 专注模式：顶栏副标题（分组 · 汉字）在字卡里是冗余的，收起来省高度 */
body.is-card .brand p {
  display: none;
}
body.is-card .wrap {
  padding-bottom: 12px;
}
#view-card.active {
  display: flex;
  flex-direction: column;
}

.hz-card {
  display: flex;
  flex-direction: column;
  height: var(--hz-card-h);
  max-height: var(--hz-card-h);
  min-height: 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  overflow: hidden;
}

/* ---------- 固定头 ---------- */
.hz-card__head {
  flex: none;
}
.hz-card__headrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.hz-card__headrow .back-btn {
  flex: none;
  background: var(--paper-tint);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
/* 房间成员条：压成紧凑的一行，成员多时横滑（别占满两三百像素） */
.hz-card__headrow .hzr-bar {
  flex: 1 1 auto;
  margin: 0;
  padding: 3px 8px;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  background: var(--paper-tint);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: none;
}
.hz-card__headrow .hzr-bar::-webkit-scrollbar {
  display: none;
}
.hz-card__headrow .hzr-bar > * {
  flex: none;
}
/* 占位块不再撑出一行（否则成员条会变成两行、吃掉一大截高度） */
.hz-card__headrow .hzr-bar .hzr-bar__spacer {
  flex: 0 0 0;
  width: 0;
  height: 0;
}
.hz-card__headrow .hzr-bar .hzr-bar__title {
  font-size: 11px;
}
.hz-card__headrow .hzr-bar .hzr-member {
  min-height: 26px;
  padding: 2px 9px 2px 6px;
  gap: 5px;
  font-size: 12px;
}
.hz-card__headrow .hzr-bar .hzr-btn--sm {
  flex: none;
  min-height: 26px;
  padding: 3px 9px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

/* ---------- tab 栏 ---------- */
.hz-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  background: #f6e9db;
  border-radius: var(--radius-pill);
}
.hz-tab {
  flex: 1;
  padding: 9px 6px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.hz-tab.active {
  background: var(--card);
  color: var(--accent-ink);
  box-shadow: var(--shadow-soft);
}

/* ---------- 内容区（唯一允许滚动的地方） ---------- */
.hz-card__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.hz-pane {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.hz-pane.active {
  display: flex;
}
/* 每一块都不许被压扁：装不下就整体溢出，由内容区自己滚 */
.hz-pane > * {
  flex: 0 0 auto;
}

/* ---------- 讲解 tab ---------- */
/* 窄屏：演示框在左、拼音栏在右，其余各占一整行
   （宽屏会覆盖成双栏，见文件末尾） */
.hz-pane.hz-teach.active {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    'demo side'
    'actions actions'
    'stats stats'
    'strokes strokes'
    'words words';
  column-gap: 10px;
  row-gap: 8px;
  align-content: space-between;
}
.hz-grid-box {
  grid-area: demo;
}
.hz-teach__side {
  grid-area: side;
}
.hz-actions {
  grid-area: actions;
}
.hz-stats {
  grid-area: stats;
}
.hz-strokes-sec {
  grid-area: strokes;
}
.hz-words-sec {
  grid-area: words;
}
/* 窄屏：这一层「消失」，里面的块各自占位（与旧版一致）
   宽屏：这一层变成右侧信息栏（见文件末尾的宽屏双栏） */
.hz-teach__col,
.hz-practice__col {
  display: contents;
}
.hz-teach__side {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hz-py {
  font-size: clamp(22px, 6.4vw, 34px);
  font-weight: 800;
  color: var(--accent-ink);
  font-family: var(--font-num);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hz-alt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.hz-alt b {
  color: var(--accent-ink);
  font-weight: 700;
}

.speak-btn {
  font-size: 20px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform 0.14s ease, background 0.14s;
}
.speak-btn:hover {
  background: var(--accent);
  transform: scale(1.08);
}
.speak-btn:active {
  transform: scale(0.94);
}
.speak-btn.speaking {
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

/* 田字格 */
.hz-grid-box {
  flex: none;
  width: clamp(170px, 46vw, 340px);
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 3px solid #f0b89a;
  border-radius: 16px;
  padding: 10px;
  box-shadow: inset 0 0 0 6px #fff7ef;
}
.hz-svg-box {
  width: 100%;
  height: 100%;
}

.hz-caption {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-ink);
  line-height: 1.45;
  min-height: 20px;
}
.hz-caption .hc-n {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.hz-caption .hc-glyph {
  font-family: var(--font-hz);
  font-size: 16px;
}
.hz-caption .hc-svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -7px;
}
.hz-caption .hc-svg path {
  fill: var(--muted);
}

.hz-actions {
  display: flex;
  gap: 8px;
}
.act {
  flex: 1;
  padding: 11px 6px;
  border-radius: 14px;
  background: #fdf1e5;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
  border: 1.5px solid var(--accent-line);
  transition: transform 0.13s ease, background 0.13s;
}
.act:hover {
  background: var(--accent-soft);
}
.act:active {
  transform: scale(0.96);
}
.act-primary {
  background: linear-gradient(135deg, #ff9d4d, #ff7a2f);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 122, 47, 0.3);
}
.act-ghost {
  width: 100%;
  background: var(--card);
  border-style: dashed;
  color: var(--muted);
  margin-bottom: 14px;
}
/* 小号按钮（塞在标题行 / 侧栏里的次要动作） */
.act-tiny {
  flex: none;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

.hz-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
/* 统计压成一行（数字 + 说明），矮屏也能省下一截高度 */
.hz-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  background: var(--paper-tint);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  text-align: center;
}
.hz-stat b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.3;
  font-family: var(--font-hz);
}
.hz-stat span {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.hz-sec {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hz-sec h3 {
  flex: none;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hz-sec h3::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}
/* 标题行：左边标题 + 右边小动作 */
.hz-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.hz-sec__head h3 {
  margin-bottom: 0;
}

/* 笔顺 chip：一行放不下就横滑 */
.stroke-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
/* 横滑时藏掉滚动条，右边还有内容就加一层渐隐提示 */
.stroke-list::-webkit-scrollbar,
.word-list::-webkit-scrollbar {
  display: none;
}
.stroke-list.has-more,
.word-list.has-more {
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - 26px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - 26px),
    transparent 100%
  );
}
.stroke-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-tint);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 11px 4px 5px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.13s ease, border-color 0.13s ease, background 0.13s;
}
.stroke-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.stroke-chip .sc-no {
  font-style: normal;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.stroke-chip .sc-glyph {
  font-family: var(--font-hz);
  font-size: 19px;
  line-height: 1;
  color: var(--ink);
}
.stroke-chip .sc-name {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.sc-svg {
  width: 22px;
  height: 22px;
  display: block;
}
.sc-svg path {
  fill: var(--ink);
}

/* 组词 chip：一行放不下就横滑 */
.word-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.word-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hz);
  font-size: 18px;
  background: var(--accent-soft);
  color: #8a4b16;
  border-radius: var(--radius-pill);
  padding: 5px 8px 5px 14px;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: transform 0.13s ease, background 0.13s, border-color 0.13s;
}
.word-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.word-chip .wc-speak {
  font-style: normal;
  font-size: 13px;
  opacity: 0.7;
}
.word-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  animation: chipPop 0.4s ease;
}
@keyframes chipPop {
  0% {
    transform: scale(0.9);
  }
  55% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

.hz-nav {
  display: flex;
  gap: 8px;
}
.hz-nav .act {
  font-size: 13px;
}
/* 固定底条：两个 tab 下都常驻 */
.hz-card__foot {
  flex: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   8. 笔顺测试
   ============================================================ */
.test-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.test-progress {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.test-progress b {
  font-size: 20px;
  color: var(--accent);
  font-weight: 900;
}
.test-score {
  margin-left: auto;
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  box-shadow: var(--shadow-soft);
}
.test-progressbar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: #f2e2d2;
  overflow: hidden;
  margin-bottom: 14px;
}
.test-progressbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffc06e, var(--accent));
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.test-stage {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 14px 18px;
  text-align: center;
  margin-bottom: 14px;
}
.test-grid-box {
  position: relative;
  background: var(--paper);
  border: 3px solid #f0b89a;
  border-radius: 16px;
  padding: 8px;
  box-shadow: inset 0 0 0 6px #fff7ef;
  width: clamp(210px, 60vw, 290px);
  margin: 0 auto 12px;
}
.test-svg-box {
  width: 100%;
  aspect-ratio: 1 / 1;
}
/* 测试时隐藏未写笔画的提示层，避免「照着淡影选」变成抄答案 */
.test-svg-box .hw-hint-stroke {
  fill: none;
  stroke: none;
}
.test-svg-box.show-ghost .hw-hint-stroke {
  fill: #f2e4d5;
  stroke: #f2e4d5;
}
.test-prompt {
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 2px;
}
.test-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.test-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 560px) {
  .test-options {
    grid-template-columns: repeat(4, 1fr);
  }
}
.opt {
  background: var(--card);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 6px 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.13s ease, border-color 0.13s ease, background 0.13s;
}
.opt:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.opt:active:not(:disabled) {
  transform: scale(0.97);
}
.opt:disabled {
  opacity: 0.55;
}
.opt-svg {
  width: clamp(48px, 15vw, 66px);
  height: clamp(48px, 15vw, 66px);
  display: block;
}
.opt-svg path {
  fill: var(--ink);
}
.opt-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.opt.right {
  border-color: var(--green);
  background: var(--green-soft);
  animation: flashOk 0.5s ease;
}
.opt.right .opt-svg path {
  fill: var(--green-ink);
}
.opt.wrong {
  border-color: var(--red);
  background: var(--red-soft);
}
.opt.wrong .opt-svg path {
  fill: var(--red-ink);
}
.opt.shake {
  animation: shake 0.45s ease;
}
.opt.hint-pulse {
  border-color: var(--gold);
  animation: hintPulse 1s ease-in-out infinite;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-9px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(3px);
  }
}
@keyframes flashOk {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  100% {
    box-shadow: 0 0 0 22px rgba(34, 197, 94, 0);
  }
}
@keyframes hintPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(245, 166, 35, 0);
  }
}

.test-feedback {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  min-height: 24px;
  color: var(--muted);
  margin-bottom: 12px;
}
.test-feedback.ok {
  color: var(--green-ink);
}
.test-feedback.bad {
  color: var(--red-ink);
}
.test-tools {
  display: flex;
  gap: 8px;
}
.test-tools .act {
  font-size: 13px;
}

/* ---------- 成绩单 ---------- */
.result-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 20px 20px;
  text-align: center;
  margin-bottom: 14px;
}
.result-emoji {
  font-size: 54px;
  line-height: 1;
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.result-card h2 {
  font-size: 21px;
  margin: 6px 0 2px;
}
.result-card .res-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.result-score {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.result-score b {
  font-size: 46px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.result-note {
  background: var(--green-soft);
  color: var(--green-ink);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 14px;
  line-height: 1.5;
}
.result-note.low {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.wrong-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.wrong-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: var(--red-soft);
  color: var(--red-ink);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-weight: 800;
}
.wrong-chip .wc-hz {
  font-family: var(--font-hz);
  font-size: 22px;
  line-height: 1;
}
.wrong-chip .wc-py {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-actions .big-btn {
  font-size: 16px;
  letter-spacing: 1px;
}

/* ============================================================
   9. 笔顺引擎样式（hanzi-stroke.js 产出的类名）
   ============================================================ */
.hw-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
/* 提示层：还没写的笔画（淡字影） */
.hw-hint-stroke {
  fill: #f2e4d5;
  stroke: #f2e4d5;
  stroke-width: 40;
}
/* 正在写的那一笔：淡影藏起来 */
.hw-hint-dim {
  fill: #fffaf3;
  stroke: #fffaf3;
}
/* 已经写完的笔画：留下的淡影 */
.hw-hint-done {
  fill: #efdcc6;
  stroke: #efdcc6;
}
/* 写好的笔画 */
.hw-stroke {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 40;
  stroke-linejoin: round;
}
.hw-stroke-done {
  fill: var(--ink);
  stroke: var(--ink);
}
/* 正在写的一笔：高亮橙 */
.hw-stroke-active {
  fill: var(--accent);
  stroke: var(--accent);
}
.hw-stroke-active-static {
  fill: var(--accent);
  stroke: var(--accent);
}
/* 米字格 */
.hw-grid path {
  fill: none;
  stroke: #f3bda3;
  stroke-width: 4;
  stroke-dasharray: 16 13;
  stroke-linecap: round;
}
.hw-measure {
  stroke: none;
  fill: none;
}

/* ============================================================
   10. toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(80px);
  background: rgba(61, 47, 40, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3;
  pointer-events: none;
  max-width: 86vw;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   11. 无障碍 / 响应式
   ============================================================ */
@media (max-width: 420px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
  .gc-chars {
    grid-template-columns: repeat(5, 1fr);
  }
  /* 播放 / 显示全部 / 只看提示：保持一行，字号收一点 */
  .hz-actions .act {
    flex: 1 1 0;
    font-size: 13px;
    padding: 10px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   手写练习（练习 tab 里的田字格）
   ============================================================ */
.hz-practice__tip {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
/* 房间按钮占满一行（注意：房间层会重写按钮 class，所以用后代选择器） */
.hz-practice .hzr-btn {
  width: 100%;
}

.hz-write-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0;
}

.hz-write-box {
  flex: none;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 2px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  overflow: hidden;
  touch-action: none; /* 允许在格子里书写而不滚动页面 */
}

.hw-write-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

/* 笔画进度条 */
.hz-write-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 0;
}

.wb-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.18s ease;
}

.wb-chip i {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  color: var(--faint);
}

.wb-chip.now {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.16);
}

.wb-chip.now i {
  color: var(--accent-ink);
}

.wb-chip.done {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-ink);
}

.wb-chip.done i {
  color: var(--green-ink);
}

.hz-write-actions {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.hz-write-actions .act {
  flex: 1;
}

.hz-write-msg {
  margin-top: 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}

.hz-write-msg.ok {
  color: var(--green-ink);
  font-weight: 600;
}

.hz-write-msg.bad {
  color: var(--red-ink);
  font-weight: 600;
}

@media (max-width: 480px) {
  .hz-write-box {
    max-width: 100%;
  }
  /* 三个工具按钮保持一行（竖屏空间紧张，不能换行） */
  .hz-write-actions .act {
    flex: 1 1 0;
    font-size: 13px;
    padding: 10px 4px;
  }
}

.hz-write-msg.warn {
  color: var(--accent-ink);
  font-weight: 600;
}

/* ============================================================
   12. 字卡 · 双栏布局（宽屏 ≥720px 或 横屏/极矮 ≤560px）
   -------------------------------------------------------------
   讲解 tab：左 = 大演示田字格，右 = 拼音 / 操作 / 统计
              笔顺、组词整宽排在下方（横屏时左右并排）
   练习 tab：左 = 写字田字格，右 = 进度 / 按钮 / 提示 / 一起写
   窄屏（<720px 且不横屏）保持单列，顺序与旧版一致
   ============================================================ */
@media (min-width: 720px), (max-height: 560px) {
  .hz-pane.hz-teach.active {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    grid-template-areas:
      'demo col'
      'strokes strokes'
      'words words';
    row-gap: 8px;
    column-gap: 18px;
    align-content: center;
  }
  .hz-grid-box {
    grid-area: demo;
    justify-self: center;
  }
  /* 右侧信息栏：拼音 / 操作 / 统计，自上而下排 */
  .hz-teach__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-area: col;
    align-self: start;
  }
  .hz-teach__side {
    align-self: stretch;
    gap: 8px;
  }
  /* 笔顺、组词整宽排在下方 */
  .hz-strokes-sec {
    grid-area: strokes;
  }
  .hz-words-sec {
    grid-area: words;
  }
  .hz-actions {
    align-self: stretch;
  }
  .hz-stats {
    align-self: stretch;
    max-width: 460px;
  }

  /* ---------- 练习 tab ---------- */
  .hz-pane.hz-practice.active {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    grid-template-areas:
      'tip tip'
      'box col';
    row-gap: 10px;
    column-gap: 18px;
    align-content: center;
  }
  .hz-practice__tip {
    grid-area: tip;
    font-size: 13px;
  }
  .hz-write-box {
    grid-area: box;
    justify-self: center;
  }
  .hz-practice__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-area: col;
    align-self: start;
  }
  .hz-write-bar {
    justify-content: flex-start;
  }
  .hz-write-msg {
    text-align: left;
  }
  /* 宽屏下「一起写」按钮不必拉满整行 */
  .hz-practice .hzr-btn {
    width: auto;
    max-width: 280px;
    align-self: flex-start;
  }
}

/* 宽屏专属：拼音、说明文字放大一档 */
@media (min-width: 720px) {
  .hz-py {
    font-size: 38px;
  }
  .hz-alt {
    font-size: 13px;
  }
  .hz-caption {
    font-size: 14px;
  }
  .act-tiny {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ============================================================
   13. 字卡 · 横屏 / 极矮屏（高度 ≤560px）
   -------------------------------------------------------------
   横屏本来就矮：把「笔顺 / 组词」并排放到演示框下面，
   右侧信息栏压紧，别让面板内出现滚动条。
   ============================================================ */
@media (max-height: 560px) {
  .hz-pane.hz-teach.active {
    grid-template-areas:
      'demo col'
      'strokes words';
    column-gap: 14px;
    align-content: start;
  }
  /* 拼音 / 字幕 / 朗读压成一行 */
  .hz-teach__side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hz-teach__col,
  .hz-practice__col {
    gap: 8px;
  }
  .hz-practice__tip {
    display: none;
  }
  .hz-actions .act {
    padding: 9px 4px;
    font-size: 13px;
  }
}

/* ============================================================
   14. 字卡 · 紧凑模式（高度 ≤700px 的竖屏手机）
   -------------------------------------------------------------
   顶栏 / 卡片头 / 卡片底都收紧一档，把高度让给演示框和写字格。
   ============================================================ */
@media (max-height: 700px) {
  .hz-card {
    padding: 10px 12px;
  }
  .hz-card__headrow {
    margin-bottom: 6px;
    gap: 8px;
  }
  .hz-card__headrow .back-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .hz-tabs {
    padding: 3px;
    margin-bottom: 6px;
  }
  .hz-tab {
    padding: 6px 6px;
    font-size: 13px;
  }
  .hz-card__foot {
    margin-top: 6px;
    padding-top: 6px;
  }
  .hz-card__foot .act {
    padding: 9px 6px;
  }
  /* 次要信息让位：提示语、写字反馈、房间按钮都收一档 */
  .hz-practice__tip {
    display: none;
  }
  .hz-write-msg {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.4;
  }
  .hz-write-actions .act {
    padding: 9px 4px;
    font-size: 13px;
  }
  .hz-practice .hzr-btn {
    min-height: 34px;
    padding: 6px 14px;
  }
  /* 成员条上的按钮收成图标（确认退出时保留文字） */
  .hz-card__headrow .hzr-bar .hzr-btn--sm:not(.hzr-btn--armed) > span:not(.hzr-btn__icon) {
    display: none;
  }
}

/* 竖屏矮屏：顶栏品牌区（标题 + 副标题）在字卡里是冗余的，整块收起 */
@media (max-height: 700px) and (max-width: 719px) {
  body.is-card .brand {
    display: none;
  }
}
