@font-face{font-family:Fredoka;font-style:normal;font-display:swap;font-weight:600;src:url(/tangga-pelangi/assets/fredoka-latin-600-normal-C4zohCW5.woff2)format("woff2"),url(/tangga-pelangi/assets/fredoka-latin-600-normal-CcrEjrB4.woff)format("woff")}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fff4e0;--bg-2:#ffe9c7;--surface:#fff;--ink:#2b2140;--ink-2:#5d5470;--line:#ecdcbf;--shade:#e2cfae;--go:#2fb36b;--go-deep:#1d8a4e;--stop:#e5484d;--stop-deep:#b42d32;--merah:#ff6b6b;--merah-d:#c93c3c;--kuning:#ffd23f;--kuning-d:#b98a00;--hijau:#5bd18b;--hijau-d:#1f8f55;--biru:#4dabf7;--biru-d:#1c6fb8;--ungu:#b07cf0;--ungu-d:#7444b8;--oranye:#ff9f40;--oranye-d:#c4620b;--a-kucing:#ff9f43;--a-kelinci:#f7a1c4;--a-katak:#5bc46b;--a-panda:#8d8aa3;--a-bebek:#ffd93d;--a-beruang:#b9835a;--radius:20px;--font:"Fredoka", ui-rounded, "Nunito", system-ui, sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--ink);font-family:var(--font);-webkit-tap-highlight-color:transparent;margin:0;font-weight:600}body{background:radial-gradient(120% 60% at 50% -10%, #fffaf0 0%, transparent 60%), var(--bg);min-height:100dvh}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:4px solid var(--biru-d);outline-offset:3px}a:focus-visible{outline:4px solid var(--biru-d);outline-offset:3px}svg{display:block}[hidden]{display:none!important}.c-merah{--c:var(--merah);--d:var(--merah-d)}.c-kuning{--c:var(--kuning);--d:var(--kuning-d)}.c-hijau{--c:var(--hijau);--d:var(--hijau-d)}.c-biru{--c:var(--biru);--d:var(--biru-d)}.c-ungu{--c:var(--ungu);--d:var(--ungu-d)}.c-oranye{--c:var(--oranye);--d:var(--oranye-d)}.a-kucing{--pc:var(--a-kucing)}.a-kelinci{--pc:var(--a-kelinci)}.a-katak{--pc:var(--a-katak)}.a-panda{--pc:var(--a-panda)}.a-bebek{--pc:var(--a-bebek)}.a-beruang{--pc:var(--a-beruang)}.chunky,.animal-btn,.choice,.icon-btn,.play-btn,.ghost-btn,.danger-btn,.die-btn,.step-btn,.deck-btn{border-radius:var(--radius);background:var(--surface);box-shadow:0 4px 0 var(--shade), 0 8px 18px #50340a14;border:0;transition:transform .12s ease-out,box-shadow .12s ease-out,background-color .15s ease-out}:-webkit-any(.animal-btn,.choice,.icon-btn,.play-btn,.ghost-btn,.danger-btn,.die-btn,.step-btn,.deck-btn):active:not(:disabled){box-shadow:0 1px 0 var(--shade), 0 3px 8px #50340a14;transform:translateY(3px)scale(.98)}:is(.animal-btn,.choice,.icon-btn,.play-btn,.ghost-btn,.danger-btn,.die-btn,.step-btn,.deck-btn):active:not(:disabled){box-shadow:0 1px 0 var(--shade), 0 3px 8px #50340a14;transform:translateY(3px)scale(.98)}@media (hover:hover){:-webkit-any(.animal-btn,.choice,.icon-btn,.ghost-btn,.die-btn,.step-btn,.deck-btn):hover:not(:disabled){background:#fffdf8;transform:translateY(-1px)}:is(.animal-btn,.choice,.icon-btn,.ghost-btn,.die-btn,.step-btn,.deck-btn):hover:not(:disabled){background:#fffdf8;transform:translateY(-1px)}}.icon-btn{flex:none;place-items:center;width:64px;height:64px;display:grid}.icon-btn svg{width:32px;height:32px}.sound-btn .off,[data-sound=off] .sound-btn .on{display:none}[data-sound=off] .sound-btn .off{display:block}[data-sound=off] .sound-btn{color:var(--ink-2);background:#f4ecdf}.token,.mini-token{background:var(--surface);box-shadow:0 0 0 4px var(--pc,#ccc), 0 4px 0 4px #2b21402e;border-radius:50%;display:block;overflow:hidden}.token svg,.mini-token svg{width:100%;height:100%}.mini-token{width:40px;height:40px;box-shadow:0 0 0 3px var(--pc,#ccc)}.setup{max-width:760px;padding:max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));flex-direction:column;gap:16px;margin:0 auto;display:flex}.topbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.brand{letter-spacing:-.02em;align-items:center;gap:10px;margin:0;font-size:clamp(28px,8vw,44px);line-height:1.1;display:flex}.brand .mark{width:1.5em;height:1em}.voice-note{border:2px dashed var(--line);color:var(--ink-2);background:#fff;border-radius:16px;margin:0;padding:12px 16px;font-size:15px;line-height:1.4}.panel{background:#ffffff8c;border:2px solid #fff;border-radius:28px;padding:16px}.panel-title{letter-spacing:-.01em;align-items:center;gap:12px;margin:0 0 12px;font-size:22px;display:flex}.dot-row{display:flex}.dot-row .mini-token{width:32px;height:32px;margin-right:-6px}.animals{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.animals.nudge{animation:.5s ease-in-out nudge}.animal-btn{flex-direction:column;align-items:center;gap:8px;min-height:112px;padding:12px 8px 10px;display:flex;position:relative}.animal-btn .token{width:64px;height:64px;box-shadow:0 0 0 4px var(--pc);transition:transform .2s cubic-bezier(.34,1.56,.64,1)}.animal-name{font-size:18px}.animal-btn[aria-pressed=true]{background:color-mix(in srgb, var(--pc) 22%, white);box-shadow:0 4px 0 color-mix(in srgb, var(--pc) 70%, black 10%), 0 0 0 3px var(--pc) inset}.animal-btn[aria-pressed=true] .token{transform:scale(1.08)}.animal-btn[aria-pressed=false] .token{filter:saturate(.6)}.order{background:var(--ink);color:#fff;border-radius:50%;place-items:center;width:32px;height:32px;font-size:18px;transition:transform .2s cubic-bezier(.34,1.56,.64,1);display:grid;position:absolute;top:8px;right:8px;transform:scale(0)}.animal-btn[aria-pressed=true] .order{transform:scale(1)}.animal-btn.shake{animation:.4s ease-in-out nudge}.options{flex-direction:column;gap:12px;display:flex}.seg{grid-template-columns:1fr 1fr;gap:12px;display:grid}.seg-small{grid-template-columns:1fr 1fr 1.4fr}.choice{flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:96px;padding:12px;font-size:22px;display:flex}.choice.small{gap:4px;min-height:72px;font-size:18px}.choice[aria-pressed=true]{box-shadow:0 4px 0 #9ccbf0, 0 0 0 3px var(--biru-d) inset;background:#eaf6ff}.toggle[aria-pressed=true]{box-shadow:0 4px 0 #9bd9b3, 0 0 0 3px var(--go-deep) inset;background:#e8f8ee}.choice-art{align-items:center;height:48px;display:flex}.die-art svg{width:48px;height:48px}.card-art{width:64px;position:relative}.fan-card{background:var(--c);border:2px solid #fff;border-radius:6px;place-items:center;width:30px;height:44px;display:grid;position:absolute;top:0;left:18px;box-shadow:0 2px 4px #00000026}.fan-card.f0{transform:rotate(-16deg)translate(-12px)}.fan-card.f2{transform:rotate(16deg)translate(12px)}.fan-shape{fill:#fff;width:18px;height:18px}.size-art svg{width:40px;height:24px;color:var(--ink-2)}.size-art.feet svg{width:28px;height:28px;color:var(--go-deep)}.size-num{font-size:24px;line-height:1}.play-btn{background:var(--go);color:#fff;letter-spacing:-.01em;min-height:80px;box-shadow:0 6px 0 var(--go-deep), 0 12px 24px #1d8a4e40;justify-content:center;align-items:center;gap:12px;padding:0 32px;font-size:30px;display:flex}.play-btn svg{width:36px;height:36px}.play-btn:active{box-shadow:0 2px 0 var(--go-deep), 0 4px 10px #1d8a4e40}.play-btn[aria-disabled=true]{color:#f7f3ec;background:#c9c2b4;box-shadow:0 6px #a59d8e}.ghost-btn,.danger-btn{justify-content:center;align-items:center;gap:10px;min-height:72px;padding:0 24px;font-size:22px;display:flex}.ghost-btn svg,.danger-btn svg{width:28px;height:28px}.danger-btn{background:var(--stop);color:#fff;box-shadow:0 5px 0 var(--stop-deep)}.foot{color:var(--ink-2);flex-direction:column;align-items:center;gap:8px;display:flex}.adult-link{min-height:48px;color:var(--ink);background:#ffffffb3;border-radius:999px;align-items:center;gap:8px;padding:0 16px;font-size:16px;text-decoration:none;display:inline-flex}.adult-link svg{width:22px;height:22px}.foot small{color:var(--ink-2);font-size:13px}.game{height:100dvh;padding:max(8px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);gap:8px;max-width:1200px;margin:0 auto;display:grid;overflow:hidden}.turnbar{align-items:center;gap:10px;display:flex}.turn{background:color-mix(in srgb, var(--pc,#fff) 28%, white);min-width:0;height:64px;box-shadow:0 0 0 3px var(--pc,#fff) inset;border-radius:999px;flex:1;align-items:center;gap:12px;padding:0 16px 0 10px;transition:background-color .3s;display:flex}.game[data-player=kucing]{--pc:var(--a-kucing)}.game[data-player=kelinci]{--pc:var(--a-kelinci)}.game[data-player=katak]{--pc:var(--a-katak)}.game[data-player=panda]{--pc:var(--a-panda)}.game[data-player=bebek]{--pc:var(--a-bebek)}.game[data-player=beruang]{--pc:var(--a-beruang)}.turn-token{flex:none;width:48px;height:48px;animation:.35s cubic-bezier(.34,1.56,.64,1) pop}.turn-text{min-width:0;color:var(--ink-2);white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.01em;flex-direction:column;font-size:14px;line-height:1.1;display:flex;overflow:hidden}.turn-text b{color:var(--ink);text-overflow:ellipsis;font-size:clamp(22px,6.5vw,30px);font-weight:600;overflow:hidden}.players{flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none;display:flex}.player{color:var(--ink-2);background:#fff9;border-radius:999px;align-items:center;gap:6px;padding:4px 12px 4px 4px;font-size:16px;transition:transform .2s;display:flex}.player .mini-token{width:32px;height:32px}.player.current{color:var(--ink);box-shadow:0 0 0 2px var(--pc);background:#fff;transform:scale(1.08)}.board-wrap{justify-content:center;align-items:center;min-height:0;display:flex}.board{aspect-ratio:var(--ar);width:min(calc(100% - 12px), calc((100dvh - 340px) * var(--arn)));background:#fff;border-radius:22px;padding:0;position:relative;box-shadow:0 0 0 6px #fff,0 10px 30px #50340a1f;container-type:inline-size}.layer{position:absolute;top:0;bottom:0;left:0;right:0}.tiles{z-index:0}.jumps{z-index:1}.badges{z-index:2}.pieces{z-index:3}.tiles,.badges{grid-template-columns:repeat(var(--cols), 1fr);grid-template-rows:repeat(var(--rows), 1fr);display:grid}.tile{background:var(--c);box-shadow:inset 0 -5px 0 var(--d);cursor:default;border:0;border-radius:14px;place-items:center;margin:2px;padding:0;display:grid;position:relative}.tile .shape{width:52%;height:52%;fill:var(--d);opacity:.45;transform:translate(14%,12%)}.tile.finish{background:conic-gradient(from 200deg, var(--merah), var(--kuning), var(--hijau), var(--biru), var(--ungu), var(--oranye), var(--merah));box-shadow:inset 0 -5px #0003}.finish-star{color:#fff;filter:drop-shadow(0 2px #0003);width:60%}.tile.next{cursor:pointer;z-index:1;animation:1s ease-in-out infinite glow}.tile.next:after{content:"";position:absolute;top:-8px;bottom:-8px;left:-8px;right:-8px}.tile.flash{animation:.45s ease-out flash}.start-pad{background:repeating-linear-gradient(135deg,#f5ead6 0 12px,#efe1c8 12px 24px);border-radius:14px;grid-column:1/-1;justify-content:flex-end;align-items:flex-end;margin:2px;padding:6px 10px;display:flex}.start-label{color:var(--ink-2);align-items:center;gap:4px;font-size:16px;display:inline-flex}.start-label svg{width:18px;height:18px;color:var(--go-deep)}.badges{pointer-events:none}.badge{aspect-ratio:1;min-width:46%;color:var(--ink);font-size:16px;font-size:calc(100cqw / var(--cols) * .27);font-variant-numeric:tabular-nums;background:#fff;border-radius:50%;place-self:start;place-items:center;margin:6% 0 0 6%;line-height:1;display:grid;box-shadow:0 2px #2b21402e}.jumps{pointer-events:none;width:100%;height:100%;overflow:visible}.jumps line{stroke-linecap:round}.ladder .halo line{stroke:#fff;stroke-width:.17px}.ladder .rails line{stroke:#7a4a1f;stroke-width:.09px}.ladder .rungs line{stroke:#c98a4b;stroke-width:.075px}.slide path{fill:none;stroke-linecap:butt}.slide .halo{stroke:#fff;stroke-width:.6px}.slide-edge{stroke:#0b7f7b;stroke-width:.48px}.slide-bed{stroke:#19c2bc;stroke-width:.32px}.slide-shine{stroke:#c2f5f2;stroke-width:.06px;stroke-dasharray:.12 .16}.slide-top{fill:#0b7f7b;stroke:#fff;stroke-width:.06px}.pieces{pointer-events:none}.piece{width:calc(100% / var(--cols));height:calc(100% / var(--rows));transform:translate(calc(var(--x,0) * 100%), calc(var(--y,0) * 100%));place-items:center;transition:transform .28s cubic-bezier(.3,.7,.4,1);display:grid;position:absolute;top:0;left:0}.piece.slow{transition-duration:.95s;transition-timing-function:cubic-bezier(.45,0,.3,1)}.piece.current{z-index:2}.piece .token{width:82%;height:82%;transform:translate(var(--ox,0), var(--oy,0)) scale(var(--s,.8));box-shadow:0 0 0 5px var(--pc), 0 6px 0 4px #2b214040;transition:transform .25s ease-out}.piece .token.hop{animation:.3s ease-out hop}.piece.current .token{box-shadow:0 0 0 5px var(--pc), 0 0 0 9px #fff, 0 7px 0 8px #2b214038}.controls{flex-direction:column;gap:8px;display:flex}.caption{text-align:center;border-radius:18px;place-items:center;min-height:52px;padding:4px 12px;font-size:22px;line-height:1.2;display:grid}.caption-text.pop{animation:.3s cubic-bezier(.34,1.56,.64,1) pop}.caption.big .caption-text,.caption.count .caption-text{font-size:42px;line-height:1}.caption.color{background:var(--c);color:#fff;text-shadow:0 2px 0 var(--d)}.caption.c-kuning{color:var(--ink);text-shadow:none}.caption.jump.up{color:#7a4a17;background:#fff1d9}.caption.jump.down{color:#0b6662;background:#dcf8f6}.actions{justify-content:center;align-items:stretch;gap:16px;display:flex}.die-btn{flex:none;width:112px;height:112px;padding:10px}.die-btn svg{width:100%;height:100%}.die-face{fill:#fff;stroke:var(--line);stroke-width:3px}.pip{fill:var(--ink);transition:fill .15s}.pip.counted{fill:var(--go);transform-box:fill-box;transform-origin:50%;animation:.3s ease-out pip}.game[data-phase=turn] .die-btn svg,.game[data-phase=turn] .deck-btn .top{animation:1.4s ease-in-out infinite invite}.game[data-phase=turn] .die-btn,.game[data-phase=walk] .step-btn:not(:disabled){outline:4px solid color-mix(in srgb, var(--pc,#fff) 70%, white);outline-offset:4px}.die-btn.rolling svg{animation:.18s linear infinite rattle}.game:not([data-phase=turn]) .die-btn,.game:not([data-phase=turn]) .deck-btn{cursor:default}.step-btn{background:var(--go);color:#fff;max-width:280px;min-height:112px;box-shadow:0 6px 0 var(--go-deep);flex:1;justify-content:center;align-items:center;gap:12px;padding:0 16px;font-size:26px;display:flex}.step-btn .mini-token{width:56px;height:56px;box-shadow:0 0 0 4px #fff}.step-label{align-items:center;gap:6px;display:flex}.step-label svg{width:28px;height:28px}.step-btn:disabled{color:#f6f1e8;cursor:default;background:#ddd5c6;box-shadow:0 6px #bfb5a3}.step-btn:disabled .mini-token{opacity:.6}.game[data-phase=walk] .step-btn:not(:disabled) .step-token{animation:1.2s ease-in-out infinite invite}.deck-btn{width:112px;height:128px;box-shadow:none;background:0 0;flex:none;padding:0;position:relative}.deck-btn .card{position:absolute;top:8px;bottom:8px;left:14px;right:14px}.deck-btn .card:first-child{transform:rotate(-7deg)translate(-4px,4px)}.deck-btn .card:nth-child(2){transform:rotate(5deg)translate(4px,2px)}.card{border:4px solid #fff;border-radius:16px;place-items:center;display:grid;box-shadow:0 4px #2b214033,0 8px 16px #50340a1f}.card.back{background:repeating-linear-gradient(45deg,#7c5cd6 0 10px,#6a4cc4 10px 20px)}.card.back .mark{background:#fff;border-radius:12px;width:60px;height:40px;padding:4px}.drawn{border:3px dashed var(--line);border-radius:16px;flex:none;width:120px;height:128px;display:grid}.card.face{background:var(--c);grid-template-rows:1fr auto;padding:10px 6px 8px;animation:.45s cubic-bezier(.34,1.4,.64,1) deal}.card-shape{fill:#fff;width:64px;height:64px;stroke:var(--d);stroke-width:4px}.card-name{color:#fff;text-shadow:0 2px 0 var(--d);font-size:22px}.card.c-kuning .card-name{color:var(--ink);text-shadow:none}.win,.confirm{z-index:10;background:#2b214073;place-items:center;padding:16px;animation:.25s ease-out fade;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.win-card,.confirm-card{background:var(--bg);text-align:center;width:min(100%,520px);max-height:calc(100dvh - 32px);box-shadow:0 8px 0 var(--shade), 0 24px 60px #00000040;border-radius:32px;padding:24px 20px 20px;animation:.45s cubic-bezier(.34,1.4,.64,1) rise;position:relative;overflow:auto}.confirm-card p{margin:8px 0 20px;font-size:26px}.win-hero{place-items:center;width:140px;height:140px;margin:0 auto 8px;display:grid;position:relative}.win-star{color:var(--kuning);animation:9s linear infinite spin;position:absolute;top:-18px;bottom:-18px;left:-18px;right:-18px}.token.big{width:104px;height:104px;box-shadow:0 0 0 6px var(--pc), 0 0 0 11px #fff;position:relative}.win h2{letter-spacing:-.02em;margin:8px 0 4px;font-size:clamp(26px,7vw,36px);line-height:1.15}.win p{color:var(--ink-2);margin:0 0 16px;font-size:18px;line-height:1.4}.praise{flex-wrap:wrap;justify-content:center;gap:12px;margin:0 0 20px;padding:0;list-style:none;display:flex}.praise li{flex-direction:column;align-items:center;gap:6px;font-size:16px;display:flex;position:relative}.praise .mini-token{width:56px;height:56px}.praise-star{width:26px;color:var(--kuning);filter:drop-shadow(0 1px 0 var(--kuning-d));animation:.5s cubic-bezier(.34,1.56,.64,1) .4s both pop;position:absolute;top:-8px;right:-10px}.win-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.win-actions>*{flex:180px}.confetti{pointer-events:none;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.confetto{width:12px;height:18px;transform:rotate(var(--r));border-radius:3px;animation:2.6s cubic-bezier(.3,.4,.6,1) 2 both fall;position:absolute;top:-20px}.confetto.k0{background:var(--merah)}.confetto.k1{background:var(--kuning);border-radius:50%}.confetto.k2{background:var(--hijau)}.confetto.k3{background:var(--biru);border-radius:50%}.confetto.k4{background:var(--ungu)}.confetto.k5{background:var(--oranye)}@media (orientation:landscape) and (min-width:640px){.game{grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(300px,360px);column-gap:20px}.turnbar{grid-column:1/-1}.players{flex-wrap:wrap;grid-area:2/2}.board-wrap{grid-area:2/1/4}.board{width:min(calc(100% - 12px), calc((100dvh - 120px) * var(--arn)))}.controls{grid-area:3/2;justify-content:center;gap:16px}.actions{flex-direction:column;align-items:center}.step-btn{flex:none;width:100%}.die-btn{width:140px;height:140px}.caption{min-height:96px}.setup{max-width:980px}.setup .animals{grid-template-columns:repeat(6,1fr)}.options{flex-direction:row}.options .seg{flex:1}}@media (max-width:360px){.animal-btn{min-height:100px}.animal-btn .token{width:56px;height:56px}.die-btn{width:100px;height:100px}.step-btn{min-height:100px;font-size:22px}}@keyframes hop{0%{translate:0}45%{translate:0 -26%}to{translate:0}}@keyframes pop{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes glow{0%,to{box-shadow:inset 0 -5px 0 var(--d), 0 0 0 3px #fff, 0 0 0 6px var(--d)}50%{box-shadow:inset 0 -5px 0 var(--d), 0 0 0 5px #fff, 0 0 0 10px var(--d)}}@keyframes flash{0%{filter:brightness(1.35)}to{filter:brightness()}}@keyframes invite{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes rattle{0%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}to{transform:rotate(-12deg)}}@keyframes pip{0%{transform:scale(1.6)}to{transform:scale(1)}}@keyframes deal{0%{opacity:0;transform:translate(-90px)rotate(-20deg)scale(.7)}to{opacity:1;transform:none}}@keyframes nudge{0%,to{transform:translate(0)}25%{transform:translate(-8px)}75%{transform:translate(8px)}}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{opacity:0;transform:translateY(40px)scale(.92)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fall{0%{transform:translate3d(0, -20px, 0) rotate(var(--r))}to{transform:translate3d(0, 110vh, 0) rotate(calc(var(--r) + 540deg))}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important}}
