/* v17 mobile + web layer: additive only. */
html, body { overscroll-behavior: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
#rzFs {
  all: unset; cursor: pointer; box-sizing: border-box; min-width: 34px; height: 30px; padding: 0 9px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #ffffff14; color: #aeb4bd;
  font: 700 12px/1 ui-sans-serif, system-ui, sans-serif; touch-action: manipulation;
}
#rzFs:hover, #rzFs:focus-visible { color: #fff; background: #ffffff12; }
#rzFs[hidden] { display: none; }
/* Short landscape screens (a phone held sideways): keep the tab bar to ONE scrolling row so it does not eat the play field. */
@media (orientation: landscape) and (max-height: 520px) {
  #rmTop { flex-wrap: nowrap !important; padding-top: calc(4px + env(safe-area-inset-top)) !important; padding-bottom: 4px !important; row-gap: 0 !important; }
  #rmTabs { order: 0 !important; flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; margin-top: 0 !important; flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; }
  #rmTabs::-webkit-scrollbar { display: none; }
  #rmStat, #rmBrand { flex: 0 0 auto !important; }
  #rmTop > button { flex: 0 0 auto !important; }
  #rmAll { display: none !important; }
}
/* Bigger, thumb-sized touch buttons on tall phones. */
@media (pointer: coarse) { button { min-height: 44px; } }
