/* Tunas Cerdik: Design v2 (app). Rujuk DESIGN.md. */
:root {
  --green: #2EBD59; --green-d: #1F9A45; --green-l: #D7F5DF;
  --blue: #2B9CF2; --blue-d: #1C7ACB; --blue-l: #DDF0FE; --blue-b: #9ED3FB;
  --yellow: #FFC53D; --yellow-d: #E0A21B; --yellow-l: #FFF4D6;
  --orange: #FF8A1F; --orange-d: #D9700F;
  --red: #F05252; --red-d: #C93A3A; --red-l: #FFE3E3;
  --purple: #9B6BFF; --purple-d: #7A4FE0; --purple-l: #F1EAFF;
  --ink: #3C3C3C; --ink2: #777; --ink3: #AFAFAF; --line: #E5E5E5; --gray: #E5E5E5; --gray-d: #C9C9C9; --bg: #fff; --soft: #F7F7F7;
  --r: 16px; --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; --ar: "Noto Naskh Arabic", "Geeza Pro", serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 700; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
.ar { font-family: var(--ar); direction: rtl; }
.app { min-height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; position: relative; }
.muted { color: var(--ink2); } .small { font-size: 14px; } .center { text-align: center; }
h1, h2, h3 { font-weight: 900; line-height: 1.2; margin: 0; text-wrap: balance; }
.ic { flex: none; }

/* ---------- Butang 3D ---------- */
.b3 { --c: var(--green); --cd: var(--green-d); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: var(--r); padding: 14px 18px; min-height: 52px; cursor: pointer;
  background: var(--c); color: var(--t); box-shadow: 0 5px 0 var(--cd);
  font-weight: 900; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .06s, box-shadow .06s; }
.b3:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd); }
.b3.blue { --c: var(--blue); --cd: var(--blue-d); } .b3.red { --c: var(--red); --cd: var(--red-d); } .b3.purple { --c: var(--purple); --cd: var(--purple-d); }
.b3.yellow { --c: var(--yellow); --cd: var(--yellow-d); --t: #6B4A0A; }
.b3.ghost { --c: #fff; --cd: var(--line); --t: var(--blue); border: 2px solid var(--line); }
.b3:disabled, .b3.off { --c: var(--gray); --cd: var(--gray-d); --t: var(--ink3); cursor: default; }
.b3.sm { min-height: 40px; padding: 8px 12px; font-size: 13px; width: auto; }
.linkb { background: none; border: 0; color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; cursor: pointer; padding: 12px; }
.iconb { width: 44px; height: 44px; border: 0; background: none; color: var(--ink3); display: grid; place-items: center; cursor: pointer; border-radius: 12px; }
.iconb:hover { background: var(--soft); }

/* ---------- Bar atas & navigasi bawah ---------- */
.topbar { position: sticky; top: 0; z-index: 5; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 2px solid var(--line); }
.topbar .stat { display: flex; align-items: center; gap: 5px; font-weight: 900; font-size: 16px; }
.topbar .stat.fire { color: var(--orange); } .topbar .stat.star { color: var(--yellow-d); } .topbar .stat.xp { color: var(--purple); }
.who { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 3px 10px 3px 3px; background: #fff; cursor: pointer; font-weight: 900; }
.av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 900; font-size: 16px; flex: none; }
.av.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 32px; }
.av img, .av .illus { width: 100%; height: 100%; }
.tabs-nav { position: sticky; bottom: 0; z-index: 5; background: #fff; display: flex; justify-content: space-around; border-top: 2px solid var(--line); padding: 8px 0 max(10px, env(safe-area-inset-bottom)); margin-top: auto; }
.tabs-nav button { border: 2px solid transparent; background: none; border-radius: 12px; width: 56px; height: 46px; display: grid; place-items: center; cursor: pointer; }
.tabs-nav button.on { background: var(--blue-l); border-color: var(--blue-b); }
.main { flex: 1; padding: 0 16px 24px; }

/* ---------- Laluan (path) ---------- */
.unit-banner { --c: var(--green); --cd: var(--green-d); margin: 16px 0 6px; background: var(--c); color: #fff; border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 4px 0 var(--cd); }
.unit-banner small { display: block; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.unit-banner b { font-size: 19px; font-weight: 900; }
.unit-banner .guide { width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .45); display: grid; place-items: center; flex: none; }
.c-green { --c: var(--green); --cd: var(--green-d); } .c-blue { --c: var(--blue); --cd: var(--blue-d); } .c-yellow { --c: var(--yellow); --cd: var(--yellow-d); }
.c-orange { --c: var(--orange); --cd: var(--orange-d); } .c-purple { --c: var(--purple); --cd: var(--purple-d); } .c-red { --c: var(--red); --cd: var(--red-d); }
.path { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px 0 34px; }
.pnode { position: relative; width: 72px; height: 66px; border: 0; background: none; cursor: pointer; padding: 0; transform: translateX(var(--x, 0)); }
.pnode .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--c); box-shadow: 0 7px 0 var(--cd); display: grid; place-items: center; color: #fff; transition: transform .06s, box-shadow .06s; }
.pnode:active .disc { transform: translateY(5px); box-shadow: 0 2px 0 var(--cd); }
.pnode.done { --c: var(--yellow); --cd: var(--yellow-d); }
.pnode.cur { --c: var(--node-c, var(--green)); --cd: var(--node-cd, var(--green-d)); }
.pnode.lock { --c: var(--gray); --cd: var(--gray-d); cursor: not-allowed; }
.pnode.cur::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 7px solid var(--line); }
.pnode .ring { position: absolute; inset: -11px; border-radius: 50%; }
.pnode .lbl { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 5px 12px; font-weight: 900; font-size: 14px; color: var(--green); white-space: nowrap; animation: bob 1.6s ease-in-out infinite; }
.pnode .lbl::after { content: ""; position: absolute; bottom: -8px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
@keyframes bob { 50% { transform: translate(-50%, -5px); } }
.path .mascot-side { position: absolute; width: 104px; pointer-events: none; }
.node-name { font-size: 13px; color: var(--ink2); text-align: center; margin-top: 12px; max-width: 140px; transform: translateX(var(--x, 0)); }
.pwrap { display: flex; flex-direction: column; align-items: center; position: relative; }
.pwrap .mascot-side { position: absolute; top: -18px; pointer-events: none; }

/* ---------- Pelajaran ---------- */
.lesson { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.lesson-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.pbar { flex: 1; height: 16px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pbar span { display: block; height: 100%; background: var(--green); border-radius: 99px; position: relative; transition: width .35s ease; min-width: 16px; }
.pbar span::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .35); }
.lesson-body { flex: 1; padding: 18px 16px 12px; }
.prompt { font-size: 22px; font-weight: 900; margin: 0 0 16px; }
.speak-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.speakb { width: 72px; height: 64px; border: 0; border-radius: 18px; background: var(--blue); box-shadow: 0 5px 0 var(--blue-d); display: grid; place-items: center; cursor: pointer; flex: none; }
.speakb:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--blue-d); }
.speakb.sm { width: 52px; height: 48px; border-radius: 14px; }
.bubble { border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; font-size: 18px; position: relative; }
.bubble::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: var(--line); border-left: 0; }
.stage-show { display: flex; justify-content: center; align-items: center; margin: 4px 0 18px; min-height: 60px; flex-wrap: wrap; gap: 6px; }
.big-glyph { font-size: 104px; font-weight: 900; line-height: 1.1; }
.big-glyph.ar { font-size: 110px; line-height: 1.5; font-weight: 700; }
.big-word { font-size: 52px; font-weight: 900; }
.seq, .sum { font-size: 44px; font-weight: 900; }
.count { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; max-width: 340px; }
.count .op { font-size: 34px; color: var(--ink2); margin: 0 6px; }
.ctr { display: inline-block; } .ctr.gone { opacity: .25; filter: grayscale(1); position: relative; }
.ctr.gone::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 4px solid var(--red); transform: rotate(-35deg); }
.blocks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: flex-end; max-width: 320px; }
.blocks .ten { width: 16px; height: 120px; border-radius: 5px; background: repeating-linear-gradient(var(--blue) 0 10px, var(--blue-d) 10px 12px); }
.blocks .one { width: 16px; height: 16px; border-radius: 4px; background: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow-d); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts.n3 { grid-template-columns: 1fr; }
.opt { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: var(--r); background: #fff; padding: 14px 8px; min-height: 84px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 900; font-size: 30px; transition: transform .06s; }
.opts.n3 .opt { min-height: 66px; font-size: 26px; flex-direction: row; }
.opt.ar-opt span { font-family: var(--ar); font-size: 46px; line-height: 1.5; font-weight: 700; }
.opt.img-opt { padding: 10px; }
.opt:active:not(:disabled) { transform: translateY(3px); border-bottom-width: 2px; }
.opt.sel { border-color: var(--blue-b); background: var(--blue-l); color: var(--blue-d); }
.opt.right { border-color: #8FDCA8; background: var(--green-l); color: var(--green-d); }
.opt.wrong { border-color: #F7A8A8; background: var(--red-l); color: var(--red-d); animation: shake .35s; }
.opt:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.shake { animation: shake .35s; }

.slots { display: flex; gap: 10px; justify-content: center; margin: 6px 0 22px; }
.slot { min-width: 88px; height: 70px; border-bottom: 3px solid var(--ink3); display: grid; place-items: center; font-size: 34px; font-weight: 900; }
.slot.full { border-bottom-color: var(--blue); color: var(--blue-d); }
.slots.right .slot { border-bottom-color: var(--green); color: var(--green-d); }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tile { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 14px; background: #fff; min-width: 84px; padding: 12px 14px; font-size: 30px; font-weight: 900; cursor: pointer; }
.tile:disabled { background: var(--line); color: transparent; border-color: var(--line); }

.trace-wrap { position: relative; width: 100%; touch-action: none; border: 2px solid var(--line); border-radius: var(--r); background: #fff; }
.trace-wrap canvas { position: absolute; inset: 0; }

/* Kaki pelajaran & panel keputusan */
.lesson-foot { position: sticky; bottom: 0; border-top: 2px solid var(--line); padding: 16px 16px max(18px, env(safe-area-inset-bottom)); background: #fff; transition: background .15s, border-color .15s; }
.lesson-foot .res { display: none; align-items: center; gap: 12px; margin-bottom: 14px; }
.lesson-foot.ok { background: var(--green-l); border-color: var(--green-l); } .lesson-foot.no { background: var(--red-l); border-color: var(--red-l); }
.lesson-foot.ok .res, .lesson-foot.no .res { display: flex; }
.res .badge { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.res b { font-size: 22px; font-weight: 900; display: block; }
.lesson-foot.ok .res { color: var(--green-d); } .lesson-foot.no .res { color: var(--red-d); }
.res .sub { font-size: 16px; font-weight: 800; }
.foot-row { display: flex; gap: 12px; }

/* Kad pengenalan */
.flash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 12px; }
.flash { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: var(--r); background: #fff; padding: 10px 6px; min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.flash .g { font-size: 36px; font-weight: 900; line-height: 1.1; } .flash .g.ar { font-family: var(--ar); font-size: 44px; line-height: 1.4; font-weight: 700; }
.flash small { font-size: 13px; color: var(--ink2); }
.flash.seen { border-color: var(--blue-b); background: var(--blue-l); }
.flash.pop { animation: pop .3s; } @keyframes pop { 50% { transform: scale(1.06); } }
.dots { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 70px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

/* Skrin tamat */
.done { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.done-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 14px; position: relative; overflow: hidden; }
.done-body h1 { color: var(--yellow-d); font-size: 30px; }
.stat-cards { display: flex; gap: 10px; width: 100%; max-width: 420px; }
.scard { --c: var(--yellow-d); flex: 1; border: 2px solid var(--c); border-radius: 14px; overflow: hidden; }
.scard small { display: block; background: var(--c); color: #fff; font-weight: 900; font-size: 11px; padding: 5px 4px; text-transform: uppercase; letter-spacing: .04em; }
.scard b { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; font-size: 21px; font-weight: 900; color: var(--c); }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; animation: fall 2.8s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(560deg); } }

/* ---------- Kad & senarai umum ---------- */
.card { border: 2px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; }
.card + .card { margin-top: 12px; }
.sec-title { font-size: 21px; margin: 22px 0 12px; }
.row-item { display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: var(--r); padding: 12px 14px; background: #fff; cursor: pointer; width: 100%; text-align: left; font-weight: 800; }
.row-item + .row-item { margin-top: 10px; }
.row-item .grow { flex: 1; } .row-item small { display: block; color: var(--ink2); font-weight: 700; font-size: 14px; }
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--green)); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tilebtn { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: var(--r); background: #fff; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; font-weight: 900; }
.tilebtn small { color: var(--ink2); font-weight: 700; font-size: 13px; }

/* Borang */
.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-weight: 900; margin-bottom: 6px; }
.inp { width: 100%; border: 2px solid var(--line); background: var(--soft); border-radius: 14px; padding: 13px 14px; font-size: 17px; font-weight: 800; min-height: 52px; }
.inp:focus { outline: 0; border-color: var(--blue-b); background: #fff; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; } .chk input { width: 22px; height: 22px; margin-top: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; } .seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 8px; cursor: pointer; min-width: 64px; min-height: 64px; }
.seg input:checked + span { border-color: var(--blue-b); background: var(--blue-l); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); }
.err { background: var(--red-l); color: var(--red-d); border-radius: 12px; padding: 10px 14px; margin: 10px 0 0; font-weight: 800; }

/* Profil */
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.pcard { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; background: #fff; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font-weight: 900; font-size: 18px; }
.pcard small { color: var(--ink2); font-weight: 800; font-size: 14px; }
.pcard.add { border-style: dashed; color: var(--ink3); }

/* Pelekat */
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stk { aspect-ratio: 1; border-radius: 18px; border: 2px solid var(--line); display: grid; place-items: center; background: var(--soft); overflow: hidden; }
.stk.got { background: #fff; border-color: var(--yellow); }
.stk .illus.ph small { display: none; }

/* Ibu bapa */
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbox { border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.sbox b { font-size: 22px; font-weight: 900; display: block; line-height: 1.1; } .sbox small { color: var(--ink2); font-size: 13px; }
.week { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.wd { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.wd span { width: 100%; min-height: 4px; border-radius: 8px 8px 4px 4px; background: var(--green); }
.wd small { color: var(--ink2); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 99px; color: #fff; font-weight: 900; }
.chip.ar { font-family: var(--ar); font-size: 17px; font-weight: 700; }
.lv-belum { background: var(--gray-d); } .lv-tahu { background: var(--yellow-d); } .lv-faham { background: var(--blue); } .lv-buat { background: var(--green); }
.tabbar { display: flex; gap: 6px; overflow-x: auto; margin: 14px 0; padding-bottom: 4px; }
.tabbar button { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 14px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.tabbar button.on { background: var(--blue-l); border-color: var(--blue-b); color: var(--blue-d); }
details.acc { border: 2px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
details.acc summary { cursor: pointer; font-weight: 900; display: flex; align-items: center; gap: 10px; list-style: none; }
details.acc summary::-webkit-details-marker { display: none; }
.trow { padding: 8px 0; border-top: 2px solid var(--soft); } .trow small { color: var(--ink2); }

/* Ilustrasi ruang letak */
.illus { object-fit: contain; }
.illus.ph { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--gray-d); border-radius: 18px; background: var(--soft); color: var(--ink3); }
.illus.ph small { font-size: 11px; font-weight: 800; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pokok Ilmu */
.tree-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 0; }
.tree.watered .drops { animation: drip 1.2s ease-in 2 forwards; }
@keyframes drip { from { transform: translateY(-10px); opacity: 1; } to { transform: translateY(60px); opacity: 0; } }
.gauge { width: 80%; height: 16px; background: var(--line); border-radius: 99px; overflow: hidden; }
.gauge span { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* Pintu ibu bapa */
.gate { max-width: 320px; margin: 18px auto; text-align: center; }
.gate .q { font-size: 40px; font-weight: 900; margin: 10px 0 14px; }
.gate .inp { text-align: center; font-size: 28px; }

.boot { min-height: 100dvh; display: grid; place-items: center; }
.mascot-bob { animation: mbob 2.4s ease-in-out infinite; } @keyframes mbob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- App #2: soalan ---------- */
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.qtag { font-size: 12px; font-weight: 900; color: var(--purple-d); background: var(--purple-l); border-radius: 8px; padding: 4px 9px; text-transform: uppercase; letter-spacing: .04em; }
.langt { border: 2px solid var(--line); border-bottom-width: 4px; background: #fff; border-radius: 12px; padding: 5px 10px; font-weight: 900; font-size: 13px; cursor: pointer; color: var(--blue-d); }
.langt span { color: var(--ink3); }
.qtext { font-size: 20px; font-weight: 800; line-height: 1.5; margin: 4px 0 16px; }
.qtext u { text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--purple); }
.diagram-wrap .diagram { max-width: 100%; height: auto; font-family: var(--font); }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 3px; font-size: .95em; }
.frac sup { border-bottom: 2.5px solid currentColor; padding: 0 3px 1px; font-size: 1em; vertical-align: baseline; }
.frac sub { font-size: 1em; vertical-align: baseline; padding-top: 1px; }
.mcq { display: grid; gap: 10px; }
.mrow { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; background: #fff; padding: 12px 14px; text-align: left; font-weight: 800; font-size: 17px; cursor: pointer; min-height: 58px; }
.mrow .mk { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; color: var(--ink2); }
.mrow.sel { border-color: var(--blue-b); background: var(--blue-l); color: var(--blue-d); } .mrow.sel .mk { border-color: var(--blue-b); color: var(--blue-d); }
.mrow.right { border-color: #8FDCA8; background: var(--green-l); color: var(--green-d); } .mrow.right .mk { border-color: #8FDCA8; color: var(--green-d); }
.mrow.wrong { border-color: #F7A8A8; background: var(--red-l); color: var(--red-d); }
.mrow:disabled { cursor: default; }
.ansbox { display: flex; align-items: center; gap: 8px; border: 2px solid var(--blue-b); border-bottom-width: 4px; border-radius: 16px; padding: 12px 16px; min-height: 64px; font-size: 26px; font-weight: 900; background: #fff; }
.ansbox .val { flex: 1; letter-spacing: .02em; } .ansbox .ph { color: var(--ink3); font-size: 18px; font-weight: 800; }
.ansbox .aff { color: var(--ink2); font-size: 20px; }
.ansbox.ok { border-color: #8FDCA8; background: var(--green-l); } .ansbox.no { border-color: #F7A8A8; background: var(--red-l); }
.kpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.kk { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; background: #fff; min-height: 50px; font-size: 22px; font-weight: 900; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.kk:active { transform: translateY(3px); border-bottom-width: 1px; } .kk.wide { grid-column: span 3; }
.steps-card { margin-top: 16px; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.steps-h { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: var(--soft); padding: 12px 14px; font-weight: 900; cursor: pointer; text-align: left; }
.steps-h .chev { margin-left: auto; transition: transform .2s; color: var(--ink3); }
.steps-card ol { display: none; margin: 0; padding: 12px 16px 14px 36px; } .steps-card li { margin: 6px 0; font-weight: 700; }
.steps-card.open ol { display: block; } .steps-card.open .chev { transform: rotate(90deg); }
.grade { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; font-size: 26px; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.gA, .gB { background: var(--green); } .gC { background: var(--blue); } .gD { background: var(--yellow-d); } .gE, .gF { background: var(--red); }
.xpbar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; } .xpbar span { display: block; height: 100%; background: var(--purple); border-radius: 99px; }
.sifir-q { font-size: 52px; font-weight: 900; text-align: center; margin: 24px 0 8px; }
.timer { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; } .timer span { display: block; height: 100%; background: var(--orange); width: 100%; transition: width .1s linear; }
.pnode.plain::before { display: none; }
.foot-row .b3 { padding: 14px 10px; letter-spacing: .03em; }

/* ===== G1 Gamifikasi: juice (GAMIFICATION.md §4.3, §4.4, §7) ===== */
.fx-confetti { position: fixed; z-index: 90; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; }
.fx-fly { position: fixed; z-index: 90; width: 32px; height: 32px; pointer-events: none; }
.fx-fly svg { width: 32px; height: 32px; }
.fx-bump { animation: fxbump .32s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes fxbump { 50% { transform: scale(1.35); } }
.lesson-top .stat { display: flex; gap: 4px; align-items: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.combo-pill { font-weight: 900; font-size: 13px; color: #fff; background: var(--orange); border-radius: 99px; padding: 3px 10px; box-shadow: 0 3px 0 var(--orange-d, #D96A00); white-space: nowrap; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .25s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.combo-pill.on { opacity: 1; transform: scale(1); }
.opt.right, .slots.right, .tile-right { animation: pop .35s cubic-bezier(.34, 1.56, .64, 1); }
.mascot-jump { animation: mjump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes mjump { 40% { transform: translateY(-14px) scale(1.05, .95); } 70% { transform: translateY(0) scale(.96, 1.04); } }

/* Sambutan tamat berperingkat */
.cel { width: 100%; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.cel-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 16px; }
.cel-body h1 { font-size: 30px; color: var(--green-d); margin: 0; }
.cel-in > * { animation: celin .35s cubic-bezier(.05, .7, .1, 1) both; }
.cel-in > *:nth-child(2) { animation-delay: .06s; } .cel-in > *:nth-child(3) { animation-delay: .12s; } .cel-in > *:nth-child(4) { animation-delay: .18s; }
@keyframes celin { from { opacity: 0; transform: translateY(14px); } }
.cel-skip { text-align: center; font-size: 13px; color: var(--ink3, #AFAFAF); font-weight: 700; margin-bottom: 8px; }
.scard.hide { opacity: 0; transform: translateY(12px); }
.scard { transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.tree-grow { animation: treegrow .8s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 90%; }
@keyframes treegrow { from { transform: scale(.78); } }
.gauge.big { width: 100%; max-width: 360px; }
.gauge span { transition: width 1s cubic-bezier(.05, .7, .1, 1); }
.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 420px; }
.stkpick { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 10px 4px; box-shadow: 0 5px 0 var(--line); display: grid; justify-items: center; cursor: pointer; transition: transform .2s, opacity .25s; }
.stkpick.chosen { border-color: var(--yellow-d); box-shadow: 0 5px 0 var(--yellow-d); animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
.stkpick.gone { opacity: .25; transform: scale(.9); }
.weekcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; max-width: 400px; }
.wday { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--ink3, #AFAFAF); }
.wday .ic { filter: grayscale(1) opacity(.35); transition: filter .3s; }
.wday.full .ic { filter: none; }
.wday.today { color: var(--blue); }
.wday.now .ic { animation: fxbump .5s cubic-bezier(.34, 1.56, .64, 1); }
.milestone { display: flex; gap: 12px; align-items: center; text-align: left; background: #FFF6DB; border: 2px solid var(--yellow); border-radius: 16px; padding: 12px 14px; }
.review-card { display: flex; gap: 14px; align-items: center; }
.sound-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.sound-row:last-child { border-bottom: 0; }
.sound-row input[type=checkbox] { flex-shrink: 0; width: 24px; height: 24px; accent-color: var(--green); }
@media (prefers-reduced-motion: reduce) { .fx-confetti, .fx-fly { display: none; } }
.topbar .stat.drop { color: var(--blue); }

/* ===== G2: Taman Ilmu, Pesta Pulau, keluarga (GAMIFICATION.md §4.5–4.9) ===== */
.garden { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: linear-gradient(#BFE6FF, #E8F6FF 45%); border: 2px solid var(--line); margin-bottom: 12px; background-size: cover; background-position: center; }
.g-sun { position: absolute; right: 9%; top: 6%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #FFD66B; box-shadow: 0 0 0 10px rgba(255, 214, 107, .3); }
.g-hill { position: absolute; border-radius: 50%; }
.g-hill.h1 { left: -20%; top: 34%; width: 80%; height: 40%; background: #9ADBA8; }
.g-hill.h2 { right: -25%; top: 38%; width: 85%; height: 40%; background: #7FD08F; }
.g-ground { position: absolute; left: 0; right: 0; top: 50%; bottom: 0; background: #6CC27A; }
.g-tree { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); width: 46%; display: grid; place-items: center; }
.g-tree svg { width: 100%; height: auto; }
.g-slot { position: absolute; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.g-slot.full { border: 0; background: none; }
.g-slot.full .illus { width: 100%; height: 100%; }
.g-ani { position: absolute; width: 12%; z-index: 2; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; animation: anibob 2.6s ease-in-out infinite; }
.g-ani .illus { width: 100%; height: 100%; }
@keyframes anibob { 50% { translate: 0 -5px; } }
.g-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.g-bar .stat { display: flex; gap: 6px; align-items: center; font-weight: 900; font-size: 22px; }
.g-bar .b3 { width: auto; display: inline-flex; gap: 6px; align-items: center; }
.sheet-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap.center-wrap { align-items: center; padding: 16px; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 86dvh; overflow: auto; border-radius: 24px 24px 0 0; padding: 20px 16px max(20px, env(safe-area-inset-bottom)); display: grid; gap: 14px; animation: sheetup .28s cubic-bezier(.05, .7, .1, 1); }
.center-wrap .sheet { border-radius: 24px; justify-items: center; text-align: center; }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
.shop-head { display: flex; justify-content: space-between; align-items: center; }
.shop-head .stat { display: flex; gap: 4px; align-items: center; font-weight: 900; font-size: 20px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-item { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 8px 4px; box-shadow: 0 4px 0 var(--line); display: grid; justify-items: center; gap: 2px; cursor: pointer; font: inherit; color: var(--ink); }
.shop-item b { font-size: 12px; line-height: 1.2; min-height: 2.4em; display: grid; place-items: center; text-align: center; }
.shop-item .price { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; font-size: 13px; color: var(--yellow-d); background: var(--yellow-l); border-radius: 99px; padding: 2px 8px; }
.shop-item.poor { opacity: .5; }
.shop-item.own .price { color: var(--green-d); background: var(--green-l); }
.goal-card { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.goal-card.ready { border-color: var(--yellow); background: var(--yellow-l); }
.goal-reward { font-weight: 800; overflow-wrap: anywhere; }
.praise-list { display: grid; gap: 6px; }
.bubble.big { display: grid; gap: 4px; font-size: 20px; padding: 14px 18px; }
.bubble.big small { color: var(--ink2); font-size: 14px; }
.read-card { margin: 24px auto; max-width: 360px; min-height: 180px; border: 3px solid var(--line); border-bottom-width: 7px; border-radius: 24px; display: grid; place-items: center; }
.read-card span { font-size: clamp(56px, 18vw, 96px); font-weight: 900; color: var(--ink); letter-spacing: .02em; }
.q-mascot { display: inline-grid; place-items: center; flex-shrink: 0; }
.tilt { animation: tilt .6s ease-in-out; }
@keyframes tilt { 30% { transform: rotate(-8deg); } 70% { transform: rotate(5deg); } }
.pwrap button.mascot-side { border: 0; background: none; padding: 0; cursor: pointer; pointer-events: auto; }
.bubble.big::before { display: none; }
.egg { animation: wob .35s ease-in-out 3; transform-origin: 50% 90%; }
.egg .crack { opacity: 0; animation: crackin .1s .75s forwards; }
@keyframes wob { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes crackin { to { opacity: 1; } }
.hatched { animation: hatch .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes hatch { from { transform: scale(.3) translateY(30px); opacity: 0; } }
.cert-box { width: 100%; max-width: 360px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); min-height: 120px; display: grid; place-items: center; }
.cert-box img { width: 100%; display: block; }
/* Pesta Pulau: pecah belon */
.sky { position: relative; height: 340px; margin-top: 8px; border-radius: 22px; overflow: hidden; background: linear-gradient(#DDF1FF, #F4FAFF); }
.balloon { position: absolute; left: var(--x); bottom: -110px; width: 86px; height: 104px; margin-left: -43px; border: 0; padding: 0; background: none; cursor: pointer; animation: rise var(--d) linear var(--dl) infinite; }
.balloon .bl { position: absolute; inset: 0 0 18px; border-radius: 50% 50% 46% 46%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 900; box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .12); }
.balloon .bl .ar { font-size: 34px; }
.balloon::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 20px; background: #AFAFAF; }
.balloon.popped { animation: popb .35s ease-out forwards; }
.balloon.shake .bl { animation: shake .35s; }
@keyframes rise { to { transform: translateY(-470px) rotate(3deg); } }
@keyframes popb { to { transform: translateY(-160px) scale(1.5); opacity: 0; } }
.small-show { transform: scale(.8); transform-origin: top center; margin-bottom: -20px; }
@media (prefers-reduced-motion: reduce) { .balloon { animation: none; bottom: 40px; } }

/* ===== G3: Arena App #2 (GAMIFICATION.md §5) ===== */
.topbar .stat.coin { color: var(--yellow-d); }
.av.frame { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--fr, #C9C9C9); }
.frame-perak { --fr: #B8C2CC; } .frame-emas { --fr: #FFC53D; } .frame-hutan { --fr: #2EBD59; } .frame-laut { --fr: #2B9CF2; }
.frame-api { --fr: #FF8A1F; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #FF8A1F, 0 0 12px 4px rgba(255, 138, 31, .45); }
.frame-pelangi { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F05252, 0 0 0 7px #FFC53D, 0 0 0 9px #2EBD59, 0 0 0 11px #2B9CF2; }
.frame-angkasa { --fr: #3B2A7A; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #3B2A7A, 0 0 14px 5px rgba(155, 107, 255, .5); }
.frame-permata { --fr: #2EC4C4; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2EC4C4, 0 0 0 9px #9B6BFF; }
.av.robot { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: inline-grid; place-items: center; }
.pnode .boss-flag { position: absolute; top: -8px; right: -8px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.quests { display: grid; gap: 8px; margin-top: 12px; }
.quest { display: flex; gap: 10px; align-items: center; }
.quest.done { opacity: .7; }
.quest.done b { text-decoration: line-through; }
.row-item.locked { opacity: .55; }
.arena-title { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.arena-title b { display: block; font-size: 24px; color: var(--purple); }
.coinchip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 900; color: var(--yellow-d); background: var(--yellow-l); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.mode-list { display: grid; gap: 0; margin-top: 8px; }
.heat { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; max-width: 420px; }
.heat .hh { font-size: 10px; font-weight: 800; color: var(--ink3); display: grid; place-items: center; }
.hc { aspect-ratio: 1; border-radius: 3px; background: #EDEDED; display: inline-block; }
.hc.red { background: #F7A8A8; } .hc.orange { background: #FFCB8A; } .hc.yellow { background: #FFE38A; } .hc.green { background: var(--green); }
.heat-key { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--ink2); margin-top: 8px; }
.heat-key .hc { width: 12px; height: 12px; margin-right: 2px; vertical-align: -2px; }
.titles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.titles div { border: 2px solid var(--line); border-radius: 12px; padding: 6px 4px; text-align: center; display: grid; }
.titles b { font-size: 11px; line-height: 1.2; } .titles small { font-size: 11px; color: var(--ink3); }
.titles .on { border-color: var(--purple); background: #F1EAFF; color: var(--purple-d); }
.race { display: grid; gap: 6px; margin-bottom: 14px; }
.lane { display: grid; grid-template-columns: 70px 1fr 30px; gap: 8px; align-items: center; font-weight: 800; }
.lane small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track { height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.track span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s; }
.lane.me .track span { background: var(--green); } .lane.rv .track span { background: var(--purple); }
.boss-hp { flex: 1; height: 18px; border-radius: 99px; background: var(--line); overflow: hidden; }
.boss-hp span { display: block; height: 100%; background: linear-gradient(90deg, #F05252, #FF8A1F); transition: width .35s cubic-bezier(.34, 1.56, .64, 1); }
.boss-stage { position: relative; display: flex; gap: 12px; align-items: center; padding: 6px 16px 0; }
.boss-stage b { display: block; font-size: 18px; } .boss-stage small { display: block; }
.boss-fig { flex-shrink: 0; }
.boss-fig.hit { animation: bhit .35s; } .boss-fig.heal { animation: bheal .5s; } .boss-fig.down { animation: bdown .8s forwards; }
@keyframes bhit { 30% { transform: translateX(10px) rotate(6deg); filter: brightness(1.6); } 60% { transform: translateX(-6px); } }
@keyframes bheal { 50% { transform: scale(1.08); filter: hue-rotate(60deg); } }
@keyframes bdown { to { transform: translateY(20px) rotate(-12deg) scale(.7); opacity: .3; } }
.boss-stage.quake { animation: quake .2s 2; }
@keyframes quake { 25% { transform: translate(-6px, 2px); } 75% { transform: translate(6px, -2px); } }
.dmg { position: absolute; left: 120px; top: 10px; font-weight: 900; font-size: 22px; color: var(--red); opacity: 0; pointer-events: none; }
.dmg.show { animation: dmgup .7s ease-out; } .dmg.heal { color: var(--green-d); }
@keyframes dmgup { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-30px); } }
.trophy-head { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.coinline { display: flex; gap: 6px; align-items: center; color: var(--yellow-d); margin-top: 4px; }
.lg-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 2px solid var(--line); }
.lg-row:last-of-type { border-bottom: 0; }
.lg-row.me { background: #F6F1FF; border-radius: 12px; padding-inline: 8px; }
.lg-row .rank { width: 20px; text-align: center; color: var(--purple); }
.tally { display: flex; gap: 8px; flex-wrap: wrap; }
.tally .t { font-weight: 900; font-size: 13px; border-radius: 99px; padding: 3px 10px; }
.t.gangsa { background: #F3E4D6; color: #8A5A33; } .t.perak { background: #E9EDF1; color: #5E6B78; } .t.emas { background: var(--yellow-l); color: var(--yellow-d); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-t { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px 6px; display: grid; justify-items: center; gap: 2px; text-align: center; font: inherit; color: var(--ink); cursor: pointer; }
.badge-t b { font-size: 12px; line-height: 1.2; } .badge-t small { font-size: 11px; color: var(--ink2); line-height: 1.3; }
.badge-t.t0 .ic { filter: grayscale(1) opacity(.35); }
.badge-t.t1 { border-color: #C9A27E; background: #FBF4EE; } .badge-t.t2 { border-color: #B8C2CC; background: #F5F7F9; } .badge-t.t3 { border-color: var(--yellow); background: var(--yellow-l); }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.frame-item { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 4px 8px; display: grid; justify-items: center; gap: 6px; font: inherit; color: var(--ink); cursor: pointer; }
.frame-item b { font-size: 13px; } .frame-item small { display: inline-flex; gap: 3px; align-items: center; font-size: 12px; font-weight: 900; color: var(--yellow-d); }
.frame-item.on { border-color: var(--purple); background: #F6F1FF; } .frame-item.poor { opacity: .5; }
.cel-pop { animation: celin .35s cubic-bezier(.05, .7, .1, 1) both; width: 100%; max-width: 420px; }
.quest .grow { flex: 1; min-width: 0; }
.quest .meter { width: 100%; }
.quests > div:first-child .muted { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }

/* ===== G4: musim, Ajar Kawan, Lumba Bayang, Rakan Arena ===== */
.season-card { border-color: var(--sc); display: grid; gap: 2px; text-align: center; padding-top: 6px; }
.season-card b { color: var(--sc); font-size: 18px; }
.musim-decor { display: block; }
.g-season { position: absolute; left: 0; right: 0; top: 2%; z-index: 3; pointer-events: none; }
.teach { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 4px 0 10px; }
.teach-bubble { display: grid; justify-items: center; gap: 2px; cursor: pointer; background: #fff; font: inherit; color: var(--blue); }
.teach-bubble small { color: var(--ink2); font-size: 13px; }
.read-card.small { min-height: 120px; margin: 8px auto; }
.read-card.small span { font-size: clamp(48px, 15vw, 76px); }
.pesta-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.pesta-card.live { border-color: var(--orange); background: #FFF3E6; }
.board { margin-top: 10px; display: grid; gap: 4px; }
.brow { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; font-size: 14px; padding: 4px 6px; border-radius: 8px; }
.brow.me { background: #F1EAFF; }
.rakan-card { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.rk-stages { display: flex; gap: 6px; margin-top: 6px; }
.rk-stages span { font-size: 12px; font-weight: 800; border-radius: 99px; padding: 2px 8px; background: var(--soft); color: var(--ink3); }
.rk-stages span.on { background: #F1EAFF; color: var(--purple-d); }
.rakan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.frame-pelita { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #E0A21B, 0 0 12px 4px rgba(255, 197, 61, .6); }
.frame-merdeka { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F05252, 0 0 0 7px #fff, 0 0 0 9px #2B9CF2; }
.teach-bubble .ic { background: var(--blue); border-radius: 50%; padding: 7px; box-sizing: content-box; box-shadow: 0 3px 0 var(--blue-d); }
