/* ===== 반응 테스트 — 큰 패드 ===== */
.stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 40px;
}
.pad-area {
  position: relative;
  width: min(460px, 92vw, calc(100vh - 210px));
}
.pad {
  width: 100%; aspect-ratio: 1;
  display: grid; place-content: center; gap: 10px; text-align: center;
  background: #2A2438;
  border: 3px solid var(--wall);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  user-select: none;
  transition: background .12s ease;
  touch-action: manipulation;
}
.pad.idle { background: #2A2438; }
.pad.wait { background: #B34A44; cursor: wait; }
.pad.go { background: #3FBF8F; }
.pad.result { background: #2A2438; }
.pad.too-soon { background: #6A5AE0; }
.pad-main { font-size: 3rem; }
.pad-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem; color: var(--ink);
}
.pad.go .pad-text, .pad.wait .pad-text { color: #fff; }
.pad-sub { font-size: .85rem; color: var(--ink-2); }
.pad.wait .pad-sub, .pad.go .pad-sub { color: rgba(255,255,255,.75); }
.pad:active { transform: scale(.995); }
.pad-actions { margin-top: 10px; text-align: center; }

.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(14,11,20,.7);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 24px;
  max-width: 480px; width: 100%;
  max-height: 85vh; overflow-y: auto;
}
.modal-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.modal-card .btn-primary { margin-top: 18px; width: 100%; }
.log-table .rank-1 td:first-child { color: #FFD166; font-weight: 800; }
.log-table .rank-2 td:first-child { color: #C9C3DD; font-weight: 800; }
.log-table .rank-3 td:first-child { color: #D2936B; font-weight: 800; }
