/* ============================================================================
   Hành trình theo lớp — hai thế giới giao diện
   .mode-kids  : Thiên đường thiếu nhi (lớp 2–5), màu kẹo, sticker, nhún nhảy
   .mode-story : Nhịp truyện học đường (lớp 6–12), hoàng hôn, hoa phượng, anime
   ============================================================================ */

.journey-page .lt-page {
  position: relative;
  overflow: hidden;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  transition: background 0.6s ease;
}

/* Hai thể loại không bao giờ hiện cùng lúc */
.lt-world { display: none; }
.lt-page[data-mode="kids"] .lt-world-kids { display: block; }
.lt-page[data-mode="story"] .lt-world-story { display: block; }

.lt-kicker {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
}

/* ==========================================================================
   CHUYỂN THẾ GIỚI — 2 cánh cửa khổng lồ ở đầu trang
   ========================================================================== */
.lt-switch {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 10px 12px 0;
  pointer-events: none;
}
.lt-switch-inner {
  pointer-events: auto;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(13, 16, 32, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(5, 8, 24, 0.45);
}
.lt-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 999px;
  background: transparent;
  color: #d8d4f0;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(12.5px, 1.6vw, 15.5px);
  transition: background 0.3s ease, color 0.3s ease, transform 0.18s ease;
  white-space: nowrap;
}
.lt-tab small { display: block; font-family: 'Be Vietnam Pro'; font-weight: 500; font-size: 10px; letter-spacing: 0.04em; opacity: 0.75; }
.lt-tab:hover { transform: translateY(-2px); }
.lt-tab-kids[aria-pressed="true"] { background: linear-gradient(160deg, #ffd7e8, #ffe9a8); color: #5b2233; }
.lt-tab-story[aria-pressed="true"] { background: linear-gradient(160deg, #ffd166, #e5484d); color: #2a0d12; }

@media (max-width: 560px) {
  .lt-tab small { display: none; }
  .lt-tab { padding: 9px 9px; font-size: 11.5px; gap: 6px; letter-spacing: -0.01em; }
  .lt-switch { padding: 8px 6px 0; }
  .lt-switch-inner { gap: 2px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lt-switch-inner::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   THẾ GIỚI 1 — THIÊN ĐƯỜNG THIẾU NHI (lớp 2–5)
   ========================================================================== */
.lt-kids {
  --k-ink: #37253f;
  --k-coral: #ff6f61;
  --k-sun: #ffd23f;
  --k-teal: #12b5a5;
  --k-sky: #38bdf8;
  --k-grape: #a78bfa;
  --k-leaf: #34d399;
  --k-card: #ffffff;
  position: relative;
  color: var(--k-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 210, 63, 0.5), transparent 26%),
    radial-gradient(circle at 90% 14%, rgba(255, 111, 97, 0.38), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(167, 139, 250, 0.35), transparent 30%),
    radial-gradient(circle at 8% 78%, rgba(18, 181, 165, 0.32), transparent 30%),
    linear-gradient(180deg, #fff7e6 0%, #ffedf4 45%, #e9f9ff 100%);
}
.lt-kids-inner { max-width: 1200px; margin: 0 auto; padding: 6px 18px 72px; position: relative; }

/* chấm bi kiểu giấy dán tường trẻ em */
.lt-kids::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 111, 97, 0.16) 3.2px, transparent 3.4px),
                    radial-gradient(circle, rgba(56, 189, 248, 0.16) 3.2px, transparent 3.4px);
  background-size: 64px 64px, 64px 64px;
  background-position: 0 0, 32px 32px;
}

.lt-kids-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 26px; align-items: center; padding: 30px 0 26px; }
@media (max-width: 900px) { .lt-kids-hero { grid-template-columns: 1fr; padding-top: 18px; } }

.lt-badge-kids {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--k-sun); color: #4a2c00;
  border: 3px solid #2f1d00;
  box-shadow: 0 4px 0 #e0a800;
  font-family: 'Baloo 2'; font-weight: 800; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lt-kids-title {
  margin-top: 16px;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.lt-kids-title em {
  font-style: normal;
  color: var(--k-coral);
  text-shadow: 3px 3px 0 var(--k-sun);
  display: inline-block;
  transform: rotate(-1.5deg);
}
.lt-kids-lead { margin-top: 14px; font-size: 16.5px; line-height: 1.62; font-weight: 500; color: #54445f; max-width: 34rem; }

.lt-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lt-cta-big {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 20px;
  font-family: 'Baloo 2'; font-weight: 800; font-size: 16px;
  text-decoration: none; border: 3px solid #2f1d00;
  background: var(--k-coral); color: #fff;
  box-shadow: 0 6px 0 #c93a2d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lt-cta-big:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 0 #c93a2d; }
.lt-cta-big:active { transform: translateY(3px); box-shadow: 0 2px 0 #c93a2d; }
.lt-cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: 20px;
  font-family: 'Baloo 2'; font-weight: 800; font-size: 15px;
  text-decoration: none; border: 3px dashed #8b5cf6;
  color: #6d28d9; background: #f5f3ff;
}

/* squad mascot trong hero */
.lt-squad {
  position: relative; z-index: 1; display: grid; place-items: center; align-self: center;
  background: #fff; border: 4px solid #2f1d00; border-radius: 34px;
  box-shadow: 0 10px 0 #2f1d00, 0 26px 42px -18px rgba(55, 37, 63, 0.5);
  padding: 14px 12px 12px;
}
.lt-squad-img { width: 100%; max-width: 560px; height: auto; border-radius: 22px; display: block; aspect-ratio: 1280 / 714; object-fit: contain; background: #ffffff; }
.lt-squad-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 8px 14px; }
.lt-squad-chip {
  font-family: 'Baloo 2'; font-weight: 700; font-size: 12px;
  padding: 5px 12px; border-radius: 999px; border: 2.5px solid #2f1d00; background: #fff;
}

/* ==========================================================================
   5 HÀNH TRÌNH CAMBRIDGE — sticker cards
   ========================================================================== */
.lt-series-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin: 40px 4px 16px; }
.lt-series-title { font-family: 'Baloo 2'; font-weight: 800; font-size: clamp(23px, 3.4vw, 31px); }
.lt-series-rule { flex: 1; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--k-coral) 0 18px, var(--k-sun) 18px 36px, var(--k-teal) 36px 54px, var(--k-sky) 54px 72px); }

.lt-series-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .lt-series-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .lt-series-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 420px) { .lt-series-grid { grid-template-columns: 1fr; } }

.lt-series-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none; color: inherit;
  background: var(--k-card); border: 3.5px solid #2f1d00; border-radius: 28px;
  padding: 18px 12px 16px; min-height: 218px;
  box-shadow: 0 7px 0 #2f1d00;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
}
.lt-series-card:hover { transform: translateY(-6px) rotate(var(--tilt, -1deg)) scale(1.03); box-shadow: 0 13px 0 #2f1d00; z-index: 2; }
.lt-series-card:nth-child(odd) { --tilt: 1.2deg; }
.lt-buddy { width: 92px; height: 92px; }
.lt-series-name { font-family: 'Baloo 2'; font-weight: 800; font-size: 18px; margin-top: 10px; letter-spacing: 0.02em; }
.lt-series-meta { font-size: 11px; font-weight: 700; color: #6b5b78; margin-top: 2px; }
.lt-series-beat { font-size: 12px; line-height: 1.45; color: #54445f; margin-top: 8px; min-height: 2.9em; }
.lt-series-cefr {
  margin-top: 8px; font-family: 'Baloo 2'; font-weight: 800; font-size: 11px;
  padding: 3px 10px; border-radius: 8px; background: #f1f5f9; border: 2px solid #cbd5e1; color:#334155;
}
.lt-series-cta { margin-top: 10px; font-family: 'Baloo 2'; font-weight: 800; font-size: 12px; color: var(--k-coral); display: inline-flex; align-items: center; gap: 5px; }

/* dải lớp học bên dưới */
.lt-grade-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; padding: 14px 16px; background: rgba(255,255,255,.65); border: 3px dashed #f59e0b; border-radius: 22px; }
.lt-grade-strip b { font-family: 'Baloo 2'; font-size: 13px; color: #92400e; }
.lt-grade-chip { font-family: 'Baloo 2'; font-weight: 800; font-size: 13px; text-decoration: none; color: #155e75; background: #ecfeff; border: 2.5px solid #67e8f9; border-radius: 14px; padding: 7px 12px; transition: transform .15s ease, background .15s ease; }
.lt-grade-chip:hover { transform: translateY(-2px); background: #cffafe; }

/* ==========================================================================
   THẾ GIỚI 2 — NHỊP TRUYỆN HỌC ĐƯỜNG (lớp 6–12)
   ========================================================================== */
.lt-story {
  --s-ink: #f4f1ff;
  --s-muted: #bdb6dd;
  --s-gold: #ffd166;
  --s-crimson: #e5484d;
  --s-sky: #8ecae6;
  position: relative;
  color: var(--s-ink);
  background: linear-gradient(180deg, #0d1030 0%, #16123c 32%, #23163f 62%, #331a37 100%);
  overflow: hidden;
}
.lt-story-inner { max-width: 1180px; margin: 0 auto; padding: 10px 18px 80px; position: relative; z-index: 2; }

/* cánh hoa phượng rơi */
@keyframes lt-petal-fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate3d(6vw, 112vh, 0) rotate(560deg); opacity: 0.15; }
}
.lt-petal { position: absolute; top: 0; width: 15px; height: 11px; background: linear-gradient(150deg, #ff6b6b, #c92a2a); border-radius: 70% 10% 70% 10%; opacity: 0; animation: lt-petal-fall linear infinite; pointer-events: none; z-index: 1; }

.lt-story-hero { position: relative; text-align: center; padding: 54px 6px 8px; }
.lt-badge-story {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, .45);
  color: var(--s-gold); letter-spacing: .24em; text-transform: uppercase;
  font-size: 10.5px; font-weight: 700; background: rgba(255, 209, 102, .08);
}
.lt-story-title {
  margin: 18px auto 0; max-width: 56rem;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(30px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -0.015em;
}
.lt-story-title .lt-fin { color: transparent; background: linear-gradient(100deg, #ffd166 0%, #ff8fa3 45%, #e5484d 100%); -webkit-background-clip: text; background-clip: text; }
.lt-story-lead { margin: 16px auto 0; max-width: 38rem; color: var(--s-muted); font-size: 16px; line-height: 1.7; }

/* sân khấu: SVG thành phố + cổng trường lúc hoàng hôn */
.lt-stage { position: relative; max-width: 980px; margin: 30px auto 0; }
.lt-stage-svg { object-fit: cover; max-height: 440px;  width: 100%; height: auto; display: block; border-radius: 26px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px -30px rgba(229, 72, 77, .35); }

/* ============================ TIMELINE CUỐN TRUYỆN ======================= */
.lt-book { position: relative; margin-top: 60px; }
.lt-book-spine {
  position: absolute; left: 50%; top: -12px; bottom: 60px; width: 3px;
  background: linear-gradient(180deg, transparent, rgba(255, 209, 102, .6) 12%, rgba(229, 72, 77, .7) 55%, transparent);
  transform: translateX(-50%);
}
@media (max-width: 800px) { .lt-book-spine { left: 22px; } }

.lt-chapter {
  --accent: #ffd166;
  position: relative; display: grid; grid-template-columns: 1fr 56px 1fr; gap: 0;
  align-items: center; margin-bottom: 18px;
}
.lt-chapter:nth-of-type(odd) .lt-chapter-card { grid-column: 1; grid-row: 1; text-align: right; align-items: flex-end; }
.lt-chapter:nth-of-type(even) .lt-chapter-card { grid-column: 3; grid-row: 1; }
@media (max-width: 800px) {
  .lt-chapter { grid-template-columns: 44px 1fr; }
  .lt-chapter:nth-of-type(odd) .lt-chapter-card, .lt-chapter:nth-of-type(even) .lt-chapter-card { grid-column: 2; text-align: left; align-items: flex-start; }
  .lt-chapter-node { grid-column: 1; }
}
.lt-chapter-node {
  grid-column: 2; grid-row: 1; z-index: 2;
  width: 52px; height: 52px; margin: 0 auto; border-radius: 999px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 35%, #2b2754, #141130);
  border: 2px solid var(--accent);
  font-family: 'Baloo 2'; font-weight: 800; font-size: 19px; color: var(--accent);
  box-shadow: 0 0 22px -4px var(--accent);
}
.lt-chapter-card {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(165deg, rgba(23, 21, 54, .92), rgba(15, 14, 38, .92));
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 4px solid var(--accent);
  border-radius: 22px; padding: 18px 20px;
  color: inherit; text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lt-chapter:nth-of-type(even) .lt-chapter-card { border-left: 1px solid rgba(255,255,255,.1); border-right: 4px solid var(--accent); }
@media (max-width: 800px) { .lt-chapter:nth-of-type(even) .lt-chapter-card { border: 1px solid rgba(255,255,255,.1); border-left: 4px solid var(--accent); } }
.lt-chapter-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -25px rgba(0,0,0,.8), 0 0 0 1px var(--accent); }
.lt-chapter-vol { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lt-chapter-name { font-family: 'Baloo 2'; font-weight: 800; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.25; margin: 0; }
.lt-chapter-beat { color: var(--s-muted); font-size: 13px; line-height: 1.62; margin: 0; }
.lt-chapter-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 2px; }
.lt-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-chip { font-size: 10.5px; font-weight: 600; color: #d8d4f0; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 4px 10px; background: rgba(255,255,255,.04); }
.lt-chapter-cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--accent); font-weight: 800; font-size: 12.5px; text-decoration: none;
  letter-spacing: .02em; border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.lt-chapter-cta:hover { border-color: var(--accent); }

/* ========================= ĐÍCH ĐẾN QUỐC TẾ ============================== */
.lt-finale {
  position: relative; margin-top: 46px; text-align: center;
  border-radius: 30px; padding: 44px 20px 38px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 209, 102, .22), transparent 55%),
              linear-gradient(180deg, #241b33, #170f1d);
  border: 1px solid rgba(255, 209, 102, .3);
  overflow: hidden;
}
.lt-finale h3 { font-family: 'Baloo 2'; font-weight: 800; font-size: clamp(24px, 3.6vw, 36px); color: var(--s-gold); margin: 0; }
.lt-finale p { color: var(--s-muted); max-width: 40rem; margin: 12px auto 0; line-height: 1.65; }
.lt-finale-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.lt-finale-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 132px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: var(--s-ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease;
}
.lt-finale-link:hover { transform: translateY(-3px); border-color: var(--s-gold); }
.lt-finale-link b { font-family: 'Baloo 2'; font-size: 19px; }
.lt-finale-link span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); }

body.journey-page { background: #fff7e6 !important; }

@media (prefers-reduced-motion: reduce) {
  .lt-petal { animation: none !important; }
  .lt-page, .lt-world { transition: none; }
}
