:root {
  color-scheme: dark;
  --bg: #111b23;
  --panel: #192630;
  --line: #31414c;
  --muted: #a0b1bc;
  --text: #edf2f5;
  --gold: #f3c45d;
  --green: #9acda4;
  --radius: 6px;
  --header: 56px;
  --nav: 48px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.45 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  border-radius: var(--radius);
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button[hidden],
[hidden] {
  display: none !important;
}
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}
strong {
  font-weight: 650;
}
input {
  accent-color: var(--gold);
}
select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar {
  height: var(--header);
  padding: 0 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ffffff0b;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.brand-mark {
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}
.wallet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.wallet strong {
  font-size: 30px;
  letter-spacing: -0.8px;
  color: var(--gold);
}
.coin-icon {
  color: var(--gold);
  font-size: 11px;
}
.wallet-label,
.save-status {
  font-size: 12px;
  color: var(--muted);
}
.save-status {
  margin-left: auto;
}
.wallet .earning {
  color: #ffe5a3;
}
main {
  height: calc(100dvh - var(--header) - var(--nav));
  min-height: 400px;
  max-width: 1820px;
  padding: 10px 24px;
  margin: auto;
}
.play-area {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.board-shell {
  position: relative;
  flex: 1;
  min-height: 0;
}
.board-toolbar {
  position: absolute;
  left: 36px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  color: var(--muted);
  font-size: 12px;
}
.board-toolbar .secondary {
  font-size: 11px;
  padding: 4px 8px;
  min-height: 28px;
}
#show-bins {
  display: none;
}
#camera-note {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.detail-view #show-bins {
  display: block;
}
#canvas-scroll {
  position: absolute;
  inset: 0;
  min-height: 0;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  scrollbar-color: #536571 transparent;
}
canvas {
  display: block;
  touch-action: pan-x pan-y;
}
#board {
  cursor: pointer;
}
#board:focus-visible {
  outline: none;
}
.play-area:has(#board:focus-visible) .manual-drop {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.game-controls {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 224px;
}
.drop-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
}
.manual-drop {
  grid-column: 1/-1;
  grid-row: 1;
  border: 0;
  border-bottom: 3px solid #b88c35;
  background: var(--gold);
  color: #272319;
  min-height: 66px;
  font-size: 21px;
  font-weight: 750;
  padding: 12px 18px;
}
.manual-drop:hover {
  background: #ffda84;
}
.manual-drop:active {
  transform: translateY(2px);
}
.manual-drop:disabled {
  opacity: 0.5;
}
.control-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.control-stat > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.control-stat strong {
  font-size: 21px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.below-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  flex-wrap: wrap;
}
#auto-control {
  display: flex;
  gap: 5px;
  align-items: center;
}
#auto-toggle {
  margin: 0;
}
#auto-countdown {
  font-variant-numeric: tabular-nums;
}
#bin-detail {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 12px;
  min-height: 0;
  overflow-wrap: anywhere;
}
#bin-detail:empty {
  display: none;
}
.launch-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #ffffff0b;
  font-size: 12px;
}
.launch-info span {
  color: var(--muted);
}
.launch-info strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.current-goal {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 205px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.current-goal > small {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.current-goal > strong {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.current-goal > span {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.current-goal progress {
  margin: 3px 0 4px;
}
.current-goal button {
  align-self: flex-start;
  font-size: 12px;
  padding: 7px 12px;
}
.upgrade-panel {
  position: fixed;
  left: 0;
  top: var(--header);
  bottom: var(--nav);
  width: min(360px, calc(100vw - 36px));
  padding: 20px;
  background: var(--panel);
  z-index: 15;
  overflow-y: auto;
  scrollbar-width: thin;
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  visibility: hidden;
  transition:
    transform 0.22s ease,
    visibility 0s 0.22s;
}
.drawer-open .upgrade-panel {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.22s ease,
    visibility 0s;
}
.drawer-toggle {
  position: fixed;
  left: 0;
  top: calc(var(--header) + 24px);
  height: 44px;
  width: 25px;
  border: 1px solid var(--line);
  border-left: 0;
  background: var(--panel);
  color: var(--muted);
  font-size: 25px;
  padding: 0;
  z-index: 16;
  border-radius: 0 4px 4px 0;
  transition: left 0.22s ease;
}
.drawer-open .drawer-toggle {
  left: min(360px, calc(100vw - 36px));
}
.panel-heading {
  margin-bottom: 14px;
}
.panel-heading h2 {
  font-size: 21px;
}
.bulk-modes {
  display: flex;
  gap: 4px;
  margin: 14px 0 12px;
}
.bulk-modes button {
  flex: 1;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 6px;
  font-size: 12px;
  color: var(--muted);
}
.bulk-modes .selected {
  color: var(--gold);
  background: #f3c45d10;
  border-color: #9b7b38;
}
.upgrade-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 87px;
  column-gap: 10px;
  row-gap: 3px;
  padding: 12px 0;
  min-height: 78px;
  border-bottom: 1px solid #ffffff0b;
}
.upgrade-top {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  align-self: end;
}
.upgrade-top h3 {
  font-size: 14px;
  line-height: 1.2;
}
.level {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.upgrade-effect {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  align-self: start;
}
.buy-button {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 42px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #272319;
  font-variant-numeric: tabular-nums;
}
.buy-button:hover:not(:disabled) {
  background: #ffda84;
}
.buy-button:disabled {
  background: #25343e;
  border-color: #344652;
  color: #96aab8;
}
.buy-button.complete {
  color: var(--green);
  border-color: #759981;
  background: transparent;
}
.just-bought {
  animation: bought 0.65s ease-out;
}
.drawer-goal {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.secondary,
.danger {
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  padding: 8px 13px;
  min-height: 35px;
}
.secondary:hover:not(:disabled) {
  background: #ffffff08;
  border-color: #758792;
}
.secondary:disabled {
  opacity: 0.45;
}
.danger {
  color: #ef9f97;
  border-color: #795954;
}
.danger:hover {
  background: #ef9f9710;
}
.bottom-nav {
  height: var(--nav);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-top: 1px solid #ffffff0b;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.bottom-nav button {
  flex-shrink: 0;
  padding: 0 16px;
  border: 0;
  border-top: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.bottom-nav .active {
  border-color: var(--gold);
  color: var(--gold);
}
.bottom-nav button:hover {
  color: var(--text);
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: min(640px, calc(100vw - 28px));
  max-height: 86dvh;
  padding: 24px;
  scrollbar-width: thin;
  animation: panel-in 0.16s ease-out;
}
dialog[data-page="collection"],
dialog[data-page="achievements"] {
  width: min(850px, calc(100vw - 28px));
}
dialog::backdrop {
  background: #070e15c7;
}
.modal-heading {
  position: sticky;
  top: 0;
  background: var(--panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  margin-bottom: 14px;
  z-index: 4;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--muted);
  width: 36px;
  height: 36px;
  padding: 0;
}
.icon-button:hover {
  color: var(--text);
}
.modal-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 16px;
}
.collection-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
}
.collection-summary > strong {
  font-size: 29px;
  color: var(--gold);
}
.collection-summary small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.collection-summary > span {
  font-size: 12px;
  color: var(--green);
}
progress {
  appearance: none;
  border: 0;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  background: #31434e;
}
progress::-webkit-progress-bar {
  background: #31434e;
}
progress::-webkit-progress-value {
  background: var(--gold);
}
progress::-moz-progress-bar {
  background: var(--gold);
}
.set-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0;
}
.set-progress strong {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.set-progress small {
  font-size: 10px;
  color: var(--muted);
}
.set-progress progress {
  display: block;
  margin: 7px 0 5px;
}
.set-progress .set-complete strong,
.set-complete small {
  color: var(--green);
}
.set-complete progress::-webkit-progress-value {
  background: var(--green);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.collectible {
  --rarity: #b2c3ce;
  border: 1px solid #405460;
  border-top: 2px solid var(--rarity);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #12212a;
  padding: 10px 7px;
  min-width: 0;
  min-height: 154px;
  color: var(--text);
}
.collectible.rare {
  --rarity: #d8ba7b;
}
.collectible.epic {
  --rarity: #bba4d6;
}
.collectible svg {
  height: 42px;
  width: 42px;
  margin: 2px 0;
  color: var(--rarity);
}
.collectible strong {
  font-size: 12px;
  text-align: center;
}
.collectible small {
  font-size: 10px;
  color: var(--rarity);
}
.collectible span {
  min-height: 28px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.collectible b {
  font-size: 11px;
  color: var(--green);
  margin-top: auto;
}
.collectible.unowned {
  opacity: 0.5;
}
.collectible.unowned b {
  color: var(--muted);
}
.collectible.offered {
  background: #2b342c;
  border-color: var(--rarity);
  box-shadow: inset 0 0 0 1px #f3c45d15;
}
.collectible.offered b {
  background: var(--gold);
  color: #272319;
  border-radius: 4px;
  padding: 5px 14px;
}
.collectible.offered:hover {
  transform: translateY(-2px);
  background: #37412e;
}
.collectible.revealed {
  animation: part-reveal 0.65s ease-out;
}
.collection-summary .complete {
  color: var(--green);
}
.status-filters,
.achievement-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.status-filters button,
.achievement-filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 6px 11px;
  font-size: 12px;
}
.status-filters .selected,
.achievement-filters .selected {
  color: var(--gold);
  border-color: #9b7b38;
  background: #f3c45d0b;
}
.status-filters {
  margin-top: 18px;
}
.achievement-filters {
  margin-bottom: 10px;
}
.sort-achievements {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
}
.sort-achievements span {
  margin-left: auto;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}
.achievement {
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #ffffff0b;
  padding: 10px 0;
  min-width: 0;
  min-height: 70px;
}
.achievement > div {
  flex: 1;
  min-width: 0;
}
.achievement strong {
  font-size: 12px;
}
.achievement p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 6px;
}
.medal {
  flex-shrink: 0;
  color: #8da4b1;
  font-size: 22px;
  width: 22px;
  text-align: center;
}
.achievement-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.achievement-meter progress {
  flex: 1;
  min-width: 15px;
  width: auto;
  height: 4px;
}
.achievement-meter small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.achievement.unlocked .medal,
.achievement.unlocked small {
  color: var(--green);
}
.achievement.unlocked progress::-webkit-progress-value {
  background: var(--green);
}
.achievement.locked {
  opacity: 0.5;
}
.completion-progress {
  display: block;
  height: 6px;
}
.empty-results {
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0;
}
.stats-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 7px 0 20px;
}
.stats-highlights small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stats-highlights strong {
  font-size: 25px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff0b;
  font-size: 12px;
}
.stat-row > span {
  color: var(--muted);
}
.stat-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stat-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #ffffff0b;
  font-size: 13px;
}
.setting input[type="file"] {
  max-width: 175px;
  font-size: 11px;
}
.rebuild-section h3 {
  font-size: 19px;
}
.rebuild-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.rebuild-progress strong {
  font-size: 14px;
}
.rebuild-progress progress {
  display: block;
  margin: 9px 0;
}
.rebuild-reward {
  color: var(--gold);
  font-size: 28px;
  display: block;
  margin: 15px 0 7px;
}
.rebuild-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: 12px;
  margin: 20px 0;
  color: var(--muted);
}
.rebuild-explainer strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}
.blueprints {
  margin-top: 28px;
}
.blueprints h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
#toast {
  position: fixed;
  bottom: calc(var(--nav) + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  background: #263630;
  border: 1px solid #597363;
  border-radius: 5px;
  color: #e3eee5;
  font-size: 12px;
  padding: 9px 15px;
  max-width: min(560px, calc(100vw - 30px));
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.rebuilding .board-shell {
  animation: rebuild 0.7s ease-out;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bought {
  from {
    background: #9acda42b;
  }
  to {
    background: transparent;
  }
}
@keyframes part-reveal {
  0% {
    transform: scale(0.93);
    background: #9acda44a;
  }
  100% {
    transform: none;
  }
}
@keyframes rebuild {
  0% {
    opacity: 0.15;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1199px) {
  .game-controls {
    width: 185px;
  }
  .current-goal {
    width: 175px;
  }
  .current-goal > strong {
    font-size: 17px;
  }
  .control-stat strong {
    font-size: 18px;
  }
  .manual-drop {
    font-size: 19px;
  }
}
@media (max-width: 1049px) {
  main {
    padding: 10px 16px 8px;
  }
  .game-controls {
    position: static;
    transform: none;
    width: 100%;
    flex-shrink: 0;
    max-width: 560px;
    align-self: center;
    margin-top: 6px;
  }
  .drop-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .manual-drop {
    min-height: 52px;
    min-width: 160px;
    font-size: 18px;
  }
  .control-stat {
    min-width: 90px;
    text-align: center;
  }
  .control-stat > span {
    font-size: 10px;
  }
  .below-controls {
    justify-content: center;
    margin-top: 8px;
    gap: 12px;
  }
  .launch-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    font-size: 11px;
  }
  .launch-info span:nth-of-type(2) {
    margin-left: 12px;
  }
  .current-goal {
    position: static;
    transform: none;
    width: 100%;
    max-width: 560px;
    align-self: center;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px solid #ffffff0b;
  }
  .current-goal > small {
    display: none;
  }
  .current-goal > strong {
    font-size: 13px;
    grid-column: 1;
  }
  .current-goal > span {
    font-size: 11px;
    grid-column: 1;
  }
  .current-goal progress {
    grid-column: 1;
    margin: 5px 0 0;
    height: 3px;
  }
  .current-goal button {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
    font-size: 11px;
    padding: 6px 9px;
  }
  #bin-detail {
    text-align: center;
    margin: 0 0 6px;
    font-size: 11px;
  }
  .board-toolbar {
    left: 36px;
    gap: 8px;
  }
  #camera-note {
    font-size: 10px;
  }
  .wallet strong {
    font-size: 27px;
  }
}
@media (max-width: 600px) {
  :root {
    --header: 48px;
    --nav: 48px;
  }
  .topbar {
    padding: 0 14px;
  }
  .brand {
    font-size: 18px;
    gap: 6px;
  }
  .brand-mark {
    font-size: 25px;
  }
  .wallet {
    left: auto;
    right: 14px;
    transform: none;
    gap: 6px;
  }
  .wallet strong {
    font-size: 25px;
  }
  .wallet-label,
  .save-status {
    display: none;
  }
  main {
    padding: 7px 8px;
    min-height: 420px;
  }
  .board-toolbar {
    font-size: 10px;
    gap: 6px;
  }
  .board-toolbar .secondary {
    font-size: 10px;
    min-height: 27px;
  }
  .drop-controls {
    gap: 10px;
  }
  .manual-drop {
    min-width: 132px;
    min-height: 50px;
    font-size: 17px;
    padding: 9px 12px;
  }
  .control-stat {
    min-width: 80px;
  }
  .control-stat strong {
    font-size: 16px;
  }
  .control-stat > span {
    font-size: 9px;
  }
  .launch-info {
    font-size: 10px;
    gap: 4px;
  }
  .launch-info span:nth-of-type(2) {
    margin-left: 7px;
  }
  .bottom-nav {
    justify-content: flex-start;
    gap: 0;
    padding: 0 4px;
  }
  .bottom-nav button {
    font-size: 11px;
    padding: 0 10px;
    flex: 1;
  }
  .upgrade-panel {
    padding: 18px 16px;
  }
  .upgrade-card {
    min-height: 76px;
  }
  .upgrade-top h3 {
    font-size: 13px;
  }
  .bulk-modes button {
    font-size: 11px;
  }
  dialog {
    padding: 18px;
    max-height: 88dvh;
  }
  .modal-heading {
    top: 0;
    padding: 8px 0;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 20px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .collection-summary > span {
    max-width: 150px;
    text-align: right;
    font-size: 11px;
  }
  .set-progress {
    gap: 9px;
  }
  .set-progress strong {
    font-size: 11px;
  }
  .set-progress small {
    font-size: 9px;
  }
  .collectible {
    min-height: 155px;
  }
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .sort-achievements {
    flex-wrap: wrap;
  }
  .sort-achievements span {
    width: 100%;
    margin-left: 24px;
  }
  .stats-highlights {
    gap: 10px;
  }
  .stats-highlights strong {
    font-size: 20px;
  }
  .stat-row {
    font-size: 11px;
    gap: 14px;
  }
  .rebuild-explainer {
    gap: 14px;
  }
  .setting {
    font-size: 12px;
  }
}
@media (max-height: 650px) and (min-width: 1050px) {
  .current-goal > strong {
    font-size: 16px;
  }
  .manual-drop {
    min-height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.reduced-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.rebuild-progress progress[value="25"]::-webkit-progress-value,
.rebuild-progress progress[value="1000000"]::-webkit-progress-value {
  background: var(--green);
}
[data-rebuild]:not(:disabled) {
  background: var(--green);
  border-color: var(--green);
  color: #202c24;
  font-weight: 650;
}
