/* V91: localized action labels and profile text only.
   Keep board, shell, sidebar, navigation and all game behavior unchanged. */
.center-controls #roll,
.center-controls #end,
.center-controls #next {
  height: auto;
  flex-shrink: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 20px;
  font-size: 18px;
  padding: 3px 6px;
  min-height: 49px;
}
.center-controls #roll { min-height: 51px; }
/* Do not let a flex column shave the text off these two identity fields. */
.profile-card > strong,
.profile-card > .balance { flex-shrink: 0; }
@media (min-width: 1000px) {
  /* Existing 570px cards and 108px avatar/score remain the same size.
     Recover their vertical text budget rather than clipping localized rows. */
  .profile-card {
    padding: 32px 8px 12px;
    gap: 4px;
    font-size: 16px;
    line-height: 1.2;
  }
  .profile-card > * { flex-shrink: 0; }
  .profile-card .avatar { margin: 0; }
  .profile-card > strong { font-size: 20px; line-height: 1.15; }
  .profile-card > .balance { font-size: 16px; line-height: 1.2; padding: 4px 5px; }
  .profile-card > small { font-size: 11px; line-height: 1.2; margin-top: 0; }
}
@media (max-width: 999px) {
  /* Preserve the existing 76px width and compact/hidden metadata policy. */
  .center-controls #roll,
  .center-controls #end,
  .center-controls #next {
    font-size: 10px;
    line-height: 11px;
    padding: 2px 3px;
    min-height: 27px;
  }
}
