/* 移动浏览器兼容：正常窄视口流式布局；异常宽视口保持 480px 设计比例后整页等比缩放。 */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

@media (hover:none) and (pointer:coarse){
  html,body{
    width:100%;
    max-width:none;
    margin:0;
    border-left:0;
    border-right:0;
    box-shadow:none;
  }
  .tabbar,.sc-sheet,.global-scenery{
    width:100%;
    max-width:none;
  }
}

html.mobile-wide-layout{
  overflow-x:hidden;
}
html.mobile-wide-layout body{
  width:480px;
  max-width:480px;
  min-height:var(--mobile-layout-height,100vh);
  margin:0;
  zoom:var(--mobile-layout-scale,1);
}
html.mobile-wide-layout .tabbar,
html.mobile-wide-layout .sc-sheet,
html.mobile-wide-layout .global-scenery{
  width:480px;
  max-width:480px;
}

/* P40 系列降载：保留信息和交互，只移除旧 GPU 最吃力的实时模糊与阴影动画。 */
html.performance-lite body{box-shadow:none}
html.performance-lite .topbar,
html.performance-lite .tabbar,
html.performance-lite .smash-counter{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html.performance-lite .global-scenery{
  -webkit-mask-image:none;
  mask-image:none;
  opacity:.48;
}
html.performance-lite .cell.today{
  animation:none;
  box-shadow:0 0 0 3px rgba(176,73,62,.12);
}
html.performance-lite .home-icon svg,
html.performance-lite .home-icon.home-minimal-icon,
html.performance-lite .nav-minimal-icon,
html.performance-lite .practice-character-wrap img{
  filter:none;
}
html.performance-lite .smash-ultimate.ready,
html.performance-lite .smash-ultimate::before{
  animation:none!important;
  filter:none!important;
}
