/* Hangryology v1.4.33: logo, hero, dimmed wallpaper, loading and full-screen level scenes. */
header.top .logo{padding:3px 8px!important;min-width:0!important;display:flex!important;align-items:center!important;background:transparent!important;border:0!important}
header.top .logo img{display:block;width:clamp(115px,15vw,220px);height:clamp(46px,5.3vw,68px);object-fit:contain;object-position:left center}
#home .home-hero.hero-lab-v1433{position:relative!important;isolation:isolate!important;min-height:clamp(500px,58vw,800px)!important;background:#05152d!important;overflow:hidden!important}
#home .home-hero.hero-lab-v1433::before{content:"";position:absolute;z-index:-2;inset:0;background:url('hangryology-home-hero-v1433.webp') center center/cover no-repeat}
#home .home-hero.hero-lab-v1433::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(2,12,28,.94) 0%,rgba(2,12,28,.82) 25%,rgba(2,12,28,.38) 49%,transparent 80%),linear-gradient(0deg,#041329 0%,transparent 17%)}
#home .home-hero.hero-lab-v1433 .hero-copy{position:relative!important;z-index:2!important}
/* Default pages: wallpaper is a quiet ambient layer, not a panel or card. */
body:not(.hunger-experiment-active) .screen.active:is(#setup,#quiz,#chemistry-player1,#chemistry-player2,#chemistry-results-screen,#wheel-screen,#winner,#all,#saved,#about,#search-error),
body.hunger-experiment-active .screen.active:is(#setup,#quiz,#chemistry-player1,#chemistry-player2,#chemistry-results-screen,#saved,#about){
 background-color:#031225!important;
 background-image:linear-gradient(rgba(1,10,25,.81),rgba(1,10,25,.9)),url('hangryology-neon-wallpaper-v1433.webp')!important;
 background-position:center top!important;background-size:cover,clamp(600px,62vw,1050px) auto!important;
 background-repeat:no-repeat,repeat!important;
 min-height:100svh!important;
}
/* Hunger Meter experiments: cover the ENTIRE page with that level's art,
   instead of limiting it to a narrow right-hand strip. */
body.hunger-experiment-active .screen.active:is(#wheel-screen,#all,#winner,#search-error){
 position:relative!important;isolation:isolate!important;min-height:100svh!important;
 background:linear-gradient(180deg,rgba(2,10,23,.67),rgba(2,10,23,.87)),var(--hunger-art) center top/cover no-repeat!important;
}
body.hunger-experiment-active .screen.active:is(#wheel-screen,#all,#winner,#search-error)::before,
body.hunger-experiment-active .screen.active:is(#wheel-screen,#all,#winner,#search-error)::after{content:none!important;display:none!important}
/* Existing loading illustration: preserve the top of the logo and move the controls DOWN. */
#loading.screen.active{min-height:100svh!important;min-height:100dvh!important;overflow:hidden!important;justify-content:flex-end!important;padding:0 12px 0!important;background:#020d1d!important}
#loading .hangry-loading-art{inset:0!important;background-position:center top!important;background-size:100% auto!important;background-repeat:no-repeat!important;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)!important;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)!important}
#loading .hangry-loading-ui{position:relative!important;z-index:3!important;margin:0 auto!important;transform:none!important;width:min(980px,94vw)!important;padding:12px 22px 10px!important;border-radius:19px 19px 0 0!important;background:linear-gradient(180deg,rgba(2,13,30,.84),rgba(1,10,25,.97))!important}
#loading .hangry-loading-art::after{background:linear-gradient(180deg,transparent 0%,transparent 68%,rgba(1,11,27,.1) 78%,#010b1b 100%)!important}
@media(min-width:900px){#loading.screen.active{min-height:calc(100svh + 105px)!important;padding-bottom:0!important}#loading .hangry-loading-art{background-size:cover!important;background-position:center top!important}#loading .hangry-loading-ui{margin-top:auto!important}}
@media(max-width:700px){
 header.top .logo img{width:145px;height:50px}
 #home .home-hero.hero-lab-v1433{min-height:610px!important}
 #home .home-hero.hero-lab-v1433::before{background-position:63% center!important}
 #home .home-hero.hero-lab-v1433::after{background:linear-gradient(90deg,rgba(2,12,28,.9),rgba(2,12,28,.4)),linear-gradient(0deg,#041329,transparent 25%)}
 #loading.screen.active{min-height:100dvh!important;padding:0 8px 0!important}
 #loading .hangry-loading-art{background-size:auto 78%!important;background-position:center top!important;inset:0!important}
 #loading .hangry-loading-ui{width:100%!important;padding:10px 10px 8px!important;border-radius:13px 13px 0 0!important}
 body.hunger-experiment-active .screen.active:is(#wheel-screen,#all,#winner,#search-error){background-position:center top!important;background-size:cover!important}
}
