/* 클릭 스피드 — 게임 전용 스타일 */

.cs-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
}

.cs-hud {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px;
}

.cs-time {
  transition: color .15s ease;
  font-variant-numeric: tabular-nums;
}
.cs-time.is-warn {
  color: var(--bad);
}

.cs-count-big {
  font-size: 34px;
}

/* 클릭 패드 */
.cs-pad-wrap {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  max-width: 280px;
  max-height: 280px;
}

.cs-pad {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--surface-2), var(--surface) 70%);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 204, 77, .08), var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  transform: scale(1);
}

.cs-pad-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  pointer-events: none;
}

/* 펀치 애니메이션 — 클릭할 때마다 살짝 눌리는 효과 */
.cs-pad.cs-pad-punch {
  animation: cs-punch .15s ease-out;
}
@keyframes cs-punch {
  0%   { transform: scale(1); }
  30%  { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* "+1" 팝 이펙트 — 0.4초 애니메이션 후 JS에서 DOM 제거 */
.cs-pop {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  pointer-events: none;
  animation: cs-pop-float .4s ease-out forwards;
  z-index: 5;
}
@keyframes cs-pop-float {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(.8); }
  35%  { opacity: 1; transform: translate(-50%, -110%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1); }
}

.cs-hint {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  max-width: 340px;
}

/* 결과 오버레이 */
.cs-over-title { margin-bottom: 6px; }

.cs-record-badge {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.cs-result-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 12px 0;
}

.cs-title-line {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cs-best-line {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 18px;
}

.cs-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 380px) {
  .cs-hud { padding: 12px 8px; }
  .cs-count-big { font-size: 28px; }
}
