/* Landing Làng Mầm Nhỏ (/games/lang-mam-nho) — dùng token của style.css */

.gl-hero {
  background: linear-gradient(180deg, var(--sun-light) 0%, var(--bg-soft) 100%);
  padding: 32px 0 56px;
  overflow: hidden;
}
.gl-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.gl-eyebrow {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--primary-dark);
  font-size: 13.5px;
  font-weight: 800;
}
.gl-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--primary-dark);
}
.gl-lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--text-secondary); max-width: 520px; }
.gl-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.gl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.gl-btn:hover { transform: translateY(-2px); }
.gl-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 0 var(--primary-dark); }
.gl-btn-primary:hover { box-shadow: 0 8px 0 var(--primary-dark); }
.gl-btn-ghost { background: var(--bg-card); color: var(--primary-dark); border: 2px solid var(--primary-light); }
.gl-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding: 0; list-style: none; }
.gl-chips li { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.gl-chips li::before { content: '✓ '; color: var(--primary); font-weight: 900; }

/* Hình hero: bản đồ làng + nhân vật bay */
.gl-hero-art { position: relative; justify-self: center; width: min(360px, 100%); }
.gl-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(35, 40, 33, .18);
  transform: rotate(2deg);
}
.gl-float { position: absolute; filter: drop-shadow(0 6px 10px rgba(35, 40, 33, .18)); animation: gl-bob 3.2s ease-in-out infinite; }
.gl-float-bunny { width: 44%; left: -22%; bottom: 6%; }
.gl-float-cat { width: 30%; right: -14%; top: 30%; animation-delay: -1.2s; }
.gl-float-leaf { width: 15%; right: 4%; top: -4%; animation-delay: -.6s; }
.gl-float-star { width: 12%; left: -6%; top: 10%; animation-delay: -2s; }
.gl-bubble {
  position: absolute;
  left: 2%;
  bottom: 44%;
  padding: 8px 16px;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  border: 3px solid var(--primary);
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
  animation: gl-bob 3.2s ease-in-out infinite;
}
@keyframes gl-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .gl-float, .gl-bubble { animation: none; } }

/* Section chung */
.gl-section { padding: 64px 0 0; }
.gl-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.gl-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--secondary-dark);
}
.gl-section h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 900; line-height: 1.25; color: var(--text); }
.gl-head p { margin-top: 10px; color: var(--text-secondary); line-height: 1.65; }
.gl-section h3 { font-size: 18px; font-weight: 800; color: var(--text); }

/* Câu chuyện */
.gl-story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.gl-story-text p { margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.gl-cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gl-cast figure {
  margin: 0;
  padding: 16px 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}
.gl-cast img { width: 100%; height: 110px; object-fit: contain; }
.gl-cast figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.gl-cast figcaption b { display: block; font-size: 15px; color: var(--text); }

/* Cách chơi */
.gl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; list-style: none; counter-reset: none; }
.gl-step {
  position: relative;
  padding: 22px 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gl-step-num {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sun);
  font-weight: 900;
  color: var(--text);
}
.gl-step img { width: 100%; height: 140px; object-fit: contain; margin-bottom: 12px; }
.gl-step p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }

/* Chơi thử */
.gl-try {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: center;
  margin-top: 64px;
  padding: 36px;
  border-radius: 32px;
  background: var(--primary-light);
}
.gl-try-text p { margin-top: 10px; color: var(--text-secondary); line-height: 1.6; }
.gl-speaker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 22px 12px 14px;
  border: none;
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: 0 4px 0 var(--border-strong);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  cursor: pointer;
}
.gl-speaker img { width: 34px; height: 34px; }
.gl-speaker:active { translate: 0 3px; box-shadow: 0 1px 0 var(--border-strong); }
.gl-try-result { min-height: 1.6em; margin-top: 14px; font-weight: 800; color: var(--primary-dark); }
.gl-try-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gl-opt {
  padding: 8px;
  border: 4px solid transparent;
  border-radius: 24px;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.gl-opt:hover { transform: translateY(-3px); }
.gl-opt img { display: block; width: 100%; height: auto; }
.gl-opt.is-right { border-color: var(--primary); }
.gl-opt.is-wrong { border-color: var(--secondary); animation: gl-shake .3s; }
@keyframes gl-shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }

/* Cây lớn lên */
.gl-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.gl-stages::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 46%;
  border-top: 4px dashed var(--primary-light);
  z-index: -1;
}
.gl-stage { margin: 0; text-align: center; }
.gl-stage img { width: 100%; height: 150px; object-fit: contain; }
.gl-stage figcaption { font-size: 15px; font-weight: 800; color: var(--text); }
.gl-stage figcaption span { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.gl-care { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 26px; }
.gl-care span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}
.gl-care img { width: 32px; height: 32px; object-fit: contain; }

