/* 손떨림 테스트 전용 스타일. 색은 공통 변수를 쓴다. */
.sh-hud {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  max-width: 560px;
  margin: 18px auto 10px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sh-hud li {
  flex: 1;
  min-width: 0;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 4px;
  line-height: 1.35;
}
.sh-hud b {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}

.sh-steps {
  display: flex;
  gap: 6px;
  max-width: 560px;
  margin: 0 auto 10px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.sh-steps li {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-steps small {
  font-weight: 600;
  margin-left: 4px;
}
.sh-steps li.is-now {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}
.sh-steps li.is-ok {
  color: var(--go);
  border-color: var(--go);
}
.sh-steps li.is-fail {
  color: var(--wait);
  border-color: var(--wait);
}

.sh-board {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* 따라가는 동안 화면이 움직이지 않게 캔버스에서만 터치 스크롤을 끈다. */
.sh-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}

.sh-bar {
  max-width: 560px;
  margin: 12px auto 0;
}
.sh-bar span {
  transform: scaleX(0);
  transition: transform 0.1s linear;
}
.sh-msg {
  max-width: 560px;
  min-height: 2.9em;
  margin: 10px auto 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}
.sh-msg[data-tone='bad'] {
  color: var(--wait);
}
.sh-msg[data-tone='ok'] {
  color: var(--go);
}
.sh-note {
  max-width: 560px;
  margin: 10px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  text-align: left;
}

.sh-stages {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.sh-stages li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.sh-stages b {
  font-size: 0.92rem;
}
.sh-stages span {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.sh-stages strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
