:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #ddd7cd;
  color: #202522;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #ddd7cd;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 900px);
  min-height: 680px;
  overflow: hidden;
  background: #f8f4ed;
  box-shadow: 0 18px 60px rgb(36 39 36 / 16%);
}

.screen {
  width: 100%;
  height: 100%;
}

.hidden {
  display: none !important;
}

.onboarding {
  position: relative;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: #f7f1e7;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.brand-mark {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #343a36;
  font-size: 13px;
  font-weight: 750;
}

.music-toggle {
  position: relative;
  font-size: 20px;
}

.music-toggle.muted {
  color: #8f918d;
}

.music-toggle.muted::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  top: 18px;
  left: 8px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-42deg);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  border: 2px solid #fffdf9;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 35%;
  box-shadow: 0 3px 12px rgb(58 49 41 / 15%);
}

.slides-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 360ms ease;
  pointer-events: auto;
}

.slide {
  min-width: 100%;
  padding: 100px 8px 116px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.slide-kicker {
  margin: 0 0 18px;
  color: #cf4f39;
  font-size: 14px;
  font-weight: 750;
}

.slide h1 {
  max-width: 350px;
  margin: 0;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

.slide p {
  max-width: 340px;
  margin: 24px 0 0;
  color: #5b615d;
  font-size: 18px;
  line-height: 1.7;
}

.chunk-demo {
  width: 100%;
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chunk-demo span {
  padding: 12px 14px;
  border: 1px solid #c9c0b4;
  border-radius: 7px;
  background: #fffdf9;
  font-weight: 700;
}

.start-button {
  width: 100%;
  min-height: 54px;
  margin-top: 36px;
  border: 0;
  border-radius: 7px;
  background: #1f5f58;
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.slide-footer {
  position: absolute;
  right: 24px;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 24px;
}

.dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9c2b8;
}

.dot.active {
  width: 22px;
  border-radius: 7px;
  background: #1f5f58;
}

.swipe-hint {
  margin: 14px 0 0;
  color: #797d79;
  font-size: 13px;
}

.course-home {
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #f8f4ed;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.home-brand img {
  width: 48px;
  height: 48px;
  border: 2px solid #fffdf9;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 35%;
  box-shadow: 0 3px 12px rgb(58 49 41 / 15%);
}

.home-brand div {
  display: grid;
  gap: 2px;
}

.home-brand span {
  color: #6c716d;
  font-size: 12px;
}

.home-brand strong {
  font-size: 16px;
}

.home-summary {
  margin-top: 64px;
}

.home-summary p {
  margin: 0 0 10px;
  color: #cf4f39;
  font-size: 13px;
  font-weight: 750;
}

.home-summary h1 {
  margin: 0;
  max-width: 330px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-progress-track {
  height: 8px;
  margin: 28px 0 20px;
  overflow: hidden;
  border-radius: 8px;
  background: #ded7cc;
}

.home-progress-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e85f45;
  transition: width 300ms ease;
}

.course-home .primary-button {
  width: 100%;
}

.course-group {
  margin-top: 42px;
}

.course-group-heading {
  margin-bottom: 12px;
}

.course-group-heading span {
  color: #cf4f39;
  font-size: 12px;
  font-weight: 800;
}

.course-group-heading h2 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.course-divider {
  height: 1px;
  margin: 34px 0 0;
  background: #d6cec2;
}

.unit-list {
  display: grid;
  gap: 10px;
}

.unit-row {
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d6cec2;
  border-radius: 8px;
  background: #fffdf9;
  color: #282e2a;
  text-align: left;
  cursor: pointer;
}

.unit-row.completed {
  border-color: #9db9aa;
  background: #f5faf6;
}

.unit-row:disabled {
  cursor: default;
  opacity: 0.58;
}

.unit-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee7dc;
  color: #4f5752;
  font-weight: 800;
}

.unit-row.completed .unit-number {
  background: #1f5f58;
  color: #fff;
}

.unit-copy {
  display: grid;
  gap: 3px;
}

.unit-copy strong {
  font-size: 17px;
}

.unit-copy small,
.unit-state {
  color: #747a76;
  font-size: 12px;
}

.unit-state {
  white-space: nowrap;
}

.creativity-entry {
  width: 100%;
  min-height: 76px;
  margin-top: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8b76e;
  border-radius: 8px;
  background: #fff9e9;
  color: #282e2a;
  text-align: left;
  cursor: pointer;
}

.creativity-entry:disabled {
  border-color: #d6cec2;
  background: #f3eee6;
  cursor: default;
  opacity: 0.62;
}

.creativity-entry.completed {
  border-color: #9db9aa;
  background: #f5faf6;
}

.creativity-entry-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6b84f;
  color: #fff;
  font-size: 20px;
}

.creativity-entry.completed .creativity-entry-icon {
  background: #1f5f58;
}

.creativity-entry-copy {
  display: grid;
  gap: 3px;
}

.creativity-entry-copy strong {
  font-size: 17px;
}

.creativity-entry-copy small {
  color: #747a76;
  font-size: 12px;
}

.text-button {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: #5f6661;
  font-weight: 700;
  cursor: pointer;
}

.practice {
  padding: max(18px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: 40px minmax(290px, 46%) auto 38px auto 24px;
  gap: 12px;
  background: #f8f4ed;
}

.practice.lesson-page {
  grid-template-rows: 40px minmax(220px, 36%) auto 20px auto 18px;
}

.practice-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 12px;
  align-items: center;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #38403b;
  font-size: 24px;
  cursor: pointer;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #ded7cc;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e85f45;
  transition: width 300ms ease;
}

.scene {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 8px;
  background: #b8d8d2;
}

.lesson-page .scene {
  min-height: 220px;
}

.scene-sky {
  position: absolute;
  inset: 0 0 44% 0;
  background: #b8d8d2;
}

.scene-floor {
  position: absolute;
  inset: 56% 0 0 0;
  background: #e8d5b9;
}

.scene-window {
  position: absolute;
  top: 34px;
  right: 26px;
  width: 90px;
  height: 112px;
  border: 9px solid #fff9ef;
  background: #8fc1cd;
  box-shadow: inset 0 0 0 2px #759ca4;
}

.scene-window::before,
.scene-window::after {
  content: "";
  position: absolute;
  background: #fff9ef;
}

.scene-window::before {
  top: 45px;
  right: 0;
  left: 0;
  height: 7px;
}

.scene-window::after {
  top: 0;
  bottom: 0;
  left: 35px;
  width: 7px;
}

.cafe-floor {
  background: #ead9bd;
}

.desire-person {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 108px;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 54px 54px 18px 18px;
  background: #e85f45;
}

.desire-person i {
  position: absolute;
  top: -72px;
  left: 20px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #c99068;
}

.thought-bubble,
.flavor-bubble,
.breakfast-bubble,
.answer-thought {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 36px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgb(42 50 46 / 14%);
}

.thought-bubble::after,
.flavor-bubble::after,
.breakfast-bubble::after,
.answer-thought::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
  background: #fffdf8;
}

