/* ---------- Pengembaraan Lompat */
.feature-roof.kembara { background: linear-gradient(#8fd8ff, #e6f8ff); }
.feature-roof.kembara::after { background: radial-gradient(circle at 14px 12px, #6fc24b 13px, transparent 14px) 0 0 / 28px 12px repeat-x; bottom: -6px; }
.feature[data-game="kembara"] .feature-art { background: linear-gradient(#bfeaff, #e9fbff); }

.kb { position: relative; height: 100%; color: var(--white); background: #1d1046; }
.kb-map { height: 100%; overflow-y: auto; padding: calc(var(--safe-t) + 64px) 16px calc(var(--safe-b) + 24px); background: linear-gradient(#3b1f74, #1d1046); }
.kb-title { text-align: center; margin-bottom: 14px; }
.kb-title h2 { font-size: 30px; line-height: 1.05; text-shadow: 0 4px 0 var(--ink); }
.kb-title p { margin: 4px 0 0; font-weight: 800; color: var(--gold); }
.kb-world { position: relative; border: var(--line); border-radius: 22px; padding: 12px 12px 14px; margin-bottom: 14px; background: linear-gradient(var(--s1), var(--s2)); box-shadow: 0 5px 0 #0b0620; overflow: hidden; }
.kb-world::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: var(--gr); border-top: 3px solid var(--ink); }
.kb-world.w-gua { color: var(--white); }
.kb-world h3 { position: relative; z-index: 1; font-size: 18px; color: var(--ink); background: rgba(255,255,255,.85); display: inline-block; padding: 2px 12px; border-radius: 99px; border: 2.5px solid var(--ink); }
.kb-nodes { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; margin-top: 12px; padding-bottom: 10px; }
.kb-path { flex: 0 0 12px; height: 4px; border-radius: 2px; background: rgba(26,16,51,.45); }
.kb-node { flex: 1; min-width: 0; border: var(--line); border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 4px 0 var(--ink); padding: 8px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 1px; touch-action: manipulation; }
.kb-node:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.kb-node b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.kb-node span { font-weight: 800; font-size: 12.5px; line-height: 1.1; text-align: center; min-height: 2.2em; display: flex; align-items: center; }
.kb-node small { font-weight: 800; font-size: 12px; color: var(--muted); }
.kb-node.done { background: #eaffd6; }
.kb-node.boss { background: #fff1c9; }
.kb-node.boss.done { background: #ffe27a; }
.kb-node.locked { background: rgba(255,255,255,.55); box-shadow: none; opacity: .75; }
.kb-help { text-align: center; font-weight: 700; font-size: 14px; margin: 6px 8px 0; opacity: .9; }

.kb-play { position: relative; height: 100%; }
.kb-canvas { position: absolute; inset: 0; }
.kb-ctrl { position: absolute; left: 0; right: 0; bottom: 0; height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(var(--safe-b) + 12px); pointer-events: none; }
.kb-pad { pointer-events: auto; position: relative; display: flex; width: 168px; height: 92px; border: var(--line); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 5px 0 var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
.kb-pad span { flex: 1; display: grid; place-items: center; font-size: 34px; color: var(--ink); transition: background .06s; }
.kb-pad span + span { border-left: 3px dashed rgba(26,16,51,.25); }
.kb-pad.L .kb-l, .kb-pad.R .kb-r { background: var(--gold); }
.kb-jump { pointer-events: auto; width: 112px; height: 92px; border: var(--line); border-radius: 50%; background: var(--lime); box-shadow: 0 5px 0 var(--ink); font-family: var(--display); font-size: 20px; color: var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; }
.kb-jump.on { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); background: #d6ff7a; }
.kb-over { position: absolute; inset: 0; background: rgba(26,16,51,.7); display: grid; place-items: center; padding: 20px; z-index: 3; }
.kb-over[hidden] { display: none; }
.kb-card { width: min(100%, 340px); background: var(--white); color: var(--ink); border: var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); padding: 18px; text-align: center; animation: pop .28s cubic-bezier(.2,1.4,.4,1); }
.kb-card h2 { font-size: 30px; }
.kb-sub { margin: 2px 0 8px; font-weight: 700; color: var(--muted); }
.kb-stars { font-size: 38px; letter-spacing: 4px; }
.kb-stars i { font-style: normal; color: rgba(26,16,51,.15); }
.kb-stars i.on { color: var(--gold); -webkit-text-stroke: 2px var(--ink); }
.kb-sum { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.kb-sum li { display: flex; justify-content: space-between; padding: 6px 2px; font-weight: 700; }
.kb-sum li + li { border-top: 2px dashed rgba(26,16,51,.15); }
.kb-sum b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--pink); }
.kb-sum .tot b { color: var(--tang); font-size: 24px; }
.kb-tip { font-weight: 700; font-size: 14px; margin: 10px 0 0; color: var(--muted); }

.shelf-big .feature { margin-top: 0; }
.shelf-big .feature + .feature { margin-top: 16px; }

/* bigger map: 6 worlds x 5 levels, plus Cabaran Rawak */
.kb-nodes { gap: 6px; }
.kb-node { padding: 6px 2px 5px; border-radius: 14px; }
.kb-node b { font-size: 20px; }
.kb-node small { font-size: 11px; white-space: nowrap; }
.kb-wnames { position: relative; z-index: 1; margin: 0 0 4px; font-size: 11.5px; font-weight: 800; color: var(--ink); opacity: .8; line-height: 1.25; }
.kb-world.w-gua .kb-wnames { color: #fff; }
.kb-world.shut { filter: grayscale(.5) brightness(.85); }
.kb-rawak { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: var(--line); border-radius: 20px; padding: 10px 14px; margin-bottom: 14px; background: linear-gradient(110deg, #ff4f9a, #ffcf33); box-shadow: 0 5px 0 #0b0620; color: var(--ink); }
.kb-rawak:active { transform: translateY(3px); box-shadow: 0 2px 0 #0b0620; }
.kb-rawak-ic { font-size: 34px; }
.kb-rawak b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.kb-rawak small { display: block; font-weight: 800; font-size: 13px; }
.kb-rawak.locked { background: rgba(255,255,255,.25); color: rgba(255,255,255,.85); box-shadow: none; border-style: dashed; border-color: rgba(255,255,255,.5); }
.kb-world { padding-bottom: 30px; }
/* 3D look: the WebGL world sits under the see-through 2D canvas (hearts, coins, banners) */
.kb-canvas .kb3-canvas, .kb-canvas .game-canvas { position: absolute; left: 0; top: 0; }
.kb-canvas .game-canvas { z-index: 1; }
