@font-face { font-family: Andika; src: url(../assets/fonts/andika-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Andika; src: url(../assets/fonts/andika-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Jawi; src: url(../assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --desk: #eeede8; --paper: #fff; --ink: #1c1c1c; --line: #1c1c1c; --soft: #6f6f6f; --hair: #d9d8d2;
  --pencil: #2f2f2f; --crayon: #ffe16b; --red: #d0262d; --red-soft: #fde7e7; --ok: #1d7a3a;
  --u: 54px; --pic: 70px; --r: 10px;
  --font: Andika, 'Comic Sans MS', system-ui, sans-serif; --jawi: Jawi, 'Geeza Pro', 'Noto Naskh Arabic', serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html.noscroll, html.noscroll body { overflow: hidden; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 19px/1.45 var(--font); }
button { font: inherit; color: inherit; }
a { color: inherit; }
.grow { flex: 1; }
.muted { color: var(--soft); } .small { font-size: 14px; }
.red { color: var(--red); }
.row { display: flex; gap: 10px; align-items: center; } .row.end { justify-content: flex-end; } .wrapr { flex-wrap: wrap; }

/* ---------- Butang ---------- */
.btn { border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 22px; font-weight: 700; cursor: pointer; min-height: 46px; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.big { font-size: 22px; padding: 14px 34px; min-height: 60px; }
.btn.sm { padding: 6px 16px; min-height: 38px; font-size: 16px; }
.btn:disabled { opacity: .5; }

/* ---------- Bar atas ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px max(14px, env(safe-area-inset-left)); padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); font-size: 17px; }
.topbar .home { text-decoration: none; font-size: 24px; width: 40px; text-align: center; }
.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tab { border: 1.5px solid var(--hair); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.clock { font-variant-numeric: tabular-nums; color: var(--soft); }
.stat { font-size: 20px; }

/* ---------- Kertas ---------- */
.wrap { max-width: 860px; margin: 0 auto; padding: 18px 16px 80px; }
.page { position: relative; background: var(--paper); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 24px rgba(0,0,0,.05); padding: 26px 34px 20px; margin: 0 0 22px; }
.ph { display: flex; align-items: flex-end; border-bottom: 2px solid var(--line); margin-bottom: 14px; padding-bottom: 4px; }
.ph span { flex: 1; text-align: center; letter-spacing: .08em; font-size: 17px; }
.qt { margin: 0 0 16px; font-size: 19px; }
.pf { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; }
.score { min-width: 76px; height: 54px; border: 2px solid var(--line); border-radius: 12px; border-top-left-radius: 2px; display: flex; align-items: flex-end; justify-content: center; padding: 0 10px 4px; gap: 2px; font-size: 20px; }
.score .got { color: var(--red); font-weight: 700; font-size: 26px; min-width: 18px; text-align: right; line-height: 1.1; }
.foot { font-size: 12px; color: var(--soft); letter-spacing: .03em; }
.strip { display: flex; gap: 10px; justify-content: center; border: 2px solid var(--line); border-radius: var(--r); padding: 6px; margin: 0 auto 16px; width: max-content; }
.strip span { border: 1.5px solid var(--line); border-radius: 6px; min-width: 40px; text-align: center; font-size: 24px; font-weight: 700; }

/* Kulit depan */
.cover { padding-top: 30px; }
.ctitle { text-align: center; position: relative; }
.ctitle .l1 { font-size: 40px; font-weight: 700; letter-spacing: .02em; line-height: 1.05; }
.ctitle .l2 { font-size: 36px; font-weight: 700; display: flex; align-items: center; gap: 14px; justify-content: center; }
.ctitle .l2::before, .ctitle .l2::after { content: ''; flex: 0 0 90px; border-top: 3px double var(--line); }
.setb { display: inline-block; border: 2.5px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 24px; font-weight: 700; margin-top: 6px; }
.masa { text-align: center; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); margin: 16px auto 18px; padding: 4px; width: min(420px, 100%); font-weight: 700; letter-spacing: .04em; }
.fld { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 4px; padding: 6px 12px; margin-bottom: 10px; min-height: 52px; }
.fld span { white-space: nowrap; }
input.line { flex: 1; border: 0; outline: 0; font: inherit; font-size: 21px; min-width: 0; background: transparent; padding: 4px 0; }
.cgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 14px; }
.mtable { border-collapse: collapse; width: 100%; font-size: 17px; }
.mtable th, .mtable td { border: 2px solid var(--line); padding: 7px 10px; text-align: center; }
.mtable td.mk, .mtable th.mk { white-space: nowrap; width: 40%; }
.mtable b.red { font-size: 22px; margin-right: 2px; }
.arahan { border: 2px solid var(--line); padding: 10px 14px; font-size: 16px; }
.arahan ul { padding-left: 18px; margin: 6px 0 0; } .arahan li { margin-bottom: 6px; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 10px; }
.links { display: flex; gap: 26px; justify-content: center; margin-top: 18px; }
.links a { text-decoration: none; border-bottom: 1.5px solid var(--soft); padding-bottom: 2px; }

/* ---------- Sel kandungan ---------- */
.pic { width: calc(var(--pic) * var(--sz, 1)); height: calc(var(--pic) * var(--sz, 1)); color: var(--ink); flex: none; display: block; }
.pic.sm { width: 38px; height: 38px; }
.pics { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 330px; align-items: center; }
.pics.many .pic.sm { width: 31px; height: 31px; }
.pics.boxed { border: 2px solid var(--line); border-radius: 8px; padding: 6px; max-width: 150px; min-height: 52px; }
.crossed { position: relative; display: inline-block; }
.crossed::after { content: ''; position: absolute; inset: -2px; background: linear-gradient(45deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%); }
.tx { display: inline-block; }
.tx.big { font-size: 30px; font-weight: 700; line-height: 1.1; }
.tx.bold { font-weight: 700; } .tx.small { font-size: 14px; color: var(--soft); }
.jw { font-family: var(--jawi); font-size: 28px; line-height: 1.5; display: inline-block; }
.jw.big { font-size: 38px; line-height: 1.3; } .jw.big2 { font-size: 56px; line-height: 1.2; }
.k-box { border: 2px solid var(--line); border-radius: 8px; padding: 4px 12px; background: #fff; }
.k-pill { border: 2px solid var(--line); border-radius: 999px; padding: 2px 16px; font-weight: 700; }
.k-cell { border: 1.5px solid var(--line); border-radius: 4px; min-width: 40px; height: 46px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.k-circle { border: 2px solid var(--line); border-radius: 50%; width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; }
.k-flower { border: 2.5px dashed var(--line); border-radius: 50%; width: 62px; height: 62px; display: inline-flex; align-items: center; justify-content: center; }
.k-star { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; clip-path: none; border: 2px solid var(--line); border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%; }
.k-crayon { border: 2px solid var(--line); border-radius: 4px 14px 14px 4px; padding: 3px 16px 3px 22px; position: relative; font-size: 17px; }
.k-crayon::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); border: 10px solid transparent; border-right: 12px solid var(--line); border-left: 0; }

/* ---------- Item & pilihan ---------- */
.items.rows .item, .items.wr .item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--hair); flex-wrap: wrap; }
.items .item:last-child { border-bottom: 0; }
.item .no { font-weight: 700; min-width: 26px; }
.item .q { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.opts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.items.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.items.cards .item { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; position: relative; }
.items.cards .opts { flex-direction: column; align-items: stretch; gap: 6px; }
.t-choice .mt-banding .opts, .items.cards .item .q:empty { display: none; }
.opt { border: 0; background: transparent; padding: 6px 10px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; position: relative; min-height: 48px; min-width: 48px; justify-content: center; }
.items.cards .opt { justify-content: flex-start; }
/* bulatkan */
.mk-circle .opt.sel::after { content: ''; position: absolute; inset: -4px -6px; border: 3px solid var(--pencil); border-radius: 50%; transform: rotate(-4deg); pointer-events: none; }
/* tanda ✓ */
.tickbox { width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex: none; }
.mk-tick .opt.sel .tickbox::after { content: '✓'; color: var(--pencil); }
/* warnakan */
.mk-shade .opt.sel { background: var(--crayon); }
.mk-shade .opt.sel .k-box, .mk-shade .opt.sel .k-pill, .mk-shade .opt.sel .k-circle { background: var(--crayon); }
.abc { font-weight: 700; margin-right: -2px; }
/* pilih banyak */
.grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 10px; }
.cellbtn { border: 2px solid var(--line); border-radius: 12px; min-height: 84px; position: relative; }
.cellbtn .pic { --sz: 1.15; }

/* ---------- Padankan ---------- */
.match { position: relative; display: flex; justify-content: space-between; gap: 30px; touch-action: none; user-select: none; -webkit-user-select: none; }
.mcol { display: flex; flex-direction: column; gap: 16px; justify-content: space-around; z-index: 1; }
.mi { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px; border-radius: 10px; touch-action: none; position: relative; }
.mi.armed { background: var(--crayon); }
.mcol.R .mi { flex-direction: row; }
.mc { display: flex; align-items: center; min-height: var(--pic); }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); flex: none; box-shadow: 0 0 0 8px transparent; }
.mi.linked .dot { background: var(--pencil); }
.mlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mlines line { stroke: var(--pencil); stroke-width: 3; stroke-linecap: round; }
.mlines line.temp { stroke-dasharray: 6 6; }
.mlines line.bad { stroke: var(--red); }
.mlines line.should { stroke: var(--red); stroke-dasharray: 3 7; stroke-width: 2.5; }
.mi .rm { position: absolute; left: -26px; }

