/* The title has its own aspect ratio and must never inherit the square icon sizing. */
.book-page[data-book-page="cover"] .opening-logo{display:flex;flex:none;align-items:center;justify-content:center;gap:12px;margin:0!important;padding:2px 8px 6px!important;overflow:visible!important;min-height:0;position:relative;z-index:1}
.book-page[data-book-page="cover"] .opening-logo > img:first-child{display:block;flex:none;width:68px!important;height:68px!important;object-fit:contain}
.book-page[data-book-page="cover"] .opening-logo h1{display:block;flex:none;width:min(260px,calc(100% - 88px));height:auto;margin:0!important;line-height:0!important;filter:none!important;overflow:visible}
.book-page[data-book-page="cover"] .opening-logo h1 .meadow-wordmark{display:block;width:100%!important;height:auto!important;max-width:none!important;aspect-ratio:2/1;object-fit:contain;filter:drop-shadow(0 4px 5px #0b344a42)!important;animation:none!important}
.brand strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:1000;letter-spacing:.6px;text-transform:uppercase;color:#275747;text-shadow:1px 2px 0 #a9dd9b}
.brand small{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;letter-spacing:1px}
@media(max-width:650px){.book-page[data-book-page="cover"] .opening-logo{gap:8px;padding:2px 4px 5px!important}.book-page[data-book-page="cover"] .opening-logo > img:first-child{width:52px!important;height:52px!important}.book-page[data-book-page="cover"] .opening-logo h1{width:min(220px,calc(100% - 62px))}}
@media(max-height:670px){.book-page[data-book-page="cover"] .opening-logo h1{width:min(210px,calc(100% - 80px))}.book-page[data-book-page="cover"] .opening-logo > img:first-child{width:52px!important;height:52px!important}}

/* Fit the complete Home cover in the visible page; the scene uses remaining space. */
.book-page[data-book-page="cover"]{overflow:hidden;justify-content:flex-start}
.book-page[data-book-page="cover"] .meadow-scene{width:100%;flex:1 1 0!important;min-height:0!important;max-height:none!important;height:auto!important;aspect-ratio:auto!important;margin:3px 0 5px!important;overflow:hidden}
.book-page[data-book-page="cover"] .meadow-scene svg{display:block;width:100%;height:100%}
.book-page[data-book-page="cover"] .book-page-heading{margin:2px 0!important}
.book-page[data-book-page="cover"] .intro{margin:2px 0 6px!important}
.book-page[data-book-page="cover"] .book-cover-actions{margin:0 0 4px;gap:6px}
.book-page[data-book-page="cover"] .book-cover-actions button{min-height:40px;padding:5px}
.book-page[data-book-page="cover"] .book-watch-story,.book-page[data-book-page="cover"] .book-enable-sound{margin:2px;padding:4px 10px}
@media(max-height:720px){.book-sheet{padding-top:8px;padding-bottom:8px}.book-page[data-book-page="cover"]{padding-top:7px;padding-bottom:7px}.book-page[data-book-page="cover"] .book-page-heading h2{font-size:clamp(19px,3vw,27px)}.book-page[data-book-page="cover"] .book-page-heading p{margin:2px 0!important}.book-page[data-book-page="cover"] .book-cover-actions button{min-height:34px}}
@media(max-width:650px){.book-page[data-book-page="cover"] .opening-logo{gap:8px;padding:2px!important}.book-page[data-book-page="cover"] .opening-logo h1{width:min(220px,calc(100% - 60px))}.book-page[data-book-page="cover"] .opening-logo > img:first-child{width:48px!important;height:48px!important}.book-page[data-book-page="cover"] .book-page-heading h2{font-size:20px}.book-page[data-book-page="cover"] .book-cover-actions button{min-height:35px;padding:4px;font-size:10px}.book-page[data-book-page="cover"] .book-watch-story,.book-page[data-book-page="cover"] .book-enable-sound{padding:3px 7px;font-size:9px}}

/* A separate pixel-style motto sits beside the title; the artwork stays unobscured. */
.book-page[data-book-page="cover"] .opening-logo{display:grid!important;grid-template-columns:68px minmax(0,260px) minmax(160px,220px);justify-content:center;align-items:center;column-gap:12px;width:100%}
.book-page[data-book-page="cover"] .opening-logo h1{width:100%!important;min-width:0}
.book-page[data-book-page="cover"] .opening-logo h1 .meadow-wordmark{filter:drop-shadow(0 2px 1px #18384a66)!important}
.book-page[data-book-page="cover"] .gateway-motto{min-width:0;padding-left:12px;border-left:3px solid #b77a43;text-align:left;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:900;text-transform:uppercase;line-height:1.14;letter-spacing:.025em}
.book-page[data-book-page="cover"] .gateway-motto small{display:block;color:#3c6670;font-size:clamp(8px,.9vw,12px);letter-spacing:.08em;text-shadow:0 1px 0 #fff;margin-bottom:5px}
.book-page[data-book-page="cover"] .gateway-motto strong{display:block;color:#38566a;font-size:clamp(13px,1.6vw,20px);text-shadow:1px 2px 0 #d5aa73,0 3px 4px #1e39484d}
.book-page[data-book-page="cover"] .meadow-scene .scene-caption{display:none}
@media(max-width:750px){.book-page[data-book-page="cover"] .opening-logo{grid-template-columns:50px minmax(0,1fr) minmax(108px,155px);gap:8px}.book-page[data-book-page="cover"] .opening-logo > img:first-child{width:50px!important;height:50px!important}.book-page[data-book-page="cover"] .gateway-motto{padding-left:7px;border-left-width:2px}.book-page[data-book-page="cover"] .gateway-motto small{font-size:8px;margin-bottom:3px}.book-page[data-book-page="cover"] .gateway-motto strong{font-size:clamp(10px,2vw,15px)}}
@media(max-width:400px){.book-page[data-book-page="cover"] .opening-logo{grid-template-columns:38px minmax(0,1fr) 95px;gap:5px}.book-page[data-book-page="cover"] .opening-logo > img:first-child{width:38px!important;height:38px!important}.book-page[data-book-page="cover"] .gateway-motto small{font-size:6px}.book-page[data-book-page="cover"] .gateway-motto strong{font-size:9px}}

/* The adventure name is a second voxel title in the top brand row. */
.book-page[data-book-page="cover"] .opening-logo{grid-template-columns:68px minmax(0,260px) minmax(155px,205px) minmax(135px,190px);column-gap:15px}
.book-page[data-book-page="cover"] .adventure-title{min-width:0;text-align:left;padding:10px 8px 12px 0}
.book-page[data-book-page="cover"] .adventure-title .scene-seal{display:block;position:static;width:max-content;max-width:100%;margin:0;padding:0 2px 5px 0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;color:#fff3ce;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(12px,1.45vw,18px);font-weight:1000;line-height:1.1;letter-spacing:-.045em;white-space:pre-line;text-align:left;-webkit-text-stroke:.7px #6e5b50;text-shadow:1px 1px 0 #b47c53,2px 2px 0 #b47c53,3px 3px 0 #8f614d,4px 4px 0 #654c4d,5px 5px 0 #40515a,6px 7px 4px #1c394554;transform:skewY(-2deg)}
.book-page[data-book-page="cover"] .adventure-title .scene-seal::first-line{color:#d9f6b5}
.book-page[data-book-page="cover"] .gateway-motto{align-self:center;padding-left:15px}
@media(max-width:750px){.book-page[data-book-page="cover"] .opening-logo{grid-template-columns:50px minmax(0,1.4fr) minmax(110px,1fr) minmax(105px,.9fr);gap:8px}.book-page[data-book-page="cover"] .adventure-title{padding:4px 0}.book-page[data-book-page="cover"] .adventure-title .scene-seal{font-size:clamp(10px,1.9vw,15px);text-shadow:1px 1px 0 #b47c53,2px 2px 0 #8f614d,3px 3px 0 #654c4d,4px 5px 3px #1c394554}.book-page[data-book-page="cover"] .gateway-motto{padding-left:8px}}
@media(max-width:600px){.book-page[data-book-page="cover"] .opening-logo{grid-template-columns:45px minmax(0,1fr) minmax(0,1fr);row-gap:3px}.book-page[data-book-page="cover"] .opening-logo > img:first-child{grid-column:1;grid-row:1}.book-page[data-book-page="cover"] .opening-logo h1{grid-column:2 / 4;grid-row:1;width:min(220px,100%)!important;justify-self:start}.book-page[data-book-page="cover"] .adventure-title{grid-column:1 / 3;grid-row:2;justify-self:center}.book-page[data-book-page="cover"] .gateway-motto{grid-column:3;grid-row:2}.book-page[data-book-page="cover"] .adventure-title .scene-seal{font-size:clamp(11px,2.6vw,15px)}.book-page[data-book-page="cover"] .gateway-motto strong{font-size:clamp(10px,2.5vw,14px)}}
@media(max-width:400px){.book-page[data-book-page="cover"] .opening-logo{grid-template-columns:38px minmax(0,1fr) minmax(0,1fr);gap:5px}.book-page[data-book-page="cover"] .adventure-title .scene-seal{font-size:10px;letter-spacing:-.07em;text-shadow:1px 1px 0 #b47c53,2px 2px 0 #8f614d,3px 4px 2px #1c394554}.book-page[data-book-page="cover"] .gateway-motto strong{font-size:9px}}
/* Short tablet screens show one clear title, the cover art, and all play buttons. */
@media(max-height:800px){
 .book-page[data-book-page="cover"]{gap:2px;justify-content:flex-start}
 .book-page[data-book-page="cover"] .opening-logo{grid-template-columns:clamp(38px,4.8vw,56px) minmax(0,220px) minmax(120px,185px);gap:10px;padding:1px 0!important}
 .book-page[data-book-page="cover"] .opening-logo>img:first-child{width:clamp(38px,4.8vw,56px)!important;height:clamp(38px,4.8vw,56px)!important}
 .book-page[data-book-page="cover"] .opening-logo h1{grid-column:2;grid-row:1;width:100%!important}
 .book-page[data-book-page="cover"] .adventure-title{display:none}
 .book-page[data-book-page="cover"] .gateway-motto{grid-column:3;grid-row:1}
 .book-page[data-book-page="cover"] .meadow-scene{width:min(100%,650px);max-height:160px;margin:2px auto 3px!important}
 .book-page[data-book-page="cover"] .book-page-heading{margin:2px 0!important}
 .book-page[data-book-page="cover"] .book-page-heading small{display:none}
 .book-page[data-book-page="cover"] .intro{margin:1px 0 4px!important;font-size:11px!important}
 .book-page[data-book-page="cover"] .book-cover-actions{margin:2px 0 3px}
}
@media(max-width:600px) and (max-height:800px){
 .book-page[data-book-page="cover"] .opening-logo{grid-template-columns:38px minmax(0,1fr) minmax(95px,.6fr);gap:5px}
 .book-page[data-book-page="cover"] .opening-logo h1{grid-column:2;grid-row:1}
 .book-page[data-book-page="cover"] .gateway-motto{grid-column:3;grid-row:1}
 .book-page[data-book-page="cover"] .gateway-motto strong{font-size:10px}
 .book-page[data-book-page="cover"] .meadow-scene{max-height:115px}
}
