:root {
  color-scheme: light;
  --ink: #194e45;
  --muted: #718985;
  --paper: #fffdf7;
  --paper-soft: #f8f4e8;
  --line: #ded6bc;
  --green: #4da17a;
  --green-dark: #287658;
  --gold: #e8b044;
  --red: #d96e62;
  --shadow: 0 16px 0 rgba(98, 85, 51, 0.12), 0 28px 60px rgba(55, 74, 60, 0.12);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #f4f3e8;
  overflow-x: hidden;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 12%, rgba(245, 211, 108, 0.26) 0 150px, transparent 151px),
    radial-gradient(circle at 96% 13%, rgba(114, 181, 155, 0.18) 0 190px, transparent 191px),
    linear-gradient(180deg, #f4f7e9 0%, #fbf7ec 54%, #f2f5e9 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(49, 104, 80, 0.15) 49%, rgba(49, 104, 80, 0.15) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, rgba(49, 104, 80, 0.12) 49%, rgba(49, 104, 80, 0.12) 51%, transparent 52%);
  background-size: 44px 28px;
  mask-image: linear-gradient(to bottom, transparent 0, transparent 70%, #000 100%);
}

button {
  min-height: 49px;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button:focus-visible {
  outline: 4px solid rgba(52, 135, 100, 0.3);
  outline-offset: 3px;
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #dccf9f;
  border-radius: 18px 18px 20px 14px;
  background: #fff4c8;
  box-shadow: 0 6px 0 rgba(138, 116, 53, 0.12);
  font-size: 28px;
  transform: rotate(-3deg);
}

.brand strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.top-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 2px solid #ddd7c5;
  border-radius: 17px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 3px 0 rgba(111, 99, 65, 0.07);
  font-size: 14px;
  font-weight: 900;
}

.top-button:hover,
.icon-button:hover {
  border-color: #9ecbb3;
  background: #fff;
}

.top-button.is-active {
  border-color: #94c7aa;
  background: #edf8ef;
}

.icon-button {
  width: 49px;
  padding: 0;
  font-size: 22px;
}

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

.hero-copy {
  align-self: center;
  padding: 62px 28px 62px 58px;
}

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

.hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(54px, 6vw, 78px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.04em;
}

.hero h1 em {
  color: #c9803f;
  font-weight: 700;
}

.hero-text {
  max-width: 470px;
  margin: 28px 0 0;
  color: #657d78;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 9px 0 var(--green-dark);
}

.button.primary:hover {
  background: #55ad84;
}

.button.secondary,
.button.hint {
  border-color: #d9d2bd;
  background: #fffdf8;
  box-shadow: 0 5px 0 rgba(107, 96, 63, 0.12);
}

.button.secondary:hover,
.button.hint:hover:not(:disabled) {
  border-color: #91c4a6;
}

.button.hint:disabled {
  color: #7f938e;
  background: #f1f3eb;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: grid;
}

.hero-stats b {
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 24px;
  background: #e8eee1;
}

.hero-zone {
  position: relative;
  min-height: 229px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.83);
  border-radius: 25px;
  box-shadow: 0 9px 18px rgba(51, 74, 58, 0.1);
}

.hero-zone > .zone-scene {
  position: absolute;
  inset: 0;
}

.hero-zone > span {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 4;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.9);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 900;
}

.hero-zone > .animal-figure {
  position: absolute;
  right: 5%;
  bottom: 2%;
  z-index: 5;
  width: 62%;
  height: 68%;
  filter: drop-shadow(0 8px 6px rgba(30, 54, 37, 0.22));
}

.hero-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: grid;
  width: 112px;
  height: 112px;
  place-content: center;
  border: 4px double #ba6e49;
  border-radius: 50%;
  background: #fff0c7;
  color: #aa5e3d;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-8deg);
  box-shadow: 0 7px 18px rgba(81, 54, 25, 0.16);
}

.hero-stamp b {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 0.9;
}

.hero-stamp small {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.nature-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 56px;
  padding: 19px 24px;
  border: 2px solid #e3c879;
  border-radius: 25px;
  background: #fff4cb;
}

.nature-rule > span {
  display: grid;
  flex: 0 0 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #fffdf7;
  font-size: 27px;
}

.nature-rule p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.nature-rule strong {
  font-size: 17px;
}

