*{box-sizing:border-box} :root{--ink:#453d31;--muted:#837765;--teal:#527b73;--cream:#fff9ed;--orange:#d99650;--scene:url('./assets/kitchen.svg')}body{margin:0;color:var(--ink);font-family:system-ui,'Microsoft YaHei','PingFang SC',sans-serif;background:#f7eedb;min-height:100svh}body:before{content:'';position:fixed;inset:0;background:var(--scene) center bottom/cover;z-index:-2}body:after{content:'';position:fixed;inset:0;background:rgba(255,250,239,.42);z-index:-1;pointer-events:none}body[data-scene=garden]{--scene:url('./assets/garden.svg')}body[data-scene=seaside]{--scene:url('./assets/seaside.svg')}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #c6873e;outline-offset:4px}button{border:0}.topbar{max-width:1160px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:28px 38px 12px;gap:10px}.brand{text-decoration:none;color:#4d7169;font-family:Georgia,serif;font-weight:bold;letter-spacing:.15em;font-size:25px}.brand span{display:inline-block;font-family:system-ui,sans-serif;font-size:12px;font-weight:400;letter-spacing:.16em;border-left:1px solid #b7b59e;margin-left:17px;padding-left:17px;color:var(--muted)}.header-actions{display:flex;gap:8px;align-items:center}.icon-button{width:40px;height:40px;background:#fff9edc9;border:1px solid #dcd3bc;border-radius:50%;display:grid;place-items:center;color:var(--teal);position:relative}.icon-button svg{width:21px;height:21px}.icon-button[aria-pressed=true]:after{content:'';width:25px;height:1.6px;transform:rotate(-45deg);background:var(--teal);position:absolute}.text-button{padding:9px 12px;background:none;font-size:13px;color:var(--muted)}[hidden]{display:none!important}#app{max-width:1100px;margin:0 auto;padding:0 32px;min-height:calc(100svh - 160px)}.eyebrow{font-size:12px;letter-spacing:.21em;color:#957a54;margin:0 0 18px}.hero{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;min-height:640px;gap:30px;padding:20px 25px}.hero h1{font-size:clamp(45px,5.5vw,70px);font-weight:650;line-height:1.2;letter-spacing:.03em;margin:0 0 24px}.hero .description{font-size:16px;line-height:1.9;max-width:405px;color:#7b715f}.cat{background:url('./assets/xiaoju-expressions-v2.webp') 0 0/300% 200%;width:100%;aspect-ratio:1;filter:drop-shadow(0 15px 12px #9d765519);flex-shrink:0}.cat[data-mood=thinking]{background-position:50% 0}.cat[data-mood=surprise]{background-position:100% 0}.cat[data-mood=sad]{background-position:0 100%;transform:translateY(5.7%)}.cat[data-mood=celebrate]{background-position:50% 100%;transform:translateY(5.7%)}.hero-art{position:relative}.hero-art .cat{max-width:440px;margin:auto;animation:breathe 5s ease-in-out infinite}.little-note{text-align:center;color:#9c8162;letter-spacing:.12em;font-size:12px;margin-top:-15px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:20px;background:var(--teal);color:#fffdf5;padding:15px 28px;border-radius:40px;box-shadow:0 6px 0 #41665d17;min-height:48px;min-width:155px;font-size:15px}.primary:hover{background:#456c63}.primary svg{width:20px;height:20px}.secondary{background:transparent;border:1px solid #c6bca3;padding:12px 24px;border-radius:32px;min-height:46px;font-size:14px}.hero-actions{display:flex;gap:14px;margin:30px 0 20px;flex-wrap:wrap}.fineprint{font-size:12px;color:#99866e;line-height:1.8}.page-footer{font-size:10px;letter-spacing:.18em;display:flex;justify-content:space-between;max-width:1100px;margin:0 auto;padding:20px 32px 24px;color:#8d836f}.page-footer span{letter-spacing:.08em}.collection{display:flex;gap:18px;flex-wrap:wrap;margin-top:25px;color:#8c7c64;font-size:12px}.collection span{display:flex;gap:7px;align-items:center}.collection svg{width:23px;height:23px}.level-page{max-width:830px;margin:auto;padding:28px 0}.level-page h1{font-size:34px;margin:0 0 12px}.scene-section{padding:25px 0;border-bottom:1px solid #d7cdb7}.scene-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.scene-heading h2{font-size:18px;font-weight:550;margin:0}.scene-heading span{font-size:12px;color:var(--muted)}.level-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.level-button{background:#fff9ebb8;border:1px solid #d9cdb3;border-radius:18px;padding:15px 8px;text-align:left;min-height:99px;position:relative}.level-button:hover:not(:disabled){background:#fffdf1;transform:translateY(-2px)}.level-button .level-number{display:block;font-family:Georgia,serif;font-size:30px;color:var(--teal);margin-bottom:6px}.level-button .level-name{font-size:12px;color:#7b6c56}.level-button .stars{float:right;font-size:11px;letter-spacing:2px;color:#c18d45}.level-button:disabled{opacity:.45}.select-footer{display:flex;justify-content:space-between;padding-top:24px}.game-heading{text-align:center;margin:12px 0 20px}.game-heading h1{font-size:28px;font-weight:600;margin:4px 0 7px;letter-spacing:.07em}.game-heading p{font-size:12px;color:var(--muted);margin:0}.game-layout{display:grid;grid-template-columns:minmax(320px,490px) 280px;justify-content:center;align-items:center;gap:50px}.board-shell{position:relative;background:#fff7e6d9;border:1px solid #ccb995;border-radius:25px;padding:16px;box-shadow:0 14px 36px #8865341a,0 3px 0 #ba9d742b}.goalbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:62px;padding:0 4px 12px}.goals{display:flex;gap:12px;flex-wrap:wrap}.goal{display:grid;grid-template-columns:34px auto;grid-template-rows:18px 18px;align-items:center;column-gap:4px}.goal svg{grid-row:span 2;width:34px;height:34px}.goal b{font-size:14px;font-weight:600;white-space:nowrap}.goal small{font-size:10px;color:var(--muted)}.goal.done b{color:var(--teal)}.steps{padding-left:14px;border-left:1px solid #d8cab0;min-width:51px;text-align:center}.steps strong{font-family:Georgia,serif;font-size:28px;line-height:1;display:block;color:#916339}.steps small{font-size:10px;color:var(--muted)}.board{width:100%;aspect-ratio:1;position:relative;display:grid;grid-template-columns:repeat(8,1fr);gap:3px;padding:4px;background:#d8c7a7;border-radius:14px;touch-action:pinch-zoom;user-select:none;-webkit-user-select:none;overflow:hidden}.tile{padding:3px;display:grid;place-items:center;background:linear-gradient(145deg,#fff9e9,#f3e9d3);box-shadow:0 2px 0 #baa78478,inset 0 1px 0 #fff;border-radius:9px;aspect-ratio:1;min-width:0;position:relative;transition:background .12s}.tile svg{width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 2px 1px #80643e24)}.tile.selected{outline:3px solid #5c958a;outline-offset:-3px;background:#e2ece0;z-index:1}.tile.hinted{box-shadow:inset 0 0 0 2px #c89543;animation:hint 1.1s ease-in-out 2}.tile.gap{background:transparent;box-shadow:none;pointer-events:none}.tile.pop svg{animation:pop .2s ease-in forwards}.board-help{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:13px 4px 0;color:#8f7d61;font-size:11px}.board-help button{background:none;color:var(--teal);padding:3px 0;font-size:11px;min-height:26px}.companion{align-self:center;text-align:center}.companion .cat{width:265px;margin:auto}.bubble{background:#fffaeed4;border:1px solid #d9cdb2;border-radius:19px;padding:16px 14px;font-size:14px;line-height:1.65;position:relative;max-width:270px;margin:0 auto;color:#7a674d}.bubble:before{content:'';position:absolute;left:50%;top:-6px;width:10px;height:10px;transform:rotate(45deg);background:#fffaee;border-top:1px solid #d9cdb2;border-left:1px solid #d9cdb2}.scene-progress{font-size:11px;letter-spacing:.12em;color:#a38b6b;margin-top:15px}.score-line{font-size:11px;color:#967d5b;margin-top:8px}dialog{border:1px solid #d9c7a4;border-radius:26px;background:#fff9eb;color:var(--ink);width:min(90vw,430px);padding:28px 28px 26px;max-height:90svh;overflow:auto;box-shadow:0 22px 65px #49381c2e;text-align:center}dialog::backdrop{background:#5d51314d;backdrop-filter:blur(4px)}dialog h2{font-size:28px;margin:6px 0 14px}dialog p{font-size:14px;line-height:1.8;color:#827056;margin:12px 0}dialog .cat{width:155px;margin:-8px auto -2px}dialog .dialog-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}dialog .primary,dialog .secondary{min-width:125px;padding:12px 20px}.tutorial-example{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 0 16px}.tutorial-example svg{width:50px;height:50px;padding:5px;background:#f0e3ca;border-radius:12px}.tutorial-example span{color:#ba8e52;font-size:23px}.result-stars{color:#c69448;font-size:30px;letter-spacing:8px}.reward-note{border-top:1px solid #e1d3b9;padding-top:15px!important}.toast{position:fixed;left:50%;bottom:55px;transform:translateX(-50%);font-size:13px;color:white;background:#526e60ed;border-radius:25px;padding:10px 20px;opacity:0;pointer-events:none;max-width:90vw;z-index:5;transition:opacity .15s;text-align:center}.toast.show{opacity:1}.storage-warning{background:#fff0cb;color:#886834;font-size:12px;line-height:1.6;max-width:950px;padding:9px 18px;margin:10px auto;border-radius:8px}.ending{max-width:620px;margin:auto;text-align:center;padding:15px 0 40px}.ending .cat{max-width:275px;margin:auto}.ending h1{font-size:36px;margin:0 0 15px}.ending p{line-height:1.8;color:#827157}.ending .collection{justify-content:center}.ending .hero-actions{justify-content:center}@keyframes pop{to{opacity:0;transform:scale(.35) rotate(9deg)}}@keyframes breathe{50%{transform:translateY(-5px)}}@keyframes hint{50%{background:#eee0ab}}@media(min-width:1100px) and (min-height:850px){.game-heading{margin-top:28px;margin-bottom:32px}.game-layout{grid-template-columns:510px 300px;gap:65px}.companion .cat{width:300px}}
@media(max-width:767px){.topbar{padding:18px 20px 8px}.brand{font-size:21px}.brand span{font-size:10px;margin-left:11px;padding-left:11px}.header-actions{gap:3px}.icon-button{width:35px;height:35px}.text-button{font-size:11px;padding:8px}#app{padding:0 16px;min-height:calc(100svh - 130px)}.hero{grid-template-columns:1fr;gap:0;min-height:0;padding:14px 4px 25px;text-align:center}.hero-art{order:-1}.hero-art .cat{max-width:275px}.little-note{display:none}.hero h1{font-size:44px;margin-bottom:15px}.hero .description{font-size:14px;margin:auto;max-width:340px}.hero .eyebrow{font-size:10px;margin-bottom:13px}.hero-actions{justify-content:center;margin:24px 0 16px;gap:10px}.hero-actions .primary,.hero-actions .secondary{min-width:130px;padding:13px 20px}.collection{justify-content:center;gap:13px;margin-top:20px}.fineprint{font-size:10px}.page-footer{padding:18px 20px;font-size:8px}.game-heading{margin:10px 0 12px}.game-heading h1{font-size:22px}.game-heading .eyebrow{font-size:10px;margin:0}.game-layout{display:flex;flex-direction:column;gap:12px}.board-shell{width:min(100%,480px);padding:11px;border-radius:20px}.goalbar{padding-bottom:8px;min-height:52px}.goals{gap:8px}.goal{grid-template-columns:27px auto;grid-template-rows:15px 15px;column-gap:1px}.goal svg{width:27px;height:27px}.goal b{font-size:11px}.goal small{font-size:8px}.steps{min-width:38px;padding-left:9px}.steps strong{font-size:25px}.board{gap:2px;padding:3px;border-radius:10px}.tile{border-radius:7px;padding:2px}.board-help{font-size:9px;padding-top:8px}.board-help button{font-size:10px}.companion{display:flex;align-items:center;gap:11px;width:min(100%,460px);text-align:left;min-height:66px;padding:0 4px}.companion .cat{width:80px;margin:0;order:2}.companion .bubble{font-size:12px;line-height:1.5;padding:11px 14px;flex:1;max-width:none;margin:0}.bubble:before{top:50%;left:auto;right:-6px;transform:rotate(135deg)}.scene-progress,.score-line{display:none}.level-page{padding-top:25px}.level-page h1{font-size:29px}.scene-section{padding:21px 0}.level-row{gap:8px}.level-button{min-height:94px;padding:12px 8px;border-radius:13px}.level-button .level-number{font-size:26px}.level-button .level-name{font-size:10px;line-height:1.5;display:block}.level-button .stars{font-size:8px;letter-spacing:0}.scene-heading h2{font-size:16px}.scene-heading span{font-size:10px}.ending{padding-top:10px}.ending h1{font-size:29px}.ending p{font-size:14px}.storage-warning{margin:8px 16px}.toast{bottom:25px;font-size:11px}dialog{padding:23px}dialog h2{font-size:25px}}
@media(max-height:520px) and (min-width:600px){.topbar{padding-top:8px}#app{min-height:0}.game-heading{margin:0 0 8px}.game-heading h1{font-size:19px}.game-layout{display:grid;grid-template-columns:310px 200px;gap:30px}.board-shell{padding:10px}.goalbar{min-height:42px}.goal{grid-template-columns:26px auto;grid-template-rows:14px 14px}.goal svg{width:26px;height:26px}.goal b{font-size:10px}.goal small{font-size:8px}.companion{display:block;width:auto}.companion .cat{width:160px;margin:auto}.companion .bubble{font-size:11px;max-width:190px}.page-footer{padding-top:8px}.hero{min-height:0;grid-template-columns:1fr 1fr;text-align:left}.hero-art{order:0}.hero-art .cat{max-width:235px}.hero h1{font-size:35px}.hero-actions{justify-content:flex-start}.hero .description{font-size:12px}.hero .eyebrow{font-size:9px}.collection{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-height:520px) and (min-width:600px){.topbar{padding:6px 24px 3px;height:44px}.brand{font-size:20px}.brand span{font-size:10px}.icon-button{width:32px;height:32px}.game-heading{margin:0 0 7px}.game-heading .eyebrow{font-size:9px;margin:0}.game-heading h1{font-size:17px;margin:3px 0}.game-heading>p:last-child{display:none}.game-layout{grid-template-columns:min(310px,calc(100svh - 160px)) 200px;gap:24px}.board-shell{padding:8px;border-radius:16px}.goalbar{min-height:32px;padding-bottom:6px;gap:5px}.goals{gap:4px}.goal{grid-template-columns:23px auto;column-gap:0}.goal svg{width:23px;height:23px}.goal b{font-size:9px}.goal small{font-size:7px}.steps{min-width:28px;padding-left:6px}.steps strong{font-size:22px}.board{gap:2px;padding:3px}.tile{padding:1px;border-radius:6px}.board-help{padding-top:5px;font-size:8px}.board-help button{font-size:8px;min-height:20px}.companion .cat{width:145px}.companion .bubble{font-size:11px;padding:10px}.scene-progress{margin:8px 0}.score-line{margin:0}.page-footer{padding:8px 24px}}

