/* ── 找找看專用樣式 ── */

/* 兩張圖並排（桌機）/ 上下排（手機） */
.spot-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.spot-panel {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 8px;
  flex-shrink: 0;
}

.spot-panel canvas {
  display: block;
  border-radius: var(--border-radius);
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  height: auto;
}

.spot-label {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* 找到的圓圈標記 */
.spot-marker {
  position: absolute;
  border: 3px solid var(--color-success);
  border-radius: 50%;
  pointer-events: none;
  animation: markerPop 0.4s ease;
}

@keyframes markerPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* 錯誤點擊 ✕ */
.spot-miss {
  position: absolute;
  color: #e53935;
  font-size: 28px;
  font-weight: 700;
  pointer-events: none;
  animation: missFade 0.8s ease forwards;
  transform: translate(-50%, -50%);
}

@keyframes missFade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(0.6); }
}

/* 提示閃爍 */
.spot-hint-flash {
  position: absolute;
  border: 3px dashed #FA8C16;
  border-radius: 50%;
  pointer-events: none;
  animation: hintPulse 1.5s ease-in-out;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  30%      { opacity: 1; transform: scale(1.1); }
  70%      { opacity: 1; transform: scale(1); }
}

/* 新紀錄 */
.new-record-text {
  color: var(--color-primary);
  font-size: var(--font-size-title);
  font-weight: 700;
  animation: recordPulse 0.8s ease-in-out infinite alternate;
}

@keyframes recordPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* 響應式 */
@media (min-width: 700px) {
  .spot-panel {
    max-width: 380px;
  }
}

@media (max-width: 699px) {
  .spot-panel {
    width: 100%;
    max-width: 400px;
  }
  .spot-container {
    gap: 12px;
  }
}
