/* The same carved village signs everywhere, with room to reflow on a narrow screen. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.village-header .topbar:has(.lane-final-nav){min-inline-size:0;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.25rem .8rem}
.village-header .topbar:has(.lane-final-nav) .nameplate{min-inline-size:0;align-items:center}
.village-header .topbar .lane-final-nav{display:flex;flex-wrap:wrap;justify-content:flex-end;flex:0 1 auto;min-inline-size:0;max-inline-size:100%;gap:.3rem}
.village-header .lane-final-nav .village-sign{min-inline-size:44px;min-block-size:44px;text-align:center;padding-inline:.62rem;white-space:normal;overflow-wrap:anywhere}
.village-header .lane-final-nav [aria-current]{outline:1px solid #ffe2a5;outline-offset:-4px;background:#684a2b;color:#fff4d1}
.winter-footer .lane-next-stops{flex-wrap:wrap;max-inline-size:100%;justify-content:center}
.lane-next-stops .village-sign{white-space:normal;text-align:center}
@media(max-width:680px){
 .village-header .topbar:has(.lane-final-nav){justify-content:center}
 .village-header .topbar .lane-final-nav{flex-basis:100%;justify-content:center}
 .village-header .topbar .lane-final-nav .village-sign{padding-inline:.38rem;font-size:.76rem}
 .village-page .welcome-copy :is(h1,p),.character-intro .welcome-copy :is(h1,p){min-inline-size:0;overflow-wrap:break-word}
 .village-page .welcome-copy .heading-first{max-inline-size:100%}
 .village-page .welcome-actions{flex-wrap:wrap;max-inline-size:100%}
}
.lane-resume[hidden],.lane-next-unread[hidden],.lane-hunt-checklist[hidden],.lane-audio-replay[hidden]{display:none!important}
.lane-resume{margin-block-start:.58rem;justify-self:start}
@media(max-width:680px){.lane-resume{justify-self:center}}
/* One continuous snowfall and lantern-lit lane, no per-section art resets. */
.village-page .lane-landscape{position:relative;isolation:isolate}
.village-page .lane-landscape::after{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse at 23% 11%,#e6a85e24 0,transparent 19%),
 radial-gradient(ellipse at 70% 47%,#efac7127 0,transparent 23%),
 radial-gradient(ellipse at 35% 86%,#ecb87428 0,transparent 24%),
 linear-gradient(175deg,#08213800 0 20%,#0a26393e 47%,#0d253659 83%,#10202d95);
}
.lane-profile-reads{padding-block:clamp(1.3rem,4vw,3rem) 2rem;color:#fff0d0}
.lane-profile-reads h2{margin-block-end:1rem}
.lane-profile-reads .lane-pick-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-inline-size:56rem}
.lane-profile-reads .lane-pick{min-inline-size:0}
@media(max-width:590px){.lane-profile-reads .lane-pick-grid{grid-template-columns:1fr}}
.lane-map .lane-map-stops{margin-block:1rem 1.7rem}
.lane-map .lane-map-stops :is(a,article){min-inline-size:0;overflow-wrap:break-word}
.lane-hunt-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));list-style:none;padding:0;gap:.5rem;margin:.8rem 0}
.lane-hunt-checklist li{background:#102a3c;border:1px solid #b89961;border-radius:.45rem;padding:.35rem .55rem;display:grid;color:#fff1ce}
.lane-hunt-checklist li>span:first-child{font-size:.75rem;color:#f4c986}
.lane-hunt-checklist a{color:inherit}
.lane-book-length{font-weight:700;letter-spacing:.045em}
.shelf-grid .shelf-book>div,.shelf-grid .shelf-book h2{min-inline-size:0;overflow-wrap:break-word}
.shelf-grid .shelf-book h2,.lane-pick h3{text-wrap:pretty}
.shelf-grid .shelf-book h2{line-height:1.13}
.lane-progress .lane-next-unread{display:flex;inline-size:fit-content;margin:.55rem 0;text-align:left;white-space:normal;line-height:1.29}
.advent-street .advent-house>a{min-inline-size:0;padding-inline:.36rem}
.advent-street .advent-house>a :is(.lane-date,strong){max-inline-size:100%;overflow-wrap:normal;white-space:normal;text-wrap:pretty;line-height:1.2}
.lane-christmas-door .advent-window{position:relative;border-color:#edc978}
.lane-door-art{position:absolute;z-index:1;inset:0;border:5px double #f5c978;border-radius:inherit;box-shadow:inset 0 0 18px #4f251ab0;pointer-events:none}
.lane-door-art::after{content:"✶";position:absolute;top:.15rem;left:50%;transform:translateX(-50%);font-size:1.4rem;color:#fff0b9;text-shadow:0 0 10px #ffc155,0 2px 4px #4d281e}
.lane-puzzle-board{grid-template-columns:repeat(var(--lane-columns,3),minmax(0,1fr));grid-template-rows:repeat(var(--lane-rows,2),minmax(0,1fr))}
.lane-puzzle-board .lane-piece{background-size:calc(var(--lane-columns,3)*100%) calc(var(--lane-rows,2)*100%)}
.lane-download{display:inline-flex;align-items:center;gap:.55rem;text-align:left;min-block-size:44px;padding:.35rem .6rem;border:1px solid #e4b86e;border-radius:.48rem;background:#1c4041;color:#ffedbd;text-decoration:none}
.lane-download img{display:block;width:auto;height:3.8rem;object-fit:contain;border:1px solid #dda55d;border-radius:.11rem}
.lane-download :is(strong,small){display:block;line-height:1.25}
.lane-download small{font-size:.74rem;margin-block-start:.18rem}
.lane-action-row{flex-wrap:wrap}
body :is(button,a,summary,input,select):focus-visible{outline:2px solid #ffe2a3;outline-offset:3px;box-shadow:0 0 0 2px #1c3547}
body :is(.village-sign,.pill,.lane-pretty,.lane-piece,.lane-end-link):active{filter:brightness(1.17)}
body :is(.lane-exp-button,.lane-piece,.lane-check)[aria-pressed=true]{outline:2px solid #ffe3a6;outline-offset:-3px}

/* True content-first reading. The words determine their height; the artwork uses
   the space left over. Short screens and enlarged type can grow the whole book,
   never a cut-off paper panel or a nested scrollbar. */
body.reading-page{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(min-content,1fr);min-block-size:100svh}
.reading-page .reader.enhanced{
 height:auto;min-height:0;min-inline-size:0;align-self:stretch;
 grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(min-content,1fr) auto;
 margin-block:.25rem .68rem;gap:.42rem;
}
.reading-page .reader.enhanced .book{display:grid;grid-template-columns:minmax(0,1fr);height:auto;min-height:0}
.reading-page .reader.enhanced .book>.leaf{height:auto;min-height:0;align-self:stretch}
.reading-page .reader.enhanced .leaf .words{
 min-inline-size:0;min-block-size:auto;overflow:visible;overflow-wrap:break-word;
 padding:clamp(.8rem,2.6vw,2.45rem);gap:clamp(.3rem,1vmin,.6rem);
 justify-content:center;
}
.reading-page .reader.enhanced .leaf .words>*{flex:0 0 auto;max-inline-size:100%;min-inline-size:0}
.reading-page .reader.enhanced .leaf .words :is(h1,h2){line-height:1.06;overflow-wrap:break-word;text-wrap:pretty}
.reading-page .reader.enhanced .leaf .words p:not(.chapter-label){line-height:1.43}
.reading-page .reader.enhanced .leaf .leaf-art{position:relative;aspect-ratio:auto;height:auto;min-height:0;align-self:stretch}
.reading-page .reader.enhanced .leaf .leaf-art img{position:absolute;inset:0;max-height:none;max-width:none;width:100%;height:100%;object-fit:contain;object-position:center;padding:clamp(.22rem,1vmin,.65rem);box-sizing:border-box;box-shadow:none}
.reading-page .reader.enhanced .reader-top{min-inline-size:0;flex-wrap:wrap;gap:.36rem}
.reading-page .reader.enhanced .reader-top>p{margin:0;min-inline-size:0;overflow-wrap:break-word}
.reading-page .reader.enhanced .lane-reader-actions{display:flex;flex-wrap:wrap;max-inline-size:100%;min-inline-size:0;gap:.25rem}
.lane-page-picker{
 border:1px solid #b18c57;border-radius:.48rem;color:#ffe0a4;
 background:#153246;padding:.25rem .47rem;min-inline-size:44px;min-block-size:44px;
 font:750 .86rem/1.1 system-ui,sans-serif;cursor:pointer;white-space:nowrap;
}
.reading-page .turn-controls:has(.lane-finish:not([hidden])) .lane-page-picker #position{display:inline}
.lane-page-dialog{width:min(100% - 2rem,25rem)}
.lane-page-dialog form>label{display:grid;gap:.4rem}
.lane-page-dialog select{min-block-size:44px;max-inline-size:100%;width:100%;margin:.25rem auto;font:inherit;color:#282520;background:#fff4d3;border-radius:.45rem;padding:.35rem}
.lane-page-dialog form>button{margin-inline-end:.38rem}
.lane-audio-replay{font-size:.8rem}
.reading-page .turn-controls{min-inline-size:0}
.reading-page .turn-controls .lane-finish:not([hidden]){flex-wrap:wrap;justify-content:flex-end;gap:.4rem}
.reading-page .lane-finish .lane-end-next{gap:.4rem;white-space:normal;max-inline-size:18rem;min-inline-size:0;text-align:left}
.reading-page .lane-finish .lane-end-next>img{display:block;width:2.8rem;height:2rem;object-fit:contain;border-radius:.16rem;flex:0 0 auto}
.reading-page .lane-finish .lane-end-next>span{display:grid!important;min-inline-size:0;overflow-wrap:break-word;line-height:1.14}
.reading-page .lane-finish .lane-end-next small{font-size:.67rem;color:#fff1b5}
.reading-page .lane-finish .lane-after{white-space:normal;text-align:center}
@media(max-width:680px){
 .reading-page .reader.enhanced .book>.leaf,
 .reading-page .reader.enhanced .leaf.paper-print{
  grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(clamp(65px,16svh,122px),1fr) auto;
 }
 .reading-page .reader.enhanced .leaf .words{padding:.65rem clamp(.83rem,3.1vw,1.25rem)}
 .reading-page .reader.enhanced .leaf .words :is(h1,h2){font-size:clamp(1.24rem,5.8vw,1.95rem)}
 .reading-page .reader.enhanced .leaf .words p:not(.chapter-label){font-size:clamp(1rem,3.75vw,1.18rem);line-height:1.39}
 .reading-page .reader.enhanced.lane-large-words .leaf .words p:not(.chapter-label){font-size:clamp(1.16rem,4.1vw,1.38rem);line-height:1.41}
 .reading-page .reader.enhanced .reader-top{gap:.2rem}
 .reading-page .reader.enhanced .reader-top>p{font-size:.82rem;line-height:1.15}
 .reading-page .reader.enhanced .reader-top .lane-reader-actions button{min-block-size:38px;font-size:.73rem}
 .reading-page .turn-controls:has(.lane-finish:not([hidden])){
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:.5rem;row-gap:.28rem;
 }
 .reading-page .turn-controls:has(.lane-finish:not([hidden])) [data-turn="-1"]{justify-self:start}
 .reading-page .turn-controls:has(.lane-finish:not([hidden])) .lane-page-picker{justify-self:end}
 .reading-page .turn-controls:has(.lane-finish:not([hidden])) .lane-finish{
  grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-start
 }
 .reading-page .turn-controls:has(.lane-finish:not([hidden])) .lane-finish>a{flex:1 1 min(100%,8.1rem);max-inline-size:none}
 .reading-page .lane-finish .lane-end-next>img{width:2.3rem;height:1.58rem}
}
@media(max-height:550px) and (min-width:681px){
 .reading-page .reader.enhanced .leaf .words{padding:.56rem .87rem}
 .reading-page .reader.enhanced .leaf .words :is(h1,h2){font-size:clamp(1.15rem,3.7vh,1.8rem)}
 .reading-page .reader.enhanced .leaf .words p:not(.chapter-label){font-size:clamp(1rem,3.4vh,1.15rem)}
}
@media print{.lane-final-nav,.lane-next-stops,.lane-download,.lane-resume{display:none!important}}
.lane-santa-path{padding-block:clamp(2rem,5vw,4.2rem);color:#fff0d0}
.lane-santa-path .village-rail>p:not(.gold-label){max-width:45rem;margin-block:.52rem 1.4rem;font-size:clamp(1rem,1.9vw,1.3rem);line-height:1.46}
.lane-santa-path .lane-pick-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:66rem}
.lane-santa-path .lane-pick{min-inline-size:0;text-align:left}
.lane-santa-path .lane-pick :is(h3,p){overflow-wrap:break-word}
@media(max-width:690px){.lane-santa-path .lane-pick-grid{grid-template-columns:minmax(0,1fr)}}
.lane-reader-signpost{display:contents}
.lane-reader-signpost>summary{display:none}
@media(max-width:710px){
 .reader-header .topbar:has(.lane-reader-signpost){justify-content:space-between;flex-wrap:nowrap}
 .lane-reader-signpost{position:relative;display:block;flex:0 0 auto;z-index:6}
 .lane-reader-signpost>summary{display:flex;min-height:44px;list-style:none;font:750 .76rem/1.16 system-ui,sans-serif;cursor:pointer;padding-inline:.57rem}
 .lane-reader-signpost>summary::-webkit-details-marker{display:none}
 .reader-header .topbar .lane-reader-signpost .lane-final-nav{position:absolute;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));inset:.2rem 0 auto auto;top:100%;width:min(calc(100vw - 2.2rem),21rem);max-width:none;padding:.4rem;border:3px double #d6b16e;border-radius:.54rem;background:#133044;box-shadow:0 6px 20px #061827c2}
 .lane-reader-signpost:not([open]) .lane-final-nav{display:none!important}
 .lane-reader-signpost .lane-final-nav a{justify-content:center}
}
@media(max-width:375px) and (max-height:680px){
 .reading-page .reader.enhanced .book>.leaf,.reading-page .reader.enhanced .leaf.paper-print{
  grid-template-rows:minmax(clamp(68px,13svh,92px),1fr) auto
 }
 .reading-page .reader.enhanced .leaf .words{padding:.52rem .72rem;gap:.27rem}
 .reading-page .reader.enhanced .leaf .words p:not(.chapter-label){font-size:1rem;line-height:1.33}
 .reading-page .reader.enhanced .reader-top{padding-inline:.25rem}
 .reading-page .reader.enhanced .turn-controls:has(.lane-finish:not([hidden])) .lane-finish>a{flex:1 1 45%}
}
@media(max-width:1030px){.character-page .friends-next-stops :is(.village-sign,.pill){white-space:normal;min-width:0}}
.lane-rejoin[hidden]{display:none!important}
.lane-place{height:auto;scroll-margin-block-start:clamp(5rem,13svh,8rem)}
.lane-map .lane-place .lane-action-row{display:flex;gap:.42rem;margin-block:.62rem}
.lane-place .lane-action-row a{min-block-size:44px;white-space:normal;text-align:center}
.lane-place:target{outline:2px solid #ffe1a0;outline-offset:3px}
.lane-place-back{display:inline-block;margin-block-start:.3rem;color:inherit;font-size:.87rem}
.lane-traditions-sign{margin:.3rem 0 1.1rem}
.traditions-lane{
 background:linear-gradient(#0a253cb8,#132b42d9 17%,#142e45f3 72%,#102435f8),
 url(assets/lane-map.webp) center top / min(100vw,1536px) auto no-repeat #102435;
 color:#fff0d2;padding:clamp(1.6rem,5.5vw,4.3rem) 0 3rem
}
.tradition-opening{max-width:49rem}
.tradition-opening h1{font-size:clamp(2.35rem,6.8vw,5.2rem);color:#fff0c4;line-height:1.046;text-shadow:0 2px 6px #06131f}
.tradition-opening>p:not(.gold-label){max-width:37rem;font:1.22rem/1.49 Georgia,serif;margin:.6rem 0 1rem}
.tradition-index{display:flex;flex-wrap:wrap;gap:.44rem;margin:1.25rem 0 1.65rem}
.tradition-index a{min-height:44px}
.tradition-stop{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:center;
 border:3px double #ddb36b;border-radius:.82rem;
 background:linear-gradient(120deg,#173d42,#1d324e);box-shadow:0 7px 17px #07182780;
 margin:0 0 1.2rem;padding:clamp(.55rem,2.2vw,1.12rem);
}
.tradition-stop figure{margin:0;background:#102535;border:1px solid #dbb668;border-radius:.56rem;overflow:hidden}
.tradition-stop img{display:block;width:100%;height:auto;object-fit:contain}
.tradition-copy{min-inline-size:0;padding:clamp(.7rem,3vw,1.9rem);overflow-wrap:break-word}
.tradition-copy h2,.traditions-family h2{margin:.34rem 0;color:#fff0c4;line-height:1.1}
.tradition-copy p:not(.gold-label){margin:.46rem 0;font-size:1rem;line-height:1.48}
.tradition-copy .lane-action-row{display:flex;gap:.45rem;margin-block:.7rem}
.tradition-copy .lane-action-row a{min-block-size:44px;text-align:center;white-space:normal}
.tradition-copy details{margin-block:.45rem 0;color:#f7daa1;font-size:.88rem}
.tradition-copy details a,.traditions-family a{color:#ffe2a1;overflow-wrap:break-word}
.tradition-copy summary{cursor:pointer;padding-block:.45rem}
.traditions-family{margin-block:2rem 0}
.traditions-family>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-block-start:1rem}
.traditions-family article{min-width:0;background:#1a3c4a;border:1px solid #c29c63;padding:clamp(.75rem,2.5vw,1.3rem);border-radius:.6rem}
.traditions-family p{margin:.45rem 0;line-height:1.44}
@media(max-width:720px){.tradition-stop,.traditions-family>div{grid-template-columns:minmax(0,1fr)}}
/* Local light at real illustration details, never a flashing or blocking overlay. */
.lane-glow{position:absolute;left:var(--glow-x);top:var(--glow-y);z-index:1;transform:translate(-50%,-50%);display:block;pointer-events:none;mix-blend-mode:screen;border-radius:50%}
.lane-glow[hidden]{display:none!important}
.lane-glow-star{width:clamp(16px,5vw,58px);aspect-ratio:1;background:radial-gradient(circle,#fff9d8bc,#ffd48965 23%,#f3ae4926 49%,transparent 71%);animation:lane-star-light 6.2s ease-in-out infinite;animation-delay:var(--glow-delay,0s)}
.lane-glow-star::after{content:"";position:absolute;inset:19%;background:#ffe8b6bf;clip-path:polygon(50% 0,54% 44%,100% 50%,54% 55%,50% 100%,45% 55%,0 50%,45% 44%);opacity:.7}
.lane-glow-lantern{width:clamp(10px,2.8vw,31px);aspect-ratio:1;background:radial-gradient(circle,#ffe0a19c,#ffc57d45 29%,transparent 69%);animation:lane-star-light 7.4s ease-in-out infinite;animation-delay:var(--glow-delay,-1s)}
.leaf-art .lane-glow-track{width:clamp(12px,3.7vw,30px)}
@keyframes lane-star-light{0%,100%{opacity:.26}43%{opacity:.74}63%{opacity:.44}}
@media(prefers-reduced-motion:reduce){.lane-glow{animation:none!important;opacity:.29}}
@media print{.lane-glow{display:none!important}}
@media(max-width:710px){
 .village-header .topbar:has(.lane-reader-signpost){justify-content:space-between;flex-wrap:nowrap}
 .village-header .topbar .lane-reader-signpost .lane-final-nav{
  position:absolute;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));inset:100% 0 auto auto;
  width:min(calc(100vw - 2.2rem),21rem);max-width:none;padding:.4rem;border:3px double #d6b16e;
  border-radius:.54rem;background:#133044;box-shadow:0 6px 20px #061827c2
 }
 .village-header .lane-reader-signpost:not([open]) .lane-final-nav{display:none!important}
 .village-header .lane-reader-signpost .lane-final-nav a{justify-content:center}
 .village-page .winter-opening>.welcome{min-width:0}
 .village-page .welcome-copy{max-inline-size:100%}
}
@media(max-width:680px){
 .portrait-room .character-stage{min-width:0;gap:.6rem;padding-block:.72rem}
 .portrait-room .character-frame{padding:.49rem}
 .portrait-room .character-frame img{height:clamp(168px,29svh,288px)}
 .portrait-room .character-frame figcaption{padding:.4rem .32rem .12rem}
 .portrait-room .character-summary{margin:.48rem 0 .59rem}
}
.advent-house>a .advent-window::after{
 content:"";position:absolute;inset:0;opacity:0;pointer-events:none;border-radius:inherit;
 background:radial-gradient(ellipse at 50% 62%,#f5ca7f55,transparent 69%);transition:opacity .42s ease;
}
.advent-house>a .advent-window{position:relative}
.advent-house:has(a:focus-visible) .advent-window::after,.advent-house.is-read .advent-window::after{opacity:1}
.advent-house>a:hover .advent-window::after{opacity:.68}
#hunt-reward:not([hidden]){box-shadow:0 0 20px #f3be7155}
.lane-puzzle-frame.is-solved{box-shadow:0 0 16px #ecc2794d}
@media(prefers-reduced-motion:reduce){.advent-house>a .advent-window::after{transition:none}}
/* Standalone signs use the same trim and spacing as the carved site nav. */
:is(.lane-map,.traditions-lane,.lane-santa-path,.lane-progress) .village-sign{
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 min-block-size:44px;max-inline-size:100%;padding:.43rem .65rem;
 border:3px double #dbb876;border-radius:.4rem .58rem .58rem .4rem;
 color:#fff1ce;text-decoration:none;white-space:normal;text-align:center;
 font:750 .86rem/1.17 system-ui,sans-serif;
 box-shadow:0 2px 0 #0b1d29,inset 0 0 0 1px #e9c78722;
}
.lane-map-directory{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.35rem;max-width:70rem;margin:.75rem auto}
.lane-map .lane-traditions-sign{margin:.16rem 0 .82rem}
.lane-map :is(.map-surface,.lane-place):target{scroll-margin-block-start:0}
.tradition-index a{flex:0 1 auto}
@media(max-width:370px) and (max-height:700px){
 .village-page .winter-opening>.welcome{padding-block-end:260px}
}
.reading-page .reader.enhanced .leaf .leaf-art{
 isolation:isolate;
 background:radial-gradient(ellipse at 50% 49%,#536578,#253d54 66%,#173246);
}
.reading-page .reader.enhanced .leaf .leaf-art::before{
 content:"";pointer-events:none;position:absolute;z-index:0;inset:0;
 background:linear-gradient(#13294861,#102b3a77),var(--scene-wash,none) center/cover no-repeat;
 filter:blur(16px);transform:scale(1.075);opacity:.5;
}
.reading-page .reader.enhanced .leaf .leaf-art img{z-index:1}
.reading-page .reader.enhanced .leaf .leaf-art .lane-glow{z-index:2}

.village-page .welcome-actions .lane-resume{margin-block-start:0}
@media(max-width:370px) and (max-height:700px){
 .village-page .winter-opening>.welcome:has(.lane-resume:not([hidden])){padding-block-end:285px}
}

/* Desktop is an always-visible link row, not a collapsible mobile menu.
   Outrank the generic .topbar .village-sign rule on the summary specifically. */
@media (min-width:711px){
 .village-header .topbar > details.lane-reader-signpost{display:block;min-inline-size:0;flex:0 1 auto}
 .village-header .topbar > details.lane-reader-signpost > summary.village-sign{display:none}
 .village-header .topbar > details.lane-reader-signpost > .lane-final-nav{display:flex;position:static;flex-wrap:wrap}
}

/* Complete story jackets on the homepage trail and all three character pages.
   The shelf's original jacket CSS only applies inside the shelf opening. */
:is(.lane-santa-path,.lane-profile-reads) .lane-pick-grid{
 display:grid;gap:clamp(.75rem,2vw,1.45rem);margin-block-start:.65rem;align-items:stretch
}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick{
 display:flex;flex-direction:column;min-inline-size:0;padding:clamp(.38rem,1vw,.62rem);
 background:linear-gradient(150deg,#25474b,#142e41);color:#fff0c9;
 border:3px double #deb877;border-radius:.7rem;text-decoration:none;
 box-shadow:0 7px 17px #0a1b2b9c;overflow:hidden
}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick:nth-child(2){background:linear-gradient(150deg,#69414b,#3a2a3f)}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick:nth-child(3){background:linear-gradient(150deg,#365343,#193637)}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick:hover{border-color:#ffe09d}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick>img{
 display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;
 background:#142d40;border:1px solid #ddba7b;border-radius:.36rem
}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick>div{padding:.69rem .52rem .53rem;min-width:0}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick h3{
 color:#fff0c9;font-size:clamp(1.25rem,2.3vw,1.8rem);line-height:1.13;text-decoration:none
}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick p{
 color:#ffe0a2;margin-block:.22rem 0;line-height:1.35
}
:is(.lane-santa-path,.lane-profile-reads) .lane-pick .chapter-label{
 font-size:.73rem;margin:0 0 .36rem;line-height:1.3
}
@media(max-width:710px){
 .reading-page > .reader-header{position:relative;z-index:10}
}

/* A puzzle is a village destination, not an unstyled link below the signs. */
@media(min-width:1024px){
 .village-page .lane-crossroads .lane-cross-grid:has(a:nth-child(4)){
  grid-template-columns:repeat(4,minmax(0,1fr))
 }
}
@media(min-width:641px) and (max-width:1023px){
 .village-page .lane-crossroads .lane-cross-grid:has(a:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
}
.village-page .lane-crossroads .lane-cross-grid>a:nth-child(4){
 background-image:repeating-linear-gradient(3deg,#ffebbf10 0 1px,transparent 2px 11px),linear-gradient(120deg,#315469,#173144)
}
.lane-puzzle-footer .village-sign{
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 min-block-size:44px;padding:.42rem .72rem;border:3px double #dbb876;
 border-radius:.4rem .58rem .58rem .4rem;color:#fff1ce;text-decoration:none;
 text-align:center;font:750 .86rem/1.17 system-ui,sans-serif;
 box-shadow:0 2px 0 #0b1d29,inset 0 0 0 1px #e9c78722
}

/* Keep the directory together and fit the complete village illustration. */
.lane-map .lane-intro{margin-block-end:.55rem}
.lane-map .lane-map-directory{gap:.42rem;margin:.48rem auto .85rem}
.lane-map .lane-map-directory .lane-traditions-sign{margin:0}
.lane-map .map-painting{
 width:min(100%,70rem,max(17rem,calc(var(--map-view-height,62svh)*1.5 - .5rem)));
 max-inline-size:100%;margin-inline:auto
}
.lane-map .map-surface>img{
 display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain
}
.lane-map .lane-map-stops{margin-block-start:clamp(1.8rem,4vw,3.5rem)}
.lane-map .lane-map-stops>.lane-stops-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.85rem,1.8vw,1.7rem)}
.lane-map .lane-place{
 min-inline-size:0;display:flex;flex-direction:column;
 border:3px double #e1b976
}
.lane-map .lane-place>div{
 display:flex;flex-direction:column;gap:.53rem;padding:clamp(.8rem,1.65vw,1.22rem)
}
.lane-map .lane-place h3{font-size:clamp(1.3rem,2vw,1.95rem);text-wrap:pretty;line-height:1.16}
.lane-map .lane-place>div>p:not(.chapter-label){margin-block-end:.42rem;line-height:1.43}
.lane-map .lane-place .lane-action-row{
 margin-block:auto .25rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;
}
.lane-map .lane-place :is(.lane-action-row a,.lane-place-back){white-space:normal;min-block-size:44px}
.lane-map .lane-place .lane-place-back{align-self:flex-start;margin:0;font-size:.76rem}
@media(min-width:1000px){
 .lane-map .lane-map-stops>.lane-stops-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 .lane-map .lane-place{grid-column:span 2}
 .lane-map .lane-place:nth-child(4){grid-column:2/span 2}
 .lane-map .lane-place:nth-child(5){grid-column:4/span 2}
}
@media(max-width:639px){
 .lane-map .lane-map-stops>.lane-stops-grid{grid-template-columns:minmax(0,1fr)}
 .lane-map .lane-place h3{font-size:clamp(1.4rem,5vw,1.95rem)}
}

/* Use the existing village header as a real, persistent landmark. */
:root:has(body>.village-header .lane-final-nav){
 scroll-padding-block-start:var(--lane-header-size,5rem);
}
body > .village-header:has(.lane-final-nav){
 position:sticky;inset-block-start:0;z-index:12;align-self:start;background:#10293b
}
body:has(>.village-header .lane-final-nav) :is(main [id],.lane-crossroads a):target{scroll-margin-block-start:.65rem}
body:is(.village-page,.portrait-room):has(>.village-header) .winter-opening{
 min-block-size:calc(100svh - var(--lane-header-size,5rem));
 min-block-size:calc(100dvh - var(--lane-header-size,5rem))
}
body.village-page:has(>.village-header) .winter-opening>.welcome{align-self:center}
@media(max-width:680px){
 body.village-page:has(>.village-header) .winter-opening>.welcome{align-self:start}
}
@media print{body>.village-header{display:none!important}}

/* Place full, undistorted art against the paper, not in a tall blurred well. */
@media(max-width:680px) and (min-height:691px){
 .reading-page .reader.enhanced :is(.book>.leaf,.leaf.paper-print){
  grid-template-rows:auto minmax(min-content,1fr);
 }
 .reading-page .reader.enhanced :is(.book>.leaf,.leaf.paper-print) .leaf-art{
  aspect-ratio:3/2;block-size:auto;align-self:start;background:#efd8ad;
 }
 .reading-page .reader.enhanced .leaf .leaf-art img{padding:0}
 .reading-page .reader.enhanced .leaf .leaf-art::before{display:none}
}
@media(max-width:680px) and (max-height:690px){
 .reading-page .reader.enhanced :is(.book>.leaf,.leaf.paper-print){
  grid-template-rows:clamp(72px,15svh,142px) minmax(min-content,1fr);
 }
 .reading-page .reader.enhanced .leaf .leaf-art{background:radial-gradient(#f8e6bd,#ddbc87)}
 .reading-page .reader.enhanced .leaf .leaf-art::before{display:none}
}
@media(min-width:681px){
 .reading-page .reader.enhanced .leaf .leaf-art{background:radial-gradient(#fff1d2,#eed6aa 73%,#d9ba86)}
 .reading-page .reader.enhanced .leaf .leaf-art::before{display:none}
 .reading-page .reader.enhanced .leaf .leaf-art img{padding:clamp(.5rem,1.3vmin,1.1rem)}
}

/* Bring new content into the existing storybook design. */
.lane-santa-path{padding-block:clamp(1.65rem,4vw,3.6rem)}
.lane-santa-path h2,.lane-profile-reads h2{
 margin:0 0 .57rem;font-size:clamp(2rem,4.3vw,3.9rem);line-height:1.07;text-wrap:balance;
}
.lane-santa-path .lane-pick-grid{max-inline-size:none}
.portrait-room .profile-christmas-flow>.lane-profile-reads{background:transparent}
.lane-profile-reads .lane-pick-grid{max-inline-size:none}
.lane-profile-reads .lane-pick>img{max-block-size:clamp(160px,32vw,25rem)}
.tradition-stop .lane-download{flex:0 1 auto}
.tradition-stop .lane-download img{width:auto;height:3.8rem;max-width:3.1rem;aspect-ratio:auto;object-fit:contain}
.lane-activities .lane-activity-nav{display:flex;flex-wrap:wrap;gap:.48rem;margin-block:.82rem 1.1rem}
.lane-map #lantern-hunt{margin-block:clamp(1.4rem,3vw,2.2rem) 1.2rem}
.lane-puzzle-actions label{margin:0}
.lane-puzzle-actions>select{margin:0 0 .28rem}
@media(max-width:690px){.lane-puzzle-actions>select{min-width:0}}

/* Gold-framed reading tracker instead of the browser's unthemed progress bar. */
.lane-progress:not([hidden]){
 display:grid;grid-template-columns:minmax(8rem,27rem) minmax(0,1fr);column-gap:1.15rem;row-gap:.45rem;
 align-items:center;border:3px double #d4ad70;
 background:radial-gradient(ellipse at 0 0,#375457,transparent 55%),linear-gradient(135deg,#28464b,#142e41);
}
.lane-progress h2{grid-column:1/-1}
.lane-progress [role="status"]{margin:0;grid-column:1}
.lane-progress progress{
 grid-column:1;appearance:none;display:block;width:100%;height:1rem;
 accent-color:#e6b977;border:1px solid #d6ae70;border-radius:999px;overflow:hidden;
 background:#142c3f;color:#ffd077;
}
.lane-progress progress::-webkit-progress-bar{background:repeating-linear-gradient(90deg,#18364a 0 calc(4% - 1px),#b9915c77 calc(4% - 1px) 4%)}
.lane-progress progress::-webkit-progress-value{background:linear-gradient(180deg,#ffdfa1,#dca24b);border-radius:999px}
.lane-progress progress::-moz-progress-bar{background:linear-gradient(180deg,#ffdfa1,#dca24b);border-radius:999px}
.lane-progress .lane-next-unread{grid-column:2;grid-row:2/4;align-self:center;justify-self:end;margin:0}
@media(max-width:650px){.lane-progress:not([hidden]){grid-template-columns:minmax(0,1fr)}.lane-progress .lane-next-unread{grid-column:1;grid-row:auto;justify-self:start;margin-top:.42rem}}
/* Preserve the original hero grid after the header moved out for sticky nav. */
@media(min-width:681px){
 body:is(.village-page,.portrait-room):has(>.village-header) .winter-opening>:is(.welcome,.character-stage){grid-row:2}
 body:is(.village-page,.portrait-room):has(>.village-header) .winter-opening>.snowline{
  grid-row:3;position:relative;z-index:2;align-self:end
 }
}

/* The same compact sticky hamburger and complete directory at every width. */
body > .village-header .topbar:has(>details.lane-reader-signpost){
 display:flex;justify-content:space-between;flex-wrap:nowrap;min-inline-size:0
}
body > .village-header .topbar > details.lane-reader-signpost{
 position:relative;display:block;flex:0 0 auto;z-index:2
}
body > .village-header .topbar > details.lane-reader-signpost > summary.village-sign{
 display:inline-grid;place-items:center;box-sizing:border-box;
 width:46px;height:46px;min-width:44px;min-height:44px;padding:.28rem;
 list-style:none;color:#ffe4a3
}
body > .village-header .topbar > details.lane-reader-signpost > summary::-webkit-details-marker{display:none}
body > .village-header .topbar > details.lane-reader-signpost[open] > summary{outline:2px solid #ffe1a1;outline-offset:-4px}
body > .village-header .topbar > details.lane-reader-signpost > .lane-final-nav{
 position:absolute;inset:calc(100% + .36rem) 0 auto auto;display:block;
 width:min(calc(100vw - 2rem),29rem);max-width:none;max-height:calc(100dvh - var(--lane-header-size,5rem) - 1rem);
 overflow:auto;overscroll-behavior:contain;padding:.68rem;background:linear-gradient(140deg,#183b42,#112a40);
 border:3px double #deba77;border-radius:.7rem;box-shadow:0 9px 28px #071525d9
}
body > .village-header .topbar > details.lane-reader-signpost:not([open]) > .lane-final-nav{display:none!important}
.lane-menu-grid,.lane-menu-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.lane-final-nav :is(.lane-menu-grid,.lane-menu-books) .village-sign{display:flex;justify-content:center;line-height:1.18;padding:.32rem .45rem;min-height:44px}
.lane-final-nav .lane-menu-library{margin-top:.54rem;color:#fff0c9}
.lane-final-nav .lane-menu-library summary{
 padding:.62rem .6rem;min-block-size:44px;cursor:pointer;border-radius:.45rem;
 border:1px solid #e1bd7e;background:#302d3e;font-weight:800
}
.lane-menu-books{margin:.5rem 0 0}
@media(max-width:460px){
 body > .village-header .topbar > details.lane-reader-signpost > .lane-final-nav{
  width:min(calc(100vw - 1.7rem),23rem);padding:.55rem
 }
 .lane-menu-books{grid-template-columns:minmax(0,1fr)}
}
/* A saved book gets the primary spot, not a third oversized pill. */
.village-page .welcome-actions:has(.lane-resume:not([hidden]))>.lane-open-first{display:none}
.village-page .welcome-actions>.lane-resume{order:-1}
@media(max-width:680px){
 .village-page .winter-opening .welcome-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem;width:min(100%,25rem)
 }
 .village-page .winter-opening .welcome-actions .pill{
  min-width:0;min-height:44px;width:100%;white-space:normal;overflow-wrap:normal;line-height:1.12;text-align:center;
  padding:.44rem .35rem;font-size:clamp(.72rem,3.4vw,.95rem)
 }
}

/* Opening contract: the sticky header plus hero fills one initial viewport.
   The overlay and saved-book state do not add rows. Only very short phones
   may grow the opening naturally rather than clipping content or the art. */
@media(max-width:680px){
 body.village-page:has(>.village-header) .winter-opening{
  --lane-opening-art:clamp(228px,45svh,min(452px,102vw));
  min-block-size:calc(100svh - var(--lane-header-size,5rem));
 }
 body.village-page:has(>.village-header) .winter-opening>.winter-sky{
  position:absolute;inset:auto 0 0;block-size:var(--lane-opening-art)
 }
 body.village-page:has(>.village-header) .winter-opening>.welcome,
 body.village-page:has(>.village-header) .winter-opening>.welcome:has(.lane-resume:not([hidden])){
  padding-block:clamp(.8rem,calc((100svh - 650px)*.09),2.1rem) max(10rem,calc(var(--lane-opening-art) - 3.1rem));
 }
}
@media(max-width:680px){
 body.village-page:has(>.village-header) .winter-opening>.winter-sky{
  position:absolute;inset:0;block-size:100%;border:0;mask-image:none
 }
 body.village-page:has(>.village-header) .winter-opening>.winter-sky>img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom;mask-image:none
 }
 body.village-page:has(>.village-header) .winter-opening::after{
  background:linear-gradient(180deg,#0a1c37b7,#142c5470 35%,transparent 64%);
  mask-image:none
 }
}

/* Three desktop shortcuts; the complete directory remains in the right-hand menu. */
.village-header .topbar > .lane-desktop-shortcuts{display:none}
@media(min-width:960px){
 body > .village-header .topbar:has(>details.lane-reader-signpost){gap:clamp(.42rem,1vw,.92rem)}
 .village-header .topbar > .lane-desktop-shortcuts{
  display:flex;align-items:center;gap:.45rem;margin-inline-start:auto;flex:0 0 auto
 }
 .village-header .topbar > .lane-desktop-shortcuts > a{min-block-size:44px;white-space:nowrap}
 .village-header .topbar > .lane-desktop-shortcuts > a[aria-current="page"]{
  box-shadow:inset 0 0 0 1px #e9c7877a;outline:1px solid #e5bf80;outline-offset:-4px
 }
}
/* Keep the settings control with the other book controls, not in its own row. */
.reading-page .reader.enhanced .reader-top .lane-reader-actions > .reading-settings-button{
 display:inline-grid;place-items:center;box-sizing:border-box;inline-size:44px;min-inline-size:44px;
 block-size:44px;min-block-size:44px;padding:0;color:#ffe4a3;flex:0 0 44px
}
@media(max-width:680px){
 .reading-page .reader.enhanced .reader-top:has(.lane-reader-actions){flex-wrap:nowrap}
 .reading-page .reader.enhanced .reader-top:has(.lane-reader-actions)>p{flex:1 1 auto;white-space:normal}
 .reading-page .reader.enhanced .reader-top .lane-reader-actions{
  flex:0 0 auto;flex-wrap:nowrap;align-items:center
 }
 .reading-page .reader.enhanced .reader-top .lane-reader-actions :is(.book-close,.lane-audio-button){
  min-block-size:44px;white-space:nowrap
 }
}

/* Finished crafts, including the image border, remain fully in the art frame. */
@media screen{
 .story-shelf-page #lane-main.shelf-room:has(.lane-workshop){padding-block-start:clamp(.72rem,3svh,1.7rem)}
 .lane-workshop .lane-intro{gap:.28rem;margin-block-end:.8rem}
 .lane-workshop .lane-intro h1{font-size:clamp(2.1rem,min(6vw,8svh),4.4rem);line-height:1.05}
 .lane-workshop .lane-intro>p{margin-block:.12rem .32rem}
 .lane-workshop .lane-craft{padding:clamp(.6rem,1.6vw,1.3rem);gap:clamp(.65rem,2vw,1.65rem);margin-block:.7rem 1.25rem}
 #lane-main .lane-workshop .lane-craft-scene{
  display:block;inline-size:min(100%,clamp(236px,64svh,670px));block-size:auto;
  aspect-ratio:3/2;object-fit:contain;justify-self:center
 }
 .lane-workshop .lane-craft h2{font-size:clamp(1.42rem,2.55vw,2.35rem);margin-block:0 .38rem}
 .lane-workshop .lane-craft-instructions :is(p,ol){margin-block:.42rem}
 .lane-workshop .lane-craft-instructions li+li{margin-block-start:.43rem}
 .lane-workshop .lane-craft-instructions .lane-action-row{gap:.34rem;margin-block:.7rem .05rem}
 .lane-workshop .lane-craft-instructions .lane-download img{inline-size:auto;block-size:1.9rem}
 .lane-workshop .lane-craft-instructions .lane-download{min-block-size:44px;padding:.26rem .42rem}
}
.lane-map #lantern-hunt{
 margin-block:clamp(.8rem,2svh,1.5rem) clamp(.8rem,2svh,1.5rem);
 padding:clamp(.65rem,1.8vw,1.15rem);
 background:radial-gradient(ellipse at 14% 20%,#315d57 0,transparent 57%),linear-gradient(115deg,#1d4247,#142a40);
}
.lane-map #lantern-hunt>h2{margin:0;font-size:clamp(1.65rem,3vw,2.65rem);line-height:1.12}
.lane-map #lantern-hunt>p{margin:.3rem 0;line-height:1.42}
.lane-map #lantern-hunt>#hunt-start{margin:0;min-block-size:44px;white-space:nowrap}
.lane-map .lane-map-stops{margin-block-start:clamp(.85rem,2.6svh,1.55rem)}
.lane-map .lane-map-stops>h2{margin-block:.3rem .73rem;font-size:clamp(1.8rem,3.3vw,3.1rem)}
.lane-map .lane-map-stops>.lane-stops-grid{gap:clamp(.55rem,1.25vw,1rem)}
.lane-map .lane-place .lane-stop-window{block-size:clamp(108px,15.5svh,164px);aspect-ratio:auto}
.lane-map .lane-place>div{flex:1;gap:.32rem;padding:clamp(.55rem,1.3vw,.85rem)}
.lane-map .lane-place h3{font-size:clamp(1.2rem,1.7vw,1.65rem)}
.lane-map .lane-place>div>p:not(.chapter-label){margin-block:0 .35rem;font-size:.93rem;line-height:1.36}
.lane-map .lane-place .lane-action-row{gap:.28rem}
.lane-map .lane-place .lane-action-row a{padding:.33rem .45rem}
@media(min-width:930px){
 .lane-map #lantern-hunt:not(:has(#hunt-details:not([hidden]),#hunt-reward:not([hidden]))){
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(.75rem,2vw,1.5rem);align-items:center
 }
}

/* Leave room between short-screen hero controls and the illustrated faces. */
@media(max-width:370px) and (max-height:700px){
 body.village-page:has(>.village-header) .winter-opening .welcome-copy h1{font-size:clamp(2.2rem,12.9vw,2.9rem)}
 body.village-page:has(>.village-header) .winter-opening .welcome-copy>p:not(.gold-label){
  font-size:clamp(.91rem,4.4vw,1rem);line-height:1.35;margin-block:.35rem .45rem
 }
 body.village-page:has(>.village-header) .winter-opening .welcome-actions{margin-block-start:.42rem}
}
@media(max-width:680px){
 .room-peppermint .character-stage{gap:.45rem;padding-block:.55rem}
 .room-peppermint .character-frame img{height:clamp(140px,23svh,220px)}
 .room-peppermint .character-intro .welcome-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}
 .room-peppermint .character-intro .welcome-actions>a{min-width:0;min-height:44px;text-align:center;padding:.32rem;white-space:normal;font-size:clamp(.72rem,3.4vw,.95rem)}
 .reading-page .reader.enhanced .reader-top .lane-reader-actions .lane-audio-replay{min-block-size:44px;min-inline-size:44px;white-space:nowrap}
}
@media screen{
 .story-shelf-page #lane-main.shelf-room:has(.lane-workshop)::before{display:none}
 .lane-workshop .lane-craft-instructions :is(p,ol){line-height:1.4}
 .lane-workshop .lane-craft .lane-action-row{justify-content:flex-start}
 .lane-workshop .lane-craft .lane-action-row>:is(a,button){min-height:44px}
 .lane-activities .lane-activity .activity-story{margin-block-end:clamp(.38rem,1.25svh,.85rem)}
 .lane-activities .lane-activity .activity-art-pair{
  grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,calc(clamp(13rem,59svh,30rem)*1.66 + 2rem));gap:clamp(.35rem,1.7vw,1.2rem);
  align-items:stretch
 }
 .lane-activities .lane-activity .activity-art-pair > :is(figure,.activity-sheet){
  padding:clamp(.21rem,.85vw,.58rem);max-width:none;align-items:center;justify-content:center
 }
 .lane-activities .lane-activity .activity-art-pair img{
  height:auto;width:min(100%,calc(clamp(13rem,49svh,27rem)*.8));aspect-ratio:4/5;object-fit:contain
 }
 .lane-activities .lane-activity .lane-action-row{margin-block-start:.62rem}
}
@media screen and (max-width:700px){
 #lane-main .lane-workshop .lane-craft-scene{width:min(100%,clamp(178px,30svh,290px))}
 .lane-workshop .lane-craft-instructions :is(p,ol){font-size:clamp(.89rem,3.7vw,1rem)}
 .lane-workshop .lane-craft .lane-action-row>.lane-download{margin:0}
 .lane-workshop .lane-craft .lane-action-row>:is(a,button){font-size:.81rem;padding:.34rem .45rem}
}
:root:has(.lane-map){overflow-anchor:none}
.lane-map :is(#lantern-hunt,#hunt-reward){scroll-margin-block-start:.55rem}

/* Keep the controls and board together as the puzzle's height changes. */
.lane-puzzle{padding-block:clamp(.72rem,2.8svh,1.65rem)}
.lane-puzzle .lane-intro{gap:.26rem;margin-block-end:.65rem}
.lane-puzzle .lane-intro h1{font-size:clamp(1.85rem,min(5.4vw,7.7svh),4.15rem);line-height:1.07}
.lane-puzzle .lane-intro p{margin-block:0}
.lane-puzzle .lane-puzzle-actions{gap:.2rem .4rem;padding:.65rem}
.lane-puzzle .lane-status{min-height:1.47em}
.lane-puzzle .lane-puzzle-frame{margin:0 auto;width:min(100%,65svh,35rem);align-self:start}
.lane-puzzle .lane-puzzle-footer{margin-block-start:.58rem}
@media(max-width:690px){
 .lane-puzzle .lane-puzzle-play{gap:.55rem}
 .lane-puzzle .lane-puzzle-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .lane-puzzle .lane-puzzle-actions :is(label,select){grid-column:auto}
 .lane-puzzle .lane-puzzle-actions>label:first-of-type{grid-area:1/1}
 .lane-puzzle .lane-puzzle-actions>select:first-of-type{grid-area:2/1}
 .lane-puzzle .lane-puzzle-actions>label:nth-of-type(2){grid-area:1/2}
 .lane-puzzle .lane-puzzle-actions>select:nth-of-type(2){grid-area:2/2}
 .lane-puzzle .lane-puzzle-actions>*{min-width:0}
 .lane-puzzle .lane-puzzle-frame{width:min(100%,59svh)}
}
@media(max-width:370px) and (max-height:700px){
 .lane-map .lane-map-directory{margin-block:.3rem .55rem;gap:.23rem}
 .lane-map .lane-map-directory .village-sign{padding-inline:.29rem;font-size:.72rem}
 .lane-map .lane-intro{gap:.2rem;margin-block-end:.22rem}
 .lane-map .lane-intro h1{font-size:clamp(1.95rem,9vw,2.65rem)}
 .lane-map .lane-intro p{line-height:1.35;margin-block:0}
}
@media(max-width:680px){
 .reading-page .reader.enhanced .reader-top .lane-reader-actions .lane-audio-replay{
  display:inline-grid;place-items:center;inline-size:44px;padding:0;color:#ffe4a3
 }
 .reading-page .reader.enhanced .reader-top .lane-reader-actions .lane-audio-replay>span{display:none}
 .reading-page .reader.enhanced .reader-top>p{overflow-wrap:normal}
 .reading-page .reader.enhanced .reader-top:has(.lane-audio-replay:not([hidden]))>p{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere
 }
}
@media(min-width:681px) and (max-height:850px){
 .reading-page .reader.enhanced .leaf .words{padding-block:clamp(.55rem,1.32svh,.95rem)}
 .reading-page .reader.enhanced .leaf .words :is(h1,h2){font-size:clamp(1.58rem,4.9svh,2.9rem)}
 .reading-page .reader.enhanced .leaf .words p:not(.chapter-label){font-size:clamp(1rem,2.43svh,1.28rem)}
}

/* On wide screens the stop illustration is a framed window alongside the
   copy. Two compact rows keep the directory useful even at the hunt anchor. */
@media(min-width:1200px){
 .lane-map .lane-place{display:grid;grid-template-columns:minmax(5.55rem,29%) minmax(0,1fr)}
 .lane-map .lane-place .lane-stop-window{
  block-size:100%;min-block-size:0;align-self:stretch;
  border-block-end:0;border-inline-end:3px double #e8c989
 }
 .lane-map .lane-place>div{gap:.24rem;padding:.65rem;min-inline-size:0}
 .lane-map .lane-place h3{font-size:clamp(1.12rem,1.45vw,1.55rem);line-height:1.1}
 .lane-map .lane-place .lane-action-row{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);margin-block:auto 0}
 .lane-map .lane-place .lane-action-row a{padding-inline:.24rem;font-size:.76rem}
 .lane-map .lane-place .lane-place-back{margin-block-start:.2rem;padding-inline:.42rem}
}
@media(max-width:370px) and (max-height:700px){
 body.village-page:has(>.village-header) .winter-opening>.winter-sky>img{object-position:center calc(100% + 34px)}
}
@media screen{
 .lane-activities .lane-activity .activity-story>div{gap:.34rem}
 .lane-activities .lane-activity .activity-story :is(p,h2){margin:0}
 .lane-activities .lane-activity .activity-sheet :is(h3,p){margin:.12rem 0}
 .lane-activities .lane-activity .activity-sheet h3{font-size:clamp(.92rem,2.2vw,1.45rem);line-height:1.15}
 .lane-activities .lane-activity .lane-download{margin:0;padding:.25rem .43rem}
 .lane-activities .lane-activity .lane-download img{height:1.85rem;width:auto}
}
@media screen and (min-width:900px){
 .lane-activities .lane-activity{
  display:grid;align-items:center;grid-template-columns:minmax(13.2rem,.68fr) minmax(0,1.32fr);
  gap:clamp(.65rem,1.7vw,1.35rem);
 }
 .lane-activities .lane-activity .activity-story{margin:0;text-align:left}
 .lane-activities .lane-activity .activity-art-pair{width:100%}
 .lane-activities .lane-activity .lane-action-row{grid-column:1/-1;margin-top:0}
}
@media screen and (max-width:680px){
 .lane-activities .lane-activity .activity-art-pair>.activity-sheet{padding:.25rem}
 .lane-activities .lane-activity .activity-art-pair img{
  width:min(100%,calc(clamp(6.5rem,22.5svh,11rem)*.8));padding:.2rem
 }
 .lane-activities .lane-activity .lane-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.34rem}
 .lane-activities .lane-activity .lane-action-row>:is(a,button){min-height:44px;padding:.31rem .32rem;font-size:.78rem;text-align:center;white-space:normal}
 .lane-activities .lane-activity .lane-download{grid-column:1/-1;justify-self:center}
}
@media(min-width:1200px) and (max-height:850px){
 .lane-map .lane-map-stops>h2{margin-block:.25rem .52rem;font-size:clamp(1.8rem,3.8svh,2.45rem)}
 .lane-map .lane-map-stops{margin-block-start:.82rem}
 .lane-map .lane-place>div{padding:.5rem .6rem;gap:.18rem}
 .lane-map .lane-place>div>p:not(.chapter-label){margin-block-end:.18rem}
 .lane-map .lane-place .chapter-label{margin-block:0}
}
@media(max-width:370px) and (max-height:680px){
 .lane-puzzle{padding-block:.54rem}
 .lane-puzzle .lane-intro{gap:.22rem;margin-block-end:.4rem}
 .lane-puzzle .lane-intro h1{font-size:clamp(1.45rem,7.5vw,1.7rem)}
 .lane-puzzle .lane-intro .gold-label{font-size:.72rem;letter-spacing:.1em}
 .lane-puzzle .lane-intro>p:last-child{font-size:.88rem;line-height:1.29}
 .lane-puzzle .lane-puzzle-actions{margin:0;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:.14rem .31rem;padding:.38rem}
 .lane-puzzle .lane-puzzle-actions>label{font-size:.79rem;white-space:nowrap}
 .lane-puzzle .lane-puzzle-actions>select{font-size:.8rem;margin:0;padding-inline:.24rem}
 .lane-puzzle .lane-puzzle-actions>.pill{min-height:44px;font-size:.77rem;white-space:nowrap;padding:.23rem .37rem}
 .lane-puzzle .lane-status{min-height:0;font-size:.74rem}
 .lane-puzzle .lane-status:empty{display:none}
 .lane-puzzle .lane-puzzle-frame{width:min(100%,46svh)}
 .lane-puzzle .lane-puzzle-footer{margin-block-start:.35rem}
}
/* End the map opening as a complete scene, before the hunt begins. */
.lane-map .lane-map-opening{display:flow-root}
@media(max-width:680px) and (min-height:700px){
 .lane-map .lane-map-opening{min-block-size:calc(100svh - var(--lane-header-size,5rem) - var(--lane-map-start,4.6rem));}
}
@media(min-width:1200px){
 .lane-map .lane-place .lane-stop-window img{
  position:absolute;left:50%;top:calc(-64% * var(--stop-pan,.1));width:auto;height:164%;
  max-width:none;max-height:none;transform:translateX(calc(-100% * var(--stop-focus,.5)))
 }
 .lane-map #stone-bridge{--stop-focus:.169;--stop-pan:.04}
 .lane-map #crooked-fir{--stop-focus:.505;--stop-pan:0}
 .lane-map #cookie-window{--stop-focus:.835;--stop-pan:.17}
 .lane-map #moss-door{--stop-focus:.216;--stop-pan:1}
 .lane-map #sled-stop{--stop-focus:.703;--stop-pan:1}
}

/* The postcard's parchment needs its own ink, not the surrounding wall's cream. */
.portrait-room .character-facts .fact-postcard>div{color:#273c32}
.portrait-room .character-facts .fact-postcard>div>p{color:#273c32}

/* The shared directory is a single evergreen-and-gold signboard. */
body>.village-header .topbar>details.lane-reader-signpost>.lane-final-nav{
 border:3px double #edca83;padding:clamp(.51rem,1.15vw,.87rem);
 background:radial-gradient(ellipse at 18% 0,#2e5141,transparent 65%),linear-gradient(152deg,#19382f,#112b29 75%);
 box-shadow:0 11px 32px #061512e3,inset 0 0 0 2px #d4a96152
}
.lane-final-nav :is(.lane-menu-grid,.lane-menu-books)>.village-sign{
 justify-content:flex-start;gap:.41rem;text-align:left;
 border:1px solid #b99759;background:linear-gradient(155deg,#294d40,#1e3d34);color:#fff1d0;
 border-radius:.38rem;box-shadow:0 1px 0 #0b2a21,inset 0 0 0 1px #ebc78422
}
.lane-final-nav :is(.lane-menu-grid,.lane-menu-books)>.village-sign::before{
 content:"";inline-size:6px;block-size:6px;flex:0 0 6px;border-radius:1px;
 transform:rotate(45deg);background:#e5be78
}
.lane-final-nav :is(.lane-menu-grid,.lane-menu-books)>.village-sign:is(:hover,:focus-visible){
 border-color:#ffdf9c;background:#3b5a40
}
.lane-final-nav :is(.lane-menu-grid,.lane-menu-books)>.village-sign[aria-current]{
 background:linear-gradient(150deg,#823c4a,#652b3b);border-color:#e4bb79;color:#fff1d0
}
.lane-final-nav .lane-menu-library>summary{
 background:#142d28;border:3px double #cda465;color:#ffe3ab
}
