:root { color: #2d504d; font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif; font-synthesis: none; --paper: #fffdf7; --ink: #2d504d; --muted: #6d817d; --line: #ddd8c3; }
* { box-sizing: border-box; }
html { min-width: 0; background: #f3f5e9; }
body { min-width: 0; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 8% 13%, #dbeedc 0 150px, transparent 151px), radial-gradient(circle at 94% 23%, #fce8b8 0 170px, transparent 171px), linear-gradient(90deg, #91ad9a2b 1px, transparent 1px), linear-gradient(#91ad9a2b 1px, transparent 1px), linear-gradient(145deg, #f6f5e9, #eef6ed); background-size: auto, auto, 32px 32px, 32px 32px, auto; }
button { color: inherit; font: inherit; } button:not(:disabled) { cursor: pointer; } button:focus-visible { outline: 4px solid #f0c34e; outline-offset: 3px; }
.app { width: min(1120px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; }
.page { padding: 22px 0 52px; }
.loading-card { margin-top: 15vh; padding: 42px; border: 2px solid var(--line); border-radius: 32px; background: var(--paper); box-shadow: 0 18px 50px #294f4b18; text-align: center; font-size: 24px; font-weight: 900; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; }
.brand-maze { position: relative; display: block; width: 55px; height: 50px; overflow: hidden; border: 3px solid #365c56; border-radius: 15px; background: #fff9e7; box-shadow: 0 6px 13px #35574f12; }
.brand-maze::before, .brand-maze::after, .brand-maze i, .brand-maze b { position: absolute; display: block; border: solid #e0a842; content: ""; }
.brand-maze::before { width: 32px; height: 13px; left: 0; top: 9px; border-width: 4px 4px 0 0; }.brand-maze::after { width: 27px; height: 15px; right: 0; bottom: 7px; border-width: 4px 0 0 4px; }.brand-maze i { width: 11px; height: 24px; left: 20px; top: 0; border-width: 0 4px 4px 0; }.brand-maze b { width: 18px; height: 18px; left: 7px; bottom: 0; border-width: 4px 4px 0 0; }.brand-maze em { position: absolute; display: grid; width: 22px; height: 22px; right: 4px; top: 4px; place-items: center; border-radius: 50%; background: #7f71b6; color: #fff; font: 900 12px Georgia, serif; font-style: normal; }
.brand strong, .brand small { display: block; }.brand strong { font-size: 22px; letter-spacing: -.6px; }.brand small { margin-top: 1px; color: #71847f; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 9px; }.collection-button, .sound-button { display: flex; min-height: 50px; align-items: center; gap: 9px; padding: 8px 13px; border: 2px solid #dcd7c3; border-radius: 15px; background: #fffdf8df; box-shadow: 0 5px 13px #35574f0e; font-size: 13px; font-weight: 900; }.collection-button small { display: block; margin-top: 1px; color: #7a8b87; font-size: 9px; text-align: left; }.sound-button { min-width: 50px; justify-content: center; font-size: 11px; }.sound-button.is-on { border-color: #82b99a; background: #edf8ef; }

.eyebrow { display: block; color: #4d9171; font: 900 11px Georgia, serif; letter-spacing: 1.35px; }
.hero { position: relative; display: grid; min-height: 430px; grid-template-columns: 1.05fr .95fr; gap: 25px; align-items: center; overflow: hidden; padding: 45px 53px; border: 2px solid #dcd7c3; border-radius: 42px; background: linear-gradient(125deg, #fff9e9 0 43%, #edf6e9 66%, #e8eff8); box-shadow: 0 20px 55px #294f4b17; }
.hero::before { position: absolute; width: 185px; height: 185px; left: -84px; bottom: -90px; border: 24px solid #ffffff68; border-radius: 50%; content: ""; }.hero-copy { position: relative; z-index: 2; }.hero h1 { margin: 10px 0 16px; font-size: clamp(47px, 5vw, 65px); line-height: .96; letter-spacing: -2.3px; }.hero-copy > p { max-width: 580px; margin: 0; color: #627873; font-size: 17px; font-weight: 700; line-height: 1.55; }.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.primary-button, .secondary-button, .learn-button { min-height: 52px; padding: 13px 20px; border-radius: 16px; font-weight: 900; transition: transform .16s ease, box-shadow .16s ease; }.primary-button { border: 0; background: linear-gradient(145deg, #58a87c, #3e926a); color: #fff; box-shadow: 0 7px 0 #2d7451, 0 13px 23px #3e936b28; }.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 9px 0 #2d7451, 0 16px 26px #3e936b2d; }.primary-button:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 #2d7451; }.primary-button span { margin-left: 7px; }.secondary-button, .learn-button { border: 2px solid #d5d0bd; background: #fffdf8; box-shadow: 0 5px 12px #304e480d; color: #365e57; }.secondary-button:hover, .learn-button:hover { border-color: #8bb99b; transform: translateY(-2px); }
.hero-map { position: relative; height: 350px; border: 8px solid #fff; border-radius: 31px; background: linear-gradient(#f8edcfdd, #e7efdcdd), repeating-linear-gradient(45deg, transparent 0 12px, #bfae7921 12px 14px); box-shadow: 0 18px 34px #31554d20; transform: rotate(2deg); }.hero-map .route-svg { width: 100%; height: 100%; }.map-label { position: absolute; padding: 8px 11px; border: 3px solid #fff; border-radius: 12px; background: #fff8e7; box-shadow: 0 6px 13px #31554d19; font: 900 10px Georgia, serif; }.label-one { left: -26px; top: 80px; transform: rotate(-8deg); }.label-two { right: -21px; bottom: 65px; transform: rotate(6deg); }
.route-svg { display: block; max-width: 100%; height: auto; overflow: visible; }.maze-wall { fill: none; stroke: #8a9f88; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .32; }.wall-b { stroke: #d5a659; opacity: .24; }.route-base { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px #31554d24); }.route-done { fill: none; stroke: var(--route); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }.route-node circle { fill: #f4f2e7; stroke: #fff; stroke-width: 5; }.route-node text { fill: #87928f; font: 900 11px "Trebuchet MS", sans-serif; text-anchor: middle; }.route-node.passed circle, .route-node.current circle { fill: var(--route); }.route-node.passed text, .route-node.current text { fill: #fff; }.route-node.current circle { stroke: #ffe68c; stroke-width: 7; }.finish-node circle { fill: #e8e5d9; stroke: #fff; stroke-width: 6; }.finish-node text { fill: #a09e96; font: 900 19px Georgia, serif; text-anchor: middle; }.finish-node.open circle { fill: #e7ae3d; }.finish-node.open text { fill: white; }.route-token { transition: transform .3s ease; }

.how, .levels { margin-top: 47px; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.section-heading h2 { margin: 6px 0 0; font-size: 35px; line-height: 1.05; letter-spacing: -1px; }.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.45; text-align: right; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 19px; }.step-card { position: relative; display: grid; min-height: 135px; grid-template-columns: 48px 43px 1fr; gap: 11px; align-items: center; padding: 20px 17px; overflow: hidden; border: 2px solid #dfd9c5; border-radius: 24px; background: #fffdf8; box-shadow: 0 10px 23px #31554d0d; }.step-card::after { position: absolute; width: 88px; height: 88px; right: -38px; bottom: -42px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, white); content: ""; }.step-number { display: grid; width: 46px; height: 46px; place-items: center; border: 3px solid var(--accent); border-radius: 50%; color: var(--accent); font: 900 25px Georgia, serif; transform: translateY(-1px); }.step-icon { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, white); font-size: 22px; }.step-card h3 { margin: 0; font-size: 18px; }.step-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.case-strip { display: grid; grid-template-columns: 210px 1fr auto; gap: 25px; align-items: center; margin-top: 39px; padding: 25px 28px; border: 2px solid #d7e1d4; border-radius: 29px; background: linear-gradient(105deg, #eaf5e9, #fff8e2); box-shadow: 0 10px 26px #31554d10; }.case-wheel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; transform: rotate(-2deg); }.case-wheel i { display: grid; min-height: 45px; place-items: center; border: 4px solid #fff; border-radius: 14px; background: var(--case); box-shadow: 0 5px 10px #31554d12; color: #fff; font: 900 12px Georgia, serif; font-style: normal; }.case-strip h2 { margin: 5px 0; font-size: 22px; line-height: 1.2; }.case-strip p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }.level-card { position: relative; display: flex; min-height: 335px; flex-direction: column; align-items: stretch; padding: 20px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--accent) 58%, white); border-radius: 27px; background: #fffdf8; box-shadow: 0 11px 25px #31554d11; text-align: left; transition: transform .16s ease, box-shadow .16s ease; }.level-card:hover { transform: translateY(-4px); box-shadow: 0 17px 29px #31554d1b; }.level-map { position: absolute; width: 145px; height: 150px; right: -19px; top: 37px; opacity: .33; transform: rotate(4deg); }.level-map .route-svg { width: 100%; height: 100%; }.level-map .maze-wall, .level-map .route-base { stroke-width: 18; }.level-map .route-node text { display: none; }.level-top, .level-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.level-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--accent) 17%, white); font-size: 29px; }.age-pill { position: relative; z-index: 2; padding: 6px 9px; border-radius: 20px; background: #f2efe4; color: #788783; font-size: 9px; font-weight: 900; }.level-index { position: relative; margin-top: 17px; color: var(--accent); font: 900 10px Georgia, serif; letter-spacing: 1px; z-index: 1; }.level-card > strong { position: relative; max-width: 68%; margin-top: 6px; font-size: 23px; line-height: 1.05; z-index: 1; }.level-copy { position: relative; min-height: 72px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; z-index: 1; }.case-dots { display: flex; gap: 5px; margin: 12px 0; }.case-dots i { width: 17px; height: 7px; border-radius: 8px; background: var(--dot); }.level-bottom { margin-top: auto; padding-top: 11px; border-top: 1px dashed #ddd7c6; color: #71827e; font-size: 11px; font-weight: 900; }.stars { color: #e5a936; letter-spacing: 1px; }

.learn-hero, .collection-hero { display: grid; min-height: 275px; grid-template-columns: 1fr auto; gap: 25px; align-items: center; padding: 38px 48px; border: 2px solid #dcd7c3; border-radius: 36px; background: linear-gradient(125deg, #fff8e6, #eaf5e9); box-shadow: 0 16px 40px #31554d14; }.back-link { padding: 7px 4px; border: 0; background: transparent; color: #547c73; font-size: 12px; font-weight: 900; }.learn-hero .eyebrow, .collection-hero .eyebrow { margin-top: 20px; }.learn-hero h1, .collection-hero h1 { margin: 7px 0 10px; font-size: 47px; line-height: 1; letter-spacing: -1.6px; }.learn-hero p, .collection-hero p { max-width: 670px; margin: 0; color: var(--muted); font-weight: 700; line-height: 1.5; }.key-badge { display: grid; width: 155px; height: 155px; place-items: center; border: 8px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #e3b34b, #cf8d37); box-shadow: 0 14px 28px #775c2e22; font-size: 62px; transform: rotate(4deg); }.key-badge small { display: block; margin-top: -30px; color: #fff; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 26px; }.lesson-card { position: relative; min-height: 330px; padding: 23px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--case) 56%, white); border-radius: 26px; background: #fffdf8; box-shadow: 0 10px 23px #31554d0e; }.lesson-number { position: absolute; right: 15px; top: 11px; color: color-mix(in srgb, var(--case) 25%, white); font: 900 46px Georgia, serif; }.lesson-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 17px; background: color-mix(in srgb, var(--case) 15%, white); font-size: 29px; }.lesson-card h2 { margin: 15px 0 5px; font-size: 21px; }.lesson-card > b { color: var(--case); font-size: 15px; }.lesson-card > p { min-height: 65px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.42; }.prepositions { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--case) 9%, white); }.prepositions small, .prepositions strong { display: block; }.prepositions small { color: #7d8a87; font-size: 8px; font-weight: 900; text-transform: uppercase; }.prepositions strong { margin-top: 3px; color: #4c6762; font-size: 12px; }.case-mark { position: absolute; right: 17px; bottom: 15px; color: color-mix(in srgb, var(--case) 44%, white); font: 900 18px Georgia, serif; }
.memory-note { display: grid; grid-template-columns: 75px 1fr; gap: 17px; align-items: center; margin-top: 27px; padding: 22px 26px; border: 2px solid #ead493; border-radius: 24px; background: #fff8dc; }.memory-note > span { display: grid; width: 66px; height: 66px; place-items: center; border-radius: 19px; background: #fff; font-size: 34px; }.memory-note h2 { margin: 4px 0; font-size: 20px; }.memory-note p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }.learn-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 27px; padding: 25px 30px; border-radius: 25px; background: #e9f4e8; }.learn-footer h2 { margin: 4px 0 0; font-size: 24px; }

.game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; }.game-head > div { text-align: center; }.game-head > div span, .game-head > div small { display: block; }.game-head > div span { font-size: 16px; font-weight: 900; }.game-head > div small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; }.game-head .back-link { justify-self: start; }.hint-button { justify-self: end; min-height: 42px; padding: 9px 13px; border: 2px solid #dfc98b; border-radius: 13px; background: #fff7d8; color: #775f2f; font-size: 12px; font-weight: 900; }.hint-button:disabled { opacity: .55; }.progress-line { height: 9px; margin: 14px 0 19px; overflow: hidden; border-radius: 9px; background: #dfeade; }.progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #56a77b, #e2aa3f, #806fba); transition: width .35s ease; }
.game-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; align-items: stretch; }.maze-card, .answer-card { border: 2px solid #dcd8c5; border-radius: 31px; background: #fffdf8; box-shadow: 0 15px 36px #31554d15; }.maze-card { min-height: 645px; padding: 24px; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 12%, white), #fff9e8); }.maze-card-head { display: flex; align-items: center; justify-content: space-between; }.maze-card-head > b { padding: 6px 9px; border-radius: 13px; background: #fff; color: var(--accent); font-size: 11px; }.maze-board { position: relative; height: 500px; margin-top: 9px; overflow: hidden; border: 7px solid #fff; border-radius: 27px; background: linear-gradient(#f4edcfb8, #eaf1ddb8), repeating-linear-gradient(45deg, transparent 0 12px, #a08e5a1c 12px 14px); box-shadow: inset 0 0 0 2px #d8d2ba, 0 10px 22px #31554d15; }.maze-board .route-svg { width: 100%; height: 100%; }.maze-start, .maze-finish { position: absolute; padding: 5px 7px; border-radius: 8px; background: #fffdf8; color: #73837f; font: 900 8px Georgia, serif; letter-spacing: .8px; }.maze-start { left: 7px; top: 3px; }.maze-finish { right: 2px; bottom: 3px; }.maze-card > p { margin: 10px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.answer-card { min-height: 645px; padding: 30px; }.sentence-icon { float: right; display: grid; width: 72px; height: 72px; place-items: center; margin: -5px 0 10px 15px; border: 5px solid #fff; border-radius: 21px; background: #edf5e8; box-shadow: 0 8px 17px #31554d14; font-size: 38px; transform: rotate(3deg); }.answer-card h1 { min-height: 84px; margin: 9px 0 7px; font-size: 26px; line-height: 1.32; letter-spacing: -.5px; }.answer-card h1 mark { padding: 2px 5px; border-radius: 7px; background: #ffe49a; color: #315751; }.task-question { margin: 0; color: #607973; font-size: 14px; font-weight: 900; }.passages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 19px; }.passages-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }.passage { position: relative; display: grid; min-width: 0; min-height: 105px; grid-template-columns: 49px 1fr 18px; gap: 8px; align-items: center; padding: 10px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--case) 58%, white); border-radius: 19px; background: #fff; box-shadow: 0 7px 14px #31554d0e; text-align: left; transition: transform .16s ease, box-shadow .16s ease; }.passage:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 11px 19px #31554d17; }.door { position: relative; display: block; width: 45px; height: 66px; border: 4px solid var(--case); border-bottom: 0; border-radius: 22px 22px 4px 4px; background: color-mix(in srgb, var(--case) 14%, white); }.door i { position: absolute; width: 7px; height: 7px; right: 7px; top: 33px; border-radius: 50%; background: var(--case); }.door b { position: absolute; left: 0; right: 0; bottom: 8px; color: var(--case); font: 900 10px Georgia, serif; text-align: center; }.passage-copy { min-width: 0; }.passage-copy strong, .passage-copy small { display: block; }.passage-copy strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.05; }.passage-copy small { margin-top: 5px; color: #74847f; font-size: 9px; font-weight: 900; }.passage-arrow { color: var(--case); font-size: 18px; font-weight: 900; }.passage.is-wrong { border-color: #e77d74; background: #fff0ed; animation: shake .25s ease; }.passage.is-wrong .door { border-color: #e77d74; background: #f9c8c2; }.passage.is-wrong::after { position: absolute; right: 7px; top: 6px; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #e17169; color: white; content: "×"; font-weight: 900; }.passage.is-hint { border-color: #e5ad37; background: #fff8d9; box-shadow: 0 0 0 5px #f6df8c, 0 13px 23px #7b672124; }.passage.is-good { border-color: #48a272; background: #e5f5e8; box-shadow: 0 0 0 5px #c8e8d0; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.feedback { display: grid; min-height: 78px; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; margin-top: 17px; padding: 13px 15px; border: 2px solid #d8e2d7; border-radius: 17px; background: #eef6ed; }.feedback > b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #fff; font-size: 21px; }.feedback strong { font-size: 13px; }.feedback p { margin: 3px 0 0; color: #667b76; font-size: 11px; font-weight: 700; line-height: 1.35; }.feedback.try { border-color: #efc0b9; background: #fff2ef; }.feedback.hint { border-color: #ead28b; background: #fff8db; }.feedback.good { border-color: #b8dec3; background: #e8f6e9; }.game-actions { display: flex; justify-content: flex-end; margin-top: 13px; }.game-actions .primary-button { min-height: 47px; padding: 11px 17px; }.text-button { min-height: 42px; padding: 9px 12px; border: 0; background: transparent; color: #537b72; font-size: 12px; font-weight: 900; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }

.result { position: relative; max-width: 850px; min-height: 610px; margin: 34px auto 0; padding: 36px 56px 40px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--accent) 56%, white); border-radius: 39px; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 16%, white), transparent 45%), #fffdf8; box-shadow: 0 22px 55px #31554d1a; text-align: center; }.result-confetti { position: absolute; right: 27px; top: 19px; color: var(--accent); font-size: 20px; letter-spacing: 9px; }.result-map { width: 190px; height: 180px; margin: -9px auto 0; overflow: hidden; border: 7px solid #fff; border-radius: 26px; background: #f2edda; box-shadow: 0 11px 21px #31554d16; transform: rotate(-2deg); }.result-map .route-svg { width: 100%; height: 100%; }.result-map .maze-wall, .result-map .route-base, .result-map .route-done { stroke-width: 17; }.result-map .route-node text { display: none; }.result h1 { margin: 8px 0; font-size: 44px; letter-spacing: -1.4px; }.result-stars { color: #e8ac35; font-size: 40px; letter-spacing: 4px; }.result > p { max-width: 620px; margin: 11px auto; color: var(--muted); font-weight: 700; line-height: 1.5; }.stats { display: flex; justify-content: center; gap: 12px; margin: 22px 0; }.stats span { min-width: 170px; padding: 13px; border: 2px solid #e0dbc9; border-radius: 17px; background: #fff; }.stats b, .stats small { display: block; }.stats b { font: 900 28px Georgia, serif; }.stats small { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }

.collection-hero { background: linear-gradient(125deg, #fff7df, #edf5e9, #eceefa); }.atlas-badge { display: grid; width: 170px; height: 155px; place-items: center; padding: 16px; border: 7px solid #fff; border-radius: 31px; background: #f5e8c4; box-shadow: 0 13px 27px #31554d17; font-size: 48px; transform: rotate(3deg); }.atlas-badge b { margin-top: -18px; font: 900 31px Georgia, serif; }.atlas-badge small { margin-top: -12px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.atlas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }.atlas-card { display: grid; min-height: 360px; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: center; padding: 20px; border: 3px dashed #d3d2c7; border-radius: 29px; background: #f5f3eb; box-shadow: 0 10px 24px #31554d0d; }.atlas-card.complete { border-style: solid; border-color: color-mix(in srgb, var(--accent) 58%, white); background: #fffdf8; }.atlas-map { height: 270px; overflow: hidden; border: 6px solid #fff; border-radius: 22px; background: linear-gradient(#eee8d4, #e6eedc); box-shadow: 0 8px 18px #31554d14; opacity: .58; }.atlas-card.complete .atlas-map { opacity: 1; }.atlas-map .route-svg { width: 100%; height: 100%; }.atlas-map .maze-wall, .atlas-map .route-base, .atlas-map .route-done { stroke-width: 16; }.atlas-map .route-node text { display: none; }.atlas-copy h2 { margin: 5px 0 8px; font-size: 23px; line-height: 1.08; }.atlas-copy p { min-height: 70px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }.atlas-bottom { display: flex; justify-content: space-between; gap: 8px; margin: 15px 0; padding-top: 11px; border-top: 1px dashed #d7d3c2; color: #678078; font-size: 10px; font-weight: 900; }.atlas-copy .secondary-button { width: 100%; min-height: 44px; padding: 10px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr .82fr; padding: 42px 34px; }.hero h1 { font-size: 49px; }.hero-map { height: 320px; }.steps-grid { grid-template-columns: 1fr; }.step-card { min-height: 104px; }.case-strip { grid-template-columns: 180px 1fr; }.case-strip .secondary-button { grid-column: 2; justify-self: start; }.levels-grid, .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr; }.maze-card { min-height: 0; display: grid; grid-template-columns: 1fr 320px; gap: 12px; align-items: center; }.maze-card-head { grid-column: 1; }.maze-board { grid-column: 2; grid-row: 1 / 3; height: 300px; }.maze-card > p { grid-column: 1; text-align: left; }.answer-card { min-height: 0; }.atlas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .app { width: min(1120px, calc(100% - 20px)); }.page { padding: 12px 0 43px; }.topbar { align-items: flex-start; margin-bottom: 18px; }.brand-maze { width: 44px; height: 42px; border-radius: 13px; }.brand strong { max-width: 178px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }.brand small { font-size: 8px; }.top-actions { gap: 5px; }.collection-button, .sound-button { min-height: 42px; padding: 7px 9px; border-radius: 12px; font-size: 0; }.collection-button small { display: none; }.collection-button > span:first-child, .sound-button > span:first-child { font-size: 18px; }
  .hero { display: block; min-height: 0; padding: 33px 24px 12px; border-radius: 28px; }.eyebrow { font-size: 9px; letter-spacing: 1px; }.hero h1 { margin-top: 8px; font-size: 39px; letter-spacing: -1.3px; }.hero-copy > p { font-size: 14px; }.hero-actions { align-items: stretch; margin-top: 21px; }.hero-actions button { width: 100%; }.hero-map { width: 286px; height: 224px; margin: 18px auto -15px; border-width: 6px; transform: rotate(1deg); }.label-one, .label-two { display: none; }
  .how, .levels { margin-top: 32px; }.section-heading { display: block; }.section-heading h2 { font-size: 30px; }.section-heading > p { max-width: none; margin-top: 8px; font-size: 11px; text-align: left; }.steps-grid { gap: 9px; margin-top: 14px; }.step-card { grid-template-columns: 40px 34px 1fr; gap: 9px; padding: 14px 12px; border-radius: 19px; }.step-number { width: 38px; height: 38px; border-width: 2px; font-size: 20px; }.step-icon { width: 32px; height: 32px; font-size: 17px; }.step-card h3 { font-size: 15px; }.step-card p { font-size: 11px; }
  .case-strip { grid-template-columns: 88px 1fr; gap: 12px; margin-top: 29px; padding: 16px 13px; border-radius: 21px; }.case-wheel { grid-template-columns: repeat(2, 1fr); gap: 4px; }.case-wheel i { min-height: 29px; border-width: 2px; border-radius: 8px; font-size: 8px; }.case-strip h2 { font-size: 16px; }.case-strip p { font-size: 10px; }.case-strip .secondary-button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .levels-grid, .lesson-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 15px; }.level-card { min-height: 305px; padding: 18px; border-radius: 22px; }.level-map { width: 135px; height: 140px; }.level-card > strong { font-size: 22px; }.level-copy { min-height: 0; max-width: 77%; }
  .learn-hero, .collection-hero { display: block; min-height: 0; padding: 27px 22px; border-radius: 25px; }.learn-hero h1, .collection-hero h1 { font-size: 35px; }.learn-hero p, .collection-hero p { font-size: 13px; }.key-badge, .atlas-badge { display: none; }.lesson-card { min-height: 295px; padding: 20px; border-radius: 22px; }.lesson-card > p { min-height: 0; }.memory-note { grid-template-columns: 54px 1fr; padding: 15px; }.memory-note > span { width: 50px; height: 50px; font-size: 27px; }.memory-note h2 { font-size: 16px; }.memory-note p { font-size: 10px; }.learn-footer { display: block; padding: 21px; }.learn-footer h2 { font-size: 21px; }.learn-footer .primary-button { width: 100%; margin-top: 15px; }
  .game-head { grid-template-columns: 1fr auto; gap: 5px; }.game-head > div { grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px; }.game-head .back-link { grid-column: 1; grid-row: 2; }.hint-button { grid-column: 2; grid-row: 2; min-height: 38px; padding: 7px 9px; font-size: 10px; }
  .game-grid { gap: 12px; margin-top: 12px; }.maze-card { display: block; padding: 16px; border-radius: 22px; }.maze-board { height: 245px; margin-top: 8px; border-width: 5px; border-radius: 19px; }.maze-card > p { font-size: 9px; text-align: center; }.answer-card { padding: 22px 16px; border-radius: 22px; }.sentence-icon { width: 58px; height: 58px; border-radius: 17px; font-size: 31px; }.answer-card h1 { min-height: 0; margin-top: 7px; font-size: 21px; }.task-question { font-size: 12px; }
  .passages, .passages-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }.passage { min-height: 114px; grid-template-columns: 41px 1fr; gap: 6px; padding: 8px; border-radius: 16px; }.door { width: 39px; height: 58px; border-width: 3px; }.passage-copy strong { font-size: 10px; }.passage-copy small { font-size: 8px; }.passage-arrow { display: none; }.feedback { min-height: 72px; margin-top: 14px; padding: 11px; }.feedback strong { font-size: 12px; }.feedback p { font-size: 10px; }.game-actions { margin-top: 10px; }.game-actions .primary-button { width: 100%; }
  .result { min-height: 0; margin-top: 22px; padding: 30px 18px 29px; border-radius: 27px; }.result-confetti { right: 14px; top: 12px; font-size: 15px; }.result-map { width: 150px; height: 140px; }.result h1 { font-size: 34px; }.result-stars { font-size: 32px; }.result > p { font-size: 13px; }.stats { gap: 7px; }.stats span { min-width: 0; width: 50%; padding: 11px; }.stats b { font-size: 23px; }.result-actions { align-items: stretch; flex-direction: column; }
  .atlas-grid { gap: 12px; }.atlas-card { display: block; min-height: 0; padding: 16px; border-radius: 23px; }.atlas-map { height: 215px; }.atlas-copy { margin-top: 14px; }.atlas-copy h2 { font-size: 21px; }.atlas-copy p { min-height: 0; }
}

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