.back-link {
  display: inline-block;
  margin-bottom: 2em;
}

.character-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14em), 1fr));
  gap: 2em;
  margin-top: 2em;
}

.character-entry {
  min-width: 0;
}

.character-entry h2 {
  margin-bottom: 0.25em;
}

.character-entry p {
  margin-top: 0;
}

.pronunciation-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.pronunciation-button:hover,
.pronunciation-button:focus-visible {
  text-decoration: underline;
}

.pronunciation-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.pronunciation-button[data-state="playing"] {
  font-weight: 700;
}

.pronunciation-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.stroke-label {
  margin-bottom: 0.25em;
}

.stroke-control {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.stroke-display {
  display: block;
  width: 140px;
  height: 140px;
}

.stroke-button-label {
  display: block;
  min-height: 44px;
  padding-top: 0.5em;
}

.stroke-control:hover .stroke-button-label,
.stroke-control:focus-visible .stroke-button-label {
  text-decoration: underline;
}

.stroke-control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.stroke-control[data-state="playing"] .stroke-button-label {
  font-weight: 700;
}

.stroke-control:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
