:root {
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  background: #0e1114;
  color: #d5d1c8;
}

.sound-test {
  width: min(460px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #171b1f;
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

p {
  margin: 0 0 22px;
  color: #aaa;
  font-size: 14px;
}

button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #242a2f;
  color: #eee;
  cursor: pointer;
  font: inherit;
}

button:hover {
  background: #30373d;
}

.theme-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
}

select {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #242a2f;
  color: #eee;
  font: inherit;
}

.volume-control {
  display: grid;
  grid-template-columns: auto 1fr 44px;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 13px;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.sound-grid button {
  min-height: 48px;
  padding: 8px;
}

a {
  color: #d5d1c8;
  font-size: 13px;
}