.desire-bubble {
  top: 24px;
  left: 50%;
  width: 194px;
  height: 88px;
  transform: translateX(-50%);
}

.desire-bubble::after {
  bottom: -11px;
  left: 46px;
}

.desire-bubble span {
  font-size: 34px;
}

.ice-cream {
  position: absolute;
  z-index: 4;
  top: 54px;
  left: 50%;
  width: 108px;
  height: 108px;
  transform: translateX(-50%);
  border-radius: 54px 54px 44px 44px;
  background: #f4e1b4;
  box-shadow: inset -14px -12px 0 rgb(132 90 55 / 10%), 0 10px 22px rgb(42 50 46 / 15%);
}

.ice-cream.strawberry {
  background: #ee8f99;
}

.ice-cream i {
  position: absolute;
  top: 90px;
  left: 29px;
  width: 50px;
  height: 104px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: repeating-linear-gradient(55deg, #cf9b57 0 5px, #e9bd78 5px 12px);
}

.ice-cream b {
  position: absolute;
  top: 24px;
  left: 38px;
  width: 12px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 255 255 / 55%);
}

.dessert-person {
  right: auto;
  bottom: 18px;
  left: 18px;
  transform: scale(0.82);
  transform-origin: bottom left;
}

.flavor-bubble {
  top: 22px;
  right: 18px;
  width: 184px;
  height: 74px;
}

