/* 心智花园 · 纸张与质感层
 * 《视觉风格与资源规范 V1.0》§4.1 材质：
 *   底层纸张（暖奶油色天然纸，轻微纤维与颗粒）→ 场景绘画（不透明水粉、干刷叠色）
 *   → 剪纸拼贴（卡片）→ 柔和浮雕
 * 全部用 SVG feTurbulence 生成，零外部资源。
 */

:root {
  /* 颗粒：高频细噪，模拟纸浆颗粒 */
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  /* 纤维：低频拉长噪声，模拟纸张纤维走向 */
  --tex-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeGaussianBlur stdDeviation='0.6'/%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23f)'/%3E%3C/svg%3E");
  /* 水粉：中频柔噪，给色块加干刷叠色感 */
  --tex-gouache: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.055' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23w)'/%3E%3C/svg%3E");
}

/* ── 底层纸张：整页 ─────────────────────────────── */
#app {
  /* 基色对齐规范 §1 的 paper.canvas #F8E7CA；效果图实测纸底 rgb(253,234,204) */
  background:
    radial-gradient(120% 80% at 50% 0%, #FDF2DC 0%, #FAEBCF 46%, #F5E3C2 100%);
}
#app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--tex-grain), var(--tex-fiber);
  background-size: 220px 220px, 520px 520px;
  /* 用 overlay 而不是 multiply：feTurbulence 的均值是中灰，multiply 会把整页压暗
     约 17%（实测纸底掉到 rgb(223,205,171)，比效果图暗 25 阶）；overlay 对中灰是
     恒等运算，只留下颗粒起伏，不改变整体明度。 */
  opacity: 0.5;
  mix-blend-mode: overlay;
}
/* 纸张四角的陈旧渐晕，非常淡 */
#app::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(140% 100% at 50% 50%, rgba(0, 0, 0, 0) 62%, rgba(122, 96, 58, 0.06) 100%);
}
:root[data-contrast="high"] #app { background: var(--paper-canvas); }
:root[data-contrast="high"] #app::before { opacity: 0.1; }
:root[data-contrast="high"] #app::after { display: none; }

/* ── 剪纸拼贴：卡片 ───────────────────────────── */
/* 卡片是更亮的一张纸，压在底纸上；边缘略带手撕的不规则感 */
.card,
.listitem,
.selectable,
.stat,
.albumcard,
.badgecard,
.resource,
.ansbtn,
.sheet {
  position: relative;
  isolation: isolate;
}
.card::before,
.listitem::before,
.selectable::before,
.stat::before,
.albumcard::before,
.badgecard::before,
.ansbtn::before,
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background-image: var(--tex-grain);
  background-size: 220px 220px;
  opacity: 0.34;
  mix-blend-mode: multiply;
}