/* ---------- Tulis ---------- */
.inkbox { width: calc(var(--u) * var(--w)); height: var(--u); border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 0; cursor: pointer; position: relative; flex: none; }
.inkbox canvas { width: 100%; height: 100%; display: block; }
.inkbox:not(.ro):hover, .inkbox.cur { box-shadow: 0 0 0 4px var(--crayon); }
.items.wr .q { gap: 8px; }
.item.rtl { direction: rtl; }
.item.rtl .q > .tx { direction: ltr; }
.gridw { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 12px 18px; }
.gridw .item { border: 0 !important; }
.vsum { display: inline-grid; justify-items: end; font-size: 30px; font-weight: 700; line-height: 1.2; border: 2px solid var(--line); border-radius: 8px; padding: 6px 10px; min-width: 96px; }
.vsum i { font-style: normal; margin-right: 6px; }
.vsum hr { width: 100%; border: 0; border-top: 2.5px solid var(--line); margin: 4px 0 6px; }
.vsum .inkbox { justify-self: stretch; width: auto; }
.mark-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.item.rtl .mark-btns { margin-left: 0; margin-right: auto; }
.mark-btns .key { color: var(--red); font-size: 16px; margin-right: 4px; }
.mark-btns .key .jw { font-size: 24px; }
.mb { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--hair); background: #fff; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--soft); }
.mb.ok.on { background: var(--red); border-color: var(--red); color: #fff; }
.mb.no.on { background: #444; border-color: #444; color: #fff; }
.item.pending { background: linear-gradient(90deg, #fff8d6, #fff); border-radius: 8px; }
.gridw .mark-btns { width: 100%; margin: 0; }
.gridw .mark-btns .key { flex: 1; }

/* ---------- Isi tempat kosong / susun / isih ---------- */
.wordbox { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; border: 2px solid var(--line); border-radius: var(--r); padding: 10px; margin-bottom: 14px; min-height: 66px; align-items: center; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 14px; font-size: 20px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; position: relative; }
.chip .pic { --sz: .8; }
.chip.armed { background: var(--crayon); }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -60%) rotate(-3deg); box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: .95; }
.drop-hover { outline: 3px dashed var(--ink); outline-offset: 2px; }
.sent { font-size: 21px; gap: 6px !important; }
.gap { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 42px; border-bottom: 2.5px solid var(--line); padding: 0 8px; cursor: pointer; font-weight: 700; color: var(--pencil); }
.gap.filled { background: #f6f6f2; border-radius: 6px 6px 0 0; }
.fillq .item .pic { margin-left: auto; }
.fix { color: var(--red); font-weight: 700; }
.arr .item { align-items: center; }
.arrbox { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tiles, .aline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 50px; }
.aline { border-bottom: 2.5px solid var(--line); padding-bottom: 6px; }
.tile { border: 2px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 14px; font-size: 21px; min-width: 44px; min-height: 44px; cursor: pointer; }
.tile.used { visibility: hidden; }
.tile.in { background: #f6f6f2; }
.end { font-size: 24px; font-weight: 700; }
.pool { min-height: 76px; }
.pool .hint { color: var(--soft); font-size: 16px; }
.grps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grp { border: 2px solid var(--line); border-radius: var(--r); min-height: 200px; cursor: pointer; }
.gh { text-align: center; font-weight: 700; font-size: 22px; border-bottom: 2px solid var(--line); padding: 6px; letter-spacing: .04em; }
.gb { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; align-content: flex-start; }

/* ---------- Mod semak (pen merah) ---------- */
.rm { font-weight: 700; font-size: 28px; line-height: 1; font-family: 'Marker Felt', 'Bradley Hand', var(--font); }
.rm.ok { color: var(--red); } .rm.no { color: var(--red); opacity: .9; }
.cellbtn .rm, .chip .rm { position: absolute; top: -10px; right: -6px; font-size: 24px; background: #fff; border-radius: 50%; }
.items.cards .item > .rm { position: absolute; top: 6px; right: 10px; }
.opt.should { outline: 2.5px dashed var(--red); outline-offset: 2px; }
.review .opt, .review .chip, .review .tile, .review .mi { cursor: default; }
.banner { background: #fff8d6; border: 1.5px solid #ecd77a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.banner.done { background: #eaf6ec; border-color: #a9d8b4; }

/* ---------- Pad tulisan ---------- */
.ink-ov { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30,30,30,.45); }
.ink-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-width: 100%; }
.ink-head { max-height: 140px; overflow: hidden; margin-bottom: 12px; font-size: 17px; pointer-events: none; }
.ink-head .item { border: 0 !important; padding: 0 !important; justify-content: center; }
.ink-head .mark-btns { display: none; }
.ink-wrap { position: relative; border: 2.5px solid var(--line); border-radius: 12px; margin: 0 auto; touch-action: none; background: #fff; }
.ink-guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ink-guides line { stroke: #d5d9e6; stroke-width: 1.5; }
.ink-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ink-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.tb { border: 2px solid var(--hair); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 16px; min-height: 44px; cursor: pointer; }
.tb.on { border-color: var(--ink); }
.tb.primary { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; padding: 6px 22px; }

/* ---------- Modal, toast, kemas kini ---------- */
.modal-ov { position: fixed; inset: 0; z-index: 60; background: rgba(30,30,30,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 16px; padding: 22px 24px; max-width: 440px; width: 100%; }
.modal h3 { margin: 0 0 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 90; font-size: 16px; max-width: 90vw; text-align: center; }
.upd { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 8px 6px 18px; display: flex; gap: 12px; align-items: center; z-index: 80; box-shadow: 0 8px 24px rgba(0,0,0,.15); white-space: nowrap; }

/* ---------- Sejarah & tetapan ---------- */
.plain h2 { margin: 8px 0 14px; font-size: 28px; }
.plain h3 { margin: 22px 0 8px; font-size: 19px; border-bottom: 1.5px solid var(--line); padding-bottom: 4px; }
.back { text-decoration: none; color: var(--soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats > div { border: 2px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 30px; }
.stats span { font-size: 14px; color: var(--soft); }
.bar { display: grid; grid-template-columns: 150px 1fr 50px; gap: 10px; align-items: center; margin: 6px 0; font-size: 16px; }
.bt { height: 14px; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.bt i { display: block; height: 100%; background: var(--ink); }
.bv { text-align: right; }
.hrow { display: flex; align-items: center; border-bottom: 1px solid var(--hair); }
.hmain { flex: 1; display: grid; grid-template-columns: 80px 1fr auto 80px; gap: 10px; align-items: center; padding: 12px 4px; text-decoration: none; }
.hmain span:nth-child(2) { color: var(--soft); font-size: 15px; }
.hs { text-align: right; font-weight: 700; }
.tag { font-size: 13px; border-radius: 999px; padding: 2px 10px; border: 1.5px solid var(--hair); }
.tag.semak { background: #fff8d6; border-color: #ecd77a; } .tag.siap { background: #eaf6ec; border-color: #a9d8b4; }
.x { border: 0; background: none; font-size: 20px; padding: 10px; cursor: pointer; }

/* ---------- Skrin kecil ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; } :root { --u: 46px; --pic: 50px; }
  .page { padding: 18px 14px 14px; }
  .cgrid { grid-template-columns: 1fr; }
  .ctitle .l1 { font-size: 30px; } .ctitle .l2 { font-size: 28px; }
  .items.cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(min(var(--cols), 3), 1fr); }
  .gridw { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hmain { grid-template-columns: 64px 1fr auto; } .hmain .hs { grid-column: 3; }
  .bar { grid-template-columns: 110px 1fr 44px; }
  .match { gap: 16px; }
}
@media print { .topbar, .actions, .links, .banner, .upd { display: none; } body { background: #fff; } .page { box-shadow: none; break-after: page; } }
/* iPad: elak zum ketik-dua-kali & menu tekan lama */
button, .mi, .gap, .grp { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.chip, .mi { touch-action: none; }
/* Laman depan ringkas */
.wrap.narrow { max-width: 620px; padding-top: 48px; }
.start { text-align: center; padding: 34px 34px 26px; }
.start h1 { margin: 0; font-size: 38px; line-height: 1.1; }
.start .sub { font-size: 24px; font-weight: 700; margin: 4px 0 26px; color: var(--soft); }
.start .fld { text-align: left; }
.start .actions { margin: 22px 0 4px; }
/* Kunci ibu bapa */
.gate-q { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 34px; font-weight: 700; margin: 18px 0 6px; }
.gate-in { width: 120px; font: inherit; font-size: 34px; text-align: center; border: 0; border-bottom: 3px solid var(--ink); outline: 0; padding: 2px; border-radius: 0; }
.gate-msg { color: var(--red); min-height: 1.4em; text-align: center; margin: 4px 0 10px; font-size: 16px; }
/* Ketebalan garisan gambar (viewBox 32): lebih tebal bila gambar kecil */
.pic { stroke-width: .55; }
.pic.sm, .chip .pic { stroke-width: .85; }
/* Butang pasang */
.install { display: flex; justify-content: center; margin-top: 16px; }
.install .btn { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; padding: 8px 20px 8px 10px; }
.install img { width: 34px; height: 34px; border-radius: 8px; }
.howto ol { padding-left: 22px; margin: 14px 0 18px; } .howto li { margin-bottom: 10px; line-height: 1.4; }
.howto .appicon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.howto h3 { margin: 0; }
.kbd { display: inline-block; border: 1.5px solid var(--hair); border-radius: 6px; padding: 0 7px; font-weight: 700; }

/* ---------- Telefon (≤ 600px): saiz kecil, semua muat dalam bingkai ---------- */
@media (max-width: 600px) {
  :root { --u: 40px; --pic: 48px; }
  body { font-size: 16px; }
  .wrap { padding: 10px 8px 60px; } .wrap.narrow { padding-top: 24px; }
  .page { padding: 14px 12px 12px; margin-bottom: 14px; }
  .qt { font-size: 16.5px; margin-bottom: 12px; }
  .topbar { gap: 6px; font-size: 14px; padding-left: 8px; padding-right: 8px; }
  .topbar b { white-space: nowrap; } .topbar .home { width: 28px; font-size: 20px; }
  .tab { padding: 3px 8px; font-size: 12.5px; } .clock { font-size: 12.5px; } .stat { font-size: 16px; }
  .ctitle .l2::before, .ctitle .l2::after { flex-basis: 28px; }
  .start { padding: 22px 16px 18px; } .start h1 { font-size: 30px; } .start .sub { font-size: 19px; margin-bottom: 18px; }
  .fld { padding: 4px 10px; min-height: 46px; font-size: 14px; } input.line { font-size: 17px; }
  .btn.big { font-size: 19px; padding: 12px 26px; min-height: 52px; }
  .items.rows .item, .items.wr .item { gap: 7px; padding: 8px 0; }
  .item .no { min-width: 20px; }
  .item .q { gap: 5px; }
  .opts { gap: 4px; }
  .opt { padding: 4px 6px; min-height: 42px; min-width: 40px; }
  .tx.big { font-size: 23px; }
  .k-cell { min-width: 27px; height: 34px; font-size: 18px; }
  .k-box { padding: 3px 8px; } .k-pill { padding: 2px 11px; }
  .k-circle { width: 44px; height: 44px; } .k-flower { width: 46px; height: 46px; } .k-star { width: 48px; height: 48px; }
  .k-crayon { font-size: 14px; padding: 2px 10px 2px 16px; }
  .jw { font-size: 24px; } .jw.big { font-size: 30px; } .jw.big2 { font-size: 42px; }
  .pic.sm { width: 27px; height: 27px; } .pics.many .pic.sm { width: 23px; height: 23px; } .pics { max-width: 210px; }
  .pics.boxed { max-width: 112px; padding: 4px; min-height: 40px; }
  .strip { gap: 6px; padding: 4px; } .strip span { min-width: 30px; font-size: 19px; }
  .grid { gap: 6px; } .cellbtn { min-height: 62px; }
  .items.cards { gap: 8px; } .items.cards .item { padding: 8px; }
  .match { gap: 8px; } .mcol { gap: 10px; } .mi { gap: 6px; padding: 2px; }
  .mc .k-box { font-size: 14.5px; padding: 3px 7px; } .dot { width: 14px; height: 14px; }
  .vsum { font-size: 23px; min-width: 76px; padding: 4px 8px; }
  .mark-btns { width: 100%; justify-content: flex-end; } .mb { width: 42px; height: 42px; }
  .sent { font-size: 16.5px; } .gap { min-width: 78px; min-height: 36px; }
  .wordbox { gap: 6px; padding: 8px; min-height: 54px; }
  .chip { font-size: 16px; padding: 4px 10px; min-height: 42px; }
  .tile { font-size: 17px; padding: 3px 10px; min-height: 40px; min-width: 38px; }
  .grp { min-height: 130px; } .gh { font-size: 17px; } .gb { gap: 6px; padding: 8px; }
  .score { min-width: 62px; height: 44px; font-size: 17px; } .score .got { font-size: 22px; }
  .rm { font-size: 24px; }
  .ink-card { padding: 10px; border-radius: 14px; } .ink-bar { gap: 6px; } .tb { padding: 5px 10px; font-size: 14px; min-height: 40px; }
  .install .btn { font-size: 15px; }
}
