/* 리듬감 테스트 */
.rh-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 0 10px;
}
.rh-check .btn {
  min-height: 42px;
  padding: 8px 16px;
}
.rh-msg {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.rh-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.rh-tip b {
  color: var(--ink);
}
.rh-pad[data-state='listen'] {
  background: #5b6478;
  color: #fff;
}
.rh-pad[data-state='practice'] {
  background: var(--go);
  color: #fff;
}
.rh-pad[data-state='solo'] {
  background: #c2410c;
  color: #fff;
}
.rh-pad[data-state='early'] {
  color: #fff;
}
.rh-pad.beat {
  animation: rh-beat 0.16s ease-out;
}
@keyframes rh-beat {
  0% {
    filter: brightness(1.25);
    transform: scale(0.99);
  }
  100% {
    filter: none;
    transform: none;
  }
}
.rh-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  min-height: 12px;
}
.rh-group {
  display: inline-flex;
  gap: 4px;
}
.rh-group .dot {
  width: 9px;
  height: 9px;
}
.rh-group.listen .dot.done {
  background: #8a93a8;
}
.rh-group.solo .dot.done {
  background: #c2410c;
}
.rh-graph {
  margin: 22px 0 0;
}
.rh-svg svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin-inline: auto;
  overflow: visible;
}
.rh-graph figcaption {
  margin-top: 6px;
}
.rh-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.rh-zero {
  stroke: var(--muted);
  stroke-width: 1.5;
}
.rh-ax {
  fill: var(--muted);
  font-size: 12px;
  font-family: var(--font);
}
.rh-stem {
  stroke-width: 2;
  opacity: 0.55;
}
.rh-stem.late,
.rh-pt.late {
  stroke: #c2410c;
  fill: #c2410c;
}
.rh-stem.early,
.rh-pt.early {
  stroke: var(--brand);
  fill: var(--brand);
}
.rh-note {
  margin: 12px 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .rh-pad.beat {
    animation: none;
  }
}
