/* Bright block-world adventure menu. No book spine, paper, or page-turn animation. */
#modal.adventure-open{padding:12px;align-items:center;overflow:hidden;background:radial-gradient(circle at 50% 15%,#71c7ce66,#081d35d9 65%)}
#modal .adventure-card{position:relative;isolation:isolate;display:flex;flex-direction:column;width:min(900px,calc(100vw - 20px));max-width:900px;height:min(780px,calc(100dvh - 24px));min-height:0;margin:auto;padding:0!important;overflow:hidden;border:2px solid #84d4ad;border-radius:25px;background:linear-gradient(180deg,#72cdf0 0%,#b6e8e4 35%,#8ec681 36%,#337857 100%)!important;box-shadow:0 0 0 5px #143a4e,0 22px 70px #061c31e0,inset 0 0 0 3px #ffffff45!important}
#modal .adventure-card:before{content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(circle at 82% 12%,#fff2a1 0 3%,#f9eaaa88 6%,transparent 18%),linear-gradient(151deg,transparent 0 43%,#588e78 43% 51%,transparent 51%),linear-gradient(208deg,transparent 0 39%,#417e72 39% 49%,transparent 49%),linear-gradient(165deg,transparent 0 60%,#387a52 60% 72%,transparent 72%);opacity:.86}
.book-host{height:100%;min-height:0;display:flex;flex-direction:column}
.book-navigation{position:relative;z-index:2;flex:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:12px;background:linear-gradient(180deg,#173e58f5,#205879f2);border-bottom:2px solid #a4edbc;box-shadow:0 5px 15px #123b5088}
.book-tab{display:flex;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:7px 4px;border:1px solid #a6e1e1a0;border-radius:13px;background:#ffffff1a;color:#f4ffec;font-size:13px;font-weight:850;text-shadow:0 2px 3px #14384e;cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.book-tab span:first-child{font-size:18px;color:#ffe58e}.book-tab:hover{background:#ffffff35;transform:translateY(-2px)}.book-tab[aria-current="page"]{background:linear-gradient(180deg,#ffdc70,#f5ae4e);color:#273e3c;text-shadow:none;border-color:#fff2ac;box-shadow:0 3px 0 #b5772d,0 0 16px #ffe07f99}.book-tab[aria-current="page"] span:first-child{color:#30505a}
.book-sheet{position:relative;min-height:0;flex:1;overflow:hidden;padding:17px clamp(14px,3.2vw,28px) 18px}
.book-page[hidden]{display:none!important}.book-page{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;padding:16px clamp(13px,3vw,26px);overflow-y:auto;overscroll-behavior:contain;border:2px solid #e9fff0b5;border-radius:22px;background:linear-gradient(140deg,#fafff3f5,#dff4e9f0 65%,#cce8d8ed);box-shadow:0 12px 30px #0c4a5070,inset 0 2px #fff;animation:adventureArrive .35s ease-out both}
.book-page:after{content:'';position:absolute;right:14px;top:13px;width:35px;height:35px;background:radial-gradient(circle,#fff9c8 0 8%,transparent 12%);filter:drop-shadow(0 0 7px #ffd86b);pointer-events:none}
.book-page-heading{flex:none;margin-bottom:12px}.book-page-heading small{font-size:10px;letter-spacing:2px;font-weight:900;color:#2c8477}.book-page-heading h2{margin:3px 0;font:900 clamp(23px,3.6vw,34px)/1.06 system-ui,sans-serif;letter-spacing:-.8px;color:#17495a;text-shadow:0 1px #fff}.book-page-heading h2:focus{outline:none}.book-page-heading p{margin:4px 0 0!important;color:#4d7166!important;font-size:12px!important;line-height:1.3}
.book-page[data-book-page="cover"]{text-align:center;background:linear-gradient(180deg,#d7f7f8f5,#f9ffe8ed 49%,#cdeabcfa)}.book-page[data-book-page="cover"] .book-page-heading{order:2;margin:6px 0}.book-page[data-book-page="cover"] .opening-logo{order:0;justify-content:center;margin:0!important;padding:6px 0!important;background:none!important}.book-page[data-book-page="cover"] .opening-logo h1{font-size:clamp(28px,4.5vw,42px);color:#155367}.book-page[data-book-page="cover"] .opening-logo img{width:65px;height:65px}.book-page[data-book-page="cover"] .meadow-scene{order:1;flex:1;min-height:130px;max-height:310px;height:auto!important;margin:5px 0 0!important;overflow:hidden;border:3px solid #fff9db;border-radius:17px;box-shadow:0 10px 0 #2b7d61,0 13px 20px #236c6280;background:#a2e5e6;animation:adventureGlow 4s ease-in-out infinite alternate}.book-page[data-book-page="cover"] .meadow-scene svg{width:100%;height:100%;animation:adventureDrift 10s ease-in-out infinite alternate}.book-page[data-book-page="cover"] .intro{order:3;margin:3px 0 8px!important;color:#315f56!important;font-size:12px!important;line-height:1.35}.book-cover-actions{order:4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 8px}.book-cover-actions button,.book-room-enter{min-height:46px;padding:9px;border:1px solid #fff7b5;border-radius:13px;background:linear-gradient(180deg,#ffdf78,#f6ac4d);color:#29464d;font-size:13px;font-weight:900;box-shadow:0 4px 0 #b47b3b,0 7px 15px #37665e55}.book-cover-actions button:nth-child(2){background:linear-gradient(#8fea93,#3fb778);box-shadow:0 4px 0 #287b5e,0 7px 15px #37665e55}.book-cover-actions button:nth-child(3){background:linear-gradient(#9fe4f8,#57b6d6);box-shadow:0 4px 0 #377f9c,0 7px 15px #37665e55}.book-cover-actions button:hover,.book-room-enter:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-2px)}.book-watch-story,.book-enable-sound{order:5;display:inline-block;align-self:center;margin:3px;padding:6px 12px;border:1px solid #8ccab2;border-radius:20px;background:#fffef2;color:#226b68;font-weight:800;font-size:11px}.book-enable-sound{order:6}
.book-page[data-book-page="characters"] .wardrobe{min-height:0;flex:1;margin:0;padding:10px;border:1px solid #8cccb3;background:#f1fff5;box-shadow:inset 0 1px #fff}.book-page[data-book-page="characters"] .wardrobe-heading{display:none}.book-page[data-book-page="characters"] .character-roster{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0 0 9px}.book-page[data-book-page="characters"] .character-card{min-height:51px;padding:3px 2px;border-radius:9px}.book-page[data-book-page="characters"] .character-icon{font-size:20px;line-height:1}.book-page[data-book-page="characters"] .character-name{font-size:9px;line-height:1.1}.book-page[data-book-page="characters"] .character-card.locked:after{font-size:8px}.book-page[data-book-page="characters"] .wardrobe-grid{grid-template-columns:minmax(135px,39%) 1fr;gap:10px}.book-page[data-book-page="characters"] .wardrobe-preview{min-height:165px}.book-page[data-book-page="characters"] .wardrobe-choice{gap:5px}.book-page[data-book-page="characters"] .wardrobe-choice select{padding:6px}.book-page[data-book-page="characters"] .wardrobe-note{margin:5px 0 0}.book-page[data-book-page="characters"] .opening-choice-story{margin:7px 0 0;padding:8px 12px}
.book-page[data-book-page="solo"] .mode-picker{margin:0 0 11px;background:#edfff4;border:1px solid #9fd8b1}.book-page[data-book-page="solo"] .go{margin:5px 0 10px;min-height:49px;background:linear-gradient(#ffdf78,#e8a33f);color:#26454d}.book-page[data-book-page="solo"] #startupNotice{font-size:11px}
.book-page[data-book-page="guide"] .control-settings{margin:0}.book-page[data-book-page="guide"] .controls{margin:10px 0}
.book-page[data-book-page="multiplayer"] .multiplayer{margin:0;padding:0;border:0}.book-page[data-book-page="multiplayer"] .mp-row button{background:#d9f5e1}.book-room-enter{width:100%;margin:14px 0 3px}.book-room-enter:disabled{opacity:.55}
.book-lore-teaser{display:flex;align-items:center;gap:15px;padding:17px;margin:6px 0 15px;border:2px solid #93bfc0;border-radius:18px;background:linear-gradient(125deg,#1d5266,#246d74 60%,#32837a);color:#fffbd9;box-shadow:0 7px 16px #265e6680}.book-lore-teaser>span{font-size:65px;color:#ffe17d;text-shadow:0 0 15px #ffc963}.book-lore-teaser strong{font-size:21px}.book-lore-teaser p{margin:4px 0!important;color:#e6fff7!important;font-size:12px!important}.book-page[data-book-page="archive"] .menu-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.book-page[data-book-page="archive"] .menu-links>*{background:#f8ffec;border-color:#9fd5ba}.book-page[data-book-page="archive"] .note{margin:12px 0 3px}.book-page[data-book-page="archive"] #reset{margin:6px auto}
@keyframes adventureArrive{from{opacity:.25;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes adventureGlow{to{box-shadow:0 10px 0 #2b7d61,0 13px 26px #5abe7daa}}@keyframes adventureDrift{to{transform:scale(1.05) translateX(-4px)}}
@media(max-width:650px){#modal.adventure-open{padding:5px}#modal .adventure-card{width:calc(100vw - 10px);height:calc(100dvh - 10px);border-radius:18px}.book-navigation{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:7px}.book-tab{min-height:34px;font-size:11px;padding:4px 2px;gap:4px}.book-tab span:first-child{font-size:15px}.book-sheet{padding:8px}.book-page{padding:10px;scrollbar-width:thin;border-radius:15px}.book-page-heading{margin-bottom:7px}.book-page-heading small{font-size:8px}.book-page-heading h2{font-size:21px}.book-page-heading p{font-size:10px!important}.book-page[data-book-page="cover"] .opening-logo{padding:2px 0!important}.book-page[data-book-page="cover"] .opening-logo img{width:49px;height:49px}.book-page[data-book-page="cover"] .opening-logo h1{font-size:29px}.book-page[data-book-page="cover"] .meadow-scene{min-height:115px}.book-page[data-book-page="cover"] .intro{font-size:10px!important}.book-cover-actions{gap:4px}.book-cover-actions button{min-height:43px;padding:5px;font-size:10px}.book-watch-story,.book-enable-sound{font-size:9px;padding:4px 8px}.book-page[data-book-page="characters"] .wardrobe{padding:6px}.book-page[data-book-page="characters"] .character-roster{gap:3px;margin-bottom:5px}.book-page[data-book-page="characters"] .character-card{min-height:43px}.book-page[data-book-page="characters"] .character-icon{font-size:16px}.book-page[data-book-page="characters"] .character-name{font-size:7px}.book-page[data-book-page="characters"] .wardrobe-grid{grid-template-columns:105px 1fr;gap:5px}.book-page[data-book-page="characters"] .wardrobe-preview{min-height:120px}.book-page[data-book-page="characters"] .wardrobe-choice label{font-size:9px}.book-page[data-book-page="characters"] .wardrobe-choice select{padding:4px;font-size:10px}.book-page[data-book-page="characters"] .opening-choice-story{margin-top:4px;padding:5px 7px}.book-lore-teaser{padding:10px;gap:8px}.book-lore-teaser>span{font-size:48px}.book-lore-teaser strong{font-size:16px}.book-lore-teaser p{font-size:10px!important}}
@media(max-height:620px){.book-page[data-book-page="cover"] .meadow-scene{min-height:90px}.book-page-heading p{display:none}.book-page[data-book-page="characters"] .character-card{min-height:35px}.book-page[data-book-page="characters"] .wardrobe-preview{min-height:95px}.book-navigation{padding:5px}.book-tab{min-height:30px}}
@media(prefers-reduced-motion:reduce){.book-page,.book-page[data-book-page="cover"] .meadow-scene,.book-page[data-book-page="cover"] .meadow-scene svg{animation:none}.book-tab{transition:none}}

.book-page[data-book-page="cover"] .meadow-scene img{display:block;width:100%;height:100%;object-fit:cover;animation:adventureDrift 10s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.book-page[data-book-page="cover"] .meadow-scene img{animation:none}}

/* Show the original animated cover without cropping. */
.book-page[data-book-page="cover"] .meadow-scene{flex:none;min-height:0;max-height:none;aspect-ratio:600/210;background:#183764}
.book-page[data-book-page="cover"] .meadow-scene svg{animation:none}

/* Keep the complete brand above the cover art at laptop and tablet heights. */
.book-page[data-book-page="cover"] .meadow-scene{width:min(100%,560px);align-self:center;flex:none;min-height:0;max-height:none;aspect-ratio:600/210;margin:4px 0 5px!important}
.book-page[data-book-page="cover"] .meadow-scene img{object-fit:contain}
@media(max-height:670px){.book-page[data-book-page="cover"] .meadow-scene{width:min(100%,450px)}.book-page[data-book-page="cover"] .book-page-heading{margin:3px 0}.book-page[data-book-page="cover"] .intro{margin:2px 0 5px!important}.book-cover-actions{margin-bottom:3px}}
/* High-resolution original cover art, while title and buttons remain selectable text. */
.book-page[data-book-page="cover"] .meadow-scene{width:min(100%,920px);aspect-ratio:16/7;max-height:39vh}
.book-page[data-book-page="cover"] .meadow-scene .adventure-cover-art{display:block;width:100%;height:100%;object-fit:cover;object-position:center 54%;animation:none}
@media(max-width:650px){.book-page[data-book-page="cover"] .meadow-scene{width:100%;aspect-ratio:16/9;min-height:115px;max-height:25vh}}
.book-page[data-book-page="characters"] .character-icon{font-size:inherit;line-height:1}
.book-page[data-book-page="characters"] .character-card{min-height:76px}
@media(max-width:650px){.book-page[data-book-page="characters"] .character-card{min-height:59px}}
