/* 음감 테스트 전용 */
.pt-card {
  margin-top: 22px;
  text-align: center;
  padding: 24px 18px;
  scroll-margin-top: 80px;
}
#result {
  scroll-margin-top: 80px;
}
.pt-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  background: color-mix(in srgb, #e11d48 14%, transparent);
  color: #be123c;
}
.pt-checks {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0;
  max-width: 28em;
  display: grid;
  gap: 8px;
  text-align: left;
}
.pt-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.pt-checks li > span:first-child {
  flex: none;
  font-size: 1.15rem;
  line-height: 1.35;
}
.pt-main {
  min-width: min(100%, 280px);
}
.pt-card .btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.pt-title {
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  font-weight: 800;
  margin: 6px 0;
}
.pt-sub {
  color: var(--muted);
  margin: 0 auto;
  max-width: 28em;
}

/* 진행 */
.pt-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  max-width: 460px;
  margin: 0 auto;
}
.pt-tones {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 8vw, 48px);
  margin: 18px 0 4px;
}
.pt-tone {
  width: clamp(78px, 24vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pt-tone b {
  font-size: 1.9rem;
  line-height: 1;
}
.pt-tone small {
  font-size: 0.78rem;
  font-weight: 700;
}
.pt-tone[data-on='true'] {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
  transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .pt-tone[data-on='true'] {
    transform: none;
  }
}
.pt-status {
  margin: 12px auto 0;
  min-height: 2.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: clamp(0.98rem, 4vw, 1.1rem);
  line-height: 1.4;
  background: var(--surface-2);
  max-width: 460px;
}
.pt-status[data-tone='ok'] {
  background: color-mix(in srgb, var(--go) 16%, transparent);
  color: var(--go);
}
.pt-status[data-tone='bad'] {
  background: color-mix(in srgb, var(--wait) 14%, transparent);
  color: var(--wait);
}

/* 답 단추 */
.pt-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px auto 0;
  max-width: 460px;
}
.pt-answer {
  min-height: 72px;
  font-size: clamp(0.98rem, 4.2vw, 1.12rem);
  border-radius: 18px;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
  padding: 10px 8px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line);
}
.pt-answer small {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.75;
}
.pt-answer.is-right small,
.pt-answer.is-wrong small {
  display: none;
}
.pt-answer:not(:disabled):hover {
  border-color: #e11d48;
}
.pt-answer:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.pt-answer.is-right {
  opacity: 1;
  background: var(--go);
  border-color: var(--go);
  color: #fff;
}
.pt-answer.is-right::after {
  content: '정답';
  font-size: 0.78rem;
}
.pt-answer.is-wrong {
  opacity: 1;
  background: var(--wait);
  border-color: var(--wait);
  color: #fff;
}
.pt-answer.is-wrong::after {
  content: '내 답';
  font-size: 0.78rem;
}
.pt-tools {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}
.pt-tools .linkish {
  font-size: 0.92rem;
  min-height: 40px;
}
.pt-tools .linkish:disabled {
  opacity: 0.5;
  cursor: default;
}
.pt-card .timebar {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.pt-card .timebar span {
  background: #e11d48;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

/* 결과 그림 */
.pt-chart-wrap {
  margin: 18px 0 0;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: var(--surface-2);
}
.pt-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}
.pt-chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.pt-chart .thr {
  stroke: var(--brand);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.pt-chart .path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.pt-chart .ok {
  fill: var(--go);
}
.pt-chart .bad {
  stroke: var(--wait);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.pt-chart .axis {
  fill: var(--muted);
  font-size: 10px;
}
.pt-chart-wrap figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
}
