:root {
  --ink: #2f514b;
  --muted: #70827b;
  --paper: #fffdf7;
  --cream: #fff5d8;
  --line: #ded6ba;
  --green: #659b78;
  --green-dark: #3e7357;
  --green-pale: #e8f3e9;
  --yellow: #efbd59;
  --yellow-pale: #fff2c5;
  --coral: #dc7e70;
  --coral-pale: #fff0eb;
  --blue: #7599b2;
  --shadow: 0 18px 48px rgba(51, 78, 66, 0.11);
}

* { box-sizing: border-box; }
.animal-portrait { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 7px 7px rgba(49, 73, 65, .15)); }

html {
  min-width: 0;
  background: #f5f8ed;
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 6% 9%, rgba(239, 189, 89, 0.2) 0 115px, transparent 116px),
    radial-gradient(circle at 96% 30%, rgba(117, 153, 178, 0.14) 0 105px, transparent 106px),
    linear-gradient(145deg, #f2f8ef 0%, #fffaf0 58%, #f4f1e8 100%);
}

button { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible {
  outline: 4px solid rgba(91, 146, 177, 0.38);
  outline-offset: 3px;
}

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

.topbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 17px;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(72, 121, 87, 0.2);
  color: #fff;
}

.brand-mark i { font-size: 26px; font-style: normal; }
.brand-mark b { position: absolute; top: 2px; right: 4px; color: var(--yellow); font-size: 12px; }
.brand > span:last-child { min-width: 0; }
.brand strong,
.brand small { display: block; }
.brand strong { font-size: 19px; letter-spacing: -0.03em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-spark { color: var(--yellow); font-size: 24px; }

.back-button,
.garden-badge {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.84);
}