.nature-rule small {
  color: #806f4f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

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

.section-heading h2 {
  max-width: 660px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
}

.section-heading > p {
  max-width: 310px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

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

.route-card {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  padding: 26px;
  border: 3px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 11px 0 rgba(93, 82, 49, 0.13);
}

.route-card.route-2 {
  background: #fffaf0;
}

.route-card.route-3 {
  background: #f7fbf3;
}

.route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-top > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: #eef6e9;
  font-size: 27px;
}

.route-top b {
  color: var(--muted);
  font-size: 13px;
}

.route-card > .eyebrow {
  margin-top: 24px;
  font-size: 11px;
}

.route-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.06;
}

.route-card > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.route-zones {
  display: flex;
  gap: 7px;
  margin: 22px 0 0;
}

.route-zones i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  font-style: normal;
  font-weight: 900;
}

.route-zones .tundra,
.atlas-filter .tundra {
  background: #e8f4f5;
  color: #4d8ea0;
}

.route-zones .desert,
.atlas-filter .desert {
  background: #fff0c3;
  color: #b86f34;
}

.route-zones .forest,
.atlas-filter .forest {
  background: #e4f2de;
  color: #397852;
}

.route-zones .savanna,
.atlas-filter .savanna {
  background: #f6e7b4;
  color: #9c6933;
}

.route-meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: #8a7b58;
  font-size: 12px;
  font-weight: 900;
}

.route-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 16px;
  background: #245f50;
  color: #fff;
  font-weight: 900;
}

.route-button:hover {
  background: #2f7964;
}

.adult-note {
  max-width: 900px;
  margin: 34px auto 0;
  color: #768984;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.game-shell {
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 35px;
  background: rgba(255, 253, 247, 0.98);
  box-shadow: var(--shadow);
}

.mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 36px 24px;
}

.mission-head h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 36px;
}

.mission-head p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mission-head > strong {
  display: grid;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  place-content: center;
  border: 8px solid #d9ebe5;
  border-radius: 50%;
  background: #2f6376;
  color: #fff;
  text-align: center;
}

.mission-head > strong b {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 0.9;
}

.mission-head > strong span {
  margin-top: 5px;
  font-size: 10px;
}

.progress-track {
  height: 10px;
  margin: 0 36px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e5d9;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #64ad87, #e0ad45);
  transition: width 250ms ease;
}

.expedition-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.5fr);
  gap: 28px;
  padding: 30px 36px 38px;
  background: linear-gradient(130deg, #faf6e9, #f3f7ed);
}

.animal-passport {
  align-self: start;
  padding: 15px;
  border: 2px solid #d1c4a4;
  border-radius: 25px 25px 25px 8px;
  background: #f6ecd3;
  box-shadow: 0 10px 0 rgba(116, 93, 50, 0.13);
  transform: rotate(-0.7deg);
}

.passport-label {
  display: flex;
  justify-content: space-between;
  padding: 2px 6px 12px;
  color: #88764f;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.animal-stage {
  position: relative;
  display: grid;
  min-height: 286px;
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 62%, #dcebd5 0 28%, transparent 29%),
    linear-gradient(#cde7e1 0 58%, #a9c59a 59% 76%, #728d6c 77%);
}

.animal-stage::before,
.animal-stage::after {
  position: absolute;
  bottom: 21%;
  width: 70px;
  height: 90px;
  content: "";
  border-radius: 55% 55% 9px 9px;
  background: rgba(61, 108, 75, 0.22);
}

.animal-stage::before {
  left: 5%;
}

.animal-stage::after {
  right: 4%;
  height: 112px;
}

.stage-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 2px dashed rgba(48, 101, 74, 0.3);
  border-radius: 50%;
}

.animal-figure {
  display: block;
  object-fit: contain;
}

.animal-stage .animal-figure {
  position: relative;
  z-index: 3;
  width: 86%;
  height: 240px;
  filter: drop-shadow(0 12px 7px rgba(36, 58, 40, 0.25));
}

.stage-shadow {
  position: absolute;
  bottom: 29px;
  z-index: 2;
  width: 62%;
  height: 22px;
  border-radius: 50%;
  background: rgba(48, 56, 39, 0.22);
}

.question-seal,
.zone-seal {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  min-width: 56px;
  height: 56px;
  place-items: center;
  padding: 0 10px;
  border: 3px double #b86e4c;
  border-radius: 50%;
  background: #fff0c4;
  color: #a2553c;
  font-family: Georgia, serif;
  font-size: 28px;
  transform: rotate(7deg);
}

.zone-seal {
  min-width: 90px;
  border-radius: 14px;
  background: #e7f4e9;
  color: #2f7355;
  font-size: 14px;
}

