/* v358 compatibility + lightness pass: iOS/Android/desktop browsers (Safari, Chrome, Edge, Firefox, Samsung Internet) */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeSpeed}
h1,h2,h3,.section-title{text-rendering:optimizeLegibility}
img,video,svg,canvas{max-width:100%}
/* mobile browser toolbars change the visual height: prefer the dynamic viewport where supported */
@supports (min-height:100dvh){
  body{min-height:100dvh}
  .pfs-stage{height:100dvh}
  .rg-orbit-section{min-height:100dvh}
  .modal-panel{max-height:calc(100dvh - 24px)}
}
/* touch devices: 16px fields stop iOS Safari from zooming the page on focus; no 300ms tap delay */
@media (hover:none) and (pointer:coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),select,textarea{font-size:16px!important}
  .mx input,.mx select,.mx textarea{font-size:13px!important}
  button,a,summary,[role=button],[role=tab],label{touch-action:manipulation}
}
/* phones and tablets: a lighter glass effect (big blurs are the main cause of scroll lag on mobile GPUs) */
@media (max-width:1024px),(hover:none) and (pointer:coarse){
  .glass{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
  .topbar,.nav-more-panel,.lang-panel,.modal-panel{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
}
/* smoother scrolling inside panels on iOS, without chaining into the page */
.nav-more-panel,.lang-panel,.modal-panel,.mx-body,.cslider{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
/* browsers that cannot do backdrop-filter get a solid, readable surface */
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  .glass,.topbar,.nav-more-panel,.lang-panel,.modal-panel{background-color:rgba(8,16,38,.94)}
  html:not([data-theme="dark"]) .glass,html:not([data-theme="dark"]) .topbar{background-color:rgba(255,255,255,.96)}
}
