@font-face{font-family:'Patrick Hand';src:url('/assets/fonts/PatrickHand-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}

:root{font-family:'Patrick Hand',cursive;color:#304a3b;background:#f7f3e9;font-synthesis:weight;--green:#345a48;--line:#dfdfce;--soft:#e9edde}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{min-height:48px;border:1px solid var(--line);border-radius:14px;padding:12px 20px;background:#fffdf6;color:var(--green);cursor:pointer;font-weight:600}button:hover{background:#e7ecdf}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b37837;outline-offset:4px}button.primary{background:var(--green);color:#fff;border-color:var(--green)}h1,h2,.brand{font-family:'Patrick Hand',cursive;font-weight:normal}h1{font-size:clamp(30px,3.3vw,44px);margin:10px 0 14px;letter-spacing:-1px}h2{font-size:24px}p{line-height:1.6}header{padding:20px 5%;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fbf8f0}.brand{text-decoration:none;color:var(--green);font-size:20px;border:0;background:none;padding:0;text-align:left;line-height:1.25}.brand span{display:block;font-size:26px;margin-left:30px}.header-actions{display:flex;gap:10px}main{max-width:1300px;margin:auto;padding:32px 5%}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#6c7c58}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.intro p{margin-bottom:0;color:#677360}.intro button{flex-shrink:0}nav{display:flex;border-bottom:1px solid var(--line);gap:8px;padding-bottom:16px;margin-bottom:28px;overflow:auto}nav button{background:none;border-color:transparent;white-space:nowrap}nav [aria-current]{background:#e5ebdc;border-color:#c6d2bd}.shelf-layout{display:grid;grid-template-columns:1fr 270px;gap:32px}.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}.filters button{padding:10px 15px;font-size:13px;background:none}.filters [aria-pressed=true]{background:#e2e8d9;border-color:#c0ceb6}.books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 22px}.book-card{border:0;padding:0;background:none;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:9px;font-weight:normal}.book-card:hover{background:none;transform:translateY(-3px)}.book-card>strong{font-family:'Patrick Hand',cursive;font-size:19px}.book-card>span{font-size:13px;color:#69715e}.cover{width:100%;aspect-ratio:2/2.65;border-radius:5px 14px 14px 5px;background:var(--cover);box-shadow:inset 7px 0 0 #ffffff30,2px 8px 16px #304a3b15;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px;text-align:center;overflow:hidden;font-family:'Patrick Hand',cursive}.cover span{font-size:45px}.cover strong{font-size:24px}.cover img{width:100%;height:100%;object-fit:contain}.cover:has(img){padding:0}.badge{background:#e7ebdf;padding:6px 10px;border-radius:20px}aside{background:#edf0e2;border:1px solid #d9e0cd;border-radius:22px;text-align:center;padding:25px 22px;align-self:start}aside p{font-size:14px;color:#65725c}aside button{font-size:13px}.mini-tree{font-size:100px;position:relative;margin:25px 0}.mini-tree small{font-size:32px;position:absolute;right:5px;bottom:0}hr{border:0;border-top:1px solid var(--line);margin:25px 0}footer{display:flex;justify-content:space-between;margin-top:50px;padding-top:20px;border-top:1px solid var(--line);color:#777f6d;font-size:12px}.welcome{text-align:center;max-width:950px;padding-top:60px}.profiles{display:flex;justify-content:center;flex-wrap:wrap;gap:30px;margin-top:40px}.profile{width:230px;min-height:245px;display:flex;flex-direction:column;align-items:center;gap:16px;border-radius:26px;background:#edeede}.avatar{font-size:65px;background:#e0e7cf;width:120px;height:120px;border-radius:50%;display:grid;place-items:center}.profile strong{font:28px 'Patrick Hand',cursive}.profile>span:last-child{font-size:13px;color:#68755c}.welcome-tree{font-size:65px;margin-top:45px}.welcome-tree span{font:18px 'Patrick Hand',cursive;vertical-align:middle}.muted{color:#707b68;font-size:14px}.empty{grid-column:1/-1;text-align:center;padding:48px 22px;border:1px dashed #c7d0bd;border-radius:20px}.empty>span{font-size:60px}dialog{width:min(640px,94vw);max-height:90dvh;border:1px solid var(--line);border-radius:24px;padding:36px;background:#faf7ee;color:#304a3b;box-shadow:0 20px 80px #172e3540}dialog::backdrop{background:#243b3066}.close{float:right;font-size:25px;padding:0;width:48px}label{display:block;margin:18px 0;font-size:14px;font-weight:600}input:not([type=radio]):not([type=checkbox]),textarea,select{display:block;width:100%;padding:14px;border:1px solid #bcc9b3;border-radius:10px;background:white;margin-top:8px;min-height:48px;color:#304a3b}textarea{min-height:100px}fieldset{border:1px solid var(--line);border-radius:12px;margin:20px 0}legend{padding:0 8px}.choice{display:flex;align-items:center;gap:12px;min-height:48px;margin:5px 0;padding:8px}input[type=radio],input[type=checkbox]{width:23px;height:23px;accent-color:var(--green)}.wide{width:100%}video{width:100%;border-radius:12px;margin-top:20px}.result{width:100%;display:flex;flex-direction:column;align-items:start;margin-top:10px;gap:6px}.result span{font-weight:normal;font-size:14px}.reactions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.reactions label{margin:8px 0;display:flex;flex-direction:column;align-items:center;text-align:center;font-size:12px;gap:8px}.reactions span{font-size:35px}.sticker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.sticker{padding:28px 22px;border-radius:22px}.sticker>span{font-size:60px;display:block}.sticker h2{font-size:22px}.sticker p{font-size:14px;font-weight:normal}.locked{background:#eeeee4;color:#65725c;cursor:default}.locked>span{opacity:.45}.nature-fact{text-align:center;padding:30px}.nature-fact>span{font-size:100px}.woodland-scroll{overflow-x:auto;border:1px solid #d5dfc9;border-radius:24px}.woodland{height:450px;width:1300px;position:relative;background:linear-gradient(#e3eedf 65%,#bfcf9e 65%);overflow:hidden}.tree-sign{position:absolute;bottom:20px;left:38%;background:#f5ead0;padding:12px 24px;border-radius:8px;font:19px 'Patrick Hand',cursive;z-index:3}.woodland-caption{text-align:center}.history article{display:flex;gap:20px;padding:20px;border-bottom:1px solid var(--line)}.history article>span{font-size:35px}.history p{margin:5px 0;color:#707b68}.reader-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.reader-row span{flex:1}.reader-row button{padding:8px 12px;font-size:12px}.dates{display:flex;gap:20px}.dates label{flex:1}#message{color:#845225}button[hidden],video[hidden]{display:none}@media(max-width:900px){.shelf-layout{grid-template-columns:1fr 220px;gap:20px}.books{grid-template-columns:repeat(2,minmax(0,1fr))}.header-actions button{font-size:12px;padding:10px}.sticker-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){header{align-items:start;padding:16px 5%}.brand{font-size:14px}.brand span{font-size:21px;margin-left:0}.header-actions{flex-direction:column;gap:4px}.intro{align-items:start;flex-direction:column}.shelf-layout{display:flex;flex-direction:column}aside{width:100%}.books{gap:22px 16px}.cover strong{font-size:21px}footer{gap:20px}.welcome{padding-top:25px}.welcome-tree span{display:block}.profiles{gap:16px}.profile{width:190px}.sticker-grid{gap:12px}.sticker{padding:20px 12px}.reactions{gap:3px}dialog{padding:24px}.dates{gap:10px}}

/* Storybook meadow: a permanent world, with botanical layers in SVG world coordinates. */
.woodland-note{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:12px}
.woodland-note p{margin:0}
.woodland-scroll{background:#eeeede;border-color:#cbd2be;overscroll-behavior-x:contain;scrollbar-color:#8c9b78 #e8eadb;scrollbar-width:thin;touch-action:pan-x pan-y}
.woodland{height:640px;width:2800px;background:#e9eadb;isolation:isolate}
.meadow-art{display:block;position:absolute;inset:0;width:2800px;height:640px;pointer-events:none}



.tree-sign{left:385px;bottom:17px;background:#f7f2e3eb;border:1px solid #b8bea0;border-radius:5px;padding:11px 21px;font-size:18px;text-align:center;box-shadow:none}
.tree-sign small{display:block;font:11px 'Patrick Hand',cursive;margin-top:5px;color:#70805e;letter-spacing:.5px}
.mini-tree{font-size:initial;margin:8px -10px 0;height:220px}
.mini-tree svg{height:100%;width:100%;display:block}
.welcome-tree{font-size:initial;margin-top:28px}
.welcome-portrait{height:210px;margin:auto;width:230px}
.welcome-portrait svg{width:100%;height:100%}
.welcome-tree span{display:block;margin-top:12px}
.woodland-caption{font:15px 'Patrick Hand',cursive;color:#6c795d;margin-top:20px}
@media(max-width:650px){.woodland-note{gap:6px}}

/* Warm drawing paper, clean field-journal spacing, quiet pigment. */
body{background-color:#f7f3e9;background-image:url('/assets/paper.svg')}
header{background-color:#faf7ed;background-image:url('/assets/paper.svg')}
aside,dialog,.profile,.sticker{background-image:url('/assets/paper.svg')}
button{box-shadow:none}
.profile,.sticker,aside{border-radius:12px}
.cover{box-shadow:none;background-image:url('/assets/paper.svg');border:1px solid #88937755}
.cover>span svg{height:100px;width:90px}
.woodland-scroll{border-radius:12px;background-image:url('/assets/paper.svg')}
.botanical-label{letter-spacing:.2px}
.sticker-grid{gap:24px}
.specimen-card{position:relative;padding:24px 26px 28px;background-color:#faf7ee;border:1px solid #cfd3bf;text-align:left;font-weight:normal}
.specimen-card:hover{background-color:#f3f2e6}
.specimen-card .collection-number{display:block;font:10px 'Patrick Hand',cursive;letter-spacing:1.8px;color:#748167;border-bottom:1px solid #d8ddc9;padding-bottom:12px}
.specimen-plate{height:145px;display:flex;align-items:center;justify-content:center;margin:18px 0 12px}
.specimen-art{width:90%;height:100%;overflow:visible}
.specimen-card h2{margin:12px 0 5px;font-size:25px;line-height:1.2}
.scientific{font:normal 15px 'Patrick Hand',cursive;color:#65745b;display:block;line-height:1.6}
.specimen-card p{font-size:15px;line-height:1.65;margin:18px 0}
.specimen-card .field-link{font:12px 'Patrick Hand',cursive;color:#647658;display:block;margin-top:20px}
.specimen-card.locked{background-color:#f3f2e9;color:#737e68}
.undiscovered{opacity:.23;filter:grayscale(1)}
.nature-fact.specimen-label{text-align:left;padding:15px 8px 20px}
.specimen-label .specimen-plate{height:200px;margin:24px auto 28px;max-width:300px}
.specimen-label h1{margin-bottom:6px;font-size:38px}
.specimen-label h2{font-size:25px;line-height:1.35;margin:24px 0 16px}
.specimen-label>p:not(.eyebrow){font-size:16px;line-height:1.8;max-width:46ch}
.specimen-source{display:inline-flex;align-items:center;min-height:48px;font-size:12px;line-height:1.6;color:#68795d;margin-top:15px;text-underline-offset:4px}
.avatar{background:none;border:1px solid #c3ccb6}
.avatar svg{width:95px;height:90px}
.reader-mark{display:inline-block;width:34px;height:30px;vertical-align:middle;margin-right:8px}
.reader-mark svg{height:100%;width:100%}
.ink-icon{display:inline-block;width:27px;height:27px;vertical-align:middle;flex-shrink:0}
nav button{display:flex;align-items:center;gap:9px}
.brand>.ink-icon{width:24px;height:24px}
.empty>span>.ink-icon{width:65px;height:65px}
.history article>span .ink-icon{width:36px;height:36px}

/* Supplied PNG artwork: no filters, tint, cropping, tracing or hover transformations. */
.woodland{width:var(--world-width,1760px);height:640px;background:none}
.meadow-art.supplied-woodland{width:100%;height:640px}
.woodland-panorama{position:absolute;inset:0;display:block;width:100%;height:640px;object-fit:contain;filter:none;pointer-events:none;user-select:none}
.supplied-woodland{pointer-events:none}
.woodland-object{position:absolute;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:48px;min-height:48px}
button.woodland-object{pointer-events:auto;cursor:pointer}
.woodland-object:hover{background:none;transform:none}
.woodland-object img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:none;opacity:1;user-select:none}
.supplied-specimen{display:block;max-width:100%;max-height:100%;object-fit:contain;filter:none}

/* Supplied profile pictures are contained without cropping or tinting. */
.profile-art{display:block;width:100%;height:100%;object-fit:contain;filter:none;opacity:1}
.avatar .profile-art{width:108px;height:108px}
.profile-area{width:230px;display:flex;flex-direction:column;gap:10px}
.profile-area .profile{width:100%}
.choose-picture{width:100%;min-height:48px;font-size:14px}
.avatar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px}
.avatar-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;min-height:175px}
.avatar-choice img{display:block;width:100%;height:125px;object-fit:contain;filter:none}
.avatar-choice[aria-pressed=true]{border:2px solid #345a48;background:#edf0e2}
.avatar-choice strong{font:22px 'Patrick Hand',cursive}
.bookshelf-reading-tree{width:min(170px,100%);margin:12px auto 8px;pointer-events:none}
.bookshelf-reading-tree img{display:block;width:100%;height:auto;object-fit:contain;filter:none;opacity:1;user-select:none}
@media(max-width:650px){.profile-area{width:190px}.avatar-grid{gap:12px}.avatar-choice{padding:14px}.avatar-choice img{height:100px}}
@media(max-width:650px){.specimen-card{padding:20px 16px}.specimen-card h2{font-size:22px}.specimen-plate{height:120px}.sticker-grid{gap:16px}.specimen-label h1{font-size:32px}}

/* Early oak cutaways belong in the journal. A quiet bare-earth surface only; no plant drawing. */
.tree-earth::before{content:'';position:absolute;left:5px;top:0;width:50px;height:16px;border-radius:50%;background:#79654b;opacity:.45;pointer-events:none}
.specimen-card .field-link{background:none;border-color:var(--line);padding:10px 12px}
.specimen-card:not(.locked) .specimen-plate{height:180px}


/* Preview only the immediate discoveries; source artwork stays unchanged. */
.specimen-card.growing .supplied-specimen{opacity:.5;filter:none}
.specimen-card.placed .supplied-specimen,.specimen-card.ready .supplied-specimen{opacity:1}

/* Papery sticker placement; unchanged supplied images and no drag gesture. */
.loose-sticker{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:6px;border:0;background:none;transform:translateY(-5px) rotate(-2deg)}
.loose-sticker:hover{background:none}
.loose-sticker .supplied-specimen{filter:drop-shadow(1px 0 1px #fffdf6) drop-shadow(-1px 0 1px #fffdf6) drop-shadow(0 5px 4px #304a3b30)}
.specimen-card.placed .supplied-specimen{filter:none}
/* The resting image never rotates. Temporary strips roll from the lower edge. */
.sticker-roll{display:block;position:relative;perspective:700px;perspective-origin:50% 70%;transform-style:preserve-3d;isolation:isolate}
.sticker-roll .roll-attached{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;filter:none}
.roll-strip{position:absolute;top:0;left:0;width:100%;transform-origin:50% 50%;transform-style:preserve-3d;pointer-events:none}
.roll-front{position:absolute;left:0;max-width:none;max-height:none;object-fit:contain;clip-path:inset(0);backface-visibility:hidden}
.roll-strip{overflow:visible}
.roll-strip .roll-front{clip-path:inset(var(--strip-top,0px) 0 var(--strip-bottom,0px) 0)}
.roll-underside{position:absolute;inset:0;background:#f8f1df;mask-repeat:no-repeat;transform:rotateX(180deg);backface-visibility:hidden}
.roll-contact-shadow{position:absolute;left:3%;width:94%;background:#544734;filter:blur(4px);border-radius:50%;pointer-events:none}
@media(prefers-reduced-motion:reduce){.loose-sticker{transform:none}.sticker-roll{display:none}}

.sticker-test-controls{margin-top:24px;text-align:right}.sticker-test-controls button{font-size:12px;font-weight:normal;background:none}

#book-place{padding:8px 0 12px}#book-place h2{margin:12px 0}#book-place input{max-width:180px}#book-place #page-total{display:block;margin-top:8px}.book-page-edit{margin:16px 0;font-size:13px}.book-page-edit summary{cursor:pointer;min-height:48px;display:list-item;padding:14px 0}

body{font-weight:400}em,i{font-style:normal}.pin-input{max-width:260px;letter-spacing:.55em;font-size:28px;text-align:center}.grown-up-edit{font-size:13px;background:none}

/* Illustrated native radio choices in grown-up profile forms. */
.woodland-friend-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.woodland-friend-option{display:flex;align-items:center;gap:10px;min-height:64px;margin:0;padding:8px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-weight:400}.woodland-friend-option img{width:48px;height:48px;object-fit:contain;flex-shrink:0}.woodland-friend-option:has(input:checked){background:var(--soft);border-color:var(--green)}.woodland-friend-option:has(input:focus-visible){outline:3px solid #b37837;outline-offset:3px}

a[data-external-url]{cursor:pointer;text-decoration:underline}


/* Header-only lockup: supplied artwork plus live Patrick Hand wording. */
header:has(.brand){flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;max-width:100%;line-height:1.1}
.brand:hover{background:none}
.brand .brand-illustration{display:block;width:85px;height:85px;object-fit:contain;flex:0 0 auto;margin-block:-6.5px}
.brand span{margin-left:0}
.brand .brand-words{display:block;font-size:inherit}
.brand .brand-family{font-size:21px;font-weight:400}
.brand .brand-title{font-size:28px;font-weight:600;margin-top:2px}
@media(max-width:650px){.brand{gap:8px}.brand .brand-illustration{width:66px;height:66px;margin-block:-5px}.brand .brand-family{font-size:18px}.brand .brand-title{font-size:24px}}
@media(max-width:380px){.brand{gap:6px}.brand .brand-illustration{width:57px;height:57px;margin-block:-4.5px}.brand .brand-family{font-size:16px}.brand .brand-title{font-size:21px}}


/* Earned Field Notes: existing fronts, with a separate historical reverse. */
.specimen-card[data-flippable]{perspective:1100px;cursor:pointer}
.field-note-faces{display:grid;transform-style:preserve-3d;transition:transform 550ms ease-in-out}
.field-note-front,.field-note-back{grid-area:1/1;backface-visibility:hidden;min-width:0}
.field-note-back{transform:rotateY(180deg);transform-origin:50% 50%;background:transparent;display:flex;flex-direction:column;width:100%;box-sizing:border-box;font-family:inherit;font-weight:400;font-style:normal;font-stretch:normal;font-kerning:normal}
.is-flipped .field-note-faces{transform:rotateY(180deg)}
.field-note-turn{display:block;background:none;border:0;font-weight:400;font-size:14px;padding:8px 0;color:#647658;text-align:left;min-height:48px}
.field-note-turn:hover{background:none}
.field-note-back .field-note-turn{margin-top:auto}
@media(prefers-reduced-motion:reduce){.field-note-faces{transition:none}}


/* Quiet anticipation uses the original supplied PNG, with no image filters. */
.specimen-card.locked .supplied-specimen{opacity:.13;filter:none}
.habitat-discovery img{position:absolute;left:var(--art-left);top:var(--art-top);width:var(--art-width);height:var(--art-height);transform:rotate(var(--art-rotation));transform-origin:50% 100%;object-fit:contain}
.woodland-local-vegetation{position:absolute;display:block;pointer-events:none;background-repeat:no-repeat;mask-image:linear-gradient(to bottom,transparent,#000 var(--occlusion-feather)),linear-gradient(to right,transparent,#000 3px,#000 calc(100% - 3px),transparent);mask-composite:intersect}

/* Local atmospheric integration; never a rectangle or silhouette shadow. */
.habitat-discovery img{filter:var(--art-filter,none);opacity:var(--art-opacity,1)}
.woodland-contact-shadow{position:absolute;display:block;border-radius:50%;pointer-events:none}

/* Nook hierarchy: books first, a quiet companion tree alongside. */
.nook-title{font-size:clamp(36px,4vw,48px);line-height:1.15;letter-spacing:0;margin:0 0 12px}
.nook-tree{background-color:#f7f5ec;border-color:#dedfce;padding:22px;max-width:100%}
.nook-tree h2{margin:10px 0;font-size:25px}
.nook-tree .bookshelf-reading-tree{height:155px;width:170px;margin:10px auto}
.nook-tree .bookshelf-reading-tree img{height:100%;width:100%;object-fit:contain}
.nook-tree-progress{margin:8px 0}
.nook-tree-sentiment{margin:12px 0}
.nook-tree .field-link{background:none;border-color:transparent;font-weight:400}
@media(max-width:900px){.shelf-layout{grid-template-columns:minmax(0,1fr)}.nook-tree{width:100%}}

/* The room covers the entire content-sized Nook main, including its footer.
   Proportional cover sizing permits outer cropping, never stretching or tiling. */
.nook-view main{
 max-width:none;
 min-height:66.667vw;
 padding:42px max(5%,calc((100vw - 1170px)/2)) 32px;
 background-color:#e9d7b7;
 background-image:url('/assets/woodland/Reading Nook.png?v=7e154bd85f97');
 background-size:cover;
 background-position:50% 50%;
 background-repeat:no-repeat;
}
.nook-view .intro{
 padding:18px 22px;
 background:rgba(244,232,205,.9);
 border:1px solid rgba(126,107,75,.16);
 border-radius:12px;
 box-shadow:0 2px 10px rgba(68,48,25,.04);
}
.nook-view .intro p{color:#4e604b}
.nook-view nav{
 padding:10px 12px;
 background:rgba(244,232,205,.9);
 border:1px solid rgba(126,107,75,.16);
 border-radius:12px;
}
.nook-view .shelf-layout>div{
 background:rgba(244,232,205,.88);
 border-radius:12px;
 box-shadow:0 0 0 12px rgba(244,232,205,.88);
}
.nook-view .nook-tree{
 background-color:rgba(244,232,205,.9);
 border-color:rgba(126,107,75,.2);
 box-shadow:0 2px 10px rgba(68,48,25,.05);
}
.nook-view footer{
 background:rgba(244,232,205,.9);
 padding:16px 18px;
 border-radius:10px;
 color:#53614d;
}
@media(max-width:900px){
 .nook-view main{padding-top:28px;background-position:48% 50%}
 .nook-view .shelf-layout{gap:30px}
}
@media(max-width:650px){
 .nook-view main{padding-top:24px;background-position:52% 50%}
 .nook-view .intro{padding:16px}
 .nook-view .shelf-layout>div{box-shadow:0 0 0 8px rgba(244,232,205,.88)}
}

/* Nook controls stand apart from translucent paper; book cards stay unchanged. */
.nook-view nav button,.nook-view .filters button,.nook-view .nook-tree .field-link{
 background:#fbf5e7;
 border:1px solid #9aa98a;
 color:#304f3c;
}
.nook-view nav button:hover,.nook-view .filters button:hover,.nook-view .nook-tree .field-link:hover{
 background:#edf0df;
 border-color:#687f5d;
}
.nook-view nav [aria-current],.nook-view .filters [aria-pressed=true]{
 background:#c9d8b7;
 border-color:#789165;
 color:#294632;
}
.nook-view nav [aria-current]:hover,.nook-view .filters [aria-pressed=true]:hover{background:#becfaa;border-color:#617d50}
.nook-view main button.primary{background:#345a48;border-color:#345a48;color:#fffdf6}
.nook-view main button.primary:hover{background:#294b3b;border-color:#294b3b}
.nook-view nav button:focus-visible,.nook-view .filters button:focus-visible,.nook-view .nook-tree .field-link:focus-visible,.nook-view main button.primary:focus-visible{
 outline:3px solid #89602d;
 outline-offset:3px;
}

/* Orientation is presentation only: the mounted app and any open modal retain
   their state while hidden. No reload or persistence work is involved. */
.orientation-message{display:none}
@media(orientation:portrait){
 #app,dialog,dialog[open]{display:none!important}
 dialog::backdrop{display:none}
 .orientation-message{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:100vh;min-height:100svh;box-sizing:border-box;
  padding:32px 24px;text-align:center;
  background:#f7f3e9 url('/assets/paper.svg');color:#304a3b;
 }
 .orientation-message h1{font-size:clamp(28px,7vw,42px);letter-spacing:0;max-width:540px}
 .orientation-message p{max-width:360px;margin:10px 0;font-size:20px}
 .orientation-device{width:96px;height:62px;border:2px solid #6c7c58;border-radius:12px;position:relative;margin-bottom:28px}
 .orientation-device::after{content:'';position:absolute;right:7px;top:26px;width:5px;height:5px;border:1px solid #6c7c58;border-radius:50%}
 .orientation-device span{display:block;font-size:38px;line-height:58px;color:#345a48}
}
/* Short landscape viewports scroll normally; compress gaps, never the UI or art. */
@media(orientation:landscape) and (max-height:600px){
 header{padding-top:10px;padding-bottom:10px;gap:12px}
 .header-actions{flex-direction:row;flex-wrap:wrap;gap:6px}
 .header-actions button{min-height:48px;padding:8px 12px}
 main{padding-top:18px;padding-bottom:20px}
 .nook-view main{padding-top:18px;padding-bottom:20px}
 .intro{margin-bottom:16px;gap:14px;flex-direction:row;align-items:center}
 .nook-view .intro{padding:12px 16px}
 nav{margin-bottom:18px;padding-bottom:8px}
 .nook-view nav{padding:6px 10px}
 .filters{margin-bottom:16px;gap:6px}
 .filters button,nav button{min-height:48px}
 footer{margin-top:26px}
 .welcome{padding-top:22px}
 .profiles{margin-top:22px;gap:18px}
 dialog{max-height:90dvh;padding:20px 24px}
}

/* Embedded vector ink sits in panel backgrounds, beneath all interactive content.
   Different specimens/edges avoid a repeated frame; no dimensions are changed. */
.nook-view nav{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23637c59%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.14%22%3E%3Cpath%20d%3D%22M8%2088Q36%2067%2058%2028%22%2F%3E%3Cpath%20d%3D%22M26%2074Q11%2073%2012%2060Q27%2061%2026%2074%22%2F%3E%3Cpath%20d%3D%22M34%2063Q50%2065%2053%2051Q40%2050%2034%2063%22%2F%3E%3Cpath%20d%3D%22M44%2048Q27%2047%2030%2033Q43%2035%2044%2048%22%2F%3E%3Cpath%20d%3D%22M53%2034Q66%2037%2071%2024Q58%2024%2053%2034%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:60px 60px;background-position:right 8px center;background-repeat:no-repeat}
.nook-view .shelf-layout>div{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23637c59%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.17%22%3E%3Cpath%20d%3D%22M86%2094Q68%2066%2040%2013%22%2F%3E%3Cpath%20d%3D%22M76%2080Q58%2079%2052%2065Q67%2066%2076%2080M76%2080Q82%2063%2073%2053Q69%2068%2076%2080%22%2F%3E%3Cpath%20d%3D%22M66%2062Q49%2061%2044%2048Q59%2050%2066%2062M66%2062Q73%2046%2064%2037Q61%2050%2066%2062%22%2F%3E%3Cpath%20d%3D%22M55%2043Q40%2043%2034%2030Q48%2032%2055%2043M55%2043Q62%2029%2053%2020Q51%2034%2055%2043%22%2F%3E%3Cpath%20d%3D%22M44%2023Q32%2022%2029%2012Q39%2014%2044%2023%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:86px 96px;background-position:right bottom;background-repeat:no-repeat}
.nook-view .nook-tree{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23637c59%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.23%22%3E%3Cpath%20d%3D%22M86%2094Q68%2066%2040%2013%22%2F%3E%3Cpath%20d%3D%22M76%2080Q58%2079%2052%2065Q67%2066%2076%2080M76%2080Q82%2063%2073%2053Q69%2068%2076%2080%22%2F%3E%3Cpath%20d%3D%22M66%2062Q49%2061%2044%2048Q59%2050%2066%2062M66%2062Q73%2046%2064%2037Q61%2050%2066%2062%22%2F%3E%3Cpath%20d%3D%22M55%2043Q40%2043%2034%2030Q48%2032%2055%2043M55%2043Q62%2029%2053%2020Q51%2034%2055%2043%22%2F%3E%3Cpath%20d%3D%22M44%2023Q32%2022%2029%2012Q39%2014%2044%2023%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23637c59%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.16%22%3E%3Cpath%20d%3D%22M28%2090Q45%2069%2068%2022%22%2F%3E%3Cpath%20d%3D%22M43%2068C29%2070%2024%2062%2032%2056C18%2051%2022%2040%2035%2042C25%2032%2033%2022%2045%2029C40%2014%2052%2010%2060%2022C62%209%2076%207%2076%2024C92%2020%2092%2035%2080%2039C96%2042%2091%2056%2078%2053C86%2068%2073%2073%2064%2063C58%2078%2047%2079%2043%2068Z%22%2F%3E%3Cpath%20d%3D%22M45%2066L59%2042M53%2053L38%2046M59%2042L75%2039%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url('/assets/paper.svg');background-size:78px 88px,62px 66px,auto;background-position:right top,left bottom,left top;background-repeat:no-repeat,no-repeat,repeat}
.nook-view footer{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23637c59%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.14%22%3E%3Cpath%20d%3D%22M8%2088Q36%2067%2058%2028%22%2F%3E%3Cpath%20d%3D%22M26%2074Q11%2073%2012%2060Q27%2061%2026%2074%22%2F%3E%3Cpath%20d%3D%22M34%2063Q50%2065%2053%2051Q40%2050%2034%2063%22%2F%3E%3Cpath%20d%3D%22M44%2048Q27%2047%2030%2033Q43%2035%2044%2048%22%2F%3E%3Cpath%20d%3D%22M53%2034Q66%2037%2071%2024Q58%2024%2053%2034%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:65px 55px;background-position:right 4px bottom;background-repeat:no-repeat}

/* Home is the entrance: the supplied doorway remains the dominant artwork. */
.home-view{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:#e9d7b7 url('/assets/woodland/Doorway.png') center center / cover no-repeat}
.home-view .doorway-header{background:none;border:0;padding:16px 5%;gap:12px;align-items:center}
.home-view .brand{background:rgba(244,232,205,.88);padding:6px 12px;border-radius:12px}
.home-view .doorway-adults{display:flex;flex-wrap:wrap;gap:6px}
.home-view .doorway-adults button{background:rgba(244,232,205,.9);border-color:#9aa98a;font-size:14px;padding:8px 12px}
.home-view .doorway-welcome{max-width:none;width:100%;flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:24px 5% 30px;text-align:left}
.home-view .doorway-welcome h1{font-size:clamp(26px,3vw,36px);letter-spacing:0;margin:0 0 12px;padding:8px 14px;background:rgba(244,232,205,.9);border-radius:12px}
.home-view .profiles{justify-content:flex-start;gap:14px;margin:0;max-width:100%}
.home-view .profile-area{width:136px;gap:6px}
.home-view .profile{min-height:142px;padding:12px 10px;gap:6px;background:rgba(244,232,205,.92);border:1px solid #9aa98a;border-radius:16px}
.home-view .avatar{width:78px;height:78px;background:none;border-radius:0}
.home-view .profile strong{font-size:25px;line-height:1.2;overflow-wrap:anywhere}
.home-view .profile[aria-pressed=true]{background:#d7e2c6;border:2px solid #345a48;box-shadow:0 0 0 2px rgba(244,232,205,.8)}
.home-view .profile:hover,.home-view .choose-picture:hover{background:#e6ecd9}
.home-view .choose-picture{background:rgba(244,232,205,.92);border-color:#9aa98a;font-size:13px;padding:6px}
.home-view .doorway-entry{margin-top:12px;min-height:48px}
.home-view .doorway-entry .primary{background:#345a48;color:#fffdf6;border-color:#345a48}
.doorway-announcement{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(orientation:landscape) and (max-height:600px){
 .home-view{background-position:50% 45%}
 .home-view .doorway-header{padding-top:8px;padding-bottom:8px}
 .home-view .doorway-welcome{padding-top:8px;padding-bottom:12px}
 .home-view .doorway-welcome h1{font-size:26px;margin-bottom:6px;padding:4px 12px}
 .home-view .profiles{gap:10px}
 .home-view .profile-area{width:120px;gap:4px}
 .home-view .profile{min-height:92px;padding:6px 8px;gap:3px}
 .home-view .avatar{width:48px;height:48px}
 .home-view .profile strong{font-size:22px}
 .home-view .doorway-entry{margin-top:6px}
}
@media(orientation:landscape) and (max-width:900px){.home-view .doorway-header .brand{padding:4px 8px}.home-view .doorway-header .brand-illustration{width:64px;height:64px;margin-block:0}}


/* Supplied illustrated banner: transparent image and live central controls. */
.home-view .doorway-welcome{align-items:center;padding-bottom:18px}
.home-view .reader-scroll{position:relative;width:min(1200px,90%);padding:0;margin:0;background:none;border:0;box-shadow:none}
.home-view .reader-banner-art{display:block;width:100%;height:auto;object-fit:contain;pointer-events:none;user-select:none}
.home-view .reader-banner-controls{position:absolute;inset:32% 23% 24% 23%;display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:14px}
.home-view .reader-scroll h1{font-size:23px;line-height:1.15;padding:0;margin:0;background:none;border-radius:0}
.home-view .reader-scroll-choices{display:flex;align-items:center;gap:12px;overflow-x:auto;overflow-y:hidden;min-width:0;max-height:100%;padding:4px;scrollbar-width:thin;scrollbar-color:#9aa98a transparent;overscroll-behavior-x:contain}
.home-view .home-reader{flex:0 0 88px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 5px;min-height:90px;background:none;border:0;border-radius:12px;font-weight:400;box-shadow:none}
.home-view .home-reader-avatar{display:grid;place-items:center;width:60px;height:60px;flex-shrink:0}
.home-view .home-reader-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.home-view .home-reader strong{font-size:21px;line-height:1.1;font-weight:400;overflow-wrap:anywhere;max-width:100%}
.home-view .home-reader:hover{background:#ceddb833}
.home-view .home-reader:active{background:#ceddb855}
.home-view .home-reader:focus-visible{outline:2px solid #637c59;outline-offset:-2px}
.home-view .doorway-key{width:22px;height:22px;vertical-align:middle;color:#4f5247}
@media(orientation:landscape) and (max-width:1000px){
 .home-view .reader-banner-controls{grid-template-columns:120px minmax(0,1fr);gap:8px}
 .home-view .reader-scroll h1{font-size:21px}
}
@media(orientation:landscape) and (max-height:500px){
 .home-view .doorway-welcome{padding-top:0;padding-bottom:10px}
 .home-view .reader-scroll{width:min(960px,96%)}
 .home-view .reader-banner-controls{grid-template-columns:100px minmax(0,1fr);gap:6px}
 .home-view .reader-scroll h1{font-size:18px}
 .home-view .home-reader-avatar{width:52px;height:52px}
 .home-view .home-reader{flex-basis:76px;min-height:78px;padding:3px 4px}
 .home-view .home-reader strong{font-size:19px}
 .home-view .reader-scroll-choices{gap:6px;padding:2px}
}

/* Home composition follows the complete 1672 × 941 doorway, including letterbox
   space. Banner coordinates belong to that contained illustration rectangle. */
.home-view{
 --doorway-width:min(100vw,calc(100svh * 1.7768331562));
 --doorway-height:min(100svh,calc(100vw * .5627990431));
 position:relative;height:100svh;min-height:100svh;
 background-color:#253b2c;background-size:contain;background-position:center center;
}
.home-view .doorway-header{position:relative;z-index:2}
.home-view .doorway-welcome{
 position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
 width:var(--doorway-width);height:var(--doorway-height);
 max-width:none;min-height:0;padding:0;display:block;flex:none;
}
.home-view .reader-scroll{
 position:absolute;left:50%;bottom:1%;transform:translateX(-50%);
 width:65%;margin:0;padding:0;
}
.home-view .reader-banner-controls{
 inset:31% 23% 20% 23%;grid-template-columns:clamp(80px,calc(var(--doorway-width) * .12),145px) minmax(0,1fr);
 gap:clamp(4px,1vw,10px);
}
.home-view .reader-scroll h1{font-size:clamp(16px,calc(var(--doorway-width) * .022),23px)}
.home-view .reader-scroll-choices{gap:4px;padding:2px;max-height:100%}
.home-view .home-reader{flex-basis:clamp(54px,calc(var(--doorway-width) * .076),82px);min-height:48px;padding:2px;gap:2px}
.home-view .home-reader-avatar{width:clamp(36px,calc(var(--doorway-width) * .065),60px);height:clamp(36px,calc(var(--doorway-width) * .065),60px)}
.home-view .home-reader strong{font-size:clamp(16px,calc(var(--doorway-width) * .027),21px)}
.home-view .home-reader{gap:0}
.home-view .home-reader strong{position:relative;margin-top:-5px}
.home-view .reader-scroll-choices{position:relative;top:-3px}

/* The cottage window is stationary; only its clipped outside view scrolls. */
.woodland-view main>.intro{display:none}
.woodland-view main{max-width:none;padding:12px 2% 20px}
.woodland-view nav{margin-bottom:16px;padding-bottom:8px}
.woodland-window{position:relative;width:100%;aspect-ratio:1672/941;margin:auto;overflow:hidden}
.woodland-window-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;z-index:2;user-select:none}
.window-outside-mask{position:absolute;inset:0;mask-image:linear-gradient(#fff,#fff),url('/assets/woodland/window.png');mask-size:100% 100%;mask-repeat:no-repeat;mask-composite:exclude}
.woodland-window .window-viewport{position:absolute;left:16.75%;top:15.8%;width:66.75%;height:46.2%;overflow-x:auto;overflow-y:hidden;background:none;border:0;border-radius:0;scrollbar-width:none;touch-action:pan-x pan-y;overscroll-behavior-x:contain;cursor:grab}
.window-viewport::-webkit-scrollbar{display:none}
.window-viewport:active{cursor:grabbing}
.window-world-track{position:relative}
.window-world-track .woodland{position:absolute;left:0;bottom:0;transform:scale(var(--window-world-scale,1));transform-origin:0 100%}
.window-explore-hint{text-align:center;font-size:14px;color:#65725c;margin:8px 0 0}
@media(orientation:landscape) and (max-height:600px){.woodland-view main{padding-top:8px}.woodland-view nav{margin-bottom:10px}.woodland-window{width:100%}}

/* Woodland room occupies its route, with navigation resting over the upper
   timber. The full room image retains its natural height; no cream footer. */
.woodland-view main{position:relative;max-width:none;padding:0;background:#67533c}
.woodland-view main>nav{position:absolute;z-index:3;top:10px;left:2%;right:2%;margin:0;padding:6px 10px;background:rgba(244,232,205,.9);border:1px solid rgba(126,107,75,.16);border-radius:12px}
.woodland-view main>footer{display:none}
.woodland-view .woodland-window{width:100%;margin:0;aspect-ratio:1672/941}
@media(orientation:landscape) and (max-height:600px){.woodland-view main{padding:0}.woodland-view main>nav{top:6px;padding:4px 8px}}
/* Enlarge the stationary composition uniformly: the opening is 78.1% of
   content width. Crop peripheral sides and lower blanket, retaining the frame. */
.woodland-view .woodland-window{aspect-ratio:1672/820}
.woodland-view .woodland-window-frame{inset:auto;left:-8.5%;top:0;width:117%;height:auto;aspect-ratio:1672/941;object-fit:contain}
.woodland-view .window-outside-mask{inset:auto;left:-8.5%;top:0;width:117%;height:auto;aspect-ratio:1672/941}
/* Extend the visible lower room only; opening/frame retain their exact geometry. */
#app.woodland-view{min-height:100svh;display:flex;flex-direction:column}
.woodland-view main{width:100%;flex:1;display:flex;flex-direction:column}
.woodland-view #content{flex:1;display:flex;flex-direction:column}
.woodland-view .woodland-window{flex:1;min-height:calc(100vw * 820 / 1672);aspect-ratio:auto}
/* The existing four-book extent caps the collection, not its filter controls. */
.nook-view .shelf-layout>div{align-self:start;min-width:0}
.nook-view .books{
 max-height:var(--bookshelf-collection-height,none);
 overflow-y:auto;overflow-x:hidden;align-content:start;
 scrollbar-width:none;
}
.nook-view .books::-webkit-scrollbar{display:none}
.nook-view .books:focus-visible{outline:3px solid #b37837;outline-offset:4px}

/* The new 1671 x 941 desk composition is one complete, stationary scene.
   Coordinates below refer to the artwork, not the browser viewport. */
#app.journal-view{min-height:100svh;display:flex;flex-direction:column}
.journal-view main>.intro{display:none}
.journal-view main{position:relative;max-width:none;width:100%;padding:0;flex:1 0 auto;aspect-ratio:1671/941;container-type:inline-size;background:url('/assets/woodland/sticker Journal.png?v=e6326514ccc6') center / cover no-repeat}
.journal-view main>nav{position:absolute;z-index:3;left:20%;top:1%;margin:0;padding:0;border:0;background:none;gap:6px}
.journal-view main>nav button{min-height:32px;padding:4px 10px;font-size:14px}
.journal-view #content{position:absolute;inset:0}
.journal-view #content>.filters{position:absolute;z-index:3;left:20%;top:8%;margin:0;padding:0;gap:6px;background:none}
.journal-view #content>.filters button{min-height:28px;padding:3px 10px;font-size:12px}
.journal-view main>nav button,.journal-view #content>.filters button{background:rgba(244,232,205,.85);border:1px solid rgba(108,128,92,.35)}
.journal-view main>nav [aria-current],.journal-view #content>.filters [aria-pressed=true]{background:#e2e8d9;border-color:#c0ceb6}
.journal-view main>nav button:hover,.journal-view #content>.filters button:hover{background:#e7ecdf}
.journal-view #sticker-status{position:absolute;left:53%;top:13%;z-index:3;margin:0}
.journal-view #content>.sticker-grid{position:absolute;inset:0;display:block}
.journal-view .journal-spread{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;background:none;touch-action:pan-y}
.journal-view .journal-spread .specimen-card{position:absolute;left:25%;top:24%;width:32.590096cqw;height:calc(23.174354cqw - 12px);min-height:0;min-width:0;padding:9px 12px;border-radius:10px;transform:scale(.62);transform-origin:top left;box-shadow:0 3px 8px #46331d1a}
.journal-view .journal-spread .specimen-card:nth-of-type(2){top:50%}
.journal-view .journal-spread .specimen-card:nth-of-type(3){left:53%}
.journal-view .journal-spread .specimen-card:nth-of-type(4){left:53%;top:50%}
.journal-view .journal-spread .collection-number{font-size:8px;letter-spacing:1px;padding-bottom:5px}
.journal-view .journal-spread .specimen-plate{height:55px;margin:4px 0}
.journal-view .journal-spread h2{font-size:16px;line-height:1.15;margin:4px 0}
.journal-view .journal-spread p{font-size:12px;line-height:1.25;margin:4px 0}
.journal-view .journal-spread .field-link,.journal-view .journal-spread .field-note-turn{font-size:12px;line-height:1.2;min-height:28px;padding:4px 0;margin:0}
.journal-view .journal-spread .field-note-faces{height:100%}
.journal-view .journal-spread .field-note-front{display:flex;flex-direction:column}
.journal-view .journal-spread .field-note-back{padding:0;overflow:auto}
.journal-view .journal-spread .field-note-turn{margin-top:auto}
.journal-view .journal-spread .supplied-specimen{object-fit:contain}
.journal-view .journal-previous,.journal-view .journal-next{position:absolute;top:79%;min-height:36px;padding:4px 12px;font-size:16px;font-weight:400;background:rgba(244,232,205,.9);border:1px solid #9aa98a}
.journal-view .journal-previous{left:25%}.journal-view .journal-next{right:27%}
.journal-page-number{position:absolute;top:87%;left:50%;transform:translateX(-50%);font-size:12px;color:#fff3d4}
.journal-view footer{position:absolute;bottom:1%;left:2%;right:2%;margin:0;padding:0;border:0;background:none;color:#fff3d4}
.journal-view .sticker-test-controls{position:absolute;right:2%;bottom:5%;margin:0;z-index:4}
.journal-view .sticker-test-controls>button{background:rgba(244,232,205,.85);min-height:32px;padding:4px 8px}
.journal-spread[data-turn-direction=next]>.specimen-card{animation:journal-note-next .18s ease-out}
.journal-spread[data-turn-direction=previous]>.specimen-card{animation:journal-note-previous .18s ease-out}
@keyframes journal-note-next{from{translate:12px 0}to{translate:0 0}}
@keyframes journal-note-previous{from{translate:-12px 0}to{translate:0 0}}
@media(prefers-reduced-motion:reduce){.journal-spread[data-turn-direction]>.specimen-card{animation:none}}
@media(orientation:landscape) and (max-width:750px){
 .journal-view main>nav{left:17%;top:0;gap:3px}
 .journal-view main>nav button{font-size:12px;padding:2px 6px;min-height:28px}
 .journal-view #content>.filters{left:17%;top:8%;gap:3px}
 .journal-view #content>.filters button{font-size:11px;padding:2px 6px;min-height:26px}
}

/* Card-only refinement: the stationary scene and its controls are unchanged. */
.journal-view .journal-spread .specimen-card{left:20.5%;top:22%;transform:scale(.73)}
.journal-view .journal-spread .specimen-card:nth-of-type(2){top:51%}
.journal-view .journal-spread .specimen-card:nth-of-type(3){left:55.5%}
.journal-view .journal-spread .specimen-card:nth-of-type(4){left:55.5%;top:51%}
.journal-view .journal-spread .specimen-plate{height:70px;flex-shrink:0}
.journal-view .journal-spread .field-note-front,.journal-view .journal-spread .field-note-back{position:relative;padding-bottom:32px}
.journal-view .journal-spread .field-note-turn{position:absolute;left:4px;bottom:4px;min-height:32px;margin:0;padding:4px;width:80px}
.journal-view .journal-spread .field-note-front>.field-link{position:absolute;right:4px;bottom:4px;width:calc(100% - 92px);min-height:32px;text-align:center}
.journal-view .journal-previous,.journal-view .journal-next{top:14.5%;min-height:36px;padding:4px 10px;font-size:15px;border-radius:10px;background:rgba(244,232,205,.85)}
.journal-view .journal-previous{left:20.5%}
.journal-view .journal-next{right:20.5%}
.journal-view .journal-spread .field-note-turn{left:auto;right:0;top:-4px;bottom:auto;min-height:28px;width:88px;padding:4px;font-size:11px;text-align:right}
.journal-view .journal-spread .field-note-front>.collection-number{padding-right:92px;min-height:20px}
.journal-view .journal-spread .field-note-front>.field-link{left:4px;right:4px;bottom:4px;width:auto;text-align:center}

/* Independent native buttons: header flip target and earned detail body. */
.journal-view .journal-spread .field-note-turn{z-index:3;top:-12px;right:0;min-height:60px;width:118px;padding:12px 4px 4px;display:flex;align-items:flex-start;justify-content:flex-end}
.journal-view .journal-spread .field-note-explore{position:absolute;z-index:2;inset:20px 0 0;width:100%;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:12px;font-weight:400;cursor:pointer;color:#647658}
.journal-view .journal-spread .field-note-explore:hover{background:none;color:#345a48}
.journal-view .journal-spread .field-note-explore>span{position:absolute;left:0;right:0;bottom:8px;text-align:center}
.journal-view .journal-spread .field-note-explore:focus-visible{outline:3px solid #b37837;outline-offset:-2px;border-radius:6px}

/* Larger specimens only; journal geometry and action behaviour stay fixed. */
.journal-view .journal-spread{container-type:size}
.journal-view .journal-spread .specimen-card{width:39.173192cqw;height:min(calc(24.251961cqw - 12.558px),38.020548cqh);left:16.946438%;top:21%}
.journal-view .journal-spread .specimen-card:nth-of-type(2){top:53.5%}
.journal-view .journal-spread .specimen-card:nth-of-type(3){left:54.446438%}
.journal-view .journal-spread .specimen-card:nth-of-type(4){left:54.446438%;top:53.5%}
.journal-view .journal-spread .specimen-plate{height:98px}

/* Shared floating chrome: Home remains the visual reference and is unchanged. */
#app.internal-view{position:relative;min-height:100svh;background-color:#253b2c;display:block;isolation:isolate}
.internal-view>header{position:absolute;z-index:10;inset:0 0 auto;padding:12px 3%;border:0;background:none;gap:12px;align-items:flex-start;pointer-events:none}
.internal-view>header>*{pointer-events:auto}
.internal-view>header .brand{background:rgba(244,232,205,.88);padding:4px 10px;border-radius:12px;flex-shrink:0}
.internal-view>header .brand-illustration{width:66px;height:66px;margin-block:0}
.internal-view .header-actions{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;max-width:58%}
.internal-view .header-actions button{background:rgba(244,232,205,.9);border-color:#9aa98a;font-size:14px;padding:8px 12px;min-height:44px}
.internal-view main{position:relative;margin:0;width:100%;max-width:none}
.internal-view main>nav{position:absolute;z-index:6;left:3%;right:auto;top:88px;width:max-content;max-width:94%;display:flex;gap:6px;margin:0;padding:0;border:0;border-radius:0;background:none;overflow:visible}
.internal-view main>nav button{min-height:44px;padding:8px 12px;font-size:15px;background:rgba(244,232,205,.92);border:1px solid #9aa98a;border-radius:12px;color:#304f3c}
.internal-view main>nav button[aria-current]{background:#c9d8b7;border-color:#789165;color:#294632}
.internal-view main>nav button:hover{background:#e7ecdf}
.internal-view main>nav button[aria-current]:hover{background:#becfaa}
.internal-view.nook-view main{min-height:100svh;padding:148px 3% 18px;background-attachment:fixed}
.internal-view.nook-view .intro{padding:10px 16px;margin:0 0 16px;background-color:rgba(244,232,205,.76);width:fit-content;max-width:100%;gap:24px}
.internal-view.nook-view .nook-title{font-size:clamp(26px,3vw,36px);margin:0 0 4px}
.internal-view.nook-view .intro p{margin:0;font-size:16px}
.internal-view.nook-view .shelf-layout>div,.internal-view.nook-view .nook-tree{background-color:rgba(244,232,205,.8)}
.internal-view.nook-view .books{max-height:min(var(--bookshelf-collection-height,70svh),calc(100svh - 315px));min-height:180px;overscroll-behavior-y:contain}
.internal-view.nook-view footer{margin-top:16px;background-color:rgba(244,232,205,.72)}
/* Fit the entire desk/journal composition; all note coordinates remain on it. */
.internal-view.journal-view main{flex:none;min-height:0;height:calc(100vw * 941 / 1671);aspect-ratio:1671/941;padding:0;background-size:100% 100%;background-color:transparent}
.internal-view.journal-view #content>.filters{left:3%;position:absolute;z-index:7;background:none}
.internal-view.journal-view #content>.filters button{min-height:36px;padding:6px 10px;font-size:14px;background:rgba(244,232,205,.92)}
.internal-view.journal-view footer{display:none}
.internal-view.journal-view .journal-previous,.internal-view.journal-view .journal-next{top:14%;min-height:44px}
/* Same window geometry and full-height panorama, now behind floating chrome. */
.internal-view.woodland-view main{padding:0;background:none;min-height:100svh;display:block}
.internal-view.woodland-view #content{display:block}
.internal-view.woodland-view .woodland-window{min-height:max(100svh,calc(100vw * 820 / 1672));flex:none}
@media(orientation:landscape) and (max-width:1000px){
 .internal-view>header .brand-illustration{width:56px;height:56px}
 .internal-view>header .brand-family{font-size:17px}
 .internal-view>header .brand-title{font-size:23px}
 .internal-view .header-actions button{font-size:12px;padding:6px 9px}
 .internal-view.nook-view .shelf-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px}
}
@media(orientation:landscape) and (max-height:600px){
 .internal-view>header{padding-top:6px}
 .internal-view>header .brand-illustration{width:48px;height:48px}
 .internal-view main>nav{top:70px}
 .internal-view.nook-view main{padding-top:126px}
 .internal-view.nook-view .intro{padding:6px 12px;margin-bottom:10px}
 .internal-view.nook-view .books{max-height:min(var(--bookshelf-collection-height,60svh),max(180px,calc(100svh - 280px)))}
}
@media(orientation:landscape) and (max-width:700px){
 .internal-view .header-actions{max-width:55%;gap:4px}
 .internal-view .header-actions button{font-size:11px;padding:4px 7px}
 .internal-view main>nav button{font-size:13px;padding:6px 9px}
 .internal-view.nook-view .shelf-layout{display:flex;flex-direction:column}
 .internal-view.nook-view .nook-tree{width:100%}
}
/* Centre one complete journal in the green environment, without cover cropping. */
.internal-view.journal-view main{height:max(100svh,calc(100vw * 941 / 1671));aspect-ratio:auto;background-size:100% auto;background-position:center center}
.internal-view.journal-view #content{inset:auto 0 auto;top:50%;height:calc(100vw * 941 / 1671);transform:translateY(-50%)}
.internal-view.journal-view #content>.filters{top:calc(136px - max(0px,(100svh - 100vw * 941 / 1671) / 2))}
.internal-view.journal-view .journal-spread .specimen-card{top:26%}
.internal-view.journal-view .journal-spread .specimen-card:nth-of-type(2),.internal-view.journal-view .journal-spread .specimen-card:nth-of-type(4){top:56%}
@media(orientation:landscape) and (max-height:600px){
 .internal-view.journal-view #content>.filters{top:calc(118px - max(0px,(100svh - 100vw * 941 / 1671) / 2))}
}
@media(orientation:landscape) and (min-width:800px) and (max-width:1000px){
 .internal-view.journal-view .journal-spread .specimen-card{top:23%;height:215px}
 .internal-view.journal-view .journal-spread .specimen-card:nth-of-type(2),.internal-view.journal-view .journal-spread .specimen-card:nth-of-type(4){top:55%}
}
.internal-view.journal-view #content>.sticker-grid{top:0}

/* Per-reader accents are scoped to internal pages; supplied art stays untouched. */
.internal-view main>nav button,.internal-view .filters button{background-color:var(--reader-colour);color:#304a3b}
.internal-view main>nav button[aria-current],.internal-view .filters button[aria-pressed=true]{background-color:var(--reader-active);color:#243b30;border-color:#789165}
.internal-view main>nav button:hover,.internal-view .filters button:hover{background-color:var(--reader-active)}
.internal-view.journal-view #content>.filters button{background-color:var(--reader-colour);color:#304a3b}
.internal-view.journal-view #content>.filters button[aria-pressed=true]{background-color:var(--reader-active)}
.internal-view .nook-tree,.internal-view .shelf-layout>div,.internal-view .specimen-card{border-color:var(--reader-active)}
.internal-view .nook-tree .eyebrow{background:var(--reader-colour);border-radius:8px;padding:5px;color:var(--green)}
.internal-view.profile-view main>.intro{display:none}
.little-corner{max-width:760px;margin:0 auto;padding:20px 26px;background:rgba(244,232,205,.94);border:1px solid var(--reader-active);border-radius:18px}
.little-corner h1{font-size:36px;margin:12px 0}
.corner-reader{display:flex;align-items:center;gap:16px}
.corner-reader>span{width:88px;height:88px}
.corner-reader h2{font-size:28px;overflow-wrap:anywhere}
.little-corner fieldset{padding:12px;border-color:var(--reader-active)}
.corner-avatars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.corner-choice,.corner-colour{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:10px;min-height:48px;background:#fff9ed;border:1px solid #9aa98a;border-radius:12px;cursor:pointer;text-align:center}
.corner-choice{flex-direction:column}
.corner-choice img{width:76px;height:76px;object-fit:contain}
.corner-choice input,.corner-colour input{position:absolute;width:1px;height:1px;opacity:0}
.corner-choice:has(input:checked),.corner-colour:has(input:checked){outline:2px solid #345a48;outline-offset:1px;background:var(--reader-colour)}
.corner-choice:focus-within,.corner-colour:focus-within{outline:3px solid #b37837;outline-offset:3px}
.corner-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.colour-swatch{width:26px;height:26px;flex-shrink:0;border-radius:50%;background:var(--swatch);border:1px solid #789165}
@media(orientation:landscape) and (max-height:600px){.little-corner{padding:14px 20px}.corner-reader>span{width:60px;height:60px}.little-corner h1{margin:8px 0}.corner-choice img{width:60px;height:60px}}
@media(max-width:650px){.corner-themes{grid-template-columns:repeat(2,minmax(0,1fr))}.corner-avatars{gap:6px}.corner-choice{padding:6px}.corner-choice img{width:48px;height:48px}}
.internal-view main>nav button[aria-current]:hover,.internal-view .filters button[aria-pressed=true]:hover{background-color:var(--reader-active);color:#243b30}

/* Menu placement only: preserve image and card scales and world coordinates. */
.internal-view.nook-view:not(.profile-view) main{padding-top:138px}
.internal-view.nook-view:not(.profile-view) main>nav{top:84px}
.internal-view.nook-view:not(.profile-view) .intro{padding:8px 12px;gap:16px;margin-bottom:12px}
.internal-view.nook-view:not(.profile-view) .nook-title{font-size:clamp(26px,3vw,32px)}

/* Translate the complete room and outdoor mask together, without scaling. */
.internal-view.woodland-view main{--room-height:calc(100vw * 1.17 * 941 / 1672);--room-top:max(48px,calc(100svh - var(--room-height)))}
.internal-view.woodland-view .woodland-window{min-height:calc(var(--room-height) + var(--room-top))}
.internal-view.woodland-view .woodland-window-frame,.internal-view.woodland-view .window-outside-mask{top:var(--room-top)}
.internal-view.woodland-view main>nav{top:calc(var(--room-top) + var(--room-height) * .158 - 52px)}

/* Place the complete journal at the bottom; use its upper desk for one compact
   row of navigation and filters. Cards retain the same local coordinate plane. */
.internal-view.journal-view main{--journal-height:calc(100vw * 941 / 1671);--journal-top:max(0px,calc(100svh - var(--journal-height)));background-position:center bottom}
.internal-view.journal-view #content{top:auto;bottom:0;transform:none}
.internal-view.journal-view main>nav{top:calc(var(--journal-top) + 12px)}
.internal-view.journal-view #content>.filters{top:12px;left:calc(3% + 380px);gap:6px}

@media(orientation:landscape) and (max-height:600px){
 .internal-view.nook-view:not(.profile-view) main{padding-top:122px}
 .internal-view.nook-view:not(.profile-view) main>nav{top:70px}
}
@media(orientation:landscape) and (max-width:750px){
 .internal-view.journal-view main>nav button{font-size:12px;padding:6px 8px}
 .internal-view.journal-view #content>.filters{left:calc(3% + 320px);gap:4px}
 .internal-view.journal-view #content>.filters button{font-size:11px;padding:6px;min-height:36px}
}

/* Targeted Nook polish; reader colours remain sourced from profile preferences. */
.internal-view.nook-view:not(.profile-view) main{padding-top:134px}
.internal-view.nook-view:not(.profile-view) .intro{padding:6px 10px;gap:12px;margin-bottom:8px}
.internal-view.nook-view:not(.profile-view) .intro button{padding:8px 14px;min-height:44px}
.internal-view.nook-view:not(.profile-view) .shelf-layout>div,
.internal-view.nook-view:not(.profile-view) .nook-tree{background-color:color-mix(in srgb,var(--reader-colour) 72%,#faf7ee 28%);opacity:1}
.internal-view.nook-view:not(.profile-view) .shelf-layout>div{box-shadow:0 0 0 8px color-mix(in srgb,var(--reader-colour) 72%,#faf7ee 28%)}
.internal-view.nook-view:not(.profile-view) .intro,
.internal-view.nook-view:not(.profile-view) footer{background-color:color-mix(in srgb,var(--reader-colour) 72%,#faf7ee 28%)}
.internal-view.nook-view:not(.profile-view) .nook-tree .field-link{background-color:var(--reader-colour);border-color:var(--reader-active)}

/* Two distinct, left-aligned menu rows; no journal/card geometry changes. */
.internal-view.journal-view main>nav{top:84px;left:3%;gap:6px}
.internal-view.journal-view #content>.filters{left:3%;top:calc(134px - var(--journal-top));gap:6px}
.internal-view.journal-view main>nav button,
.internal-view.journal-view #content>.filters button{background-color:var(--reader-colour);color:#304a3b}
.internal-view.journal-view main>nav button[aria-current],
.internal-view.journal-view #content>.filters button[aria-pressed=true]{background-color:var(--reader-active);border-color:#789165;color:#243b30}
@media(orientation:landscape) and (max-height:600px){
 .internal-view.nook-view:not(.profile-view) main{padding-top:118px}
 .internal-view.journal-view main>nav{top:70px}
 .internal-view.journal-view #content>.filters{top:calc(120px - var(--journal-top))}
}

/* Nook-only breathing room and background alpha; content remains fully opaque. */
.internal-view.nook-view:not(.profile-view) main>nav{gap:8px}
.internal-view.nook-view:not(.profile-view) main{padding-top:140px}
.internal-view.nook-view:not(.profile-view) .intro{margin-bottom:12px}
.internal-view.nook-view:not(.profile-view) .shelf-layout>div,
.internal-view.nook-view:not(.profile-view) .nook-tree{background-color:color-mix(in srgb,color-mix(in srgb,var(--reader-colour) 72%,#faf7ee 28%) 55%,transparent)}
.internal-view.nook-view:not(.profile-view) .shelf-layout>div{box-shadow:0 0 0 8px color-mix(in srgb,color-mix(in srgb,var(--reader-colour) 72%,#faf7ee 28%) 92%,transparent)}
@media(orientation:landscape) and (max-height:600px){
 .internal-view.nook-view:not(.profile-view) main{padding-top:126px}
}
/* The shelf's existing 8px outer paper edge consumes part of the CSS gap. */
.internal-view.nook-view:not(.profile-view) .intro{margin-bottom:20px}

/* Remove only the large Nook panels' decorative edges, retaining border space. */
.internal-view.nook-view:not(.profile-view) .shelf-layout>div,
.internal-view.nook-view:not(.profile-view) .nook-tree{border-color:transparent;outline:none;box-shadow:none}

/* Inset the filter row while retaining the shelf's existing outer height. */
.internal-view.nook-view:not(.profile-view) .shelf-layout>div>.filters{padding:14px 14px 0}
.internal-view.nook-view:not(.profile-view) .books{max-height:calc(min(var(--bookshelf-collection-height,70svh),calc(100svh - 315px)) - 14px)}
@media(orientation:landscape) and (max-height:600px){
 .internal-view.nook-view:not(.profile-view) .books{max-height:calc(min(var(--bookshelf-collection-height,60svh),max(180px,calc(100svh - 280px))) - 14px)}
}

/* Immersive Nook: centre the title across the full page beneath navigation. */
.internal-view.nook-view:not(.profile-view) main{padding-top:224px}
.internal-view.nook-view:not(.profile-view) main>.intro{position:absolute;top:138px;left:50%;right:auto;transform:translateX(-50%);width:fit-content;max-width:94%;margin:0;padding:6px 10px;gap:12px}
.internal-view.nook-view:not(.profile-view) .nook-title{font-size:clamp(24px,2.6vw,32px)}
@media(orientation:landscape) and (max-height:600px){
 .internal-view.nook-view:not(.profile-view) main>.intro{top:124px}
 .internal-view.nook-view:not(.profile-view) main{padding-top:210px}
}
/* Nook collection scroll cues; content and filters retain their existing layout. */
.internal-view.nook-view:not(.profile-view) .shelf-layout>div{position:relative}
.internal-view.nook-view:not(.profile-view) .books.books-overflowing{--shelf-scroll-track:color-mix(in srgb,var(--reader-colour) 45%,transparent);--shelf-scroll-thumb:color-mix(in srgb,var(--reader-colour) 55%,#304a3b);scrollbar-width:thin;scrollbar-color:var(--shelf-scroll-thumb) var(--shelf-scroll-track)}
.internal-view.nook-view:not(.profile-view) .books.books-overflowing::-webkit-scrollbar{display:block;width:6px}
.internal-view.nook-view:not(.profile-view) .books.books-overflowing::-webkit-scrollbar-track{background:var(--shelf-scroll-track);border-radius:6px}
.internal-view.nook-view:not(.profile-view) .books.books-overflowing::-webkit-scrollbar-thumb{background:var(--shelf-scroll-thumb);border-radius:6px}
.internal-view.nook-view:not(.profile-view) .nook-tree h2,
.internal-view.nook-view:not(.profile-view) .nook-tree p{color:var(--green);font-weight:500}

/* Reading Library shell: shared reader/theme/navigation, no reading state. */
.internal-view.library-view main>footer{display:none}
.nook-book-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.internal-view.nook-view:not(.profile-view) .intro .nook-book-actions button:not(.primary){background:var(--reader-colour);border-color:var(--reader-active);color:var(--green)}
.internal-view.library-view main{min-height:100svh;padding:146px 3% 24px;background:url('/assets/woodland/Reading Nook.png?v=7e154bd85f97') center/cover no-repeat}
.internal-view.library-view main>.intro{display:none}
.internal-view.library-view nav button,.library-view .reading-library>button{background:var(--reader-colour);border-color:var(--reader-active);color:var(--green)}
.reading-library{max-width:960px;margin:0 auto;padding:20px;border-radius:18px;background:color-mix(in srgb,var(--reader-colour) 88%,#faf7ee);color:var(--green)}
.reading-library h1{margin:12px 0 18px;font-size:34px}
.library-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.library-section{padding:18px;border:1px solid var(--reader-active);border-radius:14px;background:rgba(250,247,238,.65)}
.library-section h2{margin:0 0 12px}
.library-section p:last-child{margin-bottom:0}
@media(orientation:landscape) and (max-height:600px){.internal-view.library-view main{padding-top:126px}.reading-library{padding:14px}.reading-library h1{font-size:28px;margin:8px 0 12px}.library-section{padding:14px}}
@media(max-width:650px){.library-sections{grid-template-columns:1fr}}
.internal-view.nook-view:not(.profile-view) main>.intro:has(.nook-book-actions){width:max-content}
.nook-book-actions{flex-shrink:0}
@media(max-width:700px){.internal-view.nook-view:not(.profile-view) main>.intro:has(.nook-book-actions){gap:8px}.nook-book-actions{flex-direction:column;gap:4px}}
/* Preserve the library button's existing compact footprint with its new wording. */
.internal-view.nook-view:not(.profile-view) .intro #read-book{width:96px;padding-inline:6px;white-space:nowrap}
.library-choice{text-align:left;font-weight:400;color:var(--green);display:flex;flex-direction:column;align-items:stretch;gap:16px}
.library-section-title{font-size:24px;line-height:normal;font-weight:400;margin-bottom:12px}
.library-choice>span:not(.library-section-title){line-height:1.6}
.library-choice:hover{background:color-mix(in srgb,var(--reader-colour) 65%,#faf7ee);border-color:var(--green)}
.library-choice:active{background:var(--reader-active)}
.library-choice:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.library-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.library-records button{display:flex;flex-direction:column;gap:8px;background:var(--reader-colour);border-color:var(--reader-active);text-align:left}

/* Shared footer colour only; visibility and geometry remain page-specific. */
#app.internal-view main>footer{background-color:color-mix(in srgb,var(--reader-colour) 55%,transparent);color:var(--green)}
