:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  --ink: #2d504d;
  --muted: #6b817d;
  --paper: #fffdf7;
  --line: #ddd5b9;
  --green: #58a879;
  --green-dark: #347a59;
  --gold: #f0b944;
  --coral: #e97668;
  --blue: #62acd6;
  --purple: #8b73bd;
  --shadow: 0 20px 48px rgba(52, 79, 68, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #eef7ea; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(240, 185, 68, .2) 0 125px, transparent 127px),
    radial-gradient(circle at 92% 28%, rgba(98, 172, 214, .15) 0 170px, transparent 172px),
    linear-gradient(145deg, #eef7e9, #fffaf1 58%, #f2eef9);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .13;
  background-image: radial-gradient(#6f9186 1px, transparent 1px);
  background-size: 27px 27px;
  content: "";
}
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid rgba(240, 185, 68, .78); outline-offset: 4px; }
svg { display: block; }
h1, h2, p { margin-top: 0; }

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 50px;
}

.topbar,
.brand,
.topbar-actions,
.section-heading,
.game-heading,
.task-heading,
.feedback-card,
.result-actions {
  display: flex;
  align-items: center;
}

.topbar {
  min-height: 66px;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  min-width: 0;
  gap: 12px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 900;
  background: linear-gradient(145deg, #e98a51, #bd6136);
  border: 4px solid #ffe2c8;
  border-radius: 19px;
  box-shadow: 0 7px 16px rgba(67, 87, 78, .14);
  transform: rotate(-4deg);
}

.brand strong,
.brand small { display: block; }
.brand strong {
  overflow: hidden;
  font-size: 23px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar-actions { flex: 0 0 auto; gap: 10px; }
.top-spark { color: var(--gold); font-size: 25px; }
.calm-badge,
.back-button {
  min-height: 49px;
  background: rgba(255, 253, 247, .94);
  border: 2px solid var(--line);
  border-radius: 17px;
}
.calm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.calm-badge span { color: var(--coral); font-size: 20px; }
.back-button { width: 49px; padding: 0; font-size: 23px; font-weight: 900; }

.eyebrow {
  margin: 0 0 8px;
  color: #397b62;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.hint-button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  font-weight: 900;
  border-radius: 17px;
}
.primary-button {
  color: white;
  background: var(--green-dark);
  border: 0;
  box-shadow: 0 8px 0 #286248;
}
.primary-button:hover { background: #2f704f; transform: translateY(-1px); }
.primary-button:active { box-shadow: 0 4px 0 #286248; transform: translateY(4px); }
.secondary-button { background: white; border: 3px solid var(--line); }
.hint-button {
  width: 100%;
  margin-top: 13px;
  color: #5e563c;
  background: #fff1bd;
  border: 2px solid #e3c86a;
}
.hint-button:disabled { opacity: .62; }

.hero {
  display: grid;
  min-height: 535px;
  align-items: center;
  grid-template-columns: 1.02fr .98fr;
  gap: 40px;
  padding: clamp(38px, 6vw, 68px);
  overflow: hidden;
  background: rgba(255, 253, 247, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 19px;
  font-size: clamp(50px, 6.2vw, 74px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.52;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}
.hero-facts span { color: var(--muted); font-size: 13px; font-weight: 900; }
.hero-facts strong { margin-right: 4px; color: var(--ink); font-size: 24px; }

.hero-stage {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  background: linear-gradient(155deg, #e8f4e7, #fff0bd);
  border: 8px solid white;
  border-radius: 42px 35px 47px 34px;
  box-shadow: 0 20px 42px rgba(55, 76, 68, .18);
  transform: rotate(1.5deg);
}
.hero-stage::after {
  position: absolute;
  right: 10%;
  bottom: 7%;
  left: 10%;
  height: 24px;
  border-radius: 50%;
  background: rgba(55, 78, 65, .13);
  filter: blur(7px);
  content: "";
}
.hero-stage .fox-character {
  position: relative;
  z-index: 2;
  width: min(92%, 350px);
  height: 390px;
}
.hello-bubble,
.floating-word {
  position: absolute;
  z-index: 3;
  font-family: Georgia, serif;
  font-weight: 900;
  background: white;
  border: 3px solid #c9badd;
  box-shadow: 0 7px 0 rgba(92, 76, 119, .1);
}
.hello-bubble {
  top: 18px;
  right: 20px;
  padding: 9px 15px;
  color: #67567f;
  font-size: 21px;
  border-radius: 20px 20px 4px 20px;
}
.floating-word {
  padding: 7px 11px;
  color: var(--ink);
  font-size: 15px;
  border-color: #d8d0af;
  border-radius: 13px;
}
.word-one { top: 25%; left: 5%; transform: rotate(-7deg); }
.word-two { right: 5%; bottom: 18%; transform: rotate(6deg); }

.learn-section { margin-top: 45px; }
.section-heading {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 47px);
  font-weight: 900;
  letter-spacing: -.035em;
}
.section-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mode-card {
  display: grid;
  min-height: 205px;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 24px;
  text-align: left;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 10px 0 rgba(102, 91, 62, .1);
  transition: transform 150ms ease, border-color 150ms ease;
}
.mode-card:hover { border-color: var(--green); transform: translateY(-3px); }
.mode-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  background: #e7f4e8;
  border-radius: 25px 20px 28px 21px;
  font-size: 39px;
}
.mode-body .mode-icon { background: #eee8f8; }
.mode-copy small,
.mode-copy strong,
.mode-copy span,
.mode-progress small { display: block; }
.mode-copy > small {
  margin-bottom: 4px;
  color: #397b62;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mode-copy strong { margin-bottom: 7px; font-size: 25px; }
.mode-copy span { color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.4; }
.mode-progress {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 13px;
  background: #f3f2e9;
  border-radius: 15px;
}
.mode-progress b { font-size: 20px; }
.mode-progress small { color: var(--muted); font-weight: 900; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.steps-grid article {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 25px;
}
.steps-grid article > b {
  display: grid;
  flex: 0 0 51px;
  height: 51px;
  place-items: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 25px;
  background: var(--green);
  border: 5px solid #d8efe0;
  border-radius: 50%;
}
.steps-grid article:nth-child(2) > b { background: #dca33e; border-color: #fff0bd; }
.steps-grid article:nth-child(3) > b { background: var(--purple); border-color: #e9e0f7; }
.steps-grid strong,
.steps-grid small { display: block; }
.steps-grid strong { margin-bottom: 6px; font-size: 18px; }
.steps-grid small { color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.4; }
.grownup-tip {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  padding: 18px 22px;
  background: #fff9e6;
  border: 2px solid #eadcb1;
  border-radius: 22px;
}
.grownup-tip > span { font-size: 28px; }
.grownup-tip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.grownup-tip strong { display: block; color: var(--ink); }

.game-heading {
  justify-content: space-between;
  gap: 24px;
  margin: 15px 0 20px;
}
.game-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(37px, 5vw, 57px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
}
.game-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.round-progress {
  display: grid;
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 76px;
  place-items: center;
  padding: 10px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 24px;
}
.round-progress strong { font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.round-progress span { color: var(--muted); font-size: 11px; font-weight: 900; }

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(355px, .9fr);
  gap: 18px;
  align-items: stretch;
}
.character-panel,
.task-panel {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}
.character-panel {
  min-height: 730px;
  padding: 19px;
  background: linear-gradient(155deg, #e9f5e8, #fff1c8);
  border-radius: 40px 31px 45px 33px;
}
.character-panel::before {
  position: absolute;
  top: -80px;
  left: -70px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .46);
  content: "";
}
.instruction-bubble {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 4;
  min-width: 170px;
  padding: 11px 17px;
  background: white;
  border: 3px solid #c9badd;
  border-radius: 20px 20px 20px 5px;
  box-shadow: 0 9px 0 rgba(92, 76, 119, .1);
}
.instruction-bubble small,
.instruction-bubble strong,
.instruction-bubble span { display: block; }
.instruction-bubble small { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.instruction-bubble strong { margin: 2px 0; color: #67567f; font-family: Georgia, serif; font-size: 25px; }
.instruction-bubble span { color: var(--muted); font-size: 12px; font-weight: 900; }

.character-stage {
  position: relative;
  display: grid;
  min-height: 690px;
  align-content: end;
  justify-items: center;
}
.character-stage::after {
  position: absolute;
  right: 12%;
  bottom: 67px;
  left: 12%;
  height: 27px;
  border-radius: 50%;
  background: rgba(55, 78, 65, .14);
  filter: blur(8px);
  content: "";
}
.fox-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  aspect-ratio: 400 / 560;
}
.fox-character { width: 100%; height: 100%; }
.outfit-strip {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100%, 480px);
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: -20px;
}
.outfit-slot {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, .72);
  border: 2px dashed #c6bda5;
  border-radius: 14px;
}
.outfit-slot.filled { background: white; border-style: solid; border-color: #80b995; }
.outfit-slot svg { width: 100%; height: 100%; }
.outfit-slot i { width: 10px; height: 10px; border-radius: 50%; background: #d4cdbb; }

.task-panel {
  padding: 24px;
  background: rgba(255, 253, 247, .98);
  border-radius: 34px 27px 39px 29px;
}
.task-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--purple) 0 27px, var(--gold) 27px 54px, var(--coral) 54px 81px, var(--green) 81px 108px);
  content: "";
}
.task-heading {
  justify-content: space-between;
  gap: 16px;
  margin: 7px 0 18px;
}
.task-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.task-heading > span { font-size: 39px; }

.wardrobe-grid { display: grid; gap: 11px; }
.clothing-card {
  position: relative;
  display: grid;
  min-height: 101px;
  grid-template-columns: 82px 1fr 31px;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  text-align: left;
  background: #fffaf1;
  border: 3px solid #e6ddcc;
  border-radius: 22px 17px 24px 18px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.clothing-card:hover:not(:disabled) { border-color: #c5b3df; transform: translateY(-2px); }
.clothing-card.wrong { border-color: #df675d; background: #fff0ed; animation: shake 360ms ease; }
.clothing-card.hinted { border-color: var(--gold); background: #fff7d8; animation: hintPulse 1s ease-in-out infinite; }
.clothing-card.correct { border-color: var(--green); background: #e9f6e8; }
.clothing-picture {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  background: white;
  border-radius: 18px;
}
.clothing-picture svg { width: 72px; height: 68px; }
.clothing-name strong,
.clothing-name small { display: block; }
.clothing-name strong { margin-bottom: 3px; font-size: 22px; }
.clothing-name small { color: var(--muted); font-size: 13px; font-weight: 900; }
.clothing-card > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: #bdb3a2;
  border-radius: 50%;
}
.clothing-card.correct > b { background: var(--green); }

.feedback-card {
  min-height: 76px;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #f3f1e9;
  border-radius: 19px;
}
.feedback-card > span {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--purple);
  border-radius: 50%;
  font-weight: 900;
}
.feedback-card p { margin: 0; }
.feedback-card strong,
.feedback-card small { display: block; }
.feedback-card strong { margin-bottom: 3px; font-size: 14px; }
.feedback-card small { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.feedback-card.try { background: #fff0ed; }
.feedback-card.try > span { background: var(--coral); }
.feedback-card.hint { background: #fff6d7; }
.feedback-card.hint > span { background: #dca33e; }
.feedback-card.good { background: #e9f6e8; }
.feedback-card.good > span { background: var(--green); }

.body-layout .character-panel { min-height: 750px; }
.body-stage { min-height: 710px; }
.hotspot-layer { position: absolute; inset: 0; z-index: 5; }
.body-hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: max(48px, var(--size));
  min-width: 48px;
  height: max(48px, var(--size));
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}
.body-hotspot span {
  position: absolute;
  inset: 22%;
  border: 3px dashed rgba(53, 91, 88, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: inset 130ms ease, background 130ms ease, border-color 130ms ease;
}
.body-hotspot:hover span,
.body-hotspot:focus-visible span { inset: 13%; border-color: var(--purple); background: rgba(238, 232, 248, .54); }
.body-hotspot.hinted span { inset: 7%; border-style: solid; border-color: var(--gold); background: rgba(255, 240, 178, .54); animation: hintPulse 1s ease-in-out infinite; }
.body-hotspot.wrong span { inset: 7%; border-style: solid; border-color: var(--coral); background: rgba(255, 221, 216, .6); animation: shakeSpot 360ms ease; }
.body-hotspot.correct span { inset: 7%; border-style: solid; border-color: var(--green); background: rgba(219, 244, 224, .62); }
.body-hotspot.correct::after {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
  content: "✓";
  font-size: 18px;
  font-weight: 900;
}
.touch-note {
  position: relative;
  z-index: 6;
  margin: -8px 0 10px;
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .82);
  border: 2px solid rgba(220, 211, 186, .82);
  border-radius: 17px;
  font-size: 12px;
  font-weight: 900;
}

.word-card {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: linear-gradient(145deg, #eee8f8, #f7f2ff);
  border: 3px solid #cbbce0;
  border-radius: 28px;
}
.word-card small,
.word-card strong,
.word-card span { display: block; }
.word-card small { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.word-card strong { color: #67567f; font-family: Georgia, serif; font-size: 44px; line-height: 1; }
.word-card span { color: var(--muted); font-size: 15px; font-weight: 900; }
.word-card.hinted { border-color: var(--gold); background: #fff6d4; }
.body-word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.body-word-bank span {
  padding: 8px 10px;
  color: var(--muted);
  background: #f1efe8;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}
.body-word-bank span.current { color: #67567f; background: #eee8f8; border-color: #cbbce0; }

.result-card {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  background: rgba(255, 253, 247, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.result-character {
  position: relative;
  display: grid;
  min-height: 580px;
  place-items: end center;
  background: linear-gradient(155deg, #e9f5e8, #fff1c8);
  border: 7px solid white;
  border-radius: 39px;
}
.result-character::after {
  position: absolute;
  right: 10%;
  bottom: 4%;
  left: 10%;
  height: 25px;
  border-radius: 50%;
  background: rgba(55, 78, 65, .13);
  filter: blur(7px);
  content: "";
}
.result-character .fox-character { position: relative; z-index: 2; width: min(96%, 390px); height: 540px; }
.medal {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  background: white;
  border: 4px solid #c9badd;
  border-radius: 26px;
  font-size: 37px;
  transform: rotate(3deg);
}
.result-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .98;
}
.result-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; font-weight: 800; }
.learned-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.learned-list span {
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
  background: #f3f2e9;
  border: 2px solid #e2dcc9;
  border-radius: 15px;
}
.learned-list strong,
.learned-list small { display: block; overflow-wrap: anywhere; }
.learned-list strong { font-size: 14px; }
.learned-list small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 800; }
.result-stars {
  margin: 16px 0;
  color: #e3a82f;
  font-size: 42px;
  letter-spacing: .08em;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.result-stats span {
  display: grid;
  min-height: 70px;
  place-items: center;
  padding: 8px;
  background: #f3f2e9;
  border-radius: 16px;
}
.result-stats strong { font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.result-stats small { color: var(--muted); font-size: 10px; font-weight: 900; }
.result-actions { flex-wrap: wrap; gap: 10px; margin-top: 20px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes shakeSpot {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 185, 68, 0); }
  50% { box-shadow: 0 0 0 7px rgba(240, 185, 68, .24); }
}

@media (max-width: 980px) {
  .play-layout { grid-template-columns: 1fr; }
  .character-panel { min-height: 690px; }
  .character-stage { min-height: 650px; }
  .fox-wrap { width: min(100%, 430px); }
  .task-panel { width: min(100%, 760px); margin: 0 auto; }
  .wardrobe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-card { grid-template-columns: 1fr; }
  .result-character { min-height: 520px; }
  .result-character .fox-character { height: 485px; }
}

@media (max-width: 760px) {
  .hero {
    min-height: 820px;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 32px 25px;
  }
  .hero-stage { min-height: 410px; }
  .mode-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; margin-top: 9px; text-align: left; }
  .game-heading { align-items: flex-end; }
  .wardrobe-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .app {
    width: min(100% - 18px, 1120px);
    padding-top: 11px;
  }
  .topbar { align-items: flex-start; margin-bottom: 15px; }
  .brand { gap: 8px; }
  .brand-mark { width: 50px; height: 50px; font-size: 23px; }
  .brand strong { max-width: 178px; font-size: 17px; white-space: normal; line-height: 1.05; }
  .brand small,
  .calm-badge { display: none; }
  .topbar-actions { gap: 6px; }
  .back-button { width: 50px; min-height: 50px; }
  .hero { min-height: 750px; padding: 27px 20px; border-radius: 34px; }
  .hero h1 { font-size: 49px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-stage { min-height: 370px; }
  .hero-stage .fox-character { height: 350px; }
  .floating-word { display: none; }
  .mode-card {
    min-height: 190px;
    grid-template-columns: 69px minmax(0, 1fr);
    gap: 12px;
    padding: 17px;
  }
  .mode-icon { width: 66px; height: 66px; font-size: 32px; }
  .mode-copy strong { font-size: 22px; }
  .mode-progress { display: grid; gap: 2px; }
  .mode-progress small { font-size: 11px; }
  .steps-grid article { min-height: 103px; }
  .game-heading { gap: 10px; }
  .game-heading h1 { font-size: 35px; overflow-wrap: anywhere; }
  .game-heading > div > p:last-child { font-size: 13px; }
  .round-progress { min-width: 83px; min-height: 67px; padding: 7px; }
  .round-progress strong { font-size: 21px; }
  .character-panel { min-height: 625px; padding: 10px; }
  .instruction-bubble { top: 14px; left: 14px; min-width: 145px; padding: 8px 12px; }
  .instruction-bubble strong { font-size: 21px; }
  .character-stage { min-height: 595px; }
  .fox-wrap { width: min(100%, 360px); }
  .outfit-strip { gap: 4px; margin-top: -7px; }
  .outfit-slot { min-height: 44px; border-radius: 10px; }
  .task-panel { padding: 19px 12px; }
  .task-heading h2 { font-size: 27px; }
  .task-heading > span { font-size: 32px; }
  .clothing-card {
    min-height: 88px;
    grid-template-columns: 70px 1fr 30px;
    gap: 9px;
    padding: 7px 9px;
  }
  .clothing-picture { width: 66px; height: 66px; }
  .clothing-picture svg { width: 62px; height: 58px; }
  .clothing-name strong { font-size: 20px; }
  .body-layout .character-panel { min-height: 640px; }
  .body-stage { min-height: 610px; }
  .body-hotspot { width: max(46px, var(--size)); min-width: 46px; height: max(46px, var(--size)); min-height: 46px; }
  .touch-note { margin-top: -5px; text-align: center; }
  .word-card { min-height: 145px; }
  .word-card strong { font-size: 38px; }
  .body-word-bank span { padding: 7px 8px; }
  .result-card { padding: 18px 13px 27px; border-radius: 34px; }
  .result-character { min-height: 455px; }
  .result-character .fox-character { height: 430px; }
  .result-copy h1 { font-size: 44px; }
  .learned-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-actions { display: grid; }
  .result-actions button { width: 100%; }
}

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