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

.target-area {
  text-align: center;
  margin-bottom: 24px;
}

.target-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(48vw, 200px);
  height: min(48vw, 200px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255,255,255,0.6);
  margin-bottom: 10px;
}

.target-card .shadow-emoji {
  font-size: clamp(80px, 24vw, 120px);
  line-height: 1;
  filter: brightness(0);
}

.target-hint {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.shadow-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 16px;
  aspect-ratio: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: transform 0.1s ease, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shadow-card:hover {
  border-color: var(--accent);
}

.shadow-card:active {
  transform: scale(0.94);
}

.shadow-card .shadow-emoji {
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1;
  filter: brightness(0);
}

.shadow-card.correct {
  background: #d4f7e0;
  border-color: #2ed573;
  animation: pop 0.3s ease;
}

.shadow-card.wrong {
  background: #ffd6d6;
  border-color: #ff4757;
  animation: shake 0.35s ease;
}

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-8px); }
  75%      { transform: translateX(8px); }
}

#status-label.playing { color: #2ed573; }
.stat-value.warn { color: #ff6b6b; }

/* ===== 시작 오버레이 ===== */

.shadow-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 41, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  z-index: 5;
  transition: opacity 0.2s;
}

.shadow-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-content {
  text-align: center;
  padding: 24px;
}

.overlay-icon { font-size: 3.5rem; margin-bottom: 12px; }
.overlay-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.overlay-content p { color: var(--text-dim); margin-bottom: 18px; }

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

/* ===== 결과 모달 ===== */

.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;
}
