/* ================= Jalur Belajar, pelajaran, rencana 6 bulan ================= */
.jl { display: grid; grid-template-columns: 240px minmax(0, 520px) 300px; gap: 24px; justify-content: center; align-items: start; }
.jl-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.jl-stat, .jl-box { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 0 0 2px rgba(29,42,91,.08), 0 6px 16px -10px rgba(29,42,91,.35); }
.jl-stat { display: flex; align-items: center; gap: 12px; }
.jl-stat b { display: block; font-size: 17px; }
.jl-stat small { color: var(--ink-2); font-size: 12.5px; }
.jl-fire { font-size: 30px; width: 56px; text-align: center; }
.jl-xp { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff1c2; color: #b07700; font-weight: 900; }
.jl-box-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.jl-box-h a { font-size: 13px; font-weight: 800; color: var(--potentia); text-decoration: none; }
.jl-plan-ring { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.jl-plan-ring small { display: block; color: var(--ink-2); font-size: 12px; }
.jl-targets { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.jl-targets button { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; border: 0; background: none; padding: 8px 6px; border-radius: 10px; font-size: 14px; min-height: 44px; }
.jl-targets button:hover { background: #f3f6fc; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: #c9d0e0; }
.dot.ok { background: var(--green); }
.dot.mid { background: #f5b81c; }
.dot.low { background: #ff7a59; }
.jl-how summary { cursor: pointer; font-weight: 800; min-height: 32px; }
.jl-how ol { padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }
.jl-cta { display: block; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--potentia); text-decoration: none; background: #eef2fb; padding: 8px 10px; border-radius: 10px; }
.jl-path { min-width: 0; }
.jl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--mc); color: #fff; border-radius: 20px; padding: 14px 16px; margin-bottom: 8px; }
.jl-head small { display: block; opacity: .85; font-size: 12px; }
.jl-head b { font-family: var(--display); font-size: 22px; }
.jl-head-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.jl-head .btn.small { background: rgba(255,255,255,.95); }
.btn.small { font-size: 14px; padding: 8px 14px; border-radius: 12px; min-height: 40px; box-shadow: 0 0 0 2px rgba(29,42,91,.15); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 800; }
.btn.small:active { transform: translateY(1px); box-shadow: 0 0 0 2px rgba(29,42,91,.15); }
.btn.small.btn-go { box-shadow: 0 3px 0 #1f8f55; }
.jl-note { background: #fff6dc; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.jl-unit { margin: 18px 0 8px; }
.jl-unit-h { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: inset 6px 0 0 var(--mc), 0 0 0 2px rgba(29,42,91,.06); }
.jl-unit-h small { display: block; font-size: 12px; font-weight: 800; color: var(--mc); text-transform: uppercase; letter-spacing: .04em; }
.jl-unit-h b { display: block; font-size: 17px; }
.jl-unit-h span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.jl-nodes { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 8px; }
.jl-node { position: relative; transform: translateX(var(--off)); display: flex; flex-direction: column; align-items: center; }
.jl-node > button { width: 72px; height: 66px; border-radius: 50%; border: 0; background: var(--mc); display: grid; place-items: center; box-shadow: 0 6px 0 rgba(29,42,91,.28); padding: 0; transition: transform .1s; }
.jl-node > button:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(29,42,91,.28); }
.jl-node > button img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.jl-node.game > button img { width: 56px; height: 46px; border-radius: 10px; object-fit: cover; }
.jl-node.done > button { background: #ffd23f; }
.jl-node.lock > button { background: #dfe3ec; box-shadow: 0 6px 0 #c3c9d6; }
.jl-node.lock > button img { opacity: .5; filter: grayscale(1); }
.jl-node.opt > button { width: 56px; height: 52px; background: #fff; box-shadow: 0 0 0 3px var(--mc), 0 5px 0 rgba(29,42,91,.2); }
.jl-node.opt > button img { width: 30px; }
.jl-node.cur > button { width: 86px; height: 78px; animation: jl-bob 1.6s ease-in-out infinite; box-shadow: 0 0 0 6px rgba(255,255,255,.9), 0 0 0 10px var(--mc), 0 8px 0 10px rgba(29,42,91,.2); }
.jl-node.peti > button { border-radius: 18px; }
@keyframes jl-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@media (prefers-reduced-motion: reduce) { .jl-node.cur > button { animation: none; } }
.jl-start { position: absolute; top: -34px; background: #fff; color: var(--mc); font-weight: 900; font-size: 14px; padding: 4px 12px; border-radius: 10px; box-shadow: 0 0 0 2px var(--mc); white-space: nowrap; }
.jl-start::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--mc); border-bottom: 0; }
.jl-lv { font-size: 11px; color: #e3a400; letter-spacing: 1px; margin-top: 4px; }
.jl-pop { position: absolute; top: calc(100% + 12px); z-index: 20; width: min(300px, 86vw); background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 0 0 2px var(--mc), 0 14px 30px -10px rgba(29,42,91,.45); text-align: left; }
.jl-pop b { display: block; font-size: 16px; }
.jl-pop p { margin: 6px 0 10px; font-size: 14px; color: var(--ink-2); }
.jl-pop .btn { width: 100%; justify-content: center; font-size: 17px; padding: 10px; }
.chips-why { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.why-chip { border: 0; background: #eef2fb; color: var(--potentia); font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; min-height: 32px; }
.why-chip.on { background: var(--potentia); color: #fff; }
.why-say { font-size: 13px !important; background: #f6f8fd; padding: 8px 10px; border-radius: 10px; }
.jl-prev { margin: 6px 0; }
.jl-prev summary { cursor: pointer; font-weight: 800; color: var(--ink-2); background: #fff; padding: 10px 14px; border-radius: 14px; min-height: 44px; }
.jl-fab { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom)); border: 0; background: var(--ink); color: #fff; font-weight: 800; padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.25); min-height: 44px; }
@media (min-width: 900px) { .jl-fab { bottom: 24px; } }
@media (max-width: 1180px) {
  .jl { grid-template-columns: minmax(0, 560px) 300px; }
  .jl-left { grid-column: 1 / -1; position: static; flex-direction: row; flex-wrap: wrap; }
  .jl-left .jl-stat { flex: 1 1 200px; }
}
@media (max-width: 860px) {
  .jl { grid-template-columns: minmax(0, 1fr); }
  .jl-side { position: static; }
  .jl-right { order: 3; }
  .jl-left .jl-stat { flex: 1 1 140px; padding: 10px 12px; }
  .jl-fire, .jl-xp { width: 40px; font-size: 24px; }
  .jl-xp { height: 40px; font-size: 13px; }
}

/* pilih jalur */
.pilih-jalur { max-width: 760px; margin: 0 auto; text-align: center; }
.pj-art { height: 130px; }
.pilih-jalur h1 { font-family: var(--display); margin: 6px 0; }
.pj-saran { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; background: #fff; border-radius: 20px; padding: 16px; margin: 16px 0; box-shadow: 0 0 0 3px var(--green), 0 8px 18px -10px rgba(29,42,91,.4); }
.pj-saran b { display: block; font-size: 18px; }
.pj-saran small { color: var(--ink-2); }
.pj-saran em { margin-left: auto; font-style: normal; font-weight: 900; color: #1f8f55; white-space: nowrap; }
.pj-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pj-grid button { border: 0; background: #fff; border-radius: 16px; padding: 14px; text-align: left; min-height: 72px; box-shadow: inset 0 -5px 0 var(--c), 0 0 0 2px rgba(29,42,91,.06); }
.pj-grid b { display: block; }
.pj-grid small { color: var(--ink-2); }

/* pelajaran */
.view.lesson { display: flex; flex-direction: column; min-height: 100dvh; background: #fff; }
.ls-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; max-width: 900px; width: 100%; margin: 0 auto; }
.ls-bar { flex: 1; height: 16px; background: #e8ecf5; border-radius: 999px; overflow: hidden; }
.ls-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.ls-xp { font-weight: 800; font-size: 14px; color: var(--ink-2); max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 12px 18px 140px; }
.ls-q { position: relative; margin: 10px 0 20px; }
.ls-q small { font-weight: 900; color: var(--potentia); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.ls-q h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.25; margin: 8px 48px 0 0; }
.ls-replay { position: absolute; right: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #eef2fb; font-size: 20px; }
.ls-speak { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--potentia); color: #fff; font-weight: 900; font-size: 20px; padding: 16px 24px; border-radius: 20px; margin: 10px 10px 0 0; box-shadow: 0 5px 0 #2a50a0; }
.ls-blank { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--potentia); color: var(--potentia); text-align: center; }
.ls-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ls-opts.tiga { grid-template-columns: 1fr; }
.ls-opts button, .ls-bank button, .ls-match button { display: flex; align-items: center; gap: 12px; min-height: 60px; border: 2px solid #dfe4ef; border-bottom-width: 5px; background: #fff; border-radius: 16px; padding: 10px 14px; font-size: 18px; font-weight: 800; text-align: left; transition: transform .08s; }
.ls-opts button kbd { font: 800 13px var(--body); width: 28px; height: 28px; border-radius: 8px; border: 2px solid #dfe4ef; display: grid; place-items: center; color: var(--ink-2); flex: 0 0 auto; }
.ls-opts button.sel, .ls-match button.sel { border-color: var(--potentia); background: #eef3ff; }
.ls-opts button.ok, .ls-match button.ok { border-color: var(--green); background: #e5f8ee; color: #17663e; }
.ls-opts button.no { border-color: #ff7a59; background: #fff0eb; }
.ls-opts button:active, .ls-bank button:active { transform: translateY(2px); }
.ls-seq .ls-slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; padding: 10px; border-radius: 16px; background: #f4f6fb; margin-bottom: 16px; }
.ls-slots .slot { min-width: 64px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 2px dashed #c9d0e0; display: grid; place-items: center; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.ls-bank { display: flex; flex-wrap: wrap; gap: 10px; }
.ls-bank button { min-height: 52px; }
.ls-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ls-match .col { display: grid; gap: 10px; }
.ls-match button { font-size: 16px; }
.ls-foot { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid #eef0f5; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 16px; }
.ls-foot.ok { background: #dff6e9; border-color: transparent; }
.ls-foot.no { background: #ffe9e1; border-color: transparent; }
.ls-foot.info { background: #eef3ff; }
.ls-fb { flex: 1; max-width: 520px; }
.ls-fb b { display: block; font-size: 20px; font-family: var(--display); }
.ls-foot.ok .ls-fb b { color: #17663e; }
.ls-foot.no .ls-fb b { color: #b2401f; }
.ls-fb span { font-size: 15px; }
.ls-foot .btn { font-size: 18px; padding: 12px 28px; min-width: 160px; border: 0; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.ls-foot .ls-check { width: min(720px, 100%); }
.btn-warn { background: #ff7a59; color: #fff; }
.ls-end { text-align: center; padding-top: 10px; }
.ls-end img { height: 150px; }
.ls-end h2 { font-family: var(--display); font-size: 28px; margin: 8px 0 4px; }
.ls-praise { font-size: 17px; color: var(--ink-2); margin: 0 0 6px; }
.ls-lv { font-weight: 900; color: #c98a00; }
.ls-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px auto; max-width: 520px; }
.ls-stats div { background: #f6f8fd; border-radius: 16px; padding: 12px 6px; }
.ls-stats b { display: block; font-size: 22px; }
.ls-stats small { color: var(--ink-2); font-weight: 700; }
.ls-goal { font-weight: 900; color: #1f8f55; }
.lesson.tenang .ls-q small { display: none; }
@media (max-width: 560px) {
  .ls-opts { grid-template-columns: 1fr; }
  .ls-foot { flex-wrap: wrap; }
  .ls-foot .btn { width: 100%; }
  .ls-stats { grid-template-columns: repeat(2, 1fr); }
}
.jl-rest img, .jl-chest .medal { height: 120px; }
.jl-chest .stk { height: 140px; display: block; margin: 8px auto; }
.goal-seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* rencana 6 bulan */
.rn-miss { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rn-miss a { background: #eef2fb; color: var(--potentia); font-weight: 800; font-size: 13.5px; padding: 8px 12px; border-radius: 12px; text-decoration: none; }
.rn-map { position: relative; display: grid; gap: 14px; padding-left: 36px; }
.rn-map::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; border-left: 4px dotted #b9c3da; }
.rn-stop { position: relative; display: block; }
.rn-pin { position: absolute; left: -36px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 0 0 3px #b9c3da; }
.rn-stop.now .rn-pin { background: var(--orange); color: #fff; box-shadow: 0 0 0 4px #ffd9bf; }
.rn-stop.past .rn-pin { background: var(--green); color: #fff; box-shadow: none; }
.rn-body { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 0 0 2px rgba(29,42,91,.07), 0 6px 16px -12px rgba(29,42,91,.4); }
.rn-stop.next .rn-body { opacity: .82; }
.rn-stop.now .rn-body { box-shadow: 0 0 0 3px var(--orange), 0 10px 24px -14px rgba(248,144,72,.8); }
.rn-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rn-h b { font-size: 18px; font-family: var(--display); }
.rn-h .ring { margin-left: auto; }
.rn-why { margin: 6px 0 8px; color: var(--ink-2); font-size: 14px; }
.rn-targets { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.rn-targets li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid #f0f2f7; }
.rn-targets li > div { flex: 1; min-width: 0; }
.rn-targets small { display: block; color: var(--ink-2); font-size: 12.5px; }
.st { font-size: 12px; font-weight: 900; padding: 4px 8px; border-radius: 999px; background: #eef0f5; color: var(--ink-2); white-space: nowrap; }
.st.ok { background: #dff6e9; color: #17663e; }
.st.mid { background: #fff3cf; color: #946200; }
.st.low { background: #ffe9e1; color: #b2401f; }
.rn-cek { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.rn-how summary { cursor: pointer; font-weight: 800; }
.rn-printable { display: none; }
@media print {
  body.print-rn > *:not(.rn-printable) { display: none !important; }
  body.print-rn .rn-printable { display: block; padding: 10mm; color: #1d2a5b; }
  .rp-head { display: flex; gap: 16px; align-items: center; }
  .rp-head img { height: 34px; }
  .rn-printable table { width: 100%; border-collapse: collapse; margin: 12px 0; }
  .rn-printable td, .rn-printable th { border: 1px solid #c9d0e0; padding: 8px; text-align: left; vertical-align: top; font-size: 12px; }
}

/* kartu beranda & baris target */
.flow-ring { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.flow-ring small { font-size: 12.5px; color: var(--ink-2); }
.tgt-rows { display: grid; gap: 2px; }
.tgt-row { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px; text-decoration: none; color: inherit; border-top: 1px solid #f0f2f7; min-height: 56px; }
.tgt-row:first-child { border-top: 0; }
.tgt-row:hover { background: #f6f8fd; }
.tgt-row > div { flex: 1; min-width: 0; }
.tgt-row small { display: block; color: var(--ink-2); font-size: 12.5px; }
.tgt-row em { font-style: normal; font-weight: 900; color: var(--potentia); white-space: nowrap; font-size: 14px; }
@media (max-width: 560px) { .tgt-row em { display: none; } }

.jl-node.free > button { opacity: .9; }

/* avatar maskot dalam bingkai bulat: potongan bawah gambar tersembunyi di tepi lingkaran */
.av { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; margin: 0 auto 6px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #e6edfb 70%); box-shadow: 0 0 0 4px #fff, 0 0 0 7px #dfe7f7; }
.av img { height: 136px !important; width: auto; margin-bottom: -2px; }
.ls-fb span b { display: inline; font-size: inherit; font-family: inherit; }

/* popover selalu di atas simpul lain (tiap simpul punya transform = stacking context sendiri) */
.jl-unit { position: relative; z-index: 1; }
.jl-unit.open { z-index: 40; }
.jl-node { z-index: 1; }
.jl-node.open { z-index: 50; }
.jl-pop { left: 50%; transform: translateX(-50%); }

/* rencana: minggu demi minggu */
.rn-weeks { margin-top: 14px; display: grid; gap: 10px; }
.rn-weeks h3 { font-size: 15px; margin: 4px 0 0; }
.rn-week { border-radius: 16px; background: #f7f9fd; padding: 12px 14px; display: grid; gap: 8px; }
.rn-week.now { background: #fff6e8; box-shadow: inset 0 0 0 2px var(--orange); }
.rw-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rw-h b { font-family: var(--display); font-size: 16px; } .rw-h span { color: var(--ink-2); font-size: 13px; }
.rw-h em { font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: var(--orange); padding: 2px 8px; border-radius: 999px; }
.rw-t { display: grid; gap: 6px; }
.rw-topik { font-weight: 800; color: var(--ink); text-decoration: none; } .rw-topik:hover { text-decoration: underline; }
.rw-games { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-game { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px 4px 4px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px #dfe4ef; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 13px; }
.rw-game img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.rw-game:hover { box-shadow: 0 0 0 2px var(--potentia); }
.rw-rumah { margin: 0; font-size: 13px; color: var(--ink-2); }
.rn-week .btn.small { justify-self: start; }
/* halaman topik */
.topik-detail h1 { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); margin: 2px 0 0; }
.td-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.td-game { display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: #f6f8fd; text-decoration: none; color: var(--ink); }
.td-game img { width: 88px; height: 70px; object-fit: contain; } .td-game span { font-weight: 900; color: #1f8f55; font-size: 14px; }
.td-rumah { background: #fff6dc; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; } .td-rumah p { margin: 4px 0 0; }
@media (max-width: 480px) { .rn-targets li { flex-wrap: wrap; } .rn-targets li > div { flex: 1 1 100%; } }

/* lesson: themed background + guide character with a speech balloon (question, listen button) */
.view.lesson { background: url(../assets/ui/pola.webp) 0 0 / 420px repeat, linear-gradient(180deg, #eef4ff 0%, #fff8ec 100%); }
.lesson .ls-top { background: rgba(255,255,255,.86); border-radius: 0 0 18px 18px; backdrop-filter: blur(4px); }
.lesson .ls-foot { background: rgba(255,255,255,.94); }
.ls-guide { display: flex; align-items: flex-end; gap: 10px; margin: 10px 0 22px; }
.ls-tokoh { width: clamp(76px, 15vw, 128px); flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(30,42,90,.18)); animation: ls-breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes ls-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ls-tokoh { animation: none; } }
.ls-q.ls-bubble { position: relative; flex: 1; min-width: 0; margin: 0 0 18px; background: #fff; border: 2px solid #dbe4f5; border-bottom-width: 4px; border-radius: 22px; padding: 14px 18px 16px; box-shadow: 0 8px 20px rgba(30,42,90,.08); }
.ls-q.ls-bubble::before, .ls-q.ls-bubble::after { content: ''; position: absolute; left: -14px; bottom: 18px; border: 12px solid transparent; border-right-color: #dbe4f5; border-left: 0; }
.ls-q.ls-bubble::after { left: -10px; bottom: 20px; border-width: 10px; border-right-color: #fff; }
.ls-q.ls-bubble .ls-replay { top: 12px; right: 12px; }
.ls-q.ls-bubble .ls-speak { margin-top: 8px; }
.lesson .ls-opts button, .lesson .ls-bank button, .lesson .ls-match button { box-shadow: 0 4px 12px rgba(30,42,90,.06); }
@media (max-width: 520px) { .ls-guide { gap: 6px; } .ls-q.ls-bubble { padding: 12px 14px 14px; } }

/* game node: child picks 1 of 2 games */
.jl-pilih { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.jl-pilih small { grid-column: 1 / -1; font-weight: 800; color: var(--ink-2); }
.jl-pg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 2px solid #dfe4ef; border-bottom-width: 4px; border-radius: 14px; background: #fff; font-weight: 800; font-size: 13px; cursor: pointer; }
.jl-pg img { width: 56px; height: 56px; object-fit: contain; }
.jl-pg:hover, .jl-pg:focus-visible { border-color: var(--green); outline: none; }

/* ---------- jenis latihan ala Duolingo ---------- */
/* isi: chip mengisi titik kosong di kalimat */
.ls-opts.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ls-opts.chips button { min-height: 52px; padding: 8px 20px; border-radius: 16px; font-weight: 800; justify-content: center; }
.ls-blank.isi { border-bottom-style: solid; background: #eef3ff; border-radius: 8px 8px 0 0; padding: 0 8px; animation: ls-pop .18s ease-out; }
/* bs: benar atau salah */
.ls-tfwrap { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
.ls-claim { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid #dfe4ef; border-radius: 20px; background: #fff; }
.ls-claim img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.ls-claim small { display: block; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.ls-claim b { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); color: var(--ink); }
.ls-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ls-tf button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; border: 2px solid #dfe4ef; border-bottom-width: 5px; border-radius: 18px; background: #fff; font: 800 20px var(--body); color: var(--ink); cursor: pointer; }
.ls-tf button span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; color: #fff; }
.ls-tf .tf-yes span { background: var(--green); } .ls-tf .tf-no span { background: #ff7a59; }
.ls-tf button.sel { border-color: var(--potentia); background: #eef3ff; }
.ls-tf button.ok { border-color: var(--green); background: #e5f8ee; } .ls-tf button.no { border-color: #ff7a59; background: #fff0eb; }
/* susun: ubin kata/angka */
.ls-build { display: grid; gap: 18px; max-width: 640px; margin: 0 auto; }
.ls-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 70px; padding: 10px 4px; border-bottom: 2px solid #dfe4ef; background: repeating-linear-gradient(transparent 0 66px, #dfe4ef 66px 68px); }
.ls-line .ph { color: #9aa3bb; font-weight: 700; padding: 0 6px; }
.ls-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ls-build .ls-tile { width: auto; height: auto; white-space: nowrap; min-height: 52px; min-width: 52px; padding: 8px 16px; border: 2px solid #dfe4ef; border-bottom-width: 5px; border-radius: 14px; background: #fff; font: 800 19px var(--body); color: var(--ink); cursor: pointer; animation: ls-pop .15s ease-out; }
.ls-build.digits .tile { font-size: 26px; min-width: 60px; }
.ls-build .ls-tile.used { background: #eef0f5; color: transparent; border-color: #eef0f5; box-shadow: none; cursor: default; animation: none; }
.ls-build.ok .ls-line { border-color: var(--green); } .ls-build.ok .ls-line .ls-tile { border-color: var(--green); background: #e5f8ee; }
.ls-build.no .ls-line .ls-tile { border-color: #ff7a59; background: #fff0eb; }
/* ketik: papan angka */
.ls-type { display: grid; justify-items: center; gap: 14px; }
.ls-display { display: flex; align-items: center; justify-content: center; min-width: 200px; min-height: 76px; padding: 6px 24px; border: 3px solid var(--potentia); border-radius: 20px; background: #fff; font: 700 44px var(--display); color: var(--ink); letter-spacing: .06em; }
.ls-display .caret { width: 3px; height: 40px; margin-left: 4px; background: var(--potentia); animation: ls-blink 1s steps(2) infinite; }
.ls-type.ok .ls-display { border-color: var(--green); background: #e5f8ee; } .ls-type.no .ls-display { border-color: #ff7a59; background: #fff0eb; }
.ls-type.ok .caret, .ls-type.no .caret { display: none; }
.ls-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.ls-pad button { height: 64px; border: 2px solid #dfe4ef; border-bottom-width: 5px; border-radius: 16px; background: #fff; font: 800 26px var(--body); color: var(--ink); cursor: pointer; }
.ls-pad button[data-k="⌫"], .ls-pad button[data-k="C"] { background: #f4f6fb; font-size: 22px; }
.ls-pad button:active, .ls-tf button:active, .ls-build .ls-tile:active { transform: translateY(2px); border-bottom-width: 3px; }
@keyframes ls-pop { from { transform: scale(.85); opacity: .4; } }
@keyframes ls-blink { 50% { opacity: 0; } }
@media (max-width: 560px) { .ls-pad { grid-template-columns: repeat(3, 68px); } .ls-pad button { height: 58px; } .ls-tf button { min-height: 64px; font-size: 18px; } }

/* soal pelajaran di tengah layar (antara bilah atas dan tombol Periksa), tidak menempel di atas; soal panjang tetap
   bisa digulir karena .ls-main ikut memanjang */
.ls-main { display: flex; flex-direction: column; justify-content: center; }
.ls-main > * { flex: none; width: 100%; box-sizing: border-box; } /* lebar sama seperti tata letak blok sebelumnya */
/* soal pelajaran lebih besar */
.ls-q h2 { font-size: clamp(25px, 4.6vw, 34px); line-height: 1.22; }
@media (max-height: 520px) { .ls-q h2 { font-size: 24px; } } /* HP mendatar: jawaban tetap terlihat di atas tombol Periksa */

/* ---------- mekanik latihan tambahan: satu pelajaran = 10 soal dengan cara menjawab berbeda ---------- */
.ls-isiline { margin: 10px 0 0; font: 700 20px var(--body); color: var(--ink-2); }
/* coret yang salah */
.ls-coret button span { flex: 1; }
.ls-coret button i { font-style: normal; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; background: #ff7a59; opacity: 0; transform: scale(.4); transition: transform .15s, opacity .15s; }
.ls-coret button.crossed { background: #f6f7fb; color: #8a93ad; border-color: #e6e9f2; }
.ls-coret button.crossed span { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: #ff7a59; }
.ls-coret button.crossed i { opacity: 1; transform: none; }
/* tandai benar/salah tiap jawaban */
.ls-sort { display: grid; gap: 10px; }
.ls-sort .row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px 8px 16px; background: #fff; border: 2px solid #dfe4ef; border-bottom-width: 5px; border-radius: 16px; font-size: 18px; font-weight: 800; }
.ls-sort .row > span { flex: 1; }
.ls-sort .yn { display: flex; gap: 8px; flex: 0 0 auto; }
.ls-sort .yn button { width: 54px; height: 48px; border-radius: 14px; border: 2px solid #dfe4ef; border-bottom-width: 4px; background: #fff; font: 800 22px var(--body); color: var(--ink); cursor: pointer; }
.ls-sort .yn button[data-m=y].sel { background: var(--green); border-color: #2a9d63; color: #fff; }
.ls-sort .yn button[data-m=n].sel { background: #ff7a59; border-color: #d9583a; color: #fff; }
.ls-sort .row.ok { border-color: var(--green); background: #e5f8ee; }
.ls-sort .row.no { border-color: #ff7a59; background: #fff0eb; }
/* tangkap jawaban yang bergerak */
.ls-catch { position: relative; height: clamp(250px, 42vh, 360px); border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #bdeeff, #5cc4f2 60%, #3aa7e0); box-shadow: inset 0 0 0 3px rgba(29,42,91,.14); }
.ls-catch .bub { position: absolute; left: 0; max-width: 74%; padding: 10px 20px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; font: 800 18px/1.2 var(--body); color: var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; will-change: transform; z-index: 1; }
.ls-catch .bub.sel { background: #fff4c4; box-shadow: 0 0 0 4px var(--potentia), 0 4px 0 var(--ink); z-index: 2; }
.ls-catch .bub.ok { background: #e5f8ee; border-color: #17663e; }
.ls-catch .bub.no { background: #fff0eb; border-color: #b2401f; }
/* buka kartu */
.ls-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; perspective: 900px; }
.ls-cards.n3 { grid-template-columns: repeat(3, 1fr); }
.ls-cards .kartu { position: relative; min-height: 124px; border: 0; background: none; padding: 0; cursor: pointer; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.3,1.4,.5,1); font: 800 18px/1.2 var(--body); color: var(--ink); }
.ls-cards .kartu .kb, .ls-cards .kartu .kf { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid #dfe4ef; border-bottom-width: 5px; text-align: center; }
.ls-cards .kartu .kb { background: linear-gradient(135deg, #6b9bf2, #3868c8); border-color: #2c55a8; color: #fff; font: 800 44px var(--display); }
.ls-cards .kartu .kf { background: #fff; transform: rotateY(180deg); }
.ls-cards .kartu.open { transform: rotateY(180deg); }
.ls-cards .kartu.sel .kf { border-color: var(--potentia); background: #eef3ff; }
.ls-cards .kartu.ok .kf { border-color: var(--green); background: #e5f8ee; color: #17663e; }
.ls-cards .kartu.no .kf { border-color: #ff7a59; background: #fff0eb; }
/* putar roda */
.ls-wheel { display: grid; justify-items: center; gap: 10px; }
.ls-wheel > button { width: 128px; height: 50px; border-radius: 16px; border: 2px solid #dfe4ef; border-bottom-width: 5px; background: #fff; font-size: 20px; color: var(--ink); cursor: pointer; }
.ls-wheel > button:active { transform: translateY(2px); }
.ls-wheel .win { width: min(540px, 100%); display: grid; justify-items: center; gap: 6px; padding: 12px 18px; border-radius: 22px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); touch-action: none; user-select: none; cursor: grab; text-align: center; }
.ls-wheel .pv, .ls-wheel .nx { font: 700 15px var(--body); color: #a3abc3; }
.ls-wheel .cur { font: 800 clamp(20px, 3.4vw, 26px)/1.25 var(--display); color: var(--ink); }
.ls-wheel .win.roll-down { animation: ls-roll-down .22s ease-out; }
.ls-wheel .win.roll-up { animation: ls-roll-up .22s ease-out; }
@keyframes ls-roll-down { from { transform: translateY(-16px); opacity: .35; } }
@keyframes ls-roll-up { from { transform: translateY(16px); opacity: .35; } }
.ls-wheel.ok .win { border-color: #17663e; background: #e5f8ee; }
.ls-wheel.no .win { border-color: #b2401f; background: #fff0eb; }
/* duel dua jawaban */
.ls-duel { display: grid; gap: 12px; justify-items: center; }
.ls-duel .ronde { font: 800 14px var(--body); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.ls-duel .arena { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; }
.ls-duel .arena[hidden], .ls-duel .hasil[hidden], .ls-duel .ronde[hidden] { display: none; }
.ls-duel .arena button { min-height: 124px; padding: 14px; border-radius: 20px; border: 2px solid #dfe4ef; border-bottom-width: 6px; background: #fff; font: 800 19px/1.25 var(--body); color: var(--ink); cursor: pointer; transition: transform .22s, opacity .22s; }
.ls-duel .arena button.masuk { animation: ls-pop .22s ease-out; }
.ls-duel .arena button.kalah { transform: scale(.82) rotate(-5deg); opacity: 0; }
.ls-duel .vs { align-self: center; font: 800 22px var(--display); color: #ff7a59; }
.ls-duel .hasil { display: grid; justify-items: center; gap: 6px; min-width: min(420px, 100%); padding: 16px 24px; border-radius: 20px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); text-align: center; }
.ls-duel .hasil small { font-weight: 800; color: var(--ink-2); }
.ls-duel .hasil b { font: 800 24px/1.25 var(--display); }
.ls-duel .hasil.ok { background: #e5f8ee; border-color: #17663e; }
.ls-duel .hasil.no { background: #fff0eb; border-color: #b2401f; }
/* seret ke kotak */
.ls-drag { display: grid; gap: 16px; }
.ls-drop { min-height: 88px; display: grid; place-items: center; padding: 10px; border: 3px dashed #9fb3e6; border-radius: 20px; background: #f5f8ff; transition: background .15s, border-color .15s, transform .15s; }
.ls-drop .ph { color: #8a93ad; font-weight: 700; }
.ls-drop.over { background: #e3ecff; border-color: var(--potentia); transform: scale(1.02); }
.ls-drop.full { border-style: solid; border-color: var(--potentia); }
.ls-drop.ok { border-color: var(--green); background: #e5f8ee; }
.ls-drop.no { border-color: #ff7a59; background: #fff0eb; }
.ls-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ls-drag .chip, .chip.ghost { min-height: 54px; padding: 8px 18px; border-radius: 16px; border: 2px solid #dfe4ef; border-bottom-width: 5px; background: #fff; font: 800 18px var(--body); color: var(--ink); }
.ls-drag .chip { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; animation: ls-pop .15s ease-out; }
.ls-drag .chip.used { opacity: .3; }
.chip.ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -50%) rotate(-3deg); border-color: var(--potentia); box-shadow: 0 12px 26px rgba(29,42,91,.25); }
@media (max-width: 560px) {
  .ls-cards.n3 { grid-template-columns: 1fr 1fr; }
  .ls-duel .arena { grid-template-columns: 1fr; }
  .ls-duel .arena button { min-height: 84px; }
  .ls-duel .vs { justify-self: center; }
  .ls-sort .row { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ls-cards .kartu { transition: none; } .ls-wheel .win, .ls-duel .arena button { animation: none !important; } }
