/* ── 대륙 탐험 · 지리 개념 (Training) ── */

.explore-continent-btns .continent-btn {
  cursor: pointer;
}

.concept-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.concept-filter-btn {
  flex: 1;
  min-width: 7rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(139, 94, 60, 0.25);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5c4033;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.concept-filter-btn.active {
  background: linear-gradient(135deg, #8b5e3c, #a67c52);
  border-color: transparent;
  color: #fff;
}

.concept-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 94, 60, 0.18);
  background: #fff;
}

.concept-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.concept-table th:nth-child(1),
.concept-table td:nth-child(1) {
  width: 70%;
}

.concept-table th:nth-child(2),
.concept-table td:nth-child(2) {
  width: 20%;
}

.concept-table th:nth-child(3),
.concept-table td:nth-child(3) {
  width: 10%;
}

.concept-table th,
.concept-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(139, 94, 60, 0.12);
}

.concept-table th {
  background: rgba(139, 94, 60, 0.08);
  font-weight: 700;
  white-space: nowrap;
}

.concept-table tr:last-child td {
  border-bottom: none;
}

.concept-table td:nth-child(2) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.concept-table td:nth-child(3) {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .start-shell.is-concept-setup {
    width: min(100%, 920px);
  }

  .start-view--setup.is-concept-setup {
    min-height: calc(100dvh - var(--site-header-height, 44px) - 24px);
  }

  #setupPageConcept .concept-table-wrap {
    overflow-x: visible;
  }

  #setupPageConcept .concept-table {
    font-size: 0.95rem;
    table-layout: fixed;
  }

  #setupPageConcept .concept-table th,
  #setupPageConcept .concept-table td {
    padding: 0.75rem 1rem;
    line-height: 1.55;
  }

  #setupPageConcept .concept-table td:nth-child(1) {
    min-width: 0;
    width: 70%;
  }

  #setupPageConcept .concept-table td:nth-child(2) {
    min-width: 0;
    width: 20%;
  }

  #setupPageConcept .concept-table td:nth-child(3) {
    width: 10%;
  }
}

.concept-table-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #888;
}

/* 탐험 핫스팟 */
.explore-hotspot-wrap {
  background: transparent;
  border: none;
}

.explore-hotspot-pin {
  display: block;
  width: 14px;
  height: 14px;
  margin: 5px 0 0 5px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.explore-hotspot-pin--done {
  background: #22c55e;
}

.explore-hotspot-wrap:hover .explore-hotspot-pin {
  transform: scale(1.25);
}

.explore-hotspot-wrap:not(.explore-hotspot-wrap--done):hover .explore-hotspot-pin {
  background: #eab308;
}

.explore-hotspot-wrap--done:hover .explore-hotspot-pin {
  background: #16a34a;
}

/* 탐험 상세 모달 */
.explore-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--site-header-height, 52px) + 12px) 1rem 1rem;
  box-sizing: border-box;
  background: rgba(20, 16, 12, 0.55);
  overflow-y: auto;
}

.explore-modal[hidden] {
  display: none;
}

.explore-modal__panel {
  width: min(100%, 420px);
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  border-radius: 16px;
  background: #fffbf7;
  border: 2px solid rgba(139, 94, 60, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 1.25rem 1.35rem 1.35rem;
}

.explore-modal__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.explore-modal__flag {
  flex-shrink: 0;
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  background: #eee;
}

.explore-modal__flag[hidden] {
  display: none;
}

.explore-modal__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #4a3428;
  line-height: 1.25;
}

.explore-modal__google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(66, 133, 244, 0.35);
  background: #f8fbff;
  color: #1a56db;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.explore-modal__google:hover {
  background: #eef4ff;
}

.explore-modal__facts {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.explore-modal__facts dt {
  font-weight: 700;
  color: #6b4f3a;
  display: inline;
}

.explore-modal__facts dt::after {
  content: ' ';
}

.explore-modal__facts dd {
  display: inline;
  margin: 0;
  color: #333;
}

.explore-modal__facts div {
  display: block;
}

.explore-modal__quiz {
  border-top: 1px dashed rgba(139, 94, 60, 0.3);
  padding-top: 1rem;
}

.explore-modal__quiz-label {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: #5c4033;
}

.explore-modal__quiz-row {
  display: flex;
  gap: 0.5rem;
}

.explore-modal__quiz-row input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 94, 60, 0.35);
  font-size: 0.95rem;
}

.explore-modal__quiz-row button {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: none;
  background: #8b5e3c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.explore-modal__feedback {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  min-height: 1.25rem;
}

.explore-modal__feedback.is-correct {
  color: #15803d;
}

.explore-modal__feedback.is-wrong {
  color: #b91c1c;
}

.explore-modal__close {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 94, 60, 0.35);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.mode-list-card--explore .mode-list-card__icon {
  object-fit: contain;
}

.mode-list-card--concept .mode-list-card__icon {
  object-fit: contain;
}

.game-square-card--blank,
.game-square-card--golden {
  cursor: pointer;
}
