/* Non-home typography pass: match the smaller, denser direction-2 home screen. */
body:not([data-page="home"]) {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

body:not([data-page="home"]) .topbar {
  min-height: 58px;
}

body:not([data-page="home"]) .topbar h1 {
  font-size: 18px !important;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

body:not([data-page="home"]) .screen,
body:not([data-page="home"]) .arena-page {
  font-size: 12px;
  line-height: 1.4;
}

body:not([data-page="home"]) .arena-section,
body:not([data-page="home"]) .section-title {
  margin: 20px 0 10px;
  padding: 0 10px;
}

body:not([data-page="home"]) .arena-section h2,
body:not([data-page="home"]) .section-title h2,
body:not([data-page="home"]) .card h2,
body:not([data-page="home"]) .hero h2 {
  color: #fff;
  font-size: 22px !important;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

body:not([data-page="home"]) .section-title h2:before {
  content: "\26A1";
  margin-right: 9px;
  color: #ff8a18;
  text-shadow: 0 0 12px rgba(255, 138, 24, .25);
}

body:not([data-page="home"]) .arena-section button,
body:not([data-page="home"]) .section-title button {
  color: #1498ff;
  font-size: 13px !important;
  line-height: 1.1;
  font-weight: 900;
}

body:not([data-page="home"]) .card {
  padding: 12px !important;
  border-radius: 18px;
}

body:not([data-page="home"]) .arena-card {
  padding: 14px 13px !important;
  border-radius: 22px;
}

body:not([data-page="home"]) .arena-team-card {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body:not([data-page="home"]) .avatar,
body:not([data-page="home"]) .logo {
  width: 44px !important;
  height: 44px !important;
  font-size: 22px !important;
  border-radius: 14px;
}

body:not([data-page="home"]) .arena-team-card h3 {
  font-size: 21px !important;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

body:not([data-page="home"]) .card h3,
body:not([data-page="home"]) .ref-card h3,
body:not([data-page="home"]) .official-card h3,
body:not([data-page="home"]) .match-card h3 {
  font-size: 19px !important;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

body:not([data-page="home"]) .arena-team-card p,
body:not([data-page="home"]) .card p,
body:not([data-page="home"]) .muted,
body:not([data-page="home"]) .ref-card p,
body:not([data-page="home"]) .official-card p,
body:not([data-page="home"]) .match-card p {
  font-size: 12px !important;
  line-height: 1.35;
  font-weight: 700;
}

body:not([data-page="home"]) .tag,
body:not([data-page="home"]) .arena-distance {
  font-size: 11px !important;
  line-height: 1.1;
  font-weight: 900;
  padding: 6px 9px;
}

body:not([data-page="home"]) .arena-stats {
  gap: 9px;
  margin-top: 14px;
}

body:not([data-page="home"]) .arena-stat,
body:not([data-page="home"]) .stat {
  min-height: 62px !important;
  border-radius: 14px;
  padding: 10px 12px !important;
}

body:not([data-page="home"]) .arena-stat b,
body:not([data-page="home"]) .stat b {
  font-size: 24px !important;
  line-height: 1;
  font-weight: 900;
}

body:not([data-page="home"]) .arena-stat small,
body:not([data-page="home"]) .stat small {
  font-size: 12px !important;
  line-height: 1.12;
  font-weight: 800;
}

body:not([data-page="home"]) .btn-row {
  gap: 9px;
  margin-top: 10px;
}

body:not([data-page="home"]) .arena-primary,
body:not([data-page="home"]) .arena-ghost,
body:not([data-page="home"]) .primary,
body:not([data-page="home"]) .ghost {
  min-height: 42px !important;
  border-radius: 13px;
  font-size: 15px !important;
  line-height: 1.12;
  font-weight: 900;
  padding: 9px 14px !important;
}

body:not([data-page="home"]) .grid-2 {
  gap: 9px;
}

body:not([data-page="home"]) .team-list-search input,
body:not([data-page="home"]) .filter-panel input,
body:not([data-page="home"]) .picker-btn {
  min-height: 46px !important;
  font-size: 13px !important;
  line-height: 1.2;
  font-weight: 800;
}

body:not([data-page="home"]) .picker-btn small {
  font-size: 10px !important;
  line-height: 1.2;
  font-weight: 700;
}

body:not([data-page="home"]) .ref-tabs button,
body:not([data-page="home"]) .match-tabs-ref button {
  font-size: 13px !important;
  line-height: 1.12;
  font-weight: 900;
}

body:not([data-page="home"]) .list-item b {
  font-size: 15px !important;
  line-height: 1.15;
  font-weight: 900;
}

body:not([data-page="home"]) .list-item span {
  font-size: 12px !important;
  line-height: 1.35;
  font-weight: 700;
}

body:not([data-page="home"]) .bottom-tabs span {
  font-size: 12px !important;
  line-height: 1.15;
  font-weight: 900;
}

@media (max-width: 390px) {
  body:not([data-page="home"]) .arena-team-card h3 {
    font-size: 20px !important;
  }

  body:not([data-page="home"]) .card h3,
  body:not([data-page="home"]) .ref-card h3,
  body:not([data-page="home"]) .official-card h3,
  body:not([data-page="home"]) .match-card h3 {
    font-size: 18px !important;
  }

  body:not([data-page="home"]) .primary,
  body:not([data-page="home"]) .ghost {
    font-size: 14px !important;
  }
}

/* Final pass for legacy detail/form/game pages that still used oversized mobile type. */
body:not([data-page="home"]) .team-detail-hero-ref {
  min-height: 188px !important;
  padding: 22px 16px 18px !important;
}

body:not([data-page="home"]) .team-detail-hero-ref .fire-ball,
body:not([data-page="home"]) .team-detail-hero-ref .arena-shield,
body:not([data-page="home"]) .team-detail-hero-ref .match-shield {
  width: 74px !important;
  height: 74px !important;
  margin-bottom: 12px !important;
  font-size: 26px !important;
}

body:not([data-page="home"]) .team-detail-hero-ref h2 {
  font-size: 22px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}

body:not([data-page="home"]) .team-detail-hero-ref p {
  margin-top: 7px !important;
  font-size: 13px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
}

body:not([data-page="home"]) .ref-invite-btn {
  top: 18px !important;
  right: 16px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .team-points-pill {
  right: 16px !important;
  bottom: 17px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 820 !important;
}

body:not([data-page="home"]) .ref-tabs button,
body:not([data-page="home"]) .match-tabs-ref button {
  min-height: 52px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .ref-tabs button.active:after,
body:not([data-page="home"]) .match-tabs-ref button.active:after {
  left: 24px !important;
  right: 24px !important;
  height: 3px !important;
}

body:not([data-page="home"]) .ref-list-head {
  min-height: 54px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 820 !important;
}

body:not([data-page="home"]) .ref-list-head button,
body:not([data-page="home"]) .ref-light-btn {
  min-height: 34px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .member-row-ref {
  grid-template-columns: 58px minmax(0, 1fr) auto auto !important;
  min-height: 82px !important;
  gap: 9px !important;
  padding: 11px 16px !important;
}

body:not([data-page="home"]) .member-avatar-ref {
  width: 44px !important;
  height: 44px !important;
  font-size: 18px !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .member-row-ref b {
  font-size: 16px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .member-row-ref p,
body:not([data-page="home"]) .member-row-ref span {
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 720 !important;
}

body:not([data-page="home"]) .member-actions-ref {
  gap: 6px !important;
}

body:not([data-page="home"]) .member-actions-ref button {
  min-height: 30px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .form-ref {
  padding: 14px 18px 124px !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .profile-upload-ref {
  gap: 9px !important;
  padding: 18px 0 !important;
  font-size: 14px !important;
  font-weight: 760 !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .profile-upload-ref .fire-ball,
body:not([data-page="home"]):not([data-page="createTeam"]) .profile-upload-ref .match-shield {
  width: 72px !important;
  height: 72px !important;
  font-size: 22px !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .ref-field {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  min-height: 58px !important;
  margin-bottom: 12px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .ref-field label,
body:not([data-page="home"]):not([data-page="createTeam"]) .form-ref > .field > label,
body:not([data-page="home"]):not([data-page="createTeam"]) .form-ref .choice-field > label,
body:not([data-page="home"]):not([data-page="createTeam"]) .form-ref .location-field > label,
body:not([data-page="home"]):not([data-page="createTeam"]) .form-ref .phone-verify > label {
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 780 !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .ref-field input,
body:not([data-page="home"]):not([data-page="createTeam"]) .ref-field textarea,
body:not([data-page="home"]):not([data-page="createTeam"]) .ref-field select {
  min-height: 56px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .ref-field textarea {
  min-height: 96px !important;
  padding: 17px 0 !important;
}

body:not([data-page="home"]):not([data-page="createTeam"]) .ref-submit {
  min-height: 50px !important;
  margin-top: 14px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 860 !important;
}

body:not([data-page="home"]) .match-date-ref {
  padding: 12px 0 8px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

body:not([data-page="home"]) .match-card-ref {
  min-height: 184px !important;
}

body:not([data-page="home"]) .match-ribbon-ref {
  min-width: 112px !important;
  padding: 6px 12px 7px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .match-main-ref {
  grid-template-columns: 1fr 58px 1fr !important;
  padding: 36px 14px 12px !important;
}

body:not([data-page="home"]) .match-team-ref {
  gap: 6px !important;
}

body:not([data-page="home"]) .match-team-ref .fire-ball,
body:not([data-page="home"]) .match-team-ref .match-shield {
  width: 62px !important;
  height: 62px !important;
}

body:not([data-page="home"]) .match-team-ref h3 {
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .match-vs-ref {
  font-size: 24px !important;
  line-height: 1 !important;
}

body:not([data-page="home"]) .match-meta-ref {
  padding: 0 14px 10px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body:not([data-page="home"]) .match-actions-ref {
  gap: 9px !important;
  padding: 0 14px 12px !important;
}

body:not([data-page="home"]) .match-actions-ref button {
  min-height: 38px !important;
  min-width: 94px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body:not([data-page="home"]) .ref-empty {
  margin: 14px 18px !important;
  padding: 18px !important;
  border-radius: 14px !important;
}
