:root { --ink:#294f4b; --muted:#6b817d; --paper:#fffdf7; --line:#ddd5b9; --green:#3e9b75; --yellow:#efb83f; --coral:#ed7469; --blue:#62acd1; --purple:#8b73bd; --shadow:0 18px 38px rgba(49,74,65,.12); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); font-family:"Trebuchet MS","Arial Rounded MT Bold",Arial,sans-serif; background:#f7f8ef; }
body::before,body::after { position:fixed; z-index:-1; content:""; border-radius:50%; opacity:.75; }
body::before { width:330px; height:330px; top:-105px; left:-100px; background:#fff0b9; }
body::after { width:370px; height:370px; right:-130px; bottom:-120px; background:#e5e6fb; }
button { color:inherit; font:inherit; }
button:not(:disabled) { cursor:pointer; }
button:focus-visible { outline:4px solid rgba(84,159,202,.35); outline-offset:3px; }
.app { width:min(1120px,calc(100% - 32px)); min-height:100vh; margin:0 auto; padding:22px 0 50px; }
.loading-card { display:grid; min-height:420px; place-items:center; align-content:center; gap:12px; font-weight:900; }
.loading-card span { font-size:64px; }
.loading-card p { margin:0; }
.topbar,.top-actions,.brand,.atlas-button,.sound-button,.game-heading,.scene-heading,.question-heading,.feedback,.section-heading,.steps article,.quest-meta,.quest-stats,.result-actions,.result-progress,.ending-panel { display:flex; align-items:center; }
.topbar { min-height:62px; justify-content:space-between; gap:18px; margin-bottom:22px; }
.brand { gap:12px; padding:0; text-align:left; background:transparent; border:0; }
.brand-mark { position:relative; display:flex; align-items:center; width:64px; height:53px; padding-left:7px; background:#fff8df; border:3px solid var(--line); border-radius:17px; box-shadow:0 5px 10px rgba(55,76,68,.08); transform:rotate(-2deg); }
.brand-mark i { display:grid; width:27px; height:34px; place-items:center; padding-bottom:2px; color:#fff; font-size:13px; font-style:normal; font-weight:1000; background:var(--coral); border:2px solid #c95b55; border-radius:8px; }
.brand-mark i:nth-child(2) { margin-left:-4px; background:var(--blue); border-color:#478bac; transform:rotate(4deg); }
.brand-mark b { position:absolute; right:-6px; top:-7px; display:grid; width:22px; height:22px; place-items:center; color:#fff; font-size:10px; background:var(--green); border:2px solid #fff; border-radius:50%; }
.brand strong { display:block; font-size:21px; font-weight:1000; letter-spacing:-.02em; }
.brand small { display:block; margin-top:2px; color:var(--muted); font-size:9px; font-weight:900; text-transform:uppercase; }
.top-actions { gap:9px; }
.atlas-button,.sound-button,.back-button { min-height:50px; background:rgba(255,253,247,.93); border:2px solid var(--line); border-radius:16px; box-shadow:0 5px 12px rgba(54,75,67,.07); }
.atlas-button { gap:8px; padding:7px 14px; text-align:left; }
.atlas-button > span:first-child { font-size:18px; }
.atlas-button b,.atlas-button small { display:block; }
.atlas-button b { font-size:12px; }
.atlas-button small { color:var(--muted); font-size:9px; }
.sound-button { gap:8px; padding:0 14px; font-size:11px; font-weight:900; }
.back-button { width:50px; padding:0 0 4px; font-size:28px; }
.eyebrow { margin:0 0 9px; color:#3e856b; font-family:Georgia,serif; font-size:13px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.hero { position:relative; display:grid; min-height:455px; grid-template-columns:1.02fr .98fr; overflow:hidden; padding:48px; background:linear-gradient(125deg,#fffaf0,#eff9ef 54%,#f1edff); border:3px solid var(--line); border-radius:42px; box-shadow:var(--shadow); }
.hero::before,.hero::after { position:absolute; content:""; border-radius:50%; }
.hero::before { width:230px; height:230px; top:-120px; left:41%; background:rgba(246,194,82,.2); }
.hero::after { width:180px; height:180px; right:-70px; bottom:-75px; background:rgba(98,180,134,.15); }
.hero-copy { position:relative; z-index:3; align-self:center; }
.hero h1 { max-width:560px; margin:0 0 19px; font-size:52px; font-weight:1000; line-height:.98; letter-spacing:-.045em; }
.hero-copy > p:not(.eyebrow) { max-width:500px; margin:0 0 27px; color:var(--muted); font-size:16px; font-weight:800; line-height:1.55; }
.primary-button,.secondary-button { min-height:50px; padding:0 20px 3px; font-weight:1000; border-radius:15px; }
.primary-button { color:#fff; background:var(--green); border:0; box-shadow:0 7px 0 #247554,0 13px 22px rgba(44,135,95,.18); }
.primary-button:active { transform:translateY(4px); box-shadow:0 3px 0 #247554; }
.secondary-button { background:#fffdf7; border:3px solid var(--line); box-shadow:0 5px 0 #cfc6a8; }
.hero-scene { position:relative; min-width:0; }
.hero-book { position:absolute; inset:7px -4px 5px 22px; overflow:hidden; padding:34px 30px; background:#fffefa; border:8px solid #fff; border-radius:37px 22px 37px 22px; box-shadow:0 20px 32px rgba(47,67,61,.17),inset 10px 0 rgba(65,92,82,.05); transform:rotate(1deg); }
.hero-book::before { position:absolute; inset:0; content:""; opacity:.15; background-image:linear-gradient(#8dbbac 1px,transparent 1px); background-size:100% 29px; }
.hero-emoji,.hero-book h2,.hero-book > p,.hero-paths,.hero-map { position:relative; z-index:2; }
.hero-emoji { display:block; margin-bottom:13px; font-size:62px; }
.hero-book h2 { margin:0 0 7px; font-size:27px; }
.hero-book > p { margin:0; color:var(--muted); font-size:14px; font-weight:900; }
.hero-paths { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:7px; margin-top:22px; }
.hero-paths i { padding:13px 8px; color:#fff; font-size:12px; font-style:normal; font-weight:1000; text-align:center; background:var(--blue); border:3px solid #4a90b4; border-radius:15px; box-shadow:0 5px 0 #397999; }
.hero-paths i:last-child { background:var(--green); border-color:#2f805f; box-shadow:0 5px 0 #276a50; }
.hero-paths b { color:#d89d2a; font-family:Georgia,serif; font-size:12px; }
.hero-map { display:flex; width:78%; align-items:center; justify-content:center; margin:29px auto 0; }
.hero-map span { width:15px; height:15px; background:var(--coral); border-radius:50%; }
.hero-map i { flex:1; height:3px; background:#d9cfae; }
.hero-map b { display:grid; width:28px; height:28px; place-items:center; color:#fff; font-size:12px; background:#e3a72f; border-radius:50%; }
.how-section,.quests-section,.atlas-section { margin-top:54px; }
.section-heading { justify-content:space-between; gap:24px; margin-bottom:20px; }
.section-heading h2 { margin:0; font-size:39px; font-weight:1000; line-height:1; letter-spacing:-.035em; }
.section-heading > p { max-width:430px; margin:0; color:var(--muted); font-size:12px; font-weight:900; line-height:1.45; text-align:right; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.steps article { min-height:116px; gap:16px; padding:20px; background:rgba(255,253,247,.94); border:2px solid var(--line); border-radius:25px; box-shadow:0 10px 22px rgba(50,72,64,.07); }
.steps article > span { display:grid; flex:0 0 54px; width:54px; height:54px; place-items:center; padding-bottom:3px; color:#fff; font-family:Georgia,serif; font-size:25px; font-weight:900; background:var(--green); border:7px solid #dff3e6; border-radius:50%; }
.steps article:nth-child(2) > span { background:var(--yellow); border-color:#fff0c1; }
.steps article:nth-child(3) > span { background:var(--coral); border-color:#ffe0dc; }
.steps h3,.steps p { margin:0; }
.steps h3 { margin-bottom:6px; font-size:17px; }
.steps p { color:var(--muted); font-size:12px; font-weight:700; line-height:1.4; }
.quests-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:17px; }
.quest-card { position:relative; overflow:hidden; background:#fffdf7; border:3px solid color-mix(in srgb,var(--accent),white 35%); border-radius:29px; box-shadow:0 13px 25px rgba(49,72,64,.09); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.quest-card-action { position:absolute; z-index:10; inset:0; width:100%; height:100%; padding:0; background:transparent; border:0; border-radius:26px; }
.quest-card:hover,.quest-card:focus-within { border-color:var(--accent); box-shadow:0 18px 32px color-mix(in srgb,var(--accent),transparent 78%); transform:translateY(-4px); }
.quest-card:active { box-shadow:0 8px 17px color-mix(in srgb,var(--accent),transparent 82%); transform:translateY(1px) scale(.99); }
.quest-card-action:focus-visible { outline:4px solid color-mix(in srgb,var(--accent),white 30%); outline-offset:-7px; }
.quest-cover { position:relative; display:grid; height:150px; place-items:center; overflow:hidden; background:linear-gradient(145deg,color-mix(in srgb,var(--accent),white 84%),color-mix(in srgb,var(--accent),white 65%)); }
.quest-cover::before { position:absolute; width:120px; height:120px; content:""; background:rgba(255,255,255,.55); border-radius:50%; }
.quest-cover > span { position:relative; z-index:2; font-size:74px; filter:drop-shadow(0 10px 8px rgba(53,72,66,.12)); }
.quest-cover i { position:absolute; z-index:3; right:18px; bottom:14px; display:grid; width:44px; height:44px; place-items:center; font-size:20px; font-style:normal; background:#fff; border:3px solid color-mix(in srgb,var(--accent),white 30%); border-radius:15px; }
.quest-cover > b { position:absolute; top:14px; left:14px; padding:6px 9px; color:var(--accent); font-size:9px; background:#fff; border-radius:10px; }
.quest-card-body { padding:20px; }
.quest-meta { justify-content:space-between; min-height:23px; }
.quest-meta > span { color:var(--accent); font-family:Georgia,serif; font-size:9px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.quest-meta em { color:#d49628; font-size:10px; font-style:normal; font-weight:1000; }
.stars { color:#df9d2e; font-family:Georgia,serif; font-size:19px; letter-spacing:1px; }
.quest-card h3 { min-height:54px; margin:8px 0 7px; font-size:21px; line-height:1.2; }
.quest-card-body > p { min-height:55px; margin:0; color:var(--muted); font-size:11px; font-weight:700; line-height:1.45; }
.mini-map { display:flex; align-items:center; justify-content:center; margin:14px 0; }
.mini-map i { width:13px; height:13px; background:var(--accent); border:3px solid color-mix(in srgb,var(--accent),white 65%); border-radius:50%; }
.mini-map i:nth-of-type(n+2) { width:10px; height:10px; }
.mini-map span { width:20px; height:2px; background:color-mix(in srgb,var(--accent),white 45%); }
.quest-stats { gap:8px; }
.quest-stats > span { flex:1; }
.quest-stats b,.quest-stats small { display:block; }
.quest-stats b { font-size:12px; }
.quest-stats small { color:var(--muted); font-size:8px; }
.quest-card-cta { align-self:center; padding:9px 0; color:var(--accent); font-size:10px; font-weight:1000; }
.atlas-section { padding:29px; background:rgba(255,253,247,.93); border:3px solid var(--line); border-radius:37px; box-shadow:var(--shadow); }
.atlas-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:22px; }
.atlas-tab { display:flex; min-width:0; min-height:58px; align-items:center; gap:9px; padding:8px 10px; text-align:left; background:#fff; border:2px solid #e2ddcb; border-radius:15px; }
.atlas-tab > span { flex:0 0 33px; font-size:25px; text-align:center; }
.atlas-tab b,.atlas-tab small { display:block; min-width:0; }
.atlas-tab b { overflow:hidden; font-size:10px; line-height:1.2; text-overflow:ellipsis; }
.atlas-tab small { margin-top:3px; color:var(--muted); font-size:8px; }
.atlas-tab.active { color:#fff; background:var(--green); border-color:#2d805f; box-shadow:0 5px 0 #246d51; }
.atlas-tab.active small { color:#e9fff3; }
.atlas-story-heading { display:flex; align-items:center; gap:13px; margin:0 0 17px; padding:13px 16px; background:#f7f5ed; border-radius:18px; }
.atlas-story-heading > span { display:grid; flex:0 0 48px; width:48px; height:48px; place-items:center; font-size:24px; background:#fff; border:3px solid color-mix(in srgb,var(--accent),white 35%); border-radius:15px; }
.atlas-story-heading p,.atlas-story-heading h3 { margin:0; }
.atlas-story-heading p { margin-bottom:3px; color:var(--muted); font-family:Georgia,serif; font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.atlas-story-heading h3 { font-size:18px; }
.atlas-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.atlas-card { position:relative; min-width:0; min-height:168px; padding:15px 9px 12px; text-align:center; background:#f1f1f1; border:2px solid #d8d7d2; border-radius:21px; }
.atlas-card.open { background:color-mix(in srgb,var(--accent),white 91%); border-color:color-mix(in srgb,var(--accent),white 30%); }
.atlas-number { position:absolute; top:8px; left:8px; display:grid; width:23px; height:23px; place-items:center; padding-bottom:1px; color:var(--muted); font-family:Georgia,serif; font-size:9px; font-weight:900; background:#fff; border:2px solid var(--line); border-radius:50%; }
.atlas-picture { display:grid; height:69px; place-items:center; color:#d7d7d7; font-family:Georgia,serif; font-size:42px; filter:drop-shadow(0 7px 5px rgba(58,74,68,.1)); }
.atlas-card > p { margin:0 0 4px; color:var(--accent); font-size:8px; font-weight:900; text-transform:uppercase; }
.atlas-card h4 { min-height:30px; margin:0 0 5px; font-size:12px; line-height:1.25; }
.atlas-card small,.ending-mark { color:var(--muted); font-size:8px; font-weight:800; }
.ending-mark { color:#c6851e; }
.reader-note { display:flex; gap:17px; margin-top:24px; padding:20px 25px; background:#e8f5ff; border:2px solid #98c8df; border-radius:22px; }
.reader-note > span { font-size:28px; }
.reader-note b { font-size:13px; }
.reader-note p { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.4; }
.game-shell { padding:28px; background:rgba(255,253,247,.96); border:3px solid var(--line); border-radius:38px; box-shadow:var(--shadow); }
.game-heading { justify-content:space-between; gap:20px; padding:0 5px 17px; }
.game-heading .eyebrow { color:var(--accent); }
.game-heading h1 { margin:0 0 6px; font-size:42px; font-weight:1000; letter-spacing:-.035em; }
.game-heading > div > p:last-child { margin:0; color:var(--muted); font-size:12px; font-weight:900; }
.page-badge { display:grid; flex:0 0 76px; width:76px; height:76px; place-items:center; align-content:center; padding-bottom:2px; color:#fff; background:var(--accent); border:9px solid color-mix(in srgb,var(--accent),white 70%); border-radius:50%; }
.page-badge b { font-family:Georgia,serif; font-size:28px; line-height:.9; transform:translateY(-1px); }
.page-badge small { margin-top:4px; font-size:8px; font-weight:900; }
.route-strip { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:18px; padding:12px 14px; background:#f3f2ed; border-radius:18px; }
.route-strip > div { display:grid; flex:1; grid-template-columns:repeat(4,1fr); gap:8px; }
.route-strip i { height:8px; background:#d3d2cb; border-radius:10px; }
.route-strip i.done { background:var(--green); }
.route-strip i.current { background:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb,var(--accent),white 73%); }
.route-strip span { font-size:10px; font-weight:900; }
.reading-board { display:grid; grid-template-columns:1.08fr .92fr; gap:20px; }
.story-page,.question-card { min-width:0; border:3px solid var(--line); border-radius:28px; }
.story-page { position:relative; overflow:hidden; min-height:480px; padding:30px 33px 42px; background:#fffefa; box-shadow:inset 11px 0 rgba(62,87,78,.045); }
.story-page::before { position:absolute; inset:0; content:""; opacity:.12; background-image:linear-gradient(#78a594 1px,transparent 1px); background-size:100% 32px; }
.story-page > * { position:relative; z-index:2; }
.scene-heading { gap:16px; margin-bottom:23px; }
.scene-emoji { display:grid; flex:0 0 83px; width:83px; height:83px; place-items:center; font-size:47px; background:color-mix(in srgb,var(--accent),white 84%); border:3px solid color-mix(in srgb,var(--accent),white 42%); border-radius:24px; box-shadow:0 7px 0 color-mix(in srgb,var(--accent),white 20%); }
.scene-heading .eyebrow { margin-bottom:5px; color:var(--accent); font-size:10px; }
.scene-heading h2 { margin:0; font-size:27px; }
.story-text p { margin:0 0 17px; font-family:Georgia,"Times New Roman",serif; font-size:18px; font-weight:600; line-height:1.7; }
.page-foot { position:absolute; right:25px; bottom:16px; left:28px; display:flex; align-items:center; justify-content:space-between; color:var(--muted); }
.page-foot span { display:grid; width:25px; height:25px; place-items:center; font-family:Georgia,serif; font-size:10px; background:#f2ead2; border-radius:50%; }
.page-foot b { font-size:8px; text-transform:uppercase; }
.question-card { align-self:start; padding:25px; background:#fbfaf5; }
.question-heading { align-items:flex-start; justify-content:space-between; gap:13px; margin-bottom:19px; }
.question-heading .eyebrow { margin-bottom:5px; color:var(--accent); font-size:10px; }
.question-heading h2 { margin:0; font-size:22px; line-height:1.25; }
.hint-button { flex:0 0 auto; min-height:43px; padding:0 11px; color:#755b15; font-size:9px; font-weight:1000; background:#fff5ce; border:2px solid #e4b53d; border-radius:13px; box-shadow:0 4px 0 #ca9324; }
.hint-button:disabled { cursor:default; opacity:.5; box-shadow:none; }
.answers-grid { display:grid; gap:9px; }
.answer-option { position:relative; display:flex; min-height:59px; align-items:center; gap:10px; padding:8px 36px 10px 9px; text-align:left; background:#fff; border:3px solid #d9d3bf; border-radius:16px; box-shadow:0 5px 0 #c8c0a8; }
.answer-option:not(:disabled):hover { border-color:var(--accent); transform:translateY(-2px); }
.answer-option > span { display:grid; flex:0 0 31px; width:31px; height:31px; place-items:center; padding-bottom:2px; color:#fff; font-family:Georgia,serif; font-size:14px; font-weight:900; background:var(--accent); border-radius:50%; }
.answer-option > b { font-size:13px; line-height:1.25; }
.answer-option > em { position:absolute; right:10px; display:grid; width:25px; height:25px; place-items:center; color:#fff; font-style:normal; font-weight:1000; background:var(--coral); border-radius:50%; }
.answer-option.wrong { color:#98504b; background:#fff0ee; border-color:#ef9289; box-shadow:0 5px 0 #de7e75; }
.answer-option.correct { color:#266c50; background:#e5f6e9; border-color:#69b88b; box-shadow:0 5px 0 #46976d; }
.answer-option.correct > em { background:var(--green); }
.answer-option.removed { opacity:.35; text-decoration:line-through; box-shadow:none; }
.feedback { gap:12px; margin-top:16px; padding:13px 14px; background:#f1f7f3; border:2px solid #bcd3c5; border-radius:17px; }
.feedback > span { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; font-size:18px; background:#e4f3ea; border-radius:11px; }
.feedback b { font-size:12px; }
.feedback p { margin:3px 0 0; color:var(--muted); font-size:10px; line-height:1.4; }
.feedback.wrong { background:#fff2ef; border-color:#ee9a92; }
.feedback.wrong > span { background:#ffdad5; }
.feedback.hint { background:#fff9df; border-color:#e8c25a; }
.feedback.hint > span { background:#ffefaf; }
.feedback.correct { background:#e9f7ed; border-color:#82bd96; }
.branch-panel { margin-top:20px; padding:24px; background:linear-gradient(135deg,#eef8f1,#f3effd); border:3px solid color-mix(in srgb,var(--accent),white 50%); border-radius:27px; }
.branch-heading { margin-bottom:16px; }
.branch-heading .eyebrow { margin-bottom:5px; color:var(--accent); font-size:10px; }
.branch-heading h2 { margin:0 0 5px; font-size:25px; }
.branch-heading > p:last-child { margin:0; color:var(--muted); font-size:10px; font-weight:800; }
.branch-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:11px; }
.branch-grid button { display:flex; min-height:86px; align-items:center; gap:12px; padding:13px; text-align:left; background:#fff; border:3px solid #d8d1bb; border-radius:19px; box-shadow:0 6px 0 #c8c0a7; }
.branch-grid button:hover { border-color:var(--accent); transform:translateY(-2px); }
.branch-grid button > span { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; padding-bottom:2px; color:#fff; font-family:Georgia,serif; font-size:17px; font-weight:900; background:var(--accent); border-radius:50%; }
.branch-grid button > div { flex:1; min-width:0; }
.branch-grid b,.branch-grid small { display:block; }
.branch-grid b { margin-bottom:4px; font-size:14px; }
.branch-grid small { color:var(--muted); font-size:9px; line-height:1.35; }
.branch-grid em { color:var(--accent); font-size:25px; font-style:normal; }
.ending-panel { gap:17px; margin-top:20px; padding:22px 24px; background:linear-gradient(135deg,#fff7d9,#eef8f1); border:3px solid #e4c76c; border-radius:27px; }
.ending-panel > span { display:grid; flex:0 0 70px; width:70px; height:70px; place-items:center; font-size:39px; background:#fff; border:3px solid #e4c76c; border-radius:22px; }
.ending-panel > div { flex:1; }
.ending-panel .eyebrow { margin-bottom:4px; color:#b17b18; font-size:9px; }
.ending-panel h2 { margin:0 0 5px; font-size:24px; }
.ending-panel p:not(.eyebrow) { margin:0; color:var(--muted); font-size:10px; font-weight:800; }
.ending-panel button { flex:0 0 auto; }
.result-card { position:relative; overflow:hidden; min-height:660px; padding:67px 55px; text-align:center; background:linear-gradient(145deg,#fffdf7,#eef9ef 55%,#f0edff); border:3px solid var(--line); border-radius:42px; box-shadow:var(--shadow); }
.result-badge { display:grid; width:105px; height:105px; place-items:center; margin:0 auto 22px; font-size:57px; background:#fff; border:4px solid color-mix(in srgb,var(--accent),white 38%); border-radius:31px; box-shadow:0 9px 0 color-mix(in srgb,var(--accent),white 12%); }
.result-card .eyebrow { color:var(--accent); }
.result-card h1 { margin:0 0 14px; font-size:53px; letter-spacing:-.045em; }
.result-card > p:not(.eyebrow) { max-width:640px; margin:0 auto; color:var(--muted); font-size:16px; font-weight:800; line-height:1.5; }
.result-stars { margin:22px 0 18px; }
.result-stars .stars { font-size:41px; }
.result-stats { display:grid; max-width:700px; grid-template-columns:repeat(4,1fr); gap:10px; margin:0 auto 20px; }
.result-stats div { padding:16px 8px; background:rgba(255,255,255,.78); border:2px solid var(--line); border-radius:18px; }
.result-stats b,.result-stats small { display:block; }
.result-stats b { font-size:25px; }
.result-stats small { margin-top:3px; color:var(--muted); font-size:8px; font-weight:900; }
.result-progress { max-width:650px; gap:14px; margin:0 auto 24px; padding:14px 18px; text-align:left; background:#e9f6ee; border:2px solid #a5d2b6; border-radius:18px; }
.result-progress > span { font-size:34px; }
.result-progress b { font-size:13px; }
.result-progress p { margin:4px 0 0; color:var(--muted); font-size:9px; }
.result-actions { justify-content:center; flex-wrap:wrap; gap:11px; }

@media(max-width:900px){
  .hero { grid-template-columns:1fr 420px; padding:39px 34px; }
  .hero h1 { font-size:44px; }
  .atlas-grid { grid-template-columns:repeat(4,1fr); }
  .atlas-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .reading-board { grid-template-columns:1fr; }
  .story-page { min-height:390px; }
}
@media(max-width:760px){
  .app { width:min(100% - 22px,1120px); padding-top:11px; }
  .topbar { align-items:flex-start; }
  .brand strong { font-size:17px; }
  .brand small,.sound-button b { display:none; }
  .sound-button { width:50px; padding:0; justify-content:center; }
  .hero { min-height:720px; grid-template-columns:1fr; padding:35px 27px; }
  .hero-copy { align-self:start; }
  .hero-scene { min-height:325px; }
  .hero-book { inset:15px 4px 0; }
  .steps,.quests-grid { grid-template-columns:1fr; }
  .atlas-grid { grid-template-columns:repeat(3,1fr); }
  .atlas-tabs { display:flex; overflow-x:auto; margin-inline:-4px; padding:4px 4px 10px; scroll-snap-type:x proximity; }
  .atlas-tab { flex:0 0 180px; scroll-snap-align:start; }
  .game-shell { padding:18px; }
  .branch-grid { grid-template-columns:1fr; }
  .ending-panel { align-items:flex-start; flex-wrap:wrap; }
  .ending-panel button { width:100%; }
}
@media(max-width:520px){
  .topbar { gap:7px; margin-bottom:13px; }
  .brand { gap:7px; }
  .brand-mark { width:46px; height:43px; padding-left:4px; border-radius:13px; }
  .brand-mark i { width:20px; height:28px; font-size:9px; }
  .brand-mark b { width:18px; height:18px; right:-5px; font-size:8px; }
  .brand strong { max-width:137px; font-size:14px; line-height:1.08; }
  .top-actions { gap:5px; }
  .atlas-button,.sound-button,.back-button { min-height:43px; border-radius:13px; }
  .atlas-button { padding:5px 8px; }
  .atlas-button > span:first-child { display:none; }
  .atlas-button b { font-size:9px; }
  .atlas-button small { font-size:7px; }
  .sound-button,.back-button { width:43px; }
  .hero { min-height:680px; padding:28px 20px; border-radius:30px; }
  .hero h1 { font-size:38px; }
  .hero-copy > p:not(.eyebrow) { font-size:14px; }
  .hero-book { padding:26px 16px; border-width:6px; }
  .hero-emoji { font-size:50px; }
  .hero-book h2 { font-size:22px; }
  .hero-paths i { padding:10px 5px; font-size:9px; }
  .section-heading { align-items:flex-end; }
  .section-heading h2 { font-size:31px; }
  .section-heading > p { max-width:130px; font-size:9px; }
  .how-section,.quests-section,.atlas-section { margin-top:38px; }
  .atlas-section { padding:18px 13px; border-radius:28px; }
  .atlas-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .atlas-card { min-height:153px; padding-inline:6px; }
  .atlas-card h4 { font-size:10px; }
  .game-shell { padding:14px; border-radius:29px; }
  .game-heading { padding:0 2px 12px; }
  .game-heading h1 { font-size:29px; }
  .page-badge { flex-basis:65px; width:65px; height:65px; border-width:7px; }
  .page-badge b { font-size:23px; }
  .route-strip { padding:10px; }
  .route-strip span { font-size:8px; }
  .story-page { min-height:0; padding:22px 18px 38px; border-radius:22px; }
  .scene-heading { gap:11px; margin-bottom:16px; }
  .scene-emoji { flex-basis:65px; width:65px; height:65px; font-size:37px; border-radius:19px; }
  .scene-heading h2 { font-size:21px; }
  .story-text p { margin-bottom:13px; font-size:16px; line-height:1.58; }
  .question-card { padding:17px 13px; border-radius:22px; }
  .question-heading h2 { font-size:19px; }
  .hint-button { min-height:40px; padding:0 8px; font-size:8px; }
  .answer-option { min-height:54px; }
  .answer-option > b { font-size:12px; }
  .feedback { padding:11px; }
  .branch-panel { padding:17px 13px; border-radius:22px; }
  .branch-heading h2 { font-size:21px; }
  .branch-grid button { min-height:78px; padding:10px; }
  .ending-panel { padding:17px 13px; border-radius:22px; }
  .ending-panel > span { flex-basis:58px; width:58px; height:58px; font-size:32px; }
  .ending-panel h2 { font-size:20px; }
  .result-card { min-height:650px; padding:48px 17px; border-radius:30px; }
  .result-card h1 { font-size:39px; }
  .result-stats { grid-template-columns:repeat(2,1fr); gap:7px; }
  .result-actions { flex-direction:column-reverse; }
  .result-actions button { width:100%; }
}
@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