.flavor-bubble::after {
  bottom: -10px;
  left: 34px;
}

.flavor-bubble span,
.breakfast-bubble span,
.answer-thought span {
  font-size: 30px;
}

.flavor-bubble strong,
.breakfast-bubble strong {
  color: #e85f45;
  font-size: 32px;
}

.answer-thought {
  top: 24px;
  right: 20px;
  width: 126px;
  height: 72px;
}

.answer-thought::after {
  right: 24px;
  bottom: -10px;
}

.breakfast-wall {
  position: absolute;
  inset: 0 0 43%;
  background: #c9ded6;
}

.breakfast-floor {
  position: absolute;
  inset: 57% 0 0;
  background: #e5cfae;
}

.breakfast-clock {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 28px;
  width: 68px;
  height: 68px;
  border: 7px solid #fffdf8;
  border-radius: 50%;
  background: #f7edda;
  box-shadow: 0 6px 14px rgb(42 50 46 / 14%);
}

.breakfast-clock::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #39423e;
}

.breakfast-clock i,
.breakfast-clock b {
  position: absolute;
  z-index: 2;
  bottom: 50%;
  left: calc(50% - 2px);
  width: 4px;
  border-radius: 4px;
  background: #39423e;
  transform-origin: bottom center;
}

.breakfast-clock i {
  height: 21px;
  transform: rotate(0deg);
}

.breakfast-clock b {
  height: 16px;
  transform: rotate(240deg);
}

.breakfast-clock span {
  position: absolute;
  right: 8px;
  bottom: 5px;
  color: #cf4f39;
  font-size: 11px;
  font-weight: 900;
}

.breakfast-table {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 52px;
  width: 220px;
  height: 24px;
  border-radius: 8px;
  background: #a9714d;
}

.breakfast-table::before,
.breakfast-table::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 18px;
  height: 76px;
  background: #81553b;
}

.breakfast-table::before {
  left: 22px;
}

.breakfast-table::after {
  right: 22px;
}

.fruit-plate {
  position: absolute;
  z-index: 4;
  right: 48px;
  bottom: 78px;
  width: 166px;
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  border-radius: 0 0 50% 50%;
  background: #fffdf8;
  box-shadow: 0 7px 12px rgb(42 50 46 / 13%);
}

.fruit-plate span {
  margin-bottom: 20px;
  font-size: 36px;
}

.breakfast-person {
  right: auto;
  bottom: 22px;
  left: 14px;
  transform: scale(0.76);
  transform-origin: bottom left;
}

.breakfast-bubble {
  top: 20px;
  left: 20px;
  width: 190px;
  height: 76px;
}

.breakfast-bubble::after {
  bottom: -10px;
  left: 32px;
}

.breakfast-choice {
  top: 20px;
  right: 18px;
  width: 158px;
}

.prefer-sky {
  background: #c8ddd7;
}

.preference-choice {
  position: absolute;
  inset: 44px 28px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.preference-choice > div {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 5px solid #fffdf8;
  border-radius: 16px;
  background: rgb(255 253 248 / 70%);
  opacity: 0.62;
}

.preference-choice > div.preferred {
  border-color: #e5b341;
  background: #fff8dd;
  opacity: 1;
  box-shadow: 0 9px 20px rgb(54 50 42 / 14%);
}

.preference-choice span {
  font-size: 48px;
}

.preference-choice > strong {
  color: #cf4f39;
  font-size: 42px;
}

.preference-choice b {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e85f45;
  color: #fff;
}

.juice-glass {
  position: absolute;
  z-index: 4;
  top: 46px;
  left: 50%;
  width: 112px;
  height: 178px;
  transform: translateX(-50%);
  overflow: hidden;
  border: 8px solid #fffdf8;
  border-top-width: 4px;
  border-radius: 8px 8px 30px 30px;
  background: #f3d28a;
  box-shadow: 0 10px 22px rgb(42 50 46 / 15%);
}

.juice-glass.orange {
  background: #efa23c;
}

.juice-glass i {
  position: absolute;
  top: -42px;
  right: 16px;
  width: 7px;
  height: 94px;
  transform: rotate(12deg);
  border-radius: 6px;
  background: #3b7d73;
}

.juice-glass span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 38px;
}

