@charset "UTF-8";
:root {
  --bg: #f6f5ef;
  --paper: #fffefb;
  --ink: #243d34;
  --muted: #7d887f;
  --green: #2f6752;
  --green-light: #e7eee4;
  --orange: #d78353;
  --line: #e3e6dc;
  --radius: 22px;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #db9c67;
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.topbar {
  max-width: 1440px;
  margin: auto;
  min-height: 96px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-icon {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font: 700 33px Georgia;
  text-align: center;
  line-height: 39px;
  letter-spacing: -3px;
}
.brand-icon span {
  color: #f1bd77;
}
.brand-sub {
  font-size: 11px;
  font-weight: 400;
  display: block;
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: 3px;
}
.topbar nav {
  display: flex;
  gap: 35px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  padding: 14px 0;
  color: var(--muted);
}
.nav-link:hover,
.nav-link.active {
  color: var(--green);
}
.nav-link span {
  padding-left: 5px;
}
.demo-badge {
  margin-left: 20px;
  border: 1px solid #d9dfd2;
  padding: 8px 13px;
  border-radius: 25px;
  font-size: 11px;
  color: #73816f;
  display: flex;
  gap: 7px;
  align-items: center;
}
.demo-badge i,
.teacher-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #729376;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5%;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 490px;
  align-items: center;
  position: relative;
  padding: 34px 0 18px;
  gap: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  color: #7c8d7d;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tiny-line {
  height: 1px;
  width: 26px;
  background: #8c9f85;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font-size: clamp(32px, 3.15vw, 48px);
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: 1px;
  margin: 22px 0 20px;
}
.underlined {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.underlined svg {
  position: absolute;
  width: 100%;
  height: 15px;
  left: 0;
  bottom: -10px;
  fill: none;
  stroke: #d6b36f;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.8;
}
.hero-copy > p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 15px 24px;
  font-size: 14px;
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  font-weight: 550;
}
.primary:hover {
  background: #245340;
  box-shadow: 0 5px 16px #2f675224;
}
.primary span {
  font-size: 20px;
  font-weight: 400;
}
.text-button {
  font-size: 12px;
  color: #7b857b;
  padding: 12px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
}
.hero-stats > span {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.hero-stats strong {
  font: 500 26px Georgia;
  color: #3c5645;
}
.hero-art {
  height: 430px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.orbit {
  position: absolute;
  border: 1px dashed #d9ddca;
  border-radius: 50%;
  z-index: -1;
}
.orbit-one {
  width: 350px;
  height: 350px;
  background: #e9ecdd;
  border: 0;
}
.orbit-two {
  width: 415px;
  height: 415px;
  transform: rotate(-20deg);
}
.hero-teacher {
  height: 400px;
  width: 400px;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 14px 9px #35412c10);
}
.sound-float {
  position: absolute;
  font-family: Georgia, "Segoe UI", sans-serif;
  font-size: 26px;
  border-radius: 17px;
  padding: 13px 20px;
  background: #fffdf7;
  box-shadow: 0 8px 30px #39452b0b;
  z-index: 2;
  border: 1px solid #fff;
}
.sf-one {
  left: 13%;
  top: 100px;
  transform: rotate(-12deg);
  color: #b8834e;
}
.sf-two {
  right: 5%;
  top: 178px;
  transform: rotate(12deg);
  color: #65917a;
}
.sf-three {
  left: 7%;
  bottom: 81px;
  transform: rotate(8deg);
  color: #8893ae;
}
.sparkle {
  position: absolute;
  color: #cb9e5c;
  font-size: 30px;
}
.sp-one {
  right: 12%;
  top: 37px;
}
.sp-two {
  right: 12%;
  bottom: 52px;
}
.hello-bubble {
  position: absolute;
  right: 4%;
  top: 25px;
  border: 1px solid #e3e6d9;
  border-radius: 15px 15px 15px 0;
  background: #fffef8;
  padding: 14px 19px;
  font-size: 12px;
  z-index: 3;
  transform: rotate(4deg);
  box-shadow: 0 6px 20px #485a3006;
}
.hello-bubble span {
  display: block;
  font-size: 7px;
  color: #9aab91;
  letter-spacing: 1.4px;
  margin-top: 6px;
}
.teacher-label {
  position: absolute;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  background: #fffdf9;
  border: 1px solid #e2e6d9;
  padding: 9px 16px;
  border-radius: 24px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 20px 0 24px;
}
.section-heading h2 {
  font-size: 23px;
  margin: 10px 0 0;
  font-weight: 550;
  letter-spacing: 1px;
}
.small-star {
  color: #c49c58;
  font-size: 19px;
  margin-left: 15px;
}
.map-progress {
  font-size: 11px;
  color: #8b9387;
  padding-bottom: 3px;
}
.map-progress b {
  color: #4e7157;
  font-weight: 600;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.level-card {
  padding: 21px 20px 0;
  text-align: left;
  background: #edf0e6;
  border: 1px solid #e0e5d6;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 234px;
}
.level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 25px #33422e0c;
}
.theme-2 {
  background: #f0ede3;
  border-color: #e7e1d1;
}
.theme-3 {
  background: #e9eeed;
  border-color: #dae3df;
}
.theme-4 {
  background: #f4eae1;
  border-color: #ecddd0;
}
.theme-5 {
  background: #ecebf0;
  border-color: #dfdce7;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.level-number {
  font: 400 35px Georgia;
  color: #9ba88a;
}
.theme-2 .level-number {
  color: #b8a57b;
}
.theme-3 .level-number {
  color: #8baba3;
}
.theme-4 .level-number {
  color: #c6a183;
}
.theme-5 .level-number {
  color: #a7a1ba;
}
.level-icon {
  font: 28px Georgia;
  width: 43px;
  height: 43px;
  text-align: center;
  line-height: 43px;
  border-radius: 50%;
  background: #ffffff69;
  color: #778b70;
}
.theme-2 .level-icon {
  color: #a79566;
}
.theme-3 .level-icon {
  color: #668f84;
}
.theme-4 .level-icon {
  color: #b68966;
}
.theme-5 .level-icon {
  color: #9688ab;
}
.level-kicker {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8c9784;
}
.level-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 9px 0;
}
.level-card p {
  font-size: 11px;
  color: #8b9185;
  line-height: 1.8;
  min-height: 39px;
  margin: 0 0 15px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #7c8876;
  border-top: 1px solid #75846b20;
  padding: 12px 0 15px;
}
.card-arrow {
  color: #607958;
  font-size: 19px;
}
.card-progress {
  height: 3px;
  background: transparent;
  margin: 0 -20px;
}
.card-progress i {
  height: 100%;
  background: #708c64;
  display: block;
}
.gentle-note {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #939989;
  font-size: 11px;
  margin: 25px 0 28px;
}
.gentle-note > span {
  font-size: 22px;
  color: #a0ac8e;
}
footer {
  max-width: 1296px;
  margin: 0 auto;
  padding: 21px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9a9f94;
  gap: 20px;
}
footer a {
  margin-left: 14px;
  color: #6d8269;
}
footer a:hover {
  text-decoration: underline;
}
.lesson {
  padding: 24px 0;
}
.lesson-heading {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 25px;
}
.back-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  color: #7f8a7d;
}
.lesson-heading h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 6px 0 0;
}
.lesson-heading .eyebrow {
  font-size: 9px;
}
.summary-button {
  margin-left: auto;
  font-size: 11px;
  color: #7d8d7b;
  min-width: 140px;
  text-align: right;
}
.summary-button b {
  font-size: 17px;
  color: var(--green);
  padding: 0 3px;
}
.mini-progress {
  display: block;
  height: 4px;
  background: #e3e7db;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}
.mini-progress i {
  height: 100%;
  display: block;
  background: #7c9b6d;
}
.lesson-layout {
  display: grid;
  grid-template-columns: 190px minmax(340px, 1fr) 335px;
  gap: 20px;
  align-items: start;
}
.word-panel,
.exercise-panel,
.phoneme-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
}
.word-panel,
.phoneme-panel {
  padding: 20px 17px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.panel-heading h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
.panel-heading > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9aa393;
}
.muted {
  color: #899281;
  font-size: 12px;
  line-height: 1.8;
}
.word-panel > .muted,
.phoneme-panel > .muted {
  font-size: 10px;
  margin: 9px 0 17px;
}
.word-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 468px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #dce3d3 transparent;
}
.word-choice {
  width: 100%;
  border-radius: 10px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
}
.word-choice:hover {
  background: #f3f5ed;
}
.word-choice.selected {
  background: #e8efe2;
  color: #426644;
}
.word-order {
  font-size: 9px;
  color: #9aab8e;
}
.word-mark {
  margin-left: auto;
  font-size: 12px;
  color: #b4bcae;
}
.was-correct .word-mark {
  color: #6e9763;
}
.was-incorrect .word-mark {
  color: #bc966c;
}
.word-legend {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: #9aa28f;
  padding-top: 16px;
  margin: 15px 0 0;
  border-top: 1px solid var(--line);
}
.exercise-panel {
  padding: 27px 28px 22px;
  min-height: 551px;
}
.exercise-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa38e;
  font-size: 10px;
}
.exercise-label .eyebrow {
  font-size: 9px;
}
.current-word {
  text-align: center;
  font-size: 65px;
  font-weight: 550;
  letter-spacing: 1px;
  margin: 31px 0 17px;
  color: #325544;
  overflow-wrap: anywhere;
}
.listen-button {
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 30px;
  border: 1px solid #e1e8d9;
  padding: 10px 17px;
  background: #f4f7ef;
  font-size: 12px;
  color: #657d5d;
}
.listen-button svg {
  width: 19px;
  height: 19px;
}
.listen-button:hover {
  background: #e8f0df;
}
.playing {
  box-shadow: 0 0 0 4px #85a76c26 !important;
  color: #2f6752 !important;
  background: #dfead6 !important;
}
.answer-section {
  margin-top: 33px;
}
.answer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}
.answer-heading h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}
.answer-heading > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #a0a894;
}
.answer-tray {
  background: #f8f9f4;
  min-height: 87px;
  border: 1px dashed #cdd7c2;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 7px;
  flex-wrap: wrap;
}
.empty-answer {
  font-size: 10px;
  color: #a4ad98;
  display: flex;
  align-items: center;
  gap: 8px;
}
.empty-answer > span {
  font-size: 22px;
  font-weight: 200;
}
.answer-chip {
  position: relative;
  background: #e7eedf;
  border: 1px solid #d6e0cc;
  border-radius: 9px;
  min-width: 44px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px 4px;
  font:
    25px "Segoe UI",
    Arial,
    sans-serif;
  color: #47673a;
}
.answer-chip small {
  position: absolute;
  left: 5px;
  top: 3px;
  font: 8px Arial;
  color: #98aa89;
}
.edit-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 11px;
  font-size: 10px;
  color: #97a08d;
}
.edit-actions button {
  padding: 4px 0;
  font-size: 11px;
  color: #7b9070;
}
.edit-actions > span {
  margin-left: auto;
  font-size: 9px;
}
.feedback {
  font-size: 11px;
  line-height: 1.6;
  min-height: 34px;
  padding-top: 12px;
}
.feedback.correct {
  color: #4a8046;
}
.feedback.incorrect {
  color: #b78150;
}
.exercise-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 13px;
}
.exercise-actions .primary {
  padding: 12px 20px;
  font-size: 13px;
  flex: 1;
  gap: 22px;
}
.exercise-actions .primary span {
  font-size: 15px;
}
.next-button {
  font-size: 11px;
  color: #88957d;
  padding: 10px;
}
.listen-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f3e9;
  border-radius: 10px;
  padding: 12px 13px;
  margin-top: 25px;
}
.listen-tip > span {
  color: #b6a571;
  font-size: 24px;
}
.listen-tip p {
  font-size: 10px;
  line-height: 1.7;
  color: #aaa086;
  margin: 0;
}
.listen-tip b {
  display: block;
  font-weight: 500;
  color: #8c805f;
  margin-bottom: 2px;
}
.sound-tabs {
  display: flex;
  background: #f2f4ed;
  padding: 4px;
  border-radius: 9px;
  margin-bottom: 17px;
}
.sound-tabs button {
  flex: 1;
  font-size: 10px;
  padding: 7px 3px;
  border-radius: 7px;
  color: #8f9a82;
}
.sound-tabs button.active {
  background: white;
  color: #4c6a43;
  box-shadow: 0 1px 5px #33482a08;
}
.sound-group {
  margin-bottom: 15px;
}
.sound-group:last-child {
  margin-bottom: 0;
}
.sound-group h3 {
  font-size: 10px;
  font-weight: 500;
  color: #8b9881;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sound-group h3 > span {
  font-size: 8px;
  background: #eeeee7;
  border-radius: 4px;
  padding: 2px 4px;
  color: #a1a58e;
}
.sound-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.phoneme-key {
  font:
    20px "Segoe UI",
    Arial,
    sans-serif;
  background: #f1f3e9;
  border: 1px solid #e5e9db;
  border-radius: 8px;
  min-height: 37px;
  color: #6e8558;
  padding: 4px;
}
.phoneme-key.consonant {
  background: #edf1ed;
  border-color: #e0e7df;
  color: #688370;
}
.phoneme-key:hover {
  background: #e0ead7;
  transform: translateY(-2px);
}
.lesson-footnote {
  margin: 19px 0 0 210px;
  font-size: 10px;
  color: #9ba491;
}
.lesson-footnote button {
  font-size: 10px;
  text-decoration: underline;
  margin-left: 10px;
  color: #82936e;
}
.pet {
  position: fixed;
  left: 10px;
  bottom: 24px;
  width: 145px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  pointer-events: none;
}
.pet-speech {
  border: 1px solid #e4e8dc;
  border-radius: 13px 13px 13px 3px;
  padding: 10px 12px;
  background: #fffff9ee;
  box-shadow: 0 4px 16px #36512308;
  font-size: 11px;
  line-height: 1.5;
  color: #6d805e;
  text-align: center;
  max-width: 145px;
}
.pet-drag {
  padding: 0;
  width: 132px;
  height: 175px;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
}
.pet-drag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.pet-hint {
  font-size: 9px;
  color: #8b987d;
  background: #f6f5efbb;
  border-radius: 12px;
  padding: 3px 8px;
}
.pet.dragging .pet-drag {
  cursor: grabbing;
}
.pet.dragging {
  filter: drop-shadow(0 9px 8px #34442615);
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  background: #2e493e;
  color: #fff;
  font-size: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  z-index: 100;
  max-width: 90vw;
  width: max-content;
  box-shadow: 0 5px 30px #233f3022;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #e3e7da;
  border-radius: 24px;
  padding: 37px;
  max-width: 520px;
  width: calc(100% - 32px);
  background: #fffef9;
  color: var(--ink);
  box-shadow: 0 24px 100px #1a342330;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #26382c52;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 26px;
  font-weight: 550;
  margin: 14px 0 20px;
}
dialog > .primary {
  width: 100%;
  margin-top: 10px;
}
.close-dialog {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 27px;
  font-weight: 200;
  color: #98a18e;
  width: 30px;
  height: 30px;
}
.help-steps {
  padding-left: 23px;
  margin: 28px 0;
}
.help-steps li {
  padding-left: 7px;
  margin-bottom: 23px;
  font-size: 14px;
  color: #678359;
}
.help-steps b {
  font-weight: 550;
  color: #465e3c;
}
.help-steps p {
  font-size: 12px;
  color: #8f9787;
  line-height: 1.8;
  margin: 7px 0 0;
}
#result-content {
  text-align: center;
}
.result-star {
  font-size: 50px;
  color: #c9a765;
  display: block;
  margin: 0 0 15px;
}
#result-content .eyebrow {
  display: block;
}
#result-content h2 {
  margin-bottom: 12px;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0;
  background: #f1f4e9;
  border-radius: 16px;
  padding: 22px 10px;
}
.result-stats b {
  display: block;
  font: 35px Georgia;
  color: #638156;
  margin-bottom: 8px;
}
.result-stats span {
  font-size: 11px;
  color: #8c9a7f;
}
#result-content .primary {
  width: 100%;
  margin: 15px 0 4px;
}
.loading,
.error-screen {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #859379;
}
.error-screen h1 {
  font-size: 25px;
}
.loader {
  width: 26px;
  height: 26px;
  border: 2px solid #d6dfcc;
  border-top-color: #607e52;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 540px;
  }
  .hero-art {
    height: 470px;
  }
  .hero-teacher {
    height: 445px;
    width: 445px;
  }
  .learning-map {
    padding-bottom: 20px;
  }
  .level-card {
    min-height: 249px;
  }
  .lesson-layout {
    grid-template-columns: 210px minmax(360px, 1fr) 355px;
  }
}
@media (max-width: 1150px) {
  .lesson-layout {
    grid-template-columns: 160px minmax(300px, 1fr) 280px;
    gap: 12px;
  }
  .word-panel,
  .phoneme-panel {
    padding: 17px 12px;
  }
  .exercise-panel {
    padding: 24px 20px;
  }
  .answer-heading > span {
    display: none;
  }
  .sound-grid {
    gap: 5px;
  }
  .hero-art {
    transform: scale(0.9);
  }
  .hero h1 {
    font-size: 34px;
  }
  .level-card {
    padding: 18px 14px 0;
  }
  .level-card h3 {
    font-size: 14px;
  }
  .card-progress {
    margin: 0 -14px;
  }
  .lesson-footnote {
    margin-left: 172px;
  }
  .pet {
    width: 110px;
    left: 0;
    bottom: 8px;
  }
  .pet-drag {
    width: 100px;
    height: 145px;
  }
  .pet-speech {
    font-size: 10px;
    padding: 8px;
    max-width: 110px;
  }
}
@media (max-width: 950px) {
  .topbar {
    padding: 0 4%;
    min-height: 80px;
  }
  main {
    padding: 0 4%;
  }
  .hero {
    grid-template-columns: 1.2fr 1fr;
    min-height: 445px;
    gap: 0;
  }
  .hero-art {
    height: 370px;
    transform: scale(0.85);
    transform-origin: center;
  }
  .hero-teacher {
    height: 355px;
    width: 355px;
  }
  .orbit-one {
    width: 290px;
    height: 290px;
  }
  .orbit-two {
    width: 345px;
    height: 345px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-stats {
    gap: 20px;
  }
  .hero-stats > span {
    font-size: 10px;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .primary {
    padding: 13px 19px;
    gap: 20px;
  }
  .hello-bubble {
    right: -5%;
    top: 0;
  }
  .level-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .level-card {
    min-height: 210px;
  }
  .lesson-layout {
    grid-template-columns: 155px 1fr;
  }
  .phoneme-panel {
    grid-column: 1 / -1;
  }
  .phoneme-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .sound-group {
    margin-bottom: 0;
  }
  .sound-tabs {
    max-width: 320px;
  }
  .lesson-footnote {
    margin-left: 0;
  }
  .word-list {
    max-height: 440px;
  }
  .exercise-panel {
    min-height: 530px;
  }
  footer {
    margin: 0 4%;
  }
  .pet {
    bottom: 14px;
    left: auto;
    right: 10px;
  }
  .pet-speech {
    max-width: 105px;
  }
  .pet-drag {
    height: 132px;
  }
  .pet-hint {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    gap: 10px;
    min-height: 76px;
  }
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
    line-height: 32px;
    font-size: 28px;
    border-radius: 11px;
  }
  .brand-sub {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .topbar nav {
    gap: 15px;
  }
  .nav-link {
    font-size: 11px;
  }
  .demo-badge {
    display: none;
  }
  .hero {
    display: block;
    padding: 32px 0 0;
    min-height: 0;
  }
  .hero h1 {
    font-size: 32px;
    line-height: 1.5;
    margin: 20px 0;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-stats {
    margin-top: 24px;
  }
  .hero-art {
    height: 300px;
    max-width: 390px;
    margin: 0 auto;
    transform: scale(0.83);
    transform-origin: center;
  }
  .hero-teacher {
    height: 320px;
    width: 320px;
  }
  .orbit-one {
    height: 265px;
    width: 265px;
  }
  .orbit-two {
    height: 310px;
    width: 310px;
  }
  .hello-bubble {
    right: 0;
    top: 0;
  }
  .sf-one {
    top: 75px;
    left: 4%;
  }
  .sf-two {
    top: 145px;
    right: 0;
  }
  .sf-three {
    bottom: 40px;
    left: 0;
  }
  .teacher-label {
    bottom: -14px;
  }
  .section-heading {
    align-items: start;
    gap: 12px;
    margin: 5px 0 21px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .map-progress {
    font-size: 9px;
    max-width: 92px;
    text-align: right;
    line-height: 1.7;
    padding-top: 18px;
  }
  .small-star {
    display: none;
  }
  .level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .level-card:last-child {
    grid-column: 1/-1;
    min-height: 175px;
  }
  .level-card:last-child .card-top {
    margin-bottom: 0;
  }
  .level-card:last-child .card-top .level-icon {
    position: absolute;
    right: 22px;
    top: 25px;
  }
  .level-card:last-child p {
    min-height: 0;
  }
  .level-card h3 {
    font-size: 15px;
  }
  .gentle-note {
    font-size: 10px;
    line-height: 1.7;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  footer {
    flex-direction: column;
    gap: 9px;
    font-size: 9px;
    padding-bottom: 20px;
  }
  .lesson-heading {
    gap: 13px;
    flex-wrap: wrap;
  }
  .lesson-heading h1 {
    font-size: 19px;
  }
  .back-button {
    font-size: 10px;
    padding: 8px;
  }
  .summary-button {
    min-width: 90px;
    font-size: 10px;
  }
  .lesson-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .word-panel,
  .exercise-panel,
  .phoneme-panel {
    width: 100%;
  }
  .word-panel {
    padding: 13px;
  }
  .word-panel > .muted,
  .word-legend {
    display: none;
  }
  .word-list {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 12px;
    gap: 6px;
  }
  .word-choice {
    width: auto;
    min-width: max-content;
    padding: 9px 12px;
    font-size: 12px;
    border: 1px solid #e7eadf;
  }
  .word-order {
    display: none;
  }
  .word-mark {
    margin-left: 0;
  }
  .exercise-panel {
    min-height: 0;
    padding: 20px;
  }
  .current-word {
    font-size: 52px;
    margin: 22px 0 14px;
  }
  .answer-section {
    margin-top: 24px;
  }
  .answer-heading h3 {
    font-size: 11px;
  }
  .listen-tip {
    display: none;
  }
  .exercise-actions {
    margin-top: 8px;
  }
  .phoneme-panel {
    padding: 18px;
  }
  .phoneme-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .sound-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .phoneme-key {
    font-size: 19px;
    min-height: 37px;
  }
  .sound-tabs {
    max-width: none;
  }
  .lesson-footnote {
    font-size: 9px;
    line-height: 1.8;
    padding-right: 70px;
  }
  .pet {
    width: 83px;
    right: 0;
    bottom: 8px;
  }
  .pet-drag {
    width: 80px;
    height: 108px;
  }
  .pet-speech {
    font-size: 9px;
    padding: 6px;
    max-width: 83px;
  }
  .empty-answer {
    font-size: 9px;
  }
  .answer-chip {
    min-width: 37px;
    font-size: 22px;
  }
  .phoneme-panel .panel-heading > span {
    font-size: 9px;
  }
  dialog {
    padding: 29px 23px;
  }
  dialog h2 {
    font-size: 23px;
  }
  .hero-actions .text-button {
    font-size: 11px;
  }
}
@media (min-width: 951px) {
  .sound-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
  }
  .phoneme-key {
    font-size: 18px;
    min-height: 35px;
    padding: 4px 0;
  }
  .sound-group {
    margin-bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.avatar-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #87967c;
  margin-left: 8px;
}
.avatar-picker select {
  font:
    12px "Microsoft YaHei",
    sans-serif;
  color: #4f6e44;
  background: #fffef9;
  border: 1px solid #dce3d3;
  border-radius: 9px;
  padding: 9px 27px 9px 11px;
  max-width: 160px;
}
.avatar-picker select:focus-visible {
  outline: 3px solid #db9c67;
  outline-offset: 3px;
}
@media (max-width: 950px) {
  .topbar nav {
    gap: 18px;
  }
  .avatar-picker {
    gap: 6px;
    margin-left: 0;
  }
  .avatar-picker > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 12px;
    gap: 10px 12px;
  }
  .topbar nav {
    gap: 15px;
  }
  .avatar-picker {
    width: 100%;
    justify-content: flex-end;
    margin-top: -5px;
  }
  .avatar-picker > span {
    display: inline;
  }
  .avatar-picker select {
    padding: 6px 20px 6px 10px;
    font-size: 11px;
  }
}
