.journey-fold{margin:12px 0 28px;border-block:1px solid #cdd2ba;padding:14px 0}.journey-fold>summary{cursor:pointer;color:#456853;font-size:12px;min-height:28px;line-height:28px}
/* The persistent Journey control already opens the atlas on phones. */
@media(max-width:700px){.journey-fold{display:none}}
.journey-atlas{margin:20px 0 25px}.atlas-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.atlas-heading h2{font:32px/1.12 Georgia,serif;margin:8px 0;color:#304e3e}.atlas-heading .eyebrow{margin:0;color:#718169}.atlas-heading>span{font-size:12px;color:#617a60;white-space:nowrap}.atlas-help{font-size:12px;color:#71806b;line-height:1.7;max-width:620px;margin:13px 0 19px}
.atlas-window{position:relative;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;border:1px solid #aebca1;border-radius:24px;background:#dce4c6;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a4b08c #dce4c6;isolation:isolate}.atlas-window:focus-visible{outline:3px solid #758d6e;outline-offset:3px}.atlas-land{display:flex;width:max-content}.atlas-region{position:relative;width:clamp(272px,calc(100vw - 64px),370px);height:auto;aspect-ratio:3/4;flex:none;scroll-snap-align:start;overflow:hidden;background:linear-gradient(#e7e9cf,#d6dfbd)}.atlas-scenery{position:absolute;inset:0;width:100%;height:100%;display:block}.atlas-number{position:absolute;top:15px;left:22px;font:8px/1.2 system-ui;letter-spacing:1.5px;color:#6c7f62}.atlas-town{position:absolute;left:17px;right:17px;top:30px;padding:7px 5px 8px;background:none;border:0;border-radius:12px;text-align:center;color:#3c644c;min-height:42px;box-shadow:none}.atlas-town b{display:block;font:27px/1.1 Georgia,serif}.atlas-town small{display:none;font-size:9px;line-height:1.4;margin-top:7px;color:#7e896c}.atlas-town[aria-pressed=true] b{text-decoration:underline;text-decoration-color:#b6bf8f;text-decoration-thickness:2px;text-underline-offset:7px}.atlas-town:focus-visible{outline:2px solid #668465;outline-offset:2px}
.atlas-road-stop circle,.atlas-finale-mark circle{fill:#fbf2d4;stroke:#81966c;stroke-width:2.2}.atlas-road-stop text{fill:#5e7750;font:600 10px system-ui}.atlas-road-stop.stop-found circle,.atlas-finale-mark.stop-found circle{fill:#66876a;stroke:#f0e8bf}.atlas-road-stop.stop-found text{fill:#fff4d3}.region-clouded .atlas-scenery{filter:saturate(.28);opacity:.87}.region-clouded .atlas-town{color:#6f7d68}.region-clouded .atlas-number{color:#859078}.atlas-clouds{display:none;position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 80px 45px at 2% 24%,#fbfbebc4 0 48%,transparent 94%),radial-gradient(ellipse 100px 58px at 98% 84%,#f8fae9b8 0 40%,transparent 95%);animation:cloud-drift 10s ease-in-out infinite alternate}.region-clouded .atlas-clouds{display:block}
.atlas-juju{position:absolute;transform:translate(-50%,-100%);padding-bottom:20px;text-align:center;pointer-events:none;z-index:2}.atlas-juju:after{content:'';position:absolute;left:calc(50% - 5px);bottom:7px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:8px solid #426b50}.atlas-juju .portrait{display:block;width:46px;height:46px;margin:auto;border-radius:50%;box-shadow:0 0 0 3px #fff6d9,0 3px 7px #35563e33}.atlas-juju>span{display:block;font:8px/1.3 system-ui;color:#3f684c;background:#fff5dbeF;border:1px solid #c5cba8;border-radius:10px;padding:4px 6px;margin-top:5px;white-space:nowrap}
.atlas-paging{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:12px}.atlas-paging span{font-size:10px;color:#7b866e;white-space:nowrap}.atlas-paging button{font-size:11px;min-height:42px}.atlas-detail{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0 8px;min-height:110px}.atlas-detail b{font:26px Georgia,serif}.atlas-detail p{font-size:12px;line-height:1.7;color:#71806c;max-width:520px;margin:9px 0}.atlas-detail .primary{white-space:nowrap;font-size:12px;text-decoration:none}.atlas-lock{font-size:10px;color:#858a76;white-space:nowrap}.atlas-inline .atlas-heading h2{font-size:25px}.journey-atlas>.journal-link{display:inline-block;font-size:12px;line-height:1.7;margin:12px 0 0;max-width:100%}
.journey-page .shell{max-width:1100px}.journey-header{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:84px;padding:18px 0;border-bottom:1px solid var(--line);box-sizing:border-box}.journey-header .wordmark{color:var(--ink,#294836);text-decoration:none;flex:none}.journey-return{font-size:11px;color:#5c7459;min-height:44px;display:flex;align-items:center;text-underline-offset:4px}.journey-route-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-width:440px;padding:5px;margin:23px 0 28px;border:1px solid #c9d0b7;border-radius:15px;background:#e9ecdc;position:static;box-sizing:border-box}.journey-route-nav a{font:600 12px/1.3 system-ui;text-decoration:none;text-align:center;display:grid;place-items:center;padding:12px 10px;min-height:44px;border:1px solid transparent;border-radius:10px;color:#7e8871;box-sizing:border-box}.journey-route-nav a[aria-current=page]{background:#fcf9eb;border-color:#d2d3b9;color:#365e48;box-shadow:0 2px 4px #6874550a}.journey-route-nav a:focus-visible{outline:2px solid #638465;outline-offset:2px}
.memory-book{margin:30px 0}.book-intro{max-width:720px}.book-intro h1{font:clamp(36px,5vw,56px)/1.05 Georgia,serif;margin:10px 0 20px}.book-intro p{font-size:14px;line-height:1.75;color:#6e7e6b}.book-count{display:flex;gap:15px;align-items:center;margin:22px 0;color:#41684a}.book-count>b{font:36px Georgia,serif}.book-count>span{font-size:11px;max-width:170px;line-height:1.7}.book-jump-label{display:flex;align-items:center;gap:12px;font-size:12px;margin:20px 0;color:#6e7b64}.book-jump-label select{font:inherit;padding:10px 12px;border-radius:9px;border:1px solid #bac4aa;background:#f9f6e7;color:#365d46;min-height:44px;max-width:100%}.book-spread{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:0;border:8px solid #536c50;border-radius:17px;background:#536c50;box-shadow:0 12px 0 -5px #334b36,0 23px 36px #2f4d3520;position:relative;isolation:isolate}.book-paper{min-width:0;background:linear-gradient(90deg,#e9dfbf,#fffae9 8%,#faf5df 94%,#d2c39e);padding:28px 25px;position:relative;border-radius:7px}.book-left{border-right:2px solid #c6b88d}.book-left h2{font:32px/1.15 Georgia,serif;color:#47674d}.book-left p{font-size:13px;line-height:1.8;color:#7b7c62}.book-left>b{font:20px Georgia,serif;color:#5a7951}.book-left>small{display:block;font-size:10px;line-height:1.7;color:#929079;margin-top:20px}.book-chapter-vignette{height:160px;border-radius:50%;overflow:hidden;margin:24px 0}.book-chapter-vignette svg{width:100%;height:100%}.book-pockets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 12px;align-items:stretch}.book-pocket{min-width:0;padding:4px;background:#decf9b3b;border-radius:9px;border:1px solid #c3b88b70}.book-pocket .collectible{aspect-ratio:2/3}.book-pocket .card-name{font-size:12px}.book-pocket .card-subtitle{font-size:8px}.book-pocket .card-quote{font-size:8px}.book-pocket .edition-name{font-size:4px}.book-pocket .card-location{font-size:4px}.book-pocket .card-topline{font-size:4px}.book-pocket .star-seal{width:23px;height:23px}.book-pocket .card-inscription{font-size:5px}.book-pocket .card-topline b{font-size:9px}.book-unfound{height:100%;aspect-ratio:2/3;border:2px solid #c3b489;border-radius:9px;background:repeating-linear-gradient(45deg,#e9dfbd 0 7px,#ede4c9 7px 14px);display:flex;align-items:center;justify-content:center;flex-direction:column;color:#9b966d;padding:12px;gap:12px}.book-unfound>b{font:40px Georgia,serif;width:65%;aspect-ratio:1;display:grid;place-items:center;border:1px solid #b8b28a;border-radius:50%}.book-unfound>span{font-size:10px}.book-unfound>small{font-size:9px;text-align:center}.book-chapter-note{display:grid;place-items:center;line-height:1.8;color:#8c8b6d;font:italic 13px/1.8 Georgia,serif;text-align:center;padding:12px}.book-page-caption{display:block;text-align:center;font-size:9px;color:#8e8a6c;margin-top:20px}.book-turns{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:28px 0 20px}.book-turns span{font-size:11px;color:#6e7d62}.book-turns button{font-size:12px;min-height:44px}.page-turn{animation:book-open .35s ease-out}.hidden-pockets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.hidden-pocket>small{font-size:9px;color:#8b866b;display:block;line-height:1.7;text-align:center;margin-top:10px}.hidden-card{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;width:100%;aspect-ratio:2/3;padding:13px;border:3px double #a38b51;border-radius:12px;background:linear-gradient(130deg,#c6b780,#e6dcb6,#b9ad7f);color:#766d4c;text-align:center;overflow:hidden}.hidden-card>span:first-child{font-size:7px;letter-spacing:1px}.hidden-card>b{font:20px/1.1 Georgia,serif}.hidden-card .hidden-j{font-size:55px}.hidden-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.hidden-card small{font-size:9px}.hidden-stars{width:85%;height:19px;display:grid;place-items:center}.hidden-stars .seal-stars{width:100%;height:100%}.secret-earned{border-color:#d6ae52;background:linear-gradient(125deg,#d7ad56,#fff5cf 38%,#cfaa5b 60%,#f1d58e);color:#654f2d;box-shadow:0 0 0 2px #a37a3e}.seal-stars.four-stars,.seal-stars.five-stars{width:98%;height:25%}.seal-stars.five-stars{height:20%}.collectible.tier-four,.collectible.tier-five{border-color:#fff1c1;box-shadow:0 0 0 3px #b38c3e,0 15px 36px #96712233}.tier-five .foil-layer{opacity:.8}.travel-bag{display:flex;flex-direction:column;gap:20px}.bag-item{border-bottom:1px solid #ccbf96;padding-bottom:16px}.bag-item>div{width:85px;height:70px;float:left;margin:0 12px 7px 0}.bag-item svg{width:100%;height:100%}.bag-lock{font:45px Georgia,serif;color:#b2aa86}.bag-item h3{font:21px Georgia,serif;color:#7f8061;margin:5px 0}.bag-item p,.travel-bag>p{font-size:11px;line-height:1.8;color:#8c896e}.bag-item b{font-size:10px;color:#5a7754}.keepsake-received{max-width:680px;margin:0 auto 30px;padding:35px;border-radius:28px;background:radial-gradient(ellipse at 50% 15%,#fff2bd,#e8e7d0 75%);text-align:center;border:1px solid #c7c7a1;animation:book-open .7s ease-out}.keepsake-emblem{width:150px;height:125px;margin:auto;animation:keepsake-rise 2.8s ease-in-out infinite alternate}.keepsake-emblem svg{width:100%;height:100%;filter:drop-shadow(0 8px 7px #9c874933)}.keepsake-received h2{font:32px Georgia,serif;color:#5b704b}.keepsake-received p:not(.eyebrow){font-size:14px;line-height:1.8;color:#7b7d60}.keepsake-received>b{display:block;font-size:12px;color:#50724f}.keepsake-received>small{display:block;color:#919077;font-size:10px;margin-top:13px}
@keyframes cloud-drift{to{transform:translate(12px,-8px)}}@keyframes book-open{from{opacity:.2;transform:translateY(8px) rotateY(-3deg)}to{opacity:1;transform:none}}@keyframes keepsake-rise{to{transform:translateY(-6px) rotate(2deg)}}
@media(max-width:700px){.atlas-heading{display:block}.atlas-heading>span{display:block;margin-top:10px}.atlas-heading h2{font-size:28px}.atlas-detail{gap:12px}.atlas-detail .primary{font-size:11px;padding:12px}.book-spread{grid-template-columns:minmax(0,1fr);border-width:6px}.book-left{border-right:0;border-bottom:2px solid #c8ba92;padding:20px}.book-left h2{margin:10px 0;font-size:29px}.book-left p{font-size:12px}.book-left>small{margin-top:12px}.book-chapter-vignette{height:85px;width:130px;float:right;margin:0 0 6px 12px}.book-right{padding:24px 14px}.book-pockets{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px}.book-pocket .card-name{font-size:14px}.book-pocket .card-subtitle{font-size:10px}.book-pocket .card-quote{font-size:9px}.book-intro h1{font-size:38px}.book-count>b{font-size:32px}.book-turns button{padding:11px;font-size:11px}.atlas-region{width:300px}.atlas-town b{font-size:22px}.keepsake-received{padding:25px 18px}.keepsake-received h2{font-size:28px}.topbar{flex-wrap:wrap}.topbar nav{gap:11px}.topbar .nav-link{font-size:10px}.topbar .wordmark{margin-right:auto}.topbar nav a{text-decoration:none;color:inherit}.hidden-card>b{font-size:18px}}
@media(prefers-reduced-motion:reduce){.atlas-clouds,.page-turn,.keepsake-received,.keepsake-emblem{animation:none}}
.journey-intro{max-width:720px;margin:20px auto 45px;text-align:center}.intro-controls{display:flex;align-items:center;justify-content:space-between;color:#8c9078;font-size:11px}.intro-controls button{font-size:11px;min-height:44px}.intro-vignette{height:270px;position:relative;margin:14px 0 30px;border-radius:0;background:none;overflow:hidden}.intro-vignette>.portrait{position:absolute;width:100px;height:100px;bottom:15px;left:calc(50% - 50px);animation:juju-step 2.5s ease-in-out infinite alternate}.intro-letter{position:absolute;top:30px;left:calc(50% - 100px);width:200px;height:150px;padding:17px;background:#fff6db;box-shadow:0 6px 14px #78845b25;transform:rotate(-7deg);border:1px solid #d0bd8a;animation:letter-arrive .9s ease-out}.intro-letter span{font:14px Georgia,serif;display:block;text-align:left}.intro-letter>b{position:absolute;right:16px;bottom:15px;font:italic 17px Georgia,serif;text-align:right}.intro-letter svg{width:75px;height:65px;position:absolute;left:13px;bottom:5px}.journey-intro h1{font:clamp(36px,6vw,56px)/1.07 Georgia,serif;max-width:600px;margin:16px auto 22px}.intro-narration{font-size:17px;line-height:1.8;color:#697b63;max-width:560px;margin:0 auto}.intro-caption{font-size:12px;line-height:1.8;color:#929278;max-width:500px;margin:20px auto 30px}.intro-step-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.intro-step-controls button{font-size:12px;min-height:44px}.intro-dots{display:flex;gap:6px}.intro-dots i{width:5px;height:5px;border-radius:50%;background:#c6cdb3}.intro-dots .on{background:#5b8057}.intro-trail{position:absolute;top:110px;left:-10%;right:-10%;height:90px;border:12px solid #ead5a3;border-left:0;border-right:0;border-bottom:0;border-radius:50%;transform:rotate(-7deg)}.intro-route>i,.intro-stops>i{position:absolute;top:calc(108px - var(--n)*9px);left:calc(9% + var(--n)*18%);width:31px;height:31px;border-radius:50%;background:#f9edc7;border:3px solid #99ae78;font:15px/25px Georgia,serif;font-style:normal;color:#618051}.intro-mist{position:absolute;inset:0 0 0 45%;background:radial-gradient(ellipse at 60% 40%,#f3f5e7 20%,#eef2e1cc 50%,transparent 70%);animation:cloud-drift 6s infinite alternate}.intro-stops>.portrait,.intro-route>.portrait{left:13%;width:70px;height:70px;bottom:24px;animation:walk-across 5s ease-in-out infinite}.intro-little-book{position:absolute;inset:35px calc(50% - 85px);width:170px;border:5px double #c2a466;border-radius:10px;background:linear-gradient(120deg,#365c45,#608263);color:#e4d6a6;box-shadow:9px 6px 0 -2px #eee4c5,12px 7px #a59569;display:flex;flex-direction:column;align-items:center;justify-content:space-around;padding:15px;transform:rotate(-5deg);animation:letter-arrive .7s ease-out}.intro-little-book>span{font-size:10px;letter-spacing:2px;line-height:1.7}.intro-little-book>b{font:50px Georgia,serif}.intro-little-book>small{font:italic 11px Georgia,serif}@keyframes letter-arrive{from{opacity:0;translate:0 -30px}to{opacity:1;translate:0 0}}@keyframes juju-step{to{transform:translateY(-5px) rotate(2deg)}}@keyframes walk-across{50%{left:40%;transform:translateY(-7px)}}@media(max-width:700px){.intro-vignette{height:225px}.journey-intro h1{font-size:38px}.intro-narration{font-size:15px}.journey-intro{margin-top:8px}.intro-step-controls .primary{padding:13px}.intro-dots{gap:4px}.intro-caption{margin:16px auto 24px}}@media(prefers-reduced-motion:reduce){.intro-vignette *{animation:none!important}}

/* The operating system owns the home gesture: keep active input well above it. */
html.fruit-touch-safe .shell{padding-bottom:max(96px,calc(env(safe-area-inset-bottom,0px) + 72px))}.orchard-controls{display:flex;align-items:center;gap:10px;flex:none;margin:0 0 7px}.orchard-input-mode{border:1px solid #b9c4a8;border-radius:9px;background:#f7f6e6;color:#4b7154;min-height:36px;font-family:inherit;font-size:11px;padding:6px 10px;white-space:nowrap}.orchard-controls small{font-size:10px;color:#7f8c70;line-height:1.4}.green-playing .orchard-stage{align-items:start}.green-playing .orchard-board{align-self:start}.fruit-touch-safe .orchard-legend{display:none}@media(min-aspect-ratio:5/4) and (max-height:600px){html.fruit-touch-safe .shell{padding-bottom:max(52px,calc(env(safe-area-inset-bottom,0px) + 30px))}.fruit-touch-safe .orchard-controls{grid-column:1;grid-row:3}.fruit-touch-safe .orchard-hud{grid-column:1;grid-row:4}.fruit-touch-safe .orchard-feedback{grid-column:1;grid-row:5}.fruit-touch-safe .orchard-stage{grid-column:2;grid-row:1/span 5}}

.book-spread.book-revealing{display:block;padding:12px;background:#345543}.book-revealing .card-ceremony{margin:0 auto;padding:18px 12px}.book-revealing .card-ceremony h1{font-size:27px}.book-revealing .reveal-stage{height:345px}.book-revealing .reveal-flipper{width:210px;height:315px}.book-revealing .reveal-copy{min-height:65px}.book-revealing .reveal-quote{font-size:17px}.book-revealing .reveal-meaning{font-size:11px}.book-revealing .ceremony-footnote{font-size:9px}.hidden-notice{text-align:center;margin:25px 0}.hidden-notice a{font-size:12px}
.book-revealing .reveal-front .collectible.large-card{width:210px;height:315px;padding:9px!important}.book-revealing .reveal-front .card-name{font-size:16px;padding:4px 3px 7px}.book-revealing .reveal-front .card-subtitle{font-size:12px;padding-top:8px}.book-revealing .reveal-front .card-quote{font-size:9px;padding:3px 4px}.book-revealing .large-card .card-topline{font-size:5px;letter-spacing:1px;padding-top:3px}.book-revealing .large-card .edition-name,.book-revealing .large-card .card-location{font-size:5px}.book-revealing .large-card .card-inscription{font-size:6px}.book-revealing .large-card .star-seal{width:29px;height:29px}.book-revealing .large-card .star-seal>span{width:23px;height:23px}
dialog.book-reveal-modal{width:min(570px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);margin:auto;padding:0;border:0;background:transparent;overflow-y:auto;overscroll-behavior:contain}dialog.book-reveal-modal::backdrop{background:#173a30d9;backdrop-filter:blur(5px)}

/* The journey header has its own natural document flow, never the game's fixed-height bar. */
@media(max-width:700px){.journey-header{min-height:75px;padding:17px 0;gap:14px}.journey-header .wordmark{font-size:16px;letter-spacing:2px}.journey-header .wordmark span{font-size:6px;letter-spacing:3px}.journey-return{font-size:10px}.journey-page .journey-route-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;margin:18px 0 25px;gap:5px}.journey-page .journey-route-nav a{font-size:clamp(11px,3.5vw,12px);min-height:44px;justify-content:center;padding:8px 4px}.journey-page .journey-route-nav a::before{display:none}.journey-page .shell{padding-bottom:max(96px,calc(env(safe-area-inset-bottom,0px) + 72px))}.atlas-heading{display:block}.atlas-heading h2{font-size:29px}.atlas-heading>span{display:block;margin-top:12px}.atlas-region{width:clamp(272px,calc(100vw - 64px),370px)}.atlas-town b{font-size:26px}.atlas-detail{gap:14px;min-height:125px}.atlas-detail .primary{font-size:11px;padding:12px}.atlas-paging button{font-size:10px}.atlas-lock{font-size:10px}.atlas-help{line-height:1.7}}
.atlas-region:last-child{scroll-snap-align:end}
/* Wrapped navigation must expand the header instead of spilling into content. */
.topbar{height:auto;min-height:88px;row-gap:12px;padding-block:max(16px,env(safe-area-inset-top,0px)) 16px;box-sizing:border-box}@media(max-width:700px){.topbar{min-height:69px;padding-block:max(12px,env(safe-area-inset-top,0px)) 12px;row-gap:9px;column-gap:14px}}
/* Book pockets are card thumbnails; quotations and meaning belong in the full-card view. */
.book-pocket .collectible{aspect-ratio:.60;padding:7px;min-height:0}.book-pocket .card-topline{font-size:5px;letter-spacing:.5px;min-height:10px;flex:none;padding-top:2px}.book-pocket .card-topline b{font-size:8px}.book-pocket .card-name{font-size:clamp(10px,2.5vw,13px);line-height:1.12;padding:3px 2px 5px;margin:0;min-height:calc(2.24em + 8px);max-height:calc(2.24em + 8px);flex:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-pocket .card-subtitle,.book-pocket .card-quote,.book-pocket .card-inscription{display:none}.book-pocket .collectible-art{min-height:58px;flex:1}.book-pocket .certificate-rule{flex:none;height:1px;margin:3px 1px}.book-pocket .certificate-bottom{min-height:27px;flex:none;padding:2px;gap:3px}.book-pocket .edition-name{font-size:4px;letter-spacing:.6px}.book-pocket .card-location{font-size:4px;letter-spacing:.3px}.book-pocket .star-seal{width:21px;height:21px}.book-pocket .star-seal>span{width:16px;height:16px}
@media(max-width:380px){.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 14px}.topbar>.wordmark{grid-column:1;grid-row:1;margin:0}.topbar>#sound{grid-column:2;grid-row:1;justify-self:end}.topbar>nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;width:100%;margin:0!important;gap:10px}}

/* Four destinations share one row at every breakpoint; links and buttons share metrics. */
.topbar>nav{align-items:center}.topbar>nav>.nav-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;line-height:1.2;margin:0}
@media(max-width:700px){.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 14px}.topbar>.wordmark{grid-column:1;grid-row:1;margin:0}.topbar>#sound{grid-column:2;grid-row:1;justify-self:end}.topbar>nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0!important;gap:4px!important}}
.atlas-road-stop .atlas-stop-title{font:600 10px/1.2 system-ui;fill:#344d3c;paint-order:stroke;stroke:#f4efd8;stroke-width:4px;stroke-linejoin:round}.atlas-stop-link{cursor:pointer}.atlas-stop-link:focus-visible circle{stroke:#2d5f48;stroke-width:4px}.map-city .stop-earned{color:#6c592a;white-space:nowrap}.journey-actions{display:flex;align-items:center;gap:18px}.journey-actions .sound-button{font-size:11px}.journey-audio-status{font:10px/1.5 system-ui;color:#78816c;margin:0 0 15px}.journey-header{flex-wrap:wrap;row-gap:12px}
@media(max-width:380px){.journey-actions{gap:12px}.journey-return{font-size:9px}.journey-actions .sound-button{padding:8px;font-size:10px}}

.atlas-road-stop .atlas-stop-hit{fill:transparent;stroke:none;pointer-events:all}.map-stop-label{pointer-events:auto;background:none;border:0;padding:0;text-align:left;line-height:1.35;border-radius:3px}.map-stop-label:disabled{opacity:1;color:inherit;cursor:default}.map-stop-label:focus-visible{outline:2px solid #37644b;outline-offset:4px}

.atlas-road-stop.stop-found .atlas-stop-title{fill:#344d3c}
/* Keep two-line stop labels inside the local map even at 320px and split tablet layouts. */


.map-node-stars{position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);font:600 7px/1.3 system-ui;letter-spacing:.2px;white-space:nowrap;color:#6a592d;background:#fff6dc;border-radius:6px;padding:2px 3px;box-shadow:0 1px 2px #4b654222;pointer-events:none}
.stop-picker{display:grid;gap:5px;margin:14px 0 22px}.stop-pick{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;border:1px solid #d4d9c2;border-radius:11px;background:#faf9ec;padding:9px 11px;min-height:55px;color:#415e48}.stop-pick[aria-current=location]{border-color:#608568;background:#eef1dc}.stop-pick-number{font:14px Georgia,serif;color:#6e8463}.stop-pick b{font:600 11px/1.4 system-ui;display:block}.stop-pick small{display:block;font:10px/1.5 system-ui;color:#79876e;margin-top:2px}.stop-pick-stars{font:12px/1.2 system-ui;letter-spacing:1px;color:#89713e;white-space:nowrap}.stop-pick:disabled{opacity:.5}

.atlas-juju.avatar-below{transform:translate(-50%,0);padding-top:20px;padding-bottom:0}.atlas-juju.avatar-below:after{top:7px;bottom:auto;border-top:0;border-bottom:8px solid #426b50}
/* Onboarding demonstrates the real curved route; no detached row of numbered dots. */
.intro-route.intro-vignette{border-radius:20px;background:#e2e6cd;height:280px;overflow:hidden}.intro-world{height:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scroll-snap-type:x mandatory;scrollbar-width:thin}.intro-world>div{display:flex;width:max-content;height:100%}.intro-world-region{position:relative;width:210px;height:280px;flex:none;scroll-snap-align:start;overflow:hidden}.intro-world-region>b{position:absolute;top:16px;left:12px;right:12px;text-align:center;color:#3f634b;font:18px Georgia,serif}.intro-world-mist{filter:saturate(.3);opacity:.7}
.intro-stops.intro-vignette{height:auto;border-radius:22px;overflow:visible;background:none;margin-bottom:25px}.intro-map-demo{position:relative;aspect-ratio:540/480;width:min(100%,370px);margin:auto;border-radius:24px;overflow:hidden;background:#dbe6c8}.intro-map-demo .terrain{position:absolute;inset:0;width:100%;height:100%}.tutorial-stop{position:absolute;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #94a981;background:#faf0cc;color:#4e7152;width:31px;height:31px;min-height:0;padding:0;font:700 13px system-ui;z-index:2}.tutorial-stop:disabled{opacity:.65}.tutorial-next{animation:next-stop-pulse 1.8s ease-in-out infinite;background:#356a4f;color:#fff9e5}.tutorial-place{position:absolute;font:600 9px/1.4 system-ui;color:#44664c;z-index:2;text-shadow:0 1px #fcf7e5;pointer-events:none}.tutorial-orchard{left:4%;top:91%}.tutorial-market{left:47%;top:58%}.tutorial-garden{left:3%;top:21%}.intro-map-demo .traveler{z-index:3}.intro-map-demo .traveler,.intro-map-demo .traveler .portrait{width:49px;height:49px}.tutorial-feedback{font:11px/1.5 system-ui;color:#58735a;margin:12px auto 0;min-height:34px;max-width:370px}
@media(max-width:700px){.intro-route.intro-vignette{height:250px}.intro-world-region{width:188px;height:250px}.intro-map-demo{max-width:300px}.tutorial-stop{width:29px;height:29px}.tutorial-place{font-size:8px}}

.journey-guide-link{display:inline-block;font:11px/1.4 system-ui;color:#5b755b;margin:0 0 17px;text-underline-offset:3px}

.tutorial-stop{width:44px!important;height:44px!important;display:grid;place-items:center;isolation:isolate;background:transparent;border:0}.tutorial-stop:before{content:'';position:absolute;inset:7px;z-index:-1;border-radius:50%;background:#faf0cc;border:2px solid #94a981}.tutorial-next:before{background:#356a4f;border-color:#94a981}.tutorial-market{background:none;border:0;padding:0;text-align:left;min-height:44px;pointer-events:auto;font-weight:600}
.tutorial-market{left:37%;top:64%;transform:translateX(-50%);white-space:nowrap}
/* Shared menu metrics: anchors, buttons and Sound use one visual row. */
.topbar{display:flex;align-items:center;column-gap:14px}.topbar>nav{display:flex;align-items:center;gap:4px;margin-left:auto}.topbar>nav>.nav-link,.topbar>.sound-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:44px;min-height:44px;margin:0;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#3f624b;font:600 12px/1.2 ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;text-decoration:none;vertical-align:middle;white-space:nowrap}.topbar>nav>.nav-link:visited{color:#3f624b}.topbar>nav>.nav-link.active,.topbar>nav>.nav-link[aria-current="page"]{background:#e4ead8;color:#2f6047;text-decoration:none;box-shadow:none}.journey-header .sound-button,.journey-actions>.journey-return{display:inline-flex;align-items:center;justify-content:center;min-height:44px;height:44px;font:600 12px/1.2 ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;vertical-align:middle}.journey-actions>.journey-return{text-decoration:none}
@media(max-width:700px){.topbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto 44px;gap:8px 4px}.topbar>.wordmark{grid-row:1;grid-column:1/-1;justify-self:start;margin:0}.topbar>nav{grid-row:2;grid-column:1/5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0!important;gap:4px!important}.topbar>#sound{grid-row:2;grid-column:5;justify-self:stretch}.topbar>nav>.nav-link,.topbar>.sound-button{width:100%;padding:0 2px;font-size:clamp(10px,2.8vw,12px);line-height:1.2}}
@media(min-width:701px) and (max-width:1000px){.book-spread{grid-template-columns:minmax(0,1fr)}.book-left{border-right:0;border-bottom:2px solid #c8ba92;padding:24px}.book-right{padding:26px 22px}.book-pockets{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Practice edition selectors need their own space beside long native choices. */
.practice-library .library-card{min-width:0}
.practice-library .library-card>label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;grid-column:1/-1;max-width:100%;margin:0 0 12px}
.practice-library .library-card>label select{max-width:100%;min-width:0}
.practice-library .library-card>button{grid-column:1/-1}
.practice-library .library-card button{min-height:44px}
@media(max-width:700px){.practice-library .library-card{display:flex;flex-direction:column;align-items:flex-start}.practice-library .library-card>label{width:100%}.practice-library .library-card>button{margin-top:0}.practice-library .library-card h2{font-size:20px}}
@media (max-width:600px) {
  .practice-library .library-art {width:100%;height:84px;margin-bottom:12px}
  .practice-library .library-art svg {width:44px;height:44px}
}

/* A real folded envelope: open flap, cream insert, folded pocket and wax seal.
   The art has no green oval, and the canonical portraits remain unchanged. */
.intro-vignette.intro-postcard{position:relative;inset:auto;width:100%;height:345px;transform:none;border:0;border-radius:0;box-shadow:none;overflow:visible;background:none}
.intro-postcard .intro-letter.envelope-letter{position:absolute;top:8px;left:50%;width:min(280px,calc(100% - 32px));height:auto;aspect-ratio:280/220;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:translateX(-50%) rotate(-4deg);animation:letter-arrive .9s ease-out;filter:drop-shadow(0 9px 8px #7c684624);isolation:isolate}
.intro-letter.envelope-letter>.envelope-back,.intro-letter.envelope-letter>.envelope-pocket{position:absolute;inset:0;width:100%;height:100%;left:0;bottom:auto;overflow:visible}
.envelope-letter>.envelope-back{z-index:0}.envelope-letter>.envelope-pocket{z-index:2;pointer-events:none}
.intro-postcard .envelope-letter>.envelope-address{position:absolute;left:13%;top:23%;font:16px/1.3 Georgia,serif;color:#344b3d;z-index:1;white-space:nowrap}
.intro-postcard .envelope-letter>b{position:absolute;right:14%;top:32%;bottom:auto;font:italic 17px/1.25 Georgia,serif;text-align:right;color:#3d624e;z-index:1}
.intro-postcard .intro-letter.envelope-letter>.intro-grandma{position:absolute;left:8%;top:auto;bottom:7%;width:43px;height:43px;border:2px solid #bda275;border-radius:50%;overflow:hidden;background:#f5e6c0;box-shadow:0 2px 4px #7c674b19;z-index:3}
.intro-grandma img{position:absolute;width:307.2%;height:204.8%;max-width:none;left:-156%;top:-14%;object-fit:fill}
.intro-vignette.intro-postcard>.portrait{width:80px;height:80px;left:calc(50% - 40px);bottom:6px;animation:none;border-radius:50%;overflow:hidden;border:3px solid #fff9;box-shadow:0 3px 9px #3b573522}
@media(max-width:350px){.intro-vignette.intro-postcard{height:320px}.intro-postcard .envelope-letter>.envelope-address{font-size:15px}.intro-postcard .envelope-letter>b{font-size:16px}.intro-postcard .intro-letter.envelope-letter>.intro-grandma{width:40px;height:40px}}

/* Secret mastery: two explicit requirements, with readable village/stop details. */
.hidden-progress{margin:14px 0 5px;color:#506044;font-size:11px;line-height:1.6;min-width:0}
.hidden-progress>b{display:block;margin-bottom:10px;font-size:12px}
.hidden-progress label{display:block;margin:10px 0;font-size:10px}
.hidden-progress label>span{float:right;margin-left:5px;font-weight:700}
.hidden-progress progress{display:block;width:100%;height:8px;margin-top:5px;accent-color:#547657;border:0;border-radius:8px;overflow:hidden;background:#ded5b4}
.hidden-progress progress::-webkit-progress-bar{background:#ded5b4;border-radius:8px}
.hidden-progress progress::-webkit-progress-value{background:#547657;border-radius:8px}
.secret-requirements{display:block;min-height:44px;width:100%;font-size:11px;line-height:1.4;padding:8px 2px}
.mastery-checklist h3{font:23px/1.2 Georgia,serif;color:#47674d;margin:18px 0 10px}
.mastery-checklist>p{font-size:12px;line-height:1.7}
.mastery-checklist ul{list-style:none;padding:0;margin:14px 0}
.mastery-checklist li{display:flex;flex-direction:column;gap:4px;padding:13px 0;border-bottom:1px solid #c6b98e;font-size:12px;line-height:1.6;color:#506044;overflow-wrap:anywhere}
.mastery-checklist li>small{font-size:11px;color:#666d53}
#card-dialog .hidden-progress,#card-dialog .mastery-checklist :is(h3,li){color:#f3e7c1}
#card-dialog .mastery-checklist :is(p,small){color:#ddd3b2}
#card-dialog .hidden-progress :is(b,label){font-size:12px}
#card-dialog .mastery-checklist li{border-bottom-color:#819584}
#card-dialog .hidden-progress progress{accent-color:#e5c67e;background:#324e46;border:1px solid #819584}
#card-dialog .hidden-progress progress::-webkit-progress-bar{background:#324e46}
#card-dialog .hidden-progress progress::-webkit-progress-value{background:#e5c67e}
.chapter-mastery{display:flex;flex-direction:column;gap:6px;font-size:12px;line-height:1.6;color:#506044;margin:18px 0}
.chapter-mastery a{color:#365d46;min-height:44px;display:flex;align-items:center}
.secret-reveal-modal .card-ceremony h1{font-size:clamp(23px,5vw,29px)}
@media(max-width:370px){.hidden-pockets{gap:22px 10px}.hidden-card{padding:9px}.hidden-progress{font-size:10px}.hidden-progress>b{font-size:11px}.hidden-progress label{font-size:9px}}

.book-mastery-summary{display:flex;flex-direction:column;gap:8px;border-top:1px solid #c4c7ac;border-bottom:1px solid #c4c7ac;padding:16px 0;margin:20px 0;color:#41684a;font-size:13px;line-height:1.6}.book-mastery-summary>span{font-size:12px}.book-mastery-summary button{align-self:flex-start;min-height:44px;padding:8px 0;text-align:left;font-size:12px}

/* World overview: terrain first, one selected destination, detail on demand. */
.world-atlas{margin:28px 0 32px;color:#314638}
.world-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}
.world-heading .eyebrow{font-size:9px;letter-spacing:2px;color:#7a846d;margin:0 0 9px}
.world-heading h2{font:400 clamp(28px,3.7vw,42px)/1.1 Georgia,serif;letter-spacing:-1.2px;margin:0}
.world-total{flex:none;width:120px;text-align:right}.world-total>b{display:block;font:26px/1.2 Georgia,serif;color:#6c5838}.world-total>b span{font-size:17px;color:#878a75}.world-total small{display:block;font-size:10px;margin-top:4px;color:#74816b}.world-total progress{display:block;width:100%;height:3px;border:0;border-radius:0;background:#dedfce;margin-top:10px;accent-color:#a58a52}.world-total progress::-webkit-progress-bar{background:#dedfce}.world-total progress::-webkit-progress-value{background:#a58a52}.world-total progress::-moz-progress-bar{background:#a58a52}
.world-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;border:1px solid #d2d5c2;background:#f8f6eb;border-radius:18px;overflow:hidden}
.world-map-column{min-width:0;background:#dfe5cf}.world-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 18px;border-bottom:1px solid #bdc8ac80;background:#e7ead9}.world-toolbar>span{font-size:11px;color:#62765c}.world-toolbar button{min-height:44px;padding:8px 12px;border:1px solid #a9b69b;border-radius:6px;background:#f3f3e7;color:#405b40;font-size:11px}
.world-map{position:relative;isolation:isolate;height:550px;overflow:hidden}.world-terrain{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.world-town{position:absolute;z-index:1;transform:translate(-50%,-22px);display:flex;flex-direction:column;align-items:center;gap:5px;width:132px;min-height:68px;padding:0 2px 4px;border:0;border-radius:7px;background:none;color:#3b5340;font:inherit;box-shadow:none;touch-action:manipulation}
.world-pin{display:grid;place-items:center;width:44px;height:44px;border:1px solid #839779;border-radius:50%;background:#f2f1e1;color:#58664b;font:16px/1 Georgia,serif;box-shadow:0 1px 3px #36442c15;transition:box-shadow .16s,border-color .16s,background .16s}
.world-town-name{font-size:12px;font-weight:650;line-height:1.25;padding:2px 5px;background:#e7ebd9dd;border-radius:3px;max-width:100%;overflow-wrap:break-word;text-align:center}.world-town>small{font-size:9px;color:#5f6548;line-height:1.2;background:#f5efd8;padding:2px 6px;border-radius:3px}
.world-town.is-locked{color:#697561}.world-town.is-locked .world-pin{color:#7c826e;background:#eeefe3;border:1px dashed #9ca68b;box-shadow:none}.world-town.is-locked .world-town-name{font-weight:500;background:#edf0e2ce}
.world-town.is-complete .world-pin{background:#627c59;border-color:#526e4c;color:#fff9e4}.world-town[aria-pressed=true]{z-index:2}.world-town[aria-pressed=true] .world-pin{border-color:#92713a;box-shadow:0 0 0 3px #f8edc6,0 0 0 4px #a18145}.world-town[aria-pressed=true] .world-town-name{background:#f7efd8;color:#4f492e}
.world-pin .portrait.juju{display:block;width:40px;height:40px;margin:0;border:0;border-radius:50%;overflow:hidden;box-shadow:none;flex:none}.world-town:focus-visible{outline:2px solid #355d47;outline-offset:5px}.world-town:hover .world-pin{border-color:#73653f}.world-legend{display:flex;align-items:center;justify-content:center;gap:20px;min-height:44px;padding:10px 12px;border-top:1px solid #aebca155;color:#66765b;font-size:10px;background:#e4e8d5}.world-legend>span{display:inline-flex;align-items:center;gap:6px}.world-legend i{width:8px;height:8px;border:1px solid #8b986f;border-radius:50%;display:inline-block}.world-legend .legend-here{background:#d9bd7c;border-color:#9b7c3d}.world-legend .legend-complete{background:#627c59}.world-legend .legend-later{border-style:dashed;background:#eeefe3}
.world-detail{min-width:0;padding:28px 24px;border-left:1px solid #cfd4bd;display:flex;flex-direction:column;align-items:stretch;background:#faf8ef}.world-detail-intro .eyebrow{font-size:11px;letter-spacing:1.8px;margin:0 0 12px;color:#5f6d57}.world-detail h3{font:30px/1.08 Georgia,serif;letter-spacing:-.7px;margin:0;color:#324d39;overflow-wrap:break-word}.world-theme{font:italic 15px/1.6 Georgia,serif;color:#5f6d57;margin:12px 0 18px}.world-state{font-size:12px;color:#5f7855;display:block;border-top:1px solid #e0e1d2;padding-top:14px}.world-state.is-locked{color:#5f6d57}
.world-host{display:flex;gap:12px;align-items:center;margin:24px 0}.world-host>.portrait{width:44px;height:44px;margin:0;flex:none;border-radius:50%;overflow:hidden}.world-host p{margin:0;font-size:12px;line-height:1.5}.world-host b{display:block;font-weight:650}.world-host p>span{display:block;font-size:11px;color:#5f6d57;line-height:1.5;margin-top:3px}.world-village-progress{display:grid;grid-template-columns:1fr auto;gap:9px;font-size:11px;margin:0 0 20px}.world-village-progress>b{font-weight:550;color:#64745c}.world-village-progress>div{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.world-village-progress i{height:4px;background:#e3e3d3;border-radius:1px}.world-village-progress i.is-kept{background:#a18a52}
.world-visit{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 14px;border:1px solid #36533e;background:#36533e;border-radius:7px;color:#fff8e7;text-decoration:none;font-size:12px;line-height:1.5;text-align:center}.world-visit:hover{background:#294732}.world-unlock{font-size:12px;line-height:1.7;color:#7c816b;margin:0;padding:12px 0;border-block:1px solid #e0e1d2}.world-reunion{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;font-size:12px;color:#756033}
.world-stops{margin-top:24px;border-top:1px solid #dfe0d1}.world-stops>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;min-height:48px;list-style:none;font-size:11px;color:#536b4e}.world-stops>summary::-webkit-details-marker{display:none}.world-stops>summary>span{font-size:10px;color:#80896e;text-decoration:underline;text-underline-offset:3px}.world-stops[open]>summary>span{font-size:0}.world-stops[open]>summary>span:after{content:'Hide stops';font-size:10px}.world-stops ol{list-style:none;padding:0;margin:0}.world-stops li+li{border-top:1px solid #e6e6d9}.world-stops li>a,.world-stop-locked{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:48px;padding:8px 0;text-decoration:none;color:#4d6246;font-size:11px}.world-stop-locked{color:#5f6d57}.world-stop-number{font:12px Georgia,serif}.world-stop-name{line-height:1.4;overflow-wrap:anywhere}.world-stop-stars{font-size:11px;white-space:nowrap;color:#8c7748}.world-stop-locked .world-stop-stars{color:#5f6d57}
.world-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;margin-top:14px;color:#7d856e;font-size:11px}.world-footer>span{margin-right:auto;font:italic 13px/1.7 Georgia,serif}.world-footer a{display:inline-flex;align-items:center;min-height:44px;color:#536b4e;text-underline-offset:4px}.world-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:800px){.world-layout{grid-template-columns:minmax(0,1fr)}.world-detail{border-left:0;border-top:1px solid #cfd4bd;padding:24px}.world-detail h3{font-size:29px}.world-host{margin:19px 0}.world-map{height:500px}.world-stops{margin-top:18px}.world-theme{margin-bottom:14px}}
@media(max-width:480px){.world-atlas{margin-top:20px}.world-heading{align-items:flex-start;gap:12px;margin-bottom:18px}.world-heading h2{font-size:29px;max-width:220px;letter-spacing:-.8px}.world-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.world-total{width:74px;padding-top:2px}.world-total>b{font-size:24px}.world-total>b span{font-size:13px}.world-total small{font-size:9px}.world-toolbar{padding:7px 10px}.world-toolbar>span{font-size:10px}.world-map{height:485px}.world-town{width:124px}.world-town-name{font-size:11px}.world-legend{gap:16px;font-size:9px}.world-detail{padding:23px 20px}.world-footer{gap:0 22px}.world-footer>span{flex-basis:100%}.world-layout{border-radius:12px}}
@media(max-width:350px){.world-heading h2{font-size:26px}.world-total{width:64px}.world-town{width:112px}.world-town-name{font-size:10px}.world-legend{gap:12px}.world-detail{padding:22px 17px}}
@media(prefers-reduced-motion:reduce){.world-pin{transition:none}}

/* Memory book. Bring the cards and their edition labels into the first spread. */
.memory-book {
  margin:22px auto 30px;
  max-width:1140px;
}
.memory-book .book-intro {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:14px 24px;
  max-width:none;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.memory-book .book-intro h1 {
  margin:0;
  font-size:clamp(34px, 5vw, 50px);
  line-height:1;
}
.memory-book .book-intro p {
  color:#52644e;
  margin:7px 0 0;
  font-size:14px;
}
.book-totals {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.book-total {
  position:relative;
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  gap:7px;
  padding:10px 12px;
  min-height:44px;
  overflow:hidden;
  border:1px solid #bec3a4;
  border-radius:10px;
  background:#f5f1df;
  color:#385540;
  font:inherit;
}
.book-total strong {
  font:700 15px/1 Georgia,serif;
}
.book-total span {
  font-size:11px;
}
.book-total progress {
  position:absolute;
  inset:auto 12px 4px;
  width:calc(100% - 24px);
  height:2px;
  border:0;
  border-radius:2px;
  overflow:hidden;
  appearance:none;
  background:transparent;
  accent-color:#839273;
}
.book-total progress::-webkit-progress-bar {
  background:transparent;
}
.book-total progress::-webkit-progress-value {
  border-radius:2px;
  background:#839273;
}
.book-total progress::-moz-progress-bar {
  border-radius:2px;
  background:#839273;
}
.book-total-button {
  cursor:pointer;
}
.book-total-button:hover {
  background:#ece9d3;
}
.book-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px 14px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.memory-book .book-jump-label {
  margin:0;
  color:#52644e;
  font-size:13px;
}
.memory-book .book-jump-label select {
  min-width:min(190px,70vw);
  font-size:13px;
}
.memory-book .book-turns {
  margin:0;
  gap:8px;
}
.memory-book .book-turns span {
  min-width:42px;
  text-align:center;
  color:#53624a;
  font-variant-numeric:tabular-nums;
}
.memory-book .book-turns button {
  padding:8px 12px;
}
.memory-book .book-turns button:disabled {
  background:#eeeee3;
  border-color:#d8d9ca;
  color:#646d5b;
}
.memory-book .book-spread {
  border:1px solid #d4d0bc;
  background:#fcf8e9;
  box-shadow:0 8px 24px #433e2910;
  overflow:hidden;
}
.memory-book .book-paper {
  border-radius:0;
}
.memory-book .book-story-set {
  display:block;
}
.book-set {
  padding:clamp(14px, 3vw, 30px);
  background:linear-gradient(100deg,#eee3c4,#fffae9 6%,#faf4df 95%,#eee0b9);
}
.book-set-header {
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  justify-content:space-between;
  gap:8px 12px;
  margin-bottom:14px;
}
.book-set-header h2 {
  font:clamp(27px, 4vw, 39px)/1.12 Georgia,serif;
  color:#365342;
  margin:3px 0 0;
}
.book-set-header .eyebrow {
  color:#5e7258;
  margin:0;
}
.book-set-progress {
  display:flex;
  flex-wrap:wrap;
  gap:4px 12px;
  padding-bottom:3px;
  font-size:12px;
  color:#53624a;
}
.book-set .book-pockets {
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(8px, 1.4vw, 16px);
}
.book-set .book-pocket {
  background:#d9ccaa55;
  border:1px solid #c7b88a;
  padding:4px;
  border-radius:11px;
}
.book-set :is(.book-unfound,.collectible) {
  aspect-ratio:2/3;
}
.book-set .book-pocket .collectible {
  background-clip:padding-box;
  box-shadow:0 2px 5px #55432944;
}
.book-set .book-pocket .collectible:focus-visible {
  outline:3px solid #27634c;
  outline-offset:3px;
}
.book-set .card-topline {
  justify-content:flex-end;
}
.book-set .card-topline>span,
.book-set .certificate-rule {
  display:none;
}
.book-set .book-pocket .card-name {
  font-size:clamp(12px, 1.3vw, 16px);
  line-height:1.15;
  min-height:calc(2.3em + 6px);
  max-height:calc(2.3em + 6px);
  padding:2px 2px 4px;
}
.book-set .certificate-bottom {
  padding:5px 1px 1px;
}
.book-set .book-pocket .collectible-art {
  min-height:0;
}
.book-set .card-edition {
  font-size:clamp(9px, 1vw, 11px);
}
.book-set .book-unfound {
  height:auto;
  padding:7px;
  justify-content:center;
  gap:4px;
  background:linear-gradient(145deg,#eee3c4,#e3d5ac);
  border:1px dashed #9c8d68;
  color:#594f36;
}
.book-set .book-unfound b {
  width:65%;
  max-width:96px;
  border:0;
}
.book-unfound .sealed-memory-art {
  width:100%;
  height:auto;
}
.book-set .book-unfound span {
  font:700 12px/1 system-ui,sans-serif;
  font-variant-numeric:tabular-nums;
}
.book-set .book-unfound small {
  font-size:11px;
}
.book-set-footer {
  margin:15px 0 0;
  color:#53624a;
  font:italic 15px/1.4 Georgia,serif;
}
.book-footer, .book-detail-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
  margin-top:14px;
}
.book-footer :is(button,a), .book-detail-actions :is(button,a), #card-dialog #close-card {
  min-height:44px;
}
.book-footer :is(button,a) {
  display:inline-flex;
  align-items:center;
}
.book-detail-actions .secondary {
  display:inline-flex;
  align-items:center;
  background:#f4e4ad;
  border-color:#f4e4ad;
  color:#24483c;
  text-align:center;
}
#card-dialog:has(.book-detail-actions) #close-card {
  margin-top:12px;
}
.book-hidden-checklist summary {
  display:list-item;
  align-content:center;
  min-height:44px;
  color:#345440;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
}
.memory-book .hidden-card {
  padding:clamp(7px, 1.5vw, 13px);
  gap:5px;
}
.memory-book .hidden-progress progress {
  height:3px;
  appearance:none;
  accent-color:#839273;
  background:#e1dfd1;
}
.memory-book .hidden-progress progress::-webkit-progress-bar {
  background:#e1dfd1;
}
.memory-book .hidden-progress progress::-webkit-progress-value {
  background:#839273;
}
.memory-book .hidden-progress progress::-moz-progress-bar {
  background:#839273;
}
.memory-book .hidden-card > b {
  font-size:clamp(14px, 2vw, 20px);
}
.memory-book .hidden-card :is(img,.hidden-seal) {
  min-height:0;
  flex:1;
  object-fit:cover;
  width:100%;
}
.hidden-seal .sealed-memory-art {
  height:100%;
  width:100%;
}
.memory-book .hidden-stars {
  flex:none;
  height:16px;
  max-width:88px;
}
.memory-book .secret-earned {
  background:linear-gradient(135deg,#c4add4,#f1e5fb 35%,#c4afce 73%,#f3e2d6);
  color:#3e3251;
  border-color:#a285b2;
  box-shadow:0 1px 5px #5d487066;
}
.memory-book .secret-earned[data-hidden="3"] {
  background:linear-gradient(135deg,#c0a1ce,#f5e9fa 34%,#dfc599 70%,#f7e2b0);
  border-color:#aa8765;
}
@media (max-width:820px) {
  .book-set .book-pockets {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:550px) {
  .book-set .book-pockets {grid-template-columns:repeat(2,minmax(0,1fr))}
  .memory-book {margin-top:14px}
  .memory-book .book-intro {margin-bottom:12px}
  .book-set-progress {padding-bottom:0}
}
@media (max-width:360px) {
  .memory-book .book-turns {width:100%;justify-content:space-between}
  .book-total {padding-inline:8px}
  .book-set .book-pocket .card-name {
    min-height:calc(3.45em + 6px);
    max-height:calc(3.45em + 6px);
    -webkit-line-clamp:3;
  }
}
@media (prefers-reduced-motion:reduce) {
  .memory-book .page-turn {animation:none}
  .memory-book .collectible:hover :is(.collectible-art img,.foil-shine) {transform:none}
}