.passport-copy {
  padding: 16px 9px 8px;
}

.passport-copy p {
  margin: 0;
  color: #8f7c54;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.passport-copy h2 {
  margin: 5px 0 10px;
  font-family: Georgia, serif;
  font-size: 27px;
}

.passport-copy span {
  display: block;
  color: #5d756d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.settlement-board {
  min-width: 0;
}

.board-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.board-title h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 36px;
}

.board-title > span {
  display: grid;
  width: 52px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #e9efe6;
  color: #698078;
  font-weight: 900;
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.zone-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 198px;
  overflow: hidden;
  border: 3px solid #d6d2c5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 7px 0 rgba(85, 78, 56, 0.13);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease;
}

.zone-option:hover:not(:disabled) {
  z-index: 2;
  border-color: #6ca88a;
  transform: translateY(-2px);
}

.zone-option .zone-scene {
  position: absolute;
  inset: 0 0 59px;
}

.option-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.93);
  color: var(--ink);
  font-family: Georgia, serif;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(40, 57, 43, 0.1);
}

.zone-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: grid;
  min-height: 62px;
  align-content: center;
  padding: 8px 44px 8px 14px;
  background: rgba(255, 253, 247, 0.96);
}

.zone-copy strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.zone-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: #70847f;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-state {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 9;
  font-size: 22px;
  font-weight: 900;
}

.zone-option.is-wrong {
  border-color: #e58d82;
  background: #fff1ee;
}

.zone-option.is-wrong .zone-scene {
  opacity: 0.48;
}

.zone-option.is-wrong .option-state {
  color: #b8554c;
}

.zone-option.is-correct {
  border-color: #58a178;
  background: #eff8ee;
  box-shadow: 0 7px 0 rgba(50, 123, 84, 0.19);
}

.zone-option.is-correct .option-state {
  color: #2f8b5e;
}

.zone-option .resident {
  position: absolute;
  right: 19%;
  bottom: 48px;
  z-index: 6;
  width: 44%;
  height: 54%;
  filter: drop-shadow(0 6px 4px rgba(37, 56, 38, 0.25));
  animation: settle 320ms ease-out both;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(-18px) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hint-card,
.feedback,
.discovery-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 17px;
  border-radius: 18px;
}

.hint-card {
  border: 2px dashed #d5a74b;
  background: #fff5cf;
}

.hint-card > span,
.feedback > span {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  font-size: 20px;
}

.hint-card p,
.feedback p,
.discovery-card p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.hint-card small,
.feedback small,
.discovery-card small {
  color: #687c77;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
}

.feedback.quiet {
  border: 2px solid #dde1d6;
  background: #f6f7f1;
}

.feedback.error {
  border: 2px solid #e69a90;
  background: #fff0ed;
}

.feedback.error strong {
  color: #9e4038;
}

.feedback.success {
  border: 2px solid #83bd9c;
  background: #edf8ef;
}

.feedback.success > span {
  background: #4da176;
  color: #fff;
}

.game-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.discovery-card {
  position: relative;
  margin-top: 28px;
  border: 2px solid #c8d9c5;
  background: #f1f8eb;
  box-shadow: 0 8px 0 rgba(70, 98, 68, 0.1);
}

.discovery-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  font-size: 26px;
}

.discovery-card p {
  padding-right: 85px;
}

.discovery-number {
  position: absolute;
  right: 20px;
  color: #769080;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 900;
}

.zone-scene {
  position: relative;
  min-width: 0;
  min-height: 120px;
  overflow: hidden;
  background: #dbe8df;
}

.zone-scene i {
  position: absolute;
  display: block;
}

.zone-scene .sky {
  inset: 0 0 36%;
}

.zone-scene .sun {
  top: 13%;
  right: 14%;
  width: 29px;
  height: 29px;
  border-radius: 50%;
}

.zone-scene .far {
  right: -4%;
  bottom: 28%;
  left: -4%;
  height: 40%;
}

.zone-scene .ground {
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
}

