.audio-notice {
  width: min(25rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 38px #201c1b24;
  color: var(--ink);
  background: var(--card);
}

.audio-notice::backdrop { background: #201c1b45; }
.audio-notice h2 { font-size: 1.5rem; }
.audio-notice p { margin: 9px 0 16px; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.audio-notice .button { min-height: 44px; }
.welcome-notice #audio-notice-copy {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--wash);
  font-size: .875rem;
}
.welcome-notice #audio-notice-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.violin-tuner {
  border-bottom: 1px solid var(--border);
}

.violin-tuner > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-inline-end: 8px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 620;
  list-style: none;
}

.tuner-summary-label { margin-inline-start: auto; font-weight: 500; }
.violin-tuner > summary::-webkit-details-marker { display: none; }
.violin-tuner > summary:hover { color: var(--accent-hover); }
.violin-tuner > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.violin-tuner[open] > summary::after { transform: translateY(2px) rotate(225deg); }

.tuner-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 15px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  text-align: center;
}
.tuner-controls p { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.tuner-controls .button { min-height: 44px; }
.tuner-status:empty { display: none; }
.tuner-status[data-tone="in-tune"] { color: #386042; font-weight: 700; }

.tuner-meter {
  width: min(100%, 200px);
  margin-top: 8px;
}

.tuner-dial {
  position: relative;
  width: 180px;
  max-width: 100%;
  aspect-ratio: 2;
  margin-inline: auto;
}

.tuner-dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--border);
  border-bottom: 0;
  border-radius: 180px 180px 0 0;
}

.tuner-tick,
.tuner-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: 50% 100%;
}

.tuner-tick {
  width: 2px;
  height: 100%;
  color: #a08b81;
  transform: translateX(-50%) rotate(var(--tick-angle, 0deg));
}

.tuner-tick::before {
  content: "";
  display: block;
  height: 8px;
  background: currentColor;
}

.tuner-tick:nth-child(1) { --tick-angle: -65deg; }
.tuner-tick:nth-child(2) { --tick-angle: -32.5deg; }
.tuner-tick:nth-child(3) { width: 3px; color: #52765b; }
.tuner-tick:nth-child(4) { --tick-angle: 32.5deg; }
.tuner-tick:nth-child(5) { --tick-angle: 65deg; }

.tuner-needle {
  width: 2px;
  height: 82%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) rotate(var(--needle-angle, 0deg));
  transition: transform 120ms ease-out;
}

.tuner-meter[data-has-pitch="true"] .tuner-needle { opacity: 1; }
.tuner-meter[data-tone="in-tune"] .tuner-needle { background: #52765b; }

.tuner-pivot {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateX(-50%);
}

.tuner-dial-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  color: var(--muted);
  font-size: .78rem;
}

.tuner-controls .tuner-meter-reading {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
