/* Feather the real artwork into the approved wallpaper rather than a hard rectangle. */
html body .screen .scene-hero>img,
html body #winner.screen.active .scene-hero>img.jackpot-hero-v1452{
 -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 4%,#000 72%,transparent 100%)!important;
 mask-image:linear-gradient(to bottom,transparent 0%,#000 4%,#000 72%,transparent 100%)!important;
}
html body .screen .level-scene-hero{margin-bottom:calc(-1 * clamp(14px,3vw,55px))!important}
html body .screen .hunger-themed-banner{position:relative!important;z-index:2!important}
/* The image's lower navy padding becomes a transition behind the raised winner card. */
html body #winner.screen.active .winner-scene-hero{margin-bottom:calc(-1 * clamp(42px,7vw,130px))!important}
html body #winner.screen.active .winner-card{
 position:relative!important;z-index:3!important;
 width:min(100%,1000px)!important;max-width:1000px!important;
 margin:0 auto!important;padding:22px clamp(16px,3vw,32px)!important;
 border:0!important;border-radius:20px!important;
 background:rgba(3,22,42,.96)!important;box-shadow:none!important;backdrop-filter:none!important;
}
html body #winner.screen.active .winner-bottom-actions-v1452{
 width:min(100%,850px)!important;max-width:850px!important;
 margin:22px auto!important;padding:20px!important;
 border:0!important;border-radius:18px!important;
 background:rgba(4,25,45,.96)!important;box-shadow:none!important;filter:none!important;
 display:flex!important;flex-direction:column!important;gap:12px!important;
}
html body #winner.screen.active .winner-bottom-actions-v1452>button{
 width:100%!important;max-width:100%!important;margin:0!important;
 box-shadow:none!important;filter:none!important;text-shadow:none!important;
}
html body #winner.screen.active .winner-bottom-actions-v1452>button::before,
html body #winner.screen.active .winner-bottom-actions-v1452>button::after{content:none!important;display:none!important}
html body #winner.screen.active>.hangry-reset-everywhere{display:block!important;width:auto!important;max-width:100%!important;margin:18px auto!important;position:static!important}
/* Opaque blue tiles give each food icon a readable, consistent backing. */
html body #all.screen.active .lab-cuisine,
html body.hunger-experiment-active #all.screen.active .lab-cuisine{
 flex:0 0 112px!important;width:112px!important;min-width:112px!important;max-width:112px!important;
 height:140px!important;padding:8px!important;
 border:1px solid #2b86ae!important;border-radius:15px!important;
 background:#082b48!important;box-shadow:none!important;opacity:1!important;gap:6px!important;
}
html body #all.screen.active .lab-cuisine[aria-pressed="true"]{background:#103d5d!important;border:2px solid #ffb454!important;box-shadow:none!important}
html body #all.screen.active .lab-cuisine img.lab-cuisine-image{width:88px!important;height:88px!important;max-width:88px!important;max-height:88px!important;object-fit:contain!important}
html body #all.screen.active .lab-cuisine .lab-cuisine-label{font-size:13px!important;line-height:1.2!important;color:#fff!important;text-shadow:none!important;filter:none!important}
/* Chemistry's summary and actions stay centered and comfortable to read. */
html body #chemistry-results-screen.screen.active #chemistry-results{
 width:min(100%,820px)!important;max-width:820px!important;margin:24px auto!important;
 padding:28px clamp(18px,4vw,40px)!important;
 border:1px solid #246381!important;border-radius:20px!important;box-shadow:none!important;
}
html body #chemistry-results-screen.screen.active>.actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;width:min(100%,700px)!important;max-width:700px!important;margin:20px auto!important}
html body #chemistry-results-screen.screen.active>.actions>button{width:100%!important;min-width:0!important;margin:0!important;box-shadow:none!important;white-space:normal!important}
html body #chemistry-results-screen.screen.active>#reset-from-results{display:block!important;width:min(100%,520px)!important;max-width:520px!important;margin:18px auto!important;box-shadow:none!important}
html body #chemistry-score{font-size:clamp(48px,6vw,82px)!important;text-shadow:none!important;filter:none!important}
/* This new bitmap has NO progress bar. Only the live HTML progress track is shown. */
html body #loading.screen.active>img.loading-scene-hero{
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 85%,transparent 100%)!important;
 mask-image:linear-gradient(to bottom,#000 0%,#000 85%,transparent 100%)!important;
}
html body #loading .loading-experiment-title{font-size:clamp(20px,2vw,28px)!important;letter-spacing:.025em!important;margin:0 0 12px!important;color:#e3f6ff!important}
@media(max-width:700px){
 html body #all.screen.active .lab-cuisine,html body.hunger-experiment-active #all.screen.active .lab-cuisine{flex-basis:96px!important;width:96px!important;min-width:96px!important;max-width:96px!important;height:124px!important}
 html body #all.screen.active .lab-cuisine img.lab-cuisine-image{width:74px!important;height:74px!important;max-width:74px!important;max-height:74px!important}
 html body #all.screen.active .lab-cuisine .lab-cuisine-label{font-size:12px!important}
 html body #chemistry-results-screen.screen.active>.actions{grid-template-columns:1fr!important}
 html body #winner.screen.active .winner-scene-hero{margin-bottom:-32px!important}
 html body #winner.screen.active .winner-bottom-actions-v1452{padding:15px!important;margin:16px auto!important}
}
/* Override the earlier ID-specific reject-button halo and action margins. */
html body #winner.screen.active #reject-winner,
html body #winner.screen.active #again,
html body #winner.screen.active #other{
 box-shadow:none!important;filter:none!important;text-shadow:none!important;
 margin:0!important;width:100%!important;max-width:none!important;
}