.drink-person {
  right: auto;
  bottom: 20px;
  left: 18px;
  transform: scale(0.8);
  transform-origin: bottom left;
}

.drink-question-bubble,
.offer-bubble {
  position: absolute;
  z-index: 6;
  top: 24px;
  right: 24px;
  width: 130px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 34px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgb(42 50 46 / 14%);
}

.drink-question-bubble::after,
.offer-bubble::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 28px;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
  background: #fffdf8;
}

.drink-question-bubble span,
.offer-bubble span {
  font-size: 42px;
}

.drink-question-bubble strong,
.offer-bubble strong {
  color: #e85f45;
  font-size: 32px;
}

.drink-answer-choice,
.food-preference {
  position: absolute;
  inset: 64px 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.drink-answer-choice span,
.food-preference > div {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fffdf8;
  font-size: 50px;
  box-shadow: 0 8px 18px rgb(42 50 46 / 13%);
}

.drink-answer-choice .rejected,
.not-wanted {
  position: relative;
  filter: grayscale(0.7);
  opacity: 0.58;
}

.drink-answer-choice .rejected::after,
.not-wanted::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 7px;
  border-radius: 7px;
  background: #cf4f39;
  transform: rotate(-42deg);
}

.drink-answer-choice strong,
.food-preference > strong {
  color: #cf4f39;
  font-size: 36px;
}

.preference-creative {
  background: #e7ddd0;
}

.food-preference .wanted {
  position: relative;
  display: flex;
  width: 132px;
  gap: 0;
  font-size: 38px;
  border: 4px solid #e5b341;
}

.food-preference .wanted b {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e85f45;
  color: #fff;
  font-size: 15px;
}

.tutorial-scene {
  padding: 18px;
}

.preference-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.pref-orbit {
  position: absolute;
  padding: 7px 9px;
  border: 1px solid #c9c0b4;
  border-radius: 7px;
  background: #fffdf9;
  color: #1f5f58;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.p1 { top: 8px; left: 8px; }
.p2 { top: 8px; right: 8px; }
.p3 { top: 68px; left: 0; }
.p4 { top: 70px; right: 0; }
.p5 { bottom: 68px; left: 0; }
.p6 { right: 0; bottom: 68px; }
.p7 { bottom: 8px; left: 8px; }
.p8 { right: 26px; bottom: 8px; }

.preference-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translate(-50%, -50%);
}

.preference-core strong,
.four-core span {
  padding: 13px 12px;
  border: 1px solid #dfac3d;
  border-radius: 7px;
  background: #f4ca68;
  color: #40351e;
  font-size: 16px;
  text-align: center;
}