.back-button {
  width: 48px;
  padding: 0;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.back-button:hover { background: #fff; transform: translateY(-1px); }

.garden-badge {
  gap: 6px;
  padding: 0 13px;
}

.garden-badge > span { color: var(--coral); font-size: 18px; }
.garden-badge strong { font-family: Georgia, serif; font-size: 17px; }
.garden-badge small { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  min-height: 480px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 44px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 34px 50px 60px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
p { overflow-wrap: anywhere; }

.hero h1,
.game-header h1,
.result-copy h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 { max-width: 520px; font-size: clamp(44px, 5.3vw, 70px); }

.hero-copy > p:not(.eyebrow) {
  max-width: 530px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.hint-button {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 0;
  background: var(--green);
  box-shadow: 0 8px 0 var(--green-dark);
  color: #fff;
}

.primary-button:hover { transform: translateY(-2px); }
.primary-button:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--green-dark); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-facts span {
  display: flex;
  min-height: 48px;
  align-items: baseline;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 15px;
  background: #f0f4e9;
}

.hero-facts strong { font-family: Georgia, serif; font-size: 21px; }
.hero-facts small { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }

.hero-art {
  display: grid;
  min-width: 0;
  padding: 34px 42px 34px 0;
  place-items: center;
}

.hero-garden {
  position: relative;
  width: min(100%, 455px);
  aspect-ratio: 1.08;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 38px;
  background:
    radial-gradient(circle at 74% 17%, #fff1ad 0 47px, transparent 48px),
    linear-gradient(180deg, #dfeff0 0 61%, #9fc485 61% 100%);
  box-shadow: 0 18px 38px rgba(55, 82, 72, 0.16);
}

.hero-garden::after {
  position: absolute;
  right: -5%;
  bottom: -14%;
  left: 28%;
  height: 48%;
  border-radius: 50% 50% 0 0;
  background: #7aac68;
  content: "";
}

.hero-sun { position: absolute; top: 10%; right: 19%; color: #fff8c9; font-size: 23px; }
.hero-animal { position: absolute; z-index: 3; bottom: -20px; left: -3%; width: 51%; }
.hero-animal svg { display: block; width: 100%; }

.hero-flowers {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 5%;
  display: flex;
  width: 72%;
  align-items: flex-end;
  justify-content: center;
}

.hero-flowers svg { width: 16%; min-width: 0; transform-origin: bottom; }
.hero-flowers svg:nth-child(2n) { transform: scale(0.78); }
.hero-flowers svg:nth-child(3n) { transform: scale(0.9); }

.hero-can {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 8%;
  display: grid;
  width: 58px;
  height: 48px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 15px 20px 14px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.hero-sign {
  position: absolute;
  z-index: 5;
  top: 9%;
  left: 8%;
  padding: 8px 11px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: var(--coral);
  box-shadow: 0 5px 12px rgba(60, 75, 64, 0.14);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.how-section,
.levels-section,
.garden-section { padding-top: 56px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.steps-grid,
.levels-grid { display: grid; gap: 14px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }

.steps-grid article {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.9);
}

.steps-grid article > b {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50% 50% 43% 43%;
  background: var(--green);
  box-shadow: 0 5px 12px rgba(54, 77, 69, 0.13);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
}

.steps-grid article:nth-child(2) > b { background: #d69b42; }
.steps-grid article:nth-child(3) > b { background: var(--blue); }
.steps-grid strong,
.steps-grid small { display: block; }
.steps-grid strong { margin-bottom: 6px; font-size: 17px; }
.steps-grid small { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }

.levels-grid { grid-template-columns: repeat(3, 1fr); }

.level-card {
  display: flex;
  min-width: 0;
  min-height: 370px;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.level-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 16px 34px rgba(49, 76, 68, 0.12); }
.level-top,
.level-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.level-top b {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 16px;
}

.level-top small { color: var(--accent); font-size: 13px; font-weight: 900; }

.mini-garden {
  display: flex;
  height: 112px;
  align-items: flex-end;
  justify-content: center;
  margin: 12px 0 15px;
  overflow: hidden;
  padding: 8px 6px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--pale) 0 66%, #c5daa9 66% 100%);
}

.mini-garden svg { width: 13%; min-width: 0; }
.mini-garden svg:nth-child(2n) { transform: scale(0.78); transform-origin: bottom; }
.level-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.level-copy small { color: var(--accent); font-family: Georgia, serif; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.level-copy strong { margin: 5px 0 8px; font-size: 23px; letter-spacing: -0.035em; }
.level-copy span { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.45; }
.level-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 900; }
.level-footer span { color: var(--muted); }
.level-footer b { color: var(--accent); }

.collection-garden {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-height: 190px;
  align-items: end;
  overflow: hidden;
  padding: 18px 18px 0;
  border: 3px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 18%, #fff0a4 0 38px, transparent 39px),
    linear-gradient(180deg, #e1eff0 0 64%, #b8d59c 64% 100%);
  box-shadow: 0 12px 32px rgba(53, 79, 68, 0.08);
}

.collection-garden > span { display: grid; min-width: 0; align-items: end; }
.collection-garden svg { display: block; width: 100%; }
.collection-garden svg.locked { opacity: 0.72; filter: grayscale(0.7); }
.collection-garden > span:nth-child(3n) { transform: scale(0.8); transform-origin: bottom; }
.collection-garden > span:nth-child(4n) { transform: scale(0.9); transform-origin: bottom; }

.parent-note {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 23px;
  border: 2px solid #d4d7c8;
  border-radius: 24px;
  background: rgba(238, 243, 234, 0.95);
}

.parent-note > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
}

.parent-note p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.55; }
.parent-note strong { color: var(--ink); }

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 3px 12px;
}

.game-header h1 { font-size: clamp(37px, 5vw, 61px); }
.game-header > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 800; }

.progress-number {
  display: grid;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  place-items: center;
  align-content: center;
  border: 3px solid var(--line);
  border-radius: 29px;
  background: var(--paper);
}

.progress-number strong { font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.progress-number small { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 900; }

.progress-track {
  height: 12px;
  overflow: hidden;
  margin: 6px 0 14px;
  border-radius: 999px;
  background: #dfdfd3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #8bb585);
  transition: width 0.28s ease;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  gap: 16px;
}

.story-card,
.choice-card {
  min-width: 0;
  border: 3px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(50, 75, 68, 0.08);
}

.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, #f4faf2 0%, #fff9e8 100%);
}

.place-label {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff;
}

.place-label > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--yellow-pale);
  color: #9a6b25;
  font-size: 20px;
}

.place-label small,
.place-label strong { display: block; }
.place-label small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.place-label strong { margin-top: 3px; font-size: 15px; }

.story-art {
  position: relative;
  min-height: 300px;
  flex: 1;
  overflow: hidden;
  margin: 12px 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 25%, #fff2b5 0 80px, transparent 81px),
    linear-gradient(180deg, #dcecef 0 70%, #cfbb91 70% 100%);
}

.story-art::after {
  position: absolute;
  right: 8%;
  bottom: 7%;
  left: 8%;
  height: 30px;
  border-radius: 50%;
  background: rgba(49, 86, 80, 0.13);
  content: "";
}

.scene-animal { position: absolute; z-index: 2; bottom: -5px; width: 57%; }
.scene-animal svg { display: block; width: 100%; }
.needs-help { left: -4%; }
.can-help { right: -5%; transform: scale(0.79); transform-origin: bottom right; }

.scene-prop {
  position: absolute;
  z-index: 3;
  top: 16%;
  left: 50%;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 21px;
  background: var(--coral);
  box-shadow: 0 7px 18px rgba(61, 73, 64, 0.15);
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  transform: translateX(-50%) rotate(-4deg);
}

.story-art > i {
  position: absolute;
  z-index: 4;
  top: 9%;
  left: 22%;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 900;
}

.story-text {
  display: flex;
  min-height: 110px;
  gap: 10px;
  padding: 15px;
  border: 2px solid #e4ddc9;
  border-radius: 21px;
  background: #fffdf8;
}

.story-text > span { color: var(--green); font-family: Georgia, serif; font-size: 36px; font-weight: 900; line-height: 0.9; }
.story-text p { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.48; }

.choice-card { padding: 24px; }

.choice-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.choice-heading h2 { max-width: 560px; margin: 0; font-size: clamp(28px, 3.4vw, 41px); letter-spacing: -0.045em; line-height: 1.04; }
.choice-heading > span {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 50% 50% 43% 43%;
  background: var(--coral);
  box-shadow: 0 5px 0 #a95b51;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.answers-grid { display: grid; gap: 10px; }

.answer-card {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 48px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 2px solid #dedacc;
  border-radius: 20px;
  background: #fffefa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.answer-card:not(:disabled):hover { transform: translateX(3px); border-color: var(--green); background: #f7fbf5; }

.answer-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #edf0e8;
  color: var(--green-dark);
  font-size: 21px;
  font-weight: 900;
}

.answer-card > span:nth-child(2) { min-width: 0; }
.answer-card small,
.answer-card strong { display: block; }
.answer-card small { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.answer-card strong { font-size: 13px; line-height: 1.36; }
.answer-card > b { color: #aaa99c; font-size: 18px; text-align: center; }
.answer-card.wrong { border-color: #e3a399; background: var(--coral-pale); color: #8c554d; }
.answer-card.wrong .answer-icon { background: var(--coral); color: #fff; }
.answer-card.wrong > b { color: var(--coral); }
.answer-card.correct { border-color: #79ae8a; background: var(--green-pale); color: var(--green-dark); }
.answer-card.correct .answer-icon { background: var(--green); color: #fff; }
.answer-card.correct > b { color: var(--green-dark); }
.answer-card:disabled { cursor: default; opacity: 1; }

.feedback {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding: 13px 15px;
  border-radius: 20px;
}

.feedback > span:not(.feedback-flower) {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 15px;
  font-size: 22px;
  font-weight: 900;
}

.feedback-flower { width: 54px; height: 64px; flex: 0 0 54px; overflow: hidden; }
.feedback-flower svg { width: 54px; transform: translateY(-8px); }
.feedback strong,
.feedback small { display: block; }
.feedback strong { margin-bottom: 4px; font-size: 14px; }
.feedback small { font-size: 11px; font-weight: 800; line-height: 1.4; }
.neutral-feedback { background: #f0f2eb; color: var(--muted); }
.neutral-feedback > span { background: #fff; color: var(--green); }
.wrong-feedback { background: var(--coral-pale); color: #8c5952; }
.wrong-feedback > span { background: #fff; color: var(--coral); }
.hint-feedback { background: var(--yellow-pale); color: #806123; }
.hint-feedback > span { background: #fff; color: #c38b27; }
.correct-feedback { background: var(--green-pale); color: var(--green-dark); }

.game-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 13px;
}

.hint-button,
.secondary-button {
  padding: 0 19px;
  border: 2px solid #e0bd62;
  background: var(--yellow-pale);
  color: #805f1f;
}

.hint-button:hover,
.secondary-button:hover { transform: translateY(-2px); }
.hint-button:disabled { cursor: default; opacity: 0.6; transform: none; }
.next-button { min-width: 220px; }

.result-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 620px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 42px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.result-garden {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 17%, #fff0a8 0 64px, transparent 65px),
    linear-gradient(180deg, #dceef0 0 64%, #a8ca8b 64% 100%);
}

.result-garden::after {
  position: absolute;
  right: -10%;
  bottom: -15%;
  left: 20%;
  height: 45%;
  border-radius: 50% 50% 0 0;
  background: #80ac6f;
  content: "";
}

.result-sun { position: absolute; top: 12%; right: 19%; color: #fff9d6; font-size: 32px; }
.result-flowers { position: absolute; z-index: 2; right: 0; bottom: 1%; left: 24%; display: flex; align-items: flex-end; }
.result-flowers svg { width: 14%; min-width: 0; }
.result-flowers svg:nth-child(2n) { transform: scale(0.78); transform-origin: bottom; }
.result-animal { position: absolute; z-index: 3; bottom: -8px; left: -8%; width: 59%; }
.result-animal svg { display: block; width: 100%; }
.result-garden > b {
  position: absolute;
  z-index: 4;
  top: 11%;
  left: 8%;
  padding: 9px 12px;
  border: 4px solid #fff;
  border-radius: 14px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.result-copy h1 { font-size: clamp(42px, 5vw, 65px); }
.result-copy > p:not(.eyebrow) { margin: 20px 0 12px; color: var(--muted); font-size: 15px; font-weight: 700; line-height: 1.55; }
.stars { margin: 6px 0 14px; color: var(--yellow); font-size: 38px; letter-spacing: 0.08em; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-stats span { min-width: 0; padding: 12px; border-radius: 17px; background: #f1f3ed; text-align: center; }
.result-stats strong,
.result-stats small { display: block; }
.result-stats strong { font-family: Georgia, serif; font-size: 24px; }
.result-stats small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.result-copy blockquote { margin: 16px 0; padding: 14px 17px; border-left: 5px solid var(--green); border-radius: 0 16px 16px 0; background: var(--green-pale); color: var(--green-dark); font-size: 13px; font-weight: 900; line-height: 1.45; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .secondary-button { border-color: var(--line); background: #f4f3ed; color: var(--ink); }

.fatal-error {
  margin-top: 80px;
  padding: 40px;
  border: 3px solid var(--coral);
  border-radius: 32px;
  background: var(--paper);
}

@media (max-width: 930px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 44px 20px; }
  .hero-art { padding: 15px 44px 42px; }
  .hero-garden { width: min(100%, 510px); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 96px; }
  .levels-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 230px; display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 18px; }
  .level-top { grid-column: 1 / -1; }
  .mini-garden { height: 105px; margin: 10px 0; }
  .level-copy { align-self: center; }
  .level-footer { grid-column: 1 / -1; }
  .collection-garden { grid-template-columns: repeat(8, 1fr); min-height: 250px; }
  .game-layout { grid-template-columns: 1fr; }
  .story-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 12px; }
  .place-label { grid-column: 1 / -1; }
  .story-art { min-height: 310px; margin: 0; }
  .story-text { min-height: 310px; align-items: center; }
  .result-card { grid-template-columns: 0.84fr 1.16fr; }
  .result-copy { padding: 35px; }
}

@media (max-width: 700px) {
  .app { width: min(1120px, calc(100% - 20px)); padding-top: 12px; }
  .topbar { margin-bottom: 10px; }
  .garden-badge { width: 48px; padding: 0; gap: 0; }
  .garden-badge strong,
  .garden-badge small { display: none; }
  .hero { border-radius: 32px; }
  .hero-copy { padding: 36px 25px 15px; }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-art { padding: 12px 24px 28px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; margin-top: 10px; text-align: left; }
  .collection-garden { grid-template-columns: repeat(6, 1fr); min-height: 320px; }
  .game-header { align-items: flex-start; }
  .progress-number { width: 72px; height: 72px; flex-basis: 72px; border-radius: 23px; }
  .progress-number strong { font-size: 24px; }
  .story-card { display: flex; }
  .story-art { min-height: 300px; }
  .story-text { min-height: 0; align-items: flex-start; }
  .choice-card { padding: 18px; }
  .choice-heading h2 { font-size: 30px; }
  .result-card { grid-template-columns: 1fr; }
  .result-garden { min-height: 360px; }
}

@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 15px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; }
  .top-actions { gap: 6px; }
  .back-button,
  .garden-badge { width: 44px; min-height: 44px; border-radius: 14px; }
  .hero h1 { font-size: 44px; }
  .hero-copy { padding-inline: 20px; }
  .hero-copy .primary-button { width: 100%; }
  .hero-facts { width: 100%; }
  .hero-facts span { flex: 1; min-width: 82px; justify-content: center; }
  .hero-art { padding-inline: 16px; }
  .hero-garden { border-width: 6px; border-radius: 29px; }
  .how-section,
  .levels-section,
  .garden-section { padding-top: 43px; }
  .section-heading h2 { font-size: 34px; }
  .steps-grid article { padding: 14px; }
  .level-card { display: flex; min-height: 355px; }
  .mini-garden { height: 105px; }
  .collection-garden { grid-template-columns: repeat(4, 1fr); min-height: 510px; padding-inline: 10px; }
  .parent-note { align-items: flex-start; padding: 16px; }
  .game-header h1 { font-size: 35px; }
  .game-header > div > p:last-child { font-size: 12px; }
  .progress-number { width: 66px; height: 66px; flex-basis: 66px; }
  .story-card,
  .choice-card { border-radius: 27px; }
  .story-card { padding: 12px; }
  .story-art { min-height: 280px; }
  .story-text p { font-size: 13px; }
  .choice-card { padding: 15px 12px; }
  .choice-heading { gap: 10px; }
  .choice-heading h2 { font-size: 28px; }
  .choice-heading > span { width: 48px; height: 48px; flex-basis: 48px; }
  .answer-card { min-height: 96px; grid-template-columns: 43px minmax(0, 1fr) 20px; gap: 9px; padding: 9px; }
  .answer-icon { width: 43px; height: 43px; }
  .answer-card strong { font-size: 12px; }
  .feedback { align-items: flex-start; padding: 12px; }
  .game-actions { display: grid; grid-template-columns: 1fr; }
  .game-actions button,
  .next-button { width: 100%; min-width: 0; }
  .result-garden { min-height: 330px; }
  .result-copy { padding: 28px 20px; }
  .result-copy h1 { font-size: 43px; }
  .result-stats { gap: 5px; }
  .result-stats span { padding: 10px 5px; }
  .result-actions { display: grid; }
  .result-actions button { width: 100%; }
}

@media (max-width: 390px) {
  .app { width: calc(100% - 16px); }
  .brand span:last-child small { display: none; }
  .brand strong { font-size: 15px; }
  .hero-copy { padding-inline: 16px; }
  .hero h1 { font-size: 40px; }
  .hero-facts small { font-size: 8px; }
  .choice-heading h2 { font-size: 26px; }
  .answer-card { grid-template-columns: 40px minmax(0, 1fr) 18px; }
  .answer-icon { width: 40px; height: 40px; }
  .answer-card strong { font-size: 11px; }
  .feedback > span:not(.feedback-flower) { width: 42px; height: 42px; flex-basis: 42px; }
}

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