/* Three independent indicators keep titles and values paired at every width. */
body.screen-fit .mining-hud {
  display: block;
  padding: 12px;
}
body.screen-fit .mining-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 30px);
  align-items: stretch;
}
body.screen-fit .mining-indicator {
  --hud-label-height: calc(var(--fit-meta) * 1.2);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--hud-label-height) minmax(36px, 1fr) 3px;
  row-gap: 4px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}
body.screen-fit .mining-indicator .mining-label {
  display: grid;
  align-content: center;
  min-height: 1.2em;
  margin: 0;
  text-align: center;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
body.screen-fit .mining-power > div:first-of-type {
  justify-content: center;
  align-items: center;
  min-width: 0;
}
body.screen-fit .mining-clock > b {
  text-align: center;
  white-space: nowrap;
}
body.screen-fit .hash-difficulty strong {
  text-align: center;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
}
body.screen-fit .mining-indicator .timer-track,
body.screen-fit .mining-indicator .hash-meter {
  grid-column: 1;
  width: 100%;
  height: 3px;
  margin: 0;
}
body.screen-fit .block-stack {
  margin-top: 10px;
}
/* Keep the existing bonus animation below the timer, away from HUD titles. */
body.screen-fit .mining-clock .time-bonus {
  top: auto;
  bottom: -24px;
  left: 50%;
  right: auto;
  translate: -50% 0;
}
body.screen-fit .block-empty {
  text-align: center;
}
body.screen-fit .mining-player {
  justify-content: center;
}
body.screen-fit .mining-player > span:first-child,
body.screen-fit .mining-player > span:last-child {
  flex: 0 1 auto;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 480px) {
  body.screen-fit .mining-indicator {
    --hud-label-height: calc(var(--fit-meta) * 2.4);
  }
  body.screen-fit .mining-hud {
    padding: 8px;
  }
  body.screen-fit .mining-stats {
    gap: 14px;
  }
  body.screen-fit .mining-indicator .mining-label {
    min-height: 2.4em;
  }
}