.four-core {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.four-core span:nth-child(-n + 2) {
  border-color: #9db9aa;
  background: #dcebe3;
  color: #1f5f58;
}

.flavor-pair {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.flavor-pair > div {
  width: 110px;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.flavor-pair span {
  font-size: 64px;
}

.flavor-pair b {
  color: #5c625e;
  font-size: 13px;
}

.flavor-pair > strong,
.flavor-pair > i {
  color: #cf4f39;
  font-size: 32px;
  font-style: normal;
}

.known-blocks,
.unknown-cloud {
  max-width: 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.known-blocks span,
.unknown-cloud span {
  padding: 12px 14px;
  border-radius: 7px;
  background: #fffdf9;
  color: #1f5f58;
  font-weight: 800;
  box-shadow: 0 6px 14px rgb(49 53 50 / 10%);
}

.unknown-cloud span {
  color: #777d79;
  border: 1px dashed #aaa39a;
  box-shadow: none;
}

.unknown-cloud strong {
  width: 100%;
  color: #cf4f39;
  font-size: 40px;
  text-align: center;
}

.dictionary-scene,
.learning-cycle,
.lookup-steps,
.chunk-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dictionary-scene div {
  width: 78px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 6px solid #1f5f58;
  border-radius: 5px 16px 16px 5px;
  background: #fffdf9;
  color: #1f5f58;
  font-weight: 900;
}

.dictionary-scene span,
.learning-cycle span,
.lookup-steps span,
.chunk-chain span {
  min-width: 58px;
  padding: 12px 8px;
  border-radius: 50%;
  background: #fffdf9;
  color: #1f5f58;
  font-weight: 800;
  text-align: center;
}

.dictionary-scene i,
.learning-cycle i {
  color: #cf4f39;
  font-size: 22px;
  font-style: normal;
}

.learning-cycle {
  position: relative;
}

.learning-cycle b {
  position: absolute;
  top: 66px;
  color: #e5a92f;
  font-size: 52px;
}

.lookup-steps i,
.chunk-chain i {
  width: 30px;
  height: 4px;
  background: #e5a92f;
}

.idea-tree {
  position: relative;
  width: 290px;
  height: 170px;
}

.idea-tree strong {
  position: absolute;
  bottom: 0;
  left: 50%;
  padding: 14px 18px;
  transform: translateX(-50%);
  border-radius: 7px;
  background: #1f5f58;
  color: #fff;
}

.idea-tree i {
  position: absolute;
  top: 58px;
  left: 50%;
  width: 4px;
  height: 74px;
  background: #cf4f39;
}

.idea-tree i::before,
.idea-tree i::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 4px;
  background: #cf4f39;
}

.idea-tree i::before { right: 0; transform: rotate(-28deg); transform-origin: right; }
.idea-tree i::after { left: 0; transform: rotate(28deg); transform-origin: left; }

.idea-tree span {
  position: absolute;
  top: 12px;
  padding: 12px;
  border-radius: 7px;
  background: #fffdf9;
  color: #1f5f58;
  font-weight: 800;
}

.idea-tree span:nth-of-type(1) { left: 0; }
.idea-tree span:nth-of-type(2) { right: 0; }

.goodbye-translation {
  position: relative;
  width: 290px;
  height: 180px;
}

.goodbye-translation span,
.goodbye-translation strong {
  position: absolute;
  padding: 14px 18px;
  border-radius: 7px;
}

.goodbye-translation span {
  top: 12px;
  background: #fffdf9;
  color: #1f5f58;
}

.goodbye-translation span:first-child { left: 16px; }
.goodbye-translation span:nth-child(2) { right: 16px; }

.goodbye-translation strong {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f5f58;
  color: #fff;
  font-size: 24px;
}

.goodbye-translation i {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
  color: rgb(105 110 106 / 38%);
  font-style: normal;
  text-decoration: line-through;
}

.pocket {
  position: absolute;
  z-index: 3;
  bottom: -32px;
  left: 50%;
  width: 220px;
  height: 128px;
  transform: translateX(-50%);
  border: 9px solid #f9f7f0;
  border-radius: 18px 18px 90px 90px;
  background: #e85f45;
  box-shadow: 0 -9px 0 #253d3a;
}

.pocket::after {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translateX(-50%);
  border: 5px solid #f9f7f0;
  border-radius: 50%;
  background: #f0bb3c;
}

.empty-pocket {
  background: #ce6651;
  box-shadow: 0 -9px 0 #38423e;
}

.empty-pocket::after {
  display: none;
}

.nothing-mark {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 72%);
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
}

.key-shape {
  position: absolute;
  top: -116px;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  border: 10px solid #f0bb3c;
  border-radius: 50%;
  filter: drop-shadow(0 6px 5px rgb(44 48 45 / 18%));
}

.key-shape::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 28px;
  width: 82px;
  height: 12px;
  border-radius: 0 8px 8px 0;
  background: #f0bb3c;
}

.key-shape i,
.key-shape i::after {
  position: absolute;
  width: 12px;
  height: 22px;
  background: #f0bb3c;
}

.key-shape i {
  top: 14px;
  left: 70px;
}

.key-shape i::after {
  content: "";
  top: 0;
  left: 20px;
}

.scene-road {
  position: absolute;
  inset: 58% 0 0;
  background: #747d78;
}

.scene-road::after {
  content: "";
  position: absolute;
  top: 52%;
  right: 0;
  left: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, #f6e6a7 0 42px, transparent 42px 78px);
}

.car {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 58px;
  width: 238px;
  height: 116px;
  border-radius: 62px 44px 20px 20px;
  background: #e85f45;
  box-shadow: inset 0 -13px 0 rgb(87 43 34 / 12%);
}

.car::before {
  content: "";
  position: absolute;
  top: -48px;
  left: 54px;
  width: 132px;
  height: 72px;
  border-radius: 58px 58px 0 0;
  background: #e85f45;
}

.car-window {
  position: absolute;
  z-index: 1;
  top: -35px;
  left: 71px;
  width: 95px;
  height: 53px;
  border-radius: 38px 38px 4px 4px;
  background: #b8d8d2;
}

.car-door {
  position: absolute;
  top: 26px;
  left: 96px;
  width: 92px;
  height: 72px;
  border: 4px solid rgb(94 52 43 / 42%);
  border-radius: 8px 18px 10px 8px;
}

.car-door::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 20px;
  height: 5px;
  border-radius: 5px;
  background: #f8d7a6;
}