/* Chương 1 */
.gl-chapter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; padding: 0; list-style: none; }
.gl-chapter li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gl-chapter li.is-final { background: var(--sun-light); border-color: var(--sun); }
.gl-ch-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.gl-chapter li.is-final .gl-ch-num { background: transparent; font-size: 26px; }
.gl-chapter h3 { font-size: 15.5px; line-height: 1.3; }
.gl-ch-words { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--primary-dark); font-style: italic; }
.gl-ch-change { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }

.gl-challenge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.gl-challenge {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--secondary-light);
}
.gl-challenge img { width: 84px; height: 84px; flex-shrink: 0; object-fit: contain; }
.gl-challenge p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }

/* Dạng bài */
.gl-ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gl-ex {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}
.gl-ex img { display: block; width: 76px; height: 76px; object-fit: contain; margin: 0 auto 12px; }
.gl-ex p { margin-top: 6px; font-size: 14px; color: var(--text-muted); }

/* Ba mẹ */
.gl-parent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gl-parent-card { padding: 24px 20px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.gl-parent-icon { font-size: 30px; line-height: 1; }
.gl-parent-card h3 { margin-top: 12px; font-size: 16.5px; }
.gl-parent-card p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* FAQ */
.gl-faq { max-width: 760px; margin: 0 auto; }
.gl-faq details {
  margin-bottom: 10px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gl-faq summary { font-weight: 800; cursor: pointer; color: var(--text); }
.gl-faq details p { margin-top: 10px; line-height: 1.65; color: var(--text-secondary); }

/* CTA cuối */
.gl-final {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 64px 0 24px;
  padding: 32px 40px;
  border-radius: 32px;
  background: var(--primary) var(--doodle-light);
  color: #fff;
}
.gl-final img { width: 160px; height: 160px; flex-shrink: 0; }
.gl-final h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: #fff; }
.gl-final p { margin: 8px 0 18px; color: rgba(255, 255, 255, .9); }
.gl-final .gl-btn-primary { background: var(--sun); color: var(--text); box-shadow: 0 6px 0 #D9A21F; }

/* Tablet */
@media (max-width: 1000px) {
  .gl-chapter { grid-template-columns: repeat(4, 1fr); }
  .gl-steps, .gl-ex-grid, .gl-parent-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}
/* Mobile */
@media (max-width: 768px) {
  .gl-hero { padding: 20px 0 40px; }
  .gl-hero-inner, .gl-story, .gl-try { grid-template-columns: 1fr; gap: 28px; }
  .gl-hero-art { width: min(260px, 70%); margin-top: 8px; }
  .gl-hero-btns { flex-direction: column; }
  .gl-btn { width: 100%; white-space: nowrap; }
  .gl-section { padding-top: 48px; }
  .gl-cast { grid-template-columns: repeat(2, 1fr); }
  .gl-try { margin-top: 48px; padding: 24px 18px; }
  .gl-stages { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .gl-stage img { height: 80px; }
  .gl-stage figcaption { font-size: 12.5px; }
  .gl-chapter { grid-template-columns: 1fr; }
  .gl-chapter li { flex-direction: row; align-items: flex-start; }
  .gl-ch-num { flex-shrink: 0; }
  .gl-challenge-grid { grid-template-columns: 1fr; }
  .gl-final { flex-direction: column; text-align: center; padding: 28px 22px; }
  .gl-final img { width: 120px; height: 120px; }
}
@media (max-width: 480px) {
  .gl-steps, .gl-parent-grid { grid-template-columns: 1fr; }
  .gl-step img { height: 100px; }
  .gl-ex-grid { gap: 12px; }
  .gl-ex { padding: 16px 12px; }
  .gl-ex img { width: 60px; height: 60px; }
  .gl-ex h3 { font-size: 15.5px; }
  .gl-ex p { font-size: 13px; }
  .gl-challenge { padding: 18px; gap: 14px; }
  .gl-challenge img { width: 60px; height: 60px; }
}

.gl-levels { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; padding:0; list-style:none; }
.gl-levels li { background:#fff; border:1px solid #dce9df; border-radius:20px; padding:20px; }
.gl-levels h3 { margin:12px 0 8px; }
.gl-levels p { line-height:1.65; }
.gl-level-example { color:#287454; margin-top:12px; font-weight:700; }
.gl-level-rules { margin-top:24px; padding:24px; background:#eef7ef; border-radius:20px; line-height:1.8; }
.gl-level-rules ul { padding-left:24px; margin:12px 0; }
.gl-level-rules p + p { margin-top:12px; }
@media (max-width:1000px) { .gl-levels { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) { .gl-levels { grid-template-columns:1fr; } .gl-level-rules { padding:18px; } }
