/* CaturJuara Kids — P47 (1 Nov 2026) susun atur "Gabungan"
   Header nipis hijau, jalur demo nipis, tab bawah (telefon) / panel kiri (laptop),
   tab Saya + Tetapan, mod fokus pelajaran. Semua peraturan di bawah html.cj-s
   (kelas ditambah oleh skrip kecil dalam <head>), jadi buang kelas = balik ke rupa lama. */

html.cj-s body{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}

/* ---------- Header nipis ---------- */
html.cj-s #kepala-app{background:linear-gradient(180deg,#2F8A5F 0%,#1F5E42 100%)!important;border:0!important;box-shadow:0 4px 14px -6px rgba(20,61,43,.45)!important;backdrop-filter:none!important}
html.cj-s #kepala-app>div{flex-wrap:nowrap!important;align-items:center!important;padding-top:8px!important;padding-bottom:8px!important;gap:8px!important;row-gap:0!important}
html.cj-s #kepala-app>div::after{display:none!important;content:none!important}
html.cj-s #kepala-app>div>div:first-child{flex:1 1 auto!important;min-width:0!important;margin-right:0!important}
html.cj-s #kepala-app>div>div:last-child>*{margin-top:0!important;flex:0 0 auto!important}
html.cj-s #kepala-app>div>div:first-child span.font-kid{background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important;font-size:22px!important}
html.cj-s #kepala-app>div>div:first-child p{color:#CFF0DC!important}
html.cj-s #nav-mod,
html.cj-s #btn-profil,
html.cj-s #btn-voice-toggle,
html.cj-s #btn-sfx-toggle,
html.cj-s #btn-open-pwa,
html.cj-s #btn-pro-upgrade,
html.cj-s #btn-logout-lock,
html.cj-s #bekas-tema,
html.cj-s #btn-tema-papan,
html.cj-s #header-xp-lbl{display:none!important}
html.cj-s #kepala-app>div>div:last-child{display:flex!important;flex-wrap:nowrap!important;width:auto!important;flex:0 0 auto!important;gap:6px!important;margin:0!important}
html.cj-s #kepala-app .bg-amber-50,
html.cj-s #btn-kedai{background:rgba(0,0,0,.22)!important;border:0!important;box-shadow:none!important;border-radius:999px!important;padding:5px 11px 5px 8px!important;min-height:0!important;height:auto!important;width:auto!important;color:#fff!important;display:flex!important;align-items:center!important;gap:3px!important}
html.cj-s #kepala-app .bg-amber-50 .ik{color:#FFD45E!important}
html.cj-s #header-stars{color:#FFE27A!important;font-size:16px!important}
html.cj-s #header-streak{color:#FFD7A8!important;font-size:16px!important}
html.cj-s #header-xp{color:#fff!important;font-size:16px!important}
html.cj-s .cj-ikon-3d{width:26px;height:26px;flex:none;display:inline-block}
html.cj-s #btn-kedai .cj-ikon-3d{width:28px;height:28px}
html.cj-s #btn-kedai>svg,html.cj-s #kepala-app .cj-ganti>svg{display:none!important}

/* ---------- Jalur demo nipis ---------- */
html.cj-s #demo-mode-top-banner{padding:6px 10px!important;border-bottom:0!important;background:linear-gradient(90deg,#FFE27A 0%,#F2B93B 100%)!important;box-shadow:inset 0 -3px 0 rgba(160,100,0,.22)!important}
html.cj-s #demo-mode-top-banner>div{flex-wrap:nowrap!important;gap:8px!important}
html.cj-s #demo-mode-top-banner>div>div:first-child{flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0!important}
html.cj-s #demo-banner-text{font-size:11.5px!important;line-height:1.2!important;font-weight:700!important;color:#3D2A00}
html.cj-s #btn-demo-banner-landing{display:none!important}
html.cj-s #btn-demo-banner-upgrade{white-space:nowrap!important;padding:7px 11px!important;font-size:12.5px!important;border-radius:999px!important;background:#1F5E42!important;box-shadow:0 3px 0 #123A28!important}
html.cj-s #btn-demo-banner-upgrade .ik-mahkota{width:20px!important;height:20px!important}

/* ---------- Kad Cikgu lebih padat ---------- */
html.cj-s #seksyen-cikgu{padding-top:10px!important}
html.cj-s #baris-cikgu{padding:9px 10px!important;border-radius:22px!important;box-shadow:0 5px 0 #1A5238!important;border:0!important}
html.cj-s #btn-jantina{display:none!important}
html.cj-s #pilih-papan{display:none!important}
html.cj-s #cj-h-papan #pilih-papan{display:flex!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
html.cj-s #btn-hint-pelajaran .cj-mentol{width:22px;height:22px;flex:none}
html.cj-s #btn-hint-pelajaran .cj-mentol~svg,html.cj-s #btn-hint-pelajaran svg.cj-sorok{display:none!important}

