/* 20261120hug1 + 20261120wordfit1 (Milo 11/20). Loaded last on index.html and leaderboard-full.html. */

/* 1) Names never split mid-word. Lines break only at spaces; js/wdhc-name-fit.js shrinks a single word that cannot fit.
   Beats the 11-ID 20261029 rule in wdhc-ui-locks.css that set overflow-wrap:anywhere. No width, column or rank changes. */
html body:not(#hw1):not(#hw2):not(#hw3):not(#hw4):not(#hw5):not(#hw6):not(#hw7):not(#hw8):not(#hw9):not(#hw10):not(#hw11):not(#hw12):not(#hw13) .lb-row:not(.lb-mobile-card) .name-stack > .name-line {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* 2) Boards with 0 or 1 row hug their content: drop the long-list bottom room (body padding, ::after scroll spacer,
   card padding). Boards with 2+ rows keep today's spacing. */
html body:not(#hh1):not(#hh2):not(#hh3):not(#hh4):not(#hh5):not(#hh6):not(#hh7):not(#hh8):not(#hh9):not(#hh10):not(#hh11):not(#hh12):not(#hh13) #leaderboard-body:not(:has(> .lb-row-wrapper ~ .lb-row-wrapper)) {
  padding-bottom: 0 !important;
  min-height: 0 !important;
}
html body:not(#hh1):not(#hh2):not(#hh3):not(#hh4):not(#hh5):not(#hh6):not(#hh7):not(#hh8):not(#hh9):not(#hh10):not(#hh11):not(#hh12):not(#hh13) #leaderboard-body:not(:has(> .lb-row-wrapper ~ .lb-row-wrapper))::after {
  display: none !important;
  height: 0 !important;
  content: none !important;
}
html body:not(#hh1):not(#hh2):not(#hh3):not(#hh4):not(#hh5):not(#hh6):not(#hh7):not(#hh8):not(#hh9):not(#hh10):not(#hh11):not(#hh12):not(#hh13) .leaderboard:not(:has(> #leaderboard-body > .lb-row-wrapper ~ .lb-row-wrapper)) {
  padding-bottom: 12px !important;
  min-height: 0 !important;
}
html body:not(#hh1):not(#hh2):not(#hh3):not(#hh4):not(#hh5):not(#hh6):not(#hh7):not(#hh8):not(#hh9):not(#hh10):not(#hh11):not(#hh12):not(#hh13) #leaderboard-body:not(:has(> .lb-row-wrapper ~ .lb-row-wrapper)) > .lb-row-wrapper > .lb-row.lb-mobile-card {
  margin-bottom: 0 !important;
}

/* 3) Empty board: "Be the first" */
html body #leaderboard-body > .lb-empty-first {
  padding: 28px 16px 22px !important;
  margin: 0 !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.72) !important;
}
html body #leaderboard-body > .lb-empty-first .lb-empty-first__title {
  font-family: Oswald, 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2b33d;
  margin: 0 0 6px;
}
html body #leaderboard-body > .lb-empty-first .lb-empty-first__sub {
  margin: 0 auto 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
html body #leaderboard-body > .lb-empty-first .lb-empty-first__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7c95a 0%, #e2a22b 100%);
  color: #111 !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(226, 162, 43, 0.28);
}
html body #leaderboard-body > .lb-empty-first .lb-empty-first__cta:hover,
html body #leaderboard-body > .lb-empty-first .lb-empty-first__cta:focus-visible {
  filter: brightness(1.06);
}
