@font-face{font-family:Game;src:url('assets/fonts/game-cn.woff2')}@font-face{font-family:UI;src:url('assets/fonts/ui.woff2')}@font-face{font-family:UIBold;src:url('assets/fonts/ui-bold.woff2')}@font-face{font-family:Platform;src:url('assets/fonts/platform-num.woff2')}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;width:100%;background:#edab59;overscroll-behavior:none}body{font-family:UI,system-ui;color:#7e4116;background-image:url('assets/background.webp');background-size:cover}button{font:inherit;border:0;background:none;cursor:pointer;padding:0;touch-action:manipulation;color:inherit}button img,.art{pointer-events:none;user-select:none}button:active{transform:scale(.95)}button:disabled{cursor:default;filter:saturate(.65);opacity:.55}#stage{position:relative;overflow:clip;width:414px;height:895px;margin:auto;transform-origin:top left;background:url('assets/background.webp') center/cover}header{position:absolute;inset:0;z-index:5;pointer-events:none}header button{position:absolute;top:70px;width:44px;height:44px;pointer-events:auto}header img{width:44px;height:44px}#back{left:12px}#sound{right:12px}#sound[aria-pressed=true]{filter:brightness(1.15)}#progress{position:absolute;left:70px;top:70px;width:273px;height:49px;border-radius:9px;overflow:hidden;background:rgba(59,10,2,.5);display:flex;color:white}.current{flex:0 0 49px;background:rgba(59,10,2,.4);text-align:center}.current b{display:block;font:19px/26px Platform}.current span{font-size:11px;line-height:15px}.track{display:flex;gap:6px;align-items:center;margin-left:10px;overflow-x:auto;scrollbar-width:none;pointer-events:auto}.track::-webkit-scrollbar{display:none}.reward{flex:0 0 63px;text-align:center;height:41px}.reward strong{display:flex;align-items:center;justify-content:center;gap:2px;font:14px/22px Platform;color:#ffe178}.reward img{width:14px;height:14px}.reward small{font-size:11px;line-height:15px;color:white}.reward.claimed strong{color:#fff4c6}.art{position:absolute;background-repeat:no-repeat;background-size:100% 100%}#title{z-index:2}.leaf{z-index:1}.leaf-a{transform:rotate(-15deg)}.leaf-b{transform:scaleX(-1) rotate(-10deg)}.leaf-c{transform:rotate(20deg)}#status{position:absolute;left:52px;top:278px;width:310px;height:40px;display:flex;border-radius:24px;border:1.5px solid #e59d51;background:#ffdd99;box-shadow:inset 0 1.5px #fff4d6,0 2px #bd7937;font:20px/38px Game}#level{width:137px;text-align:center;border-radius:24px;background:linear-gradient(#ffe7bb,#ffdda0);border-right:1px solid #e6a561}#turn{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;border-radius:24px;background:#ffdc72;box-shadow:inset 0 1.5px #fff2bd}#turnCat{position:relative;display:block;width:28px;height:26px}#turnText{font-weight:normal;font-size:19px}#boardPanel{position:absolute;left:10px;top:335px;width:394px;height:394px}#boardArt{z-index:0}canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;z-index:2}nav{position:absolute;left:35px;right:35px;top:763px;display:flex;gap:12px;justify-content:space-between}.game-button{position:relative;height:65px;width:150px;overflow:visible}.game-button .art{z-index:0}.game-button b{position:relative;z-index:1;font:27px/60px Game}#resume{position:absolute;top:841px;width:100%;text-align:center;display:none}#continue{font:18px Game;padding:5px 20px;background:#ffe5af;border-radius:15px}#modal{position:fixed;inset:0;background:#0009;z-index:20;display:grid;place-items:center}#modal[hidden]{display:none}#popup{position:relative;width:300px;height:360px;color:white}#popupArt{position:absolute;left:0;top:-36px;width:337px;height:396px;pointer-events:none}.source{position:absolute;left:16px;top:12px;font:16px/27px UI}h2{position:absolute;left:16px;top:43px;margin:0;font:28px/37px UIBold}#popup .amount{position:absolute;left:83px;top:112px;width:133px;height:143px;display:flex;align-items:baseline;justify-content:center}.amount strong{font:119px/143px Platform}.amount span{font:24px UIBold}.actions{position:absolute;left:16px;top:296px;width:268px;height:48px;display:flex;gap:8px}.actions button{height:48px;font:18px UIBold;color:inherit}.actions .next{width:268px}.actions .restart{width:107px;color:#111a2c}.actions .revive{width:153px;color:white}#close{position:absolute;left:130px;top:376px;width:40px;height:40px}#close img{width:40px;height:40px}#popup.fail{color:#111a2c}#popup.fail .source{color:#7b4300}#popup.fail .amount{color:#9f1900}#loading{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;background:#f7cb86;font:28px Game}#loading[hidden]{display:none}#retry{padding:10px 25px;border-radius:20px;background:#ffdc9d;font-size:18px}.spark{position:absolute;pointer-events:none;z-index:10}.pulse{position:absolute;pointer-events:none;z-index:10;border:2px solid #ffcd55;border-radius:50%;box-shadow:0 0 14px #ffcc49,inset 0 0 10px #fff3b8}.winning{filter:drop-shadow(0 0 8px #ffdc7d)}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
#boardPanel{background:#ffe2b4;border-radius:18px}#turn{position:relative;padding-left:32px}#turnCat{position:absolute}
@font-face{font-family:Game;src:url('assets/fonts/game-round.woff2')}
html{scrollbar-width:none}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}#viewport{width:100%;overflow:clip;position:relative}#boardPanel{isolation:isolate}
#boardArt{border-radius:18px;overflow:hidden}
html{background:#edab59 url('assets/background.webp') center/cover fixed}#popup.fail .actions .revive:disabled{opacity:.65}

/* Shared artwork and geometry for both board actions. */
nav{left:35px;right:35px;gap:12px;justify-content:center}.game-button{width:166px;height:52px;flex:0 0 166px;transition:transform .14s,filter .14s}.game-button b{display:flex;align-items:center;justify-content:center;height:47px;transform:translateY(-0.8px);font:24px/1 Game;text-shadow:0 1px #ffe6a8}.game-button:disabled{opacity:1;filter:saturate(.55)}.game-button:disabled b{opacity:.46}.game-button:active:not(:disabled){transform:translateY(2px) scale(.98);filter:brightness(.96)}

/* Approved cream enamel plaque; live labels and turn cat overlay the PNG. */
#status{left:48px;top:273px;width:318px;height:60px;border:0;border-radius:0;background:none;box-shadow:none;align-items:stretch;color:#74401e;font:20px/1 Game}
#statusArt{z-index:0}
#level{position:relative;z-index:1;width:159px;flex:0 0 159px;display:flex;align-items:center;justify-content:center;padding:0 22px 3px 0;border:0;border-radius:0;background:none}
#level:after{display:none}
#turn{position:relative;z-index:1;width:159px;flex:0 0 159px;display:flex;align-items:center;justify-content:center;padding:0 0 3px 22px;border:0;border-radius:0;background:none;box-shadow:none;gap:0}
#turnText{font:20px/1 Game;text-shadow:0 1px #fff4d8;white-space:nowrap}

/* Optical text alignment; plaque and cat remain fixed. */
#status #level,#status #turnText{transform:translateY(1.8px)}

#undo b{gap:9px}#undoCount{font:16px/22px Platform,UI,sans-serif;min-width:22px;height:22px;border-radius:50%;background:#86502416;box-shadow:inset 0 0 0 1px #aa743735;text-shadow:none}

/* Center counter independently of the numeric font baseline. */
#undoCount{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;line-height:1;position:relative;top:-1px;padding-bottom:3px}
