:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  --ink: #304e4c;
  --muted: #6c7d79;
  --paper: #fffdf6;
  --cream: #fbf5e7;
  --line: #ddd3b9;
  --green: #57987e;
  --green-dark: #35705b;
  --blue: #607fae;
  --purple: #9a719b;
  --gold: #efc260;
  --coral: #d97968;
  --shadow: 0 20px 52px rgba(51, 73, 66, .13);
}

* { 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; min-height: 100%; background: #f4f4e9; }
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 7%, rgba(239, 194, 96, .24) 0 125px, transparent 127px),
    radial-gradient(circle at 95% 25%, rgba(154, 113, 155, .12) 0 115px, transparent 117px),
    linear-gradient(145deg, #eff6eb 0%, #fff9ef 58%, #f3eef5 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: radial-gradient(#567c70 1px, transparent 1px);
  background-size: 25px 25px;
  content: "";
}

button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid rgba(239, 194, 96, .82); outline-offset: 4px; }
h1, h2, p { margin-top: 0; }

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

.topbar,
.brand,
.top-actions,
.section-heading,
.mission-head,
.route-progress,
.stage-tracker,
.question-block,
.decision-actions,
.feedback-card,
.project-summary,
.safety-card,
.result-actions {
  display: flex;
  align-items: center;
}

.topbar {
  min-height: 62px;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand {
  min-height: 52px;
  gap: 12px;
  padding: 2px;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 17px;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(53, 112, 91, .2);
  color: #fff;
}

.brand-mark i { font-size: 25px; font-style: normal; font-weight: 900; }
.brand-mark b { position: absolute; top: 3px; right: 5px; color: var(--gold); font-size: 12px; }
.brand > span:last-child { min-width: 0; }
.brand strong,
.brand small { display: block; }
.brand strong { font-size: 20px; font-weight: 900; letter-spacing: -.035em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.top-actions { gap: 10px; }
.top-heart { color: var(--coral); font-family: Georgia, serif; font-size: 25px; }
.quiet-badge,
.back-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 246, .88);
}

.quiet-badge { gap: 8px; padding: 0 14px; color: var(--muted); font-size: 12px; font-weight: 900; }
.quiet-badge span { color: var(--blue); }
.back-button { width: 48px; padding: 0; font-size: 23px; font-weight: 900; }
.back-button:hover { border-color: var(--green); background: #fff; transform: translateY(-1px); }

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

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

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 55px 30px 48px 58px;
}

.hero h1 {
  margin-bottom: 20px;
  font-family: Georgia, serif;
  font-size: clamp(46px, 5.5vw, 66px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}

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

.primary-button,
.secondary-button,
.hint-button,
.next-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 900;
}

.primary-button,
.next-button {
  gap: 9px;
  padding: 0 21px;
  border: 0;
  background: var(--green);
  box-shadow: 0 7px 0 var(--green-dark);
  color: #fff;
}

.primary-button:hover,
.next-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.primary-button:active,
.next-button:active { box-shadow: 0 3px 0 var(--green-dark); transform: translateY(4px); }

.hero-stats { display: flex; gap: 28px; margin-top: 35px; }
.hero-stats span { display: block; min-width: 58px; }
.hero-stats strong,
.hero-stats small { display: block; }
.hero-stats strong { font-family: Georgia, serif; font-size: 25px; }
.hero-stats small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }

