@charset "UTF-8";
:root{--ink:#374c3c;--muted:#89937a;--cream:#fff8e6;--paper:#f3eddb;--orange:#ed8850;--gold:#edb958;--green:#8aaa70;--font:"Microsoft YaHei UI","PingFang SC",sans-serif;--display:"Microsoft YaHei","PingFang SC",sans-serif;--mono:"Bahnschrift","Consolas",monospace}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:var(--font);color:var(--ink)}body{background:#eeeedf;background-image:radial-gradient(#7480600e 1px,transparent 1px);background-size:7px 7px;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible{outline:3px solid #ec9254;outline-offset:3px}button:not(:disabled):active{transform:translateY(2px)}[hidden]{display:none!important}.desktop-layout{min-height:100dvh;max-width:1550px;margin:auto;display:grid;grid-template-columns:minmax(260px,1fr) 430px minmax(230px,.8fr);gap:48px;align-items:center;padding:26px 48px}.desktop-story{align-self:stretch;display:flex;flex-direction:column;position:relative;min-width:0}.wordmark{font-size:19px;font-weight:900;letter-spacing:1px;color:inherit;text-decoration:none;display:block;padding-top:13px}.wordmark small{display:block;font:8px var(--mono);letter-spacing:4px;padding-left:34px;margin-top:7px}.tiny-wok{display:inline-block;font-size:29px;line-height:24px;margin-right:9px;transform:rotate(-12deg)}.story-copy{margin-top:auto;padding-top:65px;position:relative;z-index:1}.story-copy h1{font-family:var(--display);font-size:clamp(43px,4.1vw,66px);font-weight:900;line-height:1.28;letter-spacing:-4px;margin:20px 0 20px}.story-copy h1 span{color:#da8250}.story-star{display:flex;align-items:center;gap:10px;color:#dcad4d;margin-top:20px;font-size:26px}.story-star span{font-family:"KaiTi","STKaiti",serif;font-size:18px;color:#687960;transform:rotate(-3deg)}#poster-canvas{display:block;width:120%;margin-left:-10%;height:auto;margin-top:-6px;margin-bottom:-30px;aspect-ratio:650/540}.story-bottom{font-size:9px;color:#a1a88e;display:flex;justify-content:space-between;padding-top:18px;border-top:1px solid #d9decc;margin-top:auto}.phone{background:#fffbed;border:2px solid #fffdf5;border-radius:36px;padding:8px;box-shadow:0 28px 65px #4a523026,0 5px 8px #46542a0b,0 0 0 1px #dbdccd;position:relative;width:430px;height:min(890px,calc(100dvh - 52px));min-height:650px;align-self:center}.phone:before{content:"";position:absolute;width:3px;height:42px;border-radius:3px;background:#b7beac;left:-5px;top:140px}.phone:after{content:"";position:absolute;width:3px;height:66px;border-radius:3px;background:#b7beac;right:-5px;top:175px}.phone-screen{height:100%;position:relative;overflow:hidden;border-radius:28px;background:var(--cream);display:flex;flex-direction:column}.app-top{height:63px;padding:11px 14px 5px;display:flex;align-items:center;justify-content:space-between;flex:none}.icon-button{min-width:44px;min-height:44px;border:0;background:transparent;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:5px}.icon-button:hover{background:#e9e8d3}.icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.app-logo{font-size:17px;font-weight:900;letter-spacing:1px;text-align:center}.app-logo small{font-size:8px;display:block;font-weight:400;letter-spacing:2px;color:#9c9b7f;margin-top:5px}.star-wallet{display:flex;align-items:center;gap:5px;background:#f4e6bd;border:1px solid #e9d7a4;box-shadow:0 2px 0 #e8d8b1;border-radius:17px;height:33px;min-height:44px;padding:0 11px}.star-wallet span{color:#d59c39;font-size:17px}.star-wallet b{font:17px var(--mono)}.star-wallet small{font:10px var(--mono);color:#a49876}.play-screen{display:flex;flex-direction:column;min-height:0;flex:1}.dish-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px 10px;flex:none}.dish-heading>span{display:block;color:#a59d7c;font-size:9px;letter-spacing:1px}.dish-heading h2{font-size:25px;letter-spacing:-1px;margin:5px 0 0;font-weight:900}.level-best{font-size:23px;letter-spacing:2px;color:#d6a248;text-shadow:0 1px #fff}.recipe-tray{margin:0 15px 9px;display:flex;align-items:center;gap:9px;min-height:68px;flex:none;background:#fffcf2;border:1px solid #e8dfc4;border-radius:13px;padding:7px 10px;box-shadow:0 3px 0 #e8dec12e}.tray-label{font-size:9px;line-height:1.7;color:#a69c7e;border-right:1px dashed #ded6b9;padding-right:10px;white-space:nowrap}.tray-label b{color:#6c7b5a;font-size:11px}.recipe-list{display:flex;flex:1;align-items:center;justify-content:space-around;gap:6px}.recipe-item{display:flex;align-items:center;gap:4px}.recipe-item .recipe-icon{width:32px;height:37px;flex:none}.recipe-item strong{font:13px var(--mono);display:block}.recipe-item strong small{font:10px var(--mono);color:#b3ac90}.recipe-item .food-name{display:block;font-size:8px;color:#8b9477;margin-top:3px}.recipe-item.done strong{color:#86a958}.recipe-total{padding-left:8px;border-left:1px dashed #ded6b9;text-align:center}.recipe-total b{font:13px var(--mono)}.recipe-total small{display:block;font-size:8px;margin-top:4px;color:#aca385}.hud{display:flex;align-items:center;justify-content:space-between;padding:1px 22px 10px;gap:15px;flex:none}.hud>div>span{font-size:8px;color:#9b9b7d;display:block;margin-bottom:5px}.flavor-stat{width:100px}.flavor-stat>span>b{float:right;font:12px var(--mono);color:#718b57}.flavor-track{height:6px;background:#e4e3c8;border-radius:9px;overflow:hidden}.flavor-track i{display:block;height:100%;background:#92b46c;border-radius:9px;transition:width .2s}.combo-stat{text-align:center}.combo-stat>b,.time-stat>b{font:20px var(--mono);line-height:1}.combo-stat em{font-style:normal}.combo-stat small{font:8px var(--font);color:#a29c80}.time-stat{text-align:right}.time-stat.urgent>b{color:#d8754c}.stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#e8dfbd;border-top:1px solid #e1d9b9;border-bottom:1px solid #e1d9b9;isolation:isolate}#game-canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px;cursor:crosshair;user-select:none;-webkit-user-select:none}.ready-card{position:absolute;z-index:7;left:19px;right:19px;bottom:17px;background:#fffbee;background-image:url('assets/mat.png');background-size:128px;background-blend-mode:multiply;border:1px solid #fffdf5;border-radius:20px;padding:20px 19px 17px;box-shadow:0 9px 0 #cfc7a566,0 15px 24px #79714016;text-align:center}.ready-hat{position:absolute;top:-17px;left:calc(50% - 21px);height:34px;width:42px;border-radius:13px;background:#f6d795;color:#b88843;line-height:30px;font-size:25px;border:3px solid #fffbee}.mini-label{font:8px var(--mono);letter-spacing:1.7px;color:#9d9d7e}.ready-card h3{font-size:23px;letter-spacing:-1px;margin:8px 0 6px;font-weight:900}#ready-demo{display:block;width:100%;height:auto;margin:10px 0 13px;border-radius:12px;background:#f1f0dc}.hud .hud-ico svg{display:inline-block;width:17px;height:17px;vertical-align:-4px}#foe-reveal-style{display:inline-flex;align-items:center;gap:5px}.primary-button{background:linear-gradient(#f39a61,#ea8550);color:#fffdf1;border:1px solid #ec8e57;border-radius:12px;padding:13px 18px;font-size:15px;font-weight:800;min-height:48px;box-shadow:0 4px 0 #bd683d,0 6px 7px #ab603917;width:100%;text-shadow:0 1px #b86a3970}.primary-button:hover{filter:brightness(1.04)}.primary-button>span{float:right;font-size:20px}.bottom-controls{padding:10px 16px 9px;display:flex;align-items:center;gap:12px;flex:none}.chill-button{display:flex;align-items:center;gap:9px;flex:1;border:1px solid #d2dfbd;background:linear-gradient(#edf4e3,#e0ecd2);border-radius:13px;box-shadow:0 3px 0 #becda9;min-height:52px;padding:6px 14px;text-align:left}.chill-button>span{font-size:28px;color:#8cad96}.chill-button b{font-size:12px;font-weight:700}.chill-button small{display:block;font-size:8px;color:#8a9c77;font-weight:400;margin-top:4px}.chill-button.spice{border-color:#e6c6a8;background:linear-gradient(#fbeee0,#f4dfc9);box-shadow:0 3px 0 #d7bda3}.chill-button.spice>span{color:#d3854c}.chill-button.spice small{color:#a8845f}.bottom-controls .icon-button{width:46px}.bottom-controls .icon-button>span{font-size:20px;color:#809069;height:24px}.bottom-controls .icon-button small{font-size:8px;color:#9e9e80;margin-top:4px}.phone-home{flex:none;height:9px;position:relative}.phone-home:after{content:"";position:absolute;bottom:3px;left:calc(50% - 43px);height:3px;border-radius:5px;width:86px;background:#d8d7bd}.desktop-guide{max-width:280px}.guide-heading{font-size:12px;letter-spacing:2px;padding-bottom:20px;border-bottom:1px solid #d4dbc6;display:flex;justify-content:space-between}.guide-heading>span{font:10px var(--mono);color:#adb397;letter-spacing:1px}.guide-note{position:relative;padding:22px 0 17px;border-bottom:1px solid #d4dbc6}.note-number{font:9px var(--mono);letter-spacing:2px;color:#a8ae91}.guide-note h3{font-size:15px;font-weight:700;letter-spacing:-.4px;margin:10px 0}.guide-note ul{list-style:none;padding:0;margin:12px 0 9px;font-size:10px;color:#8a9978;line-height:2.5}.guide-note li b{color:#d5a552;display:inline-block;width:44px;letter-spacing:1px}.guide-note>small{font-size:8px;color:#a0a78e}.guide-anim{display:block;width:100%;max-width:260px;height:auto;margin-top:10px}.combo-popup{position:absolute;top:17%;left:10px;right:10px;text-align:center;pointer-events:none;z-index:6;transform:rotate(-5deg);color:#c67938;text-shadow:2px 2px #fff9d7,-1px -1px #fff9d7}.combo-popup b{font-size:29px;font-weight:900;letter-spacing:-1px}.combo-popup span{display:block;font:11px var(--mono);letter-spacing:2px;margin-top:4px}.chill-wash{position:absolute;inset:0;pointer-events:none;background:#b5e7ee12;box-shadow:inset 0 0 55px #95d9d482;border:3px solid #c7e4d394}.spice-wash{position:absolute;inset:0;pointer-events:none;background:#ffb87014;box-shadow:inset 0 0 62px #ff9440a8;border:3px solid #eab98c9c}.combo-stat.has-goal em{color:#d98a52}.combo-stat.goal-met em{color:#5f8a3f}
@media(max-width:420px){.chill-button small{display:none}.chill-button>span{font-size:22px}.bottom-controls{gap:7px}}.map-screen{flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;padding:15px 18px 18px;background:radial-gradient(ellipse at top,#fff8df,#f4efd8)}
/* 菜品图鉴：30 道菜收集册。通关即收录，三星点亮金边，未通关是灰剪影。 */
.book-entry{margin-top:13px;display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:1.5px solid #3a3a2e;border-radius:999px;background:#fffdf2;font-weight:700;font-size:12px;cursor:pointer;transition:.15s}
.book-entry b{color:#c08b28}
.book-entry:hover{background:#3a3a2e;color:#fffdf2}
.book-entry:hover b{color:#ffd876}
.dish-book{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:9px;padding:4px 0 12px}
.book-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 5px 7px;border:1.5px solid #e4dcc0;border-radius:15px;background:#fbf8ec;cursor:pointer;transition:.15s;box-shadow:0 2px 0 #e0d8bc}
.book-card:hover{transform:translateY(-2px);box-shadow:0 4px 0 #e0d8bc}
.book-card img{width:58px;height:58px;object-fit:contain;pointer-events:none}
.book-card b{font-size:10.5px;font-weight:700;color:#4a4a3a;line-height:1.25;text-align:center}
.book-card .book-stars{font-size:10px;letter-spacing:1.5px;color:#c9a227}
.book-card:not(.owned){background:#f4f2e6;border-style:dashed;box-shadow:none}
.book-card:not(.owned) img{filter:grayscale(1) opacity(.22)}
.book-card:not(.owned) b{color:#adaa96;font-weight:400}
.book-card:not(.owned) .book-stars{color:#c6c3b0;letter-spacing:2px}
.map-title{text-align:center}.map-title h2{font-size:27px;font-weight:900;letter-spacing:-1px;margin:9px 0}.map-title>p{font-size:9px;color:#a29b7c;line-height:1.8}.collection-meter{background:#ece8cc;border:1px solid #e0dbb9;border-radius:12px;padding:10px 13px;margin:17px 0 19px;font-size:9px;text-align:left;color:#92946f}.collection-meter b{float:right;font:12px var(--mono);color:#a4813c}.collection-meter>div{height:5px;margin-top:9px;border-radius:5px;background:#ddd9b5;overflow:hidden}.collection-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#dfab52,#f2c568);border-radius:5px}.chapter-label{font-size:9px;color:#7e8e68;display:flex;justify-content:space-between;padding:0 3px 10px}.chapter-label span:last-child{font-size:8px;color:#aaa482}.level-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 11px}.level-card{border:1px solid #e5ddbc;background:#fffbee;border-radius:17px;min-height:149px;padding:10px 10px 11px;box-shadow:0 4px 0 #e1d9b776;position:relative;text-align:center;overflow:hidden}.level-card:hover:not([data-locked=true]){border-color:#c9b37f;background:#fffdf5}.level-card.current{border:2px solid #e6ac64;padding:9px 9px 10px}.level-number{position:absolute;top:9px;left:10px;font:9px var(--mono);color:#a79c76}.level-card .dish-art{width:124px;height:71px;display:block;margin:0 auto}.level-card h3{font-size:13px;font-weight:800;margin:2px 0 6px}.level-card.locked{background:#ecebda;box-shadow:0 3px 0 #d7dbc760;border-color:#d9ddc5}.level-card.locked canvas{filter:grayscale(.75);opacity:.45}.level-card.locked h3{color:#9da58c}.level-card small{display:block;font-size:7px;color:#a2a58b;margin-top:5px}.map-back{background:none;border:0;width:100%;padding:9px;min-height:44px;font-size:10px;color:#8b9874}.screen-modal{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;background:#38493569;backdrop-filter:blur(7px);overflow:auto;overscroll-behavior:contain}.modal-card{width:100%;max-width:352px;background:#fff9e8;background-image:url('assets/mat.png');background-size:128px;background-blend-mode:multiply;border:2px solid #fffcf1;border-radius:24px;box-shadow:0 8px 0 #50543f20,0 20px 35px #23311e2b;padding:26px 22px 20px;text-align:center;position:relative;margin:auto}.modal-card .modal-icon{height:45px;font-size:39px;color:#91a47a;margin-bottom:12px}.modal-card h2{font-size:25px;letter-spacing:-1px;font-weight:900;margin:9px 0}.modal-card p{font-size:10px;line-height:1.9;color:#979c7e;margin:10px 0 20px}.secondary-button{border:1px solid #dddcc0;border-radius:11px;background:#efefdc;font-size:11px;padding:11px 13px;min-height:44px;width:100%;margin-top:12px;color:#7d8d67}.text-button{font-size:10px;color:#99a081;border:0;background:none;padding:12px;width:100%;min-height:44px;margin-top:4px}.result-stars{margin:11px 0 4px}.result-star{width:44px;height:44px;margin:0 4px;display:inline-block;vertical-align:middle}.result-star.empty{opacity:.55}.score-bars{display:grid;gap:8px;margin:12px 0}.score-bar{display:grid;grid-template-columns:34px 1fr 40px 30px;align-items:center;gap:8px;font-size:11px}.score-bar>div{height:10px;border-radius:6px;background:#e7dfc2;overflow:hidden}.score-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#eeb958,#e8854f)}.score-bar b{font:12px var(--mono)}.score-bar small{font-size:9px;color:#a8aa8b}.star-conds{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:8px 0}.star-conds i{font-style:normal;font-size:10px;padding:4px 8px;border-radius:8px;background:#eee6c8;color:#a39a78}.star-conds i.ok{background:#e5efd2;color:#6d824c}.lose-reason{font-size:10px;color:#a3836b;margin:6px 0}.rating-number{font:56px/1 var(--mono);letter-spacing:-2px;color:#496342;margin:16px 0 6px}.rating-number small{font:12px var(--mono);color:#a8aa8b;letter-spacing:0;margin-left:6px}.rating-label{font-size:9px;color:#9da481;letter-spacing:2px}.unlock-celebration{font-size:10px;color:#7f9d57;margin:10px 0}.shake{animation:shake .21s ease-out}@keyframes shake{20%,70%{transform:translateX(-3px)}40%,90%{transform:translateX(3px)}}
@media(max-width:1250px){.desktop-layout{grid-template-columns:minmax(210px,1fr) 410px minmax(190px,.8fr);gap:30px;padding:22px 30px}.phone{width:410px;height:calc(100dvh - 44px)}.story-copy h1{font-size:46px}.story-copy{padding-top:40px}.story-star span{font-size:15px}.desktop-guide .guide-note h3{font-size:13px}.guide-heading{font-size:11px;letter-spacing:1px}.story-bottom{font-size:8px;gap:10px}}
@media(max-width:1050px){.desktop-layout{grid-template-columns:minmax(220px,1fr) 410px;max-width:870px;gap:40px}.desktop-guide{display:none}.story-copy h1{font-size:48px}}
@media(min-width:701px) and (max-height:800px){.phone{min-height:610px}.app-top{height:55px}.dish-header{padding-top:7px;padding-bottom:8px}.dish-heading h2{font-size:22px}.recipe-tray{min-height:59px;margin-bottom:7px}.hud{padding-bottom:8px}.ready-card{padding:15px 17px 13px;bottom:15px}.ready-card h3{font-size:20px;margin:5px 0}.ready-card .mini-label{display:none}.bottom-controls{padding-top:8px;padding-bottom:7px}.story-copy{padding-top:25px}.story-copy h1{font-size:45px;margin-top:14px}.desktop-guide .guide-note{padding:16px 0 12px}.guide-heading{padding-bottom:16px}}
@media(max-width:700px){html,body{height:100%;overflow:hidden;background:var(--cream)}.desktop-layout{display:block;padding:0;width:100%;height:100dvh;min-height:0}.desktop-story,.desktop-guide{display:none}.phone{width:100%;height:100%;min-height:0;border:0;border-radius:0;padding:0;box-shadow:none}.phone:before,.phone:after{display:none}.phone-screen{border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.app-top{height:62px;padding:9px 13px 4px}.app-logo{font-size:16px}.dish-header{padding:9px 19px 10px}.dish-heading h2{font-size:25px}.recipe-tray{margin:0 13px 9px;min-height:65px}.hud{padding:1px 20px 9px}.phone-home{height:7px}.bottom-controls{padding:10px 15px 10px;gap:11px}.ready-card{left:21px;right:21px;bottom:21px}.ready-card h3{font-size:23px}.screen-modal{padding:19px}.map-screen{padding:16px 18px}.level-card{min-height:150px}.map-title h2{font-size:28px}}
@media(max-width:380px){.app-logo{font-size:15px}.app-top{height:55px}.dish-heading h2{font-size:22px}.dish-header{padding-top:7px;padding-bottom:9px}.recipe-tray{gap:6px;padding-left:8px;padding-right:8px;margin-bottom:7px;min-height:59px}.recipe-item{gap:2px}.recipe-item .recipe-icon{width:27px;height:33px}.recipe-item strong{font-size:12px}.recipe-item .food-name{font-size:7px}.tray-label{padding-right:7px;font-size:8px}.tray-label b{font-size:10px}.recipe-total{padding-left:5px}.recipe-list{gap:3px}.recipe-total b{font-size:11px}.flavor-stat{width:90px}.ready-card{left:15px;right:15px;padding:17px 14px 13px;bottom:14px}.ready-card h3{font-size:20px}.ready-card .mini-label{font-size:7px}.bottom-controls{padding:8px 12px;gap:8px}.chill-button{padding:6px 10px}.level-card .dish-art{width:112px}.map-screen{padding:12px 13px}.map-title h2{font-size:25px}.level-card{min-height:143px}.modal-card{padding:21px 17px 16px}.result-star{width:38px;height:38px}.rating-number{font-size:47px}}
@media(max-width:700px) and (max-height:740px){.app-top{height:51px}.app-logo small{display:none}.dish-header{padding:5px 17px 7px}.dish-heading h2{font-size:21px;margin-top:3px}.dish-heading>span{font-size:8px}.level-best{font-size:21px}.recipe-tray{min-height:53px;margin-bottom:6px;padding-top:4px;padding-bottom:4px}.recipe-item .recipe-icon{width:27px;height:31px}.hud{padding-bottom:7px}.hud>div>span{font-size:7px;margin-bottom:4px}.combo-stat>b,.time-stat>b{font-size:18px}.ready-card{padding:13px 14px 11px;bottom:13px}.ready-card>.mini-label,.ready-hat{display:none}.ready-card h3{font-size:19px;margin:2px 0 5px}.ready-card .primary-button{min-height:42px;padding:10px 16px;font-size:13px}.bottom-controls{padding-top:7px;padding-bottom:6px}.chill-button{min-height:47px}.phone-home{height:5px}.modal-card{padding:19px 18px 14px}.modal-card h2{font-size:22px}.result-star{width:38px;height:38px}.rating-number{font-size:45px;margin-top:10px}.modal-card p{margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Compact four-ingredient recipes keep every counter inside a thumb-sized screen. */
.four-ingredients .recipe-item{flex-direction:column;gap:0;text-align:center}.four-ingredients .recipe-item .recipe-icon{width:24px;height:26px}.four-ingredients .recipe-item .food-name{font-size:8px;margin-top:1px}.four-ingredients .recipe-item strong{font-size:11px;line-height:1.1}.recipe-item .food-name{color:#7d8966}.level-card h3{font-size:14px}.level-card small{font-size:8px}.map-title>p{font-size:10px}.hud>div>span{color:#868b69}.recipe-list.four-ingredients{gap:2px}

/* v0.4: Ten-level chapters; the map scrolls independently of the game. */
.chapter-tabs{display:flex;gap:7px;margin:0 0 16px;position:sticky;top:-16px;z-index:2;background:#f9f4df;padding:8px 0 9px}.chapter-tab{flex:1;min-width:0;min-height:49px;padding:7px 5px;border:1px solid #e0dabc;border-radius:11px;background:#efeed9;color:#8a9473}.chapter-tab b{display:block;font-size:12px}.chapter-tab small{display:block;font-size:8px;margin-top:5px}.chapter-tab.selected{background:#f5ddb0;border-color:#d9b978;color:#8c703e;box-shadow:0 2px 0 #d5b57a55}.chapter-tab.locked{color:#a3a18a}.chapter-status{border:1px solid #dddfbc;border-radius:11px;padding:11px 12px;margin:0 0 14px;background:#eef0d9;color:#7e9064;text-align:left}.chapter-status>b{display:block;font-size:11px;font-weight:500}.chapter-status>b span{float:right;color:#b48d3e}.chapter-status>small{display:block;font-size:9px;line-height:1.8;margin-top:6px}.chapter-status.locked{background:#eee7d1;border-color:#dfd3af;color:#9b8760}.chapter-status button{display:block;border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;color:#927542;font-size:10px;padding:10px 0 3px;min-height:44px}.level-card{min-height:138px}.map-title>p{font-size:10px}
@media(max-width:380px){.chapter-tab b{font-size:11px}.chapter-tab small{font-size:7px}.chapter-status{padding:9px 10px}.chapter-status>small{font-size:8px}.chapter-tabs{top:-12px}.level-card{min-height:136px}}
/* v0.5 visual-first pass: keep key actions, hide explanatory copy, enlarge visual cues. */
.map-title>p,.ready-card>.mini-label{display:none}
.ready-card{padding-top:17px}.ready-card h3{font-size:26px;margin:4px 0 10px}.hud>div>span{font-size:10px;font-weight:700}.hud>div>b{font-size:23px}.recipe-tray{min-height:74px}.recipe-item .recipe-icon{width:38px;height:42px}.recipe-item strong{font-size:16px}.recipe-item .food-name{font-size:9px}.recipe-total b{font-size:16px}.chapter-status>small{font-size:10px}.chapter-status>b{font-size:13px}.guide-note h3{font-size:19px}.story-bottom{font-size:10px}
@media(max-width:700px){.ready-card h3{font-size:24px}.recipe-tray{min-height:70px}.recipe-item .recipe-icon{width:35px;height:39px}.recipe-item strong{font-size:15px}.recipe-item .food-name{font-size:8px}.recipe-total b{font-size:15px}.map-title h2{font-size:31px}.chapter-tabs{margin-bottom:10px}.chapter-status{padding:10px 11px}.level-card .dish-art{width:132px;height:76px}.level-card h3{font-size:15px}}
@media(max-width:380px){.ready-card h3{font-size:22px}.recipe-tray{min-height:62px}.recipe-item .recipe-icon{width:30px;height:34px}.recipe-item strong{font-size:13px}.recipe-total b{font-size:13px}.level-card .dish-art{width:118px;height:68px}}
/* v0.6: visual first-appearance cards and chapter continuity. */
.chapter-emblem{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 auto 8px;color:#788d63}.chapter-emblem span{width:36px;height:36px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#f4d58f,#e7b96c);color:#fffdf1;font-size:22px;box-shadow:0 4px 0 #c59d58}.chapter-emblem b{font-size:13px;letter-spacing:1px}.chapter-emblem small{font:10px var(--mono);color:#a48f63;background:#f0e7c7;padding:4px 6px;border-radius:8px}.foe-reveal{position:absolute;z-index:8;top:16%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;min-width:174px;padding:8px 14px 8px 8px;background:linear-gradient(145deg,#fffdf2,#f4edcf);border:2px solid #fffdf3;border-radius:18px;box-shadow:0 10px 0 #796e3630,0 18px 28px #5b60332b;pointer-events:none;opacity:1}.foe-reveal-art{width:58px;height:58px;flex:none}.foe-reveal-copy{display:flex;flex-direction:column;gap:3px;line-height:1}.foe-reveal-copy span{font:9px var(--mono);letter-spacing:2px;color:#cb8050}.foe-reveal-copy strong{font-size:20px;color:#435941}.foe-reveal-copy small{font-size:10px;color:#a1784d}.foe-reveal-mark{position:absolute;right:8px;top:-10px;width:22px;height:22px;border-radius:50%;background:#d97c53;color:#fff;font:18px/20px var(--mono);font-style:normal;text-align:center;box-shadow:0 2px 0 #aa6042}.reveal-pop{animation:reveal-pop .28s cubic-bezier(.2,.8,.2,1)}@keyframes reveal-pop{0%{opacity:0;transform:translateX(-50%) translateY(-10px) scale(.82)}100%{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}
@media(max-width:700px){.chapter-emblem{margin-bottom:5px}.chapter-emblem span{width:32px;height:32px;font-size:19px}.chapter-emblem b{font-size:12px}.foe-reveal{top:13%;min-width:164px;padding:6px 12px 6px 6px}.foe-reveal-art{width:54px;height:54px}.foe-reveal-copy strong{font-size:18px}}
@media(max-width:380px){.chapter-emblem span{width:28px;height:28px;font-size:17px}.chapter-emblem b{font-size:11px}.chapter-emblem small{font-size:9px}.foe-reveal{top:11%;min-width:150px}.foe-reveal-copy strong{font-size:16px}}
.stage{background:linear-gradient(180deg,#e9e4c6 0%,#ddd5ad 100%);box-shadow:inset 0 18px 30px #6d71401c,inset 0 -20px 34px #555c3520}.stage:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;opacity:.34;background:radial-gradient(ellipse at 50% 42%,transparent 0 48%,#4b51372a 100%),linear-gradient(115deg,transparent 0 48%,#fff9da22 49% 50%,transparent 51%);mix-blend-mode:multiply}.stage:after{content:"";position:absolute;left:7%;right:7%;bottom:4%;height:18%;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse,#51604324,transparent 70%);filter:blur(10px);z-index:0}#game-canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px;cursor:crosshair;user-select:none;-webkit-user-select:none;background:transparent;position:relative;z-index:1}
#game-canvas:focus{outline:none}

/* v0.7 canvas renderer: boot loader + img-based icons */
.boot-loader{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:14px;background:#f3eddb;justify-items:center}
.boot-pot{font-size:44px;animation:boot-bob 1s ease-in-out infinite}
@keyframes boot-bob{50%{transform:translateY(-8px)}}
.boot-bar{width:150px;height:8px;border-radius:5px;background:#e0dabc;overflow:hidden}
.boot-bar i{display:block;height:100%;width:0;background:#8aaa70;transition:width .2s}
.recipe-icon{width:38px;height:42px;object-fit:contain}
.dish-art{width:100%;height:86px;object-fit:contain;display:block}
#foe-reveal-art{width:58px;height:58px;object-fit:contain}
.chapter-banner{width:100%;height:74px;object-fit:cover;border-radius:14px;margin-bottom:10px;display:block}
.card-stars{display:flex;justify-content:center;gap:3px}
.card-star{width:16px;height:16px}
.dish-art.locked{filter:brightness(.55) saturate(.4)}
.card-seal{position:absolute;inset:auto 10px 10px auto;width:30px;height:30px;border-radius:50%;background:#d9b978;color:#fff;display:grid;place-items:center;font-weight:700;box-shadow:0 2px 0 #a8865a;transform:rotate(-8deg)}
.card-seal i{display:grid;place-items:center;font-style:normal}
.card-seal svg{width:14px;height:14px;fill:#fff}
.level-card{position:relative;transition:transform .15s ease}
.level-card:not(.locked):hover{transform:translateY(-3px)}
.level-card:not(.locked):hover .dish-art{transform:scale(1.05)}
.dish-art{transition:transform .15s ease}