.zone-scene.tundra .sky {
  background: linear-gradient(#acd5e2, #dceef0);
}

.zone-scene.tundra .sun {
  background: #f6f0c7;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.zone-scene.tundra .far {
  clip-path: polygon(0 85%, 13% 46%, 25% 72%, 42% 23%, 59% 70%, 75% 42%, 100% 88%, 100% 100%, 0 100%);
  background: #d9eaec;
}

.zone-scene.tundra .ground {
  background: linear-gradient(8deg, #aac8c4 0 42%, #d9e7d8 43% 72%, #eff5e9 73%);
}

.zone-scene.tundra .plant {
  bottom: 16%;
  width: 20px;
  height: 10px;
  border-radius: 50% 50% 35% 35%;
  background: #769c7b;
}

.zone-scene.tundra .plant-one { left: 13%; }
.zone-scene.tundra .plant-two { left: 39%; width: 13px; }
.zone-scene.tundra .plant-three { right: 18%; width: 25px; }

.zone-scene.desert .sky {
  background: linear-gradient(#8ed4e1, #f3d590);
}

.zone-scene.desert .sun {
  background: #ffe16f;
  box-shadow: 0 0 0 9px rgba(255, 225, 111, 0.22);
}

.zone-scene.desert .far {
  bottom: 25%;
  border-radius: 50% 55% 0 0;
  background: #e8b75e;
  transform: rotate(-4deg);
}

.zone-scene.desert .ground {
  background: linear-gradient(9deg, #c98e43, #efc872 48%, #f6d88c 49%);
}

.zone-scene.desert .plant {
  bottom: 12%;
  width: 8px;
  height: 39px;
  border-radius: 6px 6px 2px 2px;
  background: #558e69;
}

.zone-scene.desert .plant::before,
.zone-scene.desert .plant::after {
  position: absolute;
  top: 13px;
  width: 12px;
  height: 7px;
  content: "";
  border-radius: 6px;
  background: inherit;
}

.zone-scene.desert .plant::before { right: 4px; transform: rotate(32deg); }
.zone-scene.desert .plant::after { left: 4px; transform: rotate(-32deg); }
.zone-scene.desert .plant-one { left: 15%; }
.zone-scene.desert .plant-two { right: 17%; height: 26px; }
.zone-scene.desert .plant-three { display: none; }

.zone-scene.forest .sky {
  background: linear-gradient(#a8d9d1, #d8e8ba);
}

.zone-scene.forest .sun {
  background: #f5dc82;
}

.zone-scene.forest .far {
  bottom: 24%;
  background:
    radial-gradient(ellipse at 8% 100%, #4f9267 0 24%, transparent 25%),
    radial-gradient(ellipse at 28% 100%, #69a673 0 30%, transparent 31%),
    radial-gradient(ellipse at 53% 100%, #3c805a 0 28%, transparent 29%),
    radial-gradient(ellipse at 78% 100%, #67a66d 0 31%, transparent 32%),
    radial-gradient(ellipse at 98% 100%, #3d7a54 0 25%, transparent 26%);
}

.zone-scene.forest .ground {
  background: linear-gradient(8deg, #5f7953, #8fa56a 54%, #6c925c 55%);
}

.zone-scene.forest .plant {
  bottom: 22%;
  width: 8px;
  height: 60px;
  background: #695d42;
}

.zone-scene.forest .plant::before {
  position: absolute;
  top: -25px;
  left: -19px;
  width: 47px;
  height: 47px;
  content: "";
  border-radius: 50%;
  background: #397b53;
  box-shadow: 14px 9px 0 #5d9964, -9px 12px 0 #4b8b5b;
}

.zone-scene.forest .plant-one { left: 12%; }
.zone-scene.forest .plant-two { left: 48%; height: 49px; }
.zone-scene.forest .plant-three { right: 12%; height: 68px; }

.zone-scene.savanna .sky {
  background: linear-gradient(#8ecdd2, #f2d589);
}

.zone-scene.savanna .sun {
  background: #f6c94c;
  box-shadow: 0 0 0 8px rgba(255, 218, 91, 0.2);
}

.zone-scene.savanna .far {
  bottom: 21%;
  border-radius: 50% 50% 0 0;
  background: #b8a75c;
}

.zone-scene.savanna .ground {
  background: linear-gradient(7deg, #9b713d, #c69a4e 46%, #d9ba67 47%);
}

.zone-scene.savanna .plant {
  bottom: 25%;
  width: 7px;
  height: 48px;
  background: #675c3d;
}

.zone-scene.savanna .plant::before {
  position: absolute;
  top: -14px;
  left: -27px;
  width: 61px;
  height: 26px;
  content: "";
  border-radius: 55% 55% 42% 42%;
  background: #5c8b50;
}

.zone-scene.savanna .plant-one { left: 15%; }
.zone-scene.savanna .plant-two { right: 14%; height: 35px; }
.zone-scene.savanna .plant-three { display: none; }

.result-card {
  max-width: 1000px;
  margin: 52px auto 0;
  padding: 62px 74px 68px;
  border: 3px solid var(--line);
  border-radius: 42px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.result-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 102px;
  margin-bottom: 34px;
  border-radius: 27px;
  background: #275c70;
  color: #fff;
  letter-spacing: 0.16em;
}

.result-ribbon span {
  font-size: 39px;
}

.result-card h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(48px, 6vw, 70px);
  line-height: 1;
}

.result-card > p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.stars {
  margin: 28px 0;
  color: #d8d8cb;
  font-size: 55px;
  letter-spacing: 5px;
}

.stars .earned {
  color: #efb341;
  text-shadow: 0 5px 0 #c98a26;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.result-stats div {
  padding: 20px 12px;
  border: 2px solid #d4dfcf;
  border-radius: 21px;
  background: #f1f7ed;
}

.result-stats dt {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 900;
}

.result-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.result-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 30px;
}

.result-strip > span {
  position: relative;
  display: grid;
  width: 83px;
  height: 91px;
  place-items: center;
  overflow: hidden;
  border: 2px dashed #cbbf9f;
  border-radius: 16px 16px 20px 10px;
  background: #f5f1e4;
}

.result-strip .animal-figure {
  width: 72px;
  height: 72px;
}

.result-strip i {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-style: normal;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.atlas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 44px;
  border: 3px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 10px 0 rgba(85, 73, 45, 0.11);
}

.atlas-head h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
}

.atlas-head p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.atlas-head > strong {
  display: grid;
  width: 130px;
  height: 130px;
  flex: 0 0 130px;
  place-content: center;
  border: 8px solid #d9ebe0;
  border-radius: 50%;
  background: #2f6a58;
  color: #fff;
  text-align: center;
}

.atlas-head > strong b {
  font-family: Georgia, serif;
  font-size: 43px;
  line-height: 0.9;
}

.atlas-head > strong span {
  margin-top: 6px;
  font-size: 11px;
}

.atlas-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 25px 0;
}

.atlas-filter span {
  padding: 10px 15px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
}

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

.atlas-card {
  position: relative;
  min-width: 0;
  min-height: 376px;
  padding: 15px 15px 22px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 24px 24px 24px 8px;
  background: var(--paper);
  box-shadow: 0 8px 0 rgba(87, 76, 49, 0.11);
}

.atlas-number {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 7;
  display: grid;
  width: 40px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.92);
  font-family: Georgia, serif;
  font-weight: 900;
}

.atlas-picture {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-radius: 16px;
}

.atlas-picture .zone-scene {
  position: absolute;
  inset: 0;
}

.atlas-picture .animal-figure {
  position: absolute;
  right: 7%;
  bottom: 2%;
  z-index: 5;
  width: 73%;
  height: 75%;
  filter: drop-shadow(0 7px 5px rgba(32, 54, 36, 0.24));
}

.atlas-card > p {
  margin: 15px 4px 4px;
  color: #58816c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-card h2 {
  margin: 0 4px 7px;
  font-family: Georgia, serif;
  font-size: 23px;
}

.atlas-card > span:last-child {
  display: block;
  margin: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42;
}

.atlas-card.is-locked .atlas-picture {
  filter: grayscale(1);
  opacity: 0.35;
}

.atlas-card.is-locked .animal-figure {
  filter: brightness(0) opacity(0.65);
}

.atlas-back {
  display: flex;
  margin: 32px auto 0;
}

.qa-report {
  max-width: 920px;
  margin: 40px auto;
  padding: 40px;
  border: 3px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.qa-report > p:first-child {
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qa-report h1 {
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: 50px;
}

.qa-report ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.qa-report li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 13px;
  background: #eef6eb;
}

.qa-report li.fail {
  background: #fff0ed;
}

.qa-report li > span {
  font-size: 20px;
  font-weight: 900;
}

.qa-report li.pass > span {
  color: #39805c;
}

.qa-report li.fail > span {
  color: #b64f45;
}

.qa-report li small {
  color: var(--muted);
}

.qa-report > div {
  display: flex;
  gap: 12px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 48px;
  }

  .hero-board {
    min-height: 500px;
  }

  .route-grid,
  .atlas-grid {
    grid-template-columns: 1fr 1fr;
  }

  .route-card:last-child {
    grid-column: 1 / -1;
  }

  .expedition-layout {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 20px;
    padding: 24px;
  }

  .animal-stage {
    min-height: 250px;
  }

  .animal-stage .animal-figure {
    height: 210px;
  }

  .zone-option {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .app {
    width: min(100% - 24px, 1120px);
    padding-top: 14px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .brand-mark {
    width: 49px;
    height: 49px;
    border-radius: 16px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small,
  .action-copy {
    display: none;
  }

  .top-button {
    width: 49px;
    padding: 0;
  }

  .hero {
    border-radius: 30px;
  }

  .hero-copy {
    padding: 38px 30px 32px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(49px, 13vw, 68px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-board {
    min-height: 430px;
    padding: 14px;
  }

  .hero-zone {
    min-height: 190px;
  }

  .hero-stamp {
    width: 90px;
    height: 90px;
  }

  .hero-stamp b {
    font-size: 31px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    max-width: none;
    margin-top: 12px;
    text-align: left;
  }

  .route-grid,
  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .route-card:last-child {
    grid-column: auto;
  }

  .route-card {
    min-height: 390px;
  }

  .mission-head {
    padding: 22px 22px 18px;
  }

  .mission-head > strong {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-width: 6px;
  }

  .progress-track {
    margin: 0 22px;
  }

  .expedition-layout {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .animal-passport {
    width: min(100%, 470px);
    margin: 0 auto;
  }

  .zone-option {
    min-height: 192px;
  }

  .result-card {
    margin-top: 24px;
    padding: 34px 24px 42px;
    border-radius: 30px;
  }

  .result-ribbon {
    min-height: 80px;
  }

  .result-strip {
    flex-wrap: wrap;
  }

  .atlas-head {
    padding: 28px;
  }

  .atlas-head > strong {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }

  .qa-report ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app {
    width: min(100% - 16px, 1120px);
  }

  .brand {
    max-width: 182px;
  }

  .brand strong {
    line-height: 1.08;
  }

  .top-actions {
    gap: 6px;
  }

  .hero-copy {
    padding: 32px 20px 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stats li {
    flex: 1;
  }

  .hero-board {
    min-height: 610px;
    grid-template-columns: 1fr;
  }

  .hero-zone {
    min-height: 140px;
  }

  .hero-zone > .animal-figure {
    width: 45%;
    height: 80%;
  }

  .hero-stamp {
    top: 50%;
    left: auto;
    right: 8px;
    width: 78px;
    height: 78px;
    transform: translateY(-50%) rotate(-8deg);
  }

  .nature-rule {
    align-items: flex-start;
    margin-bottom: 44px;
    padding: 16px;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .route-card {
    min-height: 410px;
    padding: 22px;
  }

  .mission-head {
    align-items: flex-start;
    padding: 18px 15px 14px;
  }

  .mission-head h1 {
    font-size: 29px;
  }

  .mission-head p:last-child {
    display: none;
  }

  .progress-track {
    margin: 0 15px;
  }

  .expedition-layout {
    padding: 16px 12px 24px;
  }

  .animal-stage {
    min-height: 245px;
  }

  .animal-stage .animal-figure {
    height: 205px;
  }

  .zone-grid {
    grid-template-columns: 1fr;
  }

  .zone-option {
    min-height: 181px;
  }

  .board-title h2 {
    font-size: 32px;
  }

  .game-actions {
    flex-direction: column;
  }

  .game-actions .button {
    width: 100%;
  }

  .discovery-card {
    align-items: flex-start;
  }

  .discovery-card p {
    padding-right: 0;
  }

  .discovery-number {
    position: static;
    margin-left: auto;
    font-size: 14px;
  }

  .result-card h1 {
    font-size: 45px;
  }

  .result-stats {
    gap: 7px;
  }

  .result-stats div {
    padding: 15px 5px;
  }

  .result-stats dt {
    font-size: 28px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .atlas-head {
    display: block;
    padding: 24px 20px;
    text-align: center;
  }

  .atlas-head > strong {
    margin: 24px auto 0;
  }

  .atlas-card {
    min-height: 360px;
  }

  .qa-report {
    padding: 22px 16px;
  }

  .qa-report h1 {
    font-size: 37px;
  }

  .qa-report > div {
    flex-direction: column;
  }
}

@media (max-width: 410px) {
  .brand {
    max-width: 158px;
  }

  .brand strong {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-stats b {
    font-size: 26px;
  }

  .hero-stats span {
    font-size: 10px;
  }
}

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