/* 5초 클릭 — 큰 탭 패드 단일 버튼 */

.board-wrap {
  position: relative;
  width: min(92vw, 480px);
  margin: 0 auto;
}

.cps-pad {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffd166, #ff9c4a);
  color: #2a1d04;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 14px 36px rgba(255, 209, 102, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.06s, box-shadow 0.1s;
  position: relative;
  overflow: hidden;
}

.cps-pad:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.45);
}

.cps-pad.playing {
  background: linear-gradient(135deg, #ffe082, #ffb347);
}

.cps-pad.done {
  background: linear-gradient(135deg, #b5b5b5, #8a8a8a);
  color: #fff;
  cursor: not-allowed;
}

.cps-pad-text {
  font-size: clamp(2rem, 9vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.cps-pad-sub {
  font-size: clamp(0.85rem, 3.2vw, 1rem);
  font-weight: 600;
  opacity: 0.75;
}

/* 탭 시 잠깐 빛나는 ripple */
.cps-pad .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: cps-ripple 0.45s ease-out forwards;
  pointer-events: none;
}

@keyframes cps-ripple {
  to { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.hint {
  text-align: center;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 0 16px;
}

/* ===== 결과 모달 — 표준 패턴 ===== */

.result-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 41, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  animation: fadeIn 0.25s ease;
}
.result-modal.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.result-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-emoji { font-size: 4rem; margin-bottom: 8px; }
.result-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.result-msg { color: var(--text-dim); margin-bottom: 24px; }

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.result-stats > div {
  background: rgba(255,255,255,0.05);
  padding: 14px;
  border-radius: 12px;
}
.result-stats span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.result-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.result-rank {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 4px;
  color: var(--accent);
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.result-actions .btn {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.95rem;
}
