/* ── 틀린그림찾기 전용 스타일 ──────────────────────────── */

.spotdiff-wrap {
  width: min(1500px, 98vw);
  margin: 0 auto 28px;
}

/* ── 컨트롤 바 ─────────────────────────────────────────── */
.spotdiff-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.spotdiff-diff-group {
  display: flex;
  gap: 4px;
}

.spotdiff-diff-btn {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.spotdiff-diff-btn:hover { border-color: var(--accent); color: var(--accent); }
.spotdiff-diff-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.spotdiff-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.spotdiff-sound-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
}
.spotdiff-sound-toggle:hover { background: var(--card); }

/* ── HUD ──────────────────────────────────────────────── */
.spotdiff-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  flex-wrap: wrap;
}

.spotdiff-hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotdiff-timer { font-variant-numeric: tabular-nums; }
.spotdiff-timer.danger { color: var(--warn); animation: sdPulse .6s infinite; }

@keyframes sdPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.spotdiff-hint-btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink);
}
.spotdiff-hint-btn:hover { border-color: var(--accent); color: var(--accent); }
.spotdiff-hint-btn:disabled { opacity: .4; cursor: default; }

/* ── 캔버스 영역 ──────────────────────────────────────── */
.spotdiff-canvases {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
}

.spotdiff-canvas-col {
  flex: 1;
  max-width: 720px;
  text-align: center;
  min-width: 0;
}

.spotdiff-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.spotdiff-canvas {
  display: block;
  width: 100%;
  max-height: calc(100vh - 240px);
  margin: 0 auto;
  border-radius: 16px;
  box-shadow:
    0 2px 0 rgba(30, 27, 75, .25),
    0 8px 28px rgba(15, 23, 42, .18);
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.spotdiff-canvas.no-click {
  cursor: default;
  pointer-events: none;
}

/* ── 라운드 배너 ──────────────────────────────────────── */
.spotdiff-banner {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(4px);
  animation: sdFadeIn .3s;
}

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

.spotdiff-banner-title {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
  margin-bottom: 8px;
}

.spotdiff-banner-sub {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
}

/* ── 정보 영역 ────────────────────────────────────────── */
.spotdiff-info {
  width: min(720px, 96vw);
  margin: 0 auto 28px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  line-height: 1.7;
}
.spotdiff-info h2 { font-size: 22px; font-weight: 900; margin: 0 0 10px; }
.spotdiff-info h3 { font-size: 17px; font-weight: 800; margin: 18px 0 8px; }
.spotdiff-info p  { color: var(--muted); }
.spotdiff-info ul { padding-left: 20px; color: var(--muted); }
.spotdiff-info li { margin-bottom: 4px; }

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 680px) {
  .spotdiff-canvases {
    flex-direction: column;
    align-items: center;
  }
  .spotdiff-canvas-col {
    max-width: 100%;
    width: 100%;
  }
  .spotdiff-canvas {
    border-radius: 10px;
  }
  .spotdiff-top {
    flex-direction: column;
    align-items: stretch;
  }
  .spotdiff-diff-group { justify-content: center; }
  .spotdiff-actions { justify-content: center; }
  .spotdiff-hud { gap: 12px; font-size: 14px; }
}
