/* Plain inline counts, shared by the two game lobbies at every screen size. */
.ha-status-filters .ha-count {
  display: inline; min-width: 0; height: auto; padding: 0; margin-left: 4px;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font: inherit; color: inherit; opacity: .75;
}
.ha-refine-trigger { display: none; }
.ha-refine-dialog {
  position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 520px); max-width: 100%;
  max-height: calc(100dvh - 24px); overflow: auto; padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  background: var(--card, #141a21); color: var(--txt); box-shadow: 0 -12px 60px #0007;
}
.ha-refine-dialog::backdrop { background: #000a; }
.ha-refine-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ha-refine-heading h2 { margin: 0; font: 700 22px var(--display); }
.ha-refine-heading button { min-width: 44px; min-height: 44px; padding: 0; font: 24px var(--font); }
.ha-refine-fields { display: grid; gap: 20px; }
.ha-refine-fields label { display: grid; gap: 9px; color: var(--txt-dim); font-size: 12px; }
.ha-refine-fields label[hidden] { display: none; }
.ha-refine-dialog .ha-select { width: 100%; min-height: 48px; max-width: none; font-size: 14px; }
.ha-refine-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.ha-refine-footer .ha-btn { min-height: 46px; padding: 0 12px; font-size: 11px; }
@media (max-width: 820px) {
  .ha-compact-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ha-compact-board .ha-status-filters { display: flex; width: 100%; gap: 0; padding: 3px; }
  .ha-compact-board .ha-status-filters button { flex: 1 1 auto; flex-direction: row; gap: 4px; min-height: 42px; padding: 0 7px; font-size: 11px; letter-spacing: 0; }
  .ha-compact-board .ha-status-filters .ha-count { margin: 0; }
  .ha-compact-board .ha-sec-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; width: 100%; margin: 0; }
  .ha-compact-board .ha-sec-actions > select { display: none; }
  .ha-compact-board .ha-sec-actions > .ha-btn { grid-column: auto; width: auto; min-height: 44px; padding: 0 12px; font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
  .ha-compact-board .ha-sec-actions > .ha-refine-trigger { display: inline-flex; gap: 5px; padding: 0 10px; }
  .ha-refine-trigger svg { width: 16px; height: 16px; }
  .ha-refine-trigger b:empty { display: none; }
  .ha-compact-board .bt-affordable { justify-content: flex-start; gap: 7px; padding: 0; width: auto; min-width: 0; font-size: 10px; }
  .ha-compact-board .bt-affordable > span { width: 28px; height: 17px; }
  .ha-compact-board .bt-affordable > span::after { width: 11px; height: 11px; }
  .ha-compact-board .bt-affordable[aria-checked="true"] > span::after { transform: translateX(11px); }
  .ha-compact-board #bt-new, .ha-compact-board #ha-create { display: inline-flex; gap: 5px; }
  .ha-compact-board #bt-new svg, .ha-compact-board #ha-create svg { width: 14px; height: 14px; }
}
@media (max-width: 380px) {
  .ha-compact-board .ha-status-filters button { padding: 0 4px; font-size: 10px; }
  .ha-compact-board .ha-sec-actions { gap: 6px; }
  .ha-compact-board .ha-sec-actions > .ha-btn { padding: 0 9px; }
  .ha-refine-trigger > span { display: none; }
}