.car-wheel {
  position: absolute;
  bottom: -25px;
  width: 50px;
  height: 50px;
  border: 12px solid #303734;
  border-radius: 50%;
  background: #bfc5c0;
}

.car-wheel-left {
  left: 34px;
}

.car-wheel-right {
  right: 34px;
}

.car-person {
  z-index: 3;
  right: auto;
  left: 18px;
  bottom: 30px;
  transform: scale(0.82);
  transform-origin: bottom left;
}

.car-question-bubble {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 24px;
  width: 120px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgb(42 50 46 / 14%);
}

.car-question-bubble::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 30px;
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
  background: #fffdf8;
}

.car-question-bubble span {
  font-size: 34px;
}

.car-question-bubble strong {
  color: #e85f45;
  font-size: 34px;
}

.empty-hand {
  position: absolute;
  z-index: 5;
  bottom: 30px;
  left: 24px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 5px solid #fffdf8;
  border-radius: 50%;
  background: #e8d5b9;
  box-shadow: 0 8px 22px rgb(42 50 46 / 16%);
}

.empty-hand span {
  position: relative;
  font-size: 52px;
  filter: grayscale(1);
  opacity: 0.65;
}

.empty-hand::after,
.missing-key i {
  content: "";
  position: absolute;
  width: 82px;
  height: 7px;
  border-radius: 7px;
  background: #cf4f39;
  transform: rotate(-42deg);
}

.missing-key {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 24px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgb(42 50 46 / 14%);
}

.missing-key span {
  font-size: 45px;
  filter: grayscale(1);
  opacity: 0.65;
}

.creative-scene,
.recap-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7ddd0;
}

.creative-scene {
  gap: 10px;
}

.creative-block {
  padding: 16px 18px;
  border-radius: 7px;
  background: #fffdf9;
  color: #1f5f58;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgb(49 53 50 / 12%);
}

.creative-choice {
  color: #cf4f39;
  font-size: 28px;
  font-weight: 800;
}

.creative-spark {
  position: absolute;
  top: 50px;
  right: 54px;
  color: #e5a92f;
  font-size: 34px;
}

.empty-pet-bubble {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 190px;
  height: 120px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 5px solid #fffdf8;
  border-radius: 8px;
  background: #e8d5b9;
  box-shadow: 0 8px 24px rgb(42 50 46 / 16%);
}

.empty-pet-bubble span {
  filter: grayscale(1);
  font-size: 48px;
  opacity: 0.62;
}

.empty-pet-bubble i {
  position: absolute;
  width: 150px;
  height: 8px;
  border-radius: 8px;
  background: #cf4f39;
  transform: rotate(-34deg);
}

.key-question-bubble {
  position: absolute;
  z-index: 5;
  top: 22px;
  left: 18px;
  width: 146px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgb(42 50 46 / 14%);
}

