/* explore.css — 탐험 채집 화면 */

.explore-maps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-map-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid #e2e6de;
  border-radius: var(--radius-sm);
}

.explore-map-card.locked {
  opacity: 0.75;
}

.explore-map-name {
  font-size: 15px;
  font-weight: 800;
}

.explore-map-desc {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 3px;
}

.explore-exit {
  margin-bottom: 10px;
}

/* ── 맵 필드 ────────────────────────── */
.explore-field {
  position: relative;
  height: 60vh;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.explore-field.map-moss {
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(18, 26, 12, 0.35), transparent 62%),
    linear-gradient(180deg, #a9bd93 0%, #7c9866 55%, #5a744c 100%);
}

.explore-field.map-field {
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(62, 42, 16, 0.3), transparent 62%),
    linear-gradient(180deg, #e8d8b4 0%, #cfb184 55%, #a98c60 100%);
}

.explore-field.map-pond {
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(14, 30, 36, 0.35), transparent 62%),
    linear-gradient(180deg, #b5cfc9 0%, #85aca8 55%, #5d8683 100%);
}

.explore-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}

.explore-spot:hover {
  background: rgba(255, 255, 255, 0.28);
}

.explore-spot:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.explore-spot.searched {
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  cursor: default;
  animation: spot-pop 0.4s ease;
}

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

.explore-map-stamina {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-sub);
}

/* ── 미니게임 허브 (12차) ─────────────────── */
.minigame-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.minigame-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: none; border-radius: var(--radius-sm);
  background: rgba(120, 145, 100, 0.12); font: inherit; color: var(--color-text);
  cursor: pointer; text-align: left; width: 100%;
}
.minigame-card:active { background: rgba(120, 145, 100, 0.22); }
.minigame-card.locked { opacity: 0.55; cursor: default; }
.minigame-emoji { font-size: 28px; flex-shrink: 0; }
.minigame-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.minigame-info b { font-size: 15px; font-weight: 800; }
.minigame-info small { font-size: 12px; color: var(--color-text-sub); }
.minigame-card > i { color: var(--color-text-sub); font-size: 12px; }

/* ── 달팽이 경주 (12차) ───────────────────── */
.race-card { position: relative; }
.race-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  padding: 10px 8px;
  background: linear-gradient(90deg, rgba(120,145,100,.1), rgba(140,200,170,.12));
  border-radius: var(--radius-sm);
  border-right: 3px dashed rgba(200, 80, 80, 0.5); /* 결승선 */
}
.race-lane {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border-bottom: 1px dashed rgba(120, 145, 100, 0.35); /* 레인 구분선 */
}
.race-lane:last-child { border-bottom: none; }
.race-num {
  width: 20px;
  font-weight: 800;
  font-size: 13px;
  color: var(--color-text-sub);
  flex-shrink: 0;
}
.race-snail {
  position: absolute;
  left: 24px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  transform: translateX(0);
  transform-origin: center;
  filter: drop-shadow(0 2px 2px rgba(20,18,10,.25));
}
/* 우승 강조 — transform(translateX 위치)은 건드리지 않고 발광만 (위치 리셋 방지) */
.race-snail.race-winner {
  filter: drop-shadow(0 2px 2px rgba(20,18,10,.25)) drop-shadow(0 0 8px rgba(242, 200, 60, 0.95));
  animation: race-glow 0.6s ease-in-out infinite alternate;
}
@keyframes race-glow {
  to { filter: drop-shadow(0 2px 2px rgba(20,18,10,.25)) drop-shadow(0 0 14px rgba(242, 200, 60, 1)); }
}

.race-guess {
  display: flex;
  flex-wrap: nowrap; /* 예측 버튼 5개는 항상 한 줄 */
  gap: 8px;
  justify-content: center;
}
.race-pick { flex: 1 1 0; min-width: 0; padding: 10px 4px; }
.race-left { text-align: center; font-size: 12px; color: var(--color-text-sub); margin-top: 10px; }

/* ── 달팽이 퀴즈 (13차) ───────────────────── */
.quiz-question {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0;
  line-height: 1.5;
}
.quiz-choices { display: flex; flex-direction: column; gap: 8px; }
.quiz-choice { padding: 14px; font-size: 15px; }
.quiz-choice.quiz-correct { background: rgba(111, 141, 90, 0.35); color: #2a3d1a; font-weight: 800; }
.quiz-choice.quiz-wrong { background: rgba(210, 90, 90, 0.25); }
.quiz-result { text-align: center; font-size: 15px; margin-top: 12px; min-height: 22px; }
