/* Approved mobile intro 33: one continuous wet-glass scene, not a card over a different room.
   Desktop composition and every game are intentionally outside this media query. */
@media(max-width:700px){
 .hb-glass-intro{min-height:100svh;padding:clamp(58px,9svh,90px) 13vw calc(84px + env(safe-area-inset-bottom));gap:clamp(12px,2.4svh,24px);justify-content:center;background:#08090b url('assets/home-books/mobile-intro-glass.webp') center/cover no-repeat}
 .hb-glass-copy{width:100%;max-width:420px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 .hb-glass-copy h1{font-size:clamp(38px,10.8vw,56px);line-height:1.02;letter-spacing:-.035em;margin:0 0 clamp(20px,3svh,30px);text-align:center}
 .hb-glass-copy p{font-size:clamp(18px,min(5.1vw,2.65svh),22px);line-height:1.28;margin:0;color:#f0e6da}
 .hb-glass-copy .hb-intro-lead{font-size:clamp(21px,min(6.15vw,3.15svh),28px);line-height:1.2;margin:0 0 clamp(20px,3svh,30px)}
 .hb-glass-copy .hb-handwritten{position:relative;font-style:italic;color:#aaa0a5;font-size:clamp(25px,6.5vw,33px);line-height:1.2;margin:clamp(25px,4svh,40px) -5px 12px;text-align:center;transform:rotate(-6deg)}
 .hb-glass-copy .hb-handwritten:after{content:'';display:block;width:47%;height:7px;border-top:1px solid #aaa0a5;border-radius:50%;margin:8px 8% 0 auto;transform:rotate(-2deg)}
 .hb-glass-intro .hb-scroll{position:static;display:grid;place-items:center;align-self:center;flex-shrink:0;width:50px;min-height:44px;height:44px;margin:0;padding:0;font-size:0;border:0;background:none;color:#efd3b5}
 .hb-glass-intro .hb-scroll:after{content:'';display:block;width:16px;height:16px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-4px) rotate(45deg)}
}

@font-face{font-family:'Caveat';src:url('assets/fonts/caveat-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
.hb-mobile-title-break,.hb-mobile-stage,.hb-mobile-brand,.hb-book-down,.hb-home-lower{display:none}
/* Author envelopes are distinct from the sealed story letters. Their native alpha is retained. */
.hb-letter summary>.hb-author-envelope,.hb-letter-pending>.hb-author-envelope{position:relative;display:block;width:min(100%,390px);margin:auto;padding:0;line-height:0}
.hb-author-envelope>img{display:block;width:100%;height:auto;max-width:none;aspect-ratio:auto;object-fit:contain;filter:none;mask-image:none}
.hb-author-envelope .hb-author-name{position:absolute;top:25%;left:50%;width:65%;transform:translate(-50%,-50%) rotate(-3deg);font:400 clamp(28px,3vw,39px)/1.1 'Caveat',cursive;color:#dfd3b9;text-align:center;text-shadow:0 1px 2px #000}
.hb-author-envelope-sunset .hb-author-name{top:23%;color:#e6cedb}
@media(max-width:700px){
 .hb-glass-copy .hb-handwritten{font-family:'Caveat',cursive;font-style:normal;font-size:clamp(28px,7.4vw,37px)}
 .hb-home-table{padding:0;background:#08090b;max-width:none}
 .hb-home-table>.hb-desktop-title{display:none}
 .hb-home-books{display:block;max-width:none;margin:0}
 .hb-home-book{position:relative;padding:50px 0 0;background:#08090b;isolation:isolate;overflow:hidden}
 .hb-home-book .hb-cover-link{display:block;width:100%;max-width:none;margin:0;transform:none;filter:none;box-shadow:none;border:0}
 .hb-mobile-stage{display:block;width:100%;line-height:0}
 .hb-home-book .hb-legacy-cover,.hb-book-cover>.hb-legacy-cover{display:none}
 .hb-home-book header{position:absolute;top:0;left:5%;width:90%;height:calc(38px + 34.86vw);min-height:0;padding:0;justify-content:flex-end;pointer-events:none;z-index:4}
 .hb-home-book-1 header{height:calc(38px + 31.93vw)}
 .hb-mobile-brand{display:block;font-size:clamp(21px,6vw,27px);line-height:1.05;color:#ebdfcf;margin:0 0 13px;letter-spacing:-.02em}
 .hb-mobile-brand span{display:block;font-size:14px;color:#b79b72;margin-top:9px}
 .hb-home-book header p{font-size:13px;line-height:1.25;letter-spacing:.18em;margin:0 0 7px}
 .hb-home-book h2{font-size:clamp(40px,11.8vw,51px);line-height:1.02;margin:0}
 .hb-home-book-1 h2{font-size:clamp(31px,9vw,39px);max-width:90%;margin:0 auto}
 .hb-home-book>.hb-action{position:absolute;left:6%;bottom:8%;width:88%;max-width:none;margin:0;z-index:3;background:#08090bf0;border:1px solid #9b7b4f;color:#e9d7bc;min-height:57px}
 .hb-book-down{position:absolute;display:block;width:14px;height:14px;border-right:1px solid #c7ac82;border-bottom:1px solid #c7ac82;transform:rotate(45deg);bottom:3.5%;left:calc(50% - 7px);z-index:3}
 .hb-home-lower{display:block;position:relative;width:100%;aspect-ratio:1/2;background:#08090b url('assets/home-books/mobile-lower-folder-chest-pets.webp') center/100% 100% no-repeat}
 .hb-home-lower a{position:absolute;display:flex;align-items:center;justify-content:center;min-height:44px;width:58%;color:#30251c;font-size:clamp(21px,5.8vw,29px);line-height:1.05;text-align:center;background:none;border:0;box-shadow:none;padding:0 5px;gap:8px;transform:rotate(-2deg)}
 .hb-home-lower a.hb-lower-archive{left:27%;top:20.9%;height:6%}
 .hb-home-lower a.hb-lower-games{left:31%;top:46.3%;height:7%;width:56%}
 .hb-home-lower>p{position:absolute;top:62.4%;left:5%;width:90%;margin:0;font-size:clamp(25px,7vw,33px);line-height:1.1;text-align:center;color:#e9ddcd}
 .hb-home-discover{margin:0;background:#08090b;padding-top:15px}
 /* The approved inside-book references are mobile. Desktop columns stay unchanged. */
 body.book-redesign>.topbar{position:absolute;top:0;left:0;right:0;background:transparent!important;border:0;z-index:20;pointer-events:none}
 body.book-redesign>.topbar .brand{visibility:hidden}
 body.book-redesign>.topbar button,body.book-redesign #navigation{pointer-events:auto}
 .hb-book,.hb-book-1{padding:0 0 90px;background:#08090b;min-height:100svh}
 .hb-book-grid{display:block;width:100%;max-width:none;margin:0}
 .hb-book>.hb-back{position:absolute;left:20px;top:15px;z-index:21;margin:0;min-height:44px;display:flex;align-items:center;font-size:17px}
 .hb-book-opening{position:relative;background:#08090b url('assets/home-books/mobile-count-stage.webp') center 50px/100% auto no-repeat}
 .hb-book-1 .hb-book-opening{background-image:url('assets/home-books/mobile-sunset-stage.webp')}
 .hb-book-heading{position:absolute;left:7%;top:66px;width:86%;margin:0;z-index:3;pointer-events:none}
 .hb-book-heading>p{font-size:13px;letter-spacing:.17em;margin:0 0 8px}
 .hb-book-heading h1{font-size:43px;line-height:1.02;margin:0}
 .hb-book-1 .hb-book-heading{top:51px}
 .hb-book-1 .hb-book-heading h1{font-size:34px;max-width:94%;margin:auto}
 .hb-book-cover{display:block;width:100%;max-width:none;height:calc(121vw + 50px);margin:0;padding:50px 0 0;overflow:hidden;box-shadow:none;border:0;border-radius:0;background:none}
 .hb-book-cover .hb-stage-background,.hb-book-cover .hb-stage-cover{border:0;box-shadow:none;border-radius:0}
 .hb-book-actions{position:relative;display:grid;gap:12px;margin:0;padding:10px 6% 25px;max-width:none}
 .hb-book-actions .hb-action{background:#08090bef;border:1px solid #9b7b4f;min-height:57px;color:#e9d7bc}
 .hb-book-actions .hb-cover-wrap{min-height:44px;color:#c9b397;background:none}
 .hb-book-materials{margin:25px 0 0;padding:0 6%;background:#08090b}
 .hb-book-materials h2{font-size:34px;margin:22px 0 12px}
 .hb-author-envelope .hb-author-name{font-size:clamp(29px,8vw,38px)}
 .hb-letter summary{min-height:0;margin:0 -5%;padding:0}
 .hb-letter-paper{margin:10px 0 30px}
 .hb-book .hb-about{padding:0 6%}
}
/* Inside Count reference 22 starts directly with author/title. Its larger cover
   uses the same intact scene, only the surrounding forest is outside the viewport. */
@media(max-width:700px){
 .hb-book-0>.hb-back{display:none}
 .hb-book-0 .hb-book-heading{top:14px}
 .hb-book-0 .hb-book-heading>p{font-size:12px;line-height:1.1;margin-bottom:5px}
 .hb-book-0 .hb-book-heading h1{font-size:clamp(41px,11.28vw,48px)}
 .hb-book-0 .hb-book-opening{background-size:115% auto;background-position:-10vw -19.23vw}
 .hb-book-0 .hb-book-cover{height:calc(111vw + 23px);padding:0}
 .hb-book-0 .hb-book-cover>.hb-mobile-stage{position:relative;left:-10%;top:-19.23vw;width:115%}
}
.hb-bonus-skin{display:none}
.hb-bonus-copy>small{display:block;margin-top:12px;font:14px/1.3 var(--serif,Georgia,serif);color:#6d5342}
@media(max-width:700px){
 .hb-book-0 .hb-bonus-section{position:relative;margin-bottom:0}
 .hb-book-0 .hb-bonus-file{--bonus-width:88vw;position:relative;isolation:isolate;padding:0;border:0;box-shadow:none;background:none!important;border-radius:0;color:#30251b}
 .hb-book-0 .hb-bonus-copy{position:relative;z-index:1;padding:16% 12% 38% 31%;font-size:16px;line-height:1.4}
 .hb-book-0 .hb-bonus-copy h3{font-size:24px;line-height:1.12;margin:0 0 12px}
 .hb-book-0 .hb-bonus-copy .hb-content-warning{font-size:16px;line-height:1.4;margin:0 0 12px}
 .hb-book-0 .hb-bonus-copy .hb-pdf-link{min-height:44px;display:flex;align-items:center;justify-content:center;margin:8px 0}
 .hb-book-0 .hb-bonus-copy small{display:block;font-size:12px;line-height:1.3}
 .hb-book-0 .hb-bonus-skin{display:block;position:absolute;inset:0;z-index:0;pointer-events:none}
 .hb-bonus-skin svg{position:absolute;display:block;overflow:hidden}
 .hb-bonus-top{top:0;left:0;width:100%;height:calc(var(--bonus-width)*240/1484)}
 .hb-bonus-bottom{bottom:0;left:0;width:100%;height:calc(var(--bonus-width)*810/1484)}
 .hb-book-0 .hb-bonus-case-link{position:relative;z-index:2;margin:-62px auto 18px;width:80%;min-height:44px;padding:3px 0;border:0;border-radius:0;background:none;box-shadow:none;color:#ead2a6;font-size:clamp(19px,5.1vw,25px);line-height:1.1;text-decoration:underline;text-underline-offset:6px}
}

@media(max-width:700px){
 .hb-bonus-middle{top:calc(var(--bonus-width)*220/1484);bottom:calc(var(--bonus-width)*790/1484);left:0;width:100%;height:calc(100% - var(--bonus-width)*1010/1484)}
 .hb-mobile-title-break{display:initial}
 .hb-title-sunset-name{white-space:nowrap}
 .hb-home-lower a{flex-direction:row;gap:4px;font-size:clamp(18px,5.1vw,25px);white-space:nowrap}
}
/* Signed ink follows the two approved author envelopes, without a heavy glow. */
.hb-author-envelope .hb-author-name{font-weight:400;color:#e8e5d7;text-shadow:none}
.hb-author-envelope-sunset .hb-author-name{color:#352332}
@media(max-width:700px){
 .hb-book-materials{position:relative;isolation:isolate;background:transparent}
 .hb-book-materials:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('assets/home-books/count-forest-edge.png') left top/100% auto no-repeat;opacity:.8;mask-image:linear-gradient(transparent,#000 70px,#000 70%,transparent)}
 .hb-book-1 .hb-book-materials:before{background-image:url('assets/home-books/sunset-floral-edge.png')}
 .hb-bonus-grain{top:calc(var(--bonus-width)*220/1484);bottom:calc(var(--bonus-width)*790/1484);left:22%;width:66%;height:calc(100% - var(--bonus-width)*1010/1484);-webkit-mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent),linear-gradient(transparent,#000 7px,#000 calc(100% - 7px),transparent);mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent),linear-gradient(transparent,#000 7px,#000 calc(100% - 7px),transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
 .hb-bonus-middle{mask-image:linear-gradient(transparent,#000 calc(var(--bonus-width)*10/1484),#000 calc(100% - var(--bonus-width)*10/1484),transparent)}
}
@media(max-width:700px) and (max-height:680px){
 .hb-glass-intro{padding-top:38px;gap:8px}
 .hb-glass-copy h1,.hb-glass-copy .hb-intro-lead{margin-bottom:14px}
 .hb-glass-copy .hb-handwritten{margin-top:17px}
}

@media(max-width:700px){
 .hb-book-0 .hb-bonus-case-link{text-decoration:none}
 .hb-book-0 .hb-bonus-case-link>.hb-bonus-case-label{font:inherit;color:inherit;flex-shrink:1;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
}

/* Point 1 follow-up: blend adjacent home scenes, never shade a cover face. */
.hb-mobile-utilities{display:none}
@media(max-width:700px){
 .hb-home-table{background:transparent}
 .hb-home-book{padding:0;background:transparent;overflow:visible}
 .hb-home-book header{top:11vw;height:auto;min-height:0;justify-content:flex-start}
 .hb-home-book-1 header{top:4vw;height:auto}
 .hb-home-book header p{margin:0 0 8px}
 .hb-home-book h2{font-size:clamp(38px,11vw,49px)}
 .hb-home-book-1 h2{font-size:clamp(29px,8.4vw,38px)}
 .hb-home-table{margin-top:-44px}
 .hb-home-book+.hb-home-book,.hb-home-lower{margin-top:max(-16px,-4vw)}
 .hb-home-book .hb-home-approved-art{-webkit-mask-image:linear-gradient(transparent,#000 44px);mask-image:linear-gradient(transparent,#000 44px)}
 .hb-home-book-1 .hb-home-approved-art{-webkit-mask-image:linear-gradient(transparent,#000 min(16px,4vw));mask-image:linear-gradient(transparent,#000 min(16px,4vw))}
 .hb-home-lower{background:none;isolation:isolate;margin-bottom:calc(68px + env(safe-area-inset-bottom))}
 .hb-home-lower:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('assets/home-books/mobile-lower-folder-chest-pets.webp') center/100% 100% no-repeat;-webkit-mask-image:linear-gradient(transparent,#000 min(16px,4vw));mask-image:linear-gradient(transparent,#000 min(16px,4vw))}
 .hb-home-lower nav{position:static}
 .hb-home-lower>p{pointer-events:none}
 body.home-redesign>.topbar{pointer-events:none}
 body.home-redesign>.topbar button,body.home-redesign #navigation{pointer-events:auto}
 .hb-mobile-utilities{display:block;position:absolute;top:12px;left:12px;z-index:25}
 .hb-mobile-utilities summary{list-style:none;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;font:26px/1 Georgia;color:#cbb18c}
 .hb-mobile-utilities summary::-webkit-details-marker{display:none}
 .hb-mobile-utilities>div{position:absolute;left:0;top:44px;min-width:220px;padding:10px;background:#100f11f5;border:1px solid #96794b;box-shadow:0 10px 25px #0008}
 .hb-mobile-utilities button{display:flex;align-items:center;width:100%;min-height:44px;padding:8px 12px;color:#e8d5b6;background:none;border:0;font:17px/1.25 var(--serif,Georgia,serif);text-align:left;cursor:pointer}
}
