/* Word Dome gameplay-only 15% compacting, October 2026.
   Loaded last to override legacy fixed-size rules. Home and account screens unchanged. */
@media (min-width:700px){
 body:not(.wd-gate):has(#game:not([hidden])) .brand.brand-art{
   width:min(408px,85vw)!important;
   height:clamp(123px,17vw,187px)!important;
   margin:0 auto 7px!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo{
   width:min(408px,95vw)!important;
   max-width:95vw!important;
   gap:8px!important;
   margin:7px auto 8px!important;
   transform:none!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > *{
   flex:1 1 0!important;
   min-width:0!important;
   width:auto!important;
   box-sizing:border-box!important;
   padding:7px 5px!important;
   font-size:85%!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .score-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .score-card{
   width:85%!important;min-height:0!important;height:auto!important;
   padding:10px 8px 8px!important;margin:0 auto 7px!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .score-avatar,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .score-avatar{
   width:min(85%,128px)!important;height:auto!important;aspect-ratio:1/1!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .bonus-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .bonus-card,
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .turn-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .turn-card,
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .timer-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .timer-card{
   width:85%!important;min-height:0!important;height:auto!important;
   box-sizing:border-box!important;padding:7px 8px!important;margin:0 auto 7px!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .score-card strong,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .score-card strong{
   font-size:clamp(24px,2vw,34px)!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .turn-card strong,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .turn-card strong{
   font-size:clamp(14px,1.3vw,18px)!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .timer-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .timer-card{
   font-size:clamp(13px,1.2vw,16px)!important;
 }
}
@media (max-width:699px){
 body:not(.wd-gate):has(#game:not([hidden])) .brand.brand-art{
   width:85%!important;height:clamp(89px,23vw,132px)!important;margin:0 auto 5px!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo{
   width:85%!important;gap:5px!important;margin:4px auto 6px!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > *{
   min-width:0!important;padding:5px 3px!important;font-size:85%!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .score-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .score-card,
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .bonus-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .bonus-card,
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .turn-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .turn-card,
 body:not(.wd-gate):has(#game:not([hidden])) .left-panel .timer-card,
 body:not(.wd-gate):has(#game:not([hidden])) .right-panel .timer-card{
   padding:6px!important;min-height:0!important;
 }
}

/* The official logo is painted by an absolutely positioned ::after element.
   Reserve real header height so the browser can scroll to its true top. */
body:not(.wd-gate):has(#game:not([hidden])) main{overflow-y:visible!important;scroll-margin-top:0!important}
body:not(.wd-gate):has(#game:not([hidden])) .brand.brand-art{flex-shrink:0!important;overflow:visible!important}

/* Lower only the rendered gameplay logo artwork toward the center MODE box.
   Keep its header footprint and hit-free separation from all three controls. */
@media (min-width:700px){
 body:not(.wd-gate):has(#game:not([hidden])) .brand.brand-art::after{
  top:24px!important;
  transform:translateY(20px)!important;
 }
}