.hero-art {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 32px;
  background: linear-gradient(145deg, #e9f4ea 0%, #f4ecdf 100%);
}

.hero-planner {
  position: relative;
  width: 100%;
  max-width: 475px;
  min-height: 415px;
}

.desk-shadow {
  position: absolute;
  right: 9%;
  bottom: 13px;
  left: 8%;
  height: 49px;
  border-radius: 50%;
  background: rgba(55, 76, 68, .16);
  filter: blur(8px);
}

.hero-clipboard {
  position: absolute;
  top: 20px;
  right: 14%;
  left: 14%;
  min-height: 330px;
  padding: 61px 29px 25px;
  border: 7px solid #c89665;
  border-radius: 22px;
  background:
    repeating-linear-gradient(#fffef9 0 31px, #d7e6dc 32px, #fffef9 33px);
  box-shadow: 0 19px 30px rgba(59, 76, 70, .18);
  transform: rotate(-2deg);
}

.clip,
.result-clip {
  position: absolute;
  top: -17px;
  left: calc(50% - 58px);
  width: 116px;
  height: 47px;
  border: 6px solid #304e4c;
  border-radius: 16px 16px 8px 8px;
  background: #efc260;
  box-shadow: inset 0 -8px rgba(167, 123, 46, .18);
}

.hero-clipboard > p {
  margin-bottom: 22px;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .07em;
  text-align: center;
}

.hero-clipboard ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.hero-clipboard li { display: grid; align-items: center; grid-template-columns: 35px 1fr 28px; gap: 10px; min-height: 47px; }
.hero-clipboard li b { display: grid; width: 33px; height: 33px; place-items: center; border: 3px solid var(--green); border-radius: 10px; background: #e8f3eb; }
.hero-clipboard li span { font-size: 13px; font-weight: 900; }
.hero-clipboard li i { color: var(--green); font-size: 22px; font-style: normal; font-weight: 900; }
.paper-heart { position: absolute; right: 19px; bottom: 8px; color: var(--coral); font-family: Georgia, serif; font-size: 29px; transform: rotate(8deg); }

.hero-animal { position: absolute; z-index: 3; bottom: 0; width: 130px; }
.hero-animal svg { display: block; width: 100%; }
.hero-animal-left { left: 0; }
.hero-animal-right { right: 0; }
.pencil {
  position: absolute;
  z-index: 2;
  top: 56px;
  right: 7px;
  width: 15px;
  height: 210px;
  border: 4px solid #304e4c;
  border-radius: 9px 9px 3px 3px;
  background: #df7562;
  transform: rotate(13deg);
}

.pencil::after { position: absolute; right: -4px; bottom: -26px; border-right: 8px solid transparent; border-left: 8px solid transparent; border-top: 28px solid #ddb47b; content: ""; }

.method-section,
.routes-section { margin-top: 48px; }
.section-heading { justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 45px); letter-spacing: -.035em; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.45; text-align: right; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.method-grid article {
  display: grid;
  min-height: 137px;
  align-items: center;
  grid-template-columns: 65px 1fr;
  gap: 16px;
  padding: 21px;
  border: 2px solid var(--line);
  border-radius: 25px;
  background: var(--paper);
}

.method-number {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 19px;
  box-shadow: 0 6px 13px rgba(61, 86, 79, .15);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 900;
}

.method-number.green { background: var(--green); }
.method-number.blue { background: var(--blue); }
.method-number.purple { background: var(--purple); }
.method-grid p { margin: 0; }
.method-grid strong,
.method-grid small { display: block; }
.method-grid strong { margin-bottom: 7px; font-size: 17px; }
.method-grid small { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.42; }

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.route-card {
  display: flex;
  min-width: 0;
  min-height: 370px;
  flex-direction: column;
  padding: 23px;
  border: 3px solid var(--line);
  border-radius: 29px;
  background: var(--paper);
  box-shadow: 0 9px 0 #d7d0b9;
  text-align: left;
  transition: border-color .18s, transform .18s;
}

.route-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.route-top { display: flex; align-items: center; justify-content: space-between; }
.route-top > b {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  background: var(--pale);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 16px;
}

.route-top i {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 21px;
  background: var(--accent);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--accent) 74%, #304e4c);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 900;
}

.route-copy { display: block; margin-top: 26px; }
.route-copy small,
.route-copy strong,
.route-copy > span { display: block; }
.route-copy small { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.route-copy strong { margin-top: 7px; font-family: Georgia, serif; font-size: 29px; letter-spacing: -.03em; }
.route-copy > span { min-height: 65px; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.45; }
.route-meter { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 11px; margin-top: auto; }
.route-meter > i { height: 9px; overflow: hidden; border-radius: 8px; background: #e9e5d8; }
.route-meter > i b { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.route-meter > span { color: var(--muted); font-size: 10px; font-weight: 900; }
.route-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 2px solid #ece7d9; font-size: 12px; font-weight: 900; }
.route-bottom > span { color: #d3a238; letter-spacing: .04em; }
.route-bottom b { color: var(--accent); }

.safety-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 20px 24px;
  border: 2px solid #e1b3a9;
  border-radius: 23px;
  background: rgba(255, 241, 236, .92);
}

.safety-note > span {
  display: grid;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  place-items: center;
  border-radius: 15px;
  background: var(--coral);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 900;
}

.safety-note p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.5; }
.safety-note strong { color: var(--ink); }

.game-shell,
.result-shell {
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 40px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.game-shell { padding: 32px; }
.mission-head { justify-content: space-between; gap: 24px; }
.mission-head > div { min-width: 0; }
.mission-head h1 { margin-bottom: 7px; font-family: Georgia, serif; font-size: clamp(37px, 5vw, 51px); letter-spacing: -.04em; }
.mission-head > div > p:last-child { margin: 0; color: var(--muted); font-size: 14px; font-weight: 800; }
.project-badge {
  display: grid;
  min-width: 82px;
  height: 82px;
  place-items: center;
  align-content: center;
  border: 6px solid var(--pale);
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  transform: rotate(2deg);
}

.project-badge b { font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.project-badge small { margin-top: 4px; font-size: 9px; font-weight: 900; }
.route-progress { gap: 13px; margin: 19px 0 17px; }
.route-progress i { height: 9px; flex: 1; overflow: hidden; border-radius: 9px; background: #e7e3d6; }
.route-progress i b { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.route-progress span { color: var(--muted); font-size: 11px; font-weight: 900; }

.stage-tracker {
  justify-content: center;
  margin: 0 0 22px;
}

.stage-tracker > span { display: flex; min-width: 115px; align-items: center; gap: 8px; color: #939c96; }
.stage-tracker > span b { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 3px solid #d8d8cf; border-radius: 12px; background: #f4f3ed; font-family: Georgia, serif; }
.stage-tracker > span small { font-size: 11px; font-weight: 900; }
.stage-tracker > i { width: 54px; border-top: 3px dashed #d5d4c8; }
.stage-tracker > span.is-current { color: var(--accent); }
.stage-tracker > span.is-current b { border-color: var(--accent); background: var(--pale); }
.stage-tracker > span.is-done b { border-color: var(--accent); background: var(--accent); color: #fff; }

.planner-layout {
  display: grid;
  align-items: start;
  grid-template-columns: .85fr 1.15fr;
  gap: 22px;
}

.project-desk {
  position: relative;
  min-height: 595px;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--accent) 34%, #ddd3b9);
  border-radius: 31px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .8) 0 55px, transparent 56px),
    linear-gradient(145deg, var(--pale), #f5e6ce);
}

.project-desk::before {
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
}

.desk-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 9px 12px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(45, 72, 66, .11);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desk-mark {
  position: absolute;
  top: 28px;
  right: 24px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 70px;
  font-weight: 900;
  opacity: .35;
}

.helper-card {
  position: absolute;
  z-index: 2;
  top: 95px;
  left: calc(50% - 88px);
  width: 176px;
  text-align: center;
}

.helper-card svg { display: block; width: 100%; filter: drop-shadow(0 10px 10px rgba(50, 76, 68, .14)); }
.helper-card strong {
  display: inline-block;
  margin-top: -9px;
  padding: 7px 13px;
  border: 3px solid var(--ink);
  border-radius: 13px;
  background: #fff;
  font-size: 14px;
}

.request-note {
  position: absolute;
  z-index: 3;
  top: 305px;
  right: 22px;
  left: 22px;
  min-height: 117px;
  padding: 21px 18px 17px 45px;
  border: 3px solid var(--ink);
  border-radius: 21px;
  background: #fffdfa;
  box-shadow: 0 10px 20px rgba(43, 75, 69, .13);
  transform: rotate(-1deg);
}

.request-note > span {
  position: absolute;
  top: 9px;
  left: 14px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 900;
}

.request-note p { margin: 0; font-size: 13px; font-weight: 900; line-height: 1.5; }
.mini-plan {
  position: absolute;
  right: 22px;
  bottom: 23px;
  left: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  border: 3px solid #c89b69;
  border-radius: 18px;
  background: #fff9ea;
  box-shadow: 0 8px 16px rgba(54, 78, 70, .12);
}

.mini-plan span { display: grid; min-width: 0; place-items: center; gap: 5px; text-align: center; }
.mini-plan b { display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid #d7d4c6; border-radius: 10px; background: #f5f3eb; color: #8c9791; font-family: Georgia, serif; }
.mini-plan small { font-size: 9px; font-weight: 900; }
.mini-plan span.is-done b { border-color: var(--accent); background: var(--accent); color: #fff; }
.paperclip { position: absolute; z-index: 4; right: 20px; bottom: 126px; width: 17px; height: 54px; border: 5px solid var(--accent); border-radius: 12px; transform: rotate(13deg); }

.decision-panel {
  min-width: 0;
  padding: 25px;
  border: 3px solid #e0dac7;
  border-radius: 31px;
  background: #fffefa;
}

.question-block { align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.question-block > span {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border: 5px solid var(--pale);
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

.question-block small { display: block; margin: 3px 0 5px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.question-block h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(23px, 2.8vw, 31px); letter-spacing: -.025em; line-height: 1.12; }
.answers-list { display: grid; gap: 11px; }
.answer-card {
  display: grid;
  min-height: 82px;
  align-items: center;
  grid-template-columns: 53px 1fr 36px;
  gap: 13px;
  padding: 11px 13px;
  border: 3px solid #d9d4c2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 0 #d8d2bf;
  text-align: left;
}

.answer-card:not(:disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
.answer-icon {
  display: grid;
  min-width: 53px;
  min-height: 53px;
  place-items: center;
  border-radius: 15px;
  background: var(--pale);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.answer-text { font-size: 13px; font-weight: 900; line-height: 1.37; }
.answer-state { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #f1efe6; color: var(--muted); font-size: 17px; font-weight: 900; }
.answer-card.is-wrong { border-color: #d99587; background: #fff3ef; box-shadow: 0 5px 0 #e5b5aa; }
.answer-card.is-wrong .answer-state { background: var(--coral); color: #fff; }
.answer-card.is-correct { border-color: #6da78f; background: #eef8f1; box-shadow: 0 5px 0 #acd1bc; }
.answer-card.is-correct .answer-state { background: var(--green); color: #fff; }

.decision-actions { align-items: stretch; gap: 11px; margin-top: 18px; }
.hint-button {
  gap: 8px;
  padding: 0 17px;
  border: 2px solid #dfc16a;
  background: #fff4c4;
  color: #785b1c;
}

.hint-button span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e4b942; color: #fff; }
.hint-button:disabled { opacity: .55; cursor: default; }
.next-button { flex: 1; background: var(--accent); box-shadow: 0 7px 0 color-mix(in srgb, var(--accent) 70%, var(--ink)); }

.feedback-card,
.project-summary,
.safety-card {
  align-items: flex-start;
  gap: 13px;
  min-height: 78px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 2px solid #d9ded6;
  border-radius: 19px;
  background: #f5f7f2;
}

.feedback-card > span,
.project-summary > span,
.safety-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 900;
}

.feedback-card p,
.project-summary p,
.safety-card p { margin: 2px 0 0; }
.feedback-card strong,
.feedback-card small,
.project-summary strong,
.project-summary small,
.safety-card strong,
.safety-card small { display: block; }
.feedback-card small,
.project-summary small,
.safety-card small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.42; }
.feedback-card.success { border-color: #9bc7ad; background: #edf8f0; }
.feedback-card.success > span { background: var(--green); color: #fff; }
.feedback-card.error { border-color: #e3aa9d; background: #fff1ed; }
.feedback-card.error > span { background: var(--coral); color: #fff; }
.feedback-card.hint { border-color: #e1c46a; background: #fff7d4; }
.feedback-card.hint > span { background: var(--gold); color: #705719; }
.project-summary { border-color: #9bc7ad; background: #eef8f0; }
.project-summary > span { background: var(--green); color: #fff; }
.safety-card { margin-top: 10px; border-color: #e3aa9d; background: #fff2ed; }
.safety-card > span { background: var(--coral); color: #fff; }

.result-shell {
  display: grid;
  min-height: 600px;
  grid-template-columns: 1.05fr .95fr;
}

.result-board {
  position: relative;
  min-height: 600px;
  padding: 89px 38px 38px;
  border-right: 3px solid #c99866;
  background:
    repeating-linear-gradient(#fffef9 0 35px, #d6e5dc 36px, #fffef9 37px);
}

.result-board > p { margin-bottom: 24px; font-family: Georgia, serif; font-size: 18px; font-weight: 900; letter-spacing: .08em; text-align: center; }
.result-calendar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.calendar-page {
  position: relative;
  display: grid;
  min-height: 85px;
  align-items: center;
  grid-template-columns: 43px 32px 1fr;
  gap: 8px;
  padding: 10px;
  border: 2px solid #d9d3bf;
  border-radius: 16px;
  background: #fff;
}

.calendar-page > i { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: var(--pale); color: var(--accent); font-family: Georgia, serif; font-size: 19px; font-style: normal; font-weight: 900; }
.calendar-page > strong { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #f1eee3; font-family: Georgia, serif; }
.calendar-page > small { min-width: 0; font-size: 10px; font-weight: 900; line-height: 1.25; }
.calendar-page > b { position: absolute; top: -7px; right: -6px; display: grid; width: 25px; height: 25px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; }
.result-clip { top: 14px; }
.result-stamp { position: absolute; right: 29px; bottom: 20px; padding: 10px 13px; border: 4px double var(--accent); border-radius: 10px; color: var(--accent); font-family: Georgia, serif; font-size: 12px; font-weight: 900; letter-spacing: .07em; transform: rotate(-6deg); }
.result-stamp b { font-size: 20px; }

.result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 44px;
  background: linear-gradient(145deg, var(--pale), #fff8e8);
}

.result-copy h1 { margin-bottom: 15px; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 56px); letter-spacing: -.05em; line-height: 1; }
.result-copy > p:not(.eyebrow) { margin-bottom: 16px; color: var(--muted); font-size: 16px; font-weight: 800; line-height: 1.5; }
.result-stars { color: var(--gold); font-size: 38px; letter-spacing: 5px; text-shadow: 0 3px 0 #c9982e; }
.result-stars span { color: #dcd8ca; text-shadow: none; }
.result-stats { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.result-stats span { padding: 13px 8px; border: 2px solid #ddd8c7; border-radius: 17px; background: rgba(255, 255, 255, .74); text-align: center; }
.result-stats strong,
.result-stats small { display: block; }
.result-stats strong { font-family: Georgia, serif; font-size: 23px; }
.result-stats small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.result-actions { flex-wrap: wrap; gap: 11px; }
.secondary-button { padding: 0 18px; border: 2px solid var(--line); background: #fff; }
.secondary-button:hover { border-color: var(--accent); }
.data-error { margin-top: 60px; padding: 30px; border: 3px solid #d99587; border-radius: 26px; background: #fff5f1; }

@media (max-width: 930px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { align-items: center; padding: 48px 45px 38px; text-align: center; }
  .hero-art { padding: 28px 45px 38px; }
  .hero-planner { max-width: 540px; }
  .routes-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 260px; }
  .route-copy > span { min-height: 0; }
  .planner-layout { grid-template-columns: 1fr; }
  .project-desk { min-height: 530px; }
  .helper-card { top: 80px; }
  .request-note { top: 275px; }
  .result-shell { grid-template-columns: 1fr; }
  .result-board { min-height: 530px; border-right: 0; border-bottom: 3px solid #c99866; }
}

@media (max-width: 720px) {
  .app { width: min(1120px, calc(100% - 20px)); padding-top: 11px; }
  .topbar { min-height: 53px; margin-bottom: 12px; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; border-radius: 15px; }
  .brand strong { font-size: 18px; }
  .brand small,
  .quiet-badge { display: none; }
  .hero { border-radius: 31px; }
  .hero-copy { padding: 38px 22px 31px; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-art { padding: 18px 15px 24px; }
  .hero-planner { min-height: 385px; }
  .hero-clipboard { right: 12%; left: 12%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading > p { text-align: left; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 115px; }
  .game-shell { padding: 20px 14px; border-radius: 28px; }
  .mission-head { align-items: flex-start; }
  .mission-head h1 { font-size: 35px; }
  .project-badge { min-width: 67px; height: 67px; border-width: 5px; border-radius: 20px; }
  .project-badge b { font-size: 23px; }
  .stage-tracker > span { min-width: 0; flex-direction: column; text-align: center; }
  .stage-tracker > i { width: 32px; }
  .project-desk { min-height: 510px; border-radius: 24px; }
  .decision-panel { padding: 20px 14px; border-radius: 24px; }
  .question-block h2 { font-size: 25px; }
  .answer-card { min-height: 77px; grid-template-columns: 49px 1fr 32px; gap: 10px; padding: 10px; }
  .answer-icon { min-width: 49px; min-height: 49px; font-size: 17px; }
  .decision-actions { flex-direction: column; }
  .hint-button,
  .next-button { width: 100%; }
  .result-board { min-height: 560px; padding-inline: 25px; }
  .result-copy { padding: 38px 23px; }
  .result-copy h1 { font-size: 42px; }
}

@media (max-width: 480px) {
  .hero-stats { width: 100%; justify-content: space-between; gap: 10px; }
  .hero-stats span { min-width: 0; }
  .hero-planner { min-height: 340px; }
  .hero-clipboard { top: 12px; min-height: 290px; padding: 52px 18px 19px; border-width: 6px; }
  .hero-clipboard li { min-height: 40px; }
  .hero-animal { width: 105px; }
  .pencil { height: 170px; }
  .method-section,
  .routes-section { margin-top: 37px; }
  .section-heading h2 { font-size: 34px; }
  .method-grid article { grid-template-columns: 56px 1fr; padding: 17px; }
  .method-number { width: 54px; height: 54px; border-radius: 17px; }
  .route-card { min-height: 340px; padding: 20px; }
  .safety-note { align-items: flex-start; padding: 17px; }
  .route-progress { margin: 15px 0 13px; }
  .mission-head > div > p:last-child { font-size: 12px; }
  .stage-tracker { margin-bottom: 16px; }
  .stage-tracker > span b { width: 33px; height: 33px; flex-basis: 33px; }
  .stage-tracker > span small { font-size: 9px; }
  .stage-tracker > i { width: 18px; }
  .project-desk { min-height: 480px; }
  .helper-card { top: 69px; width: 150px; left: calc(50% - 75px); }
  .request-note { top: 248px; right: 12px; left: 12px; min-height: 112px; padding: 17px 12px 14px 38px; }
  .request-note > span { left: 10px; font-size: 35px; }
  .request-note p { font-size: 11px; }
  .mini-plan { right: 12px; bottom: 14px; left: 12px; padding: 11px 7px; }
  .question-block { gap: 10px; }
  .question-block > span { width: 44px; height: 44px; flex-basis: 44px; border-width: 4px; border-radius: 14px; }
  .question-block h2 { font-size: 22px; }
  .answer-text { font-size: 12px; }
  .result-board { min-height: 690px; padding: 82px 14px 45px; }
  .result-calendar { grid-template-columns: 1fr; gap: 8px; }
  .calendar-page { min-height: 63px; }
  .result-stamp { bottom: 10px; }
  .result-stats small { font-size: 8px; }
}

@media (max-width: 390px) {
  .app { width: min(1120px, calc(100% - 14px)); }
  .brand > span:last-child { max-width: 210px; }
  .hero-copy { padding-inline: 16px; }
  .hero h1 { font-size: 40px; }
  .primary-button { padding-inline: 15px; }
  .hero-planner { min-height: 325px; }
  .hero-clipboard > p { font-size: 14px; }
  .hero-clipboard li span { font-size: 11px; }
  .route-copy strong { font-size: 27px; }
  .game-shell { padding-inline: 10px; }
  .mission-head { gap: 8px; }
  .mission-head h1 { font-size: 31px; }
  .decision-panel { padding-inline: 10px; }
  .answer-card { grid-template-columns: 46px 1fr 29px; gap: 8px; }
  .answer-icon { min-width: 46px; min-height: 46px; }
  .result-copy { padding-inline: 18px; }
}

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