.home-sound-inline {
  display: inline-flex;
}

.home-sound {
  flex: none;
  color: inherit;
}

.home-sound-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  inline-size: 40px;
  block-size: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: .5rem;
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  cursor: pointer;
}

.home-sound-indicator {
  min-inline-size: 2.15em;
  text-align: center;
  font: 700 .75rem/1 var(--sans, system-ui, sans-serif);
}

.home-sound:not([data-enabled="true"]) .bgm-note-on,
.home-sound[data-enabled="true"] .bgm-note-off {
  display: none;
}

.home-sound[data-enabled="true"] .home-sound-icon,
.home-sound-icon:hover {
  background: color-mix(in srgb, currentColor 13%, transparent);
}

.home-sound-icon:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
