body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.sr-only, player-element::part(legend) {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

body {
  background: #eee;
}

header {
  background: #fff;
  margin: 2rem;
  padding: 2rem;
}

button {
  cursor: pointer;
}

.contents {
  display: flex;
  margin: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

section {
  flex-grow: 1;
  flex-basis: 1;
  background: #fff;
  padding: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.players-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

player-element::part(player) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  player-element::part(player) {
    align-items: center;
    flex-direction: row;
  }
}
player-element::part(name) {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
player-element::part(probability) {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
player-element::part(probability-slider) {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
player-element::part(delete) {
  cursor: pointer;
}

table {
  width: 100%;
}

table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}

th, td {
  padding: 0.5rem;
}

table th:first-child,
table td:first-child {
  width: 1%;
  white-space: no-wrap;
}

td {
  background: linear-gradient(to right, rgba(0, 123, 255, 0.6) calc(var(--prob) * 1%), transparent calc(var(--prob) * 1%));
}