/* 타이밍 정지 — 게임 전용 스타일 */

.ts-screen { text-align: center; }

.ts-title { font-size: 22px; margin-bottom: 12px; }

.ts-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ts-hl-perfect { color: var(--accent); font-weight: 700; }

.ts-start-btn, .ts-stop-btn { width: 100%; font-size: 17px; padding: 16px 20px; }

/* 상단 HUD */
.ts-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ts-hud .gl-stat { flex: 1; }

.ts-combo-badge {
  flex: 0 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  animation: ts-combo-pop .2s ease;
}
.ts-combo-badge.ts-combo-hot {
  box-shadow: 0 0 14px rgba(255, 204, 77, .6);
  transform: scale(1.08);
}

@keyframes ts-combo-pop {
  from { transform: scale(1.35); }
  to { transform: scale(1); }
}

/* 트랙 */
.ts-track-wrap {
  padding: 28px 16px;
  margin-bottom: 18px;
}

.ts-track {
  position: relative;
  height: 64px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.ts-zone {
  position: absolute;
  top: 6px;
  bottom: 6px;
  background: rgba(108, 140, 255, .28);
  border: 2px solid var(--accent-2);
  border-radius: 8px;
}

.ts-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: var(--text);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, .5);
}

.ts-judge-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 18, 32, .55);
}
.ts-judge-flash.show {
  opacity: 1;
  animation: ts-flash-pop .5s ease forwards;
}
.ts-judge-flash.is-perfect { color: var(--accent); }
.ts-judge-flash.is-good { color: var(--good); }
.ts-judge-flash.is-miss { color: var(--bad); }

@keyframes ts-flash-pop {
  0% { opacity: 0; transform: scale(.7); }
  20% { opacity: 1; transform: scale(1.1); }
  35% { transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.ts-footer { margin-top: 18px; text-align: center; }
.ts-hint { margin-top: 8px; color: var(--text-dim); font-size: 13px; }

/* 게임 오버 오버레이 */
.ts-over-title { font-size: 20px; margin-bottom: 8px; }
.ts-record-badge {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px;
}
.ts-over-stats {
  display: flex;
  gap: 12px;
  margin: 14px 0 20px;
}
.ts-over-stats .gl-stat { flex: 1; }
.ts-over-actions {
  display: flex;
  gap: 10px;
}
.ts-over-actions .gl-btn { flex: 1; }

@media (max-width: 400px) {
  .ts-track { height: 54px; }
  .ts-judge-flash { font-size: 20px; }
}
