/* Keep icons and text independent of the global navigation button styles. */
body[data-route="upgrader"] .upgrader-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.upgrader-bar > strong {
  position: static;
  transform: none;
  max-width: none;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}
.upgrader-back {
  justify-self: start;
  height: 36px;
  padding: 0 12px;
  gap: 5px;
  font-size: 13px;
  line-height: 20px;
}
.upgrader-back > span:first-child {
  display: grid;
  place-items: center;
  width: 17px;
  height: 20px;
  flex: none;
  line-height: 1;
}
.upgrader-back svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upgrader-back [data-upgrader-back-label] { display: block; font: inherit; line-height: 20px; }
body[data-route="upgrader"] .upgrader-balance {
  justify-self: end;
  justify-content: center;
  max-width: 100%;
  height: 36px;
  padding: 0 10px;
  gap: 6px;
  line-height: 20px;
}
.upgrader-balance-icon { display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.upgrader-balance-icon svg { display: block; width: 19px; height: 19px; fill: #ffd34f; }
[data-upgrader-balance] { display: block; line-height: 20px; }
.upgrader-utility button { padding: 0; gap: 0; line-height: 1; }
.upgrader-utility svg { display: block; width: 23px; height: 23px; stroke-width: 1.8; }
.upgrader-wheel-center { width: 82%; gap: 12px; justify-content: center; }
.upgrader-chance-label { display: block; font-size: 12px; line-height: 18px; }
.upgrader-wheel-center .upgrader-chance-value {
  display: grid;
  place-items: center;
  width: 48px;
  height: 30px;
  margin: 0;
  line-height: 1;
}
.upgrader-chance-value svg { display: block; width: 48px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.upgrader-wheel-center p { width: 100%; max-width: 205px; margin: 0; font-size: 13px; line-height: 18px; text-align: center; text-wrap: balance; }
.upgrader-add {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 88px;
  padding: 12px;
  gap: 12px;
}
.upgrader-add-icon { width: 52px; height: 52px; line-height: 1; }
.upgrader-add-icon svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.upgrader-add > strong { min-width: 0; font-size: 17px; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upgrader-add .upgrader-multipliers { grid-template-columns: repeat(2, 42px); gap: 5px; margin: 0; justify-self: end; }
.upgrader-multipliers i { display: flex; align-items: center; justify-content: center; height: 24px; padding: 0; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.upgrader-play { display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 0 16px; line-height: 24px; }
@media (max-width: 350px) {
  .upgrader-bar > strong { font-size: 14px; }
  .upgrader-back { padding: 0 9px; font-size: 12px; }
  .upgrader-add { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 9px; }
  .upgrader-add-icon { width: 48px; height: 48px; }
  .upgrader-add > strong { font-size: 15px; }
  .upgrader-add .upgrader-multipliers { grid-template-columns: repeat(2, 34px); }
}
@media (max-height: 760px) {
  .upgrader-add { grid-template-columns: 48px minmax(0, 1fr) auto; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
  .upgrader-add-icon { width: 48px; height: 48px; }
  .upgrader-wheel-center { gap: 9px; }
  .upgrader-wheel-center p { font-size: 12px; line-height: 17px; }
}
