/* Keep nine-team boards readable, with horizontal scrolling on small screens. */
/* Prevent scroll-boundary pull-to-refresh where supported without cancelling pinch gestures. */
html,body {overscroll-behavior-y:contain;}
@media (any-pointer:coarse), (max-width:760px) {
  /* iOS magnifies focused text controls below 16px. Keep every editable field readable. */
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  html body textarea,html body select,html body [contenteditable="true"] {
    font-size:16px!important;
  }
  html body .popup-box,html body dialog {max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior-y:contain;}
}
#wide-team-area .battle-table {overflow-x:auto;}
#wide-team-area .battle-table > .multi-header-row,
#wide-team-area .battle-table > .multi-stat-row {min-width:calc(108px + var(--column-count, 2) * 150px);}
.team-g .team-name-input {color:var(--team-g-color,#a3e635)!important;-webkit-text-fill-color:var(--team-g-color,#a3e635)!important;}
.team-h .team-name-input {color:var(--team-h-color,#f9a8d4)!important;-webkit-text-fill-color:var(--team-h-color,#f9a8d4)!important;}
.team-i .team-name-input {color:var(--team-i-color,#67e8f9)!important;-webkit-text-fill-color:var(--team-i-color,#67e8f9)!important;}
.dd-performance-settings {margin:16px 0;padding:12px;border:1px solid #64748b;border-radius:10px;}
.dd-performance-settings select {min-height:44px;font-size:16px;width:100%;background:#121826;color:#f8fafc;}
.dd-performance-settings p {font-size:14px;line-height:1.5;}
html.dd-lite body {background:#080b14!important;background-image:none!important;}
html.dd-lite body::before,html.dd-lite body::after {display:none!important;}
html.dd-lite *,html.dd-lite *::before,html.dd-lite *::after {
  box-shadow:none!important;text-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  animation:none!important;transition:none!important;scroll-behavior:auto!important;
}
