.moves-board {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.moves-types, .moves-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.moves-types { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px 8px; }
.moves-types button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 3px;
  border: 0;
  border-radius: 999px;
  white-space: nowrap;
  color: white;
  background: var(--filter-color);
  font-weight: 600;
}
.moves-types .type-icon { --icon-size: 17px; }
.moves-types button[aria-pressed=true] {
  outline: 2px solid #30203f;
  outline-offset: 1px;
}
.moves-controls {
  margin: 14px 0 10px;
  gap: 10px 16px;
}
.moves-controls label { display: flex; align-items: center; gap: 6px; }
.moves-controls select { width: auto; min-width: 100px; margin: 0; color: var(--ink); }
#moves-count { margin-left: auto; }
.moves-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.moves-table th, .moves-table td { padding: 10px 8px; text-align: left; }
.moves-table th { border-bottom: 2px solid var(--line); color: var(--muted); }
.moves-table td { border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.moves-table tbody tr:last-child td { border-bottom: 0; }
.moves-table .moves-rank { width: 7%; }
.moves-table .moves-species { width: 27%; }
.moves-table .moves-move { width: 34%; }
.moves-table .moves-total { width: 13%; }
.moves-table .moves-expected { width: 19%; }
.moves-table tr > :is(:nth-child(4), :nth-child(5)) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.moves-table td:is(:nth-child(4), :nth-child(5)) { font-weight: 650; white-space: nowrap; }
.moves-pokemon {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}
.moves-pokemon:hover { text-decoration: underline; }
.moves-highlighted .moves-pokemon { color: #167443; font-weight: 700; }
.moves-region {
  display: inline-block;
  margin-inline-start: 5px;
  padding: 0 4px;
  border-radius: 4px;
  background: #eaf6ee;
  color: #167443;
}
.moves-move-layout { display: grid; grid-template-columns: minmax(0, min(7.5em, 42%)) max-content; align-items: baseline; column-gap: 8px; }
.moves-meta {
  display: grid;
  grid-template-columns: 5ch 2em 4.5ch 5.5ch;
  column-gap: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.moves-meta > :is(:first-child, :nth-child(3)) { text-align: right; }
.moves-bar {
  display: inline-block;
  width: 42px;
  height: 6px;
  margin-inline-start: 7px;
  border-radius: 999px;
  background: linear-gradient(to right,#ab8de9 calc(var(--score-ratio) * 100%),#f1ebfb 0);
  vertical-align: middle;
}
.moves-table .moves-empty { text-align: center; color: var(--muted); padding: 20px; }
.moves-board .moves-method { margin-bottom: 0; }
@media (max-width: 760px) {
  .moves-board { padding: 12px; }
  .moves-table th, .moves-table td { padding-inline: 4px; }
  .moves-move-layout { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .moves-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 3px; }
  .moves-meta > :is(:first-child, :nth-child(3)) { text-align: left; }
  .moves-bar { display: none; }
}
@media (max-width: 560px) {
  .moves-types { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .moves-types button { font-size: 12px; gap: 2px; padding-inline: 1px; }
  .moves-types .type-icon { --icon-size: 13px; }
}
@media (max-width: 480px) {
  .moves-table { font-size: 12px; }
  .moves-table .moves-total { width: 14%; }
  .moves-table .moves-expected { width: 18%; }
  .moves-controls { gap: 6px 10px; }
  .moves-controls select { min-width: 0; }
  .moves-region { display: table; margin-inline-start: 0; }
  .moves-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