.key-question-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30px;
  width: 23px;
  height: 23px;
  transform: rotate(45deg);
  background: #fffdf8;
}

.key-question-bubble span {
  font-size: 29px;
}

.key-question-bubble strong {
  color: #cf4f39;
  font-size: 32px;
}

.owned-key {
  position: absolute;
  z-index: 5;
  bottom: 34px;
  left: 24px;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 5px solid #fffdf8;
  border-radius: 50%;
  background: #e8d5b9;
  box-shadow: 0 8px 22px rgb(42 50 46 / 16%);
}

.owned-key span {
  font-size: 54px;
}

.owned-key b {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f5f58;
  color: #fff;
  font-size: 20px;
}

.recap-map {
  position: relative;
  width: min(100%, 360px);
  height: 290px;
}

.recap-map .orbit {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid #c9c0b4;
  border-radius: 7px;
  background: #fffdf9;
  color: #1f5f58;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgb(49 53 50 / 8%);
}

.orbit-1 { top: 10px; left: 18px; }
.orbit-2 { top: 12px; right: 28px; }
.orbit-3 { top: 78px; left: 0; }
.orbit-4 { top: 82px; right: 0; }
.orbit-5 { bottom: 72px; left: 2px; }
.orbit-6 { bottom: 78px; right: 16px; }
.orbit-7 { bottom: 10px; left: 22px; }
.orbit-8 { right: 16px; bottom: 8px; }

.recap-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recap-core strong {
  min-width: 92px;
  padding: 14px 12px;
  border: 1px solid #dfac3d;
  border-radius: 7px;
  background: #f4ca68;
  color: #40351e;
  font-size: 17px;
  text-align: center;
  box-shadow: 0 7px 17px rgb(90 68 25 / 15%);
}

.recap-rings {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
}

.recap-rings i {
  position: absolute;
  border: 4px solid rgb(31 95 88 / 28%);
  border-radius: 50%;
}

.recap-rings i:first-child { width: 180px; height: 180px; }
.recap-rings i:nth-child(2) { width: 130px; height: 130px; }
.recap-rings i:nth-child(3) { width: 80px; height: 80px; }

.recap-rings strong {
  z-index: 1;
  color: #cf4f39;
  font-size: 30px;
}