/* ---------- Tab bawah (telefon & tablet) ---------- */
#cj-nav{display:none}
html.cj-s #cj-nav{position:fixed;left:0;right:0;bottom:0;z-index:45;display:flex;align-items:stretch;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -6px 18px rgba(31,94,66,.12);padding:6px 4px calc(8px + env(safe-area-inset-bottom))}
html.cj-s .cj-jenama{display:none}
html.cj-s .cj-tab{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:0;background:none;color:#4F6158;font-weight:800;font-size:12px;line-height:1.1;padding:2px 0;min-height:60px;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.cj-s .cj-tab:focus-visible{outline:3px solid #F2B93B;outline-offset:-3px;border-radius:16px}
html.cj-s .cj-ikon{position:relative;width:56px;height:42px;border-radius:16px;display:flex;align-items:center;justify-content:center;transition:transform .15s}
html.cj-s .cj-ikon img{width:36px;height:36px}
html.cj-s .cj-ikon .cj-dua{position:absolute;width:30px;height:30px;top:6px}
html.cj-s .cj-ikon .cj-dua:first-child{left:7px}
html.cj-s .cj-ikon .cj-dua:last-child{right:7px}
html.cj-s .cj-ikon img.cj-avatar{width:34px;height:34px;border-radius:50%;border:2px solid #F2B93B;object-fit:cover}
html.cj-s .cj-tab.aktif{color:#1F5E42;font-weight:900}
html.cj-s .cj-tab.aktif .cj-ikon{background:#DDF3E6;box-shadow:inset 0 -3px 0 #B5E2C7}
html.cj-s .cj-tab:active .cj-ikon{transform:scale(.92)}

/* ---------- Mod fokus pelajaran ---------- */
#cj-bar-fokus{display:none}
html.cj-s.cj-fokus #demo-mode-top-banner,
html.cj-s.cj-fokus #kepala-app,
html.cj-s.cj-fokus #cj-nav,
html.cj-s.cj-fokus #panel-learn,
html.cj-s.cj-fokus #cj-footer,
html.cj-s.cj-fokus #cj-jaminan{display:none!important}
html.cj-s.cj-fokus body{padding-bottom:20px!important;padding-left:0!important}
html.cj-s.cj-fokus #cj-bar-fokus{position:sticky;top:0;z-index:44;display:flex;align-items:center;gap:10px;padding:8px 12px;background:rgba(238,248,241,.96);backdrop-filter:blur(6px)}
#cj-keluar{flex:none;width:44px;height:44px;border-radius:14px;border:0;background:#fff;color:#4F6158;box-shadow:0 3px 0 #D5E6DC;display:flex;align-items:center;justify-content:center;cursor:pointer}
#cj-tajuk-fokus{flex:1 1 auto;min-width:0;font-weight:800;font-size:17px;color:#1C2B24;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- Helaian Saya + Tetapan ---------- */
#cj-helaian{position:fixed;inset:0;z-index:48;display:none}
#cj-helaian.buka{display:block}
.cj-h-latar{position:absolute;inset:0;background:rgba(12,32,23,.5)}
.cj-h-kertas{position:absolute;left:0;right:0;bottom:0;max-height:90vh;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:28px 28px 0 0;padding:10px 16px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,.2);color:#1C2B24;animation:cjNaik .22s ease-out}
@keyframes cjNaik{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.cj-h-pemegang{width:52px;height:6px;border-radius:999px;background:#CBD7D0;margin:0 auto 10px}
.cj-h-profil{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#2F8A5F,#1F5E42);color:#fff;border-radius:22px;padding:12px;box-shadow:0 5px 0 #143D2B}
.cj-h-profil>img{width:64px;height:64px;border-radius:50%;border:4px solid #F2B93B;object-fit:cover;flex:none;background:#FFF6DC}
.cj-h-nama{font-weight:800;font-size:21px;line-height:1.1}
.cj-h-stat{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.cj-h-stat span{display:inline-flex;align-items:center;gap:3px;background:rgba(255,255,255,.15);border-radius:12px;padding:3px 9px 3px 5px;font-weight:800;font-size:14px}
.cj-h-stat img{width:22px;height:22px}
.cj-h-x{margin-left:auto;align-self:flex-start;flex:none;width:44px;height:44px;border-radius:14px;border:0;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.cj-h-sek{display:flex;align-items:center;gap:8px;font-weight:800;font-size:20px;margin:18px 2px 8px}
.cj-h-sek img{width:34px;height:34px}
.cj-h-baris{width:100%;display:flex;align-items:center;gap:12px;background:#F3FAF6;border:0;border-radius:18px;padding:10px 12px;margin-bottom:8px;box-shadow:inset 0 -3px 0 #DDEDE3;text-align:left;font:inherit;color:inherit;min-height:60px;box-sizing:border-box}
button.cj-h-baris{cursor:pointer}
.cj-h-baris>.cj-h-teks{flex:1 1 auto;min-width:0;font-weight:900;font-size:16px;line-height:1.2}
.cj-h-baris>.cj-h-teks small{display:block;font-weight:700;font-size:12.5px;color:#5B6B63}
.cj-h-baris>img{width:42px;height:42px;flex:none}
.cj-h-jubin{width:42px;height:42px;border-radius:13px;flex:none;background:linear-gradient(180deg,#45B079,#2F8A5F);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #1F5E42}
.cj-h-anak{color:#4F6158;flex:none}
.cj-suis{flex:none;position:relative;width:56px;height:32px;border-radius:999px;border:0;background:#C9D6CF;cursor:pointer;transition:background .15s}
.cj-suis::after{content:"";position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 3px rgba(0,0,0,.2);transition:transform .15s}
.cj-suis[aria-checked="true"]{background:#2F8A5F}
.cj-suis[aria-checked="true"]::after{transform:translateX(24px)}
.cj-pilih{display:flex;gap:6px;flex:none}
.cj-pilih button{display:flex;align-items:center;gap:5px;border:0;border-radius:14px;padding:4px 10px 4px 4px;background:#fff;color:#33463D;font:inherit;font-weight:900;font-size:13.5px;box-shadow:0 2px 0 #D5E6DC;cursor:pointer;min-height:44px}
.cj-pilih button img{width:34px;height:34px;border-radius:11px}
.cj-pilih button[aria-pressed="true"]{background:#1F5E42;color:#fff;box-shadow:0 2px 0 #123A28}
.cj-butang-kecil{flex:none;border:0;border-radius:12px;background:#fff;box-shadow:0 2px 0 #D5E6DC;padding:8px 12px;font:inherit;font-weight:900;font-size:14px;color:#1F5E42;cursor:pointer;min-height:40px}
.cj-h-blok{background:#F3FAF6;border-radius:18px;padding:10px 10px 12px;margin-bottom:8px;box-shadow:inset 0 -3px 0 #DDEDE3}
.cj-h-label{font-weight:900;font-size:16px;margin:0 2px 8px}
.cj-h-pro{width:100%;display:flex;align-items:center;gap:12px;border:0;border-radius:22px;padding:10px 14px 10px 10px;margin:14px 0 8px;background:linear-gradient(135deg,#FFF3C4 0%,#FFE27A 100%);color:#3D2A00;box-shadow:0 5px 0 #D9A92E;font:inherit;text-align:left;cursor:pointer}
.cj-h-pro img{width:52px;height:52px;flex:none}
.cj-h-pro b{display:block;font-weight:800;font-size:19px;line-height:1.1}
.cj-h-pro small{display:block;font-weight:800;font-size:12.5px;color:#6B4A00}
.cj-h-bawah{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}
.cj-h-bawah button{border:0;border-radius:16px;background:#EEF3F0;color:#33463D;font:inherit;font-weight:900;font-size:14px;padding:10px 8px;min-height:48px;cursor:pointer}
.cj-h-bawah button:first-child{grid-column:1/-1;background:#1F5E42;color:#fff;box-shadow:0 3px 0 #123A28;display:flex;align-items:center;justify-content:center;gap:8px}
.cj-h-bawah button:first-child img{width:30px;height:30px}

/* ---------- Laptop / skrin besar: tab jadi panel kiri ---------- */
@media (min-width:1024px){
  html.cj-s body{padding-left:236px!important;padding-bottom:24px!important}
  html.cj-s #cj-nav{top:0;bottom:0;right:auto;width:236px;flex-direction:column;align-items:stretch;gap:6px;border-radius:0 30px 30px 0;background:linear-gradient(180deg,#2F8A5F 0%,#1F5E42 100%);box-shadow:6px 0 24px -12px rgba(20,61,43,.5);padding:20px 14px 20px}
  html.cj-s .cj-jenama{display:flex;align-items:center;gap:10px;padding:0 6px 18px;color:#fff;font-weight:800;font-size:24px}
  html.cj-s .cj-jenama img{width:50px;height:50px;border-radius:50%;box-shadow:0 3px 0 #123A28}
  html.cj-s .cj-jenama b{color:#FFD45E}
  html.cj-s .cj-tab{flex:0 0 auto;flex-direction:row;justify-content:flex-start;gap:12px;min-height:58px;padding:0 12px;border-radius:18px;color:#fff;font-size:18px}
  html.cj-s .cj-tab .cj-ikon{width:44px;height:44px;background:none!important;box-shadow:none!important}
  html.cj-s .cj-tab .cj-ikon .cj-dua{width:28px;height:28px}
  html.cj-s .cj-tab .cj-ikon .cj-dua:first-child{left:-2px}
  html.cj-s .cj-tab .cj-ikon .cj-dua:last-child{right:-2px}
  html.cj-s .cj-tab.aktif{background:#fff;color:#1F5E42;box-shadow:0 4px 0 #123A28}
  html.cj-s .cj-tab:hover:not(.aktif){background:rgba(255,255,255,.1)}
  html.cj-s #cj-tab-saya{margin-top:auto;background:rgba(0,0,0,.2)}
  html.cj-s #cj-tab-saya.aktif{background:#fff}
  html.cj-s #kepala-app>div>div:first-child{visibility:hidden}
  .cj-h-kertas{left:auto;right:24px;bottom:24px;top:24px;width:440px;max-height:none;border-radius:28px;padding-bottom:20px}
}
@media (prefers-reduced-motion:reduce){.cj-h-kertas{animation:none}}
html.cj-s #baris-cikgu{flex-wrap:wrap!important}
html.cj-s #baris-cikgu>div:first-child{flex:1 1 220px!important;width:auto!important;min-width:0!important}
html.cj-s #kawalan-cikgu{margin-left:auto!important}
/* Set buah & tema papan di dalam helaian Tetapan: grid padat */
#cj-h-papan #pilih-papan>div{width:100%!important;display:block!important}
#cj-h-papan .tajuk-menu,#cj-h-papan hr,#cj-h-papan #tema-bulat>span{display:none!important}
#cj-h-papan #pilih-papan>div>div:not(#tema-bulat){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;background:transparent!important;padding:0!important;width:100%!important}
#cj-h-papan .set-btn{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;padding:6px 2px 5px!important;margin:0!important;background:#fff!important;border-radius:14px!important;box-shadow:0 2px 0 #D5E6DC!important;min-height:76px!important;width:auto!important;height:auto!important}
#cj-h-papan .sampel-buah,#cj-h-papan .sampel-buah img,#cj-h-papan .sampel-buah svg{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;margin:0!important}
#cj-h-papan .nama-set{font-size:12px!important;line-height:1.1!important;color:#33463D!important}
#cj-h-papan .set-btn .mahkota{position:absolute!important;top:2px!important;right:4px!important;font-size:12px!important}
#cj-h-papan #tema-bulat{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:10px!important;padding:12px 2px 2px!important}
#cj-h-papan .theme-btn{width:38px!important;height:38px!important;min-width:38px!important}

/* P47b: telefon - nama Cikgu lebih besar, butang kawalan sebaris (ikon sahaja) */
@media (max-width:639px){
  html.cj-s .cj-baris-nama{flex-wrap:nowrap!important;gap:6px!important;min-height:40px}
  html.cj-s .cj-baris-nama>span.font-kid{font-size:17px!important;line-height:1.1!important;white-space:nowrap}
  html.cj-s .cj-baris-nama #kawalan-cikgu{margin-left:auto!important;flex-wrap:nowrap!important;gap:6px!important;width:auto!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu>button{font-size:0!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;border-radius:13px!important;display:inline-flex;align-items:center;justify-content:center;gap:0!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu>button.hidden,html.cj-s .cj-baris-nama #kawalan-cikgu>.hidden{display:none!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu>button svg{width:20px!important;height:20px!important;margin:0!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu>button span{display:none!important}
  html.cj-s #coach-speech-text{margin-top:4px!important;font-size:14px!important}
}
@media (max-width:389px){
  html.cj-s .cj-baris-nama #voice-wave-indicator{display:none!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu{gap:5px!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu>button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  html.cj-s .cj-baris-nama>span.font-kid{font-size:16px!important}
}

/* P47b: telefon/tablet - kad Cikgu di bawah papan, gelembung putih */
@media (max-width:1023px){
  html.cj-s.cj-cikgu-bawah #seksyen-cikgu{display:none!important}
  html.cj-s.cj-cikgu-bawah #baris-cikgu{width:100%;max-width:520px;margin-top:14px;background:#fff!important;background-image:none!important;color:#1C2B24!important;border:0!important;box-shadow:0 5px 0 #D5E6DC,0 8px 20px -12px rgba(20,61,43,.35)!important;border-radius:22px!important}
  html.cj-s.cj-cikgu-bawah #coach-speech-text{color:#1C2B24!important;font-weight:700!important}
  html.cj-s.cj-cikgu-bawah #baris-cikgu span.font-kid.text-amber-300{color:#B7791F!important}
  html.cj-s.cj-cikgu-bawah #voice-wave-indicator{background:#DDF3E6!important}
  html.cj-s.cj-cikgu-bawah #voice-wave-indicator span{background:#2F8A5F!important}
  html.cj-s.cj-cikgu-bawah #btn-replay-voice{background:#2F8A5F!important;color:#fff!important;box-shadow:0 3px 0 #1F5E42!important}
}

/* ---------- P48: Laman Belajar (pilihan C) ---------- */
#cj-laman{display:none}
html.cj-s.cj-laman-on #cj-laman{display:block}
html.cj-s.cj-laman-on #workspace-board-view,html.cj-s.cj-laman-on #seksyen-cikgu{display:none!important}
#cj-laman{max-width:760px;margin:0 auto;padding:4px 0 8px;color:#1C2B24}
.cj-l-sambung{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;border:0;background:#fff;border-radius:22px;padding:8px 8px 8px 10px;box-shadow:0 5px 0 #D5E6DC;text-align:left;font:inherit;color:inherit;cursor:pointer}
.cj-l-muka{width:50px;height:50px;border-radius:50%;border:3px solid #F2B93B;flex:none;object-fit:cover}
.cj-l-st{flex:1 1 auto;min-width:0}
.cj-l-st small{display:block;font-size:11px;font-weight:900;color:#5B6B63;letter-spacing:.06em}
.cj-l-st b{display:block;font-weight:800;font-size:18px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cj-l-main{width:54px;height:54px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;color:#3D2A00;background:radial-gradient(circle at 35% 30%,#FFE9A0 0%,#F2B93B 55%,#D9961A 100%);box-shadow:0 4px 0 #A86F0C}
.cj-l-tajuk{display:flex;align-items:center;margin:18px 2px 8px}
.cj-l-tajuk h2{flex:1;margin:0;font-weight:800;font-size:20px}
.cj-l-tajuk span{display:flex;align-items:center;gap:4px;font-weight:900;font-size:13px;color:#4F6158}
.cj-l-karusel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:14px;padding:10px 40px 14px 14px;margin:0 -12px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.cj-l-karusel::-webkit-scrollbar{display:none}
.cj-l-kad{position:relative;flex:0 0 250px;height:196px;box-sizing:border-box;scroll-snap-align:start;border:0;border-radius:28px;padding:16px;overflow:hidden;text-align:left;font:inherit;cursor:pointer;color:#fff;background:linear-gradient(160deg,#45B079 0%,#2F8A5F 55%,#23704C 100%);box-shadow:0 7px 0 #1A5238;transition:transform .15s}
.cj-l-kad.kunci{color:#3D2A00;background:linear-gradient(160deg,#FFF3C4,#FBE3A0);box-shadow:0 7px 0 #D9A92E}
.cj-l-kad.pilih{outline:4px solid #F2B93B;outline-offset:3px}
.cj-l-kad:active{transform:scale(.97)}
.cj-l-kad small{display:block;font-size:11px;font-weight:900;letter-spacing:.07em;color:#FFE27A;max-width:150px}
.cj-l-kad.kunci small{color:#6B4A00}
.cj-l-kad b{display:block;font-weight:800;font-size:23px;line-height:1.05;margin-top:3px;max-width:140px}
.cj-l-gbr{position:absolute;right:-8px;top:22px;width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 8px 6px rgba(0,0,0,.28))}
.cj-l-kad.kunci .cj-l-gbr{filter:grayscale(1) opacity(.55)}
.cj-l-mahkota{position:absolute;right:12px;top:10px;width:34px;height:34px;z-index:1}
.cj-l-kemajuan{position:absolute;left:16px;right:16px;bottom:14px}
.cj-l-kemajuan>span:first-child{display:flex;justify-content:space-between;font-weight:900;font-size:13px;margin-bottom:5px}
.cj-l-kemajuan i{font-style:normal}
.cj-l-bar{display:block;height:10px;border-radius:999px;background:rgba(0,0,0,.22);overflow:hidden}
.cj-l-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#FFE27A,#F2B93B)}
.cj-l-kad.kunci .cj-l-bar span{background:linear-gradient(90deg,#5CCB8E,#2F8A5F)}
.cj-l-titik{display:flex;justify-content:center;gap:0;margin:-4px 0 8px}
.cj-l-titik button{border:0;background:none;padding:6px 3px;cursor:pointer;line-height:0}
.cj-l-titik span{display:block;width:8px;height:8px;border-radius:999px;background:#B5D9C3;transition:width .2s,background .2s}
.cj-l-titik button.on span{width:22px;background:#2F8A5F}
.cj-l-titik button:hover span{background:#7FBF98}
.cj-l-titik button.on:hover span{background:#2F8A5F}
.cj-l-titik button:focus-visible{outline:2px solid #F2B93B;outline-offset:1px;border-radius:999px}
.cj-l-laluan{background:#fff;border-radius:24px;padding:12px 10px 10px;box-shadow:0 5px 0 #D5E6DC}
.cj-l-laluan h3{margin:0 4px 10px;font-weight:800;font-size:17px}
.cj-l-nod-baris{display:flex;gap:6px;overflow-x:auto;padding:6px 4px 8px;scrollbar-width:none;position:relative}
.cj-l-nod-baris::-webkit-scrollbar{display:none}
.cj-l-nod{flex:0 0 68px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;font:inherit;cursor:pointer;padding:0;color:#33463D}
.cj-l-bulat{position:relative;width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 35% 28%,#FFFFFF 0%,#E3E9E5 60%,#CBD5CF 100%);box-shadow:0 5px 0 #B9C4BE}
.cj-l-bulat img{width:46px;height:46px;margin-top:-8px;object-fit:contain}
.cj-l-nod.siap .cj-l-bulat{background:radial-gradient(circle at 35% 28%,#8EE0B0 0%,#3FA772 55%,#2B7E55 100%);box-shadow:0 5px 0 #1F6B47}
.cj-l-nod.kini .cj-l-bulat{background:radial-gradient(circle at 35% 28%,#FFF1B8 0%,#F7C948 55%,#DE9D1C 100%);box-shadow:0 5px 0 #B07A10,0 0 0 6px rgba(247,201,72,.35)}
.cj-l-nod.kunci .cj-l-bulat>img:first-child{filter:grayscale(1) opacity(.55)}
.cj-l-tanda{position:absolute!important;right:-6px;bottom:-6px;width:24px!important;height:24px!important;margin:0!important}
.cj-l-lbl{font-weight:800;font-size:12px;line-height:1.1;text-align:center;max-width:68px}
.cj-l-nod.kini .cj-l-lbl{color:#B7791F}
.cj-l-sijil{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin-top:14px;border:0;border-radius:22px;padding:10px 14px 10px 10px;background:linear-gradient(135deg,#FFF3C4,#FFE27A);box-shadow:0 5px 0 #D9A92E;color:#3D2A00;text-align:left;font:inherit}
.cj-l-sijil[data-kamus]{cursor:pointer}
.cj-l-sijil:disabled{opacity:1}
.cj-l-sijil img{width:52px;height:52px;flex:none}
.cj-l-sijil b{display:block;font-weight:800;font-size:17px;line-height:1.1}
.cj-l-sijil small{display:block;font-weight:800;font-size:13px;color:#6B4A00}
.cj-l-sambung:focus-visible,.cj-l-kad:focus-visible,.cj-l-nod:focus-visible,.cj-l-sijil:focus-visible{outline:3px solid #F2B93B;outline-offset:3px}
@media (min-width:1024px){
  #cj-laman{padding-top:20px}
  .cj-l-kad{flex-basis:270px;height:210px}
  .cj-l-karusel{margin:0 -4px}
}
/* P48b: set buah dalam Tetapan - yang dipilih menyala + sampel set gambar dibesarkan */
#cj-h-papan .set-btn{transition:transform .12s,background .15s;padding-top:10px!important;min-height:82px!important}
#cj-h-papan .set-btn:active{transform:scale(.93)}
#cj-h-papan .set-btn.shadow{background:#DDF3E6!important;box-shadow:0 0 0 3px #2F8A5F,0 3px 0 #1F5E42!important}
#cj-h-papan .set-btn.shadow .nama-set{color:#1F5E42!important;font-weight:900!important}
#cj-h-papan .set-btn.shadow::before{content:"✓";position:absolute;left:4px;top:3px;width:18px;height:18px;border-radius:50%;background:#2F8A5F;color:#fff;font-size:11px;font-weight:900;line-height:18px;text-align:center}
/* P60: skala 1.4 untuk Diraja/Haiwan/Jeli dibuang - htmlBuahSet (P58) dah seragamkan saiz semua set */
#cj-h-papan .tajuk-menu{display:block!important;grid-column:1/-1!important;white-space:nowrap;margin:6px 2px 2px!important;font-size:12px!important}
#cj-h-papan .theme-btn.ring-2{box-shadow:0 0 0 3px #fff,0 0 0 6px #2F8A5F!important}
#cj-h-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(20px);z-index:49;background:#1F5E42;color:#fff;font-weight:900;font-size:15px;padding:10px 18px;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;white-space:nowrap}
#cj-h-toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
/* P48c: tekan & seret (tetikus) untuk kad modul dan laluan pelajaran */
.cj-l-karusel,.cj-l-nod-baris{cursor:grab}
.cj-l-karusel.cj-seret,.cj-l-nod-baris.cj-seret{cursor:grabbing;scroll-snap-type:none!important;user-select:none;-webkit-user-select:none}
.cj-seret *{pointer-events:none}
#cj-laman img{-webkit-user-drag:none;user-select:none}
@media (min-width:1024px){.cj-l-kad{flex-basis:300px;height:224px}.cj-l-kad b{font-size:26px}.cj-l-gbr{width:136px;height:136px}}

/* P50: anak panah karusel (tetikus sahaja), ikon nod SVG Comel */
html.cj-s .cj-l-karusel-b{position:relative}
html.cj-s .cj-l-anak{display:none}
@media (hover:hover) and (pointer:fine){
  html.cj-s .cj-l-anak{display:flex;align-items:center;justify-content:center;position:absolute;top:calc(50% - 4px);transform:translateY(-50%);z-index:3;width:42px;height:42px;border:0;border-radius:50%;padding:0;cursor:pointer;color:#1F6B47;background:#fff;box-shadow:0 3px 0 #C9D6CE,0 6px 16px rgba(15,60,40,.18);transition:opacity .18s,transform .15s}
  html.cj-s .cj-l-anak.kiri{left:-24px}
  html.cj-s .cj-l-anak.kanan{right:-24px}
  html.cj-s .cj-l-anak:hover{transform:translateY(-50%) scale(1.08)}
  html.cj-s .cj-l-anak:active{transform:translateY(-50%) scale(.95)}
  html.cj-s .cj-l-anak.mati{opacity:0;pointer-events:none}
  html.cj-s .cj-l-anak:focus-visible{outline:3px solid #F2B93B;outline-offset:2px}
}
html.cj-s .cj-l-svg{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin-top:-6px}
html.cj-s .cj-l-svg .piece-svg{width:100%;height:100%;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18))}
html.cj-s .cj-l-nod.kunci .cj-l-svg{filter:grayscale(1) opacity(.55)}

/* ================= P51: Gelanggang, bar lawan, Meter Kuasa, pembukaan, butang ?, panduan buah ================= */
html.cj-s #panel-play{display:none!important}
#cj-gelanggang{display:none}
html.cj-s.cj-gel-on #cj-gelanggang{display:block;max-width:1040px;margin:0 auto 18px}
html.cj-s.cj-gel-on #workspace-board-view,html.cj-s.cj-gel-on #seksyen-cikgu{display:none!important}
.cj-g-tajuk{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:4px 2px 12px}
.cj-g-tajuk h2{font-weight:800;font-size:26px;color:#173A2A;margin:0}
.cj-g-tajuk span{font-weight:700;font-size:14px;color:#4E6B5C}
.cj-g-grid{display:grid;gap:14px}
.cj-g-pentas{position:relative;border-radius:28px;overflow:hidden;height:210px;display:flex;align-items:flex-end;justify-content:center;box-shadow:0 6px 0 rgba(0,0,0,.12)}
.cj-g-pentas>img:first-child{position:absolute;top:0;left:50%;height:100%;width:auto;transform:translateX(-30%)}
.cj-g-belon{position:absolute;left:12px;bottom:12px;max-width:min(64%,330px);background:#fff;color:#1C2B24;border-radius:18px 18px 18px 6px;padding:9px 13px;font-weight:800;font-size:14px;line-height:1.3;box-shadow:0 4px 0 rgba(0,0,0,.1);animation:cjBelon .3s ease-out}
.cj-g-mahkota{position:absolute;right:12px;top:12px;width:44px;height:44px}
.cj-g-kanan{background:#fff;border-radius:26px;padding:16px;box-shadow:0 6px 0 #D6E5DC}
.cj-g-nama{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cj-g-nama b{font-weight:800;font-size:24px;color:#173A2A}
.cj-g-tahap{font-weight:900;font-size:12px;letter-spacing:.04em;padding:4px 10px;border-radius:999px;background:#D7F2E2;color:#1F6B47}
.cj-g-tahap.t2{background:#FFE6C7;color:#8A4B00}.cj-g-tahap.t3{background:#FBD9E2;color:#8C1F3D}.cj-g-tahap.t0{background:#DCEBFB;color:#1D4E89}
.cj-g-des{margin:6px 0 10px;font-weight:700;font-size:14px;color:#4E6B5C;line-height:1.35}
.cj-g-rekod{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.cj-g-rekod span{display:flex;flex-direction:column;align-items:center;background:#F3FAF6;border-radius:14px;padding:6px 4px;font-weight:800;font-size:12px;color:#4E6B5C}
.cj-g-rekod b{font-size:22px;line-height:1.1;color:#173A2A}
.cj-g-cip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.cj-g-c{border:0;background:none;padding:4px 2px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;font:inherit;color:#2D4A3B;border-radius:16px}
.cj-g-cbulat{position:relative;width:62px;height:62px;border-radius:50%;overflow:visible;display:block;box-shadow:0 4px 0 rgba(0,0,0,.12);transition:transform .15s}
.cj-g-cbulat>img:first-child{width:62px;height:62px;border-radius:50%;object-fit:cover;display:block}
.cj-g-ckunci{position:absolute;right:-6px;top:-8px;width:24px;height:24px}
.cj-g-cnama{font-weight:800;font-size:11.5px;line-height:1.15;text-align:center}
.cj-g-c.on .cj-g-cbulat{box-shadow:0 0 0 4px #F2B93B,0 4px 0 rgba(0,0,0,.12);transform:translateY(-2px)}
.cj-g-c.on .cj-g-cnama{color:#B07A10}
.cj-g-c:focus-visible{outline:3px solid #F2B93B;outline-offset:2px}
.cj-g-main{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:20px;padding:15px;font:inherit;font-weight:800;font-size:24px;letter-spacing:.03em;color:#fff;background:linear-gradient(180deg,#45B079,#2F8A5F);box-shadow:0 6px 0 #1A5238;cursor:pointer;transition:transform .1s}
.cj-g-main:active{transform:translateY(3px);box-shadow:0 3px 0 #1A5238}
.cj-g-main.pro{color:#3D2A00;background:linear-gradient(180deg,#FFD55A,#F2B93B);box-shadow:0 6px 0 #B07A10;font-size:20px}
.cj-g-main img{width:30px;height:30px}
.cj-g-main:focus-visible,.cj-g-sambung:focus-visible{outline:3px solid #F2B93B;outline-offset:3px}
.cj-g-sambung{display:block;margin:12px auto 0;border:0;background:none;font:inherit;font-weight:800;font-size:14px;color:#2F8A5F;text-decoration:underline;cursor:pointer;padding:6px}
@media (min-width:1024px){
  .cj-g-grid{grid-template-columns:1.1fr 1fr;align-items:stretch}
  .cj-g-pentas{height:auto;min-height:400px}
  .cj-g-pentas>img:first-child{transform:translateX(-50%)}
  .cj-g-belon{font-size:16px;left:18px;bottom:18px}
  .cj-g-kanan{padding:22px;display:flex;flex-direction:column}
  .cj-g-cip{margin-top:auto}
  .cj-g-cbulat,.cj-g-cbulat>img:first-child{width:72px;height:72px}
  .cj-g-cnama{font-size:13px}
}
@keyframes cjBelon{from{transform:scale(.85) translateY(6px);opacity:0}to{transform:none;opacity:1}}

/* Bar lawan atas papan */
#cj-lawan-bar,#cj-meter{display:none}
html.cj-s.cj-main-on #cj-lawan-bar{display:flex;align-items:center;gap:9px;width:100%;max-width:520px;box-sizing:border-box;margin:12px auto 0;padding:8px;background:#fff;border-radius:22px;box-shadow:0 4px 0 #D6E5DC}
.cj-lb-av{position:relative;flex:none;width:54px;height:54px;border-radius:50%;border:0;padding:0;cursor:pointer;background:#BFE8D2;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.cj-lb-av img{width:54px;height:54px;border-radius:50%;object-fit:cover;display:block}
.cj-lb-tukar{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:50%;background:#2F8A5F;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 #1A5238}
.cj-lb-tukar svg{width:15px;height:15px}
.cj-lb-teks{flex:1;min-width:0}
.cj-lb-teks b{display:block;font-weight:800;font-size:14px;color:#173A2A;line-height:1.1}
.cj-lb-belon{position:relative;margin-top:3px;max-width:100%;width:fit-content;box-sizing:border-box;background:#F1F7F3;color:#1C2B24;border-radius:6px 14px 14px 14px;padding:4px 9px;font-weight:700;font-size:12.5px;line-height:1.3;transition:opacity .4s;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cj-lb-belon:empty{display:none}
.cj-lb-belon.pop{animation:cjBelon .28s ease-out}
.cj-lb-belon.pudar{opacity:.55}
.cj-lb-alat{display:flex;gap:6px;flex:none}
.cj-lb-alat button{width:40px;height:40px;border-radius:14px;border:0;background:#EEF6F1;color:#1F6B47;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.cj-lb-alat button.mati{background:#ECEFF1;color:#8A97A0}
.cj-lb-alat button:focus-visible,.cj-lb-av:focus-visible{outline:3px solid #F2B93B;outline-offset:2px}
@media (max-width:639px){.cj-lb-alat{gap:4px}.cj-lb-alat button{width:36px;height:36px;border-radius:12px}.cj-lb-alat svg{width:20px;height:20px}.cj-lb-av,.cj-lb-av img{width:46px;height:46px}}
/* Meter Kuasa (menegak, kiri papan) */
html.cj-s.cj-main-on #cj-meter{display:block;position:absolute;z-index:2;width:8px;box-sizing:border-box;border:2px solid #2B2F33;border-radius:999px;background:#2B2F33;overflow:hidden;box-shadow:0 2px 0 rgba(0,0,0,.12)}
#cj-meter span{position:absolute;left:0;right:0;bottom:0;height:50%;background:linear-gradient(90deg,#fff,#E3EAED);transition:height .45s cubic-bezier(.3,1.4,.5,1)}
#cj-meter i{position:absolute;left:-2px;right:-2px;top:50%;height:2px;background:#F2B93B;opacity:.9}
#cj-meter b{display:none}
@media (min-width:1024px){
  html.cj-s.cj-main-on #cj-meter{width:14px}
  html.cj-s.cj-main-on .cj-lajur-papan{padding-left:22px}
  html.cj-s #slot-kawalan-kiri #baris-cikgu>div:first-child{flex-basis:165px!important}
  #cj-meter b{display:block;position:absolute;left:0;right:0;text-align:center;font:800 9px/1 system-ui,sans-serif;letter-spacing:-.02em}
  #cj-meter.putih b{bottom:5px;color:#1F6B47}
  #cj-meter.hitam b{top:5px;color:#fff}
}
.cj-buka{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin-top:5px;font-weight:800;font-size:12px;color:#173A2A;min-width:0}
.cj-buka em{font-style:normal;font-size:11px;font-weight:900;color:#1F6B47;background:#D7F2E2;border-radius:999px;padding:2px 8px}
.cj-buka[hidden]{display:none}

/* Butang ? + helaian panduan buah */
.cj-tanya{cursor:pointer}
.cj-tanya-fokus{margin-left:auto;flex:none;width:40px;height:40px;border-radius:14px;border:0;background:#fff;color:#1F6B47;display:none;align-items:center;justify-content:center;box-shadow:0 3px 0 #D6E5DC}
#cj-panduan{position:fixed;inset:0;z-index:49;display:none}
#cj-panduan.buka{display:block}
.cj-pd-atas{display:flex;align-items:center;gap:10px}
.cj-pd-atas h2{font-weight:800;font-size:21px;margin:0;color:#173A2A}
.cj-pd-x{margin-left:auto;width:44px;height:44px;border-radius:14px;border:0;background:#EEF6F1;color:#1F6B47;display:flex;align-items:center;justify-content:center;cursor:pointer}
.cj-pd-sub{margin:4px 0 10px;font-weight:700;font-size:14px;color:#4E6B5C}
#cj-pd-isi #cj-blok-buah{display:block!important;margin:0!important;max-width:none!important;border:0!important;box-shadow:none!important;padding:0!important;background:none!important}
#cj-pd-isi #cj-blok-buah>div:first-child{display:none}
#cj-pd-isi .quick-piece-btn{padding:12px 6px!important}
#cj-pd-isi .quick-piece-btn>div:first-of-type{font-size:15px!important}
@media (max-width:1023px){
  html.cj-s #cj-blok-buah{display:none}
  html.cj-s .cj-tanya-fokus{display:flex}
}
@media (min-width:1024px){ .cj-lb-alat .cj-tanya{display:none} }
@media (min-width:1024px){html.cj-s.cj-main-on #cj-lawan-bar{max-width:none;margin:14px 0 0}}
/* P52: label menu huruf besar */
html.cj-s .cj-tab>span:last-child{text-transform:uppercase;letter-spacing:.03em}

/* ---------- P55/P57b: jalur demo. Kiri: label MOD DEMO PERCUMA + teks ringkas 2 baris di bawahnya. Kanan: butang Pakej penuh/RM49 + rumah ---------- */
html.cj-s #demo-mode-top-banner>div{display:grid!important;grid-template-columns:1fr auto auto;grid-template-areas:"label beli rumah" "teks beli rumah";align-items:center;gap:3px 8px!important}
html.cj-s #demo-mode-top-banner>div>div:first-child{display:contents!important}
html.cj-s #demo-mode-top-banner>div>div:first-child>span:first-child{grid-area:label;justify-self:start;align-self:end;font-size:11.5px!important;padding:3px 10px!important}
html.cj-s #demo-banner-text{display:none!important}
#cj-demo-ringkas{grid-area:teks;align-self:start;display:flex;flex-direction:column;align-items:flex-start;text-align:left;font-size:12.5px;font-weight:700;line-height:1.2;color:#3D2A00;padding-left:3px;min-width:0}
html.cj-s #demo-mode-top-banner>div>div:last-child{grid-area:beli}
html.cj-s #demo-mode-top-banner #btn-demo-banner-upgrade{display:flex!important;align-items:center;gap:7px;padding:5px 14px 5px 10px!important;border-radius:16px!important;line-height:1}
html.cj-s #demo-mode-top-banner #btn-demo-banner-upgrade .ik-mahkota{width:24px!important;height:24px!important}
.cj-pakej{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.cj-pakej span{font-size:11.5px;font-weight:800;opacity:.92}
.cj-pakej b{font-size:17px;font-weight:900;color:#FFE27A;line-height:1.05}
#cj-rumah{grid-area:rumah;width:46px;height:46px;border:0;border-radius:15px;background:#fff;box-shadow:0 3px 0 rgba(160,100,0,.35);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
#cj-rumah img{width:34px;height:34px}
#cj-rumah:active{transform:scale(.94)}
#cj-rumah:focus-visible{outline:3px solid #1F5E42;outline-offset:2px}
@media (min-width:1024px){
  html.cj-s #demo-mode-top-banner>div{grid-template-columns:auto 1fr auto auto;grid-template-areas:"label teks beli rumah";gap:6px 10px!important}
  html.cj-s #demo-mode-top-banner>div>div:first-child>span:first-child{align-self:center}
  #cj-demo-ringkas{align-self:center;flex-direction:row;gap:4px;font-size:13px}
}

/* ---------- P55: senarai pelajaran modul ---------- */
.cj-m-senarai{display:flex;flex-direction:column;gap:10px}
.cj-m-baris{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;border:0;border-radius:22px;padding:10px 12px 10px 10px;background:#fff;box-shadow:0 5px 0 #D5E6DC;text-align:left;font:inherit;color:#1C2B24;cursor:pointer;min-height:76px;transition:transform .12s}
.cj-m-baris:active{transform:scale(.98)}
.cj-m-baris:focus-visible{outline:3px solid #F2B93B;outline-offset:3px}
.cj-m-ikon{flex:none;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 35% 28%,#FFFFFF 0%,#E3E9E5 60%,#CBD5CF 100%);box-shadow:0 4px 0 #B9C4BE}
.cj-m-ikon img{width:44px;height:44px;object-fit:contain;margin-top:-4px}
.cj-m-ikon .cj-l-svg{width:50px!important;height:50px!important;margin-top:-4px!important}
.cj-m-teks{flex:1 1 auto;min-width:0}
.cj-m-teks b{display:block;font-weight:800;font-size:18px;line-height:1.15}
.cj-m-teks small{display:block;font-weight:700;font-size:13px;color:#5B6B63;margin-top:2px;line-height:1.2}
.cj-m-st{flex:none;display:flex;align-items:center;justify-content:center;min-width:40px}
.cj-m-st img{width:34px;height:34px}
.cj-m-pil{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#3D2A00;background:radial-gradient(circle at 35% 30%,#FFE9A0 0%,#F2B93B 55%,#D9961A 100%);box-shadow:0 3px 0 #A86F0C}
.cj-m-baris.siap .cj-m-ikon{background:radial-gradient(circle at 35% 28%,#8EE0B0 0%,#3FA772 55%,#2B7E55 100%);box-shadow:0 4px 0 #1F6B47}
.cj-m-baris.kini{background:#FFF8DF;box-shadow:0 5px 0 #E8C35A,0 0 0 3px #F2B93B inset}
.cj-m-baris.kini .cj-m-ikon{background:radial-gradient(circle at 35% 28%,#FFF1B8 0%,#F7C948 55%,#DE9D1C 100%);box-shadow:0 4px 0 #B07A10}
.cj-m-baris.kunci{background:#F6F4EC}
.cj-m-baris.kunci .cj-m-ikon>*{filter:grayscale(1) opacity(.55)}
.cj-m-baris.kunci .cj-m-teks b{color:#5B6B63}
.cj-m-baris.cj-m-mula{background:linear-gradient(135deg,#E6F7EE,#D2F0E0);box-shadow:0 5px 0 #A9D9BE}
.cj-l-petunjuk{margin:2px 0 6px;text-align:center;font-weight:800;font-size:14px;color:#4F6158}

/* Laman modul */
#cj-laman.cj-m-on{padding-top:6px}
.cj-m-atas{display:flex;align-items:center;gap:12px;margin:2px 0 12px;background:linear-gradient(160deg,#45B079 0%,#2F8A5F 55%,#23704C 100%);border-radius:24px;padding:12px;color:#fff;box-shadow:0 6px 0 #1A5238}
.cj-m-balik{flex:none;width:48px;height:48px;border-radius:16px;border:0;background:rgba(255,255,255,.18);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.cj-m-balik:active{transform:scale(.94)}
.cj-m-balik:focus-visible{outline:3px solid #F2B93B;outline-offset:2px}
.cj-m-tajuk{flex:1 1 auto;min-width:0}
.cj-m-tajuk small{display:block;font-size:11px;font-weight:900;letter-spacing:.07em;color:#FFE27A}
.cj-m-tajuk h2{margin:2px 0 0;font-weight:800;font-size:23px;line-height:1.05}
.cj-m-gbr{flex:none;width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 6px 5px rgba(0,0,0,.25))}
.cj-m-kemajuan{margin:0 4px 14px}
.cj-m-kemajuan>span:first-child{display:flex;justify-content:space-between;font-weight:900;font-size:13px;color:#33463D;margin-bottom:5px}
.cj-m-kemajuan i{font-style:normal}
.cj-m-kemajuan .cj-l-bar{background:#D5E6DC}

@media (min-width:1024px){.cj-m-senarai{display:grid;grid-template-columns:1fr 1fr}.cj-m-baris.cj-m-mula{grid-column:1/-1}}

/* ---------- P56: laman Belajar ikut saiz skrin PC (≥1024px): saiz ikut lebar skrin (vw), membesar hingga skrin 2560px. Telefon/tablet kekal. ---------- */
@media (min-width:1024px){
  html.cj-s.cj-laman-on main{max-width:min(2400px,100%)!important}
  #cj-laman{max-width:min(2200px,100%);padding-left:clamp(0px,1.5vw,38px);padding-right:clamp(0px,1.5vw,38px)}
  .cj-l-sambung{padding:clamp(8px,.8vw,20px) clamp(8px,.8vw,20px) clamp(8px,.8vw,20px) clamp(10px,1vw,26px);gap:clamp(10px,1vw,26px);border-radius:clamp(22px,2vw,51px)}
  .cj-l-muka{width:clamp(50px,4.4vw,113px);height:clamp(50px,4.4vw,113px)}
  .cj-l-st small{font-size:clamp(11px,.85vw,22px)}
  .cj-l-st b{font-size:clamp(18px,1.6vw,41px)}
  .cj-l-main{width:clamp(54px,4.8vw,123px);height:clamp(54px,4.8vw,123px)}
  .cj-l-main svg{width:clamp(22px,2vw,51px);height:clamp(22px,2vw,51px)}
  .cj-l-tajuk{margin:clamp(18px,1.8vw,46px) 2px clamp(8px,.8vw,20px)}
  .cj-l-tajuk h2{font-size:clamp(20px,1.8vw,46px)}
  .cj-l-tajuk span{font-size:clamp(13px,1vw,26px)}
  .cj-l-karusel{gap:clamp(14px,1.3vw,33px)}
  .cj-l-kad{flex-basis:clamp(300px,25vw,640px);height:clamp(224px,18.5vw,474px);padding:clamp(16px,1.5vw,38px);border-radius:clamp(28px,2.4vw,61px)}
  .cj-l-kad small{font-size:clamp(11px,.85vw,22px);max-width:58%}
  .cj-l-kad b{font-size:clamp(26px,2.3vw,59px);max-width:58%}
  .cj-l-gbr{width:clamp(136px,11.5vw,294px);height:clamp(136px,11.5vw,294px);top:clamp(22px,2vw,51px)}
  .cj-l-mahkota{width:clamp(34px,2.8vw,72px);height:clamp(34px,2.8vw,72px)}
  .cj-l-kemajuan{left:clamp(16px,1.5vw,38px);right:clamp(16px,1.5vw,38px);bottom:clamp(14px,1.3vw,33px)}
  .cj-l-kemajuan>span:first-child{font-size:clamp(13px,1vw,26px)}
  .cj-l-bar{height:clamp(10px,.8vw,20px)}
  .cj-l-titik span{width:clamp(8px,.6vw,15px);height:clamp(8px,.6vw,15px)}
  .cj-l-titik button.on span{width:clamp(22px,1.7vw,44px)}
  .cj-l-petunjuk{font-size:clamp(14px,1.1vw,28px)}
  /* Laman modul */
  .cj-m-atas{padding:clamp(12px,1.2vw,31px);gap:clamp(12px,1.2vw,31px);border-radius:clamp(24px,2vw,51px)}
  .cj-m-balik{width:clamp(48px,3.8vw,97px);height:clamp(48px,3.8vw,97px)}
  .cj-m-tajuk small{font-size:clamp(11px,.85vw,22px)}
  .cj-m-tajuk h2{font-size:clamp(23px,2.2vw,56px)}
  .cj-m-gbr{width:clamp(64px,6vw,154px);height:clamp(64px,6vw,154px)}
  .cj-m-kemajuan>span:first-child{font-size:clamp(13px,1vw,26px)}
  .cj-m-senarai{gap:clamp(10px,1vw,26px)}
  .cj-m-baris{min-height:clamp(76px,6.6vw,169px);padding:clamp(10px,.9vw,23px) clamp(12px,1.1vw,28px) clamp(10px,.9vw,23px) clamp(10px,.9vw,23px);gap:clamp(12px,1.1vw,28px);border-radius:clamp(22px,1.8vw,46px)}
  .cj-m-ikon{width:clamp(58px,5vw,128px);height:clamp(58px,5vw,128px)}
  .cj-m-ikon img{width:clamp(44px,3.8vw,97px);height:clamp(44px,3.8vw,97px)}
  .cj-m-ikon .cj-l-svg{width:clamp(50px,4.3vw,110px)!important;height:clamp(50px,4.3vw,110px)!important}
  .cj-m-teks b{font-size:clamp(18px,1.45vw,37px)}
  .cj-m-teks small{font-size:clamp(13px,1vw,26px)}
  .cj-m-st img,.cj-m-pil{width:clamp(40px,3.2vw,82px);height:clamp(40px,3.2vw,82px)}
  .cj-l-sijil{padding:clamp(10px,1vw,26px) clamp(14px,1.3vw,33px) clamp(10px,1vw,26px) clamp(10px,1vw,26px);border-radius:clamp(22px,1.8vw,46px)}
  .cj-l-sijil img{width:clamp(52px,4.4vw,113px);height:clamp(52px,4.4vw,113px)}
  .cj-l-sijil b{font-size:clamp(17px,1.4vw,36px)}
  .cj-l-sijil small{font-size:clamp(13px,1vw,26px)}
}

/* ---------- P56 (2 Nov): telefon - bar lawan di atas papan (padat, butang sebaris nama); butang Cikgu lebih kecil ---------- */
html.cj-s #tawanan-bawah:empty{min-height:0;padding:0}
@media (max-width:1023px){
  html.cj-s.cj-main-on #cj-lawan-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"av nama alat" "av belon belon" "av buka buka";align-items:center;column-gap:9px;row-gap:3px;margin:4px auto 2px;padding:6px 8px;border-radius:18px;box-shadow:0 3px 0 #D6E5DC}
  html.cj-s.cj-main-on #cj-lawan-bar .cj-lb-teks{display:contents}
  #cj-lawan-bar .cj-lb-av{grid-area:av;align-self:start;width:42px;height:42px}
  #cj-lawan-bar .cj-lb-av img{width:42px;height:42px}
  #cj-lawan-bar .cj-lb-tukar{width:18px;height:18px;right:-3px;bottom:-3px}
  #cj-lawan-bar .cj-lb-tukar svg{width:11px;height:11px}
  #cj-lawan-bar #cj-lb-nama{grid-area:nama;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #cj-lawan-bar .cj-lb-belon{grid-area:belon;margin-top:0;-webkit-line-clamp:3}
  #cj-lawan-bar .cj-buka{grid-area:buka;margin-top:0}
  #cj-lawan-bar .cj-lb-alat{grid-area:alat;gap:5px}
  #cj-lawan-bar .cj-lb-alat button{width:30px;height:30px;border-radius:10px}
  #cj-lawan-bar .cj-lb-alat svg{width:17px;height:17px}
}
@media (max-width:639px){
  html.cj-s .cj-baris-nama{min-height:30px!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu>button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:11px!important}
  html.cj-s .cj-baris-nama #kawalan-cikgu>button svg{width:17px!important;height:17px!important}
  html.cj-s.cj-cikgu-bawah #baris-cikgu{margin-top:8px}
}

/* P56c (2 Nov): tirai pemuatan - sorok paparan lama (papan + senarai 30 pelajaran) sementara app menentukan skrin.
   Buka bila html.cj-sedia (susun.js). Sandaran CSS: terbuka sendiri selepas 8 saat walaupun JS gagal. */
html.cj-s:not(.cj-sedia) main,html.cj-s:not(.cj-sedia) #seksyen-cikgu{visibility:hidden;animation:cjTirai 0s 8s forwards}
html.cj-s:not(.cj-sedia) body::after{content:'';position:fixed;left:50%;top:42%;z-index:5;width:42px;height:42px;margin:-21px 0 0 -21px;box-sizing:border-box;border:5px solid #CFE9DA;border-top-color:#2F8A5F;border-radius:50%;animation:cjPusing .8s linear infinite,cjTiraiHilang 0s 8s forwards;pointer-events:none}
@keyframes cjTirai{to{visibility:visible}}
@keyframes cjTiraiHilang{to{visibility:hidden;opacity:0}}
@keyframes cjPusing{to{transform:rotate(360deg)}}

/* P60: popup Lihat cara bergerak (Kamus) */
@keyframes mcbMuncul{from{opacity:0}to{opacity:1}}
#modal-cara-buah.hidden{display:none!important}
/* P61: saiz buah ikut papan utama (tiada paksa 86%); gelang lebih nipis untuk petak kecil */
#modal-cara-buah .capture-ring{border-width:3px;width:90%;height:90%}
#modal-cara-buah .move-dot{width:28%;height:28%;background-color:rgba(15,23,42,.32)}

/* P64: butang Mod Berlatih pada baris pelajaran berpandu */
.cj-m-latih{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;margin-top:6px;padding:5px 11px;border-radius:999px;background:#EEE8FF;color:#4C2E9E;font-weight:800;font-size:13px;line-height:1.2;box-shadow:0 3px 0 #C9B8F5;white-space:nowrap;cursor:pointer}
.cj-m-latih:active{transform:translateY(2px);box-shadow:0 1px 0 #C9B8F5}
.cj-m-latih:focus-visible{outline:3px solid #F2B93B;outline-offset:2px}

/* P84: sasaran sentuh ≥44px untuk jari anak 5–9 tahun (Latihan lagi / Saya dah tahu). Butang baris nama cikgu kekal 32px (keputusan reka bentuk awal, !important) */
#btn-jana-latihan,#btn-jana-lompat{min-height:44px}

/* P105 Mod Pantas: butang kilat dalam kad Cikgu. OFF = putih bersempadan hijau, ON = emas */
html.cj-s #btn-pantas{background:#fff!important;color:#2F8A5F!important;border:2px solid #2F8A5F!important;box-shadow:0 3px 0 #1F5E42!important}
html.cj-s #btn-pantas[aria-pressed="true"]{background:#FBBF24!important;color:#3B2A00!important;border-color:#B7791F!important;box-shadow:0 3px 0 #B7791F!important}
