/* 지하철 노선 암기 — 노선도 스타일 */
.mt-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 7px; vertical-align: baseline;
}

.mt-stage { position: relative; margin-top: 18px; }

/* 역은 위에서 아래로 이어진다. 그리드는 가로로 흐르니 단(column) 조판을 써서
   한 단이 곧 이어진 구간이 되게 한다 — 세로 연결선과 읽는 순서가 맞아야 한다. */
.mt-line {
  list-style: none; margin: 0; padding: 4px 0 0;
  columns: 4 150px; column-gap: 18px;
}
.mt-st {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 7px 4px 7px 20px; min-height: 40px;
  break-inside: avoid; -webkit-column-break-inside: avoid;
}
/* 역과 역을 잇는 노선 */
.mt-st::before {
  content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 4px;
  background: var(--line-color, var(--ink-3)); opacity: 0.32;
}
.mt-st:first-child::before { top: 50%; }
.mt-st:last-child::before { bottom: 50%; }
.mt-st::after {
  content: ""; position: absolute; left: 1px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line-color, var(--ink-3));
  opacity: 0.42;
}
.mt-st.is-hit::before, .mt-st.is-hit::after { opacity: 1; }

.mt-no {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; min-width: 26px;
}
.mt-name {
  font-size: 14.5px; font-weight: 600; color: var(--ink-3);
  overflow-wrap: anywhere;
}
.mt-name.blank {
  display: inline-block; min-width: 54px; height: 2px; background: var(--line-strong);
  vertical-align: middle; opacity: 0.55;
}
.mt-st.is-hit .mt-name { color: var(--ink); }
.mt-st.is-miss .mt-name { color: var(--miss); }
.mt-st.is-new { animation: mtPop 0.5s ease; }
@keyframes mtPop {
  0% { background: var(--accent-soft); }
  100% { background: transparent; }
}

/* 시작 전 덮개는 백지도와 같은 물성 */
.mt-stage .bm-cover { position: absolute; inset: 0; }

@media (max-width: 560px) {
  .mt-line { columns: 2 128px; column-gap: 12px; }
  .mt-st { min-height: 36px; padding: 5px 2px 5px 18px; gap: 7px; }
  .mt-name { font-size: 13.5px; }
  .mt-no { font-size: 9.5px; min-width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-st.is-new { animation: none; }
}

/* 구간 선택 (전 구간 / 도시 구간) */
.mt-segs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.mt-segs .chip small { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-left: 4px; }
.mt-segs .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.mt-segs .chip[aria-pressed="true"] small { color: var(--accent); }
