:root {
  --green: #28c76e;
  --deep: #246d4a;
  --mint: #17ab87;
  --yellow: #fac515;
  --text: #394e47;
  --muted: #8d9c96;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e8f3ee;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial,
    sans-serif;
  color: var(--text);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
  color: inherit;
  transition:
    transform 0.15s,
    background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
button:active {
  transform: scale(0.97);
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e7b516;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
#app {
  position: relative;
  max-width: 448px;
  margin: auto;
  min-height: 100dvh;
  background: #eef3f2;
  box-shadow: 0 0 60px #235e4920;
  overflow: hidden;
}
.home {
  background:
    radial-gradient(ellipse at 80% 0, #58ffa4 0, transparent 32%),
    linear-gradient(155deg, #90ffbd 0, #eaf1f1 35%, #eaf1f1 100%);
  min-height: 100dvh;
  padding-bottom: 86px;
}
.hero {
  height: 142px;
  position: relative;
  padding: 24px 20px;
}
.identity {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  height: 44px;
  width: 44px;
  background: #edfff7;
  border: 2px solid #77d8ac;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #328864;
}
.identity strong {
  display: block;
  font-size: 17px;
  color: #296b49;
}
.identity small {
  color: #629a70;
  display: block;
  margin-top: 5px;
}
.identity b {
  color: #bb9030;
}
.ai-art {
  position: absolute;
  width: 164px;
  right: 21px;
  top: 8px;
  mix-blend-mode: multiply;
}
.review {
  position: absolute;
  right: 10px;
  top: 14px;
  border-radius: 13px;
  background: #fffae5;
  padding: 9px 7px;
  font-size: 12px;
  transform: rotate(7deg);
  color: #ad7d18;
}
.review b {
  display: block;
  color: #e46b7e;
}
.wordbook {
  margin-top: 15px;
  background: #e4fff0;
  border-radius: 7px;
  padding: 5px 9px;
  color: #4ba77a;
  font-size: 13px;
}
.summary {
  margin: 0 18px 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffffc9;
}
.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 19px;
  background: #e8fff2;
  font-size: 18px;
  font-weight: 600;
  color: #356d50;
}
.text-link {
  background: none;
  color: #4baf79;
  font-size: 14px;
}
.stats {
  padding: 20px;
}
.totals {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #8c9b94;
}
.totals strong {
  font-size: 28px;
  color: #278c52;
}
.totals b {
  color: #286b43;
  font-size: 21px;
}
.totals small {
  font-size: 12px;
}
.time {
  text-align: right;
}
.track {
  height: 8px;
  background: #e0e7e4;
  border-radius: 8px;
  margin: 17px 0 10px;
  overflow: hidden;
}
.track i {
  display: block;
  width: 16.36%;
  height: 100%;
  background: #2cc777;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat {
  padding: 24px 0;
  text-align: center;
  border-radius: 12px;
  min-height: 90px;
}
.stat b {
  display: block;
  font-size: 19px;
  margin-bottom: 7px;
}
.stat span {
  font-size: 13px;
}
.stat:nth-child(1) {
  background: #e7f8ee;
  color: #367d55;
}
.stat:nth-child(2) {
  background: #fdf0e4;
  color: #c18d5e;
}
.stat:nth-child(3) {
  background: #fce9eb;
  color: #d78597;
}
.stat:nth-child(4) {
  background: #eef3ed;
  color: #929c91;
}
.unit-label {
  padding: 11px 18px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #306e4b;
  font-size: 20px;
  font-weight: 700;
}
.learning-card {
  margin: 0 18px 20px;
  background: linear-gradient(145deg, #f4fff6, white 28%);
  border-radius: 20px;
  padding: 23px 20px 20px;
  position: relative;
  overflow: hidden;
}
.learning-card:before {
  content: "";
  position: absolute;
  right: -5px;
  top: -22px;
  width: 92px;
  height: 72px;
  border-radius: 60%;
  background: radial-gradient(ellipse, #a1f9c76a, transparent 68%);
  transform: rotate(30deg);
}
.section-title {
  color: #39b475;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}
.section-title:after {
  content: "";
  height: 3px;
  width: 33px;
  background: #ebde79;
  position: absolute;
  margin-top: 27px;
  margin-left: 42px;
}
.miniicon {
  width: 27px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
}
.word-overview {
  height: 158px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.gauge-area {
  width: 155px;
  flex-shrink: 0;
  text-align: center;
}
.gauge {
  height: 96px;
  position: relative;
}
.gauge svg {
  width: 145px;
  height: 86px;
}
.gauge div {
  position: absolute;
  top: 31px;
  left: 0;
  right: 0;
  color: #738b7b;
}
.gauge strong {
  display: block;
  color: #35b976;
  font-size: 24px;
}
.gauge strong small {
  font-size: 15px;
  color: #8e9f93;
  font-weight: 400;
}
.green-pill {
  background: #2ac769;
  color: white;
  font-weight: 600;
  border-radius: 30px;
  padding: 9px 17px;
  font-size: 14px;
  box-shadow: 0 3px 6px #1d9c4930;
}
.mascot {
  width: 122px;
  height: 141px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}
.quote {
  font-size: 12px;
  line-height: 1.5;
  color: #4bad75;
  background: #e7f9ed;
  border-radius: 10px;
  padding: 9px 7px;
  position: absolute;
  right: 133px;
  top: 87px;
  width: 80px;
}
.activities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 76px 76px;
  gap: 9px;
  margin-top: 18px;
}
.tile {
  background: #eafaf0;
  border-radius: 11px;
  position: relative;
  padding: 12px 12px;
  text-align: left;
  overflow: hidden;
}
.tile strong {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  display: block;
}
.tile .miniicon {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 34px;
  height: 37px;
}
.tile.feature {
  grid-row: span 2;
}
.tile.feature .miniicon {
  width: 51px;
  height: 63px;
  right: 10px;
  bottom: 8px;
}
.tile.amber {
  background: #fcf2e5;
}
.tile.blue {
  background: #eef5fb;
}
.tile.purple {
  background: #f4edfc;
}
.tiny-arrow {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #cee9d6;
  background: #e2f7ea;
  color: #92c8ab;
  width: 23px;
  height: 23px;
  margin-top: 8px;
  font-size: 19px;
}
.score-badge {
  display: inline-block;
  color: #d68b4e;
  background: #ffdfb8;
  border-radius: 12px;
  padding: 2px 7px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 13px;
}
.study-section {
  padding-top: 20px;
  background: linear-gradient(130deg, #f3f9ff, white);
}
.study-section.green {
  background: linear-gradient(130deg, #effff0, white);
}
.study-section .section-title {
  color: #4386b4;
  margin-bottom: 21px;
}
.study-section.green .section-title {
  color: #43b87b;
}
.study-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.study-tile {
  background: #f0f9fc;
  border-radius: 12px;
  padding: 16px 3px 12px;
  text-align: center;
  min-height: 123px;
}
.green .study-tile {
  background: #e5faec;
}
.study-tile img {
  width: 46px;
  height: 49px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  margin: 0 auto 8px;
}
.study-tile span {
  display: block;
  font-size: 14px;
}
.study-tile small {
  display: block;
  color: #62b88c;
  margin-top: 5px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(448px, 100%);
  height: 66px;
  background: #fffffff5;
  display: flex;
  justify-content: space-around;
  z-index: 10;
  border-top: 1px solid #eef4ef;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  background: transparent;
  color: #a2b2aa;
  font-size: 12px;
  min-width: 65px;
  padding: 6px;
}
.nav-item svg {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0 auto 3px;
}
.nav-item.active {
  color: #2ac977;
}
.page-head {
  height: 53px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  z-index: 2;
}
.back {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 44px;
  height: 44px;
  background: none;
  color: #8aaba0;
  font-size: 32px;
  font-weight: 200;
}
.exercise {
  min-height: 100dvh;
  background: linear-gradient(#13a782, #35c5a0);
  color: #f1fff8;
  position: relative;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.exercise:before {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  background: url("assets/landscape.svg") center bottom/100% auto no-repeat;
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: screen;
}
.exercise > * {
  position: relative;
}
.exercise .page-head {
  color: #50675d;
}
.practice-menu {
  padding: 29px 17px;
  min-height: calc(100dvh - 53px);
}
.menu-label {
  margin: 0 0 18px;
  font-size: 15px;
}
.menu-label small {
  font-size: 11px;
  color: #b9e8d6;
  margin-left: 7px;
}
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 25px;
}
.practice-button {
  background: #fff;
  color: #4a5e54;
  padding: 14px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  border-radius: 3px;
  min-height: 68px;
  box-shadow: 0 2px 4px #17785924;
}
.practice-button .miniicon {
  width: 35px;
  height: 36px;
  flex-shrink: 0;
}
.practice-button span {
  display: block;
}
.practice-button small {
  display: block;
  color: #67b985;
  font-size: 11px;
  margin-top: 6px;
}
.game-top {
  height: 61px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 30px 0 85px;
}
.game-top .back {
  color: #b4ebd6;
  top: 9px;
}
.game-top .progress {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: #8cd29985;
  position: relative;
}
.progress i {
  display: block;
  min-width: 12px;
  height: 100%;
  background: #f2dc72;
  box-shadow: 0 0 9px #eddd74;
}
.progress i:after {
  content: "";
  float: right;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffdf6e;
  margin-top: -3px;
}
.counter {
  white-space: nowrap;
  font-size: 13px;
}
.hint-label {
  font-size: 11px;
  color: #b4e7d6;
  background: #8dd5c133;
  border-radius: 5px;
  width: max-content;
  padding: 3px 7px;
  margin: 0 15px;
}
.game-question {
  flex: 1;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px 16px;
  gap: 24px;
}
.game-question h1 {
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  color: #fff;
}
.game-question h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0;
  color: #d4eee3;
}
.sound-button {
  border-radius: 50%;
  background: #52c3a548;
  color: white;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}
.sound-button svg {
  width: 53px;
  height: 53px;
}
.unknown {
  width: 100%;
  background: #a6e9d23b;
  color: #e5dc71;
  height: 54px;
  font-size: 19px;
}
.answer-options {
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}
.answer {
  background: transparent;
  color: #e9fff7;
  min-height: 62px;
  border-bottom: 1px solid #b4ecda50;
  text-align: left;
  padding: 14px 22px;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
}
.answer:before {
  content: "·";
  margin-right: 16px;
  opacity: 0.5;
}
.answer span {
  flex: 1;
}
.answer.correct {
  background: #36d56d;
}
.answer.wrong {
  background: #e1757470;
}
.answer.selected:after {
  content: "✓";
}
.game-action {
  background: #ffca12;
  border-radius: 24px;
  color: white;
  padding: 13px 25px;
  min-width: 230px;
  font-weight: 600;
  margin: 18px auto 8px;
  display: block;
}
.subtle {
  background: transparent;
  color: #d3eee3;
  padding: 12px;
  font-size: 12px;
}
.typing-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #83d3ba;
  text-align: center;
  color: #ddf99f;
  outline: none;
  max-width: 85%;
  font-size: 27px;
  padding: 8px 3px;
}
.chunks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 28px 10px;
}
.chunk {
  border: 1px solid #8edbc1;
  background: transparent;
  color: white;
  padding: 10px 13px;
  border-radius: 5px;
  min-height: 44px;
}
.chunk.chosen {
  background: #ffcc19;
  color: white;
}
.hint-button {
  margin: 15px auto;
  background: #e7fff2;
  color: #53b291;
  padding: 11px 38px;
  min-width: 220px;
  border-radius: 3px;
}
.feedback {
  min-height: 26px;
  text-align: center;
  color: #e5f59c;
  font-size: 15px;
}
.keyboard {
  background: #d6dcdb;
  padding: 8px 3px;
  display: grid;
  gap: 5px;
  margin-top: 20px;
}
.key-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.key {
  background: #fff;
  color: #626b67;
  border-radius: 4px;
  box-shadow: 0 1px 1px #a1aaa5;
  min-width: 0;
  flex: 1;
  height: 39px;
  font-size: 17px;
  padding: 0;
}
.key.wide {
  flex: 2;
  background: #edf2f0;
  font-size: 13px;
}
.key.submit {
  background: #64cab0;
  color: white;
  flex: 2;
  font-size: 14px;
}
.match-title {
  text-align: center;
  height: 60px;
  padding-top: 23px;
}
.match-info {
  text-align: center;
  margin: 16px 0 24px;
  color: #dbefa7;
}
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 37px;
  padding: 0 23px;
}
.match-cell {
  background: #fafafa;
  min-height: 49px;
  box-shadow: 0 2px 6px #0878596b;
  border: 1px solid #ccdcd6;
  color: #505650;
  border-radius: 3px;
  padding: 9px 3px;
  font-size: 15px;
}
.match-cell.selected {
  background: #ffcf00;
  color: white;
  border-color: #e7aa16;
  box-shadow: inset 0 0 8px #d29f17;
}
.match-cell.matched {
  visibility: hidden;
}
.match-cell.error {
  background: #f4a6a5;
  animation: shake 0.25s;
}
.white-page {
  min-height: 100dvh;
  background: #f7f8f7;
  padding-bottom: 74px;
}
.word-row {
  width: 100%;
  display: block;
  background: transparent;
  text-align: center;
  padding: 22px 20px;
  border-bottom: 1px solid #fff;
  position: relative;
  min-height: 90px;
}
.word-row strong {
  display: block;
  font-size: 22px;
  font-weight: 400;
  color: #3c463f;
}
.word-row small {
  display: block;
  color: #717f76;
  margin-top: 7px;
  font-size: 12px;
}
.word-row.open {
  background: white;
  padding: 27px 20px 25px;
  min-height: 210px;
}
.word-row.open strong {
  font-size: 29px;
}
.star {
  position: absolute;
  right: 22px;
  top: 23px;
  color: #39ca57;
  font-size: 22px;
}
.voice-controls {
  display: flex;
  justify-content: center;
  gap: 32px;
  align-items: center;
  margin-top: 22px;
}
.voice-control {
  background: transparent;
  color: #7bb49c;
  font-size: 11px;
  padding: 0;
}
.voice-control svg {
  width: 35px;
  height: 35px;
  padding: 7px;
  border: 1px solid #a9d7c4;
  border-radius: 50%;
  display: block;
  margin: 0 auto 7px;
}
.voice-control.mic svg {
  background: #38c497;
  color: white;
  width: 62px;
  height: 62px;
  padding: 14px;
  border: 4px double #e3fff1;
}
.voice-control.recording svg {
  background: #e9787e;
  animation: pulse 1s infinite;
}
.record-status {
  font-size: 12px;
  color: #4cb47d;
  margin-top: 12px;
}
.sticky-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(448px, 100%);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 17px;
  z-index: 6;
  min-height: 58px;
  color: #97a69c;
  font-size: 13px;
}
.yellow-button {
  background: var(--yellow);
  color: white;
  min-height: 41px;
  padding: 10px 28px;
  border-radius: 3px;
}
.phrase-row {
  background: white;
  text-align: left;
  padding: 25px 20px;
  min-height: 100px;
}
.phrase-row strong {
  font-size: 16px;
}
.phrase-row.open {
  min-height: 200px;
}
.assembly {
  margin: 18px 15px 0;
  flex: 1;
  background: #effff9e8;
  color: #5d756b;
  min-height: 500px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}
.assembly .sentence-slots {
  margin-top: 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 42px;
}
.slot {
  background: #fff;
  border: 1px solid #dbe9e2;
  padding: 7px 12px;
  min-width: 46px;
  min-height: 35px;
}
.word-bank {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.bank-word {
  background: white;
  padding: 10px 12px;
  box-shadow: 0 1px 3px #aec7ba50;
}
.flashcard {
  perspective: 1000px;
  width: 85%;
  height: 300px;
  cursor: pointer;
  background: #f3fff9;
  border-radius: 20px;
  color: #268c66;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px #06735030;
  transition: transform 0.3s;
}
.flashcard strong {
  font-size: 38px;
  font-weight: 500;
}
.flashcard small {
  margin-top: 30px;
  color: #8bb6a2;
}
.flash-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px;
}
.flash-actions button {
  background: #f2fff7;
  border-radius: 20px;
  padding: 13px 27px;
  color: #49a579;
}
.result {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 25px;
}
.treasure {
  font-size: 86px;
  line-height: 1.4;
  filter: drop-shadow(0 5px 8px #f8df64);
  position: relative;
  color: #ffc91a;
}
.result h1 {
  font-size: 26px;
  color: #ffea87;
  margin: 20px 0 8px;
}
.result .ribbon {
  background: #ec687a;
  padding: 10px 25px;
  color: #fff;
  transform: rotate(-3deg);
  font-size: 23px;
  font-weight: 700;
}
.result p {
  color: #d9f0c6;
  font-size: 13px;
  line-height: 1.7;
}
.result-stats {
  display: flex;
  gap: 35px;
  background: #90dbc431;
  border-radius: 14px;
  padding: 20px 30px;
  margin: 24px 0 35px;
}
.result-stats b {
  display: block;
  font-size: 27px;
  color: #f9e788;
  margin-bottom: 5px;
}
.result-stats small {
  font-size: 12px;
}
.modal-layer {
  position: fixed;
  inset: 0;
  background: #0009;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  width: 360px;
  max-width: 100%;
  background: #fff;
  border-radius: 20px;
  color: #66796c;
  overflow: visible;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 70px #0003;
}
.modal-banner {
  height: 70px;
  background: linear-gradient(165deg, #8de1be, #30b992);
  border-radius: 20px 20px 0 0;
  position: relative;
}
.modal-banner img {
  height: 73px;
  width: 64px;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  background: #a5e3ca;
  border: 3px solid #d4fff0;
  border-radius: 50%;
  mix-blend-mode: normal;
}
.modal-body {
  padding: 25px 19px;
}
.modal h3 {
  font-size: 17px;
  font-weight: 500;
  color: #45564b;
  margin: 0 0 13px;
}
.modal p {
  font-size: 12px;
  line-height: 1.9;
}
.modal-actions {
  display: flex;
  border-top: 1px solid #f0f3ef;
}
.modal-actions button {
  flex: 1;
  background: white;
  min-height: 54px;
  color: #71b69c;
  border-radius: 0 0 20px 20px;
}
.modal-actions button:first-child {
  color: #a1a9a4;
}
.select-list {
  padding: 0 20px 20px;
}
.select-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  margin: 10px 0;
  border: 1px solid #e1eae4;
  background: #fafefa;
}
.settings {
  padding: 22px 18px;
}
.settings h2 {
  font-size: 23px;
  color: #397451;
}
.settings-card {
  background: white;
  padding: 18px;
  border-radius: 16px;
  margin: 18px 0;
}
.settings-card p {
  line-height: 1.8;
  font-size: 13px;
  color: #819289;
}
.settings-card label {
  display: block;
  margin: 10px 0 6px;
}
.settings-card select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e9df;
  border-radius: 8px;
  background: #f4fcf7;
}
.full-button {
  width: 100%;
  padding: 15px;
  background: #e6faef;
  color: #389e6c;
  border-radius: 8px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.day {
  padding: 10px 0;
  text-align: center;
  background: #f1f7f3;
  border-radius: 8px;
  color: #a3b2a9;
}
.day.done {
  background: #37ca83;
  color: white;
}
.lesson {
  padding: 24px 22px;
  line-height: 1.9;
}
.lesson h2 {
  color: #359b70;
}
.lesson p {
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin: 15px 0;
}
.lesson button {
  float: right;
  background: #e6f8ee;
  color: #46a278;
  padding: 8px;
  border-radius: 50%;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translate(-50%, 15px);
  background: #274c42ef;
  color: #fff;
  padding: 12px 19px;
  border-radius: 10px;
  z-index: 70;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  max-width: 85%;
  font-size: 13px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px #e9787e25;
  }
}
@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }
  #app {
    min-height: calc(100dvh - 48px);
    border-radius: 24px;
  }
  .home,
  .exercise,
  .white-page {
    min-height: calc(100dvh - 48px);
  }
  .bottom-nav,
  .sticky-actions {
    bottom: 24px;
    border-radius: 0 0 24px 24px;
  }
  .game-question {
    min-height: 340px;
  }
  .exercise {
    min-height: 920px;
  }
  .practice-menu {
    min-height: 867px;
  }
}
@media (max-width: 390px) {
  .quote {
    display: none;
  }
  .mascot {
    width: 115px;
  }
  .gauge-area {
    width: 145px;
  }
  .tile {
    padding: 10px 9px;
  }
  .tile strong {
    font-size: 13px;
  }
  .learning-card {
    padding-left: 17px;
    padding-right: 17px;
  }
  .stat-grid {
    gap: 6px;
  }
  .match-grid {
    gap: 13px 23px;
  }
  .stats {
    padding: 18px;
  }
  .game-question {
    min-height: 290px;
  }
  .practice-button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.treasure-icon {
  width: 130px;
  height: 140px;
  stroke: #ffdc44;
  stroke-width: 1.7;
  fill: #ffcb1533;
  filter: drop-shadow(0 0 25px #ffdb25);
}
.wordbook .miniicon {
  width: 16px;
  height: 17px;
}
.study-tile > .miniicon {
  width: 43px;
  height: 48px;
  display: block;
  margin: 0 auto 9px;
  color: #69c596;
}
.tile > .miniicon {
  color: #82d8b6;
  filter: drop-shadow(2px 3px 1px #98d6b155);
}
.tile.amber > .miniicon {
  color: #e4b269;
}
.tile.blue > .miniicon {
  color: #7aabd9;
}
.tile.purple > .miniicon {
  color: #b196db;
}
.practice-button > .miniicon {
  color: #74bca5;
}
.result .game-action {
  margin-top: 0;
}
.ai-art {
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 44%,
    transparent 74%
  );
  mask-image: radial-gradient(ellipse at center, #000 44%, transparent 74%);
}
.tile.feature strong {
  position: absolute;
  top: 13px;
  left: 12px;
}
.tile.feature .tiny-arrow {
  position: absolute;
  top: 32px;
  left: 12px;
}
.summary {
  background: #fff;
}
.summary .stats {
  background: #fff;
}
.quote {
  font-size: 11px;
  width: 77px;
  right: 133px;
}
.home {
  background:
    radial-gradient(ellipse at 80% 0, #65ffb0 0, transparent 27%),
    linear-gradient(155deg, #9affc7 0, #edf2f2 30%, #edf2f2 100%);
}
.exercise:before {
  background-size: 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 65%);
  mask-image: linear-gradient(to bottom, transparent, #000 65%);
}
/* Video fidelity pass, v2. The phone status bar in the reference is OS chrome. */
:root {
  --page-h: 100dvh;
  --green: #2dc56d;
}
body {
  background: #e8f2ed;
}
.summary,
.learning-card {
  margin-left: 18px;
  margin-right: 8px;
}
.hero {
  height: 138px;
  background: radial-gradient(ellipse at 60% 10%, #80ffb380, transparent 78%);
}
.hero .identity {
  position: relative;
  z-index: 1;
}
.avatar {
  overflow: hidden;
  border: 0;
  background: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-art {
  width: 166px;
  right: 26px;
  top: 8px;
  mask-image: radial-gradient(ellipse at 48% 50%, #000 45%, transparent 76%);
}
.review {
  padding: 0;
  background: none;
  right: 8px;
  top: 7px;
  width: 56px;
  height: 75px;
  transform: none;
}
.review img {
  width: 54px;
  height: 68px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.review b {
  position: absolute;
  top: 3px;
  right: 7px;
  color: #fff;
  background: #e6687a;
  border-radius: 12px;
  font-size: 11px;
  min-width: 22px;
  padding: 1px 3px;
}
.summary-head {
  padding: 15px 20px;
  position: relative;
}
.summary-head .text-link {
  background: #47d77b;
  color: #ddffe7;
  position: absolute;
  right: 0;
  top: 0;
  padding: 9px 12px 10px 28px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
}
.stats {
  padding: 21px 20px 18px;
}
.stat {
  min-height: 98px;
  padding: 24px 0 21px;
}
.stat-grid {
  gap: 10px;
}
.unit-label {
  padding-top: 12px;
  padding-bottom: 17px;
}
.section-title > img {
  width: 30px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.gauge-area > .green-pill {
  width: 155px;
  font-size: 14px;
  padding-inline: 4px;
}
.quote {
  right: 148px;
  top: 86px;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
}
.activities {
  grid-template-rows: 72px 72px;
  gap: 9px;
}
.tile > img {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 37px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tile.feature > img {
  width: 58px;
  height: 62px;
  right: 6px;
  bottom: 4px;
}
.tile.feature .tiny-arrow {
  top: 29px;
}
.study-section .section-title {
  font-size: 17px;
}
.study-tile img {
  width: 47px;
  height: 50px;
}
.section-title:after {
  height: 2px;
}
.bottom-nav {
  height: 60px;
}
.nav-item {
  font-size: 11px;
}
.nav-item.active svg {
  fill: #30d477;
  stroke: #30d477;
}
.nav-item {
  padding-top: 7px;
}
.nav-item svg {
  width: 25px;
  height: 25px;
}
.exercise {
  height: var(--page-h);
  min-height: var(--page-h);
  padding-bottom: 0;
  background: linear-gradient(#16a884, #38c4a0);
}
.exercise:before {
  inset: auto 0 0;
  height: min(80vw, 358px);
  background: url("assets/landscape.svg") center bottom/100% 100% no-repeat;
  opacity: 1;
  mix-blend-mode: normal;
  mask-image: linear-gradient(transparent, #000 25%);
}
.page-head {
  height: 58px;
  flex-shrink: 0;
  font-size: 17px;
}
.back {
  font-size: 34px;
  line-height: 1;
  top: 6px;
  left: 9px;
}
.practice-menu {
  padding: 28px 8px 25px 18px;
  min-height: 0;
  overflow: auto;
}
.menu-label {
  margin-bottom: 25px;
  font-size: 17px;
  white-space: nowrap;
}
.menu-label > span {
  color: #f4d338;
}
.menu-label small {
  font-size: 12px;
  margin-left: 8px;
}
.practice-grid {
  gap: 18px 15px;
  margin-bottom: 27px;
}
.practice-button {
  height: 75px;
  min-height: 75px;
  border: 1px solid #dbebe4;
  padding: 10px 15px 8px 20px;
  border-radius: 7px;
  gap: 12px;
  font-size: 19px;
}
.practice-button > img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
}
.practice-button small {
  font-size: 14px;
  margin-top: 6px;
  font-weight: 600;
  min-height: 17px;
}
.practice-button small:empty {
  color: #a4b1aa;
}
.match-title {
  font-size: 15px;
  height: 66px;
  padding-top: 25px;
}
.match-info {
  font-size: 15px;
  margin: 18px 0 27px;
}
.match-grid {
  gap: 15px 37px;
  padding-inline: 23px;
}
.match-cell {
  height: 50px;
  min-height: 50px;
  border-radius: 3px;
  font-size: 15px;
}
.match-cell.clearing {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  color: #fff27a;
  animation: match-pop 0.38s ease-out;
}
.sparkle {
  display: block;
  letter-spacing: 5px;
  font-size: 24px;
  text-shadow: 0 0 8px #ffe500;
}
.game-top {
  height: 62px;
  flex-shrink: 0;
  padding-left: 87px;
  gap: 32px;
  padding-right: 31px;
}
.game-top .progress {
  height: 5px;
}
.game-top .counter {
  font-size: 14px;
  letter-spacing: 1px;
}
.hint-label {
  font-size: 12px;
  border-radius: 0 12px 12px 0;
  padding: 5px 10px;
  margin: 12px 0 0;
  background: #83cfb240;
  color: #d2e9df;
}
.game-question {
  min-height: 0;
  padding: 0;
  position: relative;
  flex: 1;
  gap: 0;
}
.is-choice .game-question {
  justify-content: flex-start;
}
.is-choice h1 {
  position: absolute;
  top: 99px;
  font-size: 40px;
  font-weight: 400;
}
.is-choice .sound-button {
  position: absolute;
  top: 82px;
}
.corner-sound {
  position: absolute;
  right: 12px;
  top: 80px;
  background: #7bcda73b;
  color: #e5dc73;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 7px;
  z-index: 3;
}
.corner-sound svg {
  width: 24px;
  height: 24px;
}
.sound-button {
  width: 92px;
  height: 92px;
  background: #76cfb02e;
}
.sound-button svg {
  width: 56px;
  height: 56px;
}
.unknown {
  height: 58px;
  flex-shrink: 0;
  background: #9ee2c82c;
  font-size: 21px;
  color: #e6dc72;
}
.unknown small {
  border: 1px solid #dbe18c80;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 400;
  padding: 3px;
  margin-left: 4px;
}
.answer-options {
  padding-bottom: 0;
  flex-shrink: 0;
}
.answer {
  height: 69px;
  min-height: 0;
  font-size: 22px;
  padding-left: 22px;
  padding-right: 25px;
}
.answer:before {
  margin-right: 18px;
}
.answer.correct {
  background: #37d86c;
}
.answer.wrong {
  background: #dd6a6c80;
}
.answer.selected:after {
  font-size: 24px;
}
.is-chunks .game-question {
  position: absolute;
  top: 40%;
  height: 180px;
  left: 0;
  right: 0;
  justify-content: flex-start;
}
.is-chunks .game-question h2 {
  font-size: 35px;
  line-height: 1.3;
}
.is-chunks .answer-line {
  margin-top: 43px;
  width: 164px;
}
.typing-input {
  width: 100%;
  max-width: none;
  border-radius: 0;
  color: #d9f599;
  font-size: 29px;
  min-height: 47px;
  padding: 3px;
  line-height: 1.3;
}
.typing-input::placeholder {
  color: #b8ebd3;
  opacity: 1;
  letter-spacing: 3px;
}
.is-chunks .chunks {
  position: absolute;
  left: 0;
  right: 0;
  top: 64%;
  margin: 0 32px;
  gap: 16px;
}
.chunk {
  min-width: 62px;
  min-height: 55px;
  font-size: 24px;
  padding: 8px 13px;
  border-radius: 6px;
  border-color: #b1e3d080;
}
.chunk.chosen {
  background: #61cfa94a;
  color: #edffcc;
  opacity: 0.65;
}
.is-chunks .hint-button {
  position: absolute;
  top: 74.5%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: 246px;
  height: 56px;
  min-height: 44px;
  font-size: 22px;
  padding: 10px;
}
.is-chunks .hint-button:active {
  transform: translateX(-50%) scale(0.98);
}
.feedback {
  margin-top: 12px;
  color: #e1f7a5;
  line-height: 1.5;
}
.is-chunks .feedback {
  font-size: 13px;
  max-width: 90%;
  margin-top: 12px;
}
.is-spelling .game-question {
  position: absolute;
  left: 0;
  right: 0;
  top: 18.5%;
  height: 220px;
  justify-content: flex-start;
  gap: 0;
}
.is-spelling .game-question h2 {
  font-size: 35px;
}
.is-spelling .game-question .sound-button {
  width: 85px;
  height: 85px;
  margin-top: -10px;
  margin-bottom: 14px;
}
.is-spelling .game-question .subtle {
  padding: 0;
  color: #92d8bf;
  font-size: 13px;
}
.is-spelling .answer-line {
  margin-top: 57px;
  width: 210px;
}
.is-spelling .typing-input {
  border-bottom-color: transparent;
  font-size: 25px;
  letter-spacing: 4px;
}
.is-spelling .feedback {
  font-size: 14px;
}
.is-spelling .sound-button ~ .answer-line {
  margin-top: 29px;
}
.spelling-hint {
  position: absolute;
  right: 10px;
  bottom: 252px;
  color: #8cdbbf;
  font-size: 14px;
  padding: 10px;
}
.keyboard {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 13px 3px 9px;
  gap: 9px;
  margin-top: 0;
  background: #d4d8d7;
}
.key-row {
  gap: 5px;
  padding: 0 0;
}
.key-row:nth-child(2) {
  padding-inline: 21px;
}
.key-row:nth-child(3) {
  padding-inline: 0;
}
.key {
  height: 47px;
  font-size: 26px;
  border-radius: 6px;
  color: #46514b;
  box-shadow: 0 2px 1px #9ca8a2;
}
.key.wide {
  font-size: 17px;
  flex: 1.45;
  background: #e9ecea;
}
.key.submit {
  font-size: 19px;
  flex: 1;
  background: #69caae;
}
.key-row:last-child .wide {
  flex: 2.2;
  background: #fff;
  font-size: 22px;
}
.key-row:last-child .submit {
  flex: 1;
}
.is-assembly .assembly {
  margin: 12px 5px 0 15px;
  min-height: 0;
  border-radius: 8px 8px 0 0;
  padding: 41px 20px 0;
  background: #f1fff9e8;
}
.assembly-label {
  position: absolute;
  top: 15px;
  left: 0;
  padding: 6px 10px;
  background: #74cbaa;
  color: #e3fff1;
  border-radius: 0 14px 14px 0;
  font-size: 12px;
}
.assembly > p {
  margin: 12px 0 0;
  font-size: 16px;
}
.assembly .sentence-slots {
  margin-top: 18px;
  min-height: 39px;
  gap: 6px;
}
.slot {
  min-width: 55px;
  height: 37px;
  padding: 6px 10px;
  font-size: 16px;
}
.assembly .word-bank {
  margin-inline: -12px;
  padding-bottom: 35px;
  gap: 9px;
  min-height: 160px;
  align-content: flex-start;
}
.bank-word {
  align-self: flex-start;
  padding: 7px 9px;
  min-height: 38px;
  font-size: 15px;
}
.bank-word:disabled {
  visibility: hidden;
}
.assembly .feedback {
  text-align: right;
}
.assembled-answer {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
}
.right {
  color: #3ac565;
}
.incorrect {
  color: #d58c67;
}
.assembly-verdict {
  font-size: 23px;
  font-weight: 600;
  padding-right: 24px;
  display: inline-block;
  margin-top: 12px;
  color: #d9a44a;
}
.assembly-bottom {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  flex-shrink: 0;
}
.assembly-bottom .game-action {
  border-radius: 32px;
  min-width: 285px;
  margin: 10px auto 6px;
  padding: 7px 24px 8px;
  font-size: 23px;
  line-height: 1.15;
}
.game-action small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 3px;
}
.show-answer {
  position: absolute;
  right: 0;
  bottom: 14px;
  font-size: 10px;
  padding: 8px 5px;
}
.is-flash .game-question {
  justify-content: center;
  padding: 25px 0;
}
.flashcard {
  height: min(45vh, 330px);
}
.flash-actions {
  margin-bottom: 30px;
}
.white-page {
  background: #f6f6f6;
  padding-bottom: 74px;
}
.word-row {
  padding: 0;
  border-bottom: 1px solid #fff;
  min-height: 89px;
}
.row-selector {
  background: transparent;
  padding: 23px 20px;
  width: 100%;
  text-align: center;
  min-height: 89px;
}
.word-row strong {
  font-size: 22px;
}
.word-row small {
  font-size: 12px;
}
.word-row.open {
  padding: 0 0 16px;
  min-height: 210px;
}
.word-row.open .row-selector {
  padding: 24px 20px 0;
  min-height: 100px;
}
.word-row.open strong {
  font-size: 30px;
}
.word-row.open .row-selector small {
  margin-top: 6px;
}
.voice-controls {
  margin-top: 20px;
  gap: 31px;
  min-height: 69px;
  align-items: flex-start;
}
.voice-control {
  font-size: 10px;
  color: #91b6a4;
  min-width: 38px;
  max-width: 115px;
  min-height: 44px;
}
.voice-control[hidden] {
  display: none;
}
.voice-control svg {
  width: 38px;
  height: 38px;
  padding: 9px;
}
.voice-control.mic svg {
  width: 70px;
  height: 70px;
  padding: 16px;
  margin-top: -14px;
  background: #53c8aa;
  border-color: #d8efe5;
}
.voice-control.mic span {
  display: block;
  white-space: nowrap;
  font-size: 10px;
}
.record-status {
  margin-top: 3px;
  min-height: 0;
  font-size: 11px;
  padding: 0 30px;
  color: #59b593;
}
.record-status:empty {
  display: none;
}
.word-row .star {
  font-size: 22px;
  right: 20px;
  top: 26px;
  color: #41d66d;
  line-height: 1;
}
.star small {
  font-size: 8px !important;
  margin-top: 3px;
  color: #3ac06f;
}
.reference-answer {
  color: #49b987 !important;
  text-align: center;
  margin-top: 12px !important;
}
.oral-page .word-row.open {
  min-height: 216px;
}
.phrase-row .row-selector {
  text-align: left;
  padding-left: 21px;
}
.phrase-row.open .row-selector {
  min-height: 77px;
}
.phrase-row.open strong {
  font-size: 17px;
  font-weight: 500;
  color: #5ca782;
}
.phrase-row .voice-controls {
  margin-top: 21px;
}
.language-toggle {
  position: absolute;
  right: 8px;
  top: 19px;
  border: 1px solid #b5c8be;
  border-radius: 16px;
  background: #fff;
  color: #a4b1aa;
  padding: 1px 7px;
  font-size: 12px;
}
.language-toggle .active {
  color: #52b99a;
}
.phrase-compact {
  display: flex;
  align-items: center;
  background: white;
  padding: 25px 18px;
  min-height: 100px;
  gap: 8px;
}
.phrase-compact > button {
  background: transparent;
  padding: 4px 0;
  min-height: 44px;
  color: #5f6f64;
}
.phrase-compact .compact-speaker {
  color: #d6d28b;
  flex-shrink: 0;
}
.compact-speaker svg {
  width: 20px;
  height: 20px;
}
.review-tag,
.learned-tag {
  font-size: 10px;
  background: #ed98af;
  color: white;
  padding: 3px 5px;
}
.learned-tag {
  background: #a8dfbe;
}
.full-relearn {
  width: 100%;
  height: 45px;
}
.compact-study {
  background: #f4f4f4;
}
.sticky-actions {
  min-height: 57px;
  border-top: 1px solid #eee;
  padding: 8px 15px 8px 22px;
}
.sticky-actions .yellow-button {
  min-height: 42px;
  font-size: 15px;
  border-radius: 3px;
  padding-inline: 36px;
}
.sticky-actions b {
  color: #d7b953;
  font-weight: 400;
}
.compact-study .sticky-actions {
  padding: 7px 6px 7px 12px;
}
.count-bubble {
  display: inline-block;
  background: #e7768b;
  color: white;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  font-size: 11px;
  padding: 1px 4px;
}
.select-list .miniicon {
  color: #72bba5;
  width: 24px;
  margin-right: 10px;
}
.modal {
  width: 360px;
  border-radius: 14px;
}
.modal-banner {
  height: 71px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(155deg, #8ee4c2, #36bb96);
  overflow: visible;
}
.modal-banner:after {
  content: "";
  position: absolute;
  inset: 10px 0 0;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(30deg, transparent, #b6eed746);
  pointer-events: none;
}
.modal-banner img {
  height: 70px;
  top: -29px;
  z-index: 1;
  object-fit: cover;
  object-position: 50% 10%;
  width: 70px;
}
.modal-body {
  padding: 29px 19px 22px;
}
.modal h3 {
  font-size: 16px;
}
.modal p {
  font-size: 11px;
}
.modal-actions button {
  font-size: 13px;
  min-height: 55px;
}
.exit-score {
  color: #d8768e;
}
.recognition-option {
  font-size: 13px;
  display: flex !important;
  align-items: center;
  gap: 7px;
}
.recognition-option input {
  width: 18px;
  height: 18px;
  accent-color: #39b784;
}
.result-page {
  background: #24aa87;
  min-height: var(--page-h);
  height: var(--page-h);
}
.result-page:before {
  display: none;
}
.result-top {
  height: 50px;
  flex-shrink: 0;
  position: relative;
}
.result-top .back {
  color: #a9e1ce;
}
.result {
  min-height: 0;
  flex: 1;
  justify-content: flex-start;
  padding: 3px 21px 22px;
}
.coin-reward {
  display: flex;
  align-items: baseline;
  gap: 3px;
  position: relative;
  color: #df934b;
  min-height: 57px;
  margin-top: 0;
}
.coin-reward > .miniicon {
  width: 31px;
  height: 31px;
  color: #ffdc42;
  align-self: center;
  fill: #ffd62755;
  margin-right: 4px;
}
.coin-reward strong {
  font-size: 44px;
  font-weight: 500;
}
.coin-reward span {
  font-size: 22px;
}
.coin-reward small {
  position: absolute;
  right: -70px;
  top: 0;
  background: #e58b67;
  transform: rotate(-13deg);
  color: #fff4d2;
  font-size: 12px;
  padding: 2px 5px;
}
.reward-art {
  position: relative;
  width: 100%;
  height: 267px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 5px;
}
.reward-art > img {
  width: 290px;
  height: 180px;
  object-fit: contain;
  position: relative;
  margin-bottom: 34px;
  z-index: 1;
}
.reward-rays {
  position: absolute;
  inset: -14px -14px -14px;
  background: repeating-conic-gradient(
    from 0deg,
    #d8df3b55 0 10deg,
    transparent 10deg 23deg
  );
  mask-image: radial-gradient(ellipse, #000 15%, transparent 67%);
  animation: ray-spin 35s linear infinite;
}
.result .ribbon {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 285px;
  padding: 10px 10px;
  background: linear-gradient(#ed6b7f, #df536c);
  box-shadow: 0 5px 0 #c85a62;
  font-size: 18px;
  font-weight: 400;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.ribbon strong {
  font-size: 31px;
  font-weight: 700;
  margin-left: 3px;
}
.growth {
  font-size: 12px;
  color: #d8ef8a;
  margin: 24px 0 28px;
}
.result p {
  color: #b9e2cc;
  margin: 8px 10px 20px;
  text-align: left;
  align-self: stretch;
  font-size: 12px;
  line-height: 1.6;
}
.winner-panel {
  background: #ffffff14;
  border-radius: 7px;
  padding: 22px 15px;
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
}
.winner-panel > .miniicon {
  color: #ffd33e;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  fill: #ffc65422;
}
.winner-panel strong {
  font-size: 29px;
  font-weight: 400;
  color: #c4e6d9;
  display: block;
}
.winner-panel small {
  font-size: 12px;
  color: #b1dfc9;
  display: block;
  margin-top: 5px;
}
.result-spacer {
  flex: 1;
  min-height: 25px;
}
.result .game-action {
  min-width: 208px;
  font-size: 20px;
  font-weight: 400;
  padding: 13px 20px;
  margin: 0 auto 4px;
}
.result .subtle {
  padding: 8px 12px;
  color: #a5d8c6;
  font-size: 14px;
}
.result .result-return {
  font-size: 12px;
  padding-top: 1px;
}
.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 7;
}
.confetti i {
  position: absolute;
  left: var(--x);
  top: -15px;
  width: 7px;
  height: 12px;
  animation: confetti-fall 1.8s ease-in var(--d) both;
  transform: rotate(var(--r));
}
@keyframes match-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}
@keyframes ray-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes confetti-fall {
  to {
    top: 105%;
    transform: rotate(calc(var(--r) + 420deg));
    opacity: 0.1;
  }
}
@media (min-width: 700px) {
  :root {
    --page-h: max(840px, calc(100dvh - 48px));
  }
  .exercise {
    min-height: var(--page-h);
    height: var(--page-h);
  }
  .home,
  .white-page {
    min-height: var(--page-h);
  }
  .practice-menu {
    min-height: 0;
  }
  .modal-layer {
    padding: 25px;
  }
  .exercise:before {
    height: 358px;
  }
  .spelling-hint {
    bottom: 252px;
  }
}
@media (max-width: 390px) {
  .summary,
  .learning-card {
    margin-left: 15px;
    margin-right: 8px;
  }
  .hero {
    height: 123px;
    padding-top: 19px;
  }
  .ai-art {
    width: 147px;
    right: 23px;
    top: 2px;
  }
  .identity strong {
    font-size: 15px;
  }
  .identity small {
    font-size: 11px;
  }
  .avatar {
    height: 39px;
    width: 39px;
  }
  .review {
    width: 49px;
    height: 63px;
  }
  .review img {
    width: 48px;
    height: 61px;
  }
  .summary-head {
    font-size: 16px;
    padding: 13px 17px;
  }
  .stats {
    padding: 18px 17px 16px;
  }
  .stat {
    min-height: 85px;
    padding: 18px 0;
  }
  .stat-grid {
    gap: 8px;
  }
  .totals strong {
    font-size: 26px;
  }
  .stat span {
    font-size: 12px;
  }
  .unit-label {
    font-size: 18px;
  }
  .learning-card {
    padding-left: 17px;
    padding-right: 17px;
  }
  .section-title {
    font-size: 16px;
  }
  .word-overview {
    height: 144px;
  }
  .gauge-area {
    width: 142px;
  }
  .gauge svg {
    width: 135px;
  }
  .gauge-area > .green-pill {
    width: 139px;
    font-size: 13px;
  }
  .mascot {
    width: 112px;
    height: 132px;
  }
  .quote {
    display: block;
    right: 130px;
    width: 64px;
    font-size: 10px;
    padding: 8px 2px;
    top: 88px;
  }
  .activities {
    grid-template-rows: 67px 67px;
    gap: 8px;
  }
  .tile {
    padding: 9px 10px;
  }
  .tile strong {
    font-size: 13px;
  }
  .tile > img {
    width: 31px;
    height: 31px;
    right: 5px;
    bottom: 7px;
  }
  .tile.feature > img {
    width: 48px;
    height: 55px;
  }
  .tile.feature strong {
    left: 9px;
  }
  .tile.feature .tiny-arrow {
    left: 9px;
  }
  .score-badge {
    font-size: 11px;
    padding: 2px 5px;
  }
  .tiny-arrow {
    width: 20px;
    height: 20px;
    font-size: 16px;
  }
  .study-tile span {
    font-size: 12px;
  }
  .study-tile {
    min-height: 111px;
    padding-top: 14px;
  }
  .study-tile img {
    height: 43px;
    width: 42px;
  }
  .study-tiles {
    gap: 9px;
  }
  .practice-menu {
    padding: 24px 8px 25px 15px;
  }
  .menu-label {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .menu-label small {
    font-size: 10px;
    margin-left: 6px;
  }
  .practice-grid {
    gap: 15px 12px;
    margin-bottom: 23px;
  }
  .practice-button {
    padding: 9px 7px 8px 16px;
    gap: 9px;
    height: 65px;
    min-height: 65px;
    font-size: 16px;
  }
  .practice-button > img {
    width: 35px;
    height: 38px;
  }
  .practice-button small {
    font-size: 12px;
  }
  .match-grid {
    padding-inline: 19px;
    gap: 13px 30px;
  }
  .match-cell {
    height: 44px;
    min-height: 44px;
    font-size: 13px;
  }
  .match-title {
    height: 59px;
    font-size: 13px;
    padding-top: 23px;
  }
  .match-info {
    margin: 16px 0 24px;
    font-size: 13px;
  }
  .game-top {
    height: 56px;
    padding-left: 74px;
    padding-right: 26px;
    gap: 25px;
  }
  .game-top .counter {
    font-size: 12px;
  }
  .game-top .back {
    top: 5px;
  }
  .is-choice h1 {
    font-size: 35px;
    top: 91px;
  }
  .is-choice .sound-button {
    top: 72px;
  }
  .answer {
    height: 61px;
    font-size: 19px;
    padding-left: 19px;
  }
  .unknown {
    height: 51px;
    font-size: 18px;
  }
  .is-chunks .game-question h2,
  .is-spelling .game-question h2 {
    font-size: 31px;
  }
  .is-chunks .chunks {
    gap: 12px;
    margin-inline: 24px;
  }
  .chunk {
    min-width: 54px;
    min-height: 48px;
    font-size: 21px;
    padding-inline: 10px;
  }
  .is-chunks .hint-button {
    width: 213px;
    height: 49px;
    font-size: 19px;
  }
  .is-chunks .answer-line {
    margin-top: 35px;
    width: 145px;
  }
  .keyboard {
    padding-top: 12px;
    gap: 8px;
  }
  .key {
    height: 41px;
    font-size: 22px;
  }
  .key.wide {
    font-size: 14px;
  }
  .key.submit {
    font-size: 17px;
  }
  .key-row:last-child .wide {
    font-size: 19px;
  }
  .spelling-hint {
    bottom: 223px;
    font-size: 12px;
  }
  .is-spelling .answer-line {
    margin-top: 47px;
  }
  .assembly .word-bank {
    min-height: 139px;
    padding-bottom: 30px;
  }
  .assembly-bottom .game-action {
    min-width: 246px;
    font-size: 20px;
  }
  .assembly-bottom {
    min-height: 69px;
  }
  .game-action small {
    font-size: 10px;
  }
  .assembly .sentence-slots {
    margin-top: 15px;
  }
  .slot {
    height: 32px;
    min-height: 32px;
    min-width: 48px;
    font-size: 14px;
  }
  .assembly > p {
    font-size: 14px;
  }
  .assembly-label {
    font-size: 11px;
  }
  .bank-word {
    font-size: 13px;
    min-height: 33px;
    padding: 6px 8px;
  }
  .show-answer {
    font-size: 9px;
    right: 0;
  }
  .modal {
    width: 330px;
  }
  .coin-reward strong {
    font-size: 39px;
  }
  .reward-art {
    height: 230px;
  }
  .reward-art > img {
    width: 252px;
    height: 158px;
  }
  .result .ribbon {
    width: 250px;
    font-size: 16px;
  }
  .ribbon strong {
    font-size: 27px;
  }
  .growth {
    margin: 21px 0;
  }
  .winner-panel {
    padding: 17px 12px;
  }
  .winner-panel strong {
    font-size: 25px;
  }
  .winner-panel > .miniicon {
    width: 48px;
    height: 48px;
  }
  .result .game-action {
    font-size: 18px;
  }
  .coin-reward small {
    right: -59px;
    font-size: 10px;
  }
  .word-row.open .row-selector {
    padding-top: 22px;
  }
  .phrase-row.open .row-selector {
    padding-top: 29px;
  }
  .phrase-row .row-selector {
    padding-left: 19px;
  }
  .phrase-row.open strong {
    font-size: 15px;
  }
  .phrase-compact {
    min-height: 90px;
    font-size: 13px;
  }
  .sticky-actions .yellow-button {
    padding-inline: 28px;
  }
}
@media (max-height: 740px) {
  .answer {
    height: 54px;
    font-size: 18px;
  }
  .is-choice h1 {
    top: 65px;
  }
  .is-choice .sound-button {
    top: 45px;
    width: 80px;
    height: 80px;
  }
  .is-chunks .chunks {
    top: 64%;
  }
  .is-chunks .hint-button {
    top: 76%;
  }
  .result .growth {
    margin: 17px 0;
  }
  .result .reward-art {
    height: 200px;
  }
  .reward-art > img {
    width: 235px;
    height: 145px;
  }
  .result .winner-panel {
    padding-block: 10px;
  }
  .result p {
    margin-bottom: 13px;
  }
  .result .coin-reward {
    min-height: 44px;
  }
  .coin-reward strong {
    font-size: 34px;
  }
  .result-top {
    height: 36px;
  }
  .result-spacer {
    min-height: 10px;
  }
  .voice-controls {
    gap: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.ai-art {
  mix-blend-mode: normal;
}
.review img {
  mix-blend-mode: normal;
  mask-image: radial-gradient(ellipse, #000 60%, transparent 83%);
}
.tile > img {
  mask-image: radial-gradient(ellipse, #000 57%, transparent 83%);
}
.oral-page .word-row.open:not(.phrase-row) {
  min-height: 282px;
}
.oral-page .word-row.open:not(.phrase-row) .row-selector {
  min-height: 160px;
  padding-top: 41px;
}
.oral-page .word-row.open:not(.phrase-row) strong {
  font-size: 40px;
}
.oral-page .word-row.open:not(.phrase-row) .row-selector small:first-of-type {
  font-size: 14px;
}
.oral-page .word-row.open:not(.phrase-row) .voice-controls {
  margin-top: 12px;
}
.voice-control:disabled {
  opacity: 0.42;
}
.voice-control.mic {
  max-width: 115px;
}
.phrase-row .row-selector strong {
  font-size: 16px;
  font-weight: 400;
  color: #5c6b62;
}
.reward-art > img {
  width: calc(100% + 42px);
  height: 224px;
  max-width: none;
  object-fit: fill;
  margin-bottom: 27px;
}
.reward-rays {
  display: none;
}
.winner-panel > img {
  width: 65px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: normal;
}
.result .ribbon {
  bottom: 0;
}
.result .reward-art {
  overflow: visible;
}
@media (max-width: 390px) {
  .oral-page .word-row.open:not(.phrase-row) {
    min-height: 248px;
  }
  .oral-page .word-row.open:not(.phrase-row) .row-selector {
    min-height: 135px;
    padding-top: 32px;
  }
  .oral-page .word-row.open:not(.phrase-row) strong {
    font-size: 35px;
  }
  .reward-art > img {
    height: 195px;
    margin-bottom: 23px;
  }
  .winner-panel > img {
    width: 56px;
    height: 55px;
  }
  .phrase-row .row-selector strong {
    font-size: 14px;
  }
}
@media (max-height: 740px) {
  .reward-art > img {
    height: 170px;
  }
  .result .reward-art {
    height: 200px;
  }
  .growth {
    margin: 12px 0;
  }
}
html {
  color-scheme: light;
}
.summary-head .text-link {
  min-width: 123px;
}
.reward-art > img {
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 20%,
    #000 90%,
    transparent
  );
}
.home {
  background:
    radial-gradient(ellipse 410px 120px at 45% 468px, #b4f6d8a8, transparent),
    radial-gradient(ellipse 380px 420px at 80% 0, #7cffb890, transparent),
    linear-gradient(155deg, #aaffcc 0, #edf2f2 29%, #edf2f2 100%);
}
.language-toggle:after {
  content: "";
  position: absolute;
  inset: -10px 0;
}
.phrase-compact > button:focus-visible,
.compact-speaker:focus-visible {
  outline-offset: 2px;
}
@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --page-h: 760px;
  }
  .exercise {
    height: var(--page-h);
    min-height: var(--page-h);
  }
  .bottom-nav,
  .sticky-actions {
    bottom: 0;
    border-radius: 0;
  }
  .spelling-hint {
    bottom: 252px;
  }
  .practice-menu {
    overflow: visible;
  }
  .game-question {
    min-height: 0;
  }
}
.key-row:last-child .punctuation {
  flex: 0.65;
  font-size: 22px;
  background: #e9ecea;
}
.key-row:last-child .wide {
  flex: 3.4;
}
.key-row:last-child .submit {
  flex: 1.4;
}
@media (min-width: 391px) {
  .keyboard {
    gap: 10px;
    padding-top: 15px;
    padding-bottom: 10px;
  }
  .key {
    height: 49px;
    font-size: 27px;
  }
  .spelling-hint {
    bottom: 264px;
  }
}
/* v3: native vector graphics and readable contrast; no video-crop feathering. */
:root {
  --text: #2d4a3c;
  --muted: #60796a;
}
.ai-art,
.review img,
.tile > img,
.mascot,
.study-tile img,
.section-title > img,
.winner-panel > img,
.reward-art > img {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1;
}
.learning-card:before {
  display: none;
}
.home {
  background: linear-gradient(
    155deg,
    #a8ffcf 0,
    #dbf8e9 24%,
    #edf3f0 38%,
    #edf3f0 100%
  );
}
.learning-card,
.study-section,
.study-section.green {
  background: #fff;
}
.hero {
  background: none;
}
.ai-art {
  width: 169px;
  top: 0;
  right: 25px;
}
.identity small {
  color: #416e52;
}
.wordbook {
  color: #26774e;
  background: #f0fff6;
}
.review {
  top: 7px;
  width: 52px;
  height: 68px;
}
.review img {
  width: 52px;
  height: 64px;
}
.summary-head {
  color: #2d6244;
}
.totals {
  color: #62776a;
}
.totals strong {
  color: #217a46;
}
.totals span {
  color: #62776a;
}
.stat {
  box-shadow: none;
}
.stat:nth-child(1) {
  color: #2e7046;
}
.stat:nth-child(2) {
  color: #9f693e;
}
.stat:nth-child(3) {
  color: #ad586f;
}
.stat:nth-child(4) {
  color: #637567;
}
.unit-label {
  color: #2d6545;
}
.text-link {
  color: #2e8a58;
}
.gauge div {
  color: #536f5c;
}
.gauge strong small {
  color: #637968;
}
.mascot {
  width: 126px;
  height: 150px;
}
.quote {
  color: #287948;
  background: #e7f9ed;
}
.tile strong {
  color: #344f40;
  font-weight: 500;
}
.tiny-arrow {
  color: #488b67;
  border-color: #b8d9c5;
}
.score-badge {
  color: #a36627;
}
.study-tile span {
  color: #344f40;
}
.study-tile small {
  color: #357f5a;
}
.nav-item {
  color: #728c7f;
}
.nav-item.active {
  color: #1cb46b;
}
.page-head {
  color: #344b3e;
}
.back {
  color: #557568;
}
.practice-button {
  color: #344a3d;
}
.practice-button img {
  width: 46px;
  height: 46px;
  image-rendering: auto;
}
.practice-button small {
  color: #2a9e56;
  font-weight: 500;
}
.menu-label {
  color: #f5fff9;
}
.menu-label small {
  color: #d2ede0;
}
.hint-label {
  color: #e4f8ec;
}
.game-question h1,
.game-question h2 {
  color: #f8fffc;
}
.answer {
  color: #fafffc;
}
.typing-input {
  color: #f1ffbf;
}
.typing-input::placeholder {
  color: #ddf5e9;
}
.subtle {
  color: #d6eee0;
}
.spelling-hint {
  color: #d3ecdf;
}
.language-toggle {
  color: #647c6d;
}
.language-toggle .active {
  color: #268866;
}
.row-selector strong,
.phrase-row .row-selector strong {
  color: #344a3d;
}
.word-row small {
  color: #627267;
}
.voice-control {
  color: #4c8e73;
}
.voice-control.mic span {
  color: #61766a;
}
.record-status {
  color: #287c54;
}
.sticky-actions {
  color: #617568;
}
.settings-card p {
  color: #63776a;
}
.exercise:before {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background-image: url("assets/landscape.svg");
  opacity: 1;
  mix-blend-mode: normal;
}
.reward-art > img {
  width: 330px;
  height: 235px;
  object-fit: contain;
  margin-bottom: 32px;
}
.winner-panel > img {
  mix-blend-mode: normal;
}
.result .winner-panel strong {
  color: #e5f7ee;
}
.result .winner-panel small {
  color: #d3ede0;
}
.result p {
  color: #daeee3;
}
.result .subtle {
  color: #d4ecdf;
}
.select-list button {
  font-size: 15px;
}
.modal h3 {
  color: #344b3c;
}
.modal p {
  color: #65786b;
}
.modal-actions button {
  color: #2c916b;
}
.modal-actions button:first-child {
  color: #6c7b70;
}
@media (max-width: 390px) {
  .mascot {
    width: 112px;
    height: 137px;
  }
  .practice-button img {
    width: 38px;
    height: 40px;
  }
  .reward-art > img {
    width: 285px;
    height: 205px;
  }
}