.card {
  background: linear-gradient(178deg, #FEF7E6 0%, #FBF1DC 62%, #F8EBD2 100%);
  border: 1px solid rgba(200, 172, 128, 0.55);
  box-shadow:
    0 10px 20px -12px rgba(96, 74, 46, 0.34),
    0 2px 4px rgba(96, 74, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.card--flat { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }

.listitem {
  background: linear-gradient(178deg, #FDF5E2 0%, #F9EED8 100%);
  border: 1px solid rgba(200, 172, 128, 0.5);
  box-shadow:
    0 8px 16px -12px rgba(96, 74, 46, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.listitem:hover { border-color: rgba(140, 116, 158, 0.7); }

.selectable {
  background: linear-gradient(178deg, #FDF6E4 0%, #F9EFDA 100%);
  border: 1.5px solid rgba(200, 172, 128, 0.6);
  box-shadow:
    0 8px 16px -12px rgba(96, 74, 46, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.selectable[aria-checked="true"], .selectable[aria-selected="true"] {
  background: linear-gradient(178deg, #F4EDF8 0%, #EDE4F3 100%);
  box-shadow:
    0 10px 18px -12px rgba(91, 73, 109, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat, .albumcard, .badgecard {
  background: linear-gradient(178deg, #FDF6E4 0%, #F8EDD6 100%);
  border: 1px solid rgba(200, 172, 128, 0.5);
  box-shadow:
    0 8px 16px -12px rgba(96, 74, 46, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.resource {
  background: linear-gradient(178deg, #FFF9EC 0%, #FAF0DA 100%);
  border: 1px solid rgba(198, 168, 122, 0.62);
  box-shadow:
    0 6px 14px -8px rgba(78, 58, 34, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card--plum { background: linear-gradient(178deg, #F1EAF6 0%, #E9E0F1 100%); border-color: #D2C4DE; }
.card--moss { background: linear-gradient(178deg, #E9F0E2 0%, #DFE9D6 100%); border-color: #C0D2B7; }
.card--coral { background: linear-gradient(178deg, #F9E7DC 0%, #F3DCCD 100%); border-color: #E4C2B0; }

/* ── 按钮：纸质 + 柔和浮雕 ─────────────────────── */
.btn--coral, .btn--plum, .btn--moss, .btn--danger {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 16px -8px rgba(60, 44, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}
.btn--coral::before, .btn--plum::before, .btn--moss::before, .btn--danger::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tex-gouache);
  background-size: 300px 300px;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.btn--ghost {
  background: linear-gradient(178deg, #FEF8E8 0%, #F9EFD9 100%);
  border-width: 2px;
  border-color: rgba(190, 160, 112, 0.7);
  box-shadow:
    0 6px 14px -10px rgba(96, 74, 46, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* 主 CTA 两端的叶枝装饰（效果图的标志性细节）*/
.btn--sprig::after,
.btn--sprig::before { pointer-events: none; }
.btn--sprig {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='30' viewBox='0 0 58 30'%3E%3Cg fill='none' stroke='rgba(255,255,255,.42)' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M6 15c12 0 24-3 34-9'/%3E%3Cpath d='M14 13c-1-4 1-7 4-8 1 4-1 7-4 8Z' fill='rgba(255,255,255,.3)'/%3E%3Cpath d='M24 10c-1-4 1-7 4-8 1 4-1 7-4 8Z' fill='rgba(255,255,255,.3)'/%3E%3Cpath d='M17 17c-4-1-7 1-8 4 4 1 7-1 8-4Z' fill='rgba(255,255,255,.22)'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='30' viewBox='0 0 58 30'%3E%3Cg fill='none' stroke='rgba(255,255,255,.42)' stroke-width='1.7' stroke-linecap='round' transform='translate(58,0) scale(-1,1)'%3E%3Cpath d='M6 15c12 0 24-3 34-9'/%3E%3Cpath d='M14 13c-1-4 1-7 4-8 1 4-1 7-4 8Z' fill='rgba(255,255,255,.3)'/%3E%3Cpath d='M24 10c-1-4 1-7 4-8 1 4-1 7-4 8Z' fill='rgba(255,255,255,.3)'/%3E%3Cpath d='M17 17c-4-1-7 1-8 4 4 1 7-1 8-4Z' fill='rgba(255,255,255,.22)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 14px center, right 14px center;
}

/* ── 底部导航：纸卡 + 两侧叶饰 ─────────────────── */
.tabbar {
  background: linear-gradient(180deg, #FBF2DE 0%, #F5E8CE 100%);
  border-top: 1px solid rgba(190, 160, 112, 0.55);
  box-shadow: 0 -8px 20px -14px rgba(80, 60, 36, 0.5);
}
.tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--tex-grain);
  background-size: 220px 220px;
  opacity: 0.3;
  mix-blend-mode: multiply;
}
.tabbar__item[aria-current="page"] {
  background: transparent;
}
.tabbar__item[aria-current="page"] .tabbar__icon {
  background: rgba(107, 142, 90, 0.24);
  box-shadow: inset 0 0 0 1px rgba(83, 112, 70, 0.28);
}
.tabbar__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast);
}

/* ── 页头：居中 + 叶饰 ─────────────────────────── */
.pagetitle {
  text-align: center;
  padding: var(--sp-20) 0 var(--sp-8);
}
.pagetitle__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta-primary);
  font-size: calc(var(--fs-label) * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.4px;
}
.pagetitle__eyebrow svg { width: 30px; height: 26px; opacity: 1; }
.pagetitle h1 {
  color: #43663F;
  margin-top: 4px;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 区块标题旁的小叶子 */
.sectionhead h2 {
  color: #43663F;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sectionhead h2::after {
  content: "";
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 5c-8 0-13 4-13 10 0 2 1 4 2 5 6 1 11-4 11-15Z' fill='%238FA96E'/%3E%3Cpath d='M18 7C12 9 9 13 8 19' stroke='%235C7A48' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  flex: 0 0 auto;
  opacity: .9;
}

/* ── 圆环进度 ─────────────────────────────────── */
.ring { display: block; }
.ring__track { stroke: rgba(190, 160, 112, .45); }
.ring__fill { stroke: var(--plum-primary); stroke-linecap: round; transition: stroke-dashoffset var(--dur-base) var(--ease-out); }

/* ── 方向插画瓷砖（列表图标）─────────────────── */
.dirtile {
  width: 54px; height: 54px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    0 4px 10px -6px rgba(70, 52, 30, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.dirtile svg { width: 100%; height: 100%; display: block; }

/* ── 训练页：纸质格子 + 角落植物 ───────────────── */
.gridcell {
  background: linear-gradient(178deg, #FDF6E3 0%, #F7EBD2 100%);
  border: 1px solid rgba(196, 166, 120, 0.55);
  border-radius: 16px;
  box-shadow:
    0 6px 12px -8px rgba(90, 68, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.gridcell.is-lit {
  background: linear-gradient(178deg, #5F4E72 0%, #4C3D5E 100%);
  border-color: #3C2F4C;
  box-shadow: 0 0 22px rgba(240, 212, 138, .55), inset 0 1px 0 rgba(255,255,255,.2);
}
.gridcell.is-picked {
  background: linear-gradient(178deg, #6A5880 0%, #56466A 100%);
  border-color: #3C2F4C;
}
.gridcell.is-right {
  background: linear-gradient(178deg, #4E7350 0%, #3B5B3F 100%);
  border-color: #2C4530;
}

.trainpage {
  background: transparent;
}
.trainpage__top { border-bottom: 1px solid rgba(190, 160, 112, 0.45); }
.trainpage__prompt { color: #4A3D63; letter-spacing: .5px; }

/* 标题两侧的装饰叶枝 */
.sprigged {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sprigged__leaf { width: 46px; height: 40px; flex: 0 0 auto; opacity: .75; }

/* 训练页底部角落植物 */
.trainpage__input { position: relative; }
.trainpage__input::before,
.trainpage__input::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 62px; height: 84px;
  pointer-events: none;
  opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cg fill='none' stroke='%238FA96E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M30 80V34'/%3E%3Cpath d='M30 52c0-10-7-16-17-17 0 10 7 16 17 17Z' fill='%239DB47C'/%3E%3Cpath d='M30 42c0-9 7-14 16-15 0 9-7 14-16 15Z' fill='%23879F68'/%3E%3Cpath d='M30 64c0-8-6-13-14-14 0 8 6 13 14 14Z' fill='%23A8BE8A'/%3E%3C/g%3E%3C/svg%3E") bottom/contain no-repeat;
}
.trainpage__input::before { left: -8px; }
.trainpage__input::after { right: -8px; transform: scaleX(-1); }
:root[data-contrast="high"] .trainpage__input::before,
:root[data-contrast="high"] .trainpage__input::after { display: none; }

/* ── 药丸状态标签更饱满 ───────────────────────── */
.chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 6px 13px;
}

/* ── 弹层与庆祝 ───────────────────────────────── */
.sheet {
  background: linear-gradient(178deg, #FCF4E2 0%, #F6E9CF 100%);
  box-shadow: 0 -16px 40px -18px rgba(60, 44, 28, 0.6);
}
.celebrate__box {
  background: linear-gradient(178deg, #FDF6E5 0%, #F7EBD3 100%);
  box-shadow: 0 24px 60px -24px rgba(40, 30, 18, 0.7);
}

/* 插画瓷砖列表项更高一些，与效果图一致 */
.listitem:has(.dirtile) { min-height: 84px; padding: 14px 16px; }

/* ══════════════════════════════════════════════
 * 花园页：整幅夜色场景 + 透视地块 + 纸质操作面板
 * ══════════════════════════════════════════════ */
.gardenpage { padding: 0 !important; }

.gardenscene {
  position: relative;
  margin: 0;
  padding: var(--sp-16) var(--page-pad) var(--sp-32);
  color: #F7ECDA;
  overflow: hidden;
  min-height: 480px;
}
/* 让小屋、篱笆、灌木有露出的空间，地块坐落在草地上 */
.gardenscene__sky { height: 122px; pointer-events: none; }
.gardenscene__bg { position: absolute; inset: 0; z-index: 0; }
.gardenscene__bg svg { width: 100%; height: 100%; display: block; }
.gardenscene > *:not(.gardenscene__bg) { position: relative; z-index: 1; }
.gardenscene h1 {
  color: #FBF2DE;
  text-shadow: 0 2px 6px rgba(24, 18, 40, 0.55);
}
.gardenscene .t-label { color: #F0C766; font-weight: 700; text-shadow: 0 1px 4px rgba(24, 18, 40, .6); }

/* 透视地块 */
.plotfield {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: var(--sp-8);
  max-width: 306px;
  margin-inline: auto;
}
.plotcell {
  position: relative;
  aspect-ratio: 120 / 96;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 6px 10px rgba(20, 14, 30, 0.5));
  transition: transform var(--dur-fast) var(--ease-out);
}
.plotcell:active { transform: translateY(1px); }
.plotcell svg { display: block; width: 100%; height: 100%; }
.plotcell[aria-pressed="true"] { filter: drop-shadow(0 0 14px rgba(240, 199, 102, 0.75)); }
.plotcell__cap {
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  font-size: calc(11px * var(--font-scale));
  font-weight: 600;
  color: #F7ECDA;
  text-shadow: 0 1px 3px rgba(20, 14, 30, .9);
  white-space: nowrap;
  pointer-events: none;
}

/* 场景上的资源条：深色底更易读 */
.gardenscene .resource {
  background: linear-gradient(178deg, rgba(255, 249, 236, .96), rgba(250, 240, 218, .94));
}

/* 覆在场景下沿的纸质面板 */
.gardenpanel {
  position: relative;
  margin-top: -26px;
  border-radius: var(--r-xlarge) var(--r-xlarge) 0 0;
  background: linear-gradient(178deg, #FBF2DE 0%, #F6E9CF 100%);
  padding: var(--sp-20) var(--page-pad) var(--sp-32);
  box-shadow: 0 -14px 30px -18px rgba(30, 22, 12, 0.55);
  z-index: 2;
}
.gardenpanel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--tex-grain);
  background-size: 220px 220px;
  opacity: 0.3;
  mix-blend-mode: multiply;
}
.gardenpanel > * { position: relative; }

/* ══════════════════════════════════════════════
 * 首页主视觉：更高、更沉浸
 * ══════════════════════════════════════════════ */
.hero { min-height: 300px; padding-bottom: var(--sp-32); }
.hero__title { text-shadow: 0 2px 8px rgba(24, 18, 40, 0.6); }
.hero .t-label { text-shadow: 0 1px 4px rgba(24, 18, 40, 0.6); }
.hero .resource {
  background: linear-gradient(178deg, rgba(255, 249, 236, .97), rgba(250, 240, 218, .95));
}

/* 首页「花园下一步」：场景卡片，文字压在暗绿小景上 */
.gardencard {
  position: relative;
  border-radius: var(--r-large);
  overflow: hidden;
  min-height: 168px;
  border: 1px solid rgba(120, 100, 70, .5);
  box-shadow: 0 10px 22px -14px rgba(40, 30, 18, .6);
}
.gardencard__bg { position: absolute; inset: 0; z-index: 0; }
.gardencard__body { position: relative; z-index: 1; padding: var(--sp-16) var(--sp-20); }
.gardencard .btn--ghost {
  background: rgba(253, 246, 228, .95);
  border-color: rgba(253, 246, 228, .6);
}

/* 训练页顶部的圆形控制片（效果图样式）*/
.roundchip {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(198, 168, 122, .6);
  background: linear-gradient(178deg, #FEF8E8 0%, #F8EDD6 100%);
  color: var(--ink-primary);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 5px 12px -8px rgba(80, 60, 36, .6), inset 0 1px 0 rgba(255,255,255,.85);
}
.roundchip svg { width: 20px; height: 20px; }
.roundchip:active { transform: translateY(1px); }

.trainpage__top { gap: var(--sp-12); padding-top: var(--sp-16); }
.trainpage__stage { gap: var(--sp-12); }
.trainpage__prompt.sprigged { width: 100%; }
.trainpage__prompt.sprigged > span { flex: 0 1 auto; }
/* HUD 做成三张纸卡 */
.hud { gap: var(--sp-10, 10px); width: 100%; max-width: 340px; }
.hud__cell {
  flex: 1 1 0;
  background: linear-gradient(178deg, #FDF6E4 0%, #F8EDD6 100%);
  border: 1px solid rgba(200, 172, 128, .5);
  border-radius: var(--r-medium);
  padding: 10px 6px;
  box-shadow: 0 6px 14px -10px rgba(96, 74, 46, .35), inset 0 1px 0 rgba(255,255,255,.8);
}
.hud__v { color: var(--plum-primary); }

/* 刺激物纸砖：与效果图一致，每个可点对象坐在一张小纸片上 */
.stimtile {
  aspect-ratio: 1;
  border: 1px solid rgba(196, 166, 120, .5);
  border-radius: 14px;
  background: linear-gradient(178deg, #FDF6E3 0%, #F7EBD2 100%);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 4px;
  box-shadow: 0 5px 10px -7px rgba(90, 68, 40, .5), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform var(--dur-fast) var(--ease-out);
}
.stimtile:active { transform: translateY(1px); }
.stimtile.is-right { border-color: var(--moss-primary); border-width: 2.4px; background: linear-gradient(178deg,#E6EFE0,#DCE8D5); }
.stimtile.is-wrong { border-color: var(--danger-primary); border-width: 2.4px; background: linear-gradient(178deg,#F7E4E1,#F0D8D4); }

/* ── 页面角落花饰 ─────────────────────────────── */
.cornerflora {
  position: absolute;
  width: 130px; height: 130px;
  pointer-events: none;
  z-index: 0;
}
.cornerflora--tl { top: -6px; left: -14px; }
.cornerflora--tr { top: -6px; right: -14px; }
.cornerflora--bl { bottom: 40px; left: -18px; }
.cornerflora--br { bottom: 40px; right: -18px; }
.page--flora { position: relative; }
.page--flora > *:not(.cornerflora) { position: relative; z-index: 1; }
:root[data-contrast="high"] .cornerflora { display: none; }

/* ── 模块主卡（深紫大卡）───────────────────────── */
.herocard {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-large);
  background: linear-gradient(168deg, #6A5580 0%, #52406A 60%, #46365C 100%);
  color: #FBF2DE;
  padding: var(--sp-20);
  box-shadow: 0 14px 28px -16px rgba(40, 28, 56, .7), inset 0 1px 0 rgba(255,255,255,.18);
}
.herocard::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--tex-gouache);
  background-size: 300px 300px;
  opacity: .2; mix-blend-mode: overlay; pointer-events: none;
}
.herocard > * { position: relative; }
.herocard .chip {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
  color: #FBF2DE;
}
.herocard__art {
  position: absolute;
  right: -10px; bottom: -14px;
  width: 138px; height: 138px;
  opacity: .95;
  pointer-events: none;
}

/* 搜索框加叶饰 */
.searchfield { position: relative; }
.searchfield input { padding-right: 46px !important; }
.searchfield__leaf {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; pointer-events: none; opacity: .7;
}

/* 列表副标题避免在「分 / 钟」之间断行 */
.listitem__sub { word-break: keep-all; line-break: strict; }
.listitem__action .chip { white-space: nowrap; }

/* ══════════════════════════════════════════════
 * 对照 V2 效果图补齐的通用元件
 * ══════════════════════════════════════════════ */

/* ── 圆形纸片按钮（返回 / 关闭 / 信息 / 暂停）──── */
.circlebtn {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(198, 168, 122, .55);
  background: linear-gradient(178deg, #FEF9EB 0%, #F7EBD4 100%);
  color: var(--ink-primary);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(80, 60, 36, .55), inset 0 1px 0 rgba(255,255,255,.9);
}
.circlebtn svg { width: 22px; height: 22px; }
.circlebtn:active { transform: translateY(1px); }
.circlebtn__sprig {
  position: absolute; left: 42px; top: 24px;
  width: 40px; height: 34px; pointer-events: none; opacity: .8;
}

/* ── 页头 2.0：橙色小标题 + 深绿大标题 + 叶饰 + 星点 ── */
.phead {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-12);
  padding: var(--sp-16) 0 var(--sp-8);
}
.phead__mid { flex: 1 1 auto; text-align: center; min-width: 0; }
.phead__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--terracotta-primary);
  font-size: calc(var(--fs-label) * var(--font-scale));
  font-weight: 700; letter-spacing: .5px;
}
.phead__eyebrow svg { width: 16px; height: 16px; flex: 0 0 auto; }
.phead__title {
  margin-top: 2px;
  color: #3E5B44;
  letter-spacing: 1px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.phead__title .sprigged__leaf { width: 28px; height: 24px; opacity: .8; flex: 0 0 auto; }
.phead__spark { position: absolute; pointer-events: none; opacity: .9; }

/* ── 页面装饰花草 ─────────────────────────────── */
.botanical { position: absolute; pointer-events: none; z-index: 0; }
.botanical--bottom {
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 150px;
  opacity: .75;
}
.botanical--top-left { top: -10px; left: -30px; width: 168px; height: 168px; opacity: .62; }
.botanical--top-right { top: -10px; right: -30px; width: 168px; height: 168px; opacity: .62; }
.botanical--bottom-left { bottom: 0; left: -30px; width: 168px; height: 168px; opacity: .7; }
.botanical--bottom-right { bottom: 0; right: -30px; width: 168px; height: 168px; opacity: .7; }
.page--deco { position: relative; }
.page--deco > *:not(.botanical) { position: relative; z-index: 1; }
:root[data-contrast="high"] .botanical { display: none; }

/* ── 单根圆头进度条 ───────────────────────────── */
.barline {
  height: 12px;
  border-radius: 999px;
  background: rgba(198, 172, 128, .45);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(120, 96, 60, .25);
}
.barline__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #6A5580, #4E3C66);
  transition: width var(--dur-base) var(--ease-out);
}

/* ── 2 列选项卡（问卷）──────────────────────── */
.optgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.optcard {
  position: relative;
  text-align: left;
  border-radius: 20px;
  border: 1.5px solid rgba(200, 172, 128, .45);
  background: linear-gradient(178deg, #FDF7E7 0%, #F8EEDA 100%);
  padding: 14px 14px 14px 14px;
  min-height: 64px;
  cursor: pointer;
  color: inherit; font: inherit;
  box-shadow: 0 8px 16px -12px rgba(96, 74, 46, .38), inset 0 1px 0 rgba(255,255,255,.85);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.optcard--rich { padding-right: 40px; }
.optcard[aria-checked="true"] {
  border-color: #6E5A85; border-width: 2px;
  background: linear-gradient(178deg, #DCD1EC 0%, #CFC2E4 100%);
}
.optcard__tick {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(160, 140, 108, .45);
  background: rgba(255,255,255,.4);
  display: grid; place-items: center;
  color: transparent; font-weight: 700; font-size: 15px;
}
.optcard[aria-checked="true"] .optcard__tick {
  background: #4E3C66; border-color: #4E3C66; color: #FBF2DE;
}
.optcard__title { font-weight: 700; font-size: calc(var(--fs-body-lg) * var(--font-scale)); color: var(--ink-primary); }
.optcard__desc { margin-top: 4px; color: var(--ink-secondary); font-size: calc(var(--fs-label) * var(--font-scale)); line-height: 1.5; }
.optcard__art { display: block; margin-bottom: 6px; }
/* 带插画的选项卡按效果图排成「左插画 + 右文案」的横排，不是竖排 */
.optcard--art {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-content: center;
  padding: 12px;
}
.optcard--art .optcard__art { grid-area: 1 / 1 / 3 / 2; align-self: center; margin: 0; width: 40px; }
/* 勾选圈浮在右上角，只让标题给它让位，描述可用满整列（与效果图一致）*/
.optcard--art .optcard__title {
  grid-area: 1 / 2 / 2 / 3; align-self: end; padding-right: 22px;
  font-size: calc(var(--fs-body) * var(--font-scale));
}
.optcard--art .optcard__desc { grid-area: 2 / 2 / 3 / 3; align-self: start; }
.optcard--art .optcard__tick { top: 10px; right: 8px; width: 22px; height: 22px; font-size: 12px; }
/* 窄屏两列会把文字挤成每行两三个字，改成单列 */
@media (max-width: 359px) {
  .optgrid { grid-template-columns: 1fr; }
  .optcard--art { grid-template-columns: 48px minmax(0, 1fr); }
  .optcard--art .optcard__art { width: 48px; }
}

/* ── 淡紫数字块（今日总结 / 概览）─────────────── */
.numblocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.numblock {
  border-radius: 16px;
  background: linear-gradient(178deg, #DCD1EC 0%, #CFC2E4 100%);
  padding: 12px 4px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.numblock__v {
  font-weight: 700; line-height: 1.05;
  font-size: calc(var(--fs-h2) * var(--font-scale));
  color: #46355E; font-variant-numeric: tabular-nums;
}
.numblock__k { margin-top: 2px; font-size: calc(var(--fs-caption) * var(--font-scale)); color: #5B496D; }

/* ── 药丸状态标签（方向覆盖）──────────────────── */
.tagpill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1.6px solid rgba(170, 150, 116, .5);
  background: linear-gradient(178deg, #FDF7E7, #F7EEDA);
  color: var(--ink-disabled);
  font-size: calc(var(--fs-label) * var(--font-scale));
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.tagpill__dot { width: 9px; height: 9px; border-radius: 50%; background: #B3A489; flex: 0 0 auto; }
.tagpill--on { border-color: #4E7350; color: #34513A; }
.tagpill--on .tagpill__dot { background: #3E6B45; }
.tagpill svg { width: 15px; height: 15px; opacity: .85; }

/* ── 分段选择器（时间窗口）────────────────────── */
.segmented {
  display: flex;
  border-radius: 999px;
  padding: 5px;
  background: linear-gradient(178deg, #EFE2C6, #E7D8B9);
  border: 1px solid rgba(190, 160, 112, .5);
  box-shadow: inset 0 2px 5px rgba(120, 96, 60, .18);
}
.segmented__item {
  flex: 1 1 0;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: calc(var(--fs-body) * var(--font-scale));
  font-weight: 600;
  cursor: pointer;
}
.segmented__item[aria-pressed="true"] {
  background: linear-gradient(180deg, #6A5580, #4E3C66);
  color: #FBF2DE;
  box-shadow: 0 4px 10px -5px rgba(50, 36, 74, .6);
}

/* ── 带图标的统计卡（结果页）──────────────────── */
.statcard {
  flex: 1 1 0;
  border-radius: 18px;
  background: linear-gradient(178deg, #FDF7E7, #F8EEDA);
  border: 1px solid rgba(200, 172, 128, .5);
  padding: 14px 6px 12px;
  text-align: center;
  box-shadow: 0 8px 16px -12px rgba(96, 74, 46, .35), inset 0 1px 0 rgba(255,255,255,.85);
}
.statcard__ico {
  width: 38px; height: 38px; border-radius: 50%;
  margin: 0 auto 8px;
  display: grid; place-items: center;
}
.statcard__v { font-weight: 700; font-size: calc(var(--fs-h2) * var(--font-scale)); line-height: 1.1; font-variant-numeric: tabular-nums; }
.statcard__k { margin-top: 2px; color: var(--ink-secondary); font-size: calc(var(--fs-caption) * var(--font-scale)); }

/* ── 方向覆盖长条（趋势页）────────────────────── */
.covrow { display: grid; grid-template-columns: 98px 1fr 26px; align-items: center; gap: 10px; }
.covrow__k { display: inline-flex; align-items: center; gap: 6px; font-size: calc(var(--fs-body) * var(--font-scale)); color: var(--ink-primary); white-space: nowrap; }
.covrow__k svg { width: 15px; height: 15px; flex: 0 0 auto; }
.covrow__track { height: 16px; border-radius: 999px; background: rgba(198, 172, 128, .42); overflow: hidden; box-shadow: inset 0 1px 3px rgba(120,96,60,.2); }
.covrow__fill { height: 100%; border-radius: 999px; background: linear-gradient(180deg, #4E7350, #3B5B3F); transition: width var(--dur-base) var(--ease-out); }
.covrow__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── 按钮变体：右侧圆形箭头 / 虚线次按钮 ───────── */
.btn--arrow { padding-right: 62px; }
.btn--arrow::after {
  content: "";
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(253, 246, 228, .92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E3C66' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: 20px 20px; background-position: center; background-repeat: no-repeat;
}
.btn--dashed {
  background: linear-gradient(178deg, #FDF7E7, #F7EEDA);
  border: 2px dashed rgba(160, 136, 98, .7);
  color: var(--ink-primary);
  min-height: var(--btn-secondary-h);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

/* ── 虚线奖励条 ───────────────────────────────── */
.rewardbar {
  display: flex; align-items: center; gap: 10px;
  border-radius: 999px;
  border: 1.6px dashed rgba(160, 136, 98, .65);
  background: linear-gradient(178deg, #FDF7E7, #F7EEDA);
  padding: 12px 16px;
}
.rewardbar svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* ── 淡紫说明条 ───────────────────────────────── */
.note--plum {
  background: linear-gradient(178deg, #DFD5EE, #D3C7E6);
  border-color: #BCACD6;
  color: #46355E;
}
.note--plum .note__i { background: #5B496D; color: #F2ECF8; }

/* ── 淡绿反馈卡 ───────────────────────────────── */
.card--feedback {
  background: linear-gradient(178deg, #DCE7D2, #D0DEC5);
  border-color: #B4C8A6;
}

/* 勋章卡：椭圆色章按实际尺寸显示 */
.badgecard { min-height: 148px; padding: 14px 8px 12px; }
.badgecard svg { width: 84px; height: 78px; }
.badgecard__name { font-size: calc(var(--fs-body) * var(--font-scale)); font-weight: 700; }

/* ── 种子商店：2 列大花卡 ─────────────────────── */
.seedgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seedcard {
  border-radius: 22px;
  border: 1px solid rgba(200, 172, 128, .5);
  background: linear-gradient(178deg, #FDF7E7 0%, #F8EEDA 100%);
  padding: 12px 10px 14px;
  text-align: center;
  box-shadow: 0 10px 20px -14px rgba(96, 74, 46, .4), inset 0 1px 0 rgba(255,255,255,.85);
}
.seedcard__art { display: block; }
.seedcard__art svg { width: 116px; height: 116px; }
.seedcard__name { font-size: calc(var(--fs-title) * var(--font-scale)); font-weight: 700; margin-top: 2px; }
.seedcard__desc { margin-top: 4px; color: var(--ink-secondary); font-size: calc(var(--fs-caption) * var(--font-scale)); }
.seedbuy {
  margin-top: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(178deg, #DCD3BC, #CFC5AB);
  color: var(--ink-secondary);
  font-size: calc(var(--fs-body) * var(--font-scale));
  font-weight: 700;
  white-space: nowrap;
  cursor: not-allowed;
}
.seedbuy svg { width: 20px; height: 20px; flex: 0 0 auto; }
.seedbuy--on {
  background: linear-gradient(178deg, #4E7350, #3B5B3F);
  color: #FBF2DE;
  cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(40, 60, 42, .7), inset 0 -2px 0 rgba(0,0,0,.16);
}
.seedbuy--on:active { transform: translateY(1px); }

/* ── 专业探索路线行 ───────────────────────────── */
.routerow {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 0;
  background: transparent; border: none;
  text-align: left; color: inherit; font: inherit; cursor: pointer;
}
.routerow__n {
  position: relative;
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(178deg, #DCD1EC, #CDC0E2);
  display: grid; place-items: center;
  font-weight: 700; font-size: calc(var(--fs-title) * var(--font-scale));
  color: #4E3C66;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.routerow__n.is-done { background: linear-gradient(178deg, #5E8A56, #476B42); color: #F7ECDA; }
.routerow__leaf { position: absolute; right: -12px; bottom: -6px; width: 26px; height: 22px; opacity: .85; }

/* ── 开始条 ───────────────────────────────────── */
.startbar {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin-top: 14px; padding: 12px 12px 12px 8px;
  border-radius: 999px;
  border: 1px solid rgba(190, 170, 210, .7);
  background: linear-gradient(178deg, #E7DFF2, #DCD2EB);
  cursor: pointer; color: inherit; font: inherit; text-align: left;
  box-shadow: 0 8px 18px -12px rgba(70, 53, 94, .5), inset 0 1px 0 rgba(255,255,255,.7);
}
.startbar__art { width: 60px; height: 60px; flex: 0 0 auto; }
.startbar__art svg { width: 60px; height: 60px; }
.startbar__go {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #6A5580, #4E3C66);
  display: grid; place-items: center; color: #FBF2DE;
  box-shadow: 0 5px 12px -6px rgba(50, 36, 74, .8);
}
.startbar__go svg { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════
 * 位图素材层（切自《交互原型 V2 效果图》，清单见 js/core/assets.js）
 * 规范 §13.3：透明物件四周留白，叶片/手/工具不贴边 —— 故一律等比缩放不裁切。
 * ══════════════════════════════════════════════ */

.art, .yaya, .brandmark, .checkbadge, .flowerart, .dirillust,
.dirtile__img, .yayagrass, .meadow { max-width: 100%; }

/* 芽芽：位图与原 SVG 的宽高比不同，统一按高度定尺、宽度自适应 */
.yaya { width: auto; height: 150px; object-fit: contain; }
.t-center > .yaya, .welcomestage > .yaya { margin-inline: auto; }

/* 圆形头像：位图是全身像，靠 object-position 取头部 */
.yayaavatar {
  display: inline-block; position: relative; overflow: hidden;
  border-radius: 50%; background: #E4EDE0; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(63, 56, 85, .12);
}
.yayaavatar img {
  /* 位图是全身像；头（含叶芽）约占画面顶部 8%–58%，放大后取这一段 */
  position: absolute; left: 50%; top: 0;
  width: 128%; height: auto; display: block;
  transform: translate(-50%, -7%);
}

/* 方向插画：位图自带水彩底，不再套紫色渐变瓷砖 */
.dirtile { background: transparent; box-shadow: none; overflow: visible; }
.dirtile__img, .dirillust { width: 100%; height: 100%; object-fit: contain; display: block; }

.brandmark { display: block; filter: drop-shadow(0 8px 16px rgba(40, 32, 24, .22)); }
.checkbadge { display: block; }
.flowerart { height: auto; display: block; margin: 0 auto; }
.yayagrass { height: auto; display: block; }

/* 欢迎页舞台：草丛在下、芽芽在上，草丛左右各一份并向外淡出，避免出现硬边矩形 */
.welcomestage {
  position: relative; width: 100%; max-width: 360px;
  display: grid; place-items: end center; min-height: 268px;
}
.meadow {
  position: absolute; left: -14px; right: -14px; bottom: -6px;
  display: flex; align-items: flex-end; justify-content: space-between;
  pointer-events: none;
}
.meadow img {
  width: 132px; height: auto; display: block; opacity: .96;
  /* 枝叶丛是从效果图卡片上缘裁下来的，底边是硬的，用渐变蒙版收掉 */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.meadow img:last-child { transform: scaleX(-1); }
.yaya--hero { height: 240px; position: relative; z-index: 1; }
@media (max-height: 720px) { .yaya--hero { height: 196px; } .welcomestage { min-height: 224px; } }

/* 角落花饰 / 装饰花草：位图版 */
.cornerflora { object-fit: contain; height: auto; width: 130px; }
.botanical--top-left, .botanical--top-right,
.botanical--bottom-left, .botanical--bottom-right {
  height: auto; object-fit: contain;
}
.botanical--bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: auto; padding: 0 4px;
}
.botanical--bottom img { width: 108px; height: auto; display: block; }
.botanical--bottom img:last-child { transform: scaleX(-1); }

/* 结果页顶部：左花丛 + 右拱门 */
.archbanner {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.archbanner__l {
  width: 150px; height: auto; opacity: .92;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}
.archbanner__r { width: 132px; height: auto; opacity: .96; }

/* 花园夜景底图（首页 hero + 花园页）*/
.nightgarden {
  position: absolute; inset: 0;
  background: #241F3C url('../assets/images/backgrounds/bg_garden_night_v01.webp') bottom center/cover no-repeat;
}
.nightgarden__moon {
  position: absolute; top: 10px; right: 26%;
  width: 52px; height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 236, 176, .45));
}

/* 首页「花园下一步」卡片底图 */
.gardenvignette {
  position: absolute; inset: 0;
  background: #3C5540 url('../assets/images/backgrounds/bg_garden_card_v01.webp') center/cover no-repeat;
}
.gardenvignette::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28, 40, 26, .82) 0%, rgba(28, 40, 26, .55) 46%, rgba(28, 40, 26, .1) 74%);
}
.gardenvignette__plant {
  position: absolute; right: 10px; bottom: 4px; width: 92px; height: auto; z-index: 1;
  filter: drop-shadow(0 6px 12px rgba(20, 26, 18, .5));
}
/* 花园页容器远高于夜景图：夜景按原比例铺在顶部并向下淡出，下方接夜土色，
   否则 cover 会把中间那棵树放大到满屏（实测过）。 */
/* 花园页容器远高于夜景图。夜景图已裁到效果图顶部 UI 文案之下（不带烘焙文字），
   因此上方那片星空由渐变补出、月亮用独立素材摆上去，页面标题与资源筹码就落在这片天上。 */
.gardenscene__bg {
  overflow: hidden;
  background:
    /* 稀疏星点（规范 §3：不做快速闪烁）*/
    radial-gradient(1.4px 1.4px at 18% 12%, rgba(255, 246, 214, .75), transparent),
    radial-gradient(1.2px 1.2px at 34% 7%, rgba(255, 246, 214, .6), transparent),
    radial-gradient(1.6px 1.6px at 62% 15%, rgba(255, 246, 214, .7), transparent),
    radial-gradient(1.2px 1.2px at 78% 6%, rgba(255, 246, 214, .55), transparent),
    radial-gradient(1.3px 1.3px at 88% 17%, rgba(255, 246, 214, .6), transparent),
    radial-gradient(1.2px 1.2px at 8% 22%, rgba(255, 246, 214, .5), transparent),
    linear-gradient(180deg, #2E2450 0%, #362B58 34%, #2A2038 62%, #241B31 100%);
}
.gardenscene__bg .nightgarden { background: none; }
.gardenscene__bg .nightgarden::before {
  content: ''; position: absolute; left: 0; right: 0; top: 74px;
  aspect-ratio: 820 / 304;
  background: url('../assets/images/backgrounds/bg_garden_night_v01.webp') top center / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 64%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 64%, transparent 100%);
}
.gardenscene__bg .nightgarden__moon { top: 4px; right: 44%; width: 44px; }
/* 天空占位块给小屋留出露脸空间，地块坐落在小屋下方的地面上 */
.gardenscene__sky { height: 148px; }
.hero__bg .nightgarden { border-radius: inherit; }
.hero__bg > div, .gardenscene__bg > div { width: 100%; height: 100%; }

/* 勋章：底盘位图 + 上层门类字符 */
.majormedal { position: relative; display: inline-block; line-height: 0; }
.majormedal img { width: 100%; height: auto; display: block; }
.majormedal__glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 40%; font-weight: 600; color: #F0E4CA; line-height: 1;
  text-shadow: 0 2px 6px rgba(24, 18, 40, .5);
}

/* 高对比模式下位图装饰同样隐藏，保证文字对比度（§11 无障碍）*/
:root[data-contrast="high"] .archbanner,
:root[data-contrast="high"] .meadow { display: none; }

/* 首页 hero：芽芽贴右侧小屋，齿轮入口低调放在右上角 */
.hero__brand {
  display: flex; align-items: center; gap: 6px;
  font-size: calc(var(--fs-h2) * var(--font-scale));
  font-weight: 700; color: #FBF2DE; letter-spacing: .5px;
  text-shadow: 0 2px 6px rgba(24, 18, 40, .55);
}
.hero__brand svg { width: 22px; height: 18px; opacity: .85; }
.hero__yaya {
  position: absolute; right: 2px; top: 72px; z-index: 0; pointer-events: none;
}
.hero__yaya .yaya { height: 150px; filter: drop-shadow(0 8px 14px rgba(20, 14, 34, .45)); }
@media (max-width: 359px) { .hero__yaya .yaya { height: 118px; } }
.herogear {
  width: var(--tap-min); height: var(--tap-min);
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(24, 18, 40, .34);
  color: rgba(247, 236, 218, .92);
  display: grid; place-items: center; flex: 0 0 auto;
  backdrop-filter: blur(2px);
}
.herogear svg { width: 22px; height: 22px; }
.herogear:hover { background: rgba(24, 18, 40, .5); }


/* 问卷摘要三行的圆牌图标（效果图切图）*/
.summaryico { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-secondary); }
.summaryico img, .summaryico svg { width: 100%; height: auto; display: block; }

/* <a> 版按钮（下载安装包）：去掉浏览器默认下划线，与 <button> 版视觉一致 */
a.btn, a.btn:hover, a.btn:visited { text-decoration: none; }
