/* =========================================================================
   Kebun Pupi v3 — practice games, one scene per game (matches the mockups)
   ========================================================================= */
.kp-v3 .kp-play{position:relative;display:block;overflow:hidden;font-family:var(--kp-font)}
.kp-play-bg{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.kp-play-bg .kp-land{position:absolute;inset:0;width:100%;height:100%}
.kp-play-rays{left:50%;top:50%;width:640px;height:640px;margin:-330px 0 0 -320px;background:repeating-conic-gradient(rgba(255,255,255,.3) 0 9deg,rgba(255,255,255,0) 9deg 24deg)}
.kp-play-sun{right:250px;top:26px;width:80px;height:80px;background:radial-gradient(circle at 38% 35%,#FFF7C2,#FFC93C 70%)}
.kp-bush{position:absolute;width:70px;height:70px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#B8F27A,#2F8F2E 75%);box-shadow:40px 22px 0 -16px #3EA03A}
.kp-bush-l{left:10px;top:290px;width:50px;height:50px;box-shadow:none}
.kp-bush-r{right:60px;top:270px}

/* backgrounds per game (from the mockups) */
.kp-v3 .kp-g-twins{background:linear-gradient(180deg,#E3D8FF 0%,#F4EEFF 40%,#F7F2FF 46%)}
.kp-v3 .kp-g-match{background:radial-gradient(circle at 50% 40%,#E8F6FF,#BFE6FF 80%)}
.kp-v3 .kp-g-sequence{background:linear-gradient(180deg,#FFE8B8 0%,#FFF6DE 40%)}
.kp-v3 .kp-g-words{background:radial-gradient(circle at 60% 40%,#FFF0F6,#FFD0E2 85%)}
.kp-v3 .kp-g-listen,.kp-v3 .kp-g-basket,.kp-v3 .kp-g-count{background:radial-gradient(circle at 80% 14%,#FFF6CF 0%,#BFEAFF 32%,#8FD3FF 100%)}
.kp-v3 .kp-g-basket{background:radial-gradient(circle at 80% 14%,#FFF6CF 0%,#FFE9C2 40%,#FFE0A8 100%)}
.kp-v3 .kp-g-memory{background:linear-gradient(180deg,#9FDCFF,#DDF4FF 60%)}
.kp-v3 .kp-g-trace{background:linear-gradient(180deg,#D6C7FF,#EDE6FF)}
.kp-v3 .kp-g-blocks{background:radial-gradient(circle at 50% 45%,#FFF1D6,#FFC98A 70%,#F2A65A)}
.kp-v3 .kp-g-train{background:radial-gradient(circle at 50% 45%,#E8F6FF,#A9DCFF 70%,#6FBDF2)}
.kp-v3 .kp-g-balloon{background:radial-gradient(circle at 50% 45%,#FFF0F6,#FFC2D8 70%,#F590B4)}
.kp-v3 .kp-g-garden{background:radial-gradient(circle at 50% 45%,#F2FFE6,#C6EFA0 70%,#8ED46A)}
.kp-v3 .kp-g-egg{background:radial-gradient(circle at 50% 45%,#FFF6DA,#FFD9A0 70%,#FFB878)}

/* HUD */
.kp-v3 .kp-play>.kp-play-hud{position:absolute;left:0;right:0;top:0;height:84px;padding:18px 20px 0;display:flex;align-items:flex-start;justify-content:space-between;z-index:20;background:transparent;border:0}
.kp-play-hud .ui-header-tools{display:flex;gap:14px}
.kp-trail{position:absolute;left:50%;top:20px;transform:translateX(-50%);display:flex;gap:8px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.88);box-shadow:inset 0 2px 0 #fff,0 4px 10px rgba(0,40,80,.12);z-index:21}
.kp-trail i{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.75);box-shadow:inset 0 -3px 0 rgba(0,0,0,.08)}
.kp-trail i.now{background:#fff;box-shadow:0 0 0 4px #FF8A1A}
.kp-trail i.done{background:radial-gradient(circle at 35% 30%,#FFF6BF,#FFB800 80%)}

/* Coach: Pupi bottom-left, small voice bubble above */
.kp-v3 .kp-play .focus-main{position:absolute;inset:0;display:block;padding:0;min-height:0}
.kp-coach{position:absolute;inset:0;z-index:6;pointer-events:none}
.kp-coach-pupi{position:absolute;left:18px;bottom:8px;width:150px;max-width:none;animation:kp-bob 1.8s ease-in-out infinite}
.kp-coach-bubble{position:absolute;left:20px;top:100px;width:max-content;max-width:240px;pointer-events:auto;display:flex;align-items:center;gap:10px;padding:10px 16px 10px 12px;border-radius:22px;background:#fff;box-shadow:0 6px 0 rgba(0,0,0,.06),0 10px 20px rgba(0,40,80,.1);color:#3A2A20}
.kp-coach-repeat{flex:none;display:flex;align-items:center;padding:0;border:0;background:transparent;cursor:pointer}
.kp-coach-repeat .kp-wave{height:22px}
.kp-coach-repeat .kp-wave i{width:4px}
.kp-coach-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.kp-coach-cap:empty{display:none}
.kp-v3 .kp-play .focus-heading{display:none;margin:0;font:600 15px/1.25 var(--kp-font);color:#3A2A20;text-align:left;min-height:0;letter-spacing:0}
.kp-v3 .kp-play[data-phase=revealed] .focus-heading{display:block}
.kp-v3 .kp-play .focus-guidance{margin:0;width:auto}
.kp-v3 .kp-play .ui-instruction{display:block;border:0;background:transparent;padding:0;text-align:left}
.kp-v3 .kp-play .ui-instruction strong{font:600 15px/1.3 var(--kp-font);color:#3A2A20}
.kp-v3 .kp-play .ui-instruction p,.kp-v3 .kp-play .ui-instruction-art{display:none}
.kp-v3 .kp-play .ui-success{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:0}
.kp-v3 .kp-play .ui-success strong{font:600 13px/1.2 var(--kp-font);color:#1E7B33}
.kp-v3 .kp-play .ui-success p{display:none}
.kp-v3 .kp-play .ui-success-mark{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#8BF19B,#22A447 70%);color:#fff;flex:none}
.kp-v3 .kp-play .ui-success-mark .icon{width:14px;height:14px}
/* Every game's bubble (memory included) lines its success/instruction row up with the heading above it. */
.kp-v3 .kp-coach .focus-guidance :is(.ui-success,.ui-instruction){padding:0;margin:0;border:0;background:transparent;box-shadow:none}
.kp-v3 .kp-play .focus-feedback{margin:0;min-height:0;text-align:left;font:500 13px/1.3 var(--kp-font);color:#8A6A3A}
.kp-v3 .kp-play .star-milestone-banner{display:flex;align-items:center;gap:6px}
.kp-v3 .kp-play .star-milestone-banner strong{font:700 14px/1.1 var(--kp-font);color:#7A4A00}
.kp-v3 .kp-play .star-milestone-banner span:not(.star-milestone-icon){display:none}
.kp-v3 .kp-play .star-milestone-icon{font-size:22px}
.kp-coach-stars{position:absolute;left:24px;top:172px;display:flex;gap:4px}
.kp-coach-stars .a3-star.off path{fill:rgba(255,255,255,.85);stroke:#E0A800;stroke-width:1.5}

/* Stage: the scene is centred on the screen, like the mockups; the coach sits in the left margin */
.kp-v3 .kp-play .focus-stage{position:absolute;left:24px;right:24px;top:84px;bottom:20px;width:auto;height:auto;min-height:0;margin:0;display:flex;align-items:center;justify-content:center;z-index:2;aspect-ratio:auto}
.kp-v3 .kp-play .choice-stage{flex-direction:column;gap:30px}

/* hint after two wrong tries */
.kp-v3 .kp-play .hint-answer{outline:0;animation:kp-hint 1s ease-in-out infinite!important;z-index:2}
@keyframes kp-hint{0%,100%{transform:translateY(0);filter:drop-shadow(0 0 0 rgba(255,214,60,0))}50%{transform:translateY(-10px);filter:drop-shadow(0 0 18px rgba(255,214,60,1)) brightness(1.08)}}
.kp-v3 .kp-play .choice-button.wrong{animation:gentle-no .3s;outline:0}

/* round balls (Besar & Kecil, Huruf Pertamaku) */
.kp-balls{display:flex;gap:28px;justify-content:center;margin:0}
.kp-v3 .kp-play .kp-ball{position:relative;width:118px;height:118px;border:0;padding:0;border-radius:50%;font:700 74px/1 var(--kp-font);color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.18);transition:transform .12s}
.kp-v3 .kp-play .kp-ball::before{content:"";position:absolute;left:22px;top:16px;width:36px;height:22px;border-radius:50%;background:rgba(255,255,255,.45);transform:rotate(-24deg)}
.kp-v3 .kp-play .kp-ball:active{transform:translateY(6px)}
.kp-c-blue{background:radial-gradient(circle at 35% 28%,#9BD7FF,#2F86E0 72%)!important;box-shadow:0 8px 0 #1D5CA3,0 16px 22px rgba(20,60,140,.25)!important}
.kp-c-pink{background:radial-gradient(circle at 35% 28%,#FFB0D2,#FF4F93 72%)!important;box-shadow:0 8px 0 #C2306A,0 16px 22px rgba(140,20,70,.25)!important}
.kp-c-green{background:radial-gradient(circle at 35% 28%,#8BE39A,#1E9A3E 72%)!important;box-shadow:0 8px 0 #146B2B,0 16px 22px rgba(20,90,40,.25)!important}
.kp-c-purple{background:radial-gradient(circle at 35% 28%,#C9B2FF,#7C4DFF 72%)!important;box-shadow:0 8px 0 #5631C4,0 16px 22px rgba(60,20,140,.25)!important}
.kp-c-orange{background:radial-gradient(circle at 35% 28%,#FFC58A,#FF8A1A 72%)!important;box-shadow:0 8px 0 #C45E00,0 16px 22px rgba(140,60,0,.25)!important}

/* square tiles (Pasang Bentuk, Siapa Berikutnya) */
.kp-squares{display:flex;gap:30px;justify-content:center;margin:0}
.kp-v3 .kp-play .kp-square{position:relative;width:136px;height:146px;border:0;padding:0;border-radius:30px;font:700 100px/1 var(--kp-font);color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.18)}
.kp-v3 .kp-play .kp-square::before{content:"";position:absolute;left:14px;top:10px;width:34px;height:20px;border-radius:50%;background:rgba(255,255,255,.4);transform:rotate(-18deg)}
.kp-v3 .kp-play .kp-square.two-digit{font-size:56px}
.kp-v3 .kp-play .kp-cream .kp-square{width:90px;height:90px;border-radius:22px;font-size:60px;color:#7A4A10;text-shadow:none;background:linear-gradient(#FFFDF6,#FFEFD2)!important;box-shadow:0 6px 0 #DDB477,0 12px 18px rgba(90,55,10,.22),inset 0 3px 0 #fff!important}
.kp-v3 .kp-play .kp-cream .kp-square::before{display:none}

/* Besar & Kecil: tile hanging from a branch */
.kp-twins{justify-content:flex-start!important;padding-top:0}
.kp-hang{position:relative;width:300px;height:190px;margin-top:-10px}
.kp-branch{position:absolute;left:0;top:0;width:300px;height:40px}
.kp-hang-tile{position:absolute;left:50%;top:36px;width:150px;height:130px;margin-left:-75px;border-radius:30px;display:flex;align-items:center;justify-content:center;font:700 96px/1 var(--kp-font);color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.18);background:radial-gradient(circle at 35% 28%,#C9B2FF,#7C4DFF 72%);box-shadow:0 10px 0 #5631C4,0 18px 26px rgba(60,20,140,.25);animation:kp-sway 3s ease-in-out infinite;transform-origin:50% -20px}
.kp-twins .kp-balls{margin-top:30px}
.kp-v3 .kp-play .kp-twins .kp-ball{width:140px;height:140px;font-size:86px}

/* Pasang Bentuk: shadow tile */
.kp-shadow-tile{width:150px;height:160px;border-radius:30px;display:flex;align-items:center;justify-content:center;background:rgba(160,200,230,.35);box-shadow:inset 0 0 0 4px rgba(255,255,255,.5)}
.kp-shadow-tile span{font:700 110px/1 var(--kp-font);color:#5A7590;opacity:.95}
.kp-match{justify-content:flex-start!important;padding-top:0}

/* Siapa Berikutnya: caterpillar */
.kp-seq{justify-content:flex-start!important}
.kp-cater{display:flex;align-items:center;margin-top:10px}
.kp-cater-head{position:relative;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#8BE39A,#1E9A3E 72%);box-shadow:inset 0 -6px 0 rgba(0,0,0,.12);z-index:2}
.kp-cater-head::before,.kp-cater-head::after{content:"";position:absolute;top:-24px;width:4px;height:28px;background:#2F8F2E;border-radius:2px}
.kp-cater-head::before{left:30px;transform:rotate(-14deg)}.kp-cater-head::after{right:30px;transform:rotate(14deg)}
.kp-cater-head i{position:absolute;top:34px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:inset -5px 0 0 3px #2A2A2A}
.kp-cater-head i:first-child{left:28px}.kp-cater-head i:nth-child(2){right:28px}
.kp-cater-head b{position:absolute;left:36px;top:64px;width:38px;height:18px;border-bottom:5px solid #14562A;border-radius:0 0 30px 30px}
.kp-seg{width:100px;height:100px;margin-left:-14px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:700 56px/1 var(--kp-font);color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.18);background:radial-gradient(circle at 35% 28%,#8BE39A,#1E9A3E 72%);box-shadow:inset 0 -6px 0 rgba(0,0,0,.12)}
.kp-seg-q{background:rgba(255,255,255,.4);border:5px dashed #FFB800;color:#C98A00;text-shadow:none;box-shadow:none;animation:kp-bob 1.4s ease-in-out infinite}

/* Huruf Pertamaku: picture card */
.kp-words{justify-content:flex-start!important;gap:36px!important}
.kp-word-card{margin-top:-14px;width:300px;height:290px;border-radius:40px;background:#fff;box-shadow:0 10px 0 rgba(200,80,130,.18),0 22px 34px rgba(140,40,80,.15);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.kp-word-pic{font-family:'Noto Color Emoji','Segoe UI Emoji',sans-serif;font-size:130px;line-height:1.05;filter:drop-shadow(0 8px 6px rgba(0,0,0,.15))}
.kp-word-pic svg{width:170px;height:140px}
.kp-word-text{font:700 48px/1 var(--kp-font);color:#2A2A40}
.kp-word-text b{color:#FF4F93;margin-right:2px}
.kp-words .kp-balls{gap:30px}

/* Dengar & Pilih: listen first, then balloons */
.kp-listen-btn{position:relative;width:170px;height:170px;border:0;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 35% 30%,#FFC58A,#FF8A1A 72%);box-shadow:0 10px 0 #C45E00,0 20px 30px rgba(140,60,0,.3);margin-top:-60px}
.kp-listen-btn:active{transform:translateY(7px)}
.kp-ring{position:absolute;inset:-30px;border-radius:50%;border:4px solid rgba(255,255,255,.7);animation:kp-ringout 1.4s ease-out infinite}
@keyframes kp-ringout{from{transform:scale(.7);opacity:1}to{transform:scale(1.3);opacity:0}}
.kp-hand{position:absolute;width:72px;height:72px;left:calc(50% + 80px);top:calc(50% + 10px);pointer-events:none;animation:kp-point 1s ease-in-out infinite;filter:drop-shadow(0 4px 4px rgba(0,0,0,.2))}
@keyframes kp-point{0%,100%{transform:translate(0,0)}50%{transform:translate(-10px,-12px)}}
.kp-balloons{display:flex;align-items:flex-start;gap:40px;justify-content:center;margin:-40px 0 0}
.kp-v3 .kp-play .kp-balloon{position:relative;width:150px;height:260px;border:0;padding:0;background:transparent!important;box-shadow:none!important;animation:kp-rise .6s cubic-bezier(.3,1.4,.5,1) both,kp-floaty 3s ease-in-out infinite;animation-delay:calc(var(--i) * .15s),calc(var(--i) * -.9s)}
.kp-v3 .kp-play .kp-balloon:nth-child(2){margin-top:-30px}
.kp-balloon svg{position:absolute;inset:0;width:150px;height:260px;overflow:visible}
.kp-balloon-num{position:absolute;left:0;right:0;top:50px;text-align:center;font:700 86px/1 var(--kp-font);color:#fff;-webkit-text-stroke:5px rgba(0,0,0,.18);paint-order:stroke fill}
@keyframes kp-rise{from{transform:translateY(240px);opacity:0}to{transform:none;opacity:1}}
@keyframes kp-floaty{0%,100%{translate:0 0}50%{translate:0 -12px}}

/* Keranjang Pupi */
.kp-basket-stage{flex-direction:column;justify-content:flex-start!important;gap:16px}
.kp-numcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:140px;height:160px;border-radius:26px;background:linear-gradient(#FFFDF6,#FFF1D8);box-shadow:0 8px 0 #DDB477,0 16px 24px rgba(90,55,10,.2)}
.kp-numcard b{font:700 96px/1 var(--kp-font);color:#E2302A;text-shadow:0 4px 0 rgba(120,0,0,.2)}
.kp-numcard span{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;max-width:110px}
/* One small apple per count (with a leaf, so "1" and its apple never read as "!"). */
.kp-numcard span i{position:relative;width:16px;height:15px;margin-top:5px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FF8A80,#C41E1E 75%)}
.kp-numcard span i::after{content:"";position:absolute;left:8px;top:-5px;width:7px;height:5px;border-radius:5px 0;background:#3E9E37}
.kp-numcard-tilt{position:absolute;right:30px;top:14px;z-index:3}
.kp-basket{position:relative;width:280px;height:200px;margin-top:10px}
.kp-basket-svg{position:absolute;left:0;bottom:0;width:280px;height:170px}
.kp-basket-apples{position:absolute;left:30px;right:30px;top:-10px;height:90px;display:flex;flex-wrap:wrap-reverse;justify-content:center;align-content:flex-start;gap:0 2px;z-index:0}
.kp-basket-apple{position:relative;width:46px;height:48px}
.kp-basket-apple svg{width:100%;height:100%}
.kp-basket-apple small{position:absolute;left:0;right:0;top:16px;text-align:center;font:700 16px/1 var(--kp-font);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.kp-basket-count{position:absolute;left:50%;bottom:22px;margin-left:-30px;width:60px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#fff;font:700 34px/1 var(--kp-font);color:#7A4A10;box-shadow:0 3px 0 rgba(0,0,0,.1);z-index:2}
.kp-basket-controls{display:flex;gap:22px;align-items:center}
.kp-bctl{width:110px;height:104px;border:0;border-radius:28px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.kp-bctl-add{background:radial-gradient(circle at 35% 28%,#FF8A80,#E2302A 72%);box-shadow:0 8px 0 #9E1E19,0 14px 20px rgba(140,20,20,.25)}
.kp-bctl-ok{background:radial-gradient(circle at 35% 28%,#8BF19B,#22A447 72%);box-shadow:0 8px 0 #1E7B33,0 14px 20px rgba(20,90,40,.25)}
.kp-bctl:active{transform:translateY(6px)}
.kp-bctl:disabled{opacity:.5}

/* Petik Apel */
/* The apple tree is a wide scene: keep it right of Pupi's bubble (left column). */
.kp-v3 .kp-play .focus-stage.kp-count-stage{left:250px;justify-content:space-between;align-items:flex-end;gap:10px}
.kp-tree{position:relative;width:560px;height:400px;flex:none}
.kp-tree-svg{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 12px 10px rgba(30,70,20,.2))}
.kp-v3 .kp-play .kp-tree-apples{position:absolute;inset:0;padding:0;background:transparent;box-shadow:none;border-radius:0;display:block;max-width:none;margin:0}
.kp-v3 .kp-play .kp-tree.many .kp-tree-apples{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-content:center;padding:40px 110px 170px}
.kp-v3 .kp-play .kp-tree-apples .apple{position:absolute;width:60px;height:64px;border:0;padding:0;background:transparent;box-shadow:none;font-size:0;border-radius:0}
.kp-v3 .kp-play .kp-tree.many .apple{position:relative;width:46px;height:50px;left:auto!important;top:auto!important}
.kp-v3 .kp-play .apple svg{width:100%;height:100%}
.kp-v3 .kp-play .apple.active{animation:kp-hint 1s ease-in-out infinite;z-index:2}
.kp-v3 .kp-play .apple.active::before,.kp-v3 .kp-play .apple::after{display:none}
.kp-v3 .kp-play .apple.inactive{opacity:1;filter:none}
.kp-count-side{position:relative;width:300px;height:420px;flex:none}
.kp-count-side .kp-numcard-tilt{right:20px;top:10px}
.kp-basket-small{position:absolute;left:0;bottom:0}
.kp-zero{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;border-radius:30px;padding:16px 26px;background:#fff;font:600 18px/1 var(--kp-font);color:#8A5A2A;box-shadow:0 8px 0 #F3D2A8}
.kp-zero svg{width:240px;height:150px}

/* Kartu Kembar: cards on a wooden board */
.kp-board{padding:20px;border-radius:36px;background:linear-gradient(#E9A866,#C9813F);box-shadow:0 12px 0 #8E5A2B,0 22px 34px rgba(90,50,10,.3),inset 0 4px 0 rgba(255,255,255,.3)}
.kp-v3 .kp-play .memory-board{display:grid;grid-template-columns:repeat(4,100px);gap:18px;width:auto;max-width:none;margin:0}
.kp-v3 .kp-play .memory-board.six-cards{grid-template-columns:repeat(3,100px)}
.kp-v3 .kp-play .memory-board.four-cards{grid-template-columns:repeat(4,100px)}
.kp-v3 .kp-play .memory-card{position:relative;width:100px;height:128px;border:0;border-radius:22px;padding:0;background:radial-gradient(circle at 35% 28%,#7FC4FF,#2F86E0 72%);box-shadow:0 8px 0 #1D5CA3,0 12px 18px rgba(20,60,140,.25);font:700 70px/1 var(--kp-font);color:#2F86E0}
.kp-card-leaf{width:58px;height:58px}
.kp-v3 .kp-play .memory-card.is-open{background:#fff;box-shadow:0 8px 0 #BFD8EE,0 12px 18px rgba(20,60,140,.15);animation:kp-flip .3s ease-out}
.kp-v3 .kp-play .memory-card.is-matched{background:radial-gradient(circle at 35% 28%,#E9FFE0,#B6F28A 80%);color:#1E7B33;box-shadow:0 8px 0 #5BBE3E}
@keyframes kp-flip{from{transform:rotateY(90deg)}to{transform:none}}

/* Jari Ajaib: example card + chalkboard */
.kp-trace{gap:30px}
.kp-contoh{position:absolute;left:16px;top:66px;width:160px;height:180px;flex:none;border-radius:30px;background:#fff;box-shadow:0 8px 0 rgba(90,60,160,.12),0 14px 22px rgba(60,20,140,.12);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.kp-contoh span{font:700 110px/1 var(--kp-font);color:#7C4DFF}
.kp-contoh small{font:600 16px/1 var(--kp-font);color:#8A6AC0}
.kp-chalkboard{height:100%;max-height:430px;aspect-ratio:1;padding:16px;border-radius:30px;background:linear-gradient(#D49A5E,#A8622B);box-shadow:0 10px 0 #7A4518,0 20px 30px rgba(60,30,10,.3)}
.kp-v3 .kp-play .kp-chalkboard .trace-wrap{width:100%;height:100%;max-height:none;border:0;border-radius:18px;background:radial-gradient(circle at 50% 40%,#3E7A4A,#2B5A35 80%);box-shadow:inset 0 0 30px rgba(0,0,0,.25)}
.kp-v3 .kp-play .trace-reset{position:absolute;right:12px;bottom:12px;width:52px;height:52px;min-width:0;border-radius:18px;display:flex;align-items:center;justify-content:center;padding:0}
.kp-v3 .kp-g-trace .kp-coach-bubble{left:auto;right:20px;top:110px;max-width:200px}

/* Kejutan: big object on a sunburst */
.kp-surprise{flex-direction:column}
.kp-v3 .kp-play .kp-surprise .main-target{position:relative;width:auto;height:100%;max-height:330px;aspect-ratio:700/470;border:0;padding:0;background:transparent;border-radius:0}
.kp-v3 .kp-play .kp-surprise .artifact{width:100%;height:100%;max-width:none}
.kp-v3 .kp-play .scene-art{filter:drop-shadow(0 16px 14px rgba(60,30,10,.22))}
.kp-v3 .kp-play .mystery-mark{display:none}
.kp-v3 .kp-play .kp-surprise .kp-hand{left:calc(50% + 130px);right:auto;top:52%}
.kp-nest{position:absolute;left:18%;right:18%;bottom:0;height:24%;border-radius:0 0 50% 50%/0 0 100% 100%;background:repeating-linear-gradient(170deg,#8E5A2B 0 6px,#B07A45 6px 12px);box-shadow:0 14px 0 rgba(0,0,0,.08);z-index:0}
.kp-v3 .kp-play .kp-s-egg .artifact{z-index:1}
.kp-v3 .kp-play .step-pips{position:absolute;left:0;right:0;bottom:22px;z-index:3;display:flex;justify-content:center;gap:12px}
.kp-v3 .kp-play .step-pips i{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.75);box-shadow:inset 0 -3px 0 rgba(0,0,0,.12)}
.kp-v3 .kp-play .step-pips i.done{background:radial-gradient(circle at 35% 30%,#FFD39A,#FF8A1A 75%)}
.kp-v3 .kp-play .character{font-family:var(--kp-font);font-weight:700;color:#7C4DFF;font-size:200px;letter-spacing:0;-webkit-text-stroke:6px #fff;paint-order:stroke fill;text-shadow:0 6px 0 rgba(60,20,140,.25)}
.kp-v3 .kp-play .character.two-digit{font-size:150px}
.kp-v3 .kp-play .train .character{left:50%;top:48%;color:#7A4A00;font-size:170px}
.kp-v3 .kp-play .balloon .character{top:40%;color:#fff;-webkit-text-stroke:6px #D63C7B}
.kp-v3 .kp-play .egg .character{top:56%;color:#7A4A00}
.kp-v3 .kp-play .garden .character{top:40%;color:#7A4A00;font-size:140px}
.kp-v3 .kp-play .blocks .character{color:#8E5A2B}
/* The doors slide open and disappear completely (no half-transparent panels left beside the wagon). */
.kp-v3 .kp-play .train .door-left,.kp-v3 .kp-play .train .door-right{transition:transform .45s ease-in,opacity .45s ease-in}
.kp-v3 .kp-play .train.revealed .door-left{transform:translateX(-60px);opacity:0}
.kp-v3 .kp-play .train.revealed .door-right{transform:translateX(60px);opacity:0}
.kp-v3 .kp-play .balloon.revealed .balloon-skin,.kp-v3 .kp-play .balloon.revealed .pop-ring{transform-origin:350px 190px}
.kp-v3 .kp-play .garden.revealed .flower-petals{transform-origin:350px 180px;animation:bloom .8s cubic-bezier(.3,1.5,.5,1) both}

/* Reveal card after a right answer */
.kp-reveal-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:240px;height:300px;padding:0 28px;border-radius:40px;background:#fff;box-shadow:0 10px 0 rgba(0,0,0,.08),0 22px 34px rgba(0,0,0,.18);animation:kp-pop .6s cubic-bezier(.3,1.5,.5,1) both}
.kp-reveal-big{font:700 170px/1 var(--kp-font);color:#7C4DFF;text-shadow:0 6px 0 rgba(60,20,140,.18)}
.kp-reveal-big.two{font-size:130px}
.kp-reveal-pic{display:flex;align-items:center;justify-content:center;height:96px;font-family:'Noto Color Emoji','Segoe UI Emoji',sans-serif;font-size:84px;line-height:1;filter:drop-shadow(0 6px 4px rgba(0,0,0,.15))}
.kp-reveal-pic svg{width:116px;height:94px}
.kp-reveal-card.is-letter .kp-reveal-big{font-size:150px}
.kp-reveal-apples{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;max-width:270px}
.kp-reveal-apples svg{width:var(--a,34px);height:calc(var(--a,34px) * 1.06);filter:drop-shadow(0 3px 2px rgba(120,20,10,.2))}
.kp-v3 .kp-play .celebration{position:absolute;left:200px;right:24px;top:84px;bottom:20px;pointer-events:none;z-index:3}

/* Next / check: big round green button */
.kp-v3 .kp-play .focus-next{position:absolute;right:24px;bottom:22px;margin:0;z-index:7;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.kp-v3 .kp-play .focus-next .ui-button{width:96px;height:96px;min-height:0;padding:0;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:radial-gradient(circle at 35% 30%,#8BF19B,#22A447 70%);box-shadow:0 7px 0 var(--kp-green-d),0 14px 22px rgba(20,80,30,.3);animation:kp-pulse 1.4s infinite}
.kp-v3 .kp-play .focus-next .ui-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.kp-v3 .kp-play .focus-next .ui-button .icon{width:46px;height:46px;stroke-width:3}
.kp-v3 .kp-play .milestone-alt-link{border:0;background:rgba(255,255,255,.85);border-radius:999px;padding:8px 14px;font:600 13px/1 var(--kp-font);color:#4A6A3A}

/* Kebun Bunga mission inside a game */
.kp-v3 .kp-play .mission-story{display:none}
.kp-v3 .kp-play .mission-progress{position:absolute;left:50%;top:22px;transform:translateX(-50%);z-index:21}
.kp-v3 .kp-play .mission-progress .ui-progress{display:flex;gap:6px;margin:0;padding:6px;list-style:none;border-radius:999px;background:rgba(255,255,255,.5)}
.kp-v3 .kp-play .mission-progress li{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.8);font:600 13px/1 var(--kp-font);color:#7A8A6A;border:0}
.kp-v3 .kp-play .mission-progress li.current{background:radial-gradient(circle at 35% 30%,#FFB0D2,#FF4F93 80%);color:#fff;box-shadow:0 3px 0 #C2306A}
.kp-v3 .kp-play .mission-progress li.done{background:radial-gradient(circle at 35% 30%,#FFC58A,#FF8A1A 80%);color:#fff}
.kp-v3 .kp-play .mission-progress .icon{width:16px;height:16px}

/* Kebun Bunga missions: the chosen flower grows in a pot at the right */
.kp-pot{position:absolute;right:26px;top:150px;width:124px;height:200px;z-index:7;pointer-events:none}
.kp-pot-art{position:absolute;left:2px;bottom:18px;width:120px;height:80px;filter:drop-shadow(0 8px 6px rgba(90,40,10,.25))}
.kp-pot small{position:absolute;left:0;right:0;bottom:-6px;text-align:center;font:700 14px/1 var(--kp-font);color:#7A4A10;text-shadow:0 1px 0 #fff}
.kp-pot-flower{position:absolute;left:12px;bottom:84px;width:100px;height:130px;transform-origin:50% 100%;transform:scale(var(--to))}
.kp-pot-flower svg{width:100%;height:100%;animation:flower-wave 2.4s ease-in-out infinite;transform-origin:50% 100%}
.kp-pot[data-stage="0"] .kp-pot-flower{display:none}
.kp-pot-sprout{position:absolute;left:32px;bottom:86px;width:60px;height:60px;transform-origin:50% 100%;animation:kp-sprout-in .8s cubic-bezier(.3,1.4,.5,1) both}
.kp-pot:not([data-stage="0"]) .kp-pot-sprout{display:none}
.kp-pot-glow{position:absolute;left:50%;bottom:110px;width:150px;height:150px;margin-left:-75px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,140,.75),rgba(255,236,140,0) 70%);opacity:0}
.kp-play[data-phase="revealed"] .kp-pot-flower{animation:kp-pot-grow 1.4s cubic-bezier(.3,1.2,.4,1) both}
.kp-play[data-phase="revealed"] .kp-pot[data-stage="1"] .kp-pot-flower{animation:kp-pot-bud 1.4s cubic-bezier(.3,1.2,.4,1) both}
.kp-play[data-phase="revealed"] .kp-pot-glow{animation:kp-pot-glow 1.6s ease-out both}
@keyframes kp-pot-grow{from{transform:scale(var(--from))}to{transform:scale(var(--to))}}
@keyframes kp-pot-bud{0%{transform:scale(.1);opacity:0}30%{opacity:1}100%{transform:scale(var(--to))}}
@keyframes kp-pot-glow{0%{opacity:0;transform:scale(.6)}40%{opacity:1}100%{opacity:0;transform:scale(1.2)}}
@keyframes kp-sprout-in{from{transform:scale(0)}to{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.kp-pot-flower,.kp-pot-flower svg,.kp-pot-sprout{animation:none!important}}
/* Pasang Bentuk: drag the tile onto its shadow */
.kp-match{position:relative}
.kp-match .kp-shadow-tile{border:4px dashed rgba(255,255,255,.9);transition:transform .15s,box-shadow .15s}
.kp-match .kp-shadow-tile.drop-ready{transform:scale(1.08);box-shadow:0 0 0 6px #FFE38A,0 0 28px 8px rgba(255,227,138,.8)}
.kp-v3 .kp-play .kp-match [data-answer]{touch-action:none;cursor:grab;position:relative;z-index:3}
.kp-v3 .kp-play .kp-match [data-answer].is-dragging{cursor:grabbing;z-index:9;transition:none;filter:drop-shadow(0 14px 12px rgba(0,0,0,.25))}
.kp-v3 .kp-play .kp-match [data-answer].is-returning{transition:transform .3s cubic-bezier(.3,1.4,.5,1)}
.kp-v3 .kp-play .kp-match [data-answer].is-snapping{transition:transform .25s ease-out;z-index:9}
.kp-v3 .kp-play .kp-match [data-answer].kp-nudge{animation:kp-nudge .6s ease-in-out}
@keyframes kp-nudge{0%,100%{translate:0 0}40%{translate:0 -40px}70%{translate:0 -10px}}
.kp-drag-hand{position:absolute;left:50%;top:330px;width:64px;height:64px;margin-left:-32px;z-index:8;pointer-events:none;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 64 64%27%3E%3Cpath d=%27M24 30V10a5 5 0 0 1 10 0v16l2-1a5 5 0 0 1 6 2l2-1a5 5 0 0 1 6 3l1-.4a5 5 0 0 1 6 5V44c0 9-7 16-16 16h-4c-6 0-11-3-14-8L12 40a5 5 0 0 1 8-6z%27 fill=%27%23FFE9D2%27 stroke=%27%237A4A26%27 stroke-width=%273%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");animation:kp-drag-demo 2.6s ease-in-out infinite}
.kp-match.has-drag .kp-drag-hand{display:none}
@keyframes kp-drag-demo{0%,15%{transform:translate(0,0);opacity:0}25%{opacity:1}70%{transform:translate(0,-200px);opacity:1}85%,100%{transform:translate(0,-200px);opacity:0}}
@media(prefers-reduced-motion:reduce){.kp-drag-hand{animation:none;opacity:.8}}
/* Kejutan kebun: the same watering can as Panen Ceria. Each touch it tips over the pot ONCE, pours, and stands back up;
   the plant pops up a size while the water lands, then sways gently. */
.fa-pour .harvest-can{transform-box:view-box;transform-origin:22px 106px;transform:translate(22px,8px) rotate(-8deg);filter:drop-shadow(0 8px 6px rgba(20,60,120,.22));animation:fa-can-bob 2.4s ease-in-out infinite}
.fa-pour.is-pouring .harvest-can{animation:fa-can-tip 1.5s cubic-bezier(.34,1.3,.5,1) both}
.fa-pour .harvest-water-stream{opacity:0;animation:none}
.fa-pour .harvest-water-stream path{stroke-dasharray:3 14}
.fa-pour.is-pouring .harvest-water-stream{animation:fa-stream 1.5s linear both}
.fa-pour.is-pouring .harvest-water-stream path{animation:fa-flow .45s linear infinite}
.fa-pour .harvest-splash{opacity:0;transform-box:fill-box;transform-origin:50% 50%;animation:none}
.fa-pour.is-pouring .harvest-splash{animation:fa-splash 1.5s ease-out both}
.kp-play .garden .fa-plant{transform-box:view-box;transform-origin:350px 334px;animation:fa-grow .75s cubic-bezier(.3,1.7,.5,1) .45s both,fa-sway 3.2s ease-in-out 1.3s infinite}
.kp-play .garden[data-step="0"] .fa-plant{animation:fa-grow .6s cubic-bezier(.3,1.7,.5,1) both,fa-sway 3.2s ease-in-out .7s infinite}
.kp-play .garden.revealed .fa-plant{animation:fa-sway 3.2s ease-in-out 1s infinite}
.kp-play .garden .fa-pot{transform-box:view-box;transform-origin:350px 440px}
.kp-play .garden .is-pouring~.fa-pot,.kp-play .garden .fa-pot:has(~.is-pouring){animation:fa-pot-wiggle .5s ease-out .5s}
@keyframes fa-can-bob{0%,100%{transform:translate(22px,8px) rotate(-8deg)}50%{transform:translate(22px,-2px) rotate(-11deg)}}
@keyframes fa-can-tip{0%{transform:translate(22px,8px) rotate(-8deg)}18%,72%{transform:translate(30px,14px) rotate(24deg)}100%{transform:translate(22px,8px) rotate(-8deg)}}
@keyframes fa-stream{0%,16%{opacity:0}24%,68%{opacity:.95}80%,100%{opacity:0}}
@keyframes fa-flow{to{stroke-dashoffset:-34}}
@keyframes fa-splash{0%,24%{opacity:0;transform:scale(.5)}40%{opacity:1;transform:scale(1.15)}60%{opacity:.8;transform:scale(.85)}75%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(.6)}}
@keyframes fa-grow{0%{scale:.72}100%{scale:1}}
@keyframes fa-sway{0%,100%{rotate:-1.6deg}50%{rotate:1.6deg}}
@keyframes fa-pot-wiggle{0%,100%{transform:none}30%{transform:scale(1.04,.96)}60%{transform:scale(.98,1.02)}}
@media(prefers-reduced-motion:reduce){.fa-pour .harvest-can,.kp-play .garden .fa-plant{animation:none}}
.kp-v3 .kp-play .kp-surprise .main-target:focus{outline:none}
.kp-v3 .kp-play .kp-s-garden .kp-hand{left:calc(50% + 40px);top:66%}

/* Petik Apel on a narrow stage (960 px: tablets, 16:9 phones): tree and number side shrink together so the basket
   stays on screen. zoom keeps the apples' own pixel positions inside the tree. */
@container kp-stage (max-width:1080px){
  .kp-v3 .kp-play .focus-stage.kp-count-stage{left:200px}
  .kp-tree{zoom:.78}
  .kp-count-side{zoom:.8}
}
