@font-face{font-family:Pixel;src:url(fonts/pixel.woff2)}@font-face{font-family:Mi;src:url(fonts/mi-bold.woff2);font-weight:700}@font-face{font-family:PF;src:url(fonts/pingfang-semibold.woff2);font-weight:600}@font-face{font-family:KS;src:url(fonts/ks.woff2);font-weight:600}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;min-height:100%;background:#9be135;overscroll-behavior:none}body{display:flex;justify-content:center;overflow-x:hidden}button{border:0;background:none;cursor:pointer;font:inherit;color:inherit;padding:0;touch-action:manipulation}button:focus-visible{outline:3px solid #7b2c61;outline-offset:3px}button:disabled{cursor:default}#game{width:414px;height:895px;position:relative;overflow:hidden;flex-shrink:0;transform-origin:top center;background:#9be135 url(../assets/background.png) center/100% 100%;color:#5d2b13;font-family:Pixel,sans-serif}canvas{display:block;pointer-events:none}#shell{position:absolute;inset:0 0 auto;height:124px;font-family:PF,sans-serif;color:#fff;z-index:5}#back,#sound{position:absolute;top:70px;width:44px;height:44px}#back{left:12px}#sound{right:12px}#shell img{width:100%;height:100%}#sound[aria-pressed=true]{filter:brightness(1.15)}#progress{position:absolute;top:70px;left:70px;width:273px;height:49px;border-radius:8px;background:#3b0a0280;display:flex;overflow:hidden}#current{width:49px;flex-shrink:0;background:#3b0a0266;display:flex;align-items:center;flex-direction:column;font-size:14px;line-height:20px;padding:3px 0}#current b{font-weight:600;font-size:20px;line-height:23px}#steps{display:flex;gap:12px;padding:5px 10px;transition:transform .3s;align-items:center}#steps>div{width:54px;flex-shrink:0;font-size:12px;line-height:21px;white-space:nowrap}#steps strong{font-size:14px;font-weight:600;color:#ffe682}#steps img{width:14px;height:14px;object-fit:contain;vertical-align:-2px}#steps .done{color:#baff9b}#title{position:absolute;left:71px;top:141px;width:272px;height:80px}#hud{position:absolute;top:225px;left:16px;right:16px;height:36px;display:flex;justify-content:space-between}.panel{position:relative;display:flex;align-items:center;justify-content:center}.panel>canvas{position:absolute;inset:0;width:100%;height:100%}.panel>span,.panel>div{position:relative;z-index:1}.panel>span{padding-bottom:3px;white-space:nowrap}#roundBox{width:92px;font-size:19px}#lifeBox{width:109px}#paws{display:flex;align-items:center;gap:7px;padding-bottom:3px}#paws canvas{width:22px;height:22px;transition:filter .2s,opacity .2s,transform .2s}#paws .lost{filter:grayscale(1);opacity:.3;transform:scale(.83)}#question{position:absolute;left:16px;top:267px;width:382px;height:43px;font-size:25px}#question.long{font-size:21px}#stage{position:absolute;left:27px;top:317px;width:360px;height:342px;isolation:isolate}#scene{width:100%;height:100%}#toast{position:absolute;left:14px;right:14px;top:16px;text-align:center;color:#5b2816;font-size:23px;line-height:1.4;text-shadow:2px 2px #fff4c7,-2px -2px #fff4c7;pointer-events:none;z-index:2}#toast.big{font-size:39px;top:120px;color:#6b1e30}#toast small{display:block;font-size:18px}#gate{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8edce44;gap:14px}#gateText{font-size:27px;text-align:center;text-shadow:1px 2px #fff3d0}#start{width:166px;height:52px;font-size:23px}#timer{position:absolute;top:670px;left:24px;width:365px;height:24px;display:flex;align-items:center;gap:6px}#clock{width:24px;height:24px}#track{position:relative;width:335px;height:19px}#track canvas{position:absolute;width:100%;height:100%}#timeFill{position:absolute;left:5px;top:5px;width:calc(100% - 10px);height:8px;background:linear-gradient(#80ee62,#41ba47);box-shadow:0 1px #d8ffc1;transform-origin:left;border-radius:2px}#keys{position:absolute;left:33px;top:705px;display:grid;grid-template-columns:repeat(5,68px);grid-template-rows:repeat(2,51px);gap:7px}#keys button{width:68px;height:51px;font-size:39px;transition:filter .12s}#keys button span{padding-bottom:6px;line-height:1}#keys button:disabled{color:#896441}#keys button.picked{filter:brightness(1.16)}footer{position:absolute;left:16px;right:23px;top:836px;height:37px;display:flex;align-items:center;justify-content:flex-end}#pause{width:38px;height:36px}#pause canvas{width:100%;height:100%}#modal{position:absolute;inset:0;background:#0009;z-index:20;font-family:PF,sans-serif}#modal[hidden]{display:none}#reward{position:absolute;left:57px;top:268px;width:300px;height:360px;border-radius:9px;background:#1da5ff;color:white}#reward.fail{background:#fddba5;color:#111a2d}#rewardLabel{position:absolute;left:16px;top:12px;font-size:16px;line-height:27px}#reward.fail #rewardLabel{color:#7b4300}#rewardTitle{position:absolute;left:16px;top:43px;font-size:28px;font-weight:600;line-height:37px;z-index:2}#coinArt{position:absolute;left:193px;top:-33px;width:137px;height:123px}#amount{position:absolute;left:83px;top:112px;display:flex;height:143px;align-items:flex-start}#amount b{font:600 119px/143px KS,sans-serif;letter-spacing:-5px;width:109px}#amount span{font:700 24px/32px Mi,sans-serif;margin-top:100px}#reward.fail #amount{color:#911300}#modalActions{position:absolute;left:16px;top:296px;width:268px;height:48px;display:flex;gap:8px}#modalActions button{border-radius:9px;background:#111a2c;color:white;height:48px;flex:1;font:700 18px/24px Mi,sans-serif;white-space:nowrap}#reward.fail #modalActions button:first-child{flex:0 0 107px;background:white;color:#111a2d}#reward.fail #modalActions button:last-child{background:#911300}#closeModal{position:absolute;left:130px;top:376px;width:40px;height:40px}#closeModal img{width:40px;height:40px}#loader{position:absolute;inset:0;background:#9be135;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;font:24px Pixel}#loader[hidden]{display:none}#loadCat{width:78px;height:58px}#retryLoad{border:2px solid #743f20;background:#ffedbd;padding:10px 20px}#game.reduced *{animation:none!important;transition:none!important}[hidden]{display:none!important}

