/* Load AFTER screens-v2.css. Viewport height, not phone width, determines hero size.
   Exposed --home-reserved-height is header + nav + vertical shell gaps.
   Default 158px; Claude must measure his shell and override this LOCAL property. */
body:not(:has(#rankView:not([hidden]))) #listView:not([hidden]){
  --home-reserved-height:158px;
  box-sizing:border-box;height:calc(100dvh - var(--home-reserved-height) - env(safe-area-inset-bottom));
  display:grid;grid-template-rows:minmax(120px,1fr) auto;align-content:start;gap:0;
}
body:not(:has(#rankView:not([hidden]))) #listView .hero{height:100%;max-height:300px;min-height:120px;margin:0 -12px;overflow:hidden}
body:not(:has(#rankView:not([hidden]))) #listView .hero-tx{padding:14px 18px 0}
body:not(:has(#rankView:not([hidden]))) #listView .hero-title{font-size:clamp(23px,7.5vw,32px);line-height:1.1}
body:not(:has(#rankView:not([hidden]))) #listView .hero-art img{object-position:center 62%}
body:not(:has(#rankView:not([hidden]))) #listView .home-sheet{margin:0;padding:0;background:#f8f8f3}
body:not(:has(#rankView:not([hidden]))) #listView .next{padding:10px 12px;margin:0 0 8px}
body:not(:has(#rankView:not([hidden]))) #listView .next-hd{margin:0 0 5px}
body:not(:has(#rankView:not([hidden]))) #listView .next-hd .home-h{font-size:18px;line-height:24px}
body:not(:has(#rankView:not([hidden]))) #listView .next-date{padding:0 0 4px;line-height:18px}
body:not(:has(#rankView:not([hidden]))) #listView .next-ev{min-height:34px;padding:6px 7px;grid-template-columns:44px minmax(0,1fr) auto;gap:5px;box-sizing:border-box}
body:not(:has(#rankView:not([hidden]))) #listView .next-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:20px;min-width:0}
body:not(:has(#rankView:not([hidden]))) #listView .next-time{font-size:12px;line-height:20px}
body:not(:has(#rankView:not([hidden]))) #listView .next-top .chip{font-size:9px;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(:has(#rankView:not([hidden]))) #listView .home-sheet > .home-h{font-size:16px;line-height:21px;margin:7px 2px}
body:not(:has(#rankView:not([hidden]))) #listView .quick-btn{padding:10px;gap:6px;min-height:66px}
body:not(:has(#rankView:not([hidden]))) #listView .quick-btn svg{height:24px;width:24px}
body:not(:has(#rankView:not([hidden]))) #listView .promo-slot{margin-top:10px}
body:not(:has(#rankView:not([hidden]))) #listView .promo{aspect-ratio:4/1}
/* Preserve full 3:1 art without cropping; fill the remaining panel with theme green. */
body:not(:has(#rankView:not([hidden]))) #listView .promo-art{inset:0 0 0 auto;width:75%;height:100%;object-fit:contain;object-position:right center}
body:not(:has(#rankView:not([hidden]))) #listView .promo{background:#163e32}
body:not(:has(#rankView:not([hidden]))) #listView .promo-tx{max-width:58%;text-shadow:0 1px 3px #163e32}
body:not(:has(#rankView:not([hidden]))) #listView .play-btn{margin-top:6px;padding:8px;min-height:36px;box-sizing:border-box}
/* Never hide content to manufacture a zero-scroll measurement. In very short
   landscape windows / enlarged text, report the conflict instead of clipping. */
