:root {
  --sky: #edf8ff;
  --ink: #344d68;
  --muted: #7c92a7;
  --orange: #ff9950;
  --orange-shadow: #e57b34;
  --blue: #6caad7;
  --purple: #9681cb;
  --font:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--sky);
  color: var(--ink);
  font: 15px/1.7 var(--font);
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: #5b94bd;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  opacity: 0.58;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5e9bd0;
  outline-offset: 5px;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: 0.025em;
}
[hidden] {
  display: none !important;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sky-decoration {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.cloud {
  position: absolute;
  width: 180px;
  height: 54px;
  border-radius: 80px;
  background: #ffffffb3;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: inherit;
}
.cloud::before {
  height: 90px;
  width: 90px;
  left: 23px;
}
.cloud::after {
  height: 65px;
  width: 65px;
  right: 21px;
}
.cloud-one {
  top: 210px;
  left: -65px;
  transform: rotate(-8deg);
}
.cloud-two {
  top: 520px;
  right: -80px;
  transform: scale(1.5);
}
.sun {
  position: absolute;
  top: 107px;
  right: calc(50% - 570px);
  color: #ffd887;
  font-size: 89px;
  transform: rotate(-12deg);
}
.sky-star {
  position: absolute;
  top: 600px;
  left: calc(50% - 540px);
  color: #b8d6ee;
  font-size: 36px;
}
.app-shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px 137px;
}
.app-header {
  height: 105px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #4d6a83;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0.07em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  color: #fff5dc;
  background: #ffae68;
  border-radius: 16px;
  font-size: 39px;
  line-height: 1;
  box-shadow: 0 4px 0 #ef9a5730;
  transform: rotate(-9deg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.parent-link {
  font-size: 12px;
  color: #7e99af;
  min-height: 44px;
  padding: 8px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 2px solid #fff;
  border-radius: 40px;
  padding: 6px 15px 6px 6px;
  background: #ffffff90;
  font-size: 13px;
  min-height: 48px;
  max-width: 240px;
}
#profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  display: grid;
  place-items: center;
  background: #fff1d5;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 25px;
  flex-shrink: 0;
}
main {
  max-width: 920px;
  margin: auto;
}
.home-greeting {
  margin: 11px 0 23px;
  padding-left: 5px;
}
.home-greeting h1 {
  font-size: 27px;
}
.home-greeting p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}
.playground {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  min-height: 365px;
  border: 4px solid #fff;
  border-radius: 38px;
  background: #fdfbf0;
  box-shadow: 0 9px 0 #d8e9ef70;
  position: relative;
}
.playground-copy {
  width: 48%;
  padding: 30px 0 30px 44px;
  position: relative;
  z-index: 1;
}
.little-label {
  color: #b59b6e;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 5px;
}
.playground h2 {
  color: #526e68;
  font-size: 43px;
  line-height: 1.45;
  font-weight: 850;
}
.playground h2 span {
  color: #efa157;
}
.playground-copy > p {
  color: #8f9e8c;
  margin: 10px 0 22px;
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 19px;
  min-height: 52px;
  padding: 12px 23px;
  font-weight: 750;
  font-size: 15px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 5px 0 var(--orange-shadow);
}
.primary:hover {
  background: #ffa15b;
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--orange-shadow);
}
.primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--orange-shadow);
}
.secondary {
  color: #6d97b6;
  background: #edf6fc;
  box-shadow: 0 4px 0 #d7e7f1;
}
.secondary:hover {
  background: #e2f0fa;
}
.danger {
  background: #e79c82;
  color: white;
  box-shadow: 0 4px 0 #d28870;
}
.play-button {
  width: 264px;
  max-width: 100%;
  font-size: 22px;
  min-height: 68px;
  letter-spacing: 0.08em;
  border-radius: 24px;
}
.play-button svg {
  width: 25px;
  height: 25px;
}
.play-button svg:last-child {
  width: 23px;
  margin-left: 15px;
}
.play-note {
  display: block;
  color: #adad96;
  font-size: 12px;
  text-align: center;
  max-width: 264px;
  margin-top: 13px;
}
.playground-art {
  position: relative;
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.playground-art img {
  width: 112%;
  max-width: 490px;
  height: auto;
  margin: 22px 0 0 -18px;
}
.mascot-bubble {
  position: absolute;
  top: 29px;
  right: 48px;
  font-size: 13px;
  color: #91a37f;
  background: #fff;
  border-radius: 18px 18px 18px 4px;
  padding: 9px 17px;
  transform: rotate(5deg);
  box-shadow: 0 3px 0 #dfe9d355;
  z-index: 1;
}
.floating-flower {
  position: absolute;
  bottom: 34px;
  left: 17px;
  font-size: 35px;
  color: #edbf8d;
  transform: rotate(10deg);
}
.floating-star {
  position: absolute;
  top: 130px;
  right: 16px;
  color: #dfc377;
  font-size: 25px;
}
.discover-button {
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  width: 100%;
  padding: 18px 24px;
  margin: 26px 0 18px;
  border: 3px solid #fff;
  border-radius: 25px;
  background: #e6f3e9;
  box-shadow: 0 5px 0 #c8e0ce66;
  transition: transform 0.15s;
}
.discover-button:hover {
  transform: translateY(-2px);
}
.discover-icon {
  background: #fbfff7;
  width: 53px;
  height: 53px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 31px;
  transform: rotate(-7deg);
}
.discover-button strong {
  display: block;
  font-size: 18px;
  color: #668d6c;
  letter-spacing: 0.04em;
}
.discover-button small {
  display: block;
  font-size: 13px;
  color: #8ca68e;
  margin-top: 2px;
}
.discover-plus {
  margin-left: auto;
  font-size: 32px;
  line-height: 1;
  color: #87b08b;
}
.growth-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 19px;
  padding: 19px 24px;
  text-align: left;
  background: #ffffffa8;
  border-radius: 25px;
  border: 2px solid #fff;
}
.growth-button > svg {
  color: #b2a4d0;
  width: 23px;
}
.level-badge {
  width: 59px;
  height: 62px;
  display: grid;
  place-items: center;
  background: #f1eefa;
  border-radius: 20px;
  font-size: 34px;
  flex-shrink: 0;
}
.growth-copy {
  flex: 1;
  min-width: 0;
}
.growth-title {
  font-size: 16px;
  color: #7b7099;
  font-weight: 650;
  display: block;
}
.growth-title strong {
  color: #9d86c3;
  font-size: 24px;
  margin: 0 2px;
}
.growth-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9b94ae;
  margin-top: 1px;
}
#level-name {
  color: #9683b0;
}
progress {
  display: block;
  appearance: none;
  border: 0;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #ece8f5;
  margin-top: 10px;
}
progress::-webkit-progress-bar {
  background: #ece8f5;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #b3a0d8;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #b3a0d8;
  border-radius: 10px;
}
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  z-index: 10;
  width: min(450px, calc(100% - 36px));
  left: 50%;
  bottom: 23px;
  transform: translateX(-50%);
  border: 3px solid #fff;
  border-radius: 29px;
  padding: 8px 10px;
  background: #ffffffed;
  box-shadow: 0 8px 25px #6e9fc024;
  backdrop-filter: blur(16px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 30%;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #9aabc0;
  min-height: 61px;
}
.nav-emoji {
  font-size: 27px;
  line-height: 1.35;
  filter: saturate(0.65);
  transition: transform 0.2s;
}
.nav-item.active {
  color: #d58c4f;
  background: #fff3e3;
}
.nav-item.active .nav-emoji {
  filter: none;
  transform: translateY(-2px) rotate(-5deg);
}
.nav-item:hover .nav-emoji {
  transform: translateY(-3px);
}
.page-heading {
  text-align: center;
  padding: 13px 0 27px;
}
.page-sticker {
  display: block;
  font-size: 44px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.page-heading h1 {
  font-size: 30px;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.book-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.text-button {
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  color: #8d9fba;
  font-size: 13px;
  padding: 8px;
}
.text-button:hover {
  color: #6491b2;
}
.text-button svg {
  width: 18px;
  height: 18px;
}
.edit-button[aria-pressed="true"] {
  color: #a77c5c;
  background: #fff1dc;
  border-radius: 14px;
  padding-left: 14px;
  padding-right: 14px;
}
.library-toolbar {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}
.filter-tabs {
  display: flex;
  gap: 8px;
}
.filter {
  border: 2px solid #fff;
  padding: 8px 22px;
  min-height: 46px;
  background: #ffffff70;
  color: #8da4b7;
  font-size: 14px;
  border-radius: 18px;
}
.filter.active {
  background: #d6eaf9;
  color: #588db3;
  border-color: #e9f6ff;
  box-shadow: 0 3px 0 #c1ddec;
  font-weight: 700;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffffb3;
  border: 2px solid #fff;
  border-radius: 17px;
  color: #9eb5c7;
  padding: 0 13px;
  min-height: 46px;
  max-width: 210px;
}
.search svg {
  width: 18px;
}
.search input {
  background: none;
  border: 0;
  min-width: 0;
  width: 100%;
  padding: 8px 0;
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder {
  color: #a3b4c5;
}
.library-count {
  color: #8fa5b9;
  font-size: 13px;
  margin: 22px 0 15px;
  min-height: 22px;
}
.word-library {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
}
.library-card {
  background: #fff6df;
  border: 3px solid white;
  box-shadow: 0 5px 0 #e7cfaa55;
  padding: 11px 9px 15px;
  border-radius: 24px;
  text-align: center;
  min-width: 0;
}
.library-card:nth-child(4n + 2) {
  background: #edf3ff;
  box-shadow: 0 5px 0 #c9d8ee66;
}
.library-card:nth-child(4n + 3) {
  background: #fceef0;
  box-shadow: 0 5px 0 #edcfd766;
}
.library-card:nth-child(4n) {
  background: #eaf4e5;
  box-shadow: 0 5px 0 #cbdcbd66;
}
.word-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-radius: 15px;
  padding: 0;
}
.word-face:hover .library-hanzi {
  transform: scale(1.08) rotate(-4deg);
}
.library-hanzi {
  font-family: "Kaiti SC", KaiTi, "STKaiti", serif;
  font-size: 62px;
  line-height: 1.55;
  color: #697b85;
  transition: transform 0.15s;
}
.library-pinyin {
  font-size: 14px;
  color: #94a1aa;
  min-height: 24px;
  overflow-wrap: anywhere;
}
.listen-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: #92a2ad;
  min-height: 32px;
  margin-top: 3px;
}
.listen-cue svg {
  width: 15px;
  height: 15px;
}
.status-pill {
  display: inline-block;
  padding: 4px 9px;
  background: #ffffff9c;
  border-radius: 20px;
  color: #8ba08a;
  font-size: 11px;
  margin-top: 6px;
  white-space: nowrap;
}
.status-pill.known {
  color: #a69666;
}
.remove-word {
  display: block;
  margin: 12px auto -5px;
  min-height: 44px;
  font-size: 12px;
  color: #b17d6b;
  background: #fff8f2;
  border-radius: 12px;
  width: 100%;
}
.empty-state {
  grid-column: 1/-1;
  padding: 55px 15px 24px;
  text-align: center;
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 10px;
}
.empty-state h3 {
  font-size: 19px;
  color: #74958a;
}
.empty-state p {
  color: #8ea79c;
  font-size: 14px;
  margin-top: 8px;
}
.empty-add {
  grid-column: 1/-1;
  justify-self: center;
  margin-top: 0;
}
.journey-view {
  max-width: 700px;
  margin: auto;
}
.journey-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 24px;
  background: #ffffffb3;
  border: 3px solid #fff;
  padding: 15px 22px;
  margin: 0 auto 28px;
}
.journey-note > span {
  font-size: 34px;
}
.journey-note p {
  color: #829bb1;
  font-size: 15px;
}
.journey-note small {
  display: block;
  color: #a0afc0;
  font-size: 12px;
  margin-top: 2px;
}
.journey-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding: 5px 16px 20px;
}
.journey-path::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50px;
  bottom: 85px;
  border-left: 5px dotted #c7dfed;
}
.journey-stop {
  display: flex;
  align-items: center;
  width: 76%;
  gap: 20px;
  padding: 22px;
  border: 3px solid #fff;
  background: #e8f3df;
  border-radius: 30px;
  box-shadow: 0 5px 0 #cfdfc660;
  position: relative;
}
.journey-stop:nth-child(even) {
  margin-left: auto;
}
.journey-stop:nth-child(2) {
  background: #dff0e5;
}
.journey-stop:nth-child(3) {
  background: #fff3cc;
}
.journey-stop:nth-child(4) {
  background: #e0ecfa;
}
.journey-stop:nth-child(5) {
  background: #eee3f6;
}
.journey-stop:nth-child(6) {
  background: #ffe9d6;
}
.planet-medal {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 78px;
  height: 78px;
  background: #fff9;
  font-size: 43px;
  flex-shrink: 0;
}
.planet-copy h2 {
  font-size: 21px;
  margin: 2px 0 3px;
  color: #7c907f;
}
.planet-copy p {
  color: #9baa9b;
  font-size: 13px;
}
.journey-state {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #9aaf9e;
}
.journey-state svg {
  width: 13px;
  height: 13px;
}
.journey-stop.current {
  border-color: #fff;
  box-shadow:
    0 0 0 3px #9ec4a2,
    0 7px 0 #c5dec760;
}
.journey-stop.current h2 {
  color: #638e68;
}
.journey-stop.current .journey-state {
  color: #78a480;
  font-weight: 700;
}
.current-bunny {
  position: absolute;
  right: -14px;
  bottom: -8px;
  font-size: 34px;
  transform: rotate(12deg);
}
.journey-stop.locked .planet-medal {
  filter: saturate(0.65);
}
.journey-footer {
  text-align: center;
  color: #9bb0c4;
  font-size: 13px;
  margin-top: 20px;
}
.journey-footer span {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}
.dialog {
  border: 4px solid white;
  border-radius: 32px;
  padding: 34px;
  width: min(460px, calc(100% - 30px));
  color: var(--ink);
  background: #fffdf5;
  box-shadow: 0 15px 80px #3454792b;
  max-height: 90dvh;
  overflow-y: auto;
}
.dialog::backdrop {
  background: #47658250;
  backdrop-filter: blur(6px);
}
.dialog h2 {
  text-align: center;
  font-size: 25px;
  line-height: 1.5;
  margin: 4px 0 10px;
}
.dialog > p {
  text-align: center;
  color: #8da1b1;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 18px;
}
.dialog-mascot {
  text-align: center;
  font-size: 45px;
  margin: 2px 0 8px;
}
.close-button {
  position: absolute;
  right: 11px;
  top: 11px;
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  background: #eff2f4;
  color: #9aabba;
  border-radius: 16px;
  z-index: 2;
}
.close-button svg {
  width: 19px;
  height: 19px;
}
.dialog form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #849aac;
}
.dialog input,
.dialog textarea {
  border: 2px solid #e7edf0;
  border-radius: 15px;
  background: #fff;
  padding: 12px 14px;
  width: 100%;
  color: var(--ink);
  font-size: 16px;
}
.dialog input::placeholder,
.dialog textarea::placeholder {
  color: #b2bec5;
  font-size: 12px;
}
.dialog textarea {
  font-size: 28px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  resize: vertical;
}
.auth-tabs {
  display: flex;
  padding: 5px;
  gap: 8px;
  border-radius: 19px;
  background: #eef2f3;
  margin: 20px 0;
}
.auth-tabs button {
  flex: 1;
  border-radius: 14px;
  padding: 9px;
  min-height: 44px;
  font-size: 14px;
  color: #9aabba;
}
.auth-tabs button.active {
  background: #fff;
  color: #c99564;
  box-shadow: 0 3px 0 #e6e7e5;
}
.full {
  width: 100%;
}
.form-error {
  color: #c78069;
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
.dialog-footnote {
  color: #acb7bc !important;
  font-size: 12px !important;
  margin: 20px 0 0 !important;
}
.add-note {
  color: #a5b0b8;
  font-size: 12px;
  margin-top: -5px;
}
.suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #a0b0bd;
  font-size: 12px;
}
.suggestions button {
  min-height: 44px;
  border: 2px solid #e8eedd;
  background: #f1f6e9;
  padding: 7px 12px;
  border-radius: 15px;
  color: #9aa883;
}
.review-dialog {
  width: min(500px, calc(100% - 24px));
  text-align: center;
  background: #f7fcff;
  padding: 28px 31px;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 38px;
  min-height: 32px;
  color: #8da7b9;
  font-size: 13px;
}
.review-dialog progress {
  margin: 15px 0 22px;
  background: #e4eef7;
  height: 9px;
}
.review-dialog progress::-webkit-progress-bar {
  background: #e4eef7;
}
.review-dialog progress::-webkit-progress-value {
  background: #a4c6de;
}
.review-instruction {
  color: #849db1;
  font-size: 16px;
  margin: 6px 0 13px;
}
.review-character {
  font-family: "Kaiti SC", KaiTi, "STKaiti", serif;
  font-size: 146px;
  color: #526e84;
  width: 220px;
  height: 220px;
  margin: 0 auto 11px;
  line-height: 220px;
  border-radius: 28px;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 #d9e6ee;
  background:
    linear-gradient(
      transparent 49.6%,
      #e2e7df 49.6%,
      #e2e7df 50.4%,
      transparent 50.4%
    ),
    linear-gradient(
      90deg,
      transparent 49.6%,
      #e2e7df 49.6%,
      #e2e7df 50.4%,
      transparent 50.4%
    ),
    #fffdf0;
  transition: transform 0.2s;
}
.answer-correct .review-character {
  background-color: #ecf6e7;
  color: #71976d;
  box-shadow: 0 6px 0 #c5deb9;
  transform: rotate(-3deg);
}
.answer-again .review-character {
  background-color: #fff2df;
  color: #c4a074;
}
.review-pinyin {
  color: #a2b692;
  font-size: 24px;
  height: 35px;
}
.review-feedback {
  color: #86a67e;
  font-size: 14px;
  min-height: 42px;
  margin: 5px 0 15px;
}
.review-feedback.error {
  color: #c2936b;
}
.microphone-button {
  min-height: 62px;
  width: 100%;
  font-size: 18px;
  border-radius: 22px;
}
.microphone-button.listening {
  background: #eb947b;
  box-shadow: 0 5px 0 #d38169;
  animation: listening 1.3s infinite;
}
.hint-button {
  min-height: 48px;
  margin-top: 10px;
  color: #91a7b9;
}
.parent-area {
  border-top: 2px dashed #e3ebf1;
  padding-top: 8px;
  margin-top: 7px;
}
.parent-area > button {
  font-size: 12px;
  color: #a6b7c3;
}
.parent-area p {
  color: #9aabb8;
  font-size: 12px;
  margin-top: 8px;
}
.parent-buttons {
  display: flex;
  align-items: stretch;
  gap: 13px;
  margin: 17px 0 5px;
}
.parent-buttons > button {
  flex: 1;
  font-size: 13px;
  padding: 12px;
}
.speech-note {
  color: #a4b4bf;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 13px;
}
.review-success-icon {
  font-size: 66px;
  margin: 20px 0 8px;
}
.review-summary {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin: 25px 0;
  background: #fff6df;
  padding: 19px 10px;
  border-radius: 23px;
}
.review-summary strong {
  display: block;
  color: #d1a65e;
  font-size: 32px;
}
.review-summary small {
  color: #b6a480;
  font-size: 12px;
}
#review-complete > .button {
  margin-top: 20px;
}
.muted {
  color: #9dabb5;
  font-size: 13px;
}
.help-dialog {
  width: min(570px, calc(100% - 30px));
}
.guide-item {
  display: flex;
  gap: 14px;
  margin: 25px 0;
}
.guide-item > span {
  font-size: 13px;
  color: #95ab8b;
  background: #eef5e8;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  flex-shrink: 0;
}
.guide-item h3 {
  font-size: 15px;
  margin-bottom: 5px;
}
.guide-item p,
.privacy-note p {
  color: #93a3ae;
  font-size: 13px;
  line-height: 1.9;
}
.privacy-note {
  padding: 19px;
  border-radius: 20px;
  background: #eef4f6;
}
.privacy-note strong {
  font-size: 14px;
}
.privacy-note p {
  margin: 9px 0;
}
.privacy-note a {
  font-size: 12px;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 125px;
  left: 50%;
  transform: translateX(-50%);
  background: #fffdf1;
  border: 3px solid #fff;
  box-shadow: 0 6px 25px #819eb32e;
  border-radius: 19px;
  padding: 13px 22px;
  color: #8c9f79;
  font-size: 14px;
  max-width: calc(100% - 30px);
  width: max-content;
}
.toast.error {
  background: #fff2e7;
  color: #bd9071;
}
@keyframes listening {
  50% {
    box-shadow:
      0 5px 0 #d38169,
      0 0 0 8px #eb947b20;
  }
}
@media (min-width: 1500px) {
  .app-shell {
    padding-top: 12px;
  }
  .playground {
    min-height: 390px;
  }
  .home-greeting {
    margin-bottom: 28px;
  }
}
@media (max-width: 1000px) {
  .app-shell {
    padding-left: 30px;
    padding-right: 30px;
  }
  .app-header {
    height: 95px;
  }
  .playground-copy {
    padding-left: 30px;
    width: 49%;
  }
  .playground h2 {
    font-size: 38px;
  }
  .playground-art img {
    width: 120%;
    margin-left: -20px;
  }
  .mascot-bubble {
    right: 30px;
    font-size: 12px;
  }
  .playground-copy > p {
    font-size: 13px;
  }
  .word-library {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .app-shell {
    padding: 0 20px calc(122px + env(safe-area-inset-bottom));
  }
  .app-header {
    height: 76px;
    gap: 9px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
    letter-spacing: 0.03em;
  }
  .brand-mark {
    width: 34px;
    height: 36px;
    border-radius: 12px;
    font-size: 30px;
  }
  .header-actions {
    gap: 4px;
  }
  .parent-link {
    font-size: 11px;
    padding: 5px;
  }
  .profile {
    min-height: 44px;
    padding: 5px;
    border: 0;
    background: transparent;
    max-width: 140px;
  }
  .avatar {
    width: 34px;
    height: 34px;
    font-size: 25px;
    background: #fff;
    border: 2px solid #fff;
  }
  #profile-name {
    font-size: 11px;
    max-width: 62px;
  }
  .home-greeting {
    text-align: center;
    padding: 0;
    margin: 6px 0 12px;
  }
  .home-greeting h1 {
    font-size: 22px;
  }
  .home-greeting p {
    font-size: 12px;
    margin-top: 2px;
  }
  .playground {
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    border-width: 3px;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 18px;
  }
  .playground-art {
    width: 100%;
    height: 180px;
    flex: none;
  }
  .playground-art img {
    width: 305px;
    max-width: 100%;
    height: 185px;
    object-fit: contain;
    margin: 0;
  }
  .mascot-bubble {
    font-size: 11px;
    right: 22px;
    top: 13px;
    padding: 6px 12px;
  }
  .floating-flower {
    left: 24px;
    bottom: 13px;
    font-size: 25px;
  }
  .floating-star {
    font-size: 20px;
    top: 117px;
    right: 23px;
  }
  .playground-copy {
    width: 100%;
    text-align: center;
    padding: 0 23px;
  }
  .little-label {
    display: none;
  }
  .playground h2 {
    font-size: 28px;
    line-height: 1.5;
  }
  .playground h2 br {
    display: none;
  }
  .playground-copy > p {
    font-size: 12px;
    margin: 5px 0 16px;
  }
  .play-button {
    width: 100%;
    max-width: 320px;
    min-height: 60px;
    font-size: 22px;
    border-radius: 21px;
  }
  .play-button svg:last-child {
    margin-left: 15px;
  }
  .play-note {
    max-width: 100%;
    font-size: 11px;
    margin-top: 12px;
  }
  .discover-button {
    gap: 12px;
    border-radius: 23px;
    padding: 12px 16px;
    margin: 20px 0 15px;
  }
  .discover-icon {
    width: 45px;
    height: 46px;
    font-size: 27px;
    border-radius: 15px;
  }
  .discover-button strong {
    font-size: 16px;
  }
  .discover-button small {
    font-size: 12px;
  }
  .discover-plus {
    font-size: 28px;
  }
  .growth-button {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 23px;
  }
  .level-badge {
    width: 45px;
    height: 49px;
    border-radius: 16px;
    font-size: 28px;
  }
  .growth-title {
    font-size: 13px;
  }
  .growth-title strong {
    font-size: 20px;
  }
  .growth-detail {
    display: block;
    font-size: 11px;
  }
  #level-name {
    display: none;
  }
  #level-encourage {
    font-size: 10px;
  }
  .growth-button > svg {
    width: 18px;
  }
  progress {
    height: 6px;
    margin-top: 7px;
  }
  .bottom-nav {
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px 8px;
    border-radius: 26px;
    width: calc(100% - 36px);
    max-width: 420px;
  }
  .nav-item {
    min-height: 58px;
    font-size: 11px;
    border-radius: 18px;
    padding: 4px 5px;
  }
  .nav-emoji {
    font-size: 26px;
  }
  .cloud-one {
    top: 220px;
    left: -100px;
  }
  .cloud-two {
    top: 650px;
    right: -110px;
    transform: none;
  }
  .sun {
    top: 105px;
    right: -22px;
    font-size: 59px;
    opacity: 0.6;
  }
  .sky-star {
    display: none;
  }
  .page-heading {
    padding: 10px 0 22px;
  }
  .page-sticker {
    font-size: 39px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .book-actions {
    margin-bottom: 20px;
  }
  .book-actions .button {
    font-size: 14px;
    min-height: 48px;
    padding: 10px 17px;
    border-radius: 17px;
  }
  .edit-button {
    font-size: 12px;
  }
  .library-toolbar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .filter-tabs {
    gap: 7px;
  }
  .filter {
    padding: 8px 17px;
    font-size: 13px;
    min-height: 44px;
    border-radius: 16px;
  }
  .search {
    max-width: none;
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
  }
  .search input {
    font-size: 16px;
  }
  .library-count {
    font-size: 12px;
    margin: 18px 0 13px;
  }
  .word-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .library-card {
    border-radius: 21px;
    padding: 8px 5px 12px;
    border-width: 2px;
  }
  .library-hanzi {
    font-size: 48px;
  }
  .library-pinyin {
    font-size: 12px;
    min-height: 21px;
  }
  .listen-cue {
    font-size: 10px;
    gap: 4px;
  }
  .listen-cue svg {
    width: 13px;
  }
  .status-pill {
    font-size: 10px;
    padding: 3px 6px;
  }
  .remove-word {
    font-size: 11px;
  }
  .empty-state {
    padding: 38px 8px 20px;
  }
  .empty-state h3 {
    font-size: 17px;
  }
  .empty-state p {
    font-size: 13px;
  }
  .journey-note {
    gap: 10px;
    padding: 13px 16px;
    border-radius: 22px;
    margin-bottom: 23px;
  }
  .journey-note > span {
    font-size: 29px;
  }
  .journey-note p {
    font-size: 13px;
  }
  .journey-note small {
    font-size: 11px;
  }
  .journey-path {
    gap: 25px;
    padding: 5px 8px 12px;
  }
  .journey-stop {
    width: 88%;
    gap: 13px;
    padding: 17px 15px;
    border-radius: 26px;
  }
  .planet-medal {
    width: 57px;
    height: 60px;
    font-size: 34px;
  }
  .planet-copy h2 {
    font-size: 17px;
  }
  .planet-copy p {
    font-size: 12px;
  }
  .journey-state {
    font-size: 11px;
  }
  .current-bunny {
    font-size: 28px;
  }
  .dialog {
    padding: 28px 22px;
    border-radius: 29px;
    max-height: 91dvh;
  }
  .dialog h2 {
    font-size: 23px;
  }
  .dialog input {
    font-size: 16px;
  }
  .dialog-mascot {
    font-size: 40px;
  }
  .review-dialog {
    padding: 23px 20px;
  }
  .review-instruction {
    margin-top: 3px;
    font-size: 15px;
  }
  .review-character {
    width: 182px;
    height: 182px;
    font-size: 122px;
    line-height: 182px;
    border-radius: 25px;
  }
  .review-pinyin {
    height: 32px;
    font-size: 22px;
  }
  .review-feedback {
    font-size: 13px;
    min-height: 35px;
    margin-bottom: 12px;
  }
  .microphone-button {
    min-height: 57px;
    font-size: 17px;
  }
  .review-top {
    font-size: 12px;
    padding-right: 35px;
  }
  .speech-note {
    font-size: 11px;
    margin-top: 8px;
  }
  .parent-area {
    padding-top: 4px;
  }
  .parent-area > button {
    font-size: 11px;
  }
  .parent-area p {
    font-size: 11px;
  }
  .toast {
    font-size: 13px;
    bottom: calc(109px + env(safe-area-inset-bottom));
    padding: 12px 16px;
  }
}
@media (max-width: 370px) {
  .app-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    font-size: 18px;
    gap: 6px;
  }
  .brand-mark {
    width: 31px;
    height: 34px;
    font-size: 28px;
  }
  .parent-link {
    font-size: 10px;
  }
  .profile {
    gap: 5px;
    max-width: 104px;
  }
  #profile-name {
    max-width: 45px;
    font-size: 10px;
  }
  .home-greeting h1 {
    font-size: 21px;
  }
  .playground-art {
    height: 170px;
  }
  .playground-art img {
    height: 177px;
    width: 280px;
  }
  .playground h2 {
    font-size: 26px;
  }
  .playground-copy {
    padding: 0 18px;
  }
  .growth-button {
    padding: 13px;
    gap: 10px;
  }
  .growth-detail {
    line-height: 1.6;
  }
  #level-encourage {
    font-size: 10px;
  }
  .word-library {
    gap: 9px;
  }
  .library-hanzi {
    font-size: 44px;
  }
  .status-pill {
    font-size: 9px;
  }
}
@media (max-height: 740px) and (max-width: 700px) {
  .review-dialog {
    padding-top: 18px;
    padding-bottom: 17px;
  }
  .review-dialog progress {
    margin: 10px 0 12px;
  }
  .review-character {
    width: 150px;
    height: 150px;
    font-size: 100px;
    line-height: 150px;
  }
  .review-instruction {
    font-size: 14px;
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
