/* ================================================================
   Anār · living illuminated orchard
   Brand rules live in BRAND.md. Fonts are bundled so the static app
   retains its identity offline.
   ================================================================ */

@font-face {
  font-family: "Anar Display";
  src: url("assets/fonts/Fraunces-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Anar Display";
  src: url("assets/fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Anar Text";
  src: url("assets/fonts/Literata-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Anar Text";
  src: url("assets/fonts/Literata-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #fbf5e9;
  --paper-2: #f4ebd7;
  --card: #fffdf6;
  --ink: #3b2e22;
  --muted: #715f48;
  --hairline: #e2d5b8;

  --tile: #0e7c7b;        /* kāshi turquoise */
  --tile-deep: #0a5f5e;
  --tile-soft: #e0efec;
  --lapis: #2e5c9e;
  --saffron: #e9a83c;
  --gold: #c9a227;
  --gold-soft: #ead9a8;
  --anar: #c23b2c;
  --anar-deep: #93291d;
  --anar-soft: #f6ded6;
  --leaf: #5e7f41;

  --ok: #2e7d4f;
  --ok-soft: #dff0e2;
  --bad: #b3402f;
  --bad-soft: #f8e0da;

  --display: "Anar Display", "Iowan Old Style", Georgia, serif;
  --text: "Anar Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(59, 46, 34, 0.06), 0 10px 30px rgba(59, 46, 34, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 80px;
  min-height: 100vh;
}

button {
  font-family: var(--text);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--tile);
  outline-offset: 2px;
}

input[type="text"] {
  font-family: var(--text);
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
input[type="text"]:focus { border-color: var(--tile); outline: none; }

.ui-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: -0.13em;
}
.chip-icon { margin-right: 0.25em; }
.icon-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}
.icon-note > .ui-icon { margin-top: 0.2em; }

.wordmark,
.stat .big,
.cat-title,
.qcard .prompt,
.intro-card .word,
.feedback .verdict,
.celebrate h2,
.welcome h2 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 45, "WONK" 1;
}

/* ---------------- header & ornament ---------------- */

.hdr {
  text-align: center;
  padding: 22px 0 8px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.brand-mark {
  width: 38px;
  height: 43px;
  display: block;
}
.hdr .wordmark {
  font-size: 2.3rem;
  line-height: 0.95;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--anar);
  font-variation-settings: "SOFT" 72, "WONK" 1, "opsz" 110;
}
.hdr .wordmark .seedmark { color: var(--gold); font-style: normal; }
.hdr .tagline {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* eight-point star band, drawn once as an inline SVG divider */
.starband {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  color: var(--gold);
  opacity: 0.75;
}
.starband::before, .starband::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--gold-soft);
}
.starband svg { flex: none; }

/* ---------------- nav tabs ---------------- */

.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}
.tab {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tab .ui-icon { font-size: 1.05rem; }
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--tile-deep);
  border-color: var(--tile);
  background: var(--tile-soft);
  font-weight: 700;
}

/* ---------------- cards ---------------- */

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  margin-bottom: 18px;
}
/* gold double rule + finial diamond: the Anār card signature */
.card.ornate { border-top: 3px double var(--gold); }
.card.ornate::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

/* ---------------- home ---------------- */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 8px;
}
.stat { text-align: center; }
.stat .big {
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stat .lbl {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat .big .flame { color: var(--saffron); }
.stat-symbol { display: inline-flex; font-size: 0.82em; }
.seed-color { color: var(--tile); }
.anar-color { color: var(--anar); }
.leaf-color { color: var(--leaf); }
.stat-total { font-family: var(--text); font-size: 0.76rem; }

.anar-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 2px;
}
.painted-anar { overflow: visible; }
.anar-shell-painted, .anar-progress-seed { pointer-events: none; }
.ghost-anar .anar-shell-painted {
  opacity: 0.34;
  filter: grayscale(0.82) sepia(0.18);
}
.anar-seed { cursor: pointer; }
.anar-seed image {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.anar-seed:hover image { transform: scale(1.14); filter: drop-shadow(0 1px 1px rgba(91, 35, 24, 0.35)); }
.anar-seed.gold image { filter: drop-shadow(0 0 1.5px rgba(154, 107, 20, 0.55)); }
.anar-seed.gold:hover image { filter: drop-shadow(0 1px 2px rgba(154, 107, 20, 0.65)); }
.anar-hero .goal-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
.anar-hero .goal-line b { color: var(--anar); }

.home-focus {
  padding: 25px 28px 28px;
  margin-bottom: 12px;
}
.home-eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.home-course-title {
  margin: 0;
  text-align: center;
  font-size: 1.12rem;
}
.home-course-meta { margin-top: 0 !important; }
.home-goal { margin-top: 3px !important; }
.home-primary { margin-top: 16px; }

.water-callout {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--anar-soft);
  border-radius: 13px;
  color: var(--anar-deep);
  background: #fff8f3;
  text-align: left;
}
.water-callout > .ui-icon { font-size: 1.25rem; }
.water-callout b, .water-callout small { display: block; }
.water-callout small { color: var(--muted); font-style: italic; font-size: 0.78rem; }
.water-callout:hover { border-color: var(--anar); background: var(--anar-soft); }
.callout-arrow { font-family: var(--display); font-size: 1.4rem; }

.home-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.65);
  margin-bottom: 12px;
  overflow: hidden;
}
.glance-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  border-right: 1px solid var(--hairline);
}
.glance-item:last-child { border-right: 0; }
.glance-icon { display: inline-flex; font-size: 1.1rem; }
.glance-item b, .glance-item small { display: block; }
.glance-item b { font-family: var(--display); font-size: 1.05rem; line-height: 1.05; }
.glance-item small { color: var(--muted); font-size: 0.68rem; line-height: 1.2; white-space: nowrap; }
.flame { color: var(--saffron); }

.growth-card {
  padding: 14px 16px 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 12px;
}
.growth-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.76rem;
}
.growth-copy b { color: var(--ink); }
.growth-card .level-bar { max-width: none; margin-top: 8px; }
.today-note { color: var(--muted); font-size: 0.75rem; font-style: italic; margin-top: 7px; }

