/* 음 맞추기 — app.css 위에 이 게임에만 필요한 것 */

/* 듣는 시간 막대: 숫자 대신 줄어드는 막대 */
.timebar { position: absolute; top: 20px; left: 64px; right: 24px; height: 6px; border-radius: 3px; background: var(--stage-raised); overflow: hidden; }
.timebar i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, var(--sprout), var(--grain)); transform-origin: left; }

/* 찾기: 누른 채 위아래로 */
.stage--play.is-find { cursor: ns-resize; box-shadow: var(--shadow-stage), inset 0 0 0 3px rgba(255, 111, 145, 0.35); }
.stage--play.is-dragging { box-shadow: var(--shadow-stage), inset 0 0 0 3px rgba(255, 111, 145, 0.9); }

.rail { position: absolute; top: 56px; bottom: 96px; right: 16px; width: 4px; border-radius: 2px; background: var(--stage-raised); pointer-events: none; }
.rail i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--p1); box-shadow: 0 0 0 4px rgba(255, 111, 145, 0.25); }
.stage--play.is-dragging .rail i { box-shadow: 0 0 0 7px rgba(255, 111, 145, 0.3); }

.hz { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; pointer-events: none; }
.hz__v { font: 400 56px/1 var(--font-pixel); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hz__u { margin-left: 4px; font: 500 15px/1 var(--font-mono); color: var(--on-stage-muted); }

/* 결과: 목표·내 음 다시 듣기 */
.tags--play { pointer-events: auto; gap: 10px; padding: 0 16px; }
.tag--btn { flex: 1; max-width: 168px; padding: 10px 8px; border: 0; border-radius: var(--radius-md); background: var(--stage-raised); color: var(--on-stage); cursor: pointer; font: inherit; }
.tag--btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tag--btn.is-playing { box-shadow: inset 0 0 0 2px rgba(var(--stage-ink), 0.6); }
.tag--btn:last-child.is-playing { box-shadow: inset 0 0 0 2px var(--p1); }
.play-ico { width: 0; height: 0; border-left: 8px solid rgba(var(--stage-ink), 0.75); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.play-ico--p1 { border-left-color: var(--p1); }

.err__v--sm { font: 700 15px/20px var(--font-sans); }

@media (max-height: 700px) {
  .hz__v { font-size: 44px; }
}
