/* Komponen bersama. Satu definisi dipakai semua layar supaya konsisten. */
:root { --primary: #3B82F6; --primary-hover: #2563EB; }

html, body { height: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; background: #F3F4F6; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Hanya satu layar tampil sekaligus */
.screen { display: none; height: 100%; flex-direction: column; }
.screen.active { display: flex; }

.icon-btn { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 9999px; color: #374151; transition: background .15s; }
.icon-btn:active { background: #F3F4F6; }

.app-header, .flow-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between;
  background: #fff; padding: calc(env(safe-area-inset-top) + 16px) 16px 12px; }
.app-header { border-bottom: 1px solid #F3F4F6; }
.flow-footer { flex-shrink: 0; background: #fff; padding: 16px 24px max(env(safe-area-inset-bottom), 24px); }

.btn-primary, .btn-secondary { display: flex; height: 52px; flex: 1; align-items: center; justify-content: center;
  gap: 8px; border-radius: 12px; font-size: 15px; font-weight: 700; transition: transform .1s, background .15s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,.3); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #fff; color: #374151; border: 1px solid #E5E7EB; }
.btn-primary:active, .btn-secondary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.field { width: 100%; border: 1px solid #E5E7EB; background: #F9FAFB; border-radius: 12px; padding: 14px 16px;
  font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.field:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.1); }
.field.invalid { border-color: #F43F5E; background: #FFF1F2; }
.field::placeholder { color: #9CA3AF; }

.label { font-size: 14px; font-weight: 700; color: #111827; }
.section-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700;
  color: #9CA3AF; letter-spacing: .1em; text-transform: uppercase; }
.err { margin-top: 6px; font-size: 12px; font-weight: 500; color: #F43F5E; }

.chip { border-radius: 9999px; padding: 8px 16px; font-size: 13px; font-weight: 600; background: #F3F4F6;
  color: #6B7280; transition: background .15s, color .15s; }
.chip.on { background: var(--primary); color: #fff; }
.chip-sm { padding: 6px 12px; font-size: 12px; border: 1px solid #E5E7EB; background: #fff; }
.chip-sm.on { border-color: var(--primary); background: #EFF6FF; color: var(--primary); font-weight: 700; }

.opt { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #E5E7EB;
  border-radius: 12px; padding: 14px; font-size: 14px; font-weight: 600; color: #4B5563; background: #fff; }
.opt.on { border: 2px solid var(--primary); background: #EFF6FF; color: var(--primary); font-weight: 700; padding: 13px; }

.card { background: #fff; border: 1px solid #E5E7EB; border-radius: 24px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* Slider: satu gaya untuk langkah 1 dan 4. Isi track diatur lewat --val. */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 9999px; outline: none;
  --val: 50%; background: linear-gradient(to right, var(--primary) var(--val), #E5E7EB var(--val)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(59,130,246,.35); }

.toggle { position: relative; width: 44px; height: 24px; border-radius: 9999px; background: #E5E7EB; transition: background .15s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle[aria-checked="true"] { background: var(--primary); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { pointer-events: auto; border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }


/* ============ Micro-goal: gerak & visual ============
   Aturan: keadaan dasar elemen selalu terlihat. Animasi hanya "dari" keadaan tersembunyi,
   sehingga aman bila animasi dimatikan (prefers-reduced-motion). */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.85); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
.rise { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.pop { animation: pop .45s ease-out both; animation-delay: var(--d, 0s); }

/* Step 2: cincin hitung kata */
.word-ring { width: 46px; height: 46px; transform: rotate(-90deg); flex-shrink: 0; }
.ring-bg { stroke: #E5E7EB; }
.ring-fg { stroke: var(--primary); transition: stroke-dashoffset .25s ease, stroke .2s; }
.ring-fg.over { stroke: #F43F5E; }

/* Step 2: chip pemicu kalimat */
.starter { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #BFDBFE; background: #EFF6FF;
  color: var(--primary); border-radius: 9999px; padding: 8px 14px; font-size: 13px; font-weight: 600; transition: transform .1s, background .15s; }
.starter:active { transform: scale(.96); background: #DBEAFE; }

/* Layar memuat saat GamaTutor membaca jawaban */
.loading-overlay { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 20px; padding: 32px; background: rgba(255,255,255,.97); text-align: center; }
.loading-overlay.hidden { display: none; }
.orb { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.orb::before, .orb::after { content: ''; position: absolute; inset: 0; border-radius: 9999px; border: 2px solid rgba(59,130,246,.35);
  animation: orb-ping 1.8s ease-out infinite; }
.orb::after { animation-delay: .9s; }
.orb-core { position: relative; display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 9999px;
  background: linear-gradient(135deg, #3B82F6, #93C5FD); color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.35); animation: orb-float 2.4s ease-in-out infinite; }
@keyframes orb-ping { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes orb-float { 50% { transform: translateY(-6px); } }
.dots { display: inline-flex; gap: 4px; margin-left: 2px; }
.dots i { width: 5px; height: 5px; border-radius: 9999px; background: var(--primary); animation: dot-bounce 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }

/* Step 3: meter cakupan & skala rekomendasi */
.seg { display: flex; gap: 6px; }
.seg i { height: 8px; flex: 1; border-radius: 9999px; background: #E5E7EB; }
.seg i.on { background: var(--primary); }
.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scale > div { position: relative; border-radius: 12px; padding: 12px 4px; text-align: center; font-size: 13px; font-weight: 600;
  background: #fff; color: #9CA3AF; border: 1px solid #FDE68A; }
.scale > div.rec { background: #F59E0B; color: #fff; border-color: #F59E0B; font-weight: 800; box-shadow: 0 6px 16px rgba(245,158,11,.35); }
.scale > div.rec::before { content: 'Disarankan'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: #fff; color: #B45309; border: 1px solid #FCD34D; border-radius: 9999px; padding: 1px 8px; font-size: 9px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* Step 4 & ringkasan: jalur Sebelumnya -> Sekarang. Warna netral (tidak menilai naik/turun). */
.dual { position: relative; height: 28px; --a: 50; --l: 50; --w: 0; }
.dual-track, .dual-band, .dual-mark { position: absolute; }
.dual-track { left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 9999px; background: #E5E7EB; }
.dual-band { top: 50%; height: 8px; margin-top: -4px; border-radius: 9999px; background: rgba(59,130,246,.4);
  left: calc(12px + (100% - 24px) * var(--l) / 100); width: calc((100% - 24px) * var(--w) / 100); transition: left .15s, width .15s; }
.dual-mark { top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; border-radius: 9999px; background: #6B7280;
  left: calc(12px + (100% - 24px) * var(--a) / 100); }
.dual-mark::after { content: attr(data-label); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px;
  white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.dual .range { position: absolute; left: 0; top: 50%; margin-top: -4px; z-index: 2; background: transparent; }
.dual-now { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 9999px; background: var(--primary);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); left: calc(12px + (100% - 24px) * var(--b) / 100); }
.chip-delta { display: inline-block; border-radius: 9999px; background: #F3F4F6; color: #4B5563; padding: 4px 12px; font-size: 12px; font-weight: 700; }

/* Hadiah badge Reflector (gaya lingkaran indigo "Mindset" dari desain Mastery Gallery) */
.modal-wrap { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 28px;
  background: rgba(17,24,39,.55); }
.modal-wrap.hidden { display: none; }
.modal-card { width: 100%; border-radius: 28px; background: #fff; padding: 28px 24px 24px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: fall 2.2s ease-in both; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(520px) rotate(540deg); } }

/* ============ Papan Kanban ============ */
.board { flex: 1; overflow-y: auto; background: #F9FAFB; padding: 4px 20px 112px; }
.cnt { border-radius: 9999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.bcol-empty { border: 1.5px dashed #D1D5DB; border-radius: 16px; padding: 18px 14px; text-align: center; font-size: 12px; color: #9CA3AF; }
.tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.tcard { --bar: #9CA3AF; position: relative; overflow: hidden; margin-bottom: 11px; cursor: pointer; background: #fff;
  border: 1px solid #E5E7EB; border-radius: 16px; padding: 13px 14px 12px 17px; box-shadow: 0 1px 3px rgba(17,24,39,.06);
  transition: transform .1s, box-shadow .15s; }
.tcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar); }
.tcard:active { transform: scale(.985); }
.prio-tinggi { --bar: #F43F5E; } .prio-sedang { --bar: #F59E0B; } .prio-rendah { --bar: #9CA3AF; }
.tcard.is-new { border: 1.5px solid var(--primary); animation: rise .5s cubic-bezier(.2,.8,.2,1) both;
  box-shadow: 0 0 0 4px rgba(59,130,246,.14), 0 8px 20px rgba(37,99,235,.12); }
.tcard.is-done h3 { color: #6B7280; }
.newtag { position: absolute; right: 0; top: 0; border-radius: 0 0 0 10px; background: var(--primary-hover); color: #fff;
  padding: 3px 10px 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; }
.kbox { display: flex; margin-top: 12px; border: 1px solid #E5E7EB; border-radius: 12px; background: #F9FAFB; overflow: hidden; }
.kbox > div { flex: 1; min-width: 0; padding: 7px 10px; }
.kbox > div + div { border-left: 1px solid #E5E7EB; }
.kbox .kc-due { flex: 1.5; }
.kbox small, .dfacts small, .dtwo small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }
.kbox b { display: block; margin-top: 2px; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbox b.is-none { color: #9CA3AF; font-weight: 600; }
.kbox b.is-soon { color: #b45309; }
.kbox b.is-late { color: #e11d48; }
.kbox b.is-today { color: #c2410c; background: #fff7ed; border-radius: 6px; padding: 0 6px; margin-left: -6px; display: inline-block; max-width: 100%; }
.mgb { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #C7D2FE; border-radius: 9999px; background: #EEF2FF;
  color: #4338CA; padding: 3px 8px; font-size: 10.5px; font-weight: 700; }
.tmeta { display: flex; align-items: center; gap: 12px; margin-top: 10px; border-top: 1px solid #F3F4F6; padding-top: 9px;
  font-size: 11px; color: #6B7280; }
.tmeta span { display: inline-flex; align-items: center; gap: 4px; }
.fab { position: absolute; right: 20px; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 5; display: flex; width: 56px; height: 56px;
  align-items: center; justify-content: center; border-radius: 9999px; background: var(--primary); color: #fff;
  box-shadow: 0 10px 22px rgba(59,130,246,.45); transition: transform .1s; }
.fab:active { transform: scale(.94); }

.sheet-wrap { position: absolute; inset: 0; z-index: 55; display: flex; align-items: flex-end; }
.sheet-wrap.hidden { display: none; }
.sheet-dim { position: absolute; inset: 0; background: rgba(17,24,39,.45); }
.sheet-body { position: relative; width: 100%; max-height: 92%; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0;
  padding: 10px 20px max(env(safe-area-inset-bottom), 22px); box-shadow: 0 -12px 40px rgba(17,24,39,.25);
  animation: sheet-up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 42px; height: 5px; margin: 0 auto 14px; border-radius: 9999px; background: #CBD5E1; }
.opt-col { display: flex; width: 100%; align-items: center; gap: 12px; margin-bottom: 8px; border: 1.5px solid #E5E7EB;
  border-radius: 14px; background: #fff; padding: 11px 12px; text-align: left; }
.opt-col:disabled { background: #F9FAFB; cursor: default; }
.opt-col.on { border-color: var(--primary-hover); background: #EFF6FF; }
.radio { display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center;
  border: 2px solid #CBD5E1; border-radius: 9999px; color: #fff; }
.opt-col.on .radio { border-color: var(--primary-hover); background: var(--primary-hover); }
.hint-box { display: flex; gap: 8px; border-radius: 12px; background: #EFF6FF; padding: 9px 11px; font-size: 12px; line-height: 1.4; color: #374151; }
.felt { height: 42px; border: 1px solid #E5E7EB; border-radius: 9999px; background: #fff; font-size: 13px; font-weight: 600; color: #374151; }
.felt.on { border-color: var(--primary-hover); background: var(--primary-hover); color: #fff; }
.detail { flex: 1; overflow-y: auto; background: #F8FAFC; padding: 0 20px 28px; }
.detail-bar { display: flex; flex-shrink: 0; gap: 10px; border-top: 1px solid #E5E7EB; background: rgba(255,255,255,.96);
  padding: 12px 20px max(env(safe-area-inset-bottom), 14px); }
.detail-bar .btn-primary, .detail-bar .btn-secondary { height: 48px; border-radius: 14px; font-size: 14px; }
.dcourse { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-hover); }
.dtitle { margin-top: 8px; font-family: 'Lora', serif; font-size: 25px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dsteps { display: flex; align-items: flex-start; margin-top: 18px; }
.dsteps > div { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: #94A3B8; }
.dsteps i { position: relative; z-index: 1; display: block; width: 12px; height: 12px; border-radius: 50%; background: #E2E8F0; border: 2px solid #fff; box-shadow: 0 0 0 1px #E2E8F0; }
.dsteps > div:not(:last-child)::after { content: ''; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px; background: #E2E8F0; }
.dsteps .on { color: var(--primary-hover); font-weight: 800; }
.dsteps .on i { background: var(--primary); box-shadow: 0 0 0 4px rgba(59,130,246,.2); }
.dsteps .done i { background: var(--primary); }
.dsteps .done:not(:last-child)::after { background: var(--primary); }
.dfacts { display: flex; margin-top: 20px; border: 1px solid #E5E7EB; border-radius: 14px; background: #fff; overflow: hidden; }
.dfacts > div { flex: 1; padding: 10px 13px; }
.dfacts > div + div { border-left: 1px solid #E5E7EB; }
.dfacts b { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.dsec { display: flex; align-items: center; gap: 10px; margin: 24px 0 11px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748B; }
.dsec::after { content: ''; flex: 1; height: 1px; background: #E2E8F0; }
.dpanel { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 14px; }
.dtile { display: flex; align-items: center; gap: 12px; }
.dico { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 13px; }
.dico.sm { width: 38px; height: 38px; }
.dico.blue { background: #EFF6FF; color: #2563EB; }
.dico.due { background: #FFF7ED; color: #C2410C; }
.dlab { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }
.dval { margin-top: 1px; font-size: 15px; font-weight: 700; }
.dsub { font-size: 12px; color: #64748B; }
.dcd { flex: none; border-radius: 9px; background: #FFF7ED; color: #C2410C; padding: 5px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.dpanel.late .dcd { background: #FFF1F2; color: #E11D48; }
.dtl { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 9px; background: #FDE8D4; }
.dtl i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #FB923C, #F59E0B); }
.dpanel.late .dtl { background: #FFE4E6; } .dpanel.late .dtl i { background: #F43F5E; }
.dtl-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: #94A3B8; }
.dquote { border-left: 3px solid #CBD5E1; padding: 2px 0 2px 14px; font-size: 14px; line-height: 1.6; color: #334155; white-space: pre-wrap; overflow-wrap: anywhere; }
.dchip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #BFDBFE; border-radius: 9999px; background: #EFF6FF; color: #2563EB; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.dtext { font-size: 13.5px; line-height: 1.55; color: #334155; overflow-wrap: anywhere; }
.dmg { border: 1px solid #C7D2FE; border-radius: 18px; background: linear-gradient(135deg, #EEF2FF, #F5F3FF); padding: 15px; }
.dmg-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #3730A3; }
.dmg-time { font-size: 11px; font-weight: 600; color: #6366F1; }
.ddual { position: relative; height: 30px; margin-top: 22px; }
.ddual .tr { position: absolute; left: 0; right: 0; top: 11px; height: 8px; border-radius: 9px; background: #DFE3FB; }
.ddual .band { position: absolute; top: 11px; height: 8px; border-radius: 9px; background: rgba(99,102,241,.35); }
.ddual .a { position: absolute; top: 3px; width: 3px; height: 24px; margin-left: -1.5px; border-radius: 9px; background: #64748B; }
.ddual .a::after { content: 'AWAL'; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #64748B; }
.ddual .n { position: absolute; top: 6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #6366F1; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.dleg { display: flex; gap: 18px; margin-top: 8px; font-size: 12px; font-weight: 700; color: #4338CA; }
.dleg span { display: flex; align-items: center; gap: 6px; }
.dleg i { display: block; } .dleg .m { width: 3px; height: 12px; border-radius: 9px; background: #64748B; } .dleg .d { width: 11px; height: 11px; border-radius: 50%; background: #6366F1; }
.dtwo { display: flex; gap: 10px; margin-top: 12px; }
.dtwo > div { flex: 1; border-radius: 12px; background: #fff; padding: 9px 12px; }
.dtwo b { display: block; margin-top: 2px; font-size: 15px; font-weight: 800; }
.dmg .dtwo small { color: #6366F1; }
.dins { display: flex; gap: 8px; margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: #4338CA; }
.dprog { height: 5px; margin: 10px 0 4px; overflow: hidden; border-radius: 9px; background: #E2E8F0; }
.dprog i { display: block; height: 100%; background: var(--primary); }
.dst { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; font-size: 13.5px; line-height: 1.4; }
.dst + .dst { border-top: 1px solid #F1F5F9; }
.dst .is-done { color: #94A3B8; text-decoration: line-through; }
.dcb { display: grid; flex: none; width: 20px; height: 20px; margin-top: 1px; place-items: center; border-radius: 7px; border: 2px solid #CBD5E1; color: #fff; }
.dcb.on { background: var(--primary); border-color: var(--primary); }
.dlnk { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; border: 1px solid #E5E7EB; border-radius: 14px; background: #fff; padding: 11px 12px; }
.dlnk b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.dlnk span { font-size: 11.5px; color: #94A3B8; }
.dmeta { display: flex; justify-content: space-between; margin-top: 22px; border-top: 1px dashed #D8DEE8; padding-top: 14px; font-size: 11.5px; color: #94A3B8; }
.dmeta span { display: flex; align-items: center; gap: 5px; }

/* ===== Form Tugas Baru: pratinjau kartu hidup ===== */
.pv { flex-shrink: 0; background: #fff; padding: 2px 20px 12px; }
.pv-card { --bar: #CBD5E1; position: relative; overflow: hidden; border: 1.5px dashed #CBD5E1; border-radius: 18px; background: #fff; padding: 13px 14px 12px 17px; transition: box-shadow .2s; }
.pv.filled .pv-card { border: 1.5px solid #BFDBFE; box-shadow: 0 6px 18px rgba(37,99,235,.10); }
.pv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar); transition: background .2s; }
.pv-title { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pv-course { margin-top: 2px; font-size: 12px; color: #64748B; }
.pv .ph { color: #CBD5E1; }
.pv-status { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: #64748B; }
.pv-status.ok { color: #059669; font-weight: 700; }
.pv-ring { position: relative; display: grid; flex: none; place-items: center; }
.pv-ring b { position: absolute; font-size: 11.5px; font-weight: 800; }
.pv-mini { display: none; align-items: center; gap: 11px; }
.pv.compact { padding-bottom: 10px; box-shadow: 0 6px 14px rgba(17,24,39,.06); position: relative; z-index: 3; }
.pv.compact .pv-full { display: none; }
.pv.compact .pv-mini { display: flex; }
.pv.compact .pv-card { padding: 8px 12px 8px 16px; border-radius: 16px; }
.pv .kbox { background: #F8FAFC; }

.flabel { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: #111827; }
.ft { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: #EFF6FF; color: var(--primary-hover); font-size: 15px; }
.flabel .req { margin-left: -4px; color: #F43F5E; }
.fdone { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 11px; font-weight: 700; color: #059669; }
.fdone[hidden] { display: none; }
.stile { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 1.5px solid #E5E7EB; border-radius: 16px; background: #fff; padding: 10px 4px; color: #475569; transition: border-color .15s, background .15s; }
.stile b { font-size: 12px; font-weight: 700; }
.stile .si { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #F1F5F9; color: #64748B; }
.stile.on { border-color: var(--primary); background: #EFF6FF; box-shadow: 0 0 0 3px rgba(59,130,246,.14); color: #111827; }
.stile.on .si { background: var(--primary); color: #fff; }
.pseg { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; border: 1.5px solid #E5E7EB; border-radius: 14px; background: #fff; padding: 11px 0; font-size: 13px; font-weight: 700; color: #475569; }
.pseg i { display: block; width: 8px; height: 8px; border-radius: 9999px; }
.pseg.on { border-color: var(--primary); background: #EFF6FF; color: var(--primary-hover); }
.diffcard { border: 1px solid #E5E7EB; border-radius: 20px; background: #fff; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.diffsep { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748B; }
.diffsep::before, .diffsep::after { content: ''; flex: 1; height: 1px; background: #E2E8F0; }
.diffsep span { text-align: center; }
.mgdone { display: flex; align-items: center; gap: 11px; border: 1px solid #C7D2FE; border-radius: 20px; background: linear-gradient(135deg, #EEF2FF, #F5F3FF); padding: 14px 16px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.mgbanner { position: relative; overflow: hidden; border-radius: 18px; padding: 16px; color: #fff; background: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%); }
.mgbanner::after { content: ""; position: absolute; right: -28px; top: -34px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.mgb-ic { display: flex; height: 38px; width: 38px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,.18); }
.mgb-p { margin: 10px 0 14px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.88); }
.mgb-btn { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: #fff; color: #1D4ED8; font-size: 14px; font-weight: 700; transition: transform .1s; }
.mgb-btn:active { transform: scale(.97); }
.mgb-t { margin: 10px 0 0; text-align: center; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); }

/* versi lembut: tidak mendominasi kartu lain */
.mgbanner { color: #1E1B4B; background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); border: 1px solid #C7D2FE; }
.mgbanner::after { background: rgba(99,102,241,.10); }
.mgb-ic { background: #6366F1; }
.mgb-p { color: #4B5563; }
.mgb-btn { background: #4F46E5; color: #fff; box-shadow: 0 4px 10px -4px rgba(79,70,229,.5); }
.mgb-t { color: #6B7280; }

/* Cek Pemahaman: lingkaran + stepper garis */
.flow-header { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
.fh-row { display: flex; align-items: center; justify-content: space-between; }
.fbars { display: flex; gap: 6px; padding: 8px 8px 0; }
.fbars i { height: 6px; flex: 1; border-radius: 9999px; background: #E5E7EB; }
.fbars i.done { background: #3B82F6; }
.fbars i.cur { background: linear-gradient(90deg, #3B82F6, #6366F1); }
.eyebrow { display: inline-flex; align-items: center; border-radius: 9999px; background: #EEF2FF; color: #4F46E5; padding: 5px 12px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.cy-card { border: 1px solid #E5E7EB; border-radius: 22px; background: #fff; padding: 22px 18px 20px; box-shadow: 0 4px 18px -8px rgba(15,23,42,.12); }
.cy-ring { position: relative; margin: 0 auto; }
.cy-bg { fill: none; stroke: #E8EDF5; }
.cy-fg { fill: none; stroke: #4F46E5; stroke-linecap: round; transition: stroke-dasharray .12s; }
.cy-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 800; color: #2563EB; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cy-val.sm { font-size: 25px; }
.chip-delta { background: none; padding: 0; }


/* Cek Pemahaman langkah 1: latar, pangeran, suasana */
.mg1 { position: relative; overflow: hidden; background: #E6EBF8; }
.mg1 > .flow-header, .mg1 > main, .mg1 > .flow-footer { position: relative; z-index: 2; }
.mg1 .flow-header, .mg1 .flow-footer { background: transparent; }
.mg1 .fbars i { background: rgba(255,255,255,.7); }
.mg1 .fbars i.done { background: #5B93F0; }
.mg1 .fbars i.cur { background: #9DB9F2; }
.mg1-sub { color: #5B6478; }
.mg1-scene { position: absolute; inset: 0; z-index: 0; }
.mg1-scene .sc { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.mg1-scene .sc.on { opacity: 1; }
.mg1-scene svg { width: 100%; height: 100%; display: block; }
.mg1-confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .5s; }
.mg1[data-mood="top"] .mg1-confetti { opacity: 1; }
.mg1-confetti i { position: absolute; top: -14px; width: 7px; height: 11px; border-radius: 2px; animation: cf-fall 3.2s linear infinite; }
@keyframes cf-fall { to { transform: translateY(900px) rotate(540deg); } }
.mg1-card { background: rgba(255,255,255,.92); position: relative; padding-top: 46px; backdrop-filter: blur(4px); }
.mg1-sound { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9999px; border: 1px solid #E5E7EB; background: #fff; color: #475569; cursor: pointer; }
.mg1-sound.off { color: #9CA3AF; }
.eqb { display: flex; align-items: flex-end; gap: 2px; height: 20px; }
.eqb i { width: 3.5px; height: 20px; border-radius: 2px; background: #3B82F6; transform-origin: bottom; transform: scaleY(.3); animation: eq-bar .9s ease-in-out infinite alternate; }
.eqb i:nth-child(2) { animation-delay: .15s; } .eqb i:nth-child(3) { animation-delay: .3s; } .eqb i:nth-child(4) { animation-delay: .45s; }
.mg1[data-mood="low"] .eqb i { background: #94A3B8; animation-duration: 1.8s; --h: .25; }
.mg1[data-mood="mid"] .eqb i { --h: .5; }
.mg1[data-mood="hi"] .eqb i { background: #F59E0B; animation-duration: .6s; --h: .8; }
.mg1[data-mood="top"] .eqb i { background: #F59E0B; animation-duration: .4s; --h: 1; }
.mg1-sound.off .eqb i { animation: none; transform: scaleY(.15); background: #CBD5E1; }
@keyframes eq-bar { from { transform: scaleY(.2); } to { transform: scaleY(var(--h, .5)); } }
.mg1-prince { position: absolute; width: 56px; height: 69px; transition: left .14s linear, top .14s linear; pointer-events: none; }
.mg1-prince .pr { transform-origin: 50% 100%; }
.mg1-prince[data-pose="mid"] .pr { animation: pr-idle 1.6s ease-in-out infinite; }
.mg1-prince[data-pose="hype"] .pr { animation: pr-jump .65s ease-in-out infinite; }
.mg1-prince[data-pose="low"] .pr { animation: pr-sway 2.6s ease-in-out infinite; }
@keyframes pr-idle { 50% { transform: translateY(-2px); } }
@keyframes pr-jump { 0%,100% { transform: scale(1.05,.94); } 45% { transform: translateY(-9px) scale(.97,1.05); } }
@keyframes pr-sway { 0%,100% { transform: rotate(-3deg) translateY(1px); } 50% { transform: rotate(3deg) translateY(2px); } }
.mg1-bubble { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E5E7EB; border-radius: 18px; padding: 11px 14px; font-size: 13.5px; font-weight: 700; color: #334155; box-shadow: 0 8px 20px -12px rgba(15,23,42,.3); }
.mg1-chip { flex: none; background: #EEF2FF; color: #4F46E5; border-radius: 9999px; padding: 5px 10px; font-size: 11.5px; font-weight: 800; }
.pop-prince { display: flex; justify-content: center; height: 92px; align-items: flex-end; margin-bottom: 6px; }
.pop-prince svg { animation: pr-idle 1.6s ease-in-out infinite; }
.mg1-prince.sm { width: 40px; height: 49px; }
.mg4-bubble { align-items: flex-start; font-weight: 600; font-size: 13px; line-height: 1.5; }
.mg4-bubble .mg1-chip { margin-top: 1px; }
#screen-mg4 .mg1-card { padding-top: 54px; }
#mg4-chip { color: #64748B; }

/* langkah 2 & 3: pendamping pangeran */
.mgw #mg2-confetti, .mgw .mg1-confetti { display: none; }
.coach { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 14px; }
.coach-pr { flex: none; width: 46px; height: 57px; }
.coach-pr .pr { transform-origin: 50% 100%; }
.coach-pr[data-pose="mid"] .pr { animation: pr-idle 1.6s ease-in-out infinite; }
.coach-pr[data-pose="hype"] .pr { animation: pr-jump .65s ease-in-out infinite; }
.coach-pr[data-pose="low"] .pr { animation: pr-sway 2.6s ease-in-out infinite; }
.coach-say { position: relative; flex: 1; margin: 0 0 8px; padding: 10px 14px; }
.coach-say::before { content: ""; position: absolute; left: -6px; bottom: 14px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; transform: rotate(45deg); }
.mg2-card { padding-top: 18px; }
.mg2-card .field { background: #F9FAFB; }
.mg2-tips { background: rgba(239,246,255,.96); }
#screen-mg3 #mg3-body > div { backdrop-filter: blur(3px); }
#mg3-body > div { position: relative; isolation: isolate; }
#mg3-body > div::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; z-index: -2; }
#mg3-body > div::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; z-index: -1; }


/* Papan: jalur perjalanan (opsi C) */
#screen-list { background: #F5F7FF; }
#screen-list .app-header { background: transparent; border-bottom: 0; padding-bottom: 4px; }
#screen-list .board { background: transparent; padding-top: 2px; }
.bstats { display: flex; gap: 6px; flex-shrink: 0; }
.bchip { display: inline-flex; align-items: center; gap: 4px; border-radius: 9999px; padding: 6px 11px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.bchip.streak { background: #FFEDD5; color: #C2410C; }
.bchip.xp { background: #EEF2FF; color: #4F46E5; }
.bchip.pop { animation: chip-pop .5s ease; }
@keyframes chip-pop { 40% { transform: scale(1.18); } }
.trail { position: relative; flex-shrink: 0; height: 176px; margin: 0 14px; }
.trail > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail .tr-base { fill: none; stroke: #C7D2FE; stroke-width: 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trail .tr-prog { fill: none; stroke: #6366F1; stroke-width: 10; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke-dasharray .6s ease; }
.trail .tr-dots { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 1 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tnode { position: absolute; width: 80px; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateX(-50%); background: none; border: 0; padding: 0; cursor: pointer; }
.tnode .tdot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9999px; background: #fff; border: 3px solid var(--c); color: var(--c); transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
.tnode.on .tdot { background: var(--c); color: #fff; transform: scale(1.12); box-shadow: 0 8px 14px -6px var(--c); }
.tnode .tlab { font-size: 11.5px; font-weight: 800; color: #6B7280; white-space: nowrap; }
.tnode .tlab b { font-size: 13px; color: #111827; }
.tnode.on .tlab { color: #111827; }
.tr-prince { position: absolute; width: 48px; height: 59px; transition: left .6s cubic-bezier(.4,.1,.2,1), top .6s cubic-bezier(.4,.1,.2,1); pointer-events: none; z-index: 2; }
.tr-prince .pr { transform-origin: 50% 100%; }
.tr-prince[data-pose="mid"] .pr { animation: pr-idle 1.6s ease-in-out infinite; }
.tr-prince[data-pose="hype"] .pr { animation: pr-jump .65s ease-in-out infinite; }
.tr-prince[data-pose="low"] .pr { animation: pr-sway 2.6s ease-in-out infinite; }
.tr-say { position: absolute; max-width: 190px; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 6px 10px; font-size: 11.5px; font-weight: 800; color: #1F2937; box-shadow: 0 8px 16px -10px rgba(30,41,99,.5); transition: left .6s, right .6s, top .6s; z-index: 2; pointer-events: none; }
.bhead { display: flex; align-items: center; margin: 12px 0 2px; }
.bhead b { flex: 1; font-size: 15px; font-weight: 900; }
.bhead span { font-size: 11.5px; font-weight: 700; color: #6B7280; }
.tcard .trow { display: flex; align-items: center; gap: 10px; }
.tcard .tmain { flex: 1; min-width: 0; }
.tcard .tside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.tcard .tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 4px; border-radius: 9999px; padding: 4px 9px; font-size: 11px; font-weight: 800; background: #F1F5F9; color: #64748B; }
.tchip.is-late { background: #FEE2E2; color: #DC2626; } .tchip.is-today { background: #FFEDD5; color: #C2410C; }
.tchip.d-mudah { background: #DCFCE7; color: #15803D; } .tchip.d-sedang { background: #FEF3C7; color: #B45309; } .tchip.d-sulit { background: #FFE4E6; color: #E11D48; }
.xpchip { background: linear-gradient(135deg, #FDE68A, #FBBF24); color: #78350F; border-radius: 9999px; padding: 4px 10px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.tplay { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #3B82F6; color: #fff; box-shadow: 0 6px 12px -6px #3B82F6; border: 0; cursor: pointer; transition: transform .1s; }
.tplay:active { transform: scale(.9); }
.tcard.is-boss { border-color: #FDA4AF; box-shadow: 0 8px 22px -10px rgba(244,63,94,.5); }
.tcard .late-tag { position: absolute; left: 0; top: 0; border-radius: 0 0 10px 0; background: #DC2626; color: #fff; font-size: 9.5px; font-weight: 900; letter-spacing: .06em; padding: 3px 8px; }
.tcard.has-tag { padding-top: 24px; }
.seedbox { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; border: 1.5px dashed #A5B4FC; background: #EEF2FF; border-radius: 18px; padding: 14px; font-size: 12px; color: #475569; }
.seedbox b { font-size: 14px; color: #1E1B4B; } .seedbox p { margin-top: 2px; line-height: 1.45; }
.seedbtn { grid-column: 1 / -1; height: 42px; border-radius: 13px; background: #4F46E5; color: #fff; font-weight: 800; font-size: 14px; }
.seedbtn:disabled { opacity: .6; }

/* ============ Papan v2: gulir horizontal, 2 kolom terlihat ============ */
#screen-list { background: linear-gradient(180deg, #E9EEFC 0%, #F1F4FD 40%, #F6F8FE 100%); }
#screen-list .app-header { padding-bottom: 0; }
.bchip { gap: 5px; font-size: 12px; font-weight: 700; padding: 6px 11px; }
.bchip.streak { background: #FFE8DA; color: #E2561B; } .bchip.streak iconify-icon { color: #F2672A; font-size: 14px; }
.bchip.xp { background: #FFF1C9; color: #3B3B4F; } .bchip.xp iconify-icon { color: #F5B50A; font-size: 14px; }
.trail { height: 150px; margin: 6px 14px 0; }
.trail .tr-base { stroke: #D9DEF5; stroke-width: 5; }
.trail .tr-prog { stroke: #93B4F8; stroke-width: 5; }
.tnode { width: 76px; gap: 3px; }
.tnode .tdot { width: 38px; height: 38px; border-width: 2.5px; font-size: 17px; box-shadow: 0 2px 6px rgba(30,41,90,.08); }
.tnode.on .tdot { transform: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 14%, transparent); }
.tnode.vis:not(.on) .tdot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 12%, transparent); }
.tnode:not(.vis):not(.on) { opacity: .6; }
.tnode .tlab { font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.tnode .tlab b { display: block; font-size: 11px; }
.tnode.on .tlab { font-weight: 700; }
.tr-prince { width: 42px; height: 51px; }
.tr-say { max-width: 178px; font-size: 11px; font-weight: 600; color: #374151; border: 0; padding: 7px 11px; line-height: 1.3; box-shadow: 0 3px 10px rgba(30,41,90,.10); }
#board-chips { padding: 8px 14px 10px; gap: 8px; }
#board-chips .chip { padding: 7px 13px; font-size: 11.5px; font-weight: 600; background: #E6EAF7; color: #4B5563; }
#board-chips .chip.on { background: var(--primary); color: #fff; box-shadow: 0 3px 8px -2px rgba(59,130,246,.5); }
#board-seed:empty { display: none; }
#board-seed { padding: 0 14px 8px; }
#screen-list .board { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 0 12px; min-height: 0;
  scroll-snap-type: x mandatory; scroll-padding-left: 12px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; background: transparent; }
.bcol { min-width: 0; flex: 0 0 calc((100% - 22px) / 2); scroll-snap-align: start; display: flex; flex-direction: column; min-height: 0;
  background: var(--bg); border-radius: 14px 14px 0 0; padding: 8px 7px 0; }
.bspacer { flex: 0 0 14px; }
.bcol-h { display: flex; align-items: center; gap: 6px; padding: 0 2px 9px; flex-shrink: 0; }
.bcol-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--c); color: #fff; font-size: 11px; }
.bcol-h b { flex: 1; font-size: 11.5px; font-weight: 700; color: #1F2937; }
.bcol-n { font-size: 10px; font-weight: 700; color: #4B5563; background: rgba(255,255,255,.75); border-radius: 9999px; padding: 1px 7px; }
.bcol-b { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 130px; }
.bcol-empty { border: 1.5px dashed rgba(107,114,128,.35); border-radius: 12px; padding: 14px 8px; font-size: 11px; line-height: 1.4; }
.bcol .tcard { margin-bottom: 9px; padding: 9px 8px 8px 11px; border: 0; border-radius: 10px; box-shadow: 0 2px 6px rgba(30,41,90,.10); }
.bcol .tcard::before { width: 3px; background: var(--bar); }
.bcol .tcard.is-done h3 { color: #4B5563; }
.bcol .tcard.is-new { border: 0; box-shadow: 0 0 0 2px var(--primary), 0 6px 16px rgba(37,99,235,.18); }
.bcol .newtag { right: 22px; border-radius: 0 0 8px 8px; font-size: 8.5px; padding: 2px 7px; }
.tr1 { display: flex; gap: 2px; align-items: flex-start; }
.tr1 h3 { flex: 1; min-width: 0; font-size: 11px; font-weight: 600; line-height: 1.25; color: #1F2937; word-break: break-word; }
.kebab { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin: -2px -3px 0 0; color: #374151; background: none; border: 0; font-size: 13px; cursor: pointer; }
.tcourse { margin-top: 3px; font-size: 9.5px; color: #6B7280; }
.bcol .tchips { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 8px; }
.tcr { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 4px; min-height: 21px; }
.bcol .tchip { gap: 3px; border-radius: 7px; padding: 3px 6px; font-size: 9.5px; font-weight: 600; background: #EEF1F8; color: #4B5563; border: 1px solid #DDE2EE; white-space: nowrap; }
.bcol .tchip iconify-icon { font-size: 10px; }
.bcol .tchip i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.bcol .tchip.is-late, .bcol .tchip.is-today { background: #FFF0F0; color: #D6403F; border-color: #F5C6C6; }
.bcol .tchip.is-soon { background: #FFF1E0; color: #C2410C; border-color: #F7D3A8; }
.bcol .tchip.d-mudah { background: #E7F8EE; color: #1E9E5A; border-color: #BFE9D0; }
.bcol .tchip.d-sedang { background: #FFF1E0; color: #D9730D; border-color: #F7D3A8; }
.bcol .tchip.d-sulit { background: #FFECEC; color: #D6403F; border-color: #F5C0C0; }
.bcol .tplay { width: 21px; height: 21px; border-radius: 7px; background: #E3EDFF; border: 1px solid #C9DBFB; color: #3B82F6; box-shadow: none; font-size: 10px; flex: none; }
.tdone { display: grid; color: #10B981; font-size: 17px; flex: none; }
.bdots { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 4; display: flex; gap: 6px; padding: 7px 10px; border-radius: 9999px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.bdot { height: 6px; width: 6px; border-radius: 6px; background: #CBD5E1; border: 0; padding: 0; transition: width .25s, background .25s; }
.bdot.on { width: 18px; background: var(--primary); }

/* ============ Formulir v2: maskot + kartu hidup + akordeon ============ */
#screen-form { background: linear-gradient(180deg, #E9EEFC 0%, #F1F4FD 35%, #F6F8FE 100%); }
#screen-form .app-header { background: transparent; border-bottom: 0; }
.fhero { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 70px; }
.fh-pr { flex: none; width: 58px; height: 62px; }
.fh-pr .pr { transform-origin: 50% 100%; }
.fh-pr[data-pose="mid"] .pr { animation: pr-idle 1.6s ease-in-out infinite; }
.fh-pr[data-pose="hype"] .pr { animation: pr-jump .65s ease-in-out infinite; }
.fh-say { flex: 1; min-width: 0; background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #374151; line-height: 1.35; box-shadow: 0 3px 10px rgba(30,41,90,.10); }
.fh-say b { font-weight: 800; color: #1F2937; }
.fh-gift { flex: none; text-align: center; background: #FFF1C9; border-radius: 14px; padding: 6px 10px; }
.fh-gift small { display: block; font-size: 9px; font-weight: 700; color: #8A6D1D; }
.fh-gift b { font-size: 14px; font-weight: 800; color: #3B3B4F; white-space: nowrap; }
#screen-form .pv { background: transparent; padding: 2px 16px 10px; }
#screen-form .pv-card, #screen-form .pv.filled .pv-card { border: 0; border-radius: 18px; box-shadow: 0 4px 14px rgba(30,41,90,.10); padding: 12px 14px 12px 17px; }
.pv-title { font-size: 14px; }
.pv-ring b { font-size: 10.5px; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pvchip { display: inline-flex; align-items: center; gap: 4px; border-radius: 9999px; padding: 4px 9px; font-size: 11px; font-weight: 700; background: #EEF1F8; color: #4B5563; }
.pvchip i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.pvchip.ph { color: #B6BECC; }
.pvchip.is-late, .pvchip.is-today { background: #FFF0F0; color: #D6403F; }
.pvchip.is-soon { background: #FFF1E0; color: #C2410C; }
.pvchip.d-mudah { background: #E7F8EE; color: #1E9E5A; } .pvchip.d-sedang { background: #FFF1E0; color: #D9730D; } .pvchip.d-sulit { background: #FFECEC; color: #D6403F; }
.pvchip.xp { background: #FFF1C9; color: #8A6D1D; }
#form-scroll { padding: 4px 16px 16px; }
.acc { background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(30,41,90,.08); margin-bottom: 10px; transition: box-shadow .2s; }
.acc.open { box-shadow: 0 0 0 2px #BFD3FA, 0 4px 12px rgba(59,130,246,.12); }
.acc-h { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 14px; font-size: 13.5px; font-weight: 700; color: #111827; text-align: left; background: none; border: 0; cursor: pointer; }
.acc-ic { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: #EEF1F8; color: #9AA3B2; font-size: 14px; transition: background .2s, color .2s; }
.acc.open .acc-ic { background: #E6EEFC; color: #3B82F6; }
.acc.done .acc-ic { background: #DDF3EA; color: #10B981; }
.acc-ic .i-ok { display: none; } .acc.done .acc-ic .i-n { display: none; } .acc.done .acc-ic .i-ok { display: block; }
.acc-t { white-space: nowrap; }
.acc-h .req { margin-left: -4px; color: #F43F5E; }
.acc-sum { flex: 1; min-width: 0; text-align: right; font-size: 11.5px; font-weight: 600; color: #6B7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc.open .acc-sum { visibility: hidden; }
.acc-chev { flex: none; color: #9AA3B2; font-size: 16px; transition: transform .2s; }
.acc.open .acc-chev { transform: rotate(90deg); }
.acc-b { display: none; padding: 0 14px 14px; }
.acc.open .acc-b { display: block; animation: rise .25s ease both; }
.sublabel { margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A93A3; }
.acc-b .diffcard { border: 0; box-shadow: none; padding: 0; background: transparent; }
.stile { position: relative; padding: 14px 8px 11px; gap: 4px; }
.stile .si { width: 40px; height: 40px; border-radius: 13px; background: var(--t, #F1F5F9); color: var(--c, #64748B); }
.stile small { font-size: 10.5px; font-weight: 500; color: #6B7280; }
.stile.on { border-color: var(--c); background: var(--t); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); }
.stile.on .si { background: #fff; color: var(--c); }
.schk { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; }
.fcta { flex-shrink: 0; padding: 8px 16px calc(env(safe-area-inset-bottom) + 14px); background: linear-gradient(180deg, rgba(244,246,253,0), #F4F6FD 40%); }
.fcta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 16px; background: #3B82F6; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 20px -10px rgba(59,130,246,.7); transition: transform .1s; }
.fcta-btn:active { transform: scale(.98); }
.fcta-btn:disabled { background: #C9D6F2; box-shadow: none; }

/* Cek Pemahaman: tema lembut + header Coach GamaTutor */
.fh-row { gap: 10px; }
.coach-av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: end center; overflow: hidden; box-shadow: 0 2px 6px rgba(30,41,90,.10); }
.coach-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.25; color: #1F2937; }
.mg1 .eyebrow { background: rgba(255,255,255,.85); color: #3A5FC4; }
.mg1-card { background: rgba(255,255,255,.94); box-shadow: 0 4px 16px rgba(30,41,90,.10); border-color: transparent; }
.mg1 .mg1-sound { background: #F1F3FA; border-color: transparent; }
.mg1 .cy-fg { stroke: #4F86E8; }
.mg1 .cy-val { color: #3A5FC4; font-weight: 800; }
.mg1 .mg1-bubble { border-color: transparent; background: rgba(255,255,255,.94); box-shadow: 0 4px 16px rgba(30,41,90,.10); }
.mg1 .mg1-chip { background: #EEF1F8; color: #5B6478; }
.mg1[data-mood] .eqb i { background: #3B82F6; animation-duration: .9s; --h: .5; }
.mg1 .mg1-sound.off .eqb i { animation: none; transform: scaleY(.15); background: #CBD5E1; }

/* Pesan level (langkah 1): kapsul tipis transparan, tidak menonjol */
#screen-mg1 .mg1-bubble { justify-content: center; text-align: center; padding: 9px 14px; border-radius: 14px; background: rgba(255,255,255,.5); box-shadow: none; border: 0; font-size: 12px; line-height: 1.5; font-weight: 500; color: #5B6478; }

/* Ikon akordeon formulir: tiap bagian punya warna sendiri (tetap berwarna walau belum diisi) */
.acc[data-sec="course"] .acc-ic { background: #E3EDFD; color: #3B82F6; }
.acc[data-sec="title"] .acc-ic { background: #EBE6FB; color: #7C5CE0; }
.acc[data-sec="strategy"] .acc-ic { background: #FCE6EF; color: #E0508A; }
.acc[data-sec="goal"] .acc-ic { background: #FDEAD3; color: #E8892B; }
.acc[data-sec="due"] .acc-ic { background: #DAF2EF; color: #14A39A; }
.acc[data-sec="diff"] .acc-ic { background: #FBEFC9; color: #D49A12; }
.acc[data-sec="more"] .acc-ic { background: #E3E8F6; color: #5B6FB5; }
.acc.done .acc-ic { background: #DDF3EA; color: #10B981; }

/* Karakter gambar (PNG) */
.pr { display: flex; justify-content: center; align-items: flex-end; }
.chr { display: block; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pop-prince img { animation: pr-idle 1.6s ease-in-out infinite; }
.coach-av { place-items: end center; }
.coach-av .chr { height: 36px !important; width: auto; margin-bottom: -2px; }

/* karakter lebih besar */
.coach-pr { width: 70px; height: 86px; }
.coach-pr .pr { height: 100%; }
.coach-pr[data-pose] .pr { animation: pr-idle 1.8s ease-in-out infinite; }
.trail { margin-top: 24px; }
.tr-prince { width: 64px; height: 79px; }
.tr-prince[data-pose="happy"] .pr { animation: pr-idle 1.6s ease-in-out infinite; }

.coach.solo { justify-content: center; margin-bottom: 8px; }
.coach.solo .coach-say { display: none; }
.coach.solo .coach-pr { width: 112px; height: 138px; }

.coach-pr { width: auto; min-width: 74px; height: 90px; }
.coach.solo .coach-pr { width: auto; height: 140px; }

.dtl-opt .dtl-ic { font-size: 26px; color: #3B82F6; }
.dtl-opt .dtl-sub { margin-top: -4px; font-size: 11.5px; font-weight: 500; line-height: 1.2; color: #6B7280; text-align: center; }

/* ===== Kartu misi: peta petualangan (form Tugas Baru) ===== */
#form-hero { display: none; }
#screen-form .pv { padding: 4px 16px 10px; }
.qa { position: relative; overflow: hidden; border-radius: 22px; padding: 14px 14px 12px; background: linear-gradient(180deg, #D8E2F8, #EAEEFA 60%, #F3F0F8); box-shadow: 0 6px 18px rgba(30,41,90,.10); }
.qa-mt { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; pointer-events: none; }
.qa-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.qa-tag { display: inline-flex; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.75); color: #4F5FB5; }
.qa-title { margin-top: 8px; font-family: 'Lora', Georgia, serif; font-size: 21px; font-weight: 700; line-height: 1.2; color: #1F2D5C; overflow-wrap: anywhere; }
.qa-course { margin-top: 3px; font-size: 12px; font-weight: 600; color: #5B6478; }
.qa .ph { color: #8E98B5; font-weight: 600; }
.qa-gift { flex: none; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 9999px; padding: 5px 13px 5px 5px; box-shadow: 0 4px 12px rgba(70,90,160,.14); }
.qa-gc { width: 30px; height: 30px; border-radius: 50%; background: #E6EFFF; color: #3B82F6; display: grid; place-items: center; font-size: 17px; }
.qa-gift b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; color: #1F2D5C; }
.qa-gift small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; color: #5F76A8; }
.qa-map { position: relative; height: 120px; margin-top: 14px; }
.qa-map > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.qa-p1 { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; opacity: .9; vector-effect: non-scaling-stroke; }
.qa-p2 { fill: none; stroke: #8FB0F2; stroke-width: 3; stroke-dasharray: 1 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.qa-n { position: absolute; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #fff; color: #B3BCD0; border: 2px dashed #C9D2E6; transition: background .3s, color .3s, transform .15s; }
.qa-n:active { transform: scale(.9); }
.qa-n.on { background: #4F86E8; color: #fff; border: 0; box-shadow: 0 4px 10px -2px rgba(59,130,246,.55); }
.qa-n.cur { box-shadow: 0 0 0 6px rgba(79,134,232,.22), 0 4px 10px -2px rgba(59,130,246,.55); animation: qa-pulse 1.8s ease-in-out infinite; }
@keyframes qa-pulse { 50% { box-shadow: 0 0 0 9px rgba(79,134,232,.10), 0 4px 10px -2px rgba(59,130,246,.55); } }
.qa-hero { position: absolute; width: 44px; height: 66px; pointer-events: none; transition: left .55s cubic-bezier(.4,.1,.2,1), top .55s cubic-bezier(.4,.1,.2,1); }
.qa-hero .pr { height: 100%; animation: pr-idle 1.6s ease-in-out infinite; }
.qa-rw { position: absolute; right: 2px; top: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qa-rw small { font-size: 8px; font-weight: 800; letter-spacing: .08em; color: #5F76A8; }
.qa-chest { position: relative; width: 42px; height: 42px; border-radius: 13px; overflow: hidden; background: #E6EEFC; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(80,100,170,.22); display: grid; place-items: center; transition: transform .3s; }
.qa-chest span { font-size: 20px; font-weight: 800; color: #9FB0DC; }
.qa-chest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qa.done .qa-chest { animation: qa-chest .9s ease-in-out infinite; }
@keyframes qa-chest { 50% { transform: translateY(-4px) scale(1.08); } }
.qa-spark { position: absolute; display: none; font-size: 14px; }
.qa-spark.s1 { right: -4px; top: 62px; } .qa-spark.s2 { right: 40px; top: 100px; font-size: 11px; }
.qa.done .qa-spark { display: block; animation: qa-tw 1.2s ease-in-out infinite; } .qa.done .qa-spark.s2 { animation-delay: .5s; }
@keyframes qa-tw { 50% { opacity: .25; transform: scale(.7); } }
.qa-chips { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.qa-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.85); color: #4B5563; white-space: nowrap; }
.qa-chip.ph { background: rgba(255,255,255,.35); color: #8E98B5; border: 1.5px dashed #BAC4DD; font-weight: 600; }
.qa-cnt { margin-left: auto; font-size: 12px; font-weight: 800; color: #3B5BB5; }
.pv.compact .qa-map, .pv.compact .qa-chips, .pv.compact .qa-mt { display: none; }
.pv.compact .qa-title { margin-top: 4px; }

/* Pop-up hadiah setelah tugas disimpan */
.rw-wrap { position: absolute; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; padding: 28px 22px;
  background: rgba(98,112,172,.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: rw-fade .25s ease both; }
.rw-wrap.hidden { display: none; }
@keyframes rw-fade { from { opacity: 0; } }
.rw-card { position: relative; width: 100%; max-width: 360px; margin-top: 62px; border-radius: 28px; background: #fff; padding: 0 20px 20px; text-align: center;
  box-shadow: 0 24px 60px rgba(40,50,110,.28); animation: rw-in .5s cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes rw-in { 0% { opacity: 0; transform: translateY(24px) scale(.94); } 100% { opacity: 1; transform: none; } }
.rw-glow { position: absolute; left: 50%; top: -96px; width: 250px; height: 190px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,236,190,.5) 55%, rgba(255,255,255,0)); }
.rw-item { position: relative; width: 116px; height: 116px; margin: -62px auto 0; border-radius: 30px; overflow: hidden; background: #E6EEFC; border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(70,90,170,.3); animation: rw-float 3s ease-in-out infinite .6s; }
.rw-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes rw-float { 50% { transform: translateY(-5px); } }
.rw-sp { position: absolute; color: #F4C95D; font-size: 18px; pointer-events: none; animation: rw-tw 2.4s ease-in-out infinite; }
.rw-sp.s1 { left: 16%; top: -58px; } .rw-sp.s2 { right: 14%; top: -76px; font-size: 24px; animation-delay: .5s; }
.rw-sp.s3 { right: 24%; top: -22px; color: #9DB8F5; font-size: 14px; animation-delay: 1s; } .rw-sp.s4 { left: 24%; top: -18px; color: #9DB8F5; font-size: 13px; animation-delay: 1.4s; }
@keyframes rw-tw { 50% { opacity: .35; transform: scale(.75); } }
.rw-title { margin-top: 16px; font-family: 'Lora', Georgia, serif; font-size: 25px; font-weight: 700; line-height: 1.2; color: #1F2D5C; }
.rw-div { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 10px; width: 70%; }
.rw-div i { flex: 1; height: 1px; background: #D5DEF3; } .rw-div b { color: #7FA0EE; font-size: 14px; }
.rw-text { font-size: 14px; line-height: 1.6; color: #5B6584; }
.rw-text b { color: #1F2D5C; font-weight: 700; }
.rw-chips { display: flex; gap: 8px; margin-top: 14px; }
.rw-chip { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9999px; padding: 9px 8px; font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.rw-chip iconify-icon { font-size: 17px; flex: none; }
.rw-chip.gem { background: #E8F0FF; color: #243C86; } .rw-chip.gem iconify-icon { color: #3B82F6; }
.rw-chip.item { background: #FFF2D2; color: #8A5E0A; } .rw-chip.item iconify-icon { color: #E1A117; }
.rw-btn { width: 100%; margin-top: 14px; border: 0; border-radius: 16px; padding: 14px; font-size: 15px; font-weight: 800; color: #fff; background: #4177F5; box-shadow: 0 8px 18px rgba(65,119,245,.35); cursor: pointer; transition: transform .15s; }
.rw-btn:active { transform: scale(.97); }

/* ===== Papan: pulau petualangan (ilustrasi) ===== */
.trail { height: 150px; margin: 4px 6px 0; }
.trail > svg { display: block; z-index: 0; pointer-events: none; }
.tnode.isle { position: absolute; transform: translateX(-50%); display: block; padding: 0; text-align: center; -webkit-tap-highlight-color: transparent; }
.tnode.isle .isl { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; transition: transform .3s, filter .3s, opacity .3s; filter: saturate(.85); opacity: .82; }
.tnode.isle.vis .isl { opacity: .95; filter: saturate(1); }
.tnode.isle.on .isl { opacity: 1; transform: translateY(-4px) scale(1.04); filter: saturate(1.08); }
.tnode.isle::before { content: ''; position: absolute; left: 4%; right: 4%; top: 8%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 38%, transparent), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tnode.isle.on::before { opacity: 1; }
.tnode.isle:not(.vis):not(.on) { opacity: 1; }
.tpill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; margin-top: -8px; padding: 3px 9px 3px 3px; border-radius: 9999px; background: color-mix(in srgb, var(--bg) 88%, #fff); box-shadow: 0 3px 8px rgba(40,60,130,.1); max-width: 100%; }
.tpill .tcn { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 9999px; background: var(--c); color: #fff; font-size: 11px; font-weight: 800; }
.tpill .tcl { font-size: 10.5px; font-weight: 700; color: #1F2D5C; }
.tnode.isle.on .tpill { box-shadow: 0 0 0 2px var(--c), 0 4px 10px rgba(40,60,130,.14); }
.tr-prince { display: none; }
.tr-say { left: 25%; right: auto; top: 0; max-width: 62%; z-index: 3; }

/* ===== Kartu Wilayah ===== */
.bcol .tcard.wil { padding: 0; border: 0; border-radius: 16px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 3px 10px rgba(30,41,90,.10); background: #fff; }
.bcol .tcard.wil::before { display: none; }
.tcard.wil.is-late { box-shadow: 0 3px 10px rgba(239,68,68,.18), 0 0 0 1.5px #FCA5A5; }
.bcol .tcard.wil.is-new { box-shadow: 0 0 0 2px var(--primary), 0 6px 16px rgba(37,99,235,.18); }
.wil .wh { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--cb); color: var(--cc); font-size: 10.5px; font-weight: 800; }
.wil .wh i { width: 7px; height: 7px; border-radius: 50%; background: var(--cc); flex: none; }
.wil .wcn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wil .wh em { margin-left: auto; font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 99px; background: #EF4444; color: #fff; flex: none; }
.wil .wb { padding: 9px 10px 10px; }
.wil .wb h3 { font-size: 12.5px; font-weight: 800; line-height: 1.28; color: #1F2937; word-break: break-word; }
.bcol .tcard.wil.is-done h3 { color: #4B5563; }
.wil .wpath { position: relative; height: 18px; margin-top: 8px; }
.wil .wtrack { position: absolute; left: 0; right: 14px; top: 8px; border-top: 3px dotted #D5DCF2; }
.wil .wbar { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 3px; background: var(--wb); width: calc((100% - 14px) * var(--f)); }
.wil .wboot { position: absolute; top: 1px; font-size: 12px; left: calc((100% - 14px) * var(--f) - 7px); line-height: 1; }
.wil .wflag { position: absolute; right: 0; top: 0; font-size: 13px; line-height: 1; }
.wil .wf { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.wil .wpill { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 99px; white-space: nowrap; background: #EEF2FA; color: #5B6478; }
.wil .wpill.is-late { background: #FEE2E2; color: #DC2626; } .wil .wpill.is-today { background: #FFEDD5; color: #C2410C; }
.wil .wpill.is-soon { background: #FEF3C7; color: #B45309; } .wil .wpill.is-done { background: #DCFCE7; color: #059669; }
.wil .wpill.is-none { background: #F1F5F9; color: #6B7280; }
.wil .tplay, .wil .tdone { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: #fff; border: 0; }
.wil .tplay { background: var(--cc); box-shadow: 0 5px 10px -5px var(--cc); }
.wil .tdone { background: #10B981; font-size: 16px; }
.bcol .tcard.wil.is-done { background: linear-gradient(180deg, #F3FBF7, #fff 70%); }

/* ===== v63: latar semua kolom satu warna + penanda terlambat lebih lembut ===== */
.bcol { background: #E8EDFB; }
.tcard.wil.is-late { box-shadow: 0 3px 10px rgba(30,41,90,.10), 0 0 0 1.5px #F3CFCF; }
.wil .wh em { background: #FBE3E3; color: #C2605F; }
.wil .wpill.is-late { background: #FBEAEA; color: #C2605F; }

/* ===== v64: kartu bersih — putih, semua mata kuliah satu warna ===== */
.bcol .tcard.wil, .bcol .tcard.wil.is-done { background: rgba(255,255,255,.92); border-radius: 18px; box-shadow: 0 6px 16px -8px rgba(40,70,140,.22); }
.tcard.wil.is-late { box-shadow: 0 6px 16px -8px rgba(40,70,140,.22); }
.wil .wh { background: transparent; padding: 11px 11px 0; font-size: 11px; font-weight: 700; }
.wil .wh i { width: 7px; height: 7px; }
.wil .wh em { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: 0; padding: 3px 7px; background: #FBE9E9; color: #C2605F; }
.wil .wh em iconify-icon { font-size: 11px; }
.wil .wb { padding: 7px 11px 11px; }
.wil .wb h3 { font-size: 13px; font-weight: 800; }
.wil .wbar { height: 5px; top: 6.5px; }
.wil .tdone { background: #10B981; }
.wil .tplay { box-shadow: 0 6px 12px -6px #2F6FE4; border-radius: 12px; }

/* ===== v65: latar biru langit cerah + kolom lebih terlihat ===== */
#screen-list { background: linear-gradient(180deg, #D3E8FE 0%, #DDEDFE 38%, #E9F4FE 100%); }
.bcol { background: rgba(190,218,252,.62); border: 1.5px solid rgba(255,255,255,.85); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 8px 22px -10px rgba(50,110,200,.35), inset 0 1px 0 rgba(255,255,255,.7); padding-top: 10px; }
.bcol-n { background: #fff; color: #1F2937; }

/* ===== v66: latar kembali ke lavender-biru lembut (v64), kolom dibuat jelas ===== */
#screen-list { background: linear-gradient(180deg, #E9EEFC 0%, #F1F4FD 40%, #F6F8FE 100%); }
.bcol { background: #D9E2F8; border: 1.5px solid #C3D0F0; border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 8px 20px -10px rgba(50,80,170,.40); }

/* v68: chip permata papan memakai desain pill permata */
.qa-gift.bgem { padding: 5px 15px 5px 5px; }
.qa-gift.bgem.pop { animation: pop .5s ease; }

/* ===== v69: peta tugas (kartu) + kartu tugas tanpa jalur, dengan prioritas & kesulitan ===== */
.trail.map { position: relative; height: 196px; margin: 2px 14px 0; border-radius: 24px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(160deg, #DCE6FB, #EDF1FD); box-shadow: 0 8px 20px -10px rgba(60,90,180,.35); }
.trail.map .tr-mount { position: absolute; left: 0; bottom: 0; width: 100%; height: 90px; pointer-events: none; }
.trail.map > svg#tr-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.map-chip { position: absolute; left: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #3B4FA0; font-size: 8.5px; font-weight: 800; letter-spacing: .07em; padding: 3px 8px; border-radius: 99px; }
.map-chip iconify-icon { font-size: 10px; }
.trail.map .tnode { position: absolute; top: 0; bottom: 0; width: 25%; transform: translateX(-50%); opacity: 1; display: block; background: none; border: 0; padding: 0; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.trail.map .tnode .tdot { position: absolute; left: 50%; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 17px; transform: translate(-50%, -50%); box-shadow: 0 4px 10px -4px var(--c); transition: width .3s, height .3s, box-shadow .3s; }
.trail.map .tnode.on .tdot { width: 46px; height: 46px; font-size: 20px; transform: translate(-50%, -50%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent), 0 6px 14px -4px var(--c); }
.trail.map .tnode .tcn { position: absolute; right: -5px; top: -5px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 99px; background: #fff; color: var(--c); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.trail.map .tnode .tlab { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 11px; font-weight: 600; color: #5F6B8A; }
.trail.map .tnode.on .tlab { font-weight: 800; color: #1F2D5C; }
.map-hero { position: absolute; z-index: 3; height: 58px; width: auto; transform: translateX(-50%); transition: left .5s ease, top .5s ease; pointer-events: none; user-select: none; }
.qa-gift.bgem b { font-size: 15px; }
.qa-gift.bgem small { font-size: 8.5px; }
.wil .wmeta { display: flex; gap: 10px; margin-top: 7px; font-size: 10px; font-weight: 600; color: #6B7794; }
.wil .wmeta span { display: inline-flex; align-items: center; gap: 4px; }
.wil .wmeta i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.wil .wmeta iconify-icon { font-size: 11px; }
.wil .wpill { font-size: 10px; padding: 4px 8px; min-width: 0; }
.wil .tplay, .wil .tdone { width: 28px; height: 28px; border-radius: 10px; }
.wil .wf { margin-top: 9px; }
.trail.map > svg.tr-mount { inset: auto 0 0 0; top: auto; height: 90px; }
.qa-gift.bgem b { font-size: 12.5px; }
.qa-gift.bgem small { font-size: 8px; }
.qa-gift.bgem .qa-gc { width: 26px; height: 26px; font-size: 15px; }
.qa-gift.bgem { gap: 7px; padding: 4px 13px 4px 4px; }

/* ===== v73: popup hadiah bersih & elegan ===== */
.rw-card { margin-top: 0; padding: 26px 22px 22px; border-radius: 28px; box-shadow: 0 24px 50px -16px rgba(30,41,99,.5); }
.rw-item { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; padding: 3px; border: 0; background: linear-gradient(160deg, #E6EEFF, #F4F7FF); box-shadow: 0 8px 18px -8px rgba(60,90,200,.45); }
.rw-item img { border-radius: 21px; }
.rw-title { margin-top: 0; font-size: 21px; }
.rw-text { margin-top: 10px; font-size: 13px; line-height: 1.6; color: #5F6B8A; }
.rw-chips { justify-content: center; align-items: stretch; margin-top: 16px; }
.rw-gem { flex: none; display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #E6ECFA; border-radius: 99px; padding: 4px 14px 4px 4px; box-shadow: 0 4px 12px rgba(70,90,160,.16); text-align: left; }
.rw-gc { width: 26px; height: 26px; border-radius: 50%; background: #E6EFFF; color: #3B82F6; display: grid; place-items: center; font-size: 15px; }
.rw-gem b { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.1; color: #1F2D5C; }
.rw-gem small { display: block; font-size: 8px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; color: #5F76A8; }
.rw-chip.item { flex: 1; background: #F3F6FD; border: 1px solid #E6ECFA; color: #3B4F86; font-size: 11px; padding: 0 12px; }
.rw-chip.item iconify-icon { color: #5F76A8; font-size: 15px; }
.rw-btn { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #3B7BF0; box-shadow: 0 10px 18px -10px #3B7BF0; font-size: 14px; }
.rw-btn iconify-icon { font-size: 16px; }

/* ===== v74: node peta berupa kaca bening, berwarna hanya saat aktif ===== */
.trail.map .tnode .tdot { background: rgba(255,255,255,.45); color: #6A7AA8; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 4px 12px -6px rgba(60,90,180,.35); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); transition: width .3s, height .3s, background .3s, color .3s, box-shadow .3s; }
.trail.map .tnode .tcn { color: #6A7AA8; }
.trail.map .tnode.on .tdot { background: var(--c); color: #fff; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.trail.map .tnode.on .tcn { color: var(--c); }
.map-snd { position: absolute; right: 12px; top: 10px; z-index: 4; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); background: rgba(255,255,255,.55); color: #4A66B3; display: grid; place-items: center; font-size: 14px; cursor: pointer; }
.map-snd.off { color: #98A3C4; }

/* v79: tombol aksi bulat lembut 30px di kanan atas kartu */
.wil .wh { min-height: 30px; padding: 9px 9px 0 11px; align-items: center; }
.wil .wb { padding-top: 4px; }
.wil .wh .tplay, .wil .wh .tdone { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #E6EEFD; color: #2F6FE4; box-shadow: none; font-size: 15px; }
.wil .wh .tdone { background: #DCF5E8; color: #10B981; }
.wil .wf { margin-top: 8px; }

/* v80: judul tugas lebih tipis & akademis (Inter 500, 12.5px) */
.wil .wb h3 { font-size: 12.5px; font-weight: 500; color: #243049; line-height: 1.32; }
.bcol .tcard.wil.is-done h3 { color: #4B5563; }

/* v81: judul tugas mengikuti gaya referensi (Inter semi-bold, rapat, hampir hitam) */
.wil .wb h3 { font-size: 13.5px; font-weight: 600; color: #111827; letter-spacing: -.1px; line-height: 1.3; }
.bcol .tcard.wil.is-done h3 { color: #374151; }

/* ===== v82: kanban gaya base — kolom tanpa kotak, kartu bergaris prioritas + checklist micro-goal ===== */
#screen-list .board { gap: 14px; padding: 0 16px; scroll-padding-left: 16px; }
.bcol { flex: 0 0 calc(100% - 56px); background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.bspacer { flex: 0 0 40px; }
.bcol-h { gap: 8px; padding: 2px 2px 10px; }
.bcol-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.bcol-h b { flex: none; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #1F2937; }
.bcol-n { font-size: 11px; font-weight: 800; padding: 2px 8px; background: var(--bg); color: var(--c); }
.bcol-dots { margin-left: auto; color: #9CA3AF; font-weight: 800; letter-spacing: 1px; font-size: 14px; }
.bcol-b { padding-bottom: 130px; }
.bcol .tcard.bs { padding: 0; margin-bottom: 12px; background: #fff; border: 1px solid #E5E7EB; border-left: 4px solid var(--sc); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 14px -10px rgba(40,70,140,.25); }
.bcol .tcard.bs::before { display: none; }
.bcol .tcard.bs.is-done { background: #fff; opacity: .92; }
.bs-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 12px 10px 13px; }
.bs-h h3 { font-size: 13.5px; font-weight: 600; color: #111827; letter-spacing: -.1px; line-height: 1.3; word-break: break-word; }
.bcol .tcard.bs.is-done .bs-h h3 { color: #6B7280; }
.bs-sub { font-size: 11px; color: #6B7280; margin-top: 2px; }
.bs-prog { flex: none; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: var(--tint); color: var(--tc); }
.bs-cl { padding: 9px 13px 10px; border-top: 1px solid #EEF0F4; display: flex; flex-direction: column; gap: 4px; }
.bs-ci { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 12px; color: #1F2937; text-align: left; background: none; border: 0; width: 100%; }
.bs-ci.d { color: #9CA3AF; text-decoration: line-through; }
.bs-bx { width: 15px; height: 15px; border: 1.5px solid #CBD2DE; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 10px; color: #fff; }
.bs-ci.d .bs-bx { background: #2F6FE4; border-color: #2F6FE4; }
.bs-more { font-size: 10.5px; font-weight: 600; color: #9AA3B5; padding-left: 23px; }
.bs-f { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 11px 9px 13px; background: #F8F9FB; border-top: 1px solid #EEF0F4; }
.bs-tg { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.bs-tg iconify-icon { font-size: 11px; }
.bs-df { background: #fff; border: 1px solid #DDE3EE; color: #4B5563; }
.bs-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 13px; }
.bs-bars u { width: 3px; border-radius: 1px; background: #D5DBE8; display: block; }
.bs-bars u.on { background: #5B6478; }
.bs-dl { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: #6B7280; white-space: nowrap; margin-left: 2px; }
.bs-dl iconify-icon { font-size: 12px; }
.bs-dl.is-late { color: #C2605F; } .bs-dl.is-today { color: #C2410C; } .bs-dl.is-soon { color: #B45309; } .bs-dl.is-done { color: #059669; }
.bs-f .tplay, .bs-f .tdone { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; border: 0; background: #E6EEFD; color: #2F6FE4; box-shadow: none; }
.bs-f .tdone { background: #DCF5E8; color: #10B981; }

/* v83: Peta Tugas lebih pendek (196px -> 150px) */
.trail.map { height: 150px; }
.trail.map .tr-mount, .trail.map > svg.tr-mount { height: 66px; }
.map-hero { height: 50px; }
.trail.map .tnode .tlab { bottom: 9px; font-size: 10.5px; }

/* v85: kartu misi lebih pendek (~278px -> ~240px), label "MISI BARU" dihapus */
.qa-tag[hidden] { display: none; }
.qa-tag[hidden] + .qa-title { margin-top: 0; }
.qa-map { height: 112px; margin-top: 12px; }
.qa-rw { top: 64px; }
.qa-spark.s1 { top: 56px; } .qa-spark.s2 { top: 92px; }