#keys button span{-webkit-text-stroke:1.3px currentColor}#question span{-webkit-text-stroke:.45px currentColor}#gateText{white-space:pre-line;line-height:1.6}

#stepViewport{overflow:hidden;width:224px;flex-shrink:0}#current{position:relative;z-index:1}

#game{font-family:Pixel,Mi,sans-serif}

@font-face{font-family:MiaoSymbols;src:url(fonts/symbols.woff2);unicode-range:U+2212}#game{font-family:Pixel,MiaoSymbols,Mi,sans-serif}

@font-face{font-family:MiMedium;src:url(fonts/mi-medium.woff2)}#current{padding:0}#current b{position:absolute;top:2px;left:20px;font:600 19px/23px KS}#current span{position:absolute;top:28px;left:13px;font:11px/15px MiMedium}#steps{gap:6px;padding:5px 10px;height:49px;align-items:initial}#steps>div{position:relative;width:63px;height:41px;font:11px/15px MiMedium}#steps strong{position:absolute;left:0;top:2px;height:17px;font:600 14px/17px KS,MiMedium;color:#fff575;display:flex;align-items:center;gap:1px}#steps>div>span{position:absolute;left:0;top:23px}#steps>div:first-child strong,#steps>div:first-child>span{left:3px}#steps strong img{width:14px;height:14px;border-radius:50%;flex-shrink:0}#steps i{position:absolute;left:49px;top:11px;width:2px;height:2px;border-radius:50%;background:#fff8;box-shadow:4px 0 #fff8,8px 0 #fff8}#steps>div:first-child i{left:52px}

#keys{grid-template-columns:repeat(5,64px)}#keys button{width:64px}#keys button::after{content:"";position:absolute;inset:-3px}

@font-face{font-family:MiaoDigits;src:url(fonts/digits.woff2);unicode-range:U+0030-0039}#keys button{font-family:MiaoDigits,Pixel,sans-serif}

/* The exported right-hand button has a mirrored speaker glyph. */
#sound img{transform:scaleX(-1)}

