:root {
  --cream: #f8f1e2;
  --paper: #fffaf0;
  --ink: #173f36;
  --muted: #60766f;
  --green: #2f8168;
  --green-dark: #1f5e4c;
  --coral: #cf7357;
  --mustard: #dfa94d;
  --line: rgba(49, 91, 75, .16);
  --shadow: 0 22px 48px rgba(54, 66, 50, .13);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: hidden; }
body { min-width: 0; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 10% 4%,rgba(238,190,94,.2),transparent 30%),radial-gradient(circle at 91% 21%,rgba(86,148,128,.16),transparent 33%),var(--cream); }
button { font: inherit; }
.app { width: min(1120px, calc(100% - 32px)); margin: 28px auto 38px; }

.game-bar { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,251,242,.94); box-shadow: 0 11px 24px rgba(59,69,54,.09); }
.game-brand { display: flex; min-width: 0; align-items: center; gap: 13px; }
.game-brand > span:last-child { display: grid; gap: 2px; min-width: 0; }
.game-brand strong { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.game-brand small { color: var(--muted); font-size: 12px; }
.game-icon { display: grid; width: 47px; height: 47px; flex: 0 0 47px; place-items: center; border: 1px solid rgba(62,112,89,.18); border-radius: 15px; background: #edf2d9; }
.game-icon svg { width: 38px; height: 38px; }
.icon-trail { fill: none; stroke: #78a783; stroke-width: 4; stroke-linecap: round; }
.icon-post { fill: none; stroke: #846245; stroke-width: 3; stroke-linecap: round; }
.icon-board { fill: #edc06a; stroke: #846245; stroke-width: 2; stroke-linejoin: round; }
.icon-arrow { fill: none; stroke: #fff8e7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.age-pill { flex: 0 0 auto; padding: 9px 15px; border-radius: 999px; color: #fff; background: var(--green); font-size: 13px; font-weight: 850; }

.screen { display: none; animation: screen-in .3s ease both; }
.screen.is-active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { margin: 0 0 8px; color: #7c6942; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
button { -webkit-tap-highlight-color: transparent; }
.primary-button, .secondary-button, .hint-button, .next-button { min-height: 50px; border-radius: 14px; cursor: pointer; font-weight: 900; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.primary-button { padding: 0 21px; border: 0; color: #fff; background: var(--green); box-shadow: 0 11px 19px rgba(37,104,82,.19); }
.primary-button:hover, .next-button:hover { background: var(--green-dark); transform: translateY(-2px); }
.secondary-button { padding: 0 20px; border: 1px solid var(--line); color: var(--ink); background: #edf2e8; }
.hint-button { padding: 0 18px; border: 1px solid #b8cadd; color: #34566e; background: #e8f0f8; }
.next-button { padding: 0 20px; border: 0; color: #fff; background: var(--green); }
.primary-button:focus-visible, .secondary-button:focus-visible, .hint-button:focus-visible, .next-button:focus-visible, .trail-sign:focus-visible, .round-button:focus-visible, .route-button:focus-visible, .task-tab:focus-visible { outline: 4px solid rgba(225,171,76,.42); outline-offset: 3px; }

.home-screen { position: relative; min-height: 608px; overflow: hidden; padding: 60px 56px 31px; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(105deg,rgba(255,251,241,.98) 0 49%,rgba(224,239,223,.96) 49% 100%); box-shadow: var(--shadow); }
.home-screen::after { content: ""; position: absolute; right: -110px; bottom: -125px; width: 610px; height: 300px; border-radius: 50%; background: #d6bd79; opacity: .46; }
.hero-copy { position: relative; z-index: 4; width: min(51%, 500px); }
h1 { max-width: 510px; margin-bottom: 18px; font-size: clamp(39px,5vw,61px); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 480px; margin-bottom: 23px; color: #4d665f; font-size: 18px; line-height: 1.58; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero-facts span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: #356457; font-size: 12px; font-weight: 850; }
.hero-map { position: absolute; z-index: 2; top: 28px; right: 18px; width: 47%; height: 440px; overflow: hidden; border-radius: 30px 44% 30px 30px; background: linear-gradient(rgba(238,246,226,.25),rgba(238,246,226,.25)),url("../assets/scene-library/backgrounds/meadow-path.webp") center/cover; box-shadow: inset 0 0 0 1px rgba(48,93,72,.14); }
.hero-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(255,255,255,.14),transparent 45%); pointer-events: none; }
.hero-path { position: absolute; z-index: 1; height: 38px; border: 6px solid rgba(126,92,54,.55); border-radius: 999px; background: #f3dfb7; box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.hero-path-one { left: -7%; bottom: 76px; width: 67%; transform: rotate(-14deg); }
.hero-path-two { right: -12%; bottom: 104px; width: 64%; transform: rotate(18deg); }
.hero-hedgehog { position: absolute; z-index: 4; left: 4%; bottom: 62px; width: 40%; height: 48%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(54,60,44,.19)); transform: scaleX(-1); }
.hero-friend { position: absolute; z-index: 3; right: 4%; top: 53px; width: 31%; height: 39%; object-fit: contain; filter: drop-shadow(0 9px 7px rgba(54,60,44,.16)); }
.hero-sign { position: absolute; z-index: 5; left: 52%; top: 137px; width: 91px; height: 164px; transform: translateX(-50%); }
.hero-sign::before { content: ""; position: absolute; left: 41px; top: 32px; width: 13px; height: 132px; border-radius: 7px; background: #7d5a3e; box-shadow: inset 3px 0 rgba(255,255,255,.17); }
.hero-sign i, .hero-sign b { position: absolute; z-index: 2; left: 2px; display: block; width: 86px; height: 34px; border: 3px solid #7d5a3e; border-radius: 8px; background: #e4b35d; clip-path: polygon(0 0,74% 0,100% 50%,74% 100%,0 100%,9% 50%); }
.hero-sign i { top: 18px; transform: rotate(-24deg); }.hero-sign b { top: 65px; transform: rotate(27deg); }
.how-strip { position: absolute; z-index: 5; left: 56px; right: 56px; bottom: 31px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.how-strip article { display: flex; min-height: 76px; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,252,244,.94); box-shadow: 0 8px 18px rgba(56,67,52,.06); }
.how-strip b { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: #fff; background: var(--coral); }
.how-strip span { display: grid; gap: 4px; }.how-strip strong { font-size: 14px; }.how-strip small { color: var(--muted); font-size: 12px; }

.routes-screen, .play-screen { padding: 31px; border: 1px solid var(--line); border-radius: 32px; background: rgba(255,251,242,.96); box-shadow: var(--shadow); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title h2 { margin: 0; font-size: 43px; letter-spacing: -.035em; }.section-title > p { margin: 0 0 8px; color: var(--muted); font-weight: 850; }
.route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.route-card { display: flex; min-width: 0; min-height: 405px; flex-direction: column; padding: 16px; border: 1px solid color-mix(in srgb,var(--route-color) 28%,transparent); border-radius: 24px; background: color-mix(in srgb,var(--route-color) 8%,#fffaf0); }
.route-art { position: relative; height: 154px; overflow: hidden; border-radius: 18px; background-position: center; background-size: cover; }
.route-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent,rgba(31,54,43,.15)); }
.route-art img { position: absolute; z-index: 2; right: 6%; bottom: 3%; width: 34%; height: 72%; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(35,48,37,.18)); }
.route-mini-sign { position: absolute; z-index: 3; left: 13%; bottom: 15%; width: 55px; height: 58px; }
.route-mini-sign::before { content: ""; position: absolute; left: 25px; top: 13px; width: 8px; height: 45px; border-radius: 5px; background: #725039; }
.route-mini-sign::after { content: ""; position: absolute; left: 0; top: 5px; width: 52px; height: 22px; border: 2px solid #725039; border-radius: 5px; background: #efbd62; clip-path: polygon(0 0,74% 0,100% 50%,74% 100%,0 100%,9% 50%); transform: rotate(var(--mini-angle)); }
.route-number { margin: 19px 0 8px; color: #806d49; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.route-card h3 { margin-bottom: 8px; font-size: 23px; }.route-card > p { min-height: 48px; margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.route-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 11px; color: color-mix(in srgb,var(--route-color) 84%,#233); font-size: 12px; font-weight: 850; }
.route-progress { height: 8px; margin-bottom: 17px; overflow: hidden; border-radius: 999px; background: rgba(51,81,68,.11); }.route-progress i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--route-color); }
.route-button { display: flex; min-height: 49px; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; border-radius: 14px; color: #fff; background: var(--route-color); cursor: pointer; font-weight: 900; }
.back-link { margin-top: 25px; padding: 8px 0; border: 0; color: var(--green-dark); background: transparent; cursor: pointer; font-weight: 850; }

.task-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }.task-head h2 { margin: 0; font-size: 38px; letter-spacing: -.035em; }
.round-button { display: grid; width: 49px; height: 49px; place-items: center; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; cursor: pointer; font-size: 20px; }
.counter { padding: 10px 14px; border-radius: 999px; background: #e7f0e8; font-size: 13px; font-weight: 900; }
.route-progress-line { height: 8px; margin: 15px 0 17px; overflow: hidden; border-radius: 999px; background: rgba(49,91,75,.12); }.route-progress-line i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--route-color,var(--green)); transition: width .25s ease; }
.mission-strip { display: grid; grid-template-columns: 94px 1fr auto; min-height: 125px; align-items: center; gap: 18px; margin-bottom: 16px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(100deg,#edf5e7,#fff7e8); }
.mission-strip > img { width: 94px; height: 94px; object-fit: contain; filter: drop-shadow(0 7px 5px rgba(50,62,47,.13)); }.mission-strip > img.is-flipped { transform: scaleX(-1); }
.mission-strip div > span { color: #806c47; font-size: 11px; font-weight: 900; letter-spacing: .12em; }.mission-strip h3 { margin: 5px 0; font-size: 24px; }.mission-strip p { margin: 0; color: var(--muted); font-size: 14px; }.mission-strip > b { padding: 10px 13px; border-radius: 999px; color: #fff; background: #718665; font-size: 12px; }
.map-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(272px,.75fr); gap: 16px; align-items: start; }
.trail-card, .control-card { border: 1px solid var(--line); border-radius: 23px; background: #fffdf6; }
.trail-card { min-width: 0; padding: 13px; }
.trail-map { position: relative; width: 100%; aspect-ratio: 100 / 68; overflow: hidden; border-radius: 18px; background-position: center; background-size: cover; isolation: isolate; }
.trail-map::before { content: ""; position: absolute; z-index: 0; inset: 0; background: rgba(242,239,210,.24); box-shadow: inset 0 0 0 1px rgba(60,91,68,.14); }
.trail-svg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.trail-outline { fill: none; stroke: rgba(89,64,41,.72); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trail-line { fill: none; stroke: #f1d39a; stroke-width: 10.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trail-line-detail { fill: none; stroke: rgba(255,250,225,.92); stroke-width: 2; stroke-dasharray: 1 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trail-choice-shadow, .trail-choice { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .2s ease; }
.trail-choice-shadow { stroke: rgba(255,255,242,.92); stroke-width: 8.5; }
.trail-choice { stroke: #4e9b78; stroke-width: 5.5; }
.trail-map.has-error .trail-choice { stroke: #d56f51; }.trail-map.has-success .trail-choice { stroke: #31835e; }
.map-character { position: absolute; z-index: 6; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: clamp(46px,10%,76px); height: 17%; object-fit: contain; filter: drop-shadow(0 7px 5px rgba(33,48,37,.19)); transform: translate(-50%,-92%) scaleX(var(--hero-facing,-1)); }
.map-goal { position: absolute; z-index: 4; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: clamp(50px,12%,88px); height: 20%; object-fit: contain; filter: drop-shadow(0 7px 5px rgba(33,48,37,.17)); transform: translate(-50%,-94%) var(--goal-flip,scaleX(1)); }
.map-goal.is-flipped { --goal-flip: scaleX(-1); }
.dead-end { position: absolute; z-index: 3; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: clamp(33px,7.5%,58px); height: 13%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(33,48,37,.14)); transform: translate(-50%,-88%); }
.trail-sign { position: absolute; z-index: 7; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: clamp(45px,8.5%,64px); height: clamp(56px,12%,78px); padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%,-63%); }
.trail-sign::before { content: ""; position: absolute; left: 46%; top: 29%; width: 10%; height: 68%; border-radius: 5px; background: #725039; box-shadow: inset 2px 0 rgba(255,255,255,.19); }
.trail-sign b { position: absolute; z-index: 2; left: 4%; top: 13%; width: 92%; height: 36%; border: 2px solid #725039; border-radius: 7px; background: linear-gradient(#ffd987,#e9ad45); clip-path: polygon(0 0,73% 0,100% 50%,73% 100%,0 100%,9% 50%); box-shadow: 0 0 0 4px rgba(255,255,246,.88),0 5px 7px rgba(62,49,34,.24); transform: rotate(var(--angle)); transition: transform .22s ease; }
.trail-sign b::before { content: ""; position: absolute; left: 18%; top: 50%; width: 42%; height: 4px; border-radius: 3px; background: #fff5d8; transform: translateY(-50%); }
.trail-sign b::after { content: ""; position: absolute; left: 56%; top: 50%; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid #fff5d8; transform: translateY(-50%); }
.trail-sign span { position: absolute; z-index: 3; left: 50%; bottom: -2px; display: grid; width: 23px; height: 23px; place-items: center; border: 2px solid #fff4d9; border-radius: 50%; color: #fff; background: #8a6244; font-size: 11px; font-weight: 900; transform: translateX(-50%); }
.trail-sign:hover b { background: linear-gradient(#ffd991,#e8b45a); }.trail-sign.is-hinted b { box-shadow: 0 0 0 5px rgba(87,144,184,.34),0 4px 5px rgba(62,49,34,.16); }.trail-sign.is-wrong b { box-shadow: 0 0 0 5px rgba(210,103,77,.34),0 4px 5px rgba(62,49,34,.16); animation: sign-wrong .4s ease; }
@keyframes sign-wrong { 25% { translate: -2px 0; } 50% { translate: 3px 0; } 75% { translate: -1px 0; } }
.trail-map.is-running .trail-sign { pointer-events: none; }
.map-start { position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 33px; height: 13px; border-radius: 50%; background: rgba(43,102,78,.28); filter: blur(2px); transform: translate(-50%,20%); }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 11px 5px 1px; color: var(--muted); font-size: 12px; font-weight: 800; }.map-legend span { display: inline-flex; align-items: center; gap: 7px; }.map-legend i { width: 17px; height: 10px; border-radius: 50%; }.legend-start { background: #7ba88d; }.legend-goal { background: #e9b35c; }
.control-card { display: flex; min-width: 0; flex-direction: column; padding: 21px; }.control-card h3 { margin-bottom: 8px; font-size: 28px; }.control-card > div:first-child > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.45; }
.route-steps { display: grid; gap: 5px; margin: 12px 0 9px; }.route-steps span { display: flex; align-items: center; gap: 7px; color: #5d706a; font-size: 11px; font-weight: 850; }.route-steps b { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border-radius: 50%; color: #fff; background: #51896e; font-size: 10px; }
.sign-summary { display: grid; gap: 7px; margin: 3px 0 15px; }.summary-sign { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px 7px 11px; border: 1px solid rgba(110,86,55,.18); border-radius: 12px; color: #6c563b; background: #f7edd8; cursor: pointer; text-align: left; transition: border-color .18s ease,background .18s ease,transform .18s ease; }.summary-sign:hover { border-color: #d3a64e; background: #fff1d0; transform: translateY(-1px); }.summary-sign > span:first-child { display: grid; gap: 1px; }.summary-sign b { font-size: 12px; }.summary-sign small { color: #81735f; font-size: 9px; }.summary-direction { display: flex; align-items: center; gap: 7px; color: var(--ink); }.summary-direction i { position: relative; display: block; width: 23px; height: 4px; border-radius: 4px; background: #d69d36; transform: rotate(var(--angle)); transition: transform .22s ease; }.summary-direction i::after { content: ""; position: absolute; right: -1px; top: 50%; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid #d69d36; transform: translateY(-50%); }.summary-direction strong { min-width: 49px; color: var(--ink); font-size: 11px; text-align: right; }.summary-sign.is-hinted { border-color: #5a8bad; box-shadow: 0 0 0 3px rgba(90,139,173,.16); }.summary-sign.is-wrong { border-color: #cc7258; background: #ffe7df; }
.feedback { display: grid; min-height: 79px; gap: 4px; margin-top: auto; padding: 12px 13px; border-left: 5px solid #d7aa4e; border-radius: 13px; background: #fff2cf; }.feedback b { font-size: 14px; }.feedback span { color: #5d706b; font-size: 12px; line-height: 1.4; }.feedback[data-tone="error"] { border-color: #cc7258; background: #ffe7df; }.feedback[data-tone="hint"] { border-color: #5a8bad; background: #e9f1f8; }.feedback[data-tone="success"] { border-color: #428568; background: #e3f1e7; }
.control-actions { display: grid; gap: 8px; margin-top: 12px; }.control-actions button { width: 100%; }.control-actions button:disabled { cursor: wait; opacity: .65; transform: none; }
.task-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-top: 16px; }.task-tab { min-height: 39px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #f6f1e5; cursor: pointer; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }.task-tab.is-active { color: #fff; border-color: var(--route-color); background: var(--route-color); }.task-tab.is-solved { color: var(--green-dark); background: #e1efe5; }.task-tab:disabled { cursor: default; opacity: 1; }

.result-screen { display: none; grid-template-columns: .96fr 1.04fr; min-height: 510px; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: #fffaf0; box-shadow: var(--shadow); }.result-screen.is-active { display: grid; }
.result-scene { position: relative; min-height: 510px; overflow: hidden; background-position: center; background-size: cover; }.result-scene::after { content: ""; position: absolute; inset: 0; background: rgba(234,240,211,.18); }
.result-path { position: absolute; z-index: 1; left: -15%; right: -14%; bottom: 53px; height: 75px; border: 9px solid rgba(107,77,47,.59); border-radius: 50%; background: #f1dda9; transform: rotate(-7deg); }
.result-sign { position: absolute; z-index: 3; left: 47%; bottom: 115px; width: 15px; height: 142px; border-radius: 7px; background: #74523b; }.result-sign::after { content: ""; position: absolute; left: -42px; top: 3px; width: 92px; height: 36px; border: 3px solid #74523b; border-radius: 8px; background: #edbc63; clip-path: polygon(0 0,74% 0,100% 50%,74% 100%,0 100%,9% 50%); transform: rotate(-12deg); }
.result-hedgehog, .result-friend { position: absolute; z-index: 4; bottom: 51px; width: 40%; height: 47%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(40,50,38,.18)); }.result-hedgehog { left: 0; transform: scaleX(-1); }.result-friend { right: 0; }.result-friend.is-flipped { transform: scaleX(-1); }
.result-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px 52px; }.result-copy h2 { margin-bottom: 17px; font-size: 46px; line-height: 1.04; letter-spacing: -.04em; }.result-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.55; }.result-facts { display: flex; gap: 9px; margin: 8px 0 27px; }.result-facts span { padding: 10px 13px; border-radius: 12px; background: #e5efe7; font-size: 13px; font-weight: 900; }.result-actions { display: flex; flex-wrap: wrap; gap: 9px; }

@media (max-width: 930px) {
  .home-screen { padding-inline: 39px; }.how-strip { left: 39px; right: 39px; }.hero-map { right: 0; width: 45%; }.hero-copy { width: 54%; }
  .map-layout { grid-template-columns: minmax(0,1.55fr) 260px; }.control-card { padding: 17px; }.mission-strip { grid-template-columns: 84px 1fr auto; }.mission-strip > img { width: 84px; height: 84px; }
}

@media (max-width: 800px) and (min-width: 761px) {
  .map-layout { grid-template-columns: 1fr; }
  .control-card { min-height: 390px; }
}

@media (max-width: 760px) {
  .app { width: min(1120px, calc(100% - 20px)); margin-top: 15px; }.game-bar { min-height: 62px; padding: 8px 12px; border-radius: 18px; }.game-icon { width: 40px; height: 40px; flex-basis: 40px; }.game-icon svg { width: 33px; }.game-brand small { display: none; }
  .home-screen { min-height: 870px; padding: 33px 23px 25px; }.hero-copy { width: 100%; }.hero-copy > p:not(.eyebrow) { font-size: 16px; }.hero-map { position: relative; top: auto; right: auto; width: 100%; height: 325px; margin-top: 21px; border-radius: 27px; }.hero-hedgehog { width: 37%; }.hero-friend { width: 29%; }.how-strip { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; margin-top: 16px; }.how-strip article { min-height: 67px; }
  .routes-screen, .play-screen { padding: 20px 15px; border-radius: 25px; }.section-title { align-items: flex-start; }.section-title h2 { font-size: 35px; }.section-title > p { max-width: 110px; text-align: right; }.route-grid { grid-template-columns: 1fr; }.route-card { min-height: 386px; }.route-card > p { min-height: auto; }
  .task-head { gap: 10px; }.task-head h2 { font-size: 28px; }.round-button { width: 43px; height: 43px; }.counter { padding-inline: 9px; font-size: 12px; }
  .mission-strip { grid-template-columns: 77px 1fr; gap: 12px; }.mission-strip > img { width: 77px; height: 77px; }.mission-strip > b { grid-column: 1 / -1; justify-self: start; margin-top: -4px; }.mission-strip h3 { font-size: 21px; }
  .map-layout { grid-template-columns: 1fr; }.trail-card { padding: 9px; }.control-card { min-height: 365px; }.trail-map { border-radius: 14px; }.map-character { width: clamp(42px,10%,66px); }.map-goal { width: clamp(46px,12%,78px); }
  .task-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }.result-screen.is-active { grid-template-columns: 1fr; }.result-scene { min-height: 320px; }.result-copy { padding: 32px 26px; }.result-copy h2 { font-size: 37px; }
}

@media (max-width: 430px) {
  .game-brand strong { font-size: 15px; }.age-pill { padding: 8px 10px; font-size: 11px; }.home-screen { min-height: 820px; padding-inline: 19px; } h1 { font-size: 39px; }.hero-map { height: 278px; }.hero-sign { top: 81px; transform: translateX(-50%) scale(.8); }.hero-hedgehog { left: 1%; bottom: 45px; width: 40%; }.hero-friend { right: 1%; top: 29px; width: 31%; }.hero-path-one { bottom: 52px; }.hero-path-two { bottom: 74px; }
  .section-title { display: block; }.section-title > p { max-width: none; margin-top: 8px; text-align: left; }.route-art { height: 142px; }
  .task-head h2 { font-size: 23px; }.mission-strip { padding: 11px; }.mission-strip > img { width: 68px; height: 68px; }.mission-strip p { font-size: 12px; }
  .trail-map { aspect-ratio: 100 / 72; }.trail-sign { width: 43px; height: 55px; }.trail-sign span { width: 20px; height: 20px; font-size: 10px; }.dead-end { width: 32px; }.map-character { width: 43px; }.map-goal { width: 48px; }.map-legend { gap: 12px; font-size: 11px; }
  .control-card h3 { font-size: 25px; }.result-scene { min-height: 280px; }.result-copy h2 { font-size: 32px; }.result-actions { display: grid; }.result-actions button { width: 100%; }
}

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