/* V126 — shared mobile keyboard safety. Visual design and game rules are unchanged. */
@media (max-width:760px), (pointer:coarse) {
  html {
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
    scroll-padding-top:64px;
    scroll-padding-bottom:calc(var(--wos-keyboard-offset,0px) + 82px);
  }
  body {
    min-height:100dvh;
    overflow-x:hidden;
    overscroll-behavior-y:contain;
  }
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
  select, textarea { font-size:16px!important; }
  button, input, select, textarea, a[role="button"] { touch-action:manipulation; }
  input, select, textarea, button {
    scroll-margin-top:72px;
    scroll-margin-bottom:calc(var(--wos-keyboard-offset,0px) + 76px);
  }
  body.wos-keyboard-open {
    min-height:var(--wos-visible-height,100dvh)!important;
  }
  :focus-visible {
    outline:3px solid rgba(44,183,224,.72)!important;
    outline-offset:2px!important;
  }
}


/* V126 — fixed controls are positioned relative to the visual viewport on iOS;
   do not add the keyboard height twice. */
@media (max-width:760px), (pointer:coarse) {
  body.wos-keyboard-open input,
  body.wos-keyboard-open textarea,
  body.wos-keyboard-open select { scroll-margin-bottom:76px!important; }
}