.recap-path {
  width: 290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recap-path i {
  width: 58px;
  height: 58px;
  border: 8px solid #fffdf9;
  border-radius: 50%;
  background: #1f5f58;
  box-shadow: 0 6px 16px rgb(45 50 47 / 15%);
}

.recap-path i:nth-child(2) { background: #e5a92f; }
.recap-path i:nth-child(3) { background: #e85f45; }

.recap-path span {
  color: #38403b;
  font-size: 40px;
}

.cat {
  position: absolute;
  z-index: 2;
  bottom: 68px;
  width: 74px;
  height: 100px;
  border-radius: 38px 38px 24px 24px;
  background: #fff7e8;
  box-shadow: inset 0 -9px 0 rgb(45 53 49 / 8%);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.cat-ear {
  position: absolute;
  z-index: -1;
  top: -10px;
  width: 30px;
  height: 30px;
  background: inherit;
  transform: rotate(45deg);
}

.cat-ear-left {
  left: 5px;
}

.cat-ear-right {
  right: 5px;
}

.cat-face {
  position: absolute;
  top: 27px;
  left: 50%;
  width: 48px;
  height: 31px;
  transform: translateX(-50%);
}

.cat-face b {
  position: absolute;
  top: 0;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #28332f;
}

.cat-face b:first-child {
  left: 8px;
}

.cat-face b:nth-child(2) {
  right: 8px;
}

.cat-face em {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 9px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50% 50% 65% 65%;
  background: #db816e;
}

.cat-face::before,
.cat-face::after {
  content: "";
  position: absolute;
  top: 19px;
  width: 18px;
  height: 1px;
  background: #65706a;
  box-shadow: 0 5px 0 #65706a;
}

.cat-face::before {
  left: -5px;
  transform: rotate(8deg);
}

.cat-face::after {
  right: -5px;
  transform: rotate(-8deg);
}

.cat-tail {
  position: absolute;
  z-index: -1;
  right: -22px;
  bottom: 12px;
  width: 34px;
  height: 55px;
  border: 9px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 30px 0 0;
  color: #fff7e8;
}

.cat-one {
  left: 52px;
}

.cat-two {
  left: 132px;
  background: #5b6661;
}

.cat-two .cat-tail {
  color: #5b6661;
}

.cat-two .cat-face b,
.cat-two .cat-face::before,
.cat-two .cat-face::after {
  background: #f8f2e8;
}

.scene.show-cats .cat {
  opacity: 1;
  transform: translateY(0);
}

.speaker {
  position: absolute;
  right: 24px;
  bottom: 32px;
  width: 108px;
  height: 164px;
}

.speaker-head {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: #d9a477;
}

.speaker-body {
  width: 108px;
  height: 104px;
  margin-top: -4px;
  border-radius: 44px 44px 8px 8px;
  background: #1f5f58;
}

.pet-bubble {
  position: absolute;
  z-index: 4;
  top: 28px;
  right: 22px;
  width: 184px;
  min-height: 88px;
  padding: 15px 15px 13px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 28px;
  align-items: center;
  gap: 3px;
  border: 4px solid #fffdf8;
  border-radius: 34px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgb(42 50 46 / 14%);
}

.pet-bubble::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -18px;
  width: 24px;
  height: 24px;
  background: #fffdf8;
  transform: rotate(45deg);
}

.pet-bubble span {
  font-size: 25px;
  line-height: 1;
}

.pet-bubble strong {
  color: #e85f45;
  font-size: 36px;
  line-height: 1;
}

.thought {
  position: absolute;
  bottom: 38px;
  left: 24px;
  width: 160px;
  height: 126px;
  border: 5px solid #fffdf8;
  border-radius: 8px;
  background: #e8d5b9;
  box-shadow: 0 8px 24px rgb(42 50 46 / 16%);
}

.thought::before,
.thought::after {
  content: "🐈";
  position: absolute;
  top: 26px;
  font-size: 44px;
}

.thought::before {
  left: 22px;
}

.thought::after {
  right: 22px;
}

.practice-copy {
  min-height: 104px;
  text-align: center;
}

.eyebrow {
  min-height: 20px;
  margin: 0 0 6px;
  color: #cf4f39;
  font-size: 13px;
  font-weight: 750;
}

.main-text {
  margin: 0;
  font-size: clamp(25px, 8vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
}

.lesson-page .main-text {
  font-size: clamp(23px, 6.8vw, 31px);
}

.lesson-page.compact-copy .main-text {
  font-size: clamp(20px, 5.8vw, 27px);
  line-height: 1.25;
}

.instruction {
  margin: 10px 0 0;
  color: #696e6a;
  font-size: 15px;
  white-space: pre-line;
}

.lesson-page .instruction {
  font-size: 14px;
  line-height: 1.5;
}

.voice-meter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  opacity: 0;
}

.voice-meter.active {
  opacity: 1;
}

.voice-meter span {
  width: 5px;
  height: 12px;
  border-radius: 4px;
  background: #e85f45;
  animation: voice 720ms ease-in-out infinite alternate;
}

.voice-meter span:nth-child(2),
.voice-meter span:nth-child(4) {
  animation-delay: 180ms;
}

.voice-meter span:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes voice {
  to { height: 34px; }
}

.practice-actions {
  display: grid;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  border-radius: 7px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: #1f5f58;
  color: #fff;
}

.primary-button.recording {
  background: #b63d30;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.compare-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-button {
  border: 1px solid #c5bbae;
  background: #fffdf9;
  color: #303632;
}

.status {
  min-height: 20px;
  margin: 0;
  color: #6e746f;
  font-size: 12px;
  text-align: center;
}

@media (max-height: 720px) {
  .app-shell {
    min-height: 100vh;
  }

  .practice {
    grid-template-rows: 40px minmax(220px, 40%) auto 32px auto 20px;
  }

  .scene {
    min-height: 220px;
  }
}

@media (min-width: 700px) {
  .app-shell {
    border-radius: 10px;
  }
}
