/* journey — sảnh Học Viện, bản đồ hành trình, nhiệm vụ, cửa hàng, toast. */

.home-body,
.map-body,
.shop-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.panel-title {
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  margin-bottom: 10px;
}

/* Hero — hồ sơ của bé */
.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #d8f3dc, #b7e4c7);
}
.hero--ocean  { background: linear-gradient(135deg, #caf0f8, #90e0ef); }
.hero--sunset { background: linear-gradient(135deg, #ffe5b4, #ffc09f); }
.hero--space  { background: linear-gradient(135deg, #cdb4db, #a2d2ff); }

.hero__avatar {
  font-size: 3rem;
  background: var(--c-surface);
  border-radius: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hero__main { flex: 1; min-width: 0; }
.hero__hello { font-size: 1.5rem; }
.hero__title { color: var(--c-ink-soft); font-size: 0.95rem; }
.hero__streak { font-weight: 700; margin-top: 4px; }

/* Tóm tắt hành trình */
.journey-summary {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.journey-bar {
  height: 14px;
  background: #e6ecf7;
  border-radius: 999px;
  overflow: hidden;
}
.journey-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-correct));
  transition: width 0.4s ease;
}
.journey-summary__text { color: var(--c-ink-soft); margin: 8px 0 14px; }
.btn--big { font-size: 1.1rem; padding: 14px 22px; width: 100%; }
.btn--small { padding: 6px 12px; font-size: 0.9rem; }

/* Nhiệm vụ hằng ngày */
.quest-panel {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.quest-list { display: flex; flex-direction: column; gap: 12px; }
.quest {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #f7f9fd;
}
.quest--claimed { opacity: 0.6; }
.quest__icon { font-size: 1.5rem; flex: none; }
.quest__main { flex: 1; min-width: 0; }
.quest__title { font-weight: 600; }
.quest__bar {
  height: 8px;
  background: #e6ecf7;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.quest__fill { height: 100%; background: var(--c-accent); transition: width 0.3s ease; }
.quest__meta { font-size: 0.82rem; color: var(--c-ink-soft); }
.quest__done { color: var(--c-correct); font-size: 1.3rem; font-weight: 700; }
.quest__pending { color: var(--c-ink-soft); }

/* Lối tắt */
.hub-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
}
.nav-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.nav-card:hover { transform: translateY(-3px); }
.nav-card__icon { font-size: 2.2rem; }
.nav-card__title { font-weight: 700; margin-top: 6px; }
.nav-card__meta { font-size: 0.85rem; color: var(--c-ink-soft); }

/* Bản đồ */
.map { display: flex; flex-direction: column; gap: 20px; }
.map-zone {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.map-zone.is-cleared { outline: 3px solid var(--c-correct); }
.map-zone__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.map-zone__icon { font-size: 1.6rem; }
.map-zone__name { font-size: 1.15rem; flex: 1; }
.map-zone__badge {
  font-size: 0.8rem;
  background: var(--c-accent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.map-zone__nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.map-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-radius: var(--radius);
  background: #f7f9fd;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.map-node__icon { font-size: 1.6rem; }
.map-node__title { font-weight: 600; font-size: 0.95rem; }
.map-node__sub { font-size: 0.78rem; color: var(--c-ink-soft); }
.map-node__stars { color: var(--c-accent); letter-spacing: 2px; }
.map-node__flag {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border-radius: 999px;
  padding: 2px 8px;
}
.map-node.is-done { background: #e7f9f1; }
.map-node.is-next { border-color: var(--c-primary); }
.map-node.is-locked { opacity: 0.55; cursor: default; }

/* Cửa hàng */
.shop__hint { color: var(--c-ink-soft); }
.shop-grid { display: flex; flex-direction: column; gap: 8px; }
.shop-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.shop-item {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  border: 2px solid transparent;
}
.shop-item.is-equipped { border-color: var(--c-correct); }
.shop-item.is-locked { opacity: 0.6; }
.shop-item__icon { font-size: 2.2rem; }
.shop-item__name { font-weight: 600; font-size: 0.92rem; }

/* HUD bổ sung */
.hud__avatar { font-size: 1.6rem; }

/* Ô nhập tên */
.text-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  border: 2px solid #dbe3f0;
  font-family: inherit;
}
.text-input:focus { border-color: var(--c-primary); outline: none; }

/* Toast tin vui */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--c-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
  z-index: 50;
  animation: toast-in 0.3s ease;
}
.toast.is-out { opacity: 0; transition: opacity 0.5s ease; }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 560px) {
  .hero { flex-wrap: wrap; }
  .hero__avatar { width: 60px; height: 60px; font-size: 2.2rem; }
}
