:root {
  color-scheme: light;
  --ink: #294f4c;
  --muted: #6b817c;
  --paper: #fffdf7;
  --cream: #f4efd9;
  --green: #4b9d76;
  --green-dark: #34755a;
  --yellow: #efb743;
  --coral: #ed7467;
  --blue: #58a8d2;
  --purple: #8670b5;
  --line: rgba(181,153,94,.34);
  --shadow: 0 18px 42px rgba(71,75,52,.12), 0 5px 0 rgba(143,119,67,.13);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 0; background: var(--cream); }
body { min-width: 0; min-height: 100vh; margin: 0; overflow-x: clip; color: var(--ink); background: radial-gradient(circle at 18px 18px,rgba(255,255,255,.72) 0 2px,transparent 2.5px) 0 0/36px 36px, linear-gradient(145deg,#faf5df,#e8efd9); }
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid rgba(88,168,210,.44); outline-offset: 3px; }
h1,h2,h3,p { margin-top: 0; }
.app { width: min(1120px,calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding: 20px 0 48px; }
.paper-card { border: 2px solid var(--line); border-radius: 38px; background: rgba(255,253,247,.97); box-shadow: var(--shadow); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.brand-mark { display: grid; width: 52px; height: 52px; place-items: center; color: #fff; border: 4px solid #fff8e8; border-radius: 18px; background: var(--blue); box-shadow: 0 5px 0 rgba(44,117,151,.24); transform: rotate(-3deg); }
.brand-mark svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand b { display: block; font-size: 20px; letter-spacing: -.4px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; gap: 9px; }
.top-button { min-height: 45px; padding: 0 17px; border: 2px solid rgba(147,119,62,.28); border-radius: 15px; background: var(--paper); box-shadow: 0 4px 0 rgba(147,119,62,.14); font-weight: 900; }
.top-button.is-active { border-color: rgba(88,168,210,.58); color: #287498; }
.top-button span { margin-left: 4px; color: var(--green-dark); }
.eyebrow { margin-bottom: 9px; color: #a96912; font: 700 13px Georgia,serif; letter-spacing: 2.1px; text-transform: uppercase; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 485px; overflow: hidden; }
.hero-copy { padding: 55px 54px 46px; }
.hero h1 { max-width: 540px; margin-bottom: 18px; font-size: clamp(43px,5vw,65px); line-height: .98; letter-spacing: -2.4px; }
.hero-text { max-width: 545px; margin-bottom: 27px; color: #536f69; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: 52px; padding: 0 20px; border: 0; border-radius: 15px; font-weight: 900; transition: transform .15s; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:not(:disabled):active { transform: translateY(2px); }
.button svg,.card-link svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.primary { color: #fff; background: var(--green); box-shadow: 0 6px 0 var(--green-dark); }
.secondary { border: 2px solid rgba(162,133,76,.43); background: var(--paper); box-shadow: 0 5px 0 rgba(162,133,76,.19); }
.hint-button { color: #744c00; background: #ffe09a; box-shadow: 0 5px 0 #d69c22; }
.button:disabled { opacity: .55; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 25px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero-stats li { display: flex; align-items: baseline; gap: 7px; }
.hero-stats b { color: var(--coral); font: 700 27px Georgia,serif; }
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; padding: 32px; overflow: hidden; background: linear-gradient(155deg,#d8eef0,#f7d98d); }
.hero-art::before { position: absolute; right: -85px; bottom: -120px; width: 300px; height: 300px; border: 45px solid rgba(255,255,255,.23); border-radius: 50%; content: ""; }
.hero-art .world-map { width: 100%; }
.hero-animal { position: absolute; z-index: 4; width: 116px; height: 116px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(68,77,58,.18)); }
.hero-one { right: 26px; bottom: 28px; }
.hero-two { left: 22px; bottom: 25px; }
.hero-label { position: absolute; z-index: 5; top: 31px; left: 50%; width: max-content; max-width: 86%; padding: 10px 16px; border: 3px solid #fff; border-radius: 11px; color: #fff; background: var(--coral); box-shadow: 0 5px 0 rgba(139,69,59,.2); font-weight: 900; transform: translateX(-50%) rotate(-2deg); }

.world-map { position: relative; min-width: 0; aspect-ratio: 2/1; }
.world-map svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px rgba(49,99,105,.13)); }
.world-map .ocean { fill: #d6edf0; stroke: rgba(255,255,255,.9); stroke-width: 8; }
.world-map .land { fill: #d7dcae; stroke: #fff9e9; stroke-width: 6; stroke-linejoin: round; }
.world-map .land-africa { fill: #f1c878; }
.world-map .land-australia { fill: #dda982; }
.world-map .land-eurasia { fill: #bcd8b4; }
.world-map .land-america { fill: #a8d1bb; }
.world-map .land-greenland { fill: #eef3e7; }
.world-map .land-island { fill: #b8d4ae; }
.map-pin { position: absolute; z-index: 4; left: var(--x); top: var(--y); display: grid; width: 30px; height: 30px; place-items: center; border: 4px solid #fff; border-radius: 50% 50% 50% 0; background: var(--coral); box-shadow: 0 5px 10px rgba(75,58,44,.25); transform: translate(-50%,-100%) rotate(-45deg); animation: pin-pop .35s ease-out; }
.map-pin b { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.map-pin small { position: absolute; left: 29px; top: 20px; width: max-content; max-width: 150px; padding: 5px 8px; border: 2px solid rgba(194,140,59,.3); border-radius: 8px; color: var(--ink); background: #fffdf7; box-shadow: 0 4px 0 rgba(134,109,62,.14); font-size: 10px; font-weight: 900; transform: rotate(45deg); }
.sample-marker { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--coral); box-shadow: 0 3px 0 rgba(140,80,59,.18); transform: translate(-50%,-50%); }
.question-pin { position: absolute; z-index: 4; left: 50%; top: 50%; display: grid; width: 55px; height: 55px; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #a66d12; background: #ffe39c; box-shadow: 0 7px 0 rgba(150,118,49,.16); font: 700 34px Georgia,serif; transform: translate(-50%,-50%); }

.how { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 28px; margin-top: 26px; padding: 28px 34px; }
.how h2 { margin: 0; font-size: 29px; line-height: 1.05; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.steps article { position: relative; min-height: 92px; padding: 17px 12px 14px 55px; border: 2px dashed #dfc998; border-radius: 19px; }
.steps article > span { position: absolute; top: 15px; left: 12px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.steps b { display: block; margin-bottom: 3px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.levels-section { margin-top: 36px; }
.section-heading h2 { margin: 0 0 20px; font-size: 31px; }
.level-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.level-card { position: relative; min-width: 0; padding: 28px; overflow: hidden; border: 2px solid var(--line); border-radius: 31px; box-shadow: var(--shadow); }
.level-card.coral { background: #f9ded7; }
.level-card.blue { background: #dcecf2; }
.level-card.green { background: #e1eedb; }
.level-number { position: absolute; top: 14px; right: 20px; color: rgba(41,79,76,.12); font: 700 70px Georgia,serif; }
.level-card > p { margin-bottom: 9px; color: #9e651b; font: 700 12px Georgia,serif; letter-spacing: 1.3px; text-transform: uppercase; }
.level-card h3 { position: relative; margin-bottom: 7px; font-size: 25px; }
.level-note { display: block; min-height: 42px; color: var(--muted); line-height: 1.4; }
.level-preview { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; min-height: 125px; margin: 15px -8px; padding: 10px; border-radius: 22px; background: rgba(255,253,247,.64); }
.level-preview .family-scene { min-height: 100px; }
.level-preview .landscape { height: 90px; }
.level-meta { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.level-meta span:last-child { color: #a16a13; }
.card-link { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; border-radius: 14px; color: #fff; background: var(--green); box-shadow: 0 5px 0 var(--green-dark); font-weight: 900; }
.grownup-note { max-width: 870px; margin: 34px auto 0; color: var(--muted); text-align: center; line-height: 1.45; }

.family-scene { position: relative; display: grid; min-width: 0; min-height: 230px; grid-template-columns: 1.15fr .85fr; align-items: end; padding: 15px 18px 42px; overflow: hidden; border-radius: 27px; background: radial-gradient(circle at 50% 46%,#fff8d8 0 40%,transparent 41%), linear-gradient(145deg,#e4f0dc,#f5e8c9); }
.family-scene .scene-ring { position: absolute; top: 50%; left: 50%; width: 165px; height: 165px; border: 25px solid rgba(255,255,255,.38); border-radius: 50%; transform: translate(-50%,-50%); }
.family-scene img { position: relative; z-index: 1; width: 100%; height: 165px; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(56,76,61,.13)); }
.family-scene .baby { height: 125px; }
.family-scene > b { position: absolute; z-index: 3; bottom: 13px; left: 50%; width: max-content; max-width: 90%; padding: 6px 12px; border: 2px solid #fff; border-radius: 9px; color: #fff; background: var(--coral); box-shadow: 0 4px 0 rgba(131,69,60,.18); text-transform: uppercase; transform: translateX(-50%); }
.family-scene.compact { min-height: 105px; padding: 5px; background: transparent; }
.family-scene.compact .scene-ring { display: none; }
.family-scene.compact img { height: 91px; }
.family-scene.compact .baby { height: 68px; }

.game-card { padding: 25px 30px 30px; }
.game-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.back-button { display: grid; width: 50px; height: 50px; place-items: center; border: 2px solid rgba(179,149,91,.46); border-radius: 16px; background: var(--paper); box-shadow: 0 4px 0 rgba(154,127,70,.15); font-size: 31px; }
.game-head p { margin: 0 0 2px; color: #a56b15; font: 700 12px Georgia,serif; letter-spacing: 1.5px; text-transform: uppercase; }
.game-head > strong { font: 400 16px Georgia,serif; }
.game-head > strong span { color: var(--coral); font-size: 27px; }
.progress-track { height: 9px; margin: 16px 0 24px 64px; overflow: hidden; border-radius: 99px; background: #eee5cb; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--green)); }
.mission { text-align: center; }
.mission h1 { margin-bottom: 7px; font-size: clamp(32px,4vw,45px); letter-spacing: -1px; }
.mission > p:last-child { color: var(--muted); font-size: 17px; }
.expedition-board { display: grid; grid-template-columns: .82fr 1.18fr; gap: 16px; margin: 24px 0 30px; padding: 16px; border-radius: 31px; background: #e8f2ed; }
.animal-panel { min-width: 0; }
.animal-panel > p { margin: 10px 5px 0; color: var(--muted); font-size: 13px; text-align: center; }
.map-panel { position: relative; display: grid; min-width: 0; place-items: center; padding: 16px 18px 42px; border: 3px solid #fff; border-radius: 27px; background: linear-gradient(145deg,#dff0f1,#f8f0d6); box-shadow: 0 7px 0 rgba(84,111,99,.13); }
.map-panel .world-map { width: 100%; }
.map-panel > span { position: absolute; bottom: 11px; left: 50%; width: max-content; max-width: 90%; padding: 5px 10px; border-radius: 8px; color: #5d7772; background: rgba(255,253,247,.9); font-size: 12px; font-weight: 900; transform: translateX(-50%); }

.choice-panel { max-width: 1000px; margin: 0 auto; }
.choice-title { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.choice-title h2 { margin-bottom: 15px; font-size: 31px; }
.choice-title > span { margin-bottom: 19px; color: var(--muted); }
.options { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; }
.option { position: relative; min-width: 0; min-height: 175px; padding: 9px 9px 13px; border: 2px solid rgba(179,149,91,.31); border-radius: 22px; background: var(--paper); box-shadow: 0 6px 0 rgba(151,124,70,.2); transition: transform .15s,border-color .15s; }
.option:not(:disabled):hover { border-color: var(--blue); transform: translateY(-3px); }
.option-number { position: absolute; z-index: 3; top: 10px; left: 10px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #fff; background: #97ada8; font-size: 12px; font-weight: 900; }
.option-copy { display: block; padding: 7px 4px 0; text-align: center; }
.option-copy b { display: block; margin-bottom: 2px; font-size: 16px; }
.option-copy small { display: block; min-height: 30px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.option.is-wrong { border-color: var(--coral); background: #fbe1dc; opacity: .72; }
.option.is-wrong .option-number { background: var(--coral); }
.option.is-correct { border-color: var(--green); background: #ddf0e3; }
.option.is-correct .option-number { background: var(--green); }

.landscape { position: relative; height: 105px; overflow: hidden; border-radius: 16px; background: #d9edf1; }
.landscape i { position: absolute; display: block; }
.landscape .sky { inset: 0; background: linear-gradient(#cce8ed 0 62%,transparent 63%); }
.landscape .sun { top: 13px; right: 17px; width: 24px; height: 24px; border-radius: 50%; background: #f8c74f; }
.landscape .back { right: -10%; bottom: 15px; width: 78%; height: 50%; border-radius: 50% 50% 0 0; background: #b7d3a1; }
.landscape .front { left: -10%; bottom: 0; width: 90%; height: 39%; border-radius: 50% 55% 0 0; background: #82b887; }
.landscape .detail { bottom: 18px; width: 11px; height: 34px; border-radius: 8px 8px 3px 3px; background: #45775f; }
.landscape .detail::before { position: absolute; left: 50%; top: -12px; width: 30px; height: 25px; border-radius: 50%; background: inherit; content: ""; transform: translateX(-50%); }
.landscape .one { left: 24%; }
.landscape .two { left: 43%; transform: scale(.75); }
.landscape.desert { background: #f9df9e; }
.landscape.desert .sky { background: linear-gradient(#cfeaf0 0 52%,transparent 53%); }
.landscape.desert .back,.landscape.desert .front { background: #e9b95a; }
.landscape.desert .detail { width: 8px; background: #6da06f; }
.landscape.snow,.landscape.snowSea { background: #d9edf4; }
.landscape.snow .back,.landscape.snow .front,.landscape.snowSea .back { background: #f7fbf7; }
.landscape.snowSea .front { background: #82c5d7; }
.landscape.mountains,.landscape.mountainForest { background: #d9ebef; }
.landscape.mountains .back,.landscape.mountainForest .back { width: 0; height: 0; right: 15%; bottom: 12px; border-left: 55px solid transparent; border-right: 55px solid transparent; border-bottom: 82px solid #859b91; border-radius: 0; background: transparent; }
.landscape.mountains .front,.landscape.mountainForest .front { background: #9bb77e; }
.landscape.sea,.landscape.river { background: #cfeaf1; }
.landscape.sea .back,.landscape.river .back { bottom: 0; width: 110%; height: 44%; border-radius: 35% 45% 0 0; background: #5db2cc; }
.landscape.sea .front,.landscape.river .front { height: 25%; background: #3c9bbd; }
.landscape.rainforest .back,.landscape.rainforest .front,.landscape.forest .back,.landscape.forest .front { background: #5f9b70; }
.landscape.rainforest .detail,.landscape.forest .detail { background: #366d55; }
.landscape.bush .back { background: #cbb66e; }
.landscape.bush .front { background: #8eb678; }
.landscape.island .back { background: #7ac4c7; }
.landscape.island .front { left: 20%; width: 60%; background: #83b777; }
.landscape.savanna .back { background: #d3bc65; }
.landscape.savanna .front { background: #b99b4b; }

.feedback { display: flex; min-height: 57px; align-items: center; gap: 12px; margin-top: 17px; padding: 11px 15px; border-radius: 17px; }
.feedback > span { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; }
.feedback p { margin: 0; line-height: 1.4; }
.feedback b { display: block; margin-bottom: 2px; }
.feedback.quiet { background: #f2eee2; }
.feedback.quiet > span { background: #9eb2ad; }
.feedback.error { color: #98473f; background: #fbe0dc; }
.feedback.error > span { background: var(--coral); }
.feedback.success { color: #35785d; background: #ddf0e3; }
.feedback.success > span { background: var(--green); }
.hint-card { margin-top: 11px; padding: 14px 17px; border: 2px dashed #d6a434; border-radius: 17px; background: #fff6d6; }
.hint-card span { display: block; margin-bottom: 4px; color: #9a6511; font: 700 12px Georgia,serif; letter-spacing: 1.4px; text-transform: uppercase; }
.hint-card p { margin: 0; line-height: 1.45; }
.game-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 13px; margin-top: 15px; }
.discovery { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 28px; margin-top: 25px; padding: 25px 30px; }
.discovery .stamp { position: relative; min-height: 130px; border-radius: 23px; background: #e9f2dd; }
.discovery .stamp b { position: absolute; right: 8px; bottom: 10px; padding: 6px 9px; border: 3px solid #fff; border-radius: 8px; color: #fff; background: var(--coral); font-size: 11px; text-transform: uppercase; transform: rotate(-6deg); }
.discovery h2 { margin-bottom: 7px; font-size: 29px; }
.discovery p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }

.result { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 570px; overflow: hidden; }
.result-art { position: relative; display: grid; place-items: center; padding: 35px 22px; background: linear-gradient(145deg,#d7eef0,#f1dda5); }
.result-art .world-map { width: 100%; }
.result-art .sample-marker { animation: pin-pop .3s ease-out; }
.result-families { position: absolute; left: 50%; bottom: 64px; display: flex; transform: translateX(-50%); }
.result-families img { width: 71px; height: 71px; margin-left: -10px; object-fit: contain; filter: drop-shadow(0 5px 3px rgba(45,68,55,.18)); }
.result-art > span { position: absolute; bottom: 25px; padding: 9px 15px; border: 3px solid #fff; border-radius: 10px; color: #fff; background: var(--coral); box-shadow: 0 5px 0 rgba(136,70,61,.22); font-weight: 900; transform: rotate(-3deg); }
.result-copy { padding: 48px 43px; }
.result h1 { max-width: 540px; margin-bottom: 20px; font-size: clamp(40px,5vw,58px); line-height: 1; }
.stars { margin-bottom: 19px; }
.stars span { color: #ddd2b7; font: 700 48px Georgia,serif; }
.stars .earned { color: #eba92f; text-shadow: 0 3px 0 #c9841f; }
.result-copy > p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.result dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 22px 0; }
.result dl div { padding: 13px 8px; border-radius: 15px; background: #f3eee0; text-align: center; }
.result dt { color: var(--muted); font-size: 12px; }
.result dd { margin: 4px 0 0; font: 700 25px Georgia,serif; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { margin-top: 17px; padding: 0; border: 0; color: var(--green-dark); background: transparent; font-weight: 900; text-decoration: underline; }

.atlas-head { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 34px 40px; }
.atlas-head h1 { margin-bottom: 8px; font-size: 42px; }
.atlas-head p:last-child { margin: 0; color: var(--muted); }
.atlas-head > strong { display: grid; width: 118px; height: 118px; flex: 0 0 auto; place-items: center; align-content: center; border: 7px solid #b8dce7; border-radius: 50%; background: #eefaff; text-align: center; }
.atlas-head > strong b { color: var(--coral); font: 700 28px Georgia,serif; }
.atlas-head > strong span { color: var(--muted); font-size: 11px; }
.atlas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
.atlas-card { position: relative; min-width: 0; min-height: 345px; padding: 18px 17px; border: 2px solid var(--line); border-radius: 25px; background: var(--paper); box-shadow: var(--shadow); }
.card-index { position: absolute; z-index: 4; top: 11px; right: 13px; color: #b88934; font: 700 12px Georgia,serif; }
.atlas-picture { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 160px; margin-bottom: 14px; overflow: hidden; border-radius: 19px; background: #e8f3f2; }
.atlas-picture .family-scene { z-index: 2; min-height: 145px; }
.atlas-picture .world-map { margin-right: 8px; }
.atlas-picture .map-pin { width: 19px; height: 19px; border-width: 3px; }
.atlas-picture .map-pin b { width: 5px; height: 5px; }
.atlas-picture .map-pin small { display: none; }
.atlas-card h2 { margin-bottom: 3px; font-size: 21px; }
.atlas-card > b { display: block; margin-bottom: 8px; color: #a66a14; }
.atlas-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.atlas-card.is-locked { display: grid; place-items: center; align-content: center; text-align: center; background: rgba(255,253,247,.66); }
.locked-mark { display: grid; width: 74px; height: 74px; margin-bottom: 16px; place-items: center; border: 3px dashed #ccb887; border-radius: 50%; color: #b39a70; font: 700 37px Georgia,serif; }
.atlas-back { display: block; margin: 25px auto 0; }

@keyframes pin-pop { from { opacity: .2; transform: translate(-50%,-100%) rotate(-45deg) scale(.4); } to { opacity: 1; transform: translate(-50%,-100%) rotate(-45deg) scale(1); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 42px 38px; }
  .hero-art { min-height: 390px; }
  .hero-art .world-map { width: min(650px,100%); }
  .how { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .level-card > p,.level-card h3,.level-card .level-note { grid-column: 1; }
  .level-card .level-preview { grid-column: 2; grid-row: 1/span 4; margin: 0; }
  .level-meta,.card-link { grid-column: 1/-1; }
  .result { grid-template-columns: 1fr; }
  .result-art { min-height: 400px; }
  .result-art .world-map { width: min(630px,90%); }
  .atlas-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: 70px; }
  .expedition-board { grid-template-columns: 1fr; }
  .animal-panel .family-scene { min-height: 200px; }
  .map-panel { min-height: 280px; }
  .options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .options.count-3 .option:last-child,.options.count-5 .option:last-child { grid-column: 1/-1; }
  .discovery { grid-template-columns: 1fr; }
  .atlas-head { align-items: flex-start; }
}

@media (max-width: 520px) {
  .app { width: min(100% - 18px,1120px); padding-top: 10px; }
  .paper-card { border-radius: 28px; }
  .topbar { align-items: flex-start; gap: 7px; margin-bottom: 11px; }
  .brand { gap: 7px; }
  .brand-mark { width: 43px; height: 43px; border-width: 3px; border-radius: 14px; }
  .brand-mark svg { width: 26px; }
  .brand b { max-width: 135px; font-size: 15px; line-height: 1.05; }
  .brand small { display: none; }
  .top-actions { gap: 5px; }
  .top-button { min-height: 42px; padding: 0 9px; border-radius: 13px; font-size: 12px; }
  .hero-copy { padding: 36px 23px 32px; }
  .hero h1 { font-size: 44px; }
  .hero-text { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-stats { gap: 13px; margin-top: 31px; }
  .hero-art { min-height: 300px; padding: 22px 8px; }
  .hero-animal { width: 82px; height: 82px; }
  .hero-label { top: 17px; font-size: 12px; }
  .how { padding: 23px 18px; }
  .how h2,.section-heading h2 { font-size: 26px; }
  .level-card { display: block; padding: 24px 20px; }
  .level-card .level-preview { margin: 14px -6px; }
  .game-card { padding: 16px 12px 19px; }
  .game-head { gap: 9px; }
  .back-button { width: 47px; height: 47px; }
  .game-head > div b { display: block; max-width: 180px; line-height: 1.15; }
  .progress-track { margin: 14px 0 20px; }
  .mission h1 { font-size: 31px; }
  .mission > p:last-child { font-size: 15px; }
  .expedition-board { gap: 10px; margin: 19px 0 26px; padding: 9px; border-radius: 24px; }
  .family-scene { min-height: 190px; padding: 8px 8px 38px; }
  .family-scene img { height: 135px; }
  .family-scene .baby { height: 100px; }
  .map-panel { min-height: 230px; padding: 8px 5px 35px; }
  .map-panel .map-pin small { max-width: 105px; font-size: 8px; }
  .choice-title h2 { font-size: 26px; }
  .choice-title > span { font-size: 12px; }
  .options { gap: 9px; }
  .option { min-height: 155px; padding: 7px; border-radius: 19px; }
  .landscape { height: 84px; }
  .option-copy b { font-size: 14px; }
  .option-copy small { font-size: 10px; }
  .game-actions .button { width: 100%; }
  .discovery { padding: 21px 15px; }
  .result-art { min-height: 290px; padding: 20px 8px; }
  .result-families { bottom: 47px; }
  .result-families img { width: 51px; height: 51px; }
  .result-art > span { bottom: 13px; font-size: 12px; }
  .result-copy { padding: 34px 22px; }
  .result h1 { font-size: 42px; }
  .result dl { gap: 5px; }
  .result-actions .button { width: 100%; }
  .atlas-head { padding: 25px 21px; }
  .atlas-head h1 { font-size: 32px; }
  .atlas-head > strong { width: 85px; height: 85px; border-width: 5px; }
  .atlas-grid { grid-template-columns: 1fr; }
  .atlas-card { min-height: 330px; }
}

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