@font-face {
  font-family: "Bowlby One SC";
  src: url("assets/fonts/BowlbyOneSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --tx-font: "Bowlby One SC", Impact, sans-serif;
}

/* Use the TX identity face even in older panels with their own font shorthands. */
body, body :where(*, *::before, *::after) {
  font-family: var(--tx-font) !important;
  font-synthesis: style;
}

:where(p, li, dd, blockquote) {
  line-height: 1.6;
}

:where(button, select, input, textarea) {
  max-inline-size: 100%;
}

#select-screen .fighter-extra .stat-line {
  grid-template-columns: minmax(105px, max-content) repeat(5, 13px);
}

#settings-dialog .settings-options > label > span {
  min-width: 0;
}

#settings-dialog #settings-fxquality {
  min-width: min(145px, 40vw);
}

.street-options fieldset {
  min-inline-size: 0;
}

/* Size dropdowns for the longest option and leave room for the native arrow. */
body select:not([hidden]) {
  inline-size: max-content;
  max-inline-size: 100%;
  padding-inline: 12px 34px;
  box-sizing: border-box;
}
#settings-dialog #settings-fxquality {
  inline-size: max-content;
  min-inline-size: min(190px,100%);
  padding-inline: 14px 32px;
}
#settings-dialog .settings-options > label:has(select) { flex-wrap: wrap; }
#settings-dialog #main-help {
  font: italic 18px/1.2 var(--tx-font);
}
#settings-dialog #settings-done {
  background: #ffc333;
  color: #111923;
  font: italic 18px/1.2 var(--tx-font);
}
#settings-dialog #settings-done:is(:hover,:focus-visible) { background: #ffe079; color: #111923; }