.practice-drawer {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.practice-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  color: var(--tile-deep);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.practice-drawer summary::-webkit-details-marker { display: none; }
.practice-drawer summary:focus-visible { outline: 2px solid var(--tile); outline-offset: -2px; }
.drawer-chevron { font-family: var(--display); font-size: 1.35rem; transition: transform 0.15s ease; }
.practice-drawer[open] .drawer-chevron { transform: rotate(90deg); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 12px 14px;
}
.practice-grid .btn-track { min-width: 0; padding: 11px 6px; }
.practice-grid .voice-track { color: var(--tile-deep); background: var(--tile-soft); }
.practice-grid .voice-track .ui-icon { color: var(--anar); }

.play-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 6px;
}
.btn-play {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--anar);
  color: #fff8ef;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 650;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--anar-deep), var(--shadow);
  transition: transform 0.08s ease;
}
.btn-play:hover { transform: translateY(-1px); }
.btn-play:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--anar-deep); }
.btn-play .sub { display: block; font-size: 0.82rem; font-weight: 400; font-style: italic; opacity: 0.85; }

.track-row { display: flex; gap: 10px; }
.btn-track {
  flex: 1;
  text-align: center;
  padding: 13px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--tile);
  color: var(--tile-deep);
  background: var(--card);
  font-weight: 700;
  transition: background 0.12s ease;
}
.btn-track:hover { background: var(--tile-soft); }
.btn-track .sub { display: block; font-size: 0.8rem; font-weight: 400; font-style: italic; color: var(--muted); }
.track-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.track-title .ui-icon { font-size: 1.05em; }
.btn-track.gold { border-color: var(--saffron); color: #9a6b14; }
.btn-track.gold:hover { background: #f9efdc; }

.btn-track.urgent {
  border-color: var(--anar);
  color: var(--anar-deep);
}
.btn-track.urgent:hover { background: var(--anar-soft); }
.btn-track:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: var(--hairline);
  color: var(--muted);
}
.btn-track:disabled:hover { background: var(--card); }

/* the lesson's seeds at a glance */
.seed-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 2px;
  max-width: 100%;
}
.ss-chip {
  font-size: 0.72rem;
  font-style: italic;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--card);
  color: var(--muted);
}
.ss-chip.ss-done { border-color: var(--gold-soft); color: #8a6d1c; background: #fdf8ea; }
.ss-chip.ss-open { border-color: var(--anar-soft); color: var(--anar-deep); }
.ss-chip.ss-locked { opacity: 0.55; }
.ss-chip:hover { border-color: var(--tile); color: var(--tile-deep); }

.continue-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

/* word-browser filters */
.fchip {
  font-size: 0.82rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 12px;
  background: var(--card);
  color: var(--muted);
}
.fchip.on { border-color: var(--tile); color: var(--tile-deep); background: var(--tile-soft); font-weight: 700; }
.fchip:hover { border-color: var(--tile); }

/* ---------------- the orchard ---------------- */

.orchard-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
  padding: 27px;
}
.orchard-eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.orchard-intro h1 {
  font-family: var(--display);
  color: var(--anar);
  font-size: 1.85rem;
  line-height: 1;
  margin: 5px 0 9px;
}
.orchard-intro > p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.orchard-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 17px;
}
.orchard-totals > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 5px;
  align-items: center;
}
.orchard-totals .ui-icon { grid-row: 1 / 3; color: var(--anar); }
.orchard-totals b { font-family: var(--display); font-size: 1rem; line-height: 1; }
.orchard-totals small { color: var(--muted); font-size: 0.57rem; white-space: nowrap; }
.orchard-overall { height: 4px; overflow: hidden; border-radius: 999px; background: var(--paper-2); margin-top: 12px; }
.orchard-overall i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--gold)); }

