@charset "UTF-8";
:root{color-scheme:light;--paper:#f4ead7;--light:#fffaf0;--ink:#302821;--muted:#756a5c;--line:#d9cbb4;--rust:#a74329;--rust-dark:#84331f;--olive:#626e49;--sand:#e9dcc4;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,'Segoe UI',sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:15px/1.5 var(--sans);background-image:radial-gradient(#a18c7021 .6px,transparent .6px);background-size:6px 6px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #467e9a;outline-offset:4px}button:disabled{opacity:.48}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:normal;line-height:1.08}img{max-width:100%;display:block}[hidden]{display:none!important}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip-link:focus{position:fixed;z-index:1000;background:white;padding:10px}
.topbar{height:90px;max-width:1440px;margin:auto;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:15px;font-weight:800;letter-spacing:.12em}.brand small{display:block;letter-spacing:.15em;font-size:8px;color:var(--muted);margin-top:3px}.top-actions{display:flex;gap:10px;align-items:center}.subtle-button,.icon-button{border:1px solid var(--line);background:transparent;border-radius:6px;padding:10px 15px;font-size:12px;font-weight:700;min-height:42px}.subtle-button:hover,.icon-button:hover{background:var(--sand)}.subtle-button span{margin-left:8px;color:var(--rust)}.icon-button{min-width:45px;display:flex;gap:5px;align-items:center;justify-content:center;font-size:19px}.sound-mark{font-size:9px;font-weight:normal}.icon-button[aria-pressed=true]{color:var(--rust);background:#ecdac7}
#main{max-width:1440px;margin:auto;outline:none;padding-bottom:90px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--rust);display:flex;align-items:center;gap:10px}.eyebrow:before{content:'';width:23px;height:1px;background:currentColor;flex-shrink:0}.hero{padding:62px 64px 42px;display:grid;grid-template-columns:.88fr 1.12fr;gap:32px;align-items:center}.hero h1{font-size:clamp(58px,6.4vw,90px);letter-spacing:-.04em;margin:23px 0;line-height:.96}.hero h1 em{font-weight:normal;color:var(--rust)}.hero .lead{font-size:16px;max-width:405px;color:var(--muted);line-height:1.7}.hero-actions{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap}.button{border:1px solid var(--line);padding:12px 20px;min-height:46px;display:inline-flex;justify-content:center;align-items:center;gap:20px;border-radius:5px;background:var(--light);font-weight:700;font-size:13px;text-decoration:none;transition:background .15s,transform .15s}.button:hover{background:var(--sand);transform:translateY(-1px)}.button.primary{background:var(--rust);border-color:var(--rust);color:#fff7e8}.button.primary:hover{background:var(--rust-dark)}.button.dark{background:var(--ink);color:var(--paper);border-color:var(--ink)}.button.small{min-height:39px;padding:8px 12px;font-size:11px}.hero-notes{display:flex;flex-wrap:wrap;gap:18px;margin-top:24px;font-size:10px;letter-spacing:.02em;color:var(--muted)}.hero-notes b{font-weight:800;color:var(--ink)}.hero-picture{position:relative;padding:15px 0 0}.hero-picture:before{content:'';position:absolute;width:88%;height:85%;border:1px solid #cbb995;border-radius:50%;left:6%;top:5%;opacity:.6;transform:rotate(-12deg)}.hero-picture img{position:relative;width:100%;filter:drop-shadow(0 16px 12px #6e4c2712)}.hero-stamp{position:absolute;right:0;top:4px;width:98px;height:98px;display:grid;place-content:center;gap:2px;text-align:center;border:1px solid var(--rust);border-radius:50%;color:var(--rust);font-size:9px;font-weight:800;letter-spacing:.12em;transform:rotate(10deg);background:#f4ead7de}.hero-stamp strong{font:32px var(--serif);line-height:1}.picture-caption{position:relative;text-align:center;font:italic 13px var(--serif);color:var(--muted);margin-top:-20px}.route-preview{border-top:1px solid var(--line);margin:0 64px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:18px;margin:25px 0 19px}.section-heading h2{font-size:23px}.section-heading p{font-size:11px;color:var(--muted)}.route-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.route-card{border-top:2px solid #b4a285;padding-top:13px}.route-card span{font:italic 22px var(--serif);color:var(--rust)}.route-card h3{font-size:17px;margin:8px 0 6px;min-height:38px}.route-card p{font-size:10px;color:var(--muted)}.route-bottom{display:flex;justify-content:space-between;gap:20px;margin-top:26px;padding-top:15px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.text-link{padding:0;border:0;background:none;text-decoration:underline;text-underline-offset:4px;font-size:inherit;color:var(--muted)}
.quest-shell{display:grid;grid-template-columns:214px minmax(0,1fr);min-height:690px}.sidebar{padding:30px 23px 20px 32px;border-right:1px solid var(--line)}.sidebar-caption{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-bottom:21px}.chapter-nav{display:grid;gap:8px}.chapter-link{display:flex;text-align:left;gap:10px;padding:12px 0;background:none;border:0;align-items:center;font-size:11px;line-height:1.3;width:100%;border-radius:4px}.chapter-link .number{width:27px;height:27px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:50%;font:15px var(--serif)}.chapter-link.active{color:var(--rust);font-weight:800}.chapter-link.active .number{background:var(--rust);color:white;border-color:var(--rust)}.chapter-link.complete .number{background:var(--olive);color:white;border-color:var(--olive)}.chapter-link:disabled{opacity:.5}.rank-box{border-top:1px solid var(--line);margin-top:26px;padding-top:21px}.rank-box small{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.rank-box strong{display:block;font:21px var(--serif);margin:7px 0 10px}.rank-progress{height:4px;background:var(--line);border-radius:2px;overflow:hidden}.rank-progress i{display:block;background:var(--olive);height:100%;transition:width .5s}.rank-box p{font-size:10px;color:var(--muted);margin-top:9px}.chapter-main{min-width:0;padding:31px 38px 35px}.chapter-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.chapter-top .era{font-size:10px;color:var(--muted)}.chapter-main h1{font-size:42px;letter-spacing:-.025em;margin:11px 0 22px}.chapter-layout{display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1fr);gap:25px;align-items:start}.scene-panel{position:relative;background:#ecdfc68a;border-radius:8px;border:1px solid #dfd0b6;overflow:hidden}.scene-panel img{width:100%;aspect-ratio:640/440;object-fit:contain}.scene-caption{position:absolute;left:14px;top:13px;font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.scene-panel .scene-label{position:absolute;right:12px;bottom:10px;background:#f7efdfd9;padding:5px 8px;border:1px solid #d8cbb7;font-size:9px;color:var(--muted);border-radius:3px}.mentor{margin-top:17px;display:flex;gap:12px}.mentor-mark{width:29px;height:29px;border:1px solid var(--rust);border-radius:50%;flex-shrink:0;display:grid;place-items:center;color:var(--rust);font:italic 18px var(--serif)}.mentor p{font:15px/1.55 var(--serif);color:#584c3e}.mentor b{display:block;font:800 9px var(--sans);text-transform:uppercase;letter-spacing:.13em;color:var(--rust);margin-bottom:5px}.museum-note{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.65}.museum-note b{display:block;color:var(--ink);font-size:10px;margin-bottom:3px}.task-panel{background:var(--light);border:1px solid var(--line);padding:23px;border-radius:8px;box-shadow:0 8px 24px #79532908}.task-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.task-heading span{font-size:9px;letter-spacing:.1em;color:var(--rust);font-weight:800;text-transform:uppercase}.task-dots{display:flex;gap:5px}.task-dots i{width:6px;height:6px;border-radius:50%;background:#d8c9b0}.task-dots i.done{background:var(--olive)}.task-panel h2{font-size:25px;line-height:1.14;margin:12px 0 8px}.task-description{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:17px}.task-actions{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid var(--line);padding-top:15px;margin-top:19px}.hint-button{background:transparent;border:0;color:var(--muted);font-size:11px;padding:10px 0;min-height:42px}.hint-button:hover{text-decoration:underline}.feedback{font-size:12px;line-height:1.55;margin-top:14px;padding:11px 13px;border-left:3px solid var(--rust);background:#f2e1d6;color:#793621}.feedback.good{border-color:var(--olive);background:#e9eddf;color:#465333}.feedback.hint{border-color:#9c7b3e;background:#f2e9d2;color:#6d5931}.feedback strong{display:block;margin-bottom:3px}.step-success{padding:8px 0 0;text-align:left}.chapter-reward{padding:25px 20px;background:var(--light);border:1px solid #b9bd9c;border-radius:8px;text-align:center}.reward-medal{width:73px;height:73px;margin:0 auto 15px;border:1px solid var(--olive);border-radius:50%;display:grid;place-items:center;font:38px var(--serif);color:var(--olive);background:repeating-conic-gradient(from 0deg,#e9eddf 0deg 10deg,#f5f6ed 10deg 20deg);box-shadow:inset 0 0 0 5px var(--light)}.chapter-reward h2{font-size:27px;margin:7px 0 12px}.chapter-reward .fact{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 18px}.earned{font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:var(--olive);font-weight:800}.chapter-reward .button{width:100%;margin-top:16px}.earned-tool{border-top:1px solid var(--line);padding-top:13px;font-size:11px;color:var(--muted)}.earned-tool b{color:var(--ink)}
.part-pool{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;min-height:46px}.part{display:flex;align-items:center;gap:7px;min-height:44px;max-width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:5px;background:var(--paper);font-size:11px;user-select:none;cursor:grab}.part.selected{outline:2px solid var(--rust);border-color:var(--rust);background:#f2deca}.part svg{width:28px;height:28px;flex-shrink:0}.match-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.match-slot{padding:11px 6px;min-height:99px;border:1px dashed #b8a487;border-radius:5px;background:#f6efdf;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;position:relative}.match-slot .slot-label{font-size:9px;color:var(--muted)}.match-slot .slot-value{font-size:11px;font-weight:700;display:flex;align-items:center;flex-direction:column;gap:4px}.match-slot svg{width:30px;height:30px}.match-slot .plus{font:25px var(--serif);color:#b19b7a}.match-slot.filled{border-style:solid}.match-slot.target{background:#efdfc4;border-color:var(--rust)}.choice-list{display:grid;gap:8px}.choice{display:flex;align-items:center;text-align:left;padding:11px 12px;border:1px solid var(--line);border-radius:5px;background:#fcf7ec;gap:11px;font-size:12px;line-height:1.45}.choice .letter{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;font-size:10px;font-weight:700}.choice.selected{border-color:var(--rust);background:#f3e3d2}.choice.selected .letter{background:var(--rust);color:white;border-color:var(--rust)}.choice:hover{background:#f1e7d5}.order-stack{display:grid;gap:6px}.order-slot{display:flex;gap:10px;padding:9px 10px;align-items:center;min-height:43px;border:1px dashed #baa88b;border-radius:4px;background:#f6efdf;text-align:left;font-size:11px;width:100%}.order-slot b{width:20px;color:var(--rust);font:18px var(--serif)}.order-slot.filled{border-style:solid}.belief-list{display:grid;gap:10px}.belief-row{background:#f6efdf;border:1px solid var(--line);padding:10px;border-radius:5px}.belief-row p{font:14px/1.35 var(--serif);margin-bottom:8px}.segmented{display:flex;gap:5px}.segmented button{border:1px solid var(--line);background:var(--light);padding:6px 8px;border-radius:4px;font-size:10px;min-height:35px;flex:1}.segmented button[aria-pressed=true]{background:var(--olive);border-color:var(--olive);color:white}.mosaic-wrap{width:min(235px,100%);margin:0 auto;position:relative;padding:9px;border:5px ridge #b19c65;background:#5b684c}.mosaic{display:grid;grid-template-columns:1fr 1fr;gap:3px}.mosaic-tile{display:block;padding:0;aspect-ratio:1;border:0;background:#f3e6c7;overflow:hidden}.mosaic-tile svg{width:100%;height:100%;display:block;transition:transform .2s}.puzzle-note{text-align:center;font-size:10px;color:var(--muted);margin:10px 0 0}.brick-wall{display:flex;flex-direction:column-reverse;gap:4px;padding:12px;background:#e0d2b9;border:1px solid #c6b28e;border-radius:5px}.brick-row{display:flex;align-items:center;gap:9px;background:none;border:0;padding:0}.brick-row .brick-num{font-size:10px;color:var(--muted);min-width:11px}.bricks{height:35px;flex:1;border:1px solid #813b28;background-color:#b75c3e;background-image:repeating-linear-gradient(90deg,transparent 0 47px,#ecd4b0 47px 51px);box-shadow:inset 0 1px #d88f64;transition:background-position .2s}.brick-row.shifted .bricks{background-position:25px 0}.brick-row .rotate{font-size:18px;color:var(--rust);min-width:18px}.pipe-board{width:min(235px,90%);margin:23px auto;position:relative;border:7px solid #b88862;background:#a97650;border-radius:4px}.pipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.pipe-cell{aspect-ratio:1;padding:0;border:0;background:#eddec4;display:grid;place-items:center}.pipe-cell svg{width:100%;height:100%;transition:transform .2s}.pipe-inlet,.pipe-outlet{position:absolute;font-size:9px;background:var(--light);padding:1px 6px;color:var(--rust);font-weight:800}.pipe-inlet{bottom:-24px;left:-5px}.pipe-outlet{top:-24px;right:-5px}.pipe-cell.flow{background:#f0c38f}.pipe-cell.flow svg{filter:sepia(.7) saturate(2)}.heat-chart{padding:12px;border:1px solid var(--line);background:#f5ecda;border-radius:6px}.heat-chart svg{width:100%;height:auto;display:block}.heat-legend{display:flex;justify-content:center;gap:13px;font-size:9px;margin-top:5px}.heat-legend span:before{content:'';width:15px;height:3px;background:var(--rust);display:inline-block;vertical-align:middle;margin-right:4px}.heat-legend span:last-child:before{background:var(--olive)}.range-label{display:flex;justify-content:space-between;font-size:10px;margin:12px 0 2px}.heat-slider{width:100%;accent-color:var(--rust);min-height:32px}.heat-readout{font-size:11px;color:var(--muted);min-height:34px;margin-top:3px}.heat-task{font-size:12px;margin:15px 0 9px;font-weight:700}.small-match .match-slot{min-height:110px}.small-match .slot-label{font-size:10px;line-height:1.4}.puzzle-lock{pointer-events:none;opacity:.65}
.final-page{padding:45px 64px}.final-head{max-width:680px;margin:auto;text-align:center}.final-head .eyebrow{justify-content:center}.final-head h1{font-size:52px;margin:15px 0}.final-head p{color:var(--muted);font-size:14px}.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:28px 0}.client-card{padding:20px;background:var(--light);border:1px solid var(--line);border-radius:6px}.client-card img{height:145px;width:100%;object-fit:contain}.client-card h2{font-size:22px;margin:12px 0 8px}.client-card p{font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:15px}.client-card .choice{font-size:11px;padding:9px}.final-action{max-width:550px;margin:auto;text-align:center}.certificate-preview{max-width:680px;margin:25px auto;padding:35px;border:1px solid #b49a69;outline:1px solid #b49a69;outline-offset:-9px;background:var(--light);text-align:center}.certificate-preview h2{font-size:42px;margin:12px 0}.certificate-preview .person{font:italic 28px var(--serif);color:var(--rust);margin:12px 0}.certificate-stamps{display:flex;justify-content:center;gap:8px;margin:23px 0}.certificate-stamps span{width:37px;height:37px;border:1px solid var(--olive);border-radius:50%;display:grid;place-items:center;color:var(--olive);font:18px var(--serif)}.certificate-preview p{font-size:12px;color:var(--muted)}.name-input{border:1px solid var(--line);border-radius:4px;background:var(--light);padding:10px 12px;width:min(270px,100%);min-height:44px;display:block;margin:9px auto 14px;text-align:center}.end-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:18px}.save-note{font-size:10px;color:var(--muted);margin-top:14px}.collection-note{margin-top:25px;text-align:center;font-size:11px;color:var(--muted)}
.floating-nav{position:fixed;z-index:100;bottom:max(14px,env(safe-area-inset-bottom));right:max(17px,env(safe-area-inset-right));display:flex;align-items:center;gap:8px}.floating-nav a{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #c2ac88;background:#fbf5e9ed;backdrop-filter:blur(8px);box-shadow:0 4px 18px #4b321620;height:43px;padding:0 15px;border-radius:50px;text-decoration:none;font-size:12px;font-weight:700}.floating-nav .museum-link{padding:7px;width:43px}.floating-nav img{width:29px;height:29px}.floating-nav a:hover{background:var(--sand)}dialog{position:fixed;inset:0;margin:auto;width:min(630px,calc(100% - 28px));max-height:calc(100dvh - 32px);border:1px solid #bd9e75;border-radius:10px;background:var(--light);color:var(--ink);padding:0;box-shadow:0 20px 100px #21130866}dialog::backdrop{background:#30251ddb;backdrop-filter:blur(5px)}.modal-inner{position:relative;padding:32px;overflow:auto}.close-button{position:absolute;right:10px;top:10px;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:var(--paper);font-size:23px;display:grid;place-items:center;z-index:1}#modal-title{font-size:32px;padding-right:20px;margin:10px 0 14px}.modal-intro{color:var(--muted);font-size:13px;line-height:1.7;margin-bottom:18px}.journal-entries{display:grid;gap:14px}.journal-entry{padding:16px;border:1px solid var(--line);border-radius:6px}.journal-entry h3{font-size:20px;margin:7px 0}.journal-entry p{font-size:12px;line-height:1.7;color:var(--muted)}.journal-entry small{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--olive)}.journal-entry.locked{opacity:.55;background:var(--paper)}.journal-tools{font-size:11px;margin-top:9px;color:var(--rust)}.source-list{font-size:12px;line-height:1.7;padding-left:18px;color:var(--muted)}.source-list li{margin-bottom:9px}.source-list a{color:var(--rust);text-underline-offset:3px}.promo{text-align:center;padding:12px 0 0}.promo img{width:67px;height:67px;margin:0 auto 16px}.promo #modal-title{padding:0;font-size:31px}.promo p{font-size:13px;color:var(--muted);line-height:1.7}.promo .end-actions{display:grid;grid-template-columns:1fr 1fr}.promo .vk{background:#2372c5;color:#fff;border-color:#2372c5}.modal-hint{margin-top:20px;padding:13px;background:var(--paper);font-size:11px;color:var(--muted);border-left:2px solid #bca579}.no-script{margin:30px}
@media(min-width:1400px){.chapter-layout{gap:35px}.chapter-main{padding-left:42px;padding-right:48px}.task-panel{padding:26px}}
@media(max-width:1100px){.topbar{padding:0 25px;height:77px}.hero{padding:40px 35px 30px;gap:15px}.route-preview{margin:0 35px}.hero h1{font-size:68px}.quest-shell{grid-template-columns:175px 1fr}.sidebar{padding-left:20px;padding-right:14px}.chapter-main{padding:25px}.chapter-main h1{font-size:34px}.chapter-layout{gap:18px}.task-panel{padding:17px}.task-panel h2{font-size:23px}.mentor p{font-size:14px}.chapter-top .era{font-size:9px}.hero-stamp{width:80px;height:80px}.route-card h3{font-size:15px}}
@media(max-width:850px){.quest-shell{display:block}.sidebar{padding:13px 20px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-caption,.rank-box{display:none}.chapter-nav{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.chapter-link{display:flex;align-items:center;justify-content:center;padding:3px}.chapter-link .nav-name{display:none}.chapter-link .number{width:30px;height:30px}.chapter-main{padding:23px}.chapter-layout{grid-template-columns:1fr 1.05fr}.hero h1{font-size:59px}.hero .lead{font-size:14px}.hero-stamp{right:-10px}.route-cards{grid-template-columns:repeat(3,1fr);gap:20px}.route-card h3{min-height:0}.final-page{padding:30px}.client-grid{gap:9px}.client-card{padding:14px}.client-card h2{font-size:20px}.brand small{font-size:7px}}
@media(max-width:620px){.topbar{padding:0 16px;height:69px;gap:5px}.brand{gap:8px;font-size:12px;letter-spacing:.1em}.brand img{width:31px;height:31px}.brand small{font-size:6px;letter-spacing:.07em}.top-actions{gap:5px}.subtle-button{font-size:10px;padding:8px 9px;min-height:38px}.subtle-button span{margin-left:2px}.icon-button{padding:6px;min-width:32px;min-height:38px;font-size:17px}.sound-mark{display:none}.hero{display:flex;flex-direction:column;padding:28px 22px 22px;gap:8px;align-items:stretch;position:relative}.eyebrow{font-size:8px;letter-spacing:.14em}.hero h1{font-size:62px;margin:17px 0 14px;max-width:300px}.hero .lead{font-size:13px;max-width:345px}.hero-actions{margin-top:19px}.hero-actions .button{min-height:45px}.hero-notes{gap:12px;font-size:9px;margin-top:16px}.hero-picture{padding:0;margin:0 auto;max-width:380px;width:100%}.hero-picture img{max-height:215px;width:100%;object-fit:contain}.hero-stamp{width:62px;height:62px;top:9px;right:7px;font-size:6px}.hero-stamp strong{font-size:23px}.picture-caption{font-size:11px;margin-top:-9px}.route-preview{margin:0 22px}.section-heading{margin:19px 0 14px}.section-heading h2{font-size:21px}.section-heading p{font-size:9px}.route-cards{gap:15px 12px}.route-card{padding-top:9px}.route-card span{font-size:18px}.route-card h3{font-size:15px;min-height:32px}.route-card p{font-size:9px}.route-bottom{font-size:9px;align-items:start;line-height:1.6;margin-top:20px;gap:15px}.chapter-main{padding:17px 16px 26px}.sidebar{padding:10px 16px}.chapter-link .number{width:28px;height:28px;font-size:13px}.chapter-top .era{font-size:8px;text-align:right;max-width:145px}.chapter-main h1{font-size:32px;margin:10px 0 14px}.chapter-layout{display:flex;flex-direction:column;gap:16px}.story-column{display:grid;grid-template-columns:42% minmax(0,1fr);gap:10px;align-items:center;width:100%}.scene-panel{border-radius:5px}.scene-panel img{height:132px;object-fit:cover}.scene-caption{font-size:6px;left:7px;top:6px}.scene-panel .scene-label{display:none}.mentor{margin:0;gap:7px}.mentor-mark{display:none}.mentor p{font-size:12px;line-height:1.45}.mentor b{font-size:7px;letter-spacing:.1em}.museum-note{grid-column:1/-1;margin:0;padding:8px 0 0;font-size:10px;line-height:1.5}.museum-note b{display:inline;font-size:9px;margin-right:4px}.task-panel{padding:17px;width:100%;border-radius:6px}.task-panel h2{font-size:25px;margin:9px 0 7px}.task-description{font-size:12px;margin-bottom:13px}.task-actions{padding-top:12px;margin-top:15px}.task-actions .button{font-size:12px;min-height:43px;padding:10px 16px}.task-heading span{font-size:8px}.chapter-reward{width:100%;padding:22px}.mosaic-wrap{width:205px}.pipe-board{width:205px}.feedback{font-size:12px}.match-slot{min-height:92px}.part{font-size:11px;min-height:43px}.belief-row p{font-size:14px}.belief-row{padding:9px}.belief-list{gap:7px}.segmented button{min-height:34px}.final-page{padding:26px 17px}.final-head h1{font-size:39px}.final-head p{font-size:12px}.client-grid{grid-template-columns:1fr;gap:14px;margin-top:22px}.client-card{padding:17px;position:relative}.client-card img{width:85px;height:80px;float:right;margin-left:9px}.client-card h2{font-size:22px;margin-top:6px}.client-card p{min-height:50px}.client-card .choice{min-height:44px;font-size:12px}.certificate-preview{padding:28px 18px}.certificate-preview h2{font-size:33px}.certificate-preview .person{font-size:26px}.certificate-stamps{gap:7px}.certificate-stamps span{width:32px;height:32px;font-size:16px}.floating-nav{bottom:max(10px,env(safe-area-inset-bottom));right:11px;gap:6px}.floating-nav a{height:41px}.floating-nav .museum-link{width:41px}.modal-inner{padding:26px 20px}#modal-title{font-size:28px}.promo #modal-title{font-size:26px}.promo .end-actions{gap:8px}.promo .button{font-size:11px;padding:10px}.promo img{width:52px;height:52px}.promo p{font-size:12px}.modal-intro{font-size:12px}.modal-hint{font-size:10px}.heat-chart{padding:9px}.heat-chart svg{max-height:130px}}
@media(max-width:360px){.brand small{display:none}.hero h1{font-size:55px}.hero{padding-left:17px;padding-right:17px}.route-preview{margin:0 17px}.chapter-main{padding:15px 10px}.task-panel{padding:14px}.hero-notes{gap:9px}.story-column{grid-template-columns:39% 1fr}.mentor p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.embedded body{height:var(--app-height,800px);display:flex;flex-direction:column;overflow:hidden}.embedded .topbar{flex-shrink:0;width:100%}.embedded #main{width:100%;flex:1;overflow:auto;min-height:0}.embedded .floating-nav{position:absolute;top:calc(var(--app-height,800px) - 58px);bottom:auto}.embedded dialog{top:calc(var(--app-height,800px) / 2);bottom:auto;transform:translateY(-50%);margin:0 auto;max-height:calc(var(--app-height,800px) - 28px)}
@media print{.topbar,.floating-nav,.end-actions,.final-action,#modal,.collection-note{display:none!important}body{background:#fff}.final-page{padding:0}#main{padding:0}.certificate-preview{break-inside:avoid;margin:30px auto}.certificate-preview .person{color:black}.final-head p{display:none}}
