/* Kota Dagang: gaya berskop. Peta dunia sedia ada tidak disentuh. */
#kd-entry,.kd-mapbtn{position:absolute;z-index:5;top:calc(env(safe-area-inset-top) + 72px);right:12px;display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 15px;background:#193f41;color:#fff4d8;border:1px solid #eccb88;border-radius:30px;box-shadow:0 4px 0 #142c30,0 8px 18px #142c3030;font:800 13.5px/1 Nunito,system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
#kd-entry[hidden],.kd-mapbtn[hidden]{display:none}#kd-entry svg,.kd-mapbtn svg{width:21px;height:21px}#kd-entry:active{transform:translateY(3px);box-shadow:0 1px 0 #142c30}
.kd-entry-dot{width:6px;height:6px;background:#ffd47c;border-radius:50%}
[dir=rtl] #kd-entry,[dir=rtl] .kd-mapbtn{right:auto;left:12px}
#kd-entry:focus-visible{outline:3px solid #fff;outline-offset:3px}
#kota-dagang button:focus-visible{outline:3px solid #117a83;outline-offset:3px}
#kota-dagang{padding:0;border:0;width:min(100%,560px);max-width:100%;height:100%;height:100dvh;max-height:100dvh;margin:auto;background:#f8f3e7;color:#1d2b4c;overflow:hidden;font:16px/1.45 Nunito,system-ui,sans-serif;box-shadow:0 0 80px #0004}
#kota-dagang::backdrop{background:#101d30dc}
#kota-dagang *{box-sizing:border-box}
#kota-dagang button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
#kota-dagang button:disabled{cursor:default}
#kota-dagang h1,#kota-dagang h2,#kota-dagang h3,#kota-dagang p,#kota-dagang ol,#kota-dagang blockquote{margin:0;padding:0}
#kota-dagang [data-focus]:focus{outline:none}
.kd-shell{position:relative;height:100%;display:flex;flex-direction:column}
.kd-header{display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 14px) 16px 12px;flex-shrink:0}
.kd-header>div{flex:1;min-width:0}
.kd-header h1{font-size:20px;font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kd-kicker{display:block;font-size:10.5px;font-weight:900;letter-spacing:1.6px;text-transform:uppercase;color:#b0662c}
.kd-icon-button{flex:none;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:15px;background:#fff;box-shadow:0 3px 0 #e3d8bd,0 6px 14px #5a3a1a14}
.kd-icon-button svg{width:22px;height:22px}[dir=rtl] .kd-icon-button svg{transform:scaleX(-1)}
.kd-coin{width:20px;height:20px;flex:none}
.kd-purse{display:flex;align-items:center;gap:6px;padding:8px 13px 8px 9px;border-radius:999px;background:linear-gradient(#fffdf5,#fbeecb);box-shadow:inset 0 0 0 1.5px #e9c877,0 3px 0 #e0c68c;font-weight:900;font-size:16px}
.kd-scroll{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:0 16px calc(env(safe-area-inset-bottom) + 26px)}
.kd-s-pasar .kd-scroll{overflow:hidden;padding:0;display:flex}
.kd-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}

/* --- kota --- */
.kd-scene{position:relative;border-radius:26px;overflow:hidden;aspect-ratio:3/2;background:#efbb70;box-shadow:0 0 0 2px #f2d79a,0 12px 26px -14px #5a3a1a80}
.kd-scene>svg{display:block;width:100%;height:100%}
.kd-scene-tag{position:absolute;top:10px;inset-inline-start:10px;display:flex;flex-direction:column;padding:7px 13px 8px;border-radius:15px;background:#1d2b4ceb;color:#fff;box-shadow:inset 0 0 0 1px #ffd77866}
.kd-scene-tag b{font-size:15px;font-weight:900;line-height:1.15}.kd-scene-tag span{font-size:11px;font-weight:800;color:#ffd97a;letter-spacing:.4px}
.kd-plot text{paint-order:stroke;stroke:#fff8e6;stroke-width:3px;stroke-linejoin:round}
.kd-smoke{animation:kd-smoke 2.6s ease-in infinite}.kd-flag{transform-box:fill-box;transform-origin:0 50%;animation:kd-flag 2.2s ease-in-out infinite}
.kd-chain{display:flex;list-style:none;gap:4px;margin:14px 0 0!important}
.kd-chain li{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10.5px;font-weight:800;color:#8a8496;text-align:center;line-height:1.15;position:relative}
.kd-chain li span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ece4cf;color:#8a8496;font-weight:900;font-size:12px;position:relative;z-index:1}
.kd-chain li+li::before{content:"";position:absolute;top:12px;inset-inline-end:calc(50% + 13px);width:calc(100% - 22px);height:3px;border-radius:3px;background:#ece4cf}
.kd-chain li.kd-passed{color:#1f6f5a}.kd-chain li.kd-passed span{background:#2f8f6f;color:#fff}.kd-chain li.kd-passed+li::before{background:#9fd3bd}
.kd-chain li.kd-current{color:#1d2b4c}.kd-chain li.kd-current span{background:#f2c94c;color:#5a3a00;box-shadow:0 0 0 4px #f2c94c44}
.kd-goal{display:flex;align-items:center;gap:12px;margin-top:14px;padding:13px 14px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1.5px #f0dfb6,0 8px 18px -12px #5a3a1a66}
.kd-goal>div{flex:1;min-width:0}.kd-goal small{font-size:10px;font-weight:900;letter-spacing:1.4px;color:#b0662c}.kd-goal p{font-size:15px;font-weight:800;line-height:1.3;margin-top:2px!important}
.kd-primary{flex:none;border:0;border-radius:16px;padding:12px 16px;background:#c9643b;color:#fff!important;font-weight:900;font-size:14.5px;box-shadow:0 4px 0 #9a4526;max-width:46%;line-height:1.15}
.kd-primary:active{transform:translateY(3px);box-shadow:0 1px 0 #9a4526}
.kd-primary.kd-wide{display:block;width:100%;max-width:none;padding:15px;font-size:17px;margin-top:16px;border-radius:18px}
.kd-ghost{display:block;width:100%;margin-top:10px;padding:13px;border:0;border-radius:18px;background:#fff;font-weight:900;font-size:15px;box-shadow:0 3px 0 #e3d8bd}
.kd-market{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:12px 14px;border:0;border-radius:22px;text-align:start;color:#fff!important;background:linear-gradient(135deg,#1f6f78,#17485a 60%,#123a4a);box-shadow:inset 0 0 0 1.5px #ffd77888,0 5px 0 #0e2f3c,0 14px 22px -14px #0e2f3c}
.kd-market:active{transform:translateY(3px);box-shadow:inset 0 0 0 1.5px #ffd77888,0 2px 0 #0e2f3c}
.kd-market-art{display:flex;flex:none}.kd-market-art svg{width:38px;height:38px;margin-inline-end:-12px;filter:drop-shadow(0 3px 3px #0005)}.kd-market-art svg:last-child{margin-inline-end:0}
.kd-market-txt{flex:1;min-width:0}.kd-market-txt b{display:block;font-size:18px;font-weight:900;line-height:1.15}.kd-market-txt small{display:block;font-size:12px;font-weight:700;opacity:.85;margin-top:2px}
.kd-go{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#f2c94c;color:#5a3a00;box-shadow:0 3px 0 #b8860b}.kd-go svg{width:20px;height:20px}[dir=rtl] .kd-go svg{transform:scaleX(-1)}
.kd-h{font-size:12px!important;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;color:#7a7288;margin:20px 4px 8px!important}
.kd-list{display:grid;gap:9px}
.kd-card{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:20px;background:#fff;text-align:start;box-shadow:inset 0 0 0 1px #efe4c8,0 8px 16px -13px #5a3a1a66}
.kd-card.kd-locked{background:#f3ecdb;box-shadow:inset 0 0 0 1px #e8dcc0}.kd-card.kd-locked .kd-thumb,.kd-card.kd-locked .kd-ico{filter:grayscale(.8);opacity:.6}
.kd-thumb{flex:none;width:78px;height:52px;overflow:visible}
.kd-ico{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#eef4f2;color:#1f6f78}.kd-ico svg{width:28px;height:28px}.kd-ico.kd-unit{background:#e6f1ef;overflow:hidden}.kd-ico.kd-unit svg{width:44px;height:52px;margin-top:10px}
.kd-card-main{flex:1;min-width:0}.kd-card-main b{display:block;font-size:16px;font-weight:900;line-height:1.2}.kd-card-main small{display:block;font-size:12.5px;font-weight:700;color:#6a6278;line-height:1.3;margin-top:1px}
.kd-buy{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:74px;padding:8px 12px;border:0;border-radius:15px;background:#2f8f6f;color:#fff!important;box-shadow:0 4px 0 #1f6a50;font-weight:900}
.kd-buy i{font-style:normal;font-size:13px}.kd-buy:active{transform:translateY(3px);box-shadow:0 1px 0 #1f6a50}
.kd-buy:disabled{background:#d9d2c0;color:#8a8496!important;box-shadow:0 4px 0 #c4bba4}
.kd-buy.kd-plain{background:#1d2b4c;box-shadow:0 4px 0 #101a33;padding:13px 14px}
.kd-price{display:inline-flex;align-items:center;gap:4px;font-weight:900;font-size:14px}.kd-price .kd-coin{width:16px;height:16px}.kd-price.kd-free{font-size:12px;opacity:.8}
.kd-tag{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:900;color:#8a8496}.kd-tag svg{width:18px;height:18px}.kd-tag.kd-ok{color:#1f6f5a;background:#dff3ea;border-radius:999px;padding:6px 10px 6px 7px}
.kd-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.kd-chip{display:inline-block;font-size:11px;font-weight:900;padding:3px 9px;border-radius:999px;background:#ece4cf;color:#6a6278}.kd-chip.kd-ok{background:#dff3ea;color:#1f6f5a}.kd-chip.kd-no{background:#fbe3dc;color:#a83a2a}
.kd-soon{display:flex;flex-wrap:wrap;gap:7px}.kd-soon span{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:800;color:#8a8496;padding:7px 12px 7px 9px;border-radius:999px;background:#efe8d6}.kd-soon svg{width:14px;height:14px}
.kd-note{font-size:11px;color:#8a8496;text-align:center;margin-top:16px!important}.kd-note+.kd-note{margin-top:4px!important}.kd-note.kd-warn{color:#a83a2a;font-weight:800}

/* --- utusan & rundingan --- */
.kd-region{border-radius:24px;overflow:hidden;aspect-ratio:36/17;box-shadow:0 0 0 2px #f2d79a,0 12px 26px -14px #5a3a1a80}.kd-region svg{display:block;width:100%;height:100%}
.kd-city{cursor:pointer}.kd-city:active{transform:scale(.98)}
.kd-crest{flex:none;width:56px;height:56px}.kd-crest svg{width:100%;height:100%;display:block}.kd-crest.kd-big{width:96px;height:96px;display:block;margin:6px auto 8px;filter:drop-shadow(0 8px 10px #5a3a1a33)}
.kd-arrow{flex:none;width:22px;height:22px;color:#b8ad92}.kd-arrow svg{width:100%;height:100%;display:block}[dir=rtl] .kd-arrow{transform:scaleX(-1)}
.kd-talk{text-align:center}.kd-talk h2{font-size:26px;font-weight:900;line-height:1.15;margin-bottom:6px!important}
.kd-want{margin-top:14px;padding:13px 15px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px #efe4c8}.kd-want small{font-size:10px;font-weight:900;letter-spacing:1.4px;color:#b0662c}.kd-want p{font-size:15.5px;font-weight:800;line-height:1.35;margin-top:2px!important}
.kd-offers{display:grid;gap:9px}
.kd-offers button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:56px;padding:12px 15px;border:0;border-radius:18px;background:#fff;text-align:start;font-weight:900;font-size:15.5px;box-shadow:inset 0 0 0 1.5px #e9dcb8,0 4px 0 #e3d8bd}
.kd-offers button:active{transform:translateY(3px);box-shadow:inset 0 0 0 1.5px #e9dcb8,0 1px 0 #e3d8bd}.kd-offers button:disabled{opacity:.5}
.kd-offers .kd-price{flex:none;padding:5px 10px;border-radius:999px;background:#fbeecb}
.kd-reply{position:relative;margin-top:14px;padding:18px 16px 14px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 2px #e9a493;animation:kd-pop .45s cubic-bezier(.3,1.5,.5,1) both}
.kd-reply.kd-ok{box-shadow:inset 0 0 0 2px #7fc9a8;background:#f3fbf7}
.kd-stamp{position:absolute;top:-12px;inset-inline-end:14px;padding:4px 12px;border-radius:8px;font-size:13px;font-weight:900;letter-spacing:1.5px;color:#fff;background:#c0392b;transform:rotate(4deg);box-shadow:0 3px 0 #8a2418}
.kd-ok .kd-stamp{background:#2f8f6f;box-shadow:0 3px 0 #1f6a50}
.kd-reply blockquote{font-size:17px;font-weight:800;line-height:1.4;color:#2f2840}
.kd-effect{font-size:13px;font-weight:800;color:#6a6278;margin-top:8px!important}.kd-ok .kd-effect{color:#1f6f5a}.kd-effect:empty{display:none}

/* --- Pasar 30 Saat --- */
.kd-game{flex:1;min-height:0;display:flex;flex-direction:column;width:100%}
.kd-hud{display:flex;align-items:center;gap:10px;padding:0 16px 8px}
.kd-timer{position:relative;flex:1;height:30px;border-radius:999px;background:#e8dfc8;overflow:hidden;box-shadow:inset 0 2px 4px #5a3a1a22}
.kd-timer i{position:absolute;inset:0;border-radius:999px;background:linear-gradient(90deg,#2f8f6f,#5fc79a);transform-origin:left center}[dir=rtl] .kd-timer i{transform-origin:right center}
.kd-timer b{position:absolute;inset:0;display:grid;place-items:center;font-weight:900;font-size:15px;color:#fff;text-shadow:0 1px 2px #0006}
.kd-timer.kd-low i{background:linear-gradient(90deg,#d8402a,#f08a5a)}.kd-timer.kd-low{animation:kd-pulse .5s ease-in-out infinite alternate}
.kd-earn{display:flex;align-items:center;gap:6px;padding:5px 13px 5px 8px;border-radius:999px;background:linear-gradient(#fffdf5,#fbeecb);box-shadow:inset 0 0 0 1.5px #e9c877;font-weight:900;font-size:18px;min-width:76px;justify-content:center}
.kd-bump{animation:kd-bump .3s}
.kd-hotline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 8px;min-height:34px}
.kd-hot{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:800;color:#8a3a14;background:#ffe6c4;padding:5px 11px 5px 8px;border-radius:999px}.kd-hot svg{width:15px;height:15px;color:#e8662a}.kd-hot b{font-weight:900}
.kd-combo{font-size:13px;font-weight:900;color:#fff;background:linear-gradient(#ff8a6b,#e2507a);padding:5px 12px;border-radius:999px}.kd-combo[hidden]{display:none}
.kd-lane{position:relative;flex:1;min-height:190px;display:flex;align-items:flex-end;justify-content:space-around;padding:0 8px;background:#e9bb78;overflow:hidden}
.kd-lane-art{position:absolute;inset:0;width:100%;height:100%}
.kd-lane::after{content:"";position:absolute;inset:auto 0 0 0;height:36%;background:linear-gradient(transparent,#b9793a66);pointer-events:none}
.kd-awning{position:absolute;inset:0 0 auto 0;height:26px;background:repeating-linear-gradient(90deg,#d8402a 0 34px,#fff8e6 34px 68px);box-shadow:0 5px 10px #5a3a1a44;border-radius:0 0 14px 14px/0 0 12px 12px;z-index:2}
.kd-awning::after{content:"";position:absolute;inset:100% 0 auto 0;height:10px;background:radial-gradient(circle at 17px 0,#d8402a 0 11px,transparent 12px) 0 0/68px 10px,radial-gradient(circle at 51px 0,#fff8e6 0 11px,transparent 12px) 0 0/68px 10px}
.kd-spot{position:relative;flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;z-index:1}
.kd-cust{position:relative;display:flex;flex-direction:column;align-items:center;animation:kd-in .35s cubic-bezier(.3,1.4,.5,1) both;padding-bottom:6px}
.kd-fig{width:clamp(84px,25vw,124px);height:auto;display:block;filter:drop-shadow(0 6px 6px #3a2a1a33)}
.kd-bub{position:relative;width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:#fff;margin-bottom:5px;box-shadow:0 6px 12px -4px #3a2a1a55}
.kd-bub::after{content:"";position:absolute;top:calc(100% - 5px);left:50%;width:14px;height:14px;background:#fff;transform:translateX(-50%) rotate(45deg);border-radius:3px;z-index:-1}
.kd-bub svg{position:relative;z-index:1;width:48px;height:48px}
.kd-ring{position:absolute;inset:-4px;border-radius:50%;background:conic-gradient(#2f8f6f calc(var(--p)*360deg),#e8dfc8 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px))}
.kd-hurry .kd-ring{background:conic-gradient(#d8402a calc(var(--p)*360deg),#f3d6cc 0)}.kd-hurry .kd-bub{animation:kd-wob .35s ease-in-out infinite alternate}
.kd-bub-hot{box-shadow:0 0 0 3px #ffb02e66,0 6px 12px -4px #3a2a1a55}
.kd-happy{animation:kd-out .5s ease-in forwards}.kd-happy .kd-bub{background:#dff3ea}.kd-sad{animation:kd-sad .42s ease-in forwards}.kd-sad .kd-bub{filter:grayscale(1)}
.kd-float{position:absolute;top:-6px;left:50%;transform:translateX(-50%);font-weight:900;font-size:22px;color:#fff;background:#e2a21c;padding:1px 11px;border-radius:999px;box-shadow:0 3px 0 #a8760f;animation:kd-float .5s ease-out both;white-space:nowrap;z-index:3}
.kd-ready{position:absolute;inset:0;display:grid;place-items:center;z-index:4;font-size:34px;font-weight:900;color:#fff;text-shadow:0 3px 0 #9a4526,0 8px 18px #0006;background:#1d2b4c44;animation:kd-pop .4s both}
.kd-counter{flex:none;position:relative;z-index:3;padding:10px 12px calc(env(safe-area-inset-bottom) + 14px);background:linear-gradient(#b9793a,#9a5f28 12px,#8a5222);box-shadow:0 -6px 14px #3a2a1a44;border-top:4px solid #d9a05a}
.kd-help{font-size:12px;font-weight:800;color:#ffe9c4;text-align:center;margin-bottom:8px!important}
.kd-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.kd-tiles.kd-n5,.kd-tiles.kd-n6{grid-template-columns:repeat(3,1fr)}
.kd-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;min-height:112px;padding:8px 4px 9px;border:0;border-radius:18px;background:linear-gradient(#fffdf6,#f6ead0);box-shadow:inset 0 0 0 1.5px #ecd9a8,0 5px 0 #6a3f18;overflow:hidden;user-select:none;-webkit-user-select:none}
.kd-tile:active{transform:translateY(4px);box-shadow:inset 0 0 0 1.5px #ecd9a8,0 1px 0 #6a3f18}
.kd-tile svg{width:clamp(44px,13vw,58px);height:auto;pointer-events:none}.kd-tile>b{font-size:13px;font-weight:900;line-height:1.1;pointer-events:none}
.kd-tile .kd-price{font-size:12.5px;color:#8a5a14;pointer-events:none}.kd-tile .kd-price .kd-coin{width:14px;height:14px}
.kd-tile.kd-is-hot{box-shadow:inset 0 0 0 2.5px #ffb02e,0 5px 0 #6a3f18}.kd-tile.kd-is-hot .kd-price{color:#c2410c}
.kd-stock{display:flex;gap:2.5px;margin-top:3px;pointer-events:none}.kd-stock i{width:6px;height:6px;border-radius:50%;background:#e2d6b8}.kd-stock i.kd-on{background:#2f8f6f}
.kd-refill{position:absolute;inset:0;display:none;align-items:flex-end;justify-content:center;padding-bottom:12px;background:#f3ecdbe8;font-size:11.5px;font-weight:900;color:#6a6278;pointer-events:none}
.kd-refill i{position:absolute;inset:auto 10px 34px 10px;height:8px;border-radius:8px;background:#2f8f6f;transform-origin:left center;transform:scaleX(0)}[dir=rtl] .kd-refill i{transform-origin:right center}
.kd-refill::before{content:"";position:absolute;inset:auto 10px 34px 10px;height:8px;border-radius:8px;background:#ddd2b6}
.kd-empty .kd-refill{display:flex}.kd-empty svg,.kd-empty>b{opacity:.35}
.kd-shake{animation:kd-shake .3s}.kd-sold{animation:kd-sold .25s}

/* --- keputusan --- */
.kd-result{text-align:center;padding-top:22px}.kd-result h2{font-size:26px;font-weight:900;margin-top:2px!important}
.kd-bigcoin{display:inline-flex;align-items:center;gap:10px;margin-top:14px;padding:12px 26px 12px 16px;border-radius:999px;background:linear-gradient(#fffdf5,#fbe7b0);box-shadow:inset 0 0 0 2px #e9c877,0 6px 0 #d9b25a,0 18px 26px -14px #a8760f;animation:kd-pop .5s cubic-bezier(.3,1.5,.5,1) both}
.kd-bigcoin .kd-coin{width:46px;height:46px}.kd-bigcoin b{font-size:44px;font-weight:900;line-height:1}
.kd-record{display:inline-block;margin-top:14px;padding:5px 14px;border-radius:999px;background:#1d2b4c;color:#ffd97a;font-weight:900;font-size:13px}
.kd-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:20px}.kd-stats div{padding:12px 6px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px #efe4c8}.kd-stats b{display:block;font-size:24px;font-weight:900;line-height:1.1}.kd-stats small{font-size:11.5px;font-weight:800;color:#6a6278}
.kd-amin{margin-top:16px!important;padding:12px 15px;border-radius:16px;background:#eef4f2;font-size:13.5px;font-weight:700;color:#2f4a48;line-height:1.45;text-align:start;box-shadow:inset 0 0 0 1px #cfe3df}

/* --- toast & lapisan --- */
.kd-toast{position:absolute;z-index:12;left:50%;bottom:calc(env(safe-area-inset-bottom) + 20px);transform:translate(-50%,30px);width:max-content;max-width:86%;padding:10px 18px;border-radius:999px;background:#1d2b4c;color:#ffe9a0;font-weight:900;font-size:14px;text-align:center;opacity:0;pointer-events:none;transition:transform .3s,opacity .3s;box-shadow:0 10px 22px -8px #0008}
.kd-s-pasar .kd-toast{bottom:auto;top:calc(env(safe-area-inset-top) + 150px)}
.kd-toast.kd-show{opacity:1;transform:translate(-50%,0)}
.kd-over{position:absolute;inset:0;z-index:9;display:grid;place-items:safe center;overflow:auto;padding:20px;background:#101d30cc;animation:kd-fade .25s both}
.kd-over-card{width:100%;max-width:400px;padding:22px 20px 20px;border-radius:28px;background:#f8f3e7;text-align:center;box-shadow:0 0 0 2px #f2c94c,0 30px 60px -20px #000;animation:kd-pop .5s cubic-bezier(.3,1.5,.5,1) both}
.kd-over-art{width:104px;height:104px;margin:10px auto 6px;border-radius:50%;background:radial-gradient(circle,#fff6d0,#f2c94c);display:grid;place-items:center;overflow:hidden;box-shadow:0 0 0 5px #fff,0 10px 20px -8px #a8760f}.kd-over-art svg{width:74px;margin-top:22px}
.kd-over-card h2{font-size:23px;font-weight:900;line-height:1.2}.kd-over-card p{font-size:14.5px;font-weight:700;color:#5a5268;margin-top:8px!important;line-height:1.45}
.kd-over-card .kd-chain{margin-top:16px!important}

body.kd-open #app *{animation-play-state:paused!important}.kd-paused *{animation-play-state:paused!important}
@keyframes kd-in{from{transform:translateY(40px) scale(.8);opacity:0}}
@keyframes kd-out{to{transform:translateY(-26px);opacity:0}}
@keyframes kd-sad{to{transform:translateY(20px);opacity:0}}
@keyframes kd-float{from{transform:translate(-50%,24px) scale(.6);opacity:0}}
@keyframes kd-pop{from{transform:scale(.7);opacity:0}}
@keyframes kd-fade{from{opacity:0}}
@keyframes kd-bump{50%{transform:scale(1.18)}}
@keyframes kd-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@keyframes kd-sold{50%{transform:scale(.93)}}
@keyframes kd-wob{to{transform:rotate(5deg) scale(1.05)}}
@keyframes kd-pulse{to{box-shadow:0 0 0 4px #d8402a44}}
@keyframes kd-smoke{from{transform:translateY(0);opacity:.7}to{transform:translateY(-14px);opacity:0}}
@keyframes kd-flag{50%{transform:skewY(-6deg) scaleX(.94)}}
@media(min-width:700px){#kota-dagang{height:min(940px,94dvh);border-radius:28px}.kd-fig{width:124px}.kd-tile svg{width:58px}}
@media(max-width:360px){.kd-header{padding-inline:12px;gap:7px}.kd-header h1{font-size:17px}.kd-scroll{padding-inline:12px}.kd-thumb{width:62px}.kd-card{gap:9px;padding:9px 10px}.kd-buy{min-width:64px;padding:8px 9px}.kd-tile{min-height:100px}.kd-tile>b{font-size:12px}.kd-bub{width:62px;height:62px}.kd-bub svg{width:40px;height:40px}.kd-chain li{font-size:9.5px}}
@media(max-height:600px){.kd-s-pasar .kd-scroll{overflow-y:auto}.kd-game{min-height:max-content}.kd-lane{min-height:156px}.kd-lane .kd-fig{width:70px}.kd-counter .kd-tile{min-height:89px}.kd-counter .kd-tile>svg{width:39px;height:39px}}
@media(prefers-reduced-motion:reduce){#kota-dagang *,#kd-entry{animation:none!important;transition:none!important}}

/* ===== v2: Berkat, Ujian Amanah, waktu solat, Kad Ilmu ===== */
.kd-lantern{width:20px;height:20px;flex:none}
.kd-bar{display:block;height:7px;border-radius:7px;background:#e8dfc8;overflow:hidden}.kd-bar u{display:block;height:100%;border-radius:7px;background:linear-gradient(90deg,#e2a21c,#ffd27a);transform-origin:left center;transition:transform .4s}[dir=rtl] .kd-bar u{transform-origin:right center}
.kd-berkat{flex:none;display:flex;align-items:center;gap:5px;padding:5px 10px 5px 6px;border-radius:999px;background:#fff8e6;box-shadow:inset 0 0 0 1.5px #f2d79a;font-weight:900;font-size:14px;color:#8a5a14}
.kd-berkat i{display:block;width:34px;height:7px;border-radius:7px;background:#eadfc4;overflow:hidden}.kd-berkat u{display:block;height:100%;background:linear-gradient(90deg,#e2a21c,#ffd27a);transform-origin:left center;transition:transform .4s}[dir=rtl] .kd-berkat u{transform-origin:right center}
.kd-berkat.kd-up{box-shadow:inset 0 0 0 2px #2f8f6f,0 0 0 4px #2f8f6f33}.kd-berkat.kd-down{box-shadow:inset 0 0 0 2px #d8402a,0 0 0 4px #d8402a33}
.kd-scene-berkat{position:absolute;top:10px;inset-inline-end:10px;display:flex;align-items:center;gap:5px;padding:6px 11px 6px 7px;border-radius:999px;background:#fff8e6f2;box-shadow:inset 0 0 0 1.5px #f2c94c;font-size:12px;font-weight:800;color:#8a5a14}.kd-scene-berkat b{font-size:14px;font-weight:900;color:#5a3a00}
button.kd-cust{border:0;background:none;padding:0 0 6px;cursor:pointer}
.kd-lab{display:block;margin:-2px 0 3px;padding:2px 9px;border-radius:999px;font-size:10.5px;font-weight:900;letter-spacing:.3px;white-space:nowrap;color:#fff;background:#6a6278;position:relative;z-index:2}
.kd-lab-f{background:#c0456a}.kd-lab-k{background:#a8760f}.kd-lab-t{background:#1d2b4c;color:#ffd97a}
.kd-bub-f{box-shadow:0 0 0 3px #e2507a55,0 6px 12px -4px #3a2a1a55}.kd-heart{position:absolute!important;right:-7px;top:-7px;width:26px!important;height:26px!important;z-index:2!important}
.kd-bub-k{width:auto;min-width:124px;height:56px;border-radius:28px;display:flex;align-items:center;justify-content:center;gap:1px;padding:0 9px}
.kd-bub-k>span[data-w]{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;transition:opacity .2s}.kd-bub-k svg{width:34px;height:34px}
.kd-bub-k>span.kd-got{opacity:.28}.kd-bub-k>span.kd-got::after{content:"";position:absolute;inset:6px;border-radius:50%;background:#2f8f6f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/70% no-repeat;opacity:1}
.kd-bub-k .kd-ring{inset:auto 14px -9px 14px;height:6px;border-radius:6px;background:linear-gradient(90deg,#2f8f6f calc(var(--p)*100%),#e8dfc8 0);-webkit-mask:none;mask:none}
.kd-hurry .kd-bub-k .kd-ring{background:linear-gradient(90deg,#d8402a calc(var(--p)*100%),#f3d6cc 0)}
.kd-camel{position:absolute;bottom:2px;inset-inline-start:58%;width:clamp(64px,19vw,92px);height:auto;z-index:-1;pointer-events:none}
.kd-bub-t{background:linear-gradient(#fff6d0,#f2c94c);box-shadow:0 0 0 3px #1d2b4c,0 6px 12px -4px #3a2a1a55;animation:kd-beat .8s ease-in-out infinite alternate}.kd-bub-t::after{background:#f2c94c}
.kd-q{position:relative;z-index:1;font-size:40px;font-weight:900;line-height:1;color:#1d2b4c}
.kd-calm{animation:kd-sad .42s ease-in forwards}
.kd-float-b{background:#c0456a;box-shadow:0 3px 0 #8a2a48;font-size:16px}
.kd-azan{position:absolute;z-index:5;top:38px;left:10px;right:10px;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:20px;background:linear-gradient(135deg,#1f6f78,#123a4a);color:#fff;box-shadow:inset 0 0 0 2px #ffd778,0 12px 24px -10px #0009;animation:kd-pop .4s cubic-bezier(.3,1.5,.5,1) both}
.kd-mosque{flex:none;width:42px;height:42px}.kd-azan-txt{flex:1;min-width:0}.kd-azan-txt b{display:block;font-size:15px;font-weight:900;line-height:1.2;margin-bottom:6px}.kd-azan .kd-bar{background:#ffffff33}.kd-azan .kd-bar u{transition:none;background:#ffd778}
.kd-pray{flex:none;max-width:46%;border:0;border-radius:14px;padding:10px 12px;background:#f2c94c;color:#3a2a00!important;font-weight:900;font-size:13.5px;line-height:1.15;box-shadow:0 4px 0 #a8760f}.kd-pray:active{transform:translateY(3px);box-shadow:0 1px 0 #a8760f}
.kd-praying{background:#0e2f3cf2}.kd-pray-card{display:flex;flex-direction:column;align-items:center;gap:14px;color:#fff;font-size:24px;font-weight:900;animation:kd-pop .5s both}.kd-pray-card .kd-mosque{width:120px;height:120px}
.kd-over{overflow:auto}.kd-over-card{position:relative;max-height:100%;overflow:auto}
.kd-testcard{text-align:center}.kd-test-art{width:84px;height:84px;margin:8px auto 10px;border-radius:50%;background:radial-gradient(circle,#fff6d0,#f2c94c);overflow:hidden;display:grid;place-items:center;box-shadow:0 0 0 4px #fff}.kd-test-art svg{width:62px;margin-top:20px}
.kd-test-q{font-size:19px!important;font-weight:900;line-height:1.35!important;color:#1d2b4c!important;margin-top:0!important}.kd-test-q:focus{outline:none}
.kd-what{display:block;margin:14px 0 8px;font-size:12px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase;color:#b0662c}
.kd-choices{display:grid;gap:10px}.kd-choices button{min-height:60px;padding:12px 14px;border:0;border-radius:18px;background:#fff;font-weight:900;font-size:16px;line-height:1.3;box-shadow:inset 0 0 0 2px #e9dcb8,0 5px 0 #e3d8bd}.kd-choices button:active{transform:translateY(4px);box-shadow:inset 0 0 0 2px #e9dcb8,0 1px 0 #e3d8bd}
.kd-over-card .kd-stamp{position:static;display:inline-block;transform:rotate(-3deg);margin-bottom:12px;font-size:16px;padding:6px 16px}
.kd-right .kd-stamp{background:#2f8f6f;box-shadow:0 3px 0 #1f6a50}.kd-right{box-shadow:0 0 0 3px #2f8f6f,0 30px 60px -20px #000!important}.kd-wrongA{box-shadow:0 0 0 3px #d8402a,0 30px 60px -20px #000!important}
.kd-better{font-size:14.5px!important;font-weight:800!important;color:#1f6f5a!important;margin:0 0 10px!important;padding:10px 14px;line-height:1.4!important;border-radius:14px;background:#dff3ea;text-align:start}.kd-better b{font-weight:900}
.kd-over-card .kd-effect{font-size:13.5px!important;font-weight:900!important;margin-top:10px!important;color:#6a6278!important}.kd-right .kd-effect{color:#1f6f5a!important}.kd-wrongA .kd-effect{color:#a83a2a!important}
.kd-kads{display:grid;gap:10px}
.kd-kad{position:relative;padding:14px 15px 12px;border-radius:18px;background:#fff;text-align:start;box-shadow:inset 0 0 0 1px #efe4c8,0 8px 16px -13px #5a3a1a66;border-inline-start:0}
.kd-kad h3{font-size:17px;font-weight:900;line-height:1.25;margin-top:7px!important;color:#1d2b4c}.kd-kad p{font-size:14.5px!important;font-weight:700!important;line-height:1.55!important;color:#3a3350!important;margin-top:6px!important}
[dir=rtl] .kd-kad p{line-height:1.9!important;font-size:15.5px!important}
.kd-src-tag{display:inline-block;padding:2px 9px;border-radius:6px;font-size:10px;font-weight:900;letter-spacing:1px;color:#fff;background:#2f8f83}.kd-tH .kd-src-tag{background:#3f78a8}.kd-tQ .kd-src-tag{background:#b8771c}.kd-tR .kd-src-tag{background:#c9643b}
.kd-kad footer{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:9px;padding-top:9px;border-top:1px dashed #e6dabb}.kd-kad footer b{flex:1;min-width:150px;font-size:12px;font-weight:900;color:#6a6278}
.kd-kad footer a{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:900;color:#1f6f78;text-decoration:none;padding:5px 10px;border-radius:999px;background:#e6f1ef}.kd-kad footer a svg{width:13px;height:13px}
.kd-kad.kd-lock{display:flex;align-items:center;gap:12px;background:#f3ecdb;box-shadow:inset 0 0 0 1px #e8dcc0;color:#8a8496}.kd-kad.kd-lock>svg{flex:none;width:22px;height:22px}.kd-kad.kd-lock b{display:block;font-size:14px;font-weight:900}.kd-kad.kd-lock small{display:block;font-size:12.5px;font-weight:700}
.kd-newkad .kd-kad,.kd-testcard .kd-kad{margin-top:10px;box-shadow:inset 0 0 0 1.5px #f2d79a}
.kd-book{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;padding:12px 14px;border:0;border-radius:22px;text-align:start;background:linear-gradient(135deg,#fff8e6,#fbeecb);box-shadow:inset 0 0 0 1.5px #e9c877,0 5px 0 #e0c68c}
.kd-book:active{transform:translateY(3px);box-shadow:inset 0 0 0 1.5px #e9c877,0 2px 0 #e0c68c}
.kd-book-ic{flex:none;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#1d2b4c;color:#ffd97a}.kd-book-ic svg{width:26px;height:26px}
.kd-book-txt{flex:1;min-width:0}.kd-book-txt b{display:block;font-size:17px;font-weight:900;line-height:1.15}.kd-book-txt small{display:block;font-size:12px;font-weight:800;color:#8a5a14;margin:2px 0 6px}
.kd-book .kd-arrow svg,.kd-city .kd-arrow svg{transform:scaleX(-1)}[dir=rtl] .kd-book .kd-arrow svg,[dir=rtl] .kd-city .kd-arrow svg{transform:none}
.kd-bookhead{display:flex;align-items:center;gap:14px;padding:16px;border-radius:22px;background:linear-gradient(135deg,#fff8e6,#fbeecb);box-shadow:inset 0 0 0 1.5px #e9c877}.kd-bookhead>div{flex:1;min-width:0}.kd-bookhead h2{font-size:22px;font-weight:900;line-height:1.2;margin-bottom:8px!important}.kd-bookhead .kd-book-ic{width:56px;height:56px;border-radius:18px}
.kd-bres{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 8px;margin-top:10px;padding:12px 14px;border-radius:18px;background:#fff8e6;box-shadow:inset 0 0 0 1.5px #f2d79a;font-weight:800;font-size:14px;color:#8a5a14;text-align:start}
.kd-bres b{font-size:17px;font-weight:900;color:#5a3a00}.kd-bres .kd-bar{grid-column:1/-1}.kd-bres.kd-up b{color:#1f6f5a}.kd-bres.kd-down b{color:#a83a2a}
.kd-result .kd-kads{margin-bottom:4px}
.kd-intro .kd-over-art svg{width:64px;height:64px;margin:0}
.kd-steps3{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 0!important}.kd-steps3 li{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:900;line-height:1.2;color:#1d2b4c}
.kd-steps3 span{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1.5px #f2d79a;color:#1f6f78}.kd-steps3 span svg{width:30px;height:30px}.kd-steps3 .kd-q{font-size:30px}
@keyframes kd-beat{to{transform:scale(1.1)}}
@media(max-width:360px){.kd-berkat i{display:none}.kd-bub-k{min-width:108px;height:50px}.kd-bub-k>span[data-w]{width:30px;height:30px}.kd-bub-k svg{width:28px;height:28px}.kd-azan{flex-wrap:wrap}.kd-pray{max-width:none;flex:1 1 100%}.kd-test-q{font-size:17px!important}.kd-choices button{font-size:15px}}
.kd-kad.kd-lock{padding:9px 13px;border-radius:14px}.kd-kad.kd-lock b{font-size:13px}.kd-kad.kd-lock small{font-size:12px}
#kota-dagang .kd-better{padding:10px 14px}#kota-dagang .kd-toast{padding:10px 18px}

/* Anime market scene. The stage, actors, orders and foreground effects move separately. */
.kd-s-pasar {
  --kd-ink: #14233a;
  --kd-night: #1b3048;
  --kd-parchment: #fff0ce;
  --kd-brass: #dcb77a;
  background: var(--kd-ink);
  color: var(--kd-parchment);
}
.kd-s-pasar .kd-header {padding-bottom: 9px;}
.kd-s-pasar .kd-header h1 {color: #fff4dc;}
.kd-s-pasar .kd-header .kd-kicker {color: #e3b975;}
.kd-s-pasar .kd-icon-button {
  background: #263c55;
  color: #fff4dc;
  box-shadow: inset 0 0 0 1px #fff0ce36, 0 3px 0 #0f1c2d;
}
.kd-s-pasar .kd-purse, .kd-s-pasar .kd-earn, .kd-s-pasar .kd-berkat {
  background: #21354d;
  color: var(--kd-parchment);
  box-shadow: inset 0 0 0 1px #e6ba754d;
}
.kd-s-pasar .kd-timer {background: #2c4560;}
.kd-s-pasar .kd-timer i {background: linear-gradient(90deg, #197b75, #3cb493);}
.kd-s-pasar .kd-timer.kd-low i {background: linear-gradient(90deg, #9c414a, #cd645b);}
.kd-s-pasar .kd-hotline {min-height: 32px; padding-bottom: 7px;}
.kd-s-pasar .kd-hot {background: #4d382a; color: #ffe5a8;}
.kd-s-pasar .kd-hot svg {color: #ffc672;}
.kd-s-pasar .kd-combo {background: #553e70; color: #ffe8a8; box-shadow: inset 0 0 0 1px #f6c77788;}
.kd-s-pasar .kd-lane {
  isolation: isolate;
  min-height: 225px;
  padding: 0 5px;
  background: #b79b7f url('art/desert-world.webp') center bottom / cover;
  border-block: 1px solid #f0b875;
}
.kd-s-pasar .kd-lane::after {
  inset: 0;
  height: auto;
  z-index: 0;
  background: linear-gradient(180deg, #29466b12, transparent 54%, #4c30431f 82%, #16243c76);
}
.kd-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  transform: scale(1.025);
  transform-origin: center 65%;
  animation: kd-establish 1.05s cubic-bezier(.19,1,.22,1) both;
  pointer-events: none;
}
.kd-atmosphere {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 73% 13%, #ffe0a34f, transparent 56%);
  opacity: .5;
  transition: opacity .55s, background-color .55s;
  pointer-events: none;
}
.kd-combo-glow .kd-atmosphere {
  opacity: 1;
  background-color: #f9aa4918;
}
.kd-s-pasar .kd-ready {
  background: #1b30488c;
  color: #fff0ce;
  text-shadow: 0 4px 14px #0f1c2d;
  animation: kd-fade .24s both;
}
.kd-s-pasar .kd-spot {
  --kd-approach: 68%;
  --kd-retreat: -50%;
  flex-basis: 0;
  min-width: 0;
  padding-bottom: 13px;
}
.kd-s-pasar .kd-spot:nth-of-type(3) {--kd-approach: -20%; --kd-retreat: 12%; padding-bottom: 23px;}
.kd-s-pasar .kd-spot:nth-of-type(4) {--kd-approach: -68%; --kd-retreat: 43%;}
[dir=rtl] .kd-s-pasar .kd-spot:nth-of-type(2) {--kd-approach: -68%; --kd-retreat: 43%;}
[dir=rtl] .kd-s-pasar .kd-spot:nth-of-type(4) {--kd-approach: 68%; --kd-retreat: -50%;}
.kd-s-pasar .kd-cust {
  width: 100%;
  min-width: 0;
  padding: 0;
  transform-origin: center bottom;
  animation: kd-approach .64s cubic-bezier(.22,.61,.36,1) both;
}
.kd-s-pasar .kd-cust.kd-happy {animation: kd-goodbye .51s ease-in both;}
.kd-s-pasar .kd-cust.kd-sad, .kd-s-pasar .kd-cust.kd-calm {animation: kd-retreat .5s ease-in both;}
.kd-order {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  margin-bottom: 4px;
  animation: kd-order-in .38s .12s both;
}
.kd-lane .kd-bub {
  width: clamp(50px, 13vw, 68px);
  height: clamp(50px, 13vw, 68px);
  margin-bottom: 4px;
  background: #fff7e7;
  border: 1px solid #fff;
  box-shadow: 0 4px 14px #2c2b5363, 0 0 0 1px #274958;
}
.kd-lane .kd-bub::after {background: #fff7e7;}
.kd-lane .kd-bub svg {width: 72%; height: 72%;}
.kd-lane .kd-bub-hot {box-shadow: 0 4px 14px #2c2b5363, 0 0 0 4px #f4be61;}
.kd-lane .kd-bub-t {background: linear-gradient(#fff4c2,#f3be68); animation: kd-beat 1.15s ease-in-out infinite alternate;}
.kd-lane .kd-bub-k {width: max-content; min-width: 0; height: 45px; padding: 0 5px;}
.kd-lane .kd-bub-k > span[data-w] {width: clamp(23px, 6.6vw, 34px); height: auto;}
.kd-lane .kd-bub-k > span[data-w] svg {width: 100%; height: auto;}
.kd-lane .kd-bub-k .kd-ring {inset: auto 10px -5px 10px; height: 4px;}
.kd-lane .kd-lab {margin: 2px 0 0; padding: 2px 7px; font-size: 10px; box-shadow: 0 2px 6px #111a305c;}
.kd-actor {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  height: clamp(104px, 23dvh, 218px);
}
.kd-actor::before {
  content: '';
  position: absolute;
  inset: auto 17% 0;
  height: 7%;
  background: radial-gradient(ellipse, #33273870, #33273800 74%);
  pointer-events: none;
}
.kd-sprite {
  position: absolute;
  inset: auto auto 0 -9.5%;
  display: block;
  width: 119%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center 94%;
  animation: kd-actor-idle 3.4s ease-in-out infinite;
  pointer-events: none;
}
.kd-spot:nth-child(even) .kd-sprite {animation-delay: -1.6s;}
.kd-hurry .kd-sprite {animation-duration: .82s;}
.kd-actor .kd-camel {
  inset-inline-start: 41%;
  inset-inline-end: auto;
  bottom: 3%;
  width: 75%;
  max-width: 89px;
  z-index: 0;
  object-fit: contain;
  transform-origin: center 92%;
  animation: kd-actor-idle 4.4s -1.6s ease-in-out infinite;
}
.kd-spot[data-spot="2"] .kd-camel {
  inset-inline-end: 41%;
  inset-inline-start: auto;
}
.kd-test-art .kd-sprite {position: static; width: 100%; height: 82px; animation: none;}
.kd-market-fx {position: absolute; inset: 0; pointer-events: none; z-index: 3;}
.kd-delivery {position: absolute; width: 0; height: 0;}
.kd-parcel {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -19px;
  background: #fff3ce;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c29257, 0 4px 9px #4c304388;
  animation: kd-deliver .33s cubic-bezier(.22,.7,.36,1) both;
}
.kd-sale-spark {
  position: absolute;
  width: 42px;
  height: 42px;
  left: calc(var(--dx) - 21px);
  top: calc(var(--dy) - 21px);
  background: #fff0b8;
  clip-path: polygon(50% 0, 56% 39%, 84% 16%, 61% 44%, 100% 50%, 61% 56%, 84% 84%, 56% 61%, 50% 100%, 44% 61%, 16% 84%, 39% 56%, 0 50%, 39% 44%, 16% 16%, 44% 39%);
  animation: kd-sale-spark .38s .28s ease-out both;
}
.kd-s-pasar .kd-float {
  top: 34%;
  background: #183242;
  color: #fff0bd;
  box-shadow: 0 2px 0 #dcb77a, 0 4px 8px #14233a9f;
}
.kd-s-pasar .kd-float-b {background: #80455e;}
.kd-s-pasar .kd-counter {
  background: linear-gradient(#263e56, #17283e);
  border-top: 1px solid var(--kd-brass);
  box-shadow: 0 -10px 24px #14233a42;
}
.kd-s-pasar .kd-help {color: #ffedcf;}
.kd-s-pasar .kd-over-card {color: #1d2b4c;}
#kota-dagang .kd-s-pasar .kd-tile {
  background: linear-gradient(#fff7e7,#eae2cb);
  color: #192c46;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px #edcc95, 0 3px 0 #0d1d2e;
  min-height: 98px;
}
.kd-s-pasar .kd-tile.kd-is-hot {box-shadow: inset 0 0 0 2px #e1a744, 0 3px 0 #0d1d2e;}
.kd-s-pasar .kd-tile:focus-visible {outline-color: #ffe8a5; outline-offset: 2px;}
.kd-s-pasar .kd-tile:active {transform: translateY(2px);}
@keyframes kd-establish {from {transform: scale(1.12) translateY(-1.5%);}}
@keyframes kd-approach {
  0% {transform: translate(var(--kd-approach),-51%) scale(.48); opacity: 0;}
  28% {opacity: 1;}
  42% {transform: translate(calc(var(--kd-approach) * .47),-21%) scale(.76) rotate(-2deg);}
  73% {transform: translate(calc(var(--kd-approach) * .12),-6%) scale(.94) rotate(1deg);}
}
@keyframes kd-order-in {from {transform: translateY(6px) scale(.86); opacity: 0;}}
@keyframes kd-goodbye {
  25% {transform: translateY(-4px) rotate(-2deg) scale(1.015);}
  to {transform: translate(var(--kd-retreat),-16%) scale(.82); opacity: 0;}
}
@keyframes kd-retreat {to {transform: translate(var(--kd-retreat),-30%) scale(.65); opacity: 0;}}
@keyframes kd-actor-idle {50% {transform: translateY(-2px) rotate(.75deg) scaleY(1.012);}}
@keyframes kd-deliver {
  from {transform: translate(0,0) scale(.64);}
  55% {transform: translate(calc(var(--dx) * .52),calc(var(--dy) * .72 - 21px)) scale(1.03);}
  to {transform: translate(var(--dx),var(--dy)) scale(.66); opacity: 0;}
}
@keyframes kd-sale-spark {0% {transform: scale(.4) rotate(-12deg); opacity: 0;} 28% {opacity: 1;} 100% {transform: scale(1.65) rotate(12deg); opacity: 0;}}
@media (max-width: 360px), (max-height: 640px) {
  .kd-s-pasar .kd-lane {min-height: 197px;}
  #kota-dagang .kd-s-pasar .kd-tile {min-height: 85px;}
  .kd-s-pasar .kd-tile > svg {width: 40px;height: 40px;}
  .kd-actor {height: clamp(85px, 20dvh, 139px);}
  .kd-s-pasar .kd-spot {padding-bottom: 9px;}
  .kd-s-pasar .kd-spot:nth-of-type(3) {padding-bottom: 15px;}
}
@media (max-height: 600px) {
  .kd-s-pasar .kd-header {padding-top: calc(env(safe-area-inset-top) + 7px);}
  .kd-s-pasar .kd-lane {min-height: 184px;}
  .kd-s-pasar .kd-counter {padding-block: 7px calc(9px + env(safe-area-inset-bottom));}
  #kota-dagang .kd-s-pasar .kd-tile {min-height: 76px; padding-block: 4px 5px;}
}
@media (prefers-reduced-motion: reduce) {
  .kd-market-fx {display: none;}
  .kd-s-pasar .kd-happy, .kd-s-pasar .kd-calm, .kd-s-pasar .kd-sad {opacity: .56;}
}

/* ===== v3: dulang pesanan, Kira Baki, gelombang, bintang ===== */
.kd-s-pasar .kd-hotline{gap:6px}
.kd-wavechip{margin-inline-start:auto;font-size:12px;font-weight:900;padding:5px 11px;border-radius:999px;background:#263c55;color:#ffe5a8;box-shadow:inset 0 0 0 1px #e6ba754d;white-space:nowrap}
.kd-stars{display:inline-flex;gap:2px;margin-inline-start:5px}
.kd-stars i{display:block;width:13px;height:13px;background:#ffffff2e;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.kd-stars i.kd-on{background:#ffd257;animation:kd-pop .4s cubic-bezier(.3,1.6,.5,1) both}
.kd-s-pasar .kd-ready{display:grid;place-items:center;font-size:inherit}
.kd-ready-in{display:flex;flex-direction:column;align-items:center;gap:3px;padding:16px 24px;border-radius:22px;background:#14233ae0;box-shadow:inset 0 0 0 1.5px #dcb77a,0 18px 30px -12px #000;text-align:center;animation:kd-pop .4s cubic-bezier(.3,1.5,.5,1) both}
.kd-ready-in small{font-size:11px;font-weight:900;letter-spacing:1.6px;text-transform:uppercase;color:#e3b975}
.kd-ready-in b{font-size:30px;font-weight:900;line-height:1.1;color:#fff0ce}
.kd-ready-in span{font-size:14px;font-weight:800;color:#ffedcf}
.kd-ready-in em{margin-top:6px;font-style:normal;font-size:12px;font-weight:900;color:#ffd257}
.kd-wave{position:absolute;z-index:6;left:50%;top:20%;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 22px;border-radius:20px;background:#14233ae6;color:#fff0ce;text-align:center;white-space:nowrap;box-shadow:inset 0 0 0 1.5px #dcb77a,0 18px 30px -12px #000;pointer-events:none;animation:kd-wavein 2.3s both}
.kd-wave small{font-size:11px;font-weight:900;letter-spacing:1.6px;text-transform:uppercase;color:#e3b975}.kd-wave b{font-size:26px;font-weight:900;line-height:1.1}.kd-wave span{font-size:13px;font-weight:800;color:#ffedcf}
@keyframes kd-wavein{0%{opacity:0;transform:translate(-50%,-14px) scale(.9)}12%,82%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-8px)}}
.kd-lane.kd-w2 .kd-atmosphere{opacity:.8;background-color:#ffd07a12}
.kd-lane.kd-w3 .kd-atmosphere{opacity:1;background:radial-gradient(ellipse at 73% 13%,#ffb46a70,transparent 62%);background-color:#ff8a4a22}
.kd-lane .kd-bub-o{height:50px;padding:0 7px;gap:3px}
.kd-lane .kd-bub-o>span[data-w]{position:relative;display:grid;place-items:center;width:clamp(28px,7.4vw,38px)}
.kd-lane .kd-bub-o>span[data-w] svg{width:100%;height:auto}
.kd-bub-o em{position:absolute;right:-6px;bottom:-4px;min-width:20px;padding:0 5px;border-radius:999px;background:#1b3048;color:#fff0ce;font-style:normal;font-size:11px;font-weight:900;line-height:17px;text-align:center;box-shadow:0 0 0 1.5px #fff7e7;z-index:2}
.kd-bub-o>span.kd-part em{background:#1f8a6a}
.kd-bub-o>span.kd-w-hot::before{content:"";position:absolute;inset:-2px;border-radius:50%;box-shadow:0 0 0 2px #f4be61;opacity:.9}
.kd-lane .kd-bub-o>span.kd-got{opacity:1}.kd-bub-o>span.kd-got svg{opacity:.35}.kd-lane .kd-bub-o>span.kd-got::after{display:none}.kd-bub-o em:empty{display:none}.kd-bub-o>span.kd-got em{background:#1f8a6a;font-size:12px}
.kd-cust.kd-fit .kd-bub{box-shadow:0 0 0 3px #3cb493,0 0 20px #3cb49399}
.kd-cust.kd-fit .kd-sprite{filter:drop-shadow(0 0 10px #3cb49380)}
.kd-s-pasar .kd-float-fast{background:#1f7a6a;top:18%;font-size:15px}
.kd-tray{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding:6px 8px 6px 12px;border-radius:18px;background:#0f1d2fcc;box-shadow:inset 0 0 0 1px #dcb77a55}
.kd-tray-lab{flex:none;font-size:11px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase;color:#e3b975}
.kd-tray-slots{flex:1;display:flex;justify-content:center;gap:7px}
#kota-dagang .kd-slot{flex:none;width:48px;height:48px;padding:0;border-radius:50%;border:2px dashed #dcb77a70;background:#ffffff0d;display:grid;place-items:center;cursor:default}
#kota-dagang .kd-slot.kd-full{cursor:pointer;border:2px solid #f4d79a;background:#fff3ce;box-shadow:0 3px 0 #0d1d2e}
#kota-dagang .kd-slot.kd-full:active{transform:translateY(2px);box-shadow:0 1px 0 #0d1d2e}
.kd-slot svg{width:34px;height:34px;pointer-events:none}
.kd-slot.kd-in{animation:kd-slotpop .34s cubic-bezier(.3,1.6,.5,1)}
@keyframes kd-slotpop{0%{transform:scale(.4)}100%{transform:scale(1)}}
.kd-tray-sum{flex:none;display:flex;align-items:center;gap:4px;padding:5px 10px 5px 6px;border-radius:999px;background:#21354d;color:#fff0ce;font-weight:900;font-size:15px;min-width:56px;justify-content:center}
.kd-tray-sum .kd-coin{width:16px;height:16px}
.kd-s-pasar .kd-help{min-height:18px;margin-bottom:7px!important;transition:color .2s}.kd-s-pasar .kd-help.kd-warnhelp{color:#ffb3a6}
.kd-fly{position:absolute;left:0;top:0;z-index:30;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#fff3ce;box-shadow:0 0 0 1px #c29257,0 4px 9px #4c304388;pointer-events:none}
.kd-fly svg{width:28px;height:28px}
.kd-s-pasar .kd-counter{position:relative}
.kd-change{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:12px 14px calc(env(safe-area-inset-bottom) + 12px);background:linear-gradient(#22374f,#14233a);border-top:1px solid #dcb77a;text-align:center;animation:kd-fade .2s both}
.kd-change .kd-kicker{color:#e3b975}
.kd-ch-sum{display:flex;align-items:center;gap:14px}
.kd-ch-sum span{display:flex;flex-direction:column;align-items:center;font-size:12px;font-weight:800;color:#e3b975}
.kd-ch-sum b{display:inline-flex;align-items:center;gap:5px;font-size:26px;font-weight:900;color:#fff0ce;line-height:1.15}.kd-ch-sum .kd-coin{width:22px;height:22px}
.kd-ch-sum i{font-style:normal;font-size:22px;font-weight:900;color:#e3b975}[dir=rtl] .kd-ch-sum i{transform:scaleX(-1)}
.kd-change p{font-size:16px;font-weight:900;color:#fff}.kd-change p:focus{outline:none}
.kd-ch-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:400px}
#kota-dagang .kd-ch-opts button{min-height:66px;border:0;border-radius:18px;background:linear-gradient(#fff7e7,#eae2cb);color:#192c46;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 4px 0 #0d1d2e}
.kd-ch-opts button b{font-size:28px;font-weight:900}.kd-ch-opts .kd-coin{width:24px;height:24px}
#kota-dagang .kd-ch-opts button:active{transform:translateY(3px);box-shadow:0 1px 0 #0d1d2e}
#kota-dagang .kd-ch-opts button:disabled{opacity:.55}
#kota-dagang .kd-ch-opts button.kd-right-c{opacity:1;background:#c8f1dc;box-shadow:0 0 0 3px #3cb493,0 4px 0 #0d1d2e}
#kota-dagang .kd-ch-opts button.kd-wrong-c{opacity:1;background:#f6cfcf;box-shadow:0 0 0 3px #cd645b,0 4px 0 #0d1d2e}
.kd-bigstars{display:flex;justify-content:center;align-items:flex-end;gap:6px;margin:10px 0 2px}
.kd-bigstars i{display:block;width:46px;height:46px;background:#e6dcc3;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);animation:kd-pop .5s cubic-bezier(.3,1.6,.5,1) both}
.kd-bigstars i:nth-child(2){width:62px;height:62px;margin-bottom:8px}
.kd-bigstars i.kd-on{background:linear-gradient(#ffe48a,#f2b72c)}
.kd-chstat{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px!important;font-size:14px;font-weight:900;color:#6a4a14}.kd-chstat .kd-coin{width:18px;height:18px}
@media(max-width:360px){#kota-dagang .kd-slot{width:42px;height:42px}.kd-slot svg{width:30px;height:30px}.kd-tray{gap:6px;padding-inline:8px}.kd-tray-lab{display:none}.kd-wavechip{font-size:11px;padding:4px 8px}}
@media(max-height:640px){#kota-dagang .kd-slot{width:40px;height:40px}.kd-slot svg{width:28px;height:28px}.kd-tray{margin-bottom:5px;padding-block:4px}}
@media(prefers-reduced-motion:reduce){.kd-wave{animation:none;transform:translateX(-50%)}}

.kd-lane .kd-bub-pay{width:auto;height:46px;padding:0 14px 0 10px;border-radius:23px;display:flex;align-items:center;gap:6px;background:linear-gradient(#fff6d0,#f2c94c);box-shadow:0 0 0 3px #f4be61,0 6px 14px #2c2b5363;animation:kd-pop .35s cubic-bezier(.3,1.6,.5,1) both}
.kd-lane .kd-bub-pay::after{background:#f2c94c}.kd-lane .kd-bub-pay .kd-coin{width:24px;height:24px}.kd-lane .kd-bub-pay b{font-size:22px;font-weight:900;color:#3a2a00}
.kd-paying .kd-sprite{filter:drop-shadow(0 0 10px #f4be6199)}

/* ===== v4: Teka-teki Sirah ===== */
.kd-lane .kd-bub-r{background:linear-gradient(#efe4ff,#b9a0f0);box-shadow:0 0 0 3px #6a4fb8,0 6px 14px #2c2b5363;color:#3a2470;animation:kd-beat 1.15s ease-in-out infinite alternate}
.kd-lane .kd-bub-r::after{background:#b9a0f0}.kd-lane .kd-bub-r svg{width:56%;height:56%;position:relative;z-index:1}
.kd-lab-r{background:#5a3fa8;color:#fff}
button.kd-cust.kd-k-r{border:0;background:none;cursor:pointer;padding:0}
.kd-riddle .kd-test-q{font-size:20px!important}
.kd-clue{margin:10px 0 0!important;padding:10px 13px;border-radius:14px;background:#fff6d6;box-shadow:inset 0 0 0 1px #f2d79a;font-size:14.5px!important;font-weight:800!important;color:#6a4a14!important;line-height:1.45!important;text-align:start}
#kota-dagang .kd-cluebtn{display:block;margin:12px auto 0;border:0;background:none;color:#7a5aa8;font-weight:900;font-size:13.5px;text-decoration:underline;text-underline-offset:3px;padding:6px 10px}
.kd-kq{margin:7px 0 0!important;font-size:13px!important;font-weight:800!important;color:#6a5aa8!important;font-style:italic;line-height:1.4!important}
.kd-riddle .kd-choices button{font-size:15.5px}
#kota-dagang .kd-clue{padding:10px 13px}#kota-dagang .kd-kq{padding:0}

/* ===== v5: animasi Teka-teki Sirah ===== */
/* pencerita tiba */
.kd-arrive-r .kd-order{animation:kd-r-drop .7s cubic-bezier(.3,1.6,.5,1) .25s both}
@keyframes kd-r-drop{from{transform:translateY(-36px) scale(.3);opacity:0}}
.kd-lane .kd-bub-r{overflow:visible}
.kd-bub-r .kd-halo{position:absolute;inset:-10px;border-radius:50%;background:conic-gradient(from 0deg,#c9b0ff00,#c9b0ffcc,#fff6,#c9b0ff00 60%);animation:kd-spin 2.4s linear infinite;z-index:-1;filter:blur(1px)}
.kd-bub-r svg{animation:kd-wiggle 2.2s ease-in-out infinite}
.kd-spk{position:absolute;width:10px;height:10px;background:#fff6c0;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);z-index:2;animation:kd-twk 1.6s ease-in-out infinite}
.kd-spk:nth-of-type(2){top:-8px;right:-4px}.kd-spk:nth-of-type(3){bottom:2px;left:-9px;animation-delay:-.5s;width:8px;height:8px}.kd-spk:nth-of-type(4){top:30%;right:-12px;animation-delay:-1.1s;width:7px;height:7px}
.kd-lab-r{background:linear-gradient(90deg,#5a3fa8,#8a6ad8,#5a3fa8);background-size:200% 100%;animation:kd-shine 2.4s linear infinite}
@keyframes kd-spin{to{transform:rotate(360deg)}}
@keyframes kd-wiggle{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg) scale(1.06)}}
@keyframes kd-twk{0%,100%{transform:scale(.3) rotate(0);opacity:.2}50%{transform:scale(1.1) rotate(45deg);opacity:1}}
@keyframes kd-shine{to{background-position:-200% 0}}
/* gulungan soalan */
.kd-rsheet{background:#120c2ae0}
.kd-riddle{position:relative;overflow:visible;background:linear-gradient(#fffaf0,#f8eed8);box-shadow:0 0 0 2px #c9a24c,0 0 0 6px #f2e2b8,0 30px 60px -20px #000!important;transform-origin:50% 0;animation:kd-unroll .6s cubic-bezier(.2,.9,.3,1.15) both}
@keyframes kd-unroll{0%{transform:scaleY(.06) translateY(-30px);opacity:.4}60%{opacity:1}100%{transform:none}}
.kd-rod{position:absolute;left:-12px;right:-12px;height:16px;border-radius:9px;background:linear-gradient(#b8822f,#f2c94c 45%,#8a5a14);box-shadow:0 3px 6px #0005;z-index:3}
.kd-rod::before,.kd-rod::after{content:"";position:absolute;top:-3px;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff2b8,#c9963a 60%,#7a5014)}
.kd-rod::before{left:-6px}.kd-rod::after{right:-6px}
.kd-rod-t{top:-9px}.kd-rod-b{bottom:-9px;animation:kd-rod-drop .6s cubic-bezier(.2,.9,.3,1.15) both}
@keyframes kd-rod-drop{from{transform:translateY(-60vh)}}
.kd-rhead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.kd-rcount{font-size:11px;font-weight:900;color:#6a4fb8;background:#efe6ff;border-radius:999px;padding:3px 9px}
.kd-teller{position:relative;overflow:hidden;animation:kd-pop .5s .15s cubic-bezier(.3,1.6,.5,1) both}
.kd-glint{position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,#fff9 50%,transparent 65%);transform:translateX(-120%);animation:kd-glint 2.8s .6s ease-in-out infinite}
@keyframes kd-glint{0%,60%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
.kd-wd{display:inline-block;animation:kd-word .4s cubic-bezier(.3,1.4,.5,1) both}
@keyframes kd-word{from{opacity:0;transform:translateY(10px) scale(.9);filter:blur(3px)}}
.kd-pop-in{animation:kd-popin .42s cubic-bezier(.3,1.5,.5,1) both}
@keyframes kd-popin{from{opacity:0;transform:translateY(14px) scale(.92)}}
.kd-clue-in{animation:kd-clue .5s cubic-bezier(.3,1.5,.5,1) both}
@keyframes kd-clue{0%{opacity:0;transform:scale(.8)}40%{box-shadow:0 0 0 6px #ffd25788,inset 0 0 0 1px #f2d79a}100%{opacity:1}}
/* jawapan */
#kota-dagang .kd-riddle .kd-choices button{transition:transform .2s,box-shadow .2s,background .2s}
#kota-dagang .kd-riddle .kd-choices button:disabled{opacity:1;cursor:default}
#kota-dagang .kd-riddle .kd-choices button:disabled:not(.kd-ch-ok):not(.kd-ch-no){opacity:.45}
#kota-dagang .kd-choices button.kd-ch-ok{background:linear-gradient(#e2ffef,#b8f0d2);color:#145a3a;box-shadow:inset 0 0 0 2.5px #2f9f6f,0 0 0 5px #2f9f6f33,0 5px 0 #1f7a52;animation:kd-okpop .5s cubic-bezier(.3,1.6,.5,1)}
#kota-dagang .kd-choices button.kd-ch-reveal{animation:kd-okpop .5s cubic-bezier(.3,1.6,.5,1),kd-glow 1s .5s ease-in-out 2}
#kota-dagang .kd-choices button.kd-ch-no{background:linear-gradient(#ffecec,#f6cfcf);color:#8a2418;box-shadow:inset 0 0 0 2.5px #d8402a,0 5px 0 #a8301e;animation:kd-no .45s}
@keyframes kd-okpop{40%{transform:scale(1.08)}}
@keyframes kd-glow{50%{box-shadow:inset 0 0 0 2.5px #2f9f6f,0 0 0 9px #2f9f6f40,0 5px 0 #1f7a52}}
@keyframes kd-no{20%{transform:translateX(-9px) rotate(-1deg)}40%{transform:translateX(8px) rotate(1deg)}60%{transform:translateX(-6px)}80%{transform:translateX(4px)}}
.kd-burst{position:absolute;width:0;height:0;z-index:20;pointer-events:none}
.kd-burst i{position:absolute;left:-7px;top:-7px;width:14px;height:14px;background:var(--c);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);transform:scale(var(--s));animation:kd-pt .9s cubic-bezier(.15,.7,.3,1) both;filter:drop-shadow(0 0 3px #fff8)}
@keyframes kd-pt{0%{transform:translate(0,0) scale(0) rotate(0);opacity:1}70%{opacity:1}100%{transform:translate(var(--tx),var(--ty)) scale(var(--s)) rotate(var(--r));opacity:0}}
.kd-flycoin{width:28px;height:28px;background:none;box-shadow:none}.kd-flycoin svg{width:28px;height:28px;filter:drop-shadow(0 2px 4px #a8760f88)}
.kd-stamp-in{animation:kd-stamp .55s cubic-bezier(.2,1.6,.4,1) both}
@keyframes kd-stamp{0%{transform:scale(2.6) rotate(-14deg);opacity:0}60%{transform:scale(.92) rotate(-2deg);opacity:1}100%{transform:scale(1) rotate(-3deg)}}
.kd-streak{display:block;width:max-content;margin:-4px auto 10px;padding:4px 12px;border-radius:999px;background:linear-gradient(90deg,#ff8a3d,#ff4f6e);color:#fff;font-size:13px;font-weight:900;box-shadow:0 4px 10px -4px #ff4f6e;animation:kd-popin .45s .35s cubic-bezier(.3,1.6,.5,1) both}
.kd-flipwrap{position:relative;perspective:900px}
.kd-flipwrap .kd-kad{transform-origin:50% 50%;animation:kd-flip .7s .4s cubic-bezier(.3,1.25,.5,1) both;backface-visibility:hidden}
@keyframes kd-flip{0%{transform:rotateY(92deg) scale(.85);opacity:0}100%{transform:none;opacity:1}}
.kd-ribbon{position:absolute;z-index:3;top:-9px;right:12px;padding:3px 11px;border-radius:7px;background:linear-gradient(#ffe48a,#f2b72c);color:#5a3a00;font-size:11px;font-weight:900;letter-spacing:1.2px;box-shadow:0 3px 0 #a8760f;animation:kd-popin .4s 1s cubic-bezier(.3,1.6,.5,1) both}
[dir=rtl] .kd-ribbon{right:auto;left:12px}
/* Buku: grid teka-teki */
.kd-lockhint{display:flex;align-items:center;gap:6px;margin:12px 4px 8px!important;font-size:12.5px;font-weight:800;color:#8a8496}.kd-lockhint svg{width:15px;height:15px}
.kd-lockgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:6px}
.kd-lockgrid i{display:grid;place-items:center;height:38px;border-radius:11px;background:#efe8d6;color:#b8ad92;font-style:normal;font-size:12px;font-weight:900;box-shadow:inset 0 0 0 1px #e3d8bd}
.kd-lockgrid i.kd-lg-on{background:linear-gradient(#efe6ff,#c9b0ff);color:#3a2470;box-shadow:inset 0 0 0 1.5px #8a6ad8}
@media(prefers-reduced-motion:reduce){.kd-riddle,.kd-rod-b,.kd-wd,.kd-pop-in,.kd-flipwrap .kd-kad,.kd-stamp-in,.kd-arrive-r .kd-order,.kd-bub-r .kd-halo,.kd-bub-r svg,.kd-spk,.kd-glint{animation:none!important}}
#kota-dagang .kd-riddle.kd-right{box-shadow:0 0 0 2.5px #2f9f6f,0 0 0 7px #bff0d6,0 0 40px #7fe0b580,0 30px 60px -20px #000!important}
#kota-dagang .kd-riddle.kd-wrongA{box-shadow:0 0 0 2.5px #d8402a,0 0 0 7px #f8d6cf,0 30px 60px -20px #000!important}
.kd-rod-still{animation:none!important}

/* ===== v6: butang & mod Teka-teki Sirah dari Kota ===== */
.kd-tekabtn{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;padding:12px 14px;border:0;border-radius:22px;text-align:start;color:#fff!important;background:linear-gradient(135deg,#6a4fb8,#3a2470 60%,#2a1858);box-shadow:inset 0 0 0 1.5px #c9b0ff88,0 5px 0 #1d1040,0 14px 22px -14px #1d1040;position:relative;overflow:hidden}
.kd-tekabtn::after{content:"";position:absolute;top:-20%;left:0;width:30%;height:140%;background:linear-gradient(90deg,transparent,#ffffff30,transparent);transform:translateX(-200%) skewX(-18deg);animation:kd-tsheen 4.5s ease-in-out infinite}
@keyframes kd-tsheen{60%,100%{transform:translateX(450%) skewX(-18deg)}}
.kd-tekabtn:active{transform:translateY(3px);box-shadow:inset 0 0 0 1.5px #c9b0ff88,0 2px 0 #1d1040}
.kd-tekabtn-ic{position:relative;flex:none;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(#efe4ff,#b9a0f0);color:#3a2470}
.kd-tekabtn-ic svg{width:26px;height:26px;animation:kd-wiggle 2.2s ease-in-out infinite}
.kd-tekabtn-ic .kd-spk:nth-of-type(1){top:-4px;right:-4px}.kd-tekabtn-ic .kd-spk:nth-of-type(2){bottom:-3px;left:-5px;animation-delay:-.7s}
.kd-tekabtn .kd-book-txt small{color:#e3d6ff}
.kd-go-p{background:#c9b0ff;color:#2a1858;box-shadow:0 3px 0 #7a5ac8}
.kd-tprog{display:flex;gap:6px;justify-content:center;margin:2px 0 14px}
.kd-tprog i{width:36px;height:7px;border-radius:7px;background:#e3d8bd;transition:background .3s}
.kd-tprog i.kd-tp-done{background:#8a6ad8}.kd-tprog i.kd-tp-now{background:linear-gradient(90deg,#8a6ad8,#c9b0ff);box-shadow:0 0 0 3px #c9b0ff55}
.kd-tstage{padding:10px 4px 18px}
.kd-tcard{max-width:none;margin:0}
.kd-tearn{display:flex;align-items:center;gap:4px;padding:3px 10px 3px 5px;border-radius:999px;background:#fbeecb;font-weight:900;font-size:14px;color:#6a4a14}.kd-tearn .kd-coin{width:16px;height:16px}

/* v4 gelung harian */
.kd-needs .kd-need{border-inline-start:4px solid transparent}
.kd-needs .kd-need-ok{border-inline-start-color:#3cb493}
.kd-needs .kd-need-warn{border-inline-start-color:#e0a03a}
.kd-needs .kd-price{display:inline-flex;align-items:center;gap:3px}
.kd-ev-src{display:block;margin-top:8px;font-size:12px;opacity:.8;font-style:italic}
.kd-ev-choices{margin-top:10px}
.kd-night .kd-stats .kd-no b{color:#d2574f}.kd-night .kd-stats .kd-ok b{color:#2f8f6f}
.kd-night .kd-primary[disabled]{opacity:.45}
.kd-daystrip li{font-size:11px}
.kd-s-malam .kd-result h2{color:#fff4dc}
.kd-raidwarn{display:flex;gap:10px;align-items:flex-start;margin:12px 0 4px;padding:12px 14px;border-radius:16px;background:#4a2a24;color:#ffe2c8;font-weight:700;font-size:14px;line-height:1.35;box-shadow:inset 0 0 0 1px #e0a03a88}
.kd-raidwarn svg{flex:none;width:20px;height:20px;color:#ffb36b}.kd-raidwarn b{display:block;margin-top:4px;color:#ffc98a}

/* kisah penuh teka-teki */
.kd-story{margin:10px 0 4px;padding:10px 12px;border-radius:14px;background:#fff8e6;box-shadow:inset 0 0 0 1px #ecd9a8;text-align:start}
.kd-story summary{display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:900;font-size:13.5px;color:#8a4f1c;list-style:none}
.kd-story summary::-webkit-details-marker{display:none}.kd-story summary svg{width:17px;height:17px}
.kd-story[open] summary{margin-bottom:6px}
.kd-story p{font-size:14px!important;line-height:1.55!important;margin:7px 0 0!important;color:#3a3326}
[dir=rtl] .kd-story p{font-size:16px!important;line-height:1.8!important}
.kd-flipwrap .kd-story{max-height:46vh;overflow:auto}

#kd-buku-entry{top:calc(env(safe-area-inset-top) + 124px)}
.kd-mapbtn{font:inherit;font-weight:900;font-size:14px;cursor:pointer}
.kd-kcd .kd-kart{position:absolute;left:0;right:0;top:0;bottom:30%;overflow:hidden;border-radius:inherit;pointer-events:none}.kd-kcd .kd-kart img{width:100%;height:100%;object-fit:cover}

/* Buku Saudagar mesra pengguna (22 Nov 2026) */
.kd-bk-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0 14px;padding:5px;border-radius:16px;background:#eef1f6}
.kd-bk-tabs button{display:grid;gap:2px;justify-items:center;min-height:52px;border:0;border-radius:12px;background:none;font:inherit;color:#4a5468;cursor:pointer}
.kd-bk-tabs button b{font-size:13px;font-weight:900}.kd-bk-tabs button small{font-size:11.5px;font-weight:800;opacity:.75}
.kd-bk-tabs button.on{background:#fff;color:#1d2b4c;box-shadow:0 3px 10px -4px #0005}
.kd-bk-play{margin-bottom:10px}
.kd-bk-how{margin:6px 2px 10px!important;font-size:13.5px;font-weight:700;line-height:1.5;color:#5a6478}
.kd-bk-grid button{display:grid;place-items:center;height:42px;border:0;border-radius:12px;background:#e6e9f0;color:#6b7387;font:inherit;font-size:13px;font-weight:900;box-shadow:inset 0 0 0 1px #d6dbe5;cursor:pointer;transition:transform .12s}
.kd-bk-grid button:active{transform:scale(.92)}
.kd-bk-grid button.kd-lg-on{background:linear-gradient(#efe6ff,#c9b0ff);color:#3a2470;box-shadow:inset 0 0 0 1.5px #8a6ad8}
.kd-bk-sub{margin:18px 2px 8px;font-size:15px;font-weight:900}
.kd-accs{display:grid;gap:8px}
.kd-acc{border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px #e1e5ee,0 6px 14px -12px #0004;overflow:hidden}
.kd-acc summary{display:flex;align-items:center;gap:10px;padding:11px 13px;cursor:pointer;list-style:none}.kd-acc summary::-webkit-details-marker{display:none}
.kd-acc summary b{flex:1;font-size:14.5px;line-height:1.3}
.kd-acc-n{flex:0 0 28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#efe6ff;color:#3a2470;font-weight:900;font-size:12px}
.kd-acc-tag{font-size:10px;font-weight:900;border-radius:6px;padding:2px 6px;background:#eef1f6;color:#5a6478}
.kd-acc[open] summary{background:#f6f3ff}.kd-acc .kd-kad{margin:0 8px 8px;box-shadow:inset 0 0 0 1px #ece6fb}
.kd-bk-locks{display:grid;gap:6px;margin-bottom:10px}
.kd-bk-lock{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:#f1f3f7;color:#6b7387;font-size:13px;font-weight:700}.kd-bk-lock svg{width:15px;height:15px;flex:0 0 auto}
.kd-bookhead h2{color:#fff}
.kd-bk-tabs{background:#ffffff14}.kd-bk-tabs button{color:#dfe6f2}.kd-bk-tabs button.on{background:#fff;color:#1d2b4c}
.kd-bk-how{color:#c9d3e3}.kd-bk-sub{color:#f2f5fa}
.kd-bk-grid button{background:#2a3a55;color:#c9d3e3;box-shadow:inset 0 0 0 1px #3d5072}
.kd-bk-lock{background:#22324d;color:#c9d3e3}.kd-bk-lock span{flex:1}.kd-bk-lock b{flex:0 0 auto;font-size:12px;color:#ffd78a}
.kd-bk-tabs button.on,.kd-bk-tabs button.on b,.kd-bk-tabs button.on small{background:#fff;color:#1d2b4c!important}
.kd-bk-tabs button b,.kd-bk-tabs button small{color:inherit}