.orchard-current {
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px 10px 4px;
  border: 1px solid #cfdcc0;
  border-radius: 15px;
  background: #f3f5e9;
  text-align: left;
  transition: transform 0.08s ease, border-color 0.1s ease;
}
.orchard-current:hover { transform: translateY(-1px); border-color: var(--leaf); }
.current-tree-art { display: flex; align-items: center; justify-content: center; }
.current-tree-copy { min-width: 0; display: flex; flex-direction: column; }
.current-tree-copy > small { color: var(--leaf); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.current-tree-copy > b { font-family: var(--display); font-size: 1.03rem; line-height: 1.15; margin-top: 2px; }
.current-tree-copy > span { color: var(--muted); font-size: 0.68rem; margin-top: 4px; }
.current-tree-copy > em { color: var(--tile-deep); font-size: 0.72rem; margin-top: 9px; }
.current-tree-copy > .current-life { display: flex; align-items: center; gap: 4px; color: var(--leaf); font-size: 0.64rem; font-weight: 700; }
.current-life.living-thirsty { color: var(--bad); }
.current-life.living-fruitful, .current-life.living-complete { color: #866817; }
.current-life .ui-icon { flex: none; }

.orchard-grove { margin: 24px 0 29px; }
.orchard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 3px;
  margin-bottom: 11px;
}
.orchard-section-head h2 { font-family: var(--display); font-size: 1.18rem; margin: 0; }
.orchard-section-head p { color: var(--muted); font-size: 0.76rem; font-style: italic; margin: 2px 0 0; }
.orchard-section-head > span { flex: none; color: var(--muted); font-size: 0.7rem; }

.tree-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tree-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 15px;
  padding: 8px 11px 9px 3px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.08s ease, border-color 0.1s ease;
}
.tree-card:hover { transform: translateY(-2px); border-color: var(--leaf); }
.tree-card:hover .treesvg { transform: rotate(-1.2deg); }
.tree-card.open { outline: 2px solid var(--leaf); outline-offset: 1px; background: #f6f4e8; }
.tree-card.current:not(.open) { border-color: #b9ceaa; background: #fbfcf6; }
.tree-card.complete { border-color: var(--gold-soft); }
.tree-visual { display: flex; align-items: center; justify-content: center; }
.tree-card-copy { min-width: 0; display: flex; flex-direction: column; }
.tree-status { color: var(--muted); font-size: 0.58rem; line-height: 1.2; margin-bottom: 3px; }
.tree-status .ui-icon { color: var(--leaf); }
.tree-card.current .tree-status { color: var(--leaf); font-weight: 700; }
.tree-card.complete .tree-status { color: #8a6d1c; }
.tree-card .cc-title { font-family: var(--display); font-weight: 700; font-size: 0.93rem; line-height: 1.1; }
.tree-card .cc-sub { color: var(--muted); font-size: 0.68rem; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-arrow { color: var(--leaf); font-family: var(--display); font-size: 1.35rem; }
.treesvg { overflow: visible; transition: transform 0.15s ease; transform-origin: 50% 90%; }
.tree-painting {
  pointer-events: none;
  transform-origin: 50% 70%;
  transition: filter 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
  filter: saturate(0.92) contrast(0.98);
}
.tree-trunk { fill: #876a47; stroke: #735536; stroke-width: 0.8; }
.canopy-cluster { transition: transform 0.35s ease, opacity 0.25s ease; transform-origin: 50% 65%; }
.canopy { stroke: rgba(73, 93, 55, 0.18); stroke-width: 0.7; }
.canopy.c1 { fill: var(--leaf-a); }
.canopy.c2 { fill: var(--leaf-b); }
.canopy.c3 { fill: var(--leaf-c); }
.scene-ground, .scene-line, .tree-trellis, .tree-birds { fill: none; stroke: #b9aa86; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.scene-line { stroke-width: 1.15; }
.scene-fill { fill: #b9aa86; }
.scene-sun { fill: #e8c86a; stroke: #b99a45; stroke-width: 0.8; }
.scene-moon { fill: #d9dfcf; stroke: #8ca18a; stroke-width: 1; }
.scene-rosette { fill: #e3d4a2; stroke: #b59242; stroke-width: 1; }
.tree-trellis { stroke: #c6b895; stroke-width: 0.9; }
.tree-blossom circle { fill: #f7e9e1; stroke: #bd766a; stroke-width: 0.55; }
.tree-blossom .blossom-heart { fill: var(--gold); stroke: none; }
.tree-drop { fill: #83b8b5; stroke: var(--tile-deep); stroke-width: 0.8; }
.droop-leaf { fill: none; stroke: #7e8652; stroke-width: 1.4; stroke-linecap: round; }
.tree-birds { stroke: #8b692d; stroke-width: 1.3; }
.completion-glint { fill: var(--gold); }
.tree-bud { fill: #e7d8b5; stroke: #ae8e54; stroke-width: 0.7; }
.tree-state-unexplored .canopy { fill: #c9c9a9; stroke: #afb093; }
.tree-state-unexplored .canopy-cluster { opacity: 0.62; }
.tree-state-unexplored .tree-trunk { fill: #a99070; stroke: #8f7658; }
.tree-state-unexplored .scene-line, .tree-state-unexplored .scene-ground { opacity: 0.65; }
.tree-state-unexplored .tree-painting { opacity: 0.55; filter: grayscale(0.3) saturate(0.55) brightness(1.06); }
.tree-state-thirsty .canopy { fill: #8c925f; stroke: #777b50; }
.tree-state-thirsty .canopy-cluster { transform: translateY(3px) rotate(0.8deg); }
.tree-state-thirsty .tree-painting { transform: translateY(2px) rotate(0.5deg); filter: sepia(0.2) saturate(0.68) brightness(0.96); }
.tree-state-fruitful .canopy { filter: saturate(1.08); }
.tree-state-fruitful .tree-painting { filter: saturate(1.03) contrast(1.01); }
.tree-state-complete .canopy { filter: saturate(1.18) brightness(1.03); }
.tree-state-complete .scene-ground { stroke: #c0a34f; }
.tree-state-complete .tree-painting { filter: saturate(1.12) brightness(1.03); }
.tpom { stroke-width: 1.2; pointer-events: all; }
.tbar { width: 100%; height: 3px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-top: 7px; }
.tbar i { display: block; height: 100%; background: var(--anar); border-radius: 999px; }
.tpom.tp-done { fill: var(--gold); stroke: #9a7a12; }
.tpom.tp-part { fill: var(--anar); stroke: var(--anar-deep); }
.tpom.tp-open { fill: #e8b09f; stroke: var(--anar-deep); }
.tpom.tp-locked { fill: none; stroke: #ffffff; stroke-dasharray: 2 2; opacity: 0.75; }
.tree-state-unexplored .tpom.tp-open { fill: #e9c8b9; }
.tree-state-unexplored .tpom.tp-locked { stroke: #f8f5e8; opacity: 0.9; }
.tree-card.living-thirsty { border-color: #d7a89a; background: #fdf8f2; }
.tree-card.living-fruitful { border-color: #d9c986; }
.tree-card.living-complete { background: #fdf9ec; }

.tree-panel { grid-column: 1 / -1; margin: 4px 0 9px; padding: 22px 24px 25px; }
.tree-panel-head {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  align-items: center;
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.tree-panel-head h2 { font-family: var(--display); font-size: 1.3rem; margin: 3px 0 2px; }
.tree-panel-head p { color: var(--muted); font-size: 0.76rem; margin: 0; }
.tree-panel-life { display: inline-flex; align-items: center; gap: 4px; color: var(--leaf); font-size: 0.66rem; font-weight: 700; margin-bottom: 3px; }
.tree-panel-life.living-thirsty { color: var(--bad); }
.tree-panel-life.living-fruitful, .tree-panel-life.living-complete { color: #866817; }
.tree-close {
  align-self: start;
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 999px;
}
.tree-close:hover { color: var(--bad); background: var(--anar-soft); }
.course-path { position: relative; display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.course-path::before { content: ""; position: absolute; left: 78px; top: 14px; bottom: 14px; width: 1px; background: var(--gold-soft); }
.path-anar {
  position: relative;
  display: grid;
  grid-template-columns: 35px 68px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 9px 11px 9px 5px;
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: var(--card);
  text-align: left;
  transition: transform 0.08s ease, border-color 0.1s ease, background 0.1s ease;
}
.path-anar.ready:hover { transform: translateY(-1px); border-color: var(--tile); background: var(--tile-soft); }
.path-anar.active { border-color: var(--tile); background: var(--tile-soft); box-shadow: 0 0 0 1px var(--tile); }
.path-anar.done { border-color: var(--gold-soft); background: #fdf8ea; cursor: default; }
.path-anar.locked { opacity: 0.58; cursor: pointer; }
.path-step { color: var(--gold); font-family: var(--display); font-size: 0.78rem; text-align: center; }
.path-fruit { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.path-copy { min-width: 0; display: flex; flex-direction: column; }
.path-copy b { font-family: var(--display); font-size: 0.98rem; }
.path-copy small { color: var(--muted); font-size: 0.72rem; }
.path-copy em { color: var(--muted); font-size: 0.66rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tile-deep);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}
.path-anar.active .path-action { color: var(--tile-deep); border-color: var(--tile); background: var(--card); }
.path-anar.done .path-action { color: #8a6d1c; border-color: var(--gold-soft); }
.path-anar.locked .path-action { color: var(--muted); }

/* instant seed tooltip */
#seedtip {
  display: none;
  position: fixed;
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 0.85rem;
  font-style: italic;
  padding: 5px 12px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: var(--shadow);
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* mosaic of ripe words */
.mosaic {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  font-size: 15px;
  line-height: 1;
  align-items: baseline;
}
.mosaic .mtile { color: var(--tile); opacity: 0.5; }
.mosaic .mtile.ever { color: var(--gold); opacity: 1; }

.level-line {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}
.level-line b { color: var(--ink); }
.level-bar {
  height: 5px;
  background: var(--paper-2);
  border-radius: 999px;
  margin: 7px auto 0;
  max-width: 300px;
  overflow: hidden;
}
.level-bar > div { height: 100%; background: var(--gold); border-radius: 999px; }

.settings-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.settings-row select {
  font-family: var(--text);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 3px 6px;
}
.linkish {
  color: var(--tile-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.linkish:hover { color: var(--tile); }
.linkish.danger { color: var(--bad); }
.setting-note { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- play view ---------------- */

.play-top {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 2px 12px;
}
.play-top .close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1;
  padding: 0;
  border-radius: 999px;
}
.play-top .close:hover { color: var(--bad); background: var(--anar-soft); }
.play-top .mode-lbl {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-top .mode-lbl small {
  color: var(--gold);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.play-top .spacer { flex: 1; }
.play-top .seeds-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--anar);
  position: relative;
  line-height: 1;
}
.play-top .seeds-chip > svg { flex: none; }
.seed-count { display: flex; flex-direction: column; align-items: flex-start; }
.seed-count b { font-family: var(--display); font-size: 1rem; }
.seed-count small { color: var(--muted); font-size: 0.62rem; font-weight: 500; white-space: nowrap; }
.combo-chip {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 2px 10px;
  background: #faf3df;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.goalbar {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  margin: 0 2px 23px;
}
.goalbar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--anar));
  border-radius: 999px;
  transition: width 0.4s ease;
  position: relative;
}
.goalbar > div > i {
  position: absolute;
  width: 9px;
  height: 12px;
  right: -4px;
  top: -3px;
  border-radius: 55% 45% 60% 40%;
  background: var(--anar);
  border: 2px solid var(--paper);
  transform: rotate(28deg);
  box-shadow: 0 0 0 1px var(--anar-soft);
}
.session-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: 0.8rem;
  margin: 0 2px 23px;
}
.session-rule span { height: 1px; background: var(--hairline); }

.lesson-stage { position: relative; }

.qcard { padding: 28px 26px 25px; min-height: 340px; }
.qcard .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qcard .kicker::before {
  content: "";
  width: 7px;
  height: 10px;
  border: 1.5px solid var(--gold);
  border-radius: 55% 45% 60% 40%;
  transform: rotate(25deg);
}
.qcard .kicker .topic-chip {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 1px 9px;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}
.qcard .prompt {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2px 0 4px;
}
.qcard .prompt.fa-word {
  font-style: italic;
  color: var(--tile-deep);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 48;
}
.qcard .prompt-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 4px; }
.pos-chip {
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 3px;
  margin-left: 8px;
}

.audio-btn {
  color: var(--lapis);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -7px;
  margin-left: 4px;
  padding: 0;
  border-radius: 999px;
}
.audio-btn:hover { background: var(--tile-soft); }
.audio-btn .ui-icon { width: 0.95em; height: 0.95em; }
.audio-btn.listen-main {
  width: 62px;
  height: 62px;
  margin: 4px 0 8px;
  font-size: 2rem;
  border: 1.5px solid var(--tile);
  background: var(--tile-soft);
}

.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 53px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--hairline);
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 1.05rem;
  box-shadow: 0 2px 0 var(--paper-2);
  transition: transform 0.08s ease, border-color 0.1s ease, background 0.1s ease, box-shadow 0.08s ease;
}
.opt:hover { border-color: var(--tile); background: var(--tile-soft); transform: translateY(-1px); }
.opt:active { transform: translateY(1px); box-shadow: none; }
.opt .keycap {
  flex: none;
  width: 25px;
  height: 25px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt.picked-ok { border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 2px 0 #bcdcc4; }
.opt.picked-bad { border-color: var(--bad); background: var(--bad-soft); animation: shake 0.25s ease; box-shadow: 0 2px 0 #ecc4b8; }
.opt.reveal-ok { border-color: var(--ok); }
.opt:disabled { cursor: default; }
.opt:disabled:not(.picked-ok):not(.picked-bad):not(.reveal-ok) { opacity: 0.55; }
.answer-hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}
.answer-hint span { color: var(--gold); padding: 0 3px; }

/* word tiles (sentence builder) */
.slots {
  min-height: 52px;
  border-bottom: 1.5px dashed var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 2px 10px;
  margin-top: 14px;
}
.slots .placeholder { color: var(--muted); font-style: italic; font-size: 0.9rem; }
.tilepool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.wtile {
  border: 1.5px solid var(--tile);
  color: var(--tile-deep);
  background: var(--card);
  border-radius: 11px;
  padding: 8px 13px;
  font-size: 1.05rem;
  font-style: italic;
  box-shadow: 0 2px 0 var(--tile-soft);
  transition: transform 0.08s ease;
}
.wtile:hover { transform: translateY(-1px); background: var(--tile-soft); }
.wtile.ghost { opacity: 0.35; border-style: dashed; box-shadow: none; }
.wtile.in-slot { border-color: var(--gold); color: var(--ink); box-shadow: 0 2px 0 var(--gold-soft); }

.type-row { display: flex; gap: 10px; margin-top: 16px; }

/* golden "ganj" question */
.qcard.golden {
  border-top-color: var(--saffron);
  box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow);
}
.qcard.golden::after {
  content: "✦ ganj ×3";
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--gold);
  font-size: 0.8rem;
  font-style: italic;
}

/* pairs matching */
.pairs-grid { display: flex; gap: 14px; margin-top: 14px; }
.pairs-grid .pcol { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ptile { text-align: center; }
.wtile.sel {
  background: var(--tile-soft);
  box-shadow: 0 0 0 2px var(--tile), 0 2px 0 var(--tile-soft);
}
.wtile.bad-flash {
  animation: shake 0.3s ease;
  border-color: var(--bad);
  color: var(--bad);
}

/* dialogue context lines */
.dlg-line { margin: 3px 0; font-size: 1.05rem; }
.dlg-sp {
  display: inline-block;
  min-width: 1.5em;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  vertical-align: 2px;
}

.btn-check {
  background: var(--tile);
  color: #f4fbf9;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 0 var(--tile-deep);
}
.btn-check:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.btn-check:not(:disabled):hover { filter: brightness(1.05); }

.iknow {
  margin-top: 14px;
  text-align: right;
}
.iknow button {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.iknow button:hover { color: var(--leaf); }

/* feedback strip */
.feedback {
  border-radius: 13px;
  padding: 15px 16px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: flex-start;
  animation: feedbackIn 0.2s ease-out;
}
.feedback.ok { background: var(--ok-soft); border: 1px solid #bcdcc4; }
.feedback.bad { background: var(--bad-soft); border: 1px solid #ecc4b8; }
.feedback-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 1px;
}
.feedback-mark .ui-icon { font-size: 1rem; }
.feedback.ok .feedback-mark { background: var(--ok); }
.feedback.bad .feedback-mark { background: var(--bad); }
.feedback-copy { min-width: 0; display: flex; flex-direction: column; }
.feedback .verdict { font-weight: 750; line-height: 1.2; }
.feedback.ok .verdict { color: var(--ok); }
.feedback.bad .verdict { color: var(--bad); }
.feedback .expl { font-size: 0.95rem; margin-top: 2px; }
.feedback .expl .fa-word { font-style: italic; font-weight: 700; }
.feedback .expl .tipline { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.memory-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
  margin-top: 7px;
}
.memory-note .ui-icon { color: currentColor; }

.next-row { display: flex; justify-content: flex-end; margin-top: 14px; gap: 10px; align-items: center; }
.next-row .hint { color: var(--muted); font-size: 0.8rem; font-style: italic; }
.btn-next {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 12px;
}
.btn-next:hover { filter: brightness(1.2); }
.feedback-next .btn-next { min-width: 145px; }

/* intro (new word) card */
.intro-card { text-align: center; padding: 34px 24px; }
.intro-seed {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -5px auto 10px;
  border-radius: 999px;
  color: var(--anar);
  background: var(--anar-soft);
  font-size: 1.45rem;
  animation: seedBreathe 2.3s ease-in-out infinite;
}
.intro-card .new-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px solid #cfdcc0;
  background: #eef3e6;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 13px;
}
.intro-card .word {
  font-size: 2.3rem;
  font-weight: 650;
  font-style: italic;
  color: var(--tile-deep);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 56;
}
.intro-card .meaning { font-size: 1.15rem; margin-top: 6px; }
.intro-card .note { color: var(--muted); font-size: 0.9rem; font-style: italic; margin-top: 10px; }
.intro-cue {
  max-width: 310px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* seed float */
.seed-float {
  position: absolute;
  right: 0;
  top: 33px;
  color: var(--anar);
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  background: var(--paper);
  border: 1px solid var(--anar-soft);
  border-radius: 999px;
  padding: 2px 8px;
  z-index: 3;
  animation: floatUp 0.9s ease forwards;
  pointer-events: none;
}
@keyframes floatUp {
  from { opacity: 1; transform: translateY(5px); }
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes seedBreathe {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.06); }
}

/* ---------------- celebration overlay ---------------- */

.celebrate {
  position: fixed;
  inset: 0;
  background: rgba(59, 46, 34, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.celebrate .inner {
  background: var(--card);
  border-radius: 22px;
  border-top: 3px double var(--gold);
  padding: 36px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 340px;
  position: relative;
  overflow: visible;
}
.celebrate h2 { margin: 12px 0 4px; color: var(--anar); font-style: italic; }
.celebrate p { margin: 4px 0; color: var(--muted); font-size: 0.95rem; }
.celebrate .reward-card {
  width: min(760px, calc(100vw - 36px));
  max-width: 760px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: center;
  gap: 24px 32px;
  padding: 28px 32px 24px;
  text-align: left;
}
.reward-postcard {
  min-height: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 14px;
  color: var(--leaf);
  background:
    linear-gradient(45deg, transparent 46%, var(--gold-soft) 47% 53%, transparent 54%) 0 0 / 13px 13px,
    var(--paper-2);
  border: 1px solid var(--gold-soft);
  outline: 3px double var(--gold-soft);
  outline-offset: -7px;
}
.reward-postcard .treesvg { width: 205px; max-width: 100%; height: auto; filter: saturate(1.05); }
.reward-persian { color: var(--anar); font-size: 1.28rem; font-weight: 700; margin-bottom: -2px; }
.reward-caption { color: var(--muted); background: var(--paper-2); padding: 2px 7px; font-size: 0.65rem; font-style: italic; }
.reward-kicker { color: var(--gold); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.reward-copy h2 { margin-top: 5px; text-align: left; }
.reward-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.reward-words span { color: var(--tile-deep); background: var(--tile-soft); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 9px; font-size: 0.76rem; font-style: italic; }
.celebrate .reward-streak { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.reward-streak .ui-icon { color: var(--saffron); }
.reward-card > .next-row { grid-column: 1 / -1; margin-top: -5px; }
.seed-p {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--anar);
  left: 50%;
  top: 40%;
  transition: transform 1s cubic-bezier(0.16, 0.8, 0.4, 1), opacity 1s ease;
  pointer-events: none;
}

/* ---------------- Vājehā ---------------- */

.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;
}
.chipwrap { display: flex; flex-wrap: wrap; gap: 7px; }
.vocab-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 26px;
  align-items: end;
  padding: 25px 27px 23px;
  margin-bottom: 13px;
}
.vocab-head-copy h1 {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--anar-deep);
  margin: 5px 0 7px;
}
.vocab-head-copy p { color: var(--muted); font-size: 0.86rem; max-width: 510px; margin: 0; }
.vocab-summary { display: flex; align-items: center; gap: 13px; text-align: center; }
.vocab-summary span { display: flex; flex-direction: column; }
.vocab-summary b { font-family: var(--display); font-size: 1.2rem; line-height: 1; }
.vocab-summary small { color: var(--muted); font-size: 0.62rem; margin-top: 3px; }
.vocab-summary i { width: 1px; height: 27px; background: var(--hairline); }
.vocab-search {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
}
.vocab-search:focus-within { border-color: var(--tile); box-shadow: 0 0 0 3px var(--tile-soft); }
.vocab-search > .ui-icon { font-size: 1.12rem; }
.vocab-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 10px 0;
  outline: 0;
}
.vocab-search button { display: flex; color: var(--muted); padding: 4px; }
.vocab-search button:hover { color: var(--ink); }
.vocab-intents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 25px;
}
.vocab-intent {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  padding: 11px 10px;
}
.vocab-intent:hover { border-color: var(--tile); transform: translateY(-1px); }
.vocab-intent.active { border-color: var(--tile); background: var(--tile-soft); color: var(--tile-deep); }
.vocab-intent > .ui-icon { font-size: 1.22rem; color: var(--anar); }
.vocab-intent.active > .ui-icon { color: var(--tile-deep); }
.vocab-intent span { min-width: 0; display: flex; flex-direction: column; }
.vocab-intent b { font-size: 0.77rem; line-height: 1.15; white-space: nowrap; }
.vocab-intent small { color: var(--muted); font-size: 0.61rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vocab-intent em {
  min-width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.63rem;
  font-style: normal;
}
.vocab-intent.active em { background: var(--card); color: var(--tile-deep); }
.vocab-results { margin: 0 0 28px; }
.vocab-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}
.vocab-results-head h2 { font-family: var(--display); font-size: 1.15rem; margin: 0; }
.vocab-results-head p { color: var(--muted); font-size: 0.74rem; font-style: italic; margin: 2px 0 0; }
.vocab-results-head > span { color: var(--muted); font-size: 0.7rem; white-space: nowrap; padding-top: 3px; }
.vocab-word-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vocab-word {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--leaf);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.vocab-word.memory-due { border-left-color: var(--saffron); }
.vocab-word.memory-parched { border-left-color: var(--bad); background: var(--bad-soft); }
.vocab-word.memory-unplanted { border-left-color: var(--hairline); }
.vocab-word.memory-everlasting { border-left-color: var(--gold); }
.vocab-word:hover { border-top-color: var(--tile); border-right-color: var(--tile); border-bottom-color: var(--tile); }
.vocab-word-main { min-width: 0; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 11px 4px 10px 13px; }
.vocab-word-name { color: var(--tile-deep); font-family: var(--display); font-size: 1rem; font-style: italic; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vocab-word-en { color: var(--ink); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: baseline; text-align: right; padding-left: 8px; }
.vocab-word-state { grid-column: 1 / -1; color: var(--muted); font-size: 0.62rem; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-btn {
  width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 10px;
}
.vocab-word > .favorite-btn { align-self: center; margin: 4px; }
.favorite-btn:hover { color: var(--gold); background: var(--paper-2); }
.favorite-btn.on { color: var(--gold); }
.favorite-btn.on .ui-icon { fill: currentColor; }
.vocab-empty { padding: 35px 20px; text-align: center; color: var(--muted); }
.vocab-empty > .ui-icon { font-size: 2rem; color: var(--leaf); }
.vocab-empty h3 { color: var(--ink); font-family: var(--display); margin: 7px 0 3px; }
.vocab-empty p { font-size: 0.76rem; margin: 0; }
.vocab-tree-list { border-top: 1px solid var(--hairline); }
.vocab-tree { border-bottom: 1px solid var(--hairline); }
.vocab-tree-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(110px, 0.5fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 13px 6px;
}
.vocab-tree-head:hover { color: var(--tile-deep); }
.vocab-tree-symbol { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper-2); color: var(--leaf); }
.vocab-tree-head > span:nth-child(2) { display: flex; flex-direction: column; }
.vocab-tree-head b { font-size: 0.88rem; }
.vocab-tree-head small { color: var(--muted); font-size: 0.65rem; margin-top: 2px; }
.vocab-tree-progress { height: 4px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.vocab-tree-progress i { display: block; height: 100%; background: var(--leaf); }
.vocab-tree-chevron { color: var(--muted); font-size: 1.3rem; transition: transform 0.16s ease; }
.vocab-tree.open .vocab-tree-chevron { transform: rotate(90deg); }
.vocab-tree-words { padding: 1px 6px 15px 53px; }

.word-detail {
  position: fixed;
  inset: 0;
  background: rgba(59, 46, 34, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 20px;
}
.word-detail .inner {
  background: var(--card);
  border-radius: 18px;
  border-top: 3px double var(--gold);
  box-shadow: var(--shadow);
  padding: 26px 30px;
  min-width: 260px;
  max-width: 360px;
  text-align: center;
  position: relative;
}
.word-detail .word {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 650;
  font-style: italic;
  color: var(--tile-deep);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 42;
}
.word-detail .meaning { margin-top: 4px; }
.word-detail .meta { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
.word-detail .note { font-style: italic; color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.word-detail .word-detail-card {
  width: min(100%, 470px);
  max-width: 470px;
  max-height: min(720px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 29px 31px 25px;
  text-align: left;
}
.word-detail-tools { display: flex; justify-content: space-between; margin: -11px -13px 7px; }
.word-detail-close { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); }
.word-detail-close:hover, .word-detail-close:focus-visible { background: var(--paper-2); color: var(--ink); }
.word-detail-card > .word { text-align: center; font-size: 2rem; }
.word-detail-card > .meaning { text-align: center; font-size: 1.05rem; }
.word-kind { color: var(--muted); font-size: 0.68rem; text-align: center; margin: 4px 0 17px; }
.word-memory {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--leaf);
}
.word-memory.memory-due { color: #97630d; background: #fbf1d7; }
.word-memory.memory-parched { color: var(--bad); background: var(--bad-soft); }
.word-memory.memory-unplanted { color: var(--muted); }
.word-memory.memory-everlasting { color: #8a6a13; background: #fbf4db; }
.word-memory > .ui-icon { font-size: 1.3rem; }
.word-memory > span { display: flex; flex-direction: column; }
.word-memory b { color: var(--ink); font-size: 0.8rem; }
.word-memory small { color: var(--muted); font-size: 0.67rem; margin-top: 1px; }
.word-memory .dots { display: flex; flex-direction: row; gap: 2px; }
.word-memory .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--card); border: 1px solid var(--hairline); }
.word-memory .dots i.on { background: currentColor; border-color: currentColor; }
.word-example { margin-top: 13px; padding: 12px 14px; border-left: 2px solid var(--tile); background: var(--tile-soft); display: flex; flex-direction: column; }
.word-example span, .word-note span { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.word-example b { color: var(--tile-deep); font-style: italic; font-size: 0.9rem; margin-top: 3px; }
.word-example small { color: var(--muted); font-size: 0.72rem; margin-top: 2px; }
.word-course { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 13px; padding: 11px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.word-course > .ui-icon { color: var(--leaf); }
.word-course > span { min-width: 0; display: flex; flex-direction: column; }
.word-course small { color: var(--muted); font-size: 0.64rem; }
.word-course b { font-size: 0.78rem; }
.word-course .linkish { font-size: 0.68rem; white-space: nowrap; }
.word-note { color: var(--muted); font-size: 0.79rem; font-style: italic; margin-top: 11px; }
.word-note b { color: var(--ink); display: block; margin-top: 2px; }
.word-story { display: grid; grid-template-columns: auto 1fr; gap: 9px; color: var(--muted); background: #fbf4db; border-radius: 11px; padding: 11px 12px; font-size: 0.74rem; font-style: italic; margin-top: 12px; }
.word-story .ui-icon { color: var(--gold); }
.memory-technical { margin-top: 12px; color: var(--muted); font-size: 0.67rem; }
.memory-technical summary { cursor: pointer; text-align: center; }
.memory-technical p { margin: 7px 0 0; text-align: center; }
.word-detail-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.btn-voice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--tile-deep);
  border: 1px solid var(--tile);
  background: var(--tile-soft);
  border-radius: 11px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 0.78rem;
}
.btn-voice:hover, .btn-voice:focus-visible { background: var(--card); }

/* ---------------- voice mirror ---------------- */

.voice-studio {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(59, 46, 34, 0.5);
}
.voice-studio-card {
  width: min(100%, 510px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  padding: 28px 30px 24px;
  border-radius: 22px;
  border-top: 3px double var(--gold);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.voice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
}
.voice-close:hover, .voice-close:focus-visible { color: var(--ink); background: var(--paper-2); }
.voice-kicker { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--gold); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.voice-studio h2 { margin: 6px 36px 2px; color: var(--anar); font-style: italic; }
.voice-count { color: var(--muted); font-size: 0.66rem; margin: 2px 0 14px; }
.voice-script { color: var(--ink); font-size: 1.75rem; line-height: 1.35; margin-top: 15px; }
.voice-latin { color: var(--tile-deep); font-family: var(--display); font-size: 1.18rem; font-weight: 650; font-style: italic; margin-top: 3px; }
.voice-meaning { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.voice-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 20px 0 11px; }
.voice-steps span { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 0.67rem; }
.voice-steps i { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); border-radius: 50%; background: var(--paper-2); font-style: normal; }
.voice-steps .ready, .voice-steps .active { color: var(--leaf); }
.voice-steps .ready i { color: var(--card); border-color: var(--leaf); background: var(--leaf); }
.voice-steps .active i { color: var(--card); border-color: var(--anar); background: var(--anar); animation: voicePulse 1s ease-in-out infinite; }
.voice-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.voice-control {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--tile-deep);
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: var(--paper-2);
  text-align: left;
}
.voice-control:hover:not(:disabled), .voice-control:focus-visible:not(:disabled) { border-color: var(--tile); background: var(--tile-soft); }
.voice-control:disabled { opacity: 0.5; cursor: default; }
.voice-control > .ui-icon { font-size: 1.25rem; }
.voice-control span { display: flex; flex-direction: column; min-width: 0; }
.voice-control b { font-size: 0.75rem; }
.voice-control small { color: var(--muted); font-size: 0.6rem; margin-top: 2px; }
.voice-control.recording { color: var(--anar); border-color: var(--anar); background: var(--anar-soft); }
.voice-unavailable { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); background: var(--paper-2); border-radius: 12px; padding: 12px; font-size: 0.72rem; }
.voice-meter { height: 26px; position: relative; overflow: hidden; margin-top: 9px; border-radius: 999px; background: var(--paper-2); }
.voice-meter-fill { position: absolute; inset: 0; transform: scaleX(0.06); transform-origin: left; background: linear-gradient(90deg, var(--gold-soft), var(--anar)); transition: transform 0.08s linear; }
.voice-meter span { position: relative; z-index: 1; color: var(--ink); font-size: 0.62rem; font-weight: 700; line-height: 26px; letter-spacing: 0.08em; text-transform: uppercase; }
.voice-compare { margin-top: 11px; padding: 11px 12px; border-radius: 13px; background: var(--tile-soft); text-align: left; }
.voice-compare > span { color: var(--tile-deep); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.voice-playback { width: 100%; height: 34px; display: block; margin-top: 8px; }
.voice-compare p { color: var(--muted); font-size: 0.68rem; margin: 7px 0 0; }
.voice-error { color: var(--bad); background: var(--bad-soft); border-radius: 10px; padding: 9px 11px; margin-top: 9px; font-size: 0.72rem; }
.voice-note { color: var(--muted); font-size: 0.72rem; font-style: italic; margin: 11px auto 0; max-width: 400px; }
.voice-privacy { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 0.62rem; margin: 13px auto 0; }
.voice-next { color: var(--tile-deep); font-weight: 800; font-size: 0.76rem; margin-top: 13px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes voicePulse { 0%, 100% { transform: scale(0.92); } 50% { transform: scale(1.08); } }

/* ---------------- guide ---------------- */

.guide-card { padding: 0; overflow: hidden; }
.guide-card > button.g-head {
  width: 100%;
  text-align: left;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.guide-card .g-head:hover { background: var(--paper-2); }
.guide-card .g-head .star { color: var(--gold); flex: none; }
.guide-card .g-head .t { font-weight: 700; flex: 1; }
.guide-card .g-head .chev { color: var(--muted); transition: transform 0.15s ease; }
.guide-card.open .g-head .chev { transform: rotate(90deg); }
.g-body { padding: 0 22px 20px; }
.g-body .summary { font-style: italic; color: var(--muted); margin-bottom: 10px; }
.g-body ul { margin: 0 0 12px; padding-left: 20px; }
.g-body li { margin-bottom: 5px; }
.g-ex {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.g-ex .fa-word { font-style: italic; font-weight: 700; color: var(--tile-deep); }
.g-ex .en { color: var(--muted); font-size: 0.9rem; text-align: right; }
.g-pitfall {
  font-size: 0.9rem;
  color: var(--bad);
  background: var(--bad-soft);
  border-radius: 10px;
  padding: 9px 14px;
  margin: 10px 0 14px;
}
.g-pitfall b { font-style: italic; }
.btn-practice {
  border: 1.5px solid var(--tile);
  color: var(--tile-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.92rem;
}
.btn-practice:hover { background: var(--tile-soft); }

/* romanization key table */
.key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 18px;
  margin-top: 8px;
}
.key-grid .k {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.95rem;
}
.key-grid .k b { font-style: italic; color: var(--tile-deep); min-width: 26px; }
.key-grid .k span { color: var(--muted); font-size: 0.85rem; }

/* ---------------- welcome modal ---------------- */

.welcome {
  position: fixed;
  inset: 0;
  background: rgba(59, 46, 34, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.welcome .inner {
  background: var(--card);
  border-radius: 22px;
  border-top: 3px double var(--gold);
  padding: 34px 34px 28px;
  max-width: 430px;
  box-shadow: var(--shadow);
  text-align: center;
}
.welcome-mark { width: 76px; height: 86px; display: block; margin: -4px auto 13px; }
.welcome-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.welcome h2 { margin: 4px 0 8px; color: var(--anar); font-style: normal; font-size: 1.85rem; line-height: 1.1; }
.welcome p { color: var(--muted); margin: 0 auto 21px; max-width: 330px; }
.welcome-cta { width: min(100%, 310px); padding: 13px 24px; }

.first-seed-done { padding-top: 24px; }
.metaphor-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0 13px;
}
.metaphor-strip > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 5px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--anar);
}
.metaphor-strip .ui-icon { font-size: 1.45rem; }
.metaphor-strip img { width: 22px; height: 25px; }
.metaphor-strip b, .metaphor-strip small { display: block; }
.metaphor-strip b { color: var(--ink); font-size: 0.75rem; }
.metaphor-strip small { color: var(--muted); font-size: 0.66rem; }
.first-seed-note { color: var(--muted); font-size: 0.82rem; font-style: italic; margin: 0 auto 18px; }

/* ---------------- misc ---------------- */

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.9rem;
  z-index: 60;
  animation: toastIn 0.2s ease;
  box-shadow: var(--shadow);
}

.completion-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--anar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.empty-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 40px 0;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  #app { padding: 0 14px 60px; }
  .card { padding: 18px; }
  .qcard .prompt { font-size: 1.4rem; }
  .stats-row { gap: 18px; }
  .hdr { padding-top: 18px; }
  .brand-mark { width: 34px; height: 39px; }
  .hdr .wordmark { font-size: 2.08rem; }
  .tabs { gap: 2px; }
  .tab {
    flex: 1;
    min-width: 0;
    padding: 6px 5px;
    flex-direction: column;
    gap: 1px;
    font-size: 0.78rem;
  }
  .tab .ui-icon { font-size: 1.15rem; }
  .stat .big { font-size: 1.35rem; }
  .stat .lbl { font-size: 0.7rem; }
  .home-focus { padding: 22px 17px 21px; }
  .glance-item { gap: 6px; padding: 10px 4px; }
  .glance-item small { font-size: 0.62rem; }
  .growth-copy { font-size: 0.72rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .welcome .inner { padding: 27px 20px 23px; }
  .welcome h2 { font-size: 1.55rem; }
  .welcome-mark { width: 64px; height: 73px; }
  .metaphor-strip { gap: 5px; }
  .orchard-head { grid-template-columns: 1fr; gap: 17px; padding: 23px 18px 19px; }
  .orchard-totals { gap: 4px; }
  .orchard-totals small { font-size: 0.52rem; }
  .orchard-current { grid-template-columns: 91px 1fr; }
  .current-tree-art .treesvg { width: 91px; }
  .orchard-section-head { align-items: flex-start; }
  .orchard-section-head p { max-width: 255px; }
  .tree-grid { grid-template-columns: 1fr; }
  .tree-card { grid-template-columns: 82px 1fr auto; }
  .tree-panel { padding: 18px 13px 19px; }
  .tree-panel-head { grid-template-columns: 76px 1fr auto; gap: 9px; }
  .tree-panel-head > .treesvg { width: 76px; }
  .tree-panel-head h2 { font-size: 1.08rem; }
  .course-path::before { left: 65px; }
  .path-anar { grid-template-columns: 27px 58px 1fr; gap: 8px; padding-right: 8px; }
  .path-fruit > svg { width: 58px; }
  .path-action { grid-column: 3; justify-self: start; }
  .path-copy em { max-width: 190px; }
  .vocab-head { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px 18px; }
  .vocab-head-copy h1 { font-size: 1.55rem; }
  .vocab-summary { justify-content: flex-start; }
  .vocab-search { grid-column: 1; }
  .vocab-intents { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 22px; }
  .vocab-intent { padding: 10px 8px; gap: 7px; }
  .vocab-intent b { font-size: 0.72rem; }
  .vocab-intent small { font-size: 0.57rem; }
  .vocab-word-grid { grid-template-columns: 1fr; }
  .vocab-results-head p { max-width: 250px; }
  .vocab-tree-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; padding: 12px 2px; }
  .vocab-tree-progress { display: none; }
  .vocab-tree-words { padding: 1px 0 14px 43px; }
  .word-detail { padding: 9px; }
  .word-detail .word-detail-card { min-width: 0; max-height: calc(100vh - 18px); padding: 20px 18px 19px; }
  .word-detail-tools { margin: -7px -5px 4px; }
  .word-course { grid-template-columns: auto 1fr; }
  .word-course .linkish { grid-column: 2; justify-self: start; }
  .celebrate .reward-card { grid-template-columns: 1fr; gap: 14px; max-height: calc(100vh - 18px); overflow-y: auto; padding: 16px 17px 18px; }
  .reward-postcard { min-height: 178px; padding: 14px 10px 10px; }
  .reward-postcard .treesvg { width: 165px; }
  .reward-copy { text-align: center; }
  .reward-copy h2 { text-align: center; }
  .reward-words { justify-content: center; margin: 10px 0 8px; }
  .celebrate .reward-streak { justify-content: center; }
  .voice-studio { padding: 9px; }
  .voice-studio-card { max-height: calc(100vh - 18px); padding: 23px 16px 18px; }
  .voice-studio h2 { font-size: 1.35rem; }
  .voice-script { font-size: 1.5rem; }
  .voice-controls { grid-template-columns: 1fr; }
  .play-top { gap: 8px; padding-top: 13px; }
  .play-top .close { width: 31px; height: 31px; }
  .play-top .mode-lbl { font-size: 0.76rem; max-width: 145px; }
  .play-top .seeds-chip { gap: 5px; }
  .seed-count small { font-size: 0.56rem; }
  .combo-chip { display: none; }
  .qcard { min-height: 0; padding: 22px 18px 20px; }
  .opt { padding: 11px 12px; min-height: 51px; }
  .feedback { padding: 13px; }
  .feedback-next { align-items: stretch; }
  .feedback-next .hint { display: none; }
  .feedback-next .btn-next { flex: 1; }
  .type-row { flex-direction: column; }
  .type-row .btn-check { width: 100%; }
}

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