/* V33: contain page width, preserve viewport navigation, and stop horizontal drift. */
html,body{width:100%;max-width:100%;overflow-x:hidden!important;overflow-x:clip!important}
body{min-width:0!important}
img,video,canvas,svg,iframe{max-width:100%}
.shell-main,.shell-content,#welcomeModules,.welcome-module,.home-video-module,
.awards-hero,.awards-main,.award-section,.prize-message,.result-card{min-width:0!important;max-width:100%!important}

body[data-page="home"] .shell-main{overflow-x:hidden!important;overflow-x:clip!important}
body[data-page="home"] .home-video-module{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
body[data-page="home"] .home-video-stage,
body[data-page="home"] .welcome-message-stage,
body[data-page="home"] .prize-message-lines,
body[data-page="home"] .media-rail{width:100%;max-width:100%;min-width:0}
body[data-page="home"] .home-prize-feature-image img{width:100%;max-width:100%;height:auto}
body[data-page="home"] .rail-heading,
body[data-page="home"] .performer-rail-actions{min-width:0;max-width:100%;flex-wrap:wrap}
body[data-page="home"] .judge-grid{min-width:0}

body[data-page="awards"]{overflow-x:hidden!important;overflow-x:clip!important}
body[data-page="awards"] .awards-main{width:min(1120px,calc(100% - 16px))!important}
body[data-page="awards"] .awards-hero{width:min(1180px,calc(100% - 12px))!important;max-width:calc(100% - 12px)!important}
body[data-page="awards"] .award-section,
body[data-page="awards"] .prize-message,
body[data-page="awards"] .results,
body[data-page="awards"] .result-copy{overflow-wrap:anywhere;word-break:normal}
body[data-page="awards"] .award-scroll-reveal{max-width:100%!important}

@media(max-width:760px){
  body[data-page="home"] .shell-main{padding-right:10px!important;padding-left:10px!important}
  body[data-page="home"] #welcomeModules{width:100%!important}
  body[data-page="home"] #welcomeModules>.home-scroll-reveal,
  body[data-page="home"] #welcomeModules>.home-scroll-reveal.from-right{--home-reveal-x:0px!important}
  body[data-page="home"] .prize-message-lines>.prize-card-reveal,
  body[data-page="home"] .prize-message-lines>.prize-card-reveal.prize-from-right{--prize-enter-x:0px!important}
  body[data-page="home"] .welcome-module,
  body[data-page="home"] .prize-message-section{width:100%!important}
  body[data-page="home"] .featured-judge-link{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="home"] .judge-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="home"] .host-profile-link{grid-template-columns:1fr!important}

  body[data-page="awards"] .award-scroll-reveal,
  body[data-page="awards"] .award-scroll-reveal.from-right{--award-reveal-x:0px!important;transform:none}
  body[data-page="awards"] .prize-message::after{right:8px!important;max-width:calc(100% - 16px);overflow:hidden;font-size:clamp(2.6rem,18vw,5rem)!important}
  body[data-page="awards"] .result-card{max-width:100%!important}
}
@media(max-width:480px){
  body[data-page="awards"] .result-card:not(.place-1){grid-template-columns:1fr!important;text-align:center}
  body[data-page="awards"] .result-card:not(.place-1) .result-photo-link,
  body[data-page="awards"] .result-card:not(.place-1)>img{justify-self:center}
  body[data-page="awards"] .score-summary{justify-content:center}
}