#hud{align-items:stretch;justify-content:flex-start;gap:8px}
#lifeBox{margin-left:auto}
#paws,#question span{padding-bottom:0}
#question span{line-height:1;text-align:center}
#toast.countdown{top:45%;font:48px MiaoDigits,Pixel,sans-serif}
#toast.answerCue{left:50%;right:auto;transform:translateX(-50%);white-space:nowrap;background:#fff0cf;color:#54270f;padding:4px 10px;border:2px solid #995f2d;font-size:19px;text-shadow:none}

#hud,#question,#stage,#timer,#keys{left:27px;right:27px;width:auto}
#hud{display:grid;grid-template-columns:1fr auto 38px;gap:3px}
#lifeBox{margin:0}
#track{flex:1;min-width:0}
#keys{grid-template-columns:repeat(5,minmax(0,1fr))}
#keys button{width:100%}
#toast.countdown{inset:7px;display:grid;place-items:center;background:rgba(18,14,20,.79);color:#fff8dc;font:72px/1 MiaoDigits,Pixel,sans-serif;text-shadow:0 4px #61351c}
#toast.answerCue{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);background:rgba(36,25,22,.9);color:#fff7d8;border:2px solid #ffe2a1;padding:12px 15px;font-size:22px;text-shadow:none}
#gate{z-index:3}
#gateText:empty{display:none}
#gateText:not(:empty){background:rgba(36,25,22,.85);color:#fff7d8;text-shadow:none;padding:5px 14px}

#countCover{position:absolute;inset:6px;z-index:4;display:grid;place-items:center;background:rgba(0,0,0,.90);pointer-events:none}
#countCover[hidden]{display:none}
#countCover span{font:80px/1 MiaoDigits,Pixel,sans-serif;color:#fff7df;text-shadow:0 4px #9f6331}

#hud{grid-template-columns:1fr auto 36px}
#pause{width:36px;height:36px}
#toast.revealCue{inset:50% auto auto 50%;transform:translate(-50%,-50%);white-space:nowrap;padding:9px 14px;background:rgba(0,0,0,.76);color:#fff5dc;font-size:32px;line-height:1.2;text-shadow:none}
@keyframes answerTimerColor{
  0%,100%{background-color:#8fffa6;box-shadow:0 0 4px #8fffa6}
  35%{background-color:#81faff;box-shadow:0 0 4px #81faff}
  70%{background-color:#fff080;box-shadow:0 0 4px #fff080}
}
#timer.answering #timeFill{background:#8fffa6;animation:answerTimerColor 1s linear infinite}
@media(prefers-reduced-motion:reduce){#timer.answering #timeFill{animation:none}}
#question span{top:-.3px}


#answerSeconds{position:absolute;left:50%;top:74%;transform:translate(-50%,-50%);padding:3px 12px;background:rgba(36,25,22,.86);color:#fff5dc;font:32px/1.25 MiaoDigits,Pixel,sans-serif;pointer-events:none}

#game{background-image:image-set(url('../assets/background.webp') type('image/webp') 1x,url('../assets/background.png') type('image/png') 1x)}

html[data-pde-game="cats"] .pde-loading .pde-loading-scene{left:50%;top:50%;height:895px;transform:translate(-50%,-50%) scale(var(--pde-ui-scale,1));transform-origin:center}
#roundBox{width:158px;font-size:19px}
#question{z-index:2;pointer-events:none}
#question span{transition:transform .32s cubic-bezier(.2,.75,.25,1),color .25s}
#question.preparing span{transform:translateY(123px);transition:none;color:#fff6d9;text-shadow:0 2px #482817}
#question.preparing.promptPaused span{visibility:hidden}
@media(prefers-reduced-motion:reduce){#question span{transition:none}}

html[data-pde-game="cats"]{overflow-x:clip}
html[data-pde-game="cats"] .pde-loading{width:100vw;height:100dvh}

#damageEdge{position:fixed;inset:0;z-index:80;pointer-events:none;opacity:0;box-shadow:inset 0 0 26px 6px #db2433}

/* Paint the last countdown digit as a single pixel silhouette at fractional phone scales. */
#countCover .countOne{position:relative;color:transparent;text-shadow:none}
#countCover .countOne::before,#countCover .countOne::after{content:"";position:absolute;left:16.6667%;top:16.6667%;width:50%;height:75%;background:#fff7df;clip-path:polygon(33.333% 0,66.667% 0,66.667% 88.889%,100% 88.889%,100% 100%,0 100%,0 88.889%,33.333% 88.889%,33.333% 22.222%,0 22.222%,0 11.111%,33.333% 11.111%)}
#countCover .countOne::before{background:#9f6331;transform:translateY(4px)}
