@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&display=swap');
:root{--ink:#39291e;--brown:#68442a;--cream:#fff3d5;--paper:#f6e2b6;--orange:#d75b36;--green:#638b70;--gold:#e5b85b;--line:#87613a;--shadow:0 7px 0 rgba(73,46,28,.17)}*{box-sizing:border-box}body{margin:0;background:#f6edda;color:var(--ink);font-family:'Noto Serif SC',serif}.game-shell{min-height:100vh;max-width:1600px;margin:auto;padding:16px 22px 12px;background:radial-gradient(ellipse at top,#fff9e8,#ead5ad)}button{font:inherit;cursor:pointer;color:inherit}.topbar{height:64px;display:flex;align-items:center;gap:12px;padding:0 10px 12px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--orange);color:#fff5d9;border:3px solid var(--ink);border-radius:13px;font-weight:900;font-size:23px;box-shadow:3px 3px 0 var(--ink)}.eyebrow{font:700 10px/1.3 sans-serif;letter-spacing:.17em;color:#9a6c3c}.topbar strong{font-size:19px}.top-status{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700}.status-dot,.camera-dot{width:9px;height:9px;border-radius:50%;background:#6a9d69;box-shadow:0 0 0 4px #d6e2bd}.icon-btn{border:2px solid var(--brown);background:#fff0cc;border-radius:50%;width:34px;height:34px;font-weight:900}.scene{position:relative;min-height:min(76vh,760px);height:calc(100vh - 148px);max-height:820px;overflow:hidden;border:4px solid var(--ink);border-radius:22px;box-shadow:0 9px 0 #d5b887,inset 0 0 0 4px #f8dfaa;background:#f5dca8}.hidden{display:none!important}.street-scene{isolation:isolate;background:linear-gradient(#c9e0c7 0%,#f5dca8 54%,#d5a36a 55%,#bc8655 100%)}.sky-wash{position:absolute;inset:0 0 35%;background:radial-gradient(ellipse at 50% 38%,#fff5d2 0,#f2dca5 55%,transparent 80%)}.far-hills{position:absolute;left:0;right:0;top:24%;height:25%;background:linear-gradient(150deg,transparent 0 12%,#a7bf91 12% 24%,transparent 24% 30%,#7e9e79 30% 47%,transparent 47%),linear-gradient(20deg,transparent 0 20%,#b7c89a 20% 45%,transparent 45%);opacity:.8}.lantern{position:absolute;z-index:3;font-size:45px;filter:drop-shadow(2px 4px 0 #704126)}.lantern-a{top:8%;left:32%}.lantern-b{top:14%;right:10%}.mini-map{position:absolute;z-index:20;top:18px;left:18px;width:212px;padding:10px 12px 9px;background:#fff0ceeb;border:3px solid var(--ink);border-radius:13px;box-shadow:4px 4px 0 #a87b4d}.mini-map-title{font-size:13px;font-weight:900;display:flex;justify-content:space-between}.mini-map-title small{font:700 9px sans-serif;color:#a36d3c}.map-paper{height:82px;position:relative;margin:6px 0;background:#e7d4a8;border:1px solid #c4a575;border-radius:6px;overflow:hidden}.map-road{position:absolute;left:-10%;top:45%;width:120%;height:24px;background:#b98c5d;border:4px solid #e6c998;transform:rotate(-12deg);border-radius:50%}.map-river{position:absolute;left:56%;top:-20%;width:22px;height:150%;background:#8ab9b1;transform:rotate(23deg);border-radius:50%}.map-node{position:absolute;z-index:2;display:grid;place-items:center;width:22px;height:22px;background:#fff2d1;border:2px solid #68442a;border-radius:5px;font-size:11px;font-weight:900}.n1{left:14%;top:14%}.n2{left:40%;top:55%}.n3{left:65%;top:16%}.n4{right:10%;bottom:10%}.map-player{position:absolute;z-index:3;left:16%;top:70%;width:10px;height:10px;border-radius:50%;background:#d94c31;border:2px solid #fff4d7;box-shadow:0 0 0 3px #d94c3155;transition:left .3s}.map-legend{display:flex;justify-content:space-between;font-size:9px;color:#795a39}.street-sign{position:absolute;z-index:4;top:20px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;background:#f6d18c;border:3px solid var(--brown);border-radius:8px;padding:8px 18px;box-shadow:4px 4px 0 #a67b4d}.street-sign>span{font-size:27px;color:#b8432a;font-weight:900}.street-sign b{display:block;font-size:17px}.street-sign small{display:block;font-size:10px;color:#795537}.street-world{position:absolute;z-index:5;left:0;right:0;top:18%;height:47%;display:flex;align-items:flex-end;justify-content:space-evenly;gap:2.3%;padding:0 4%;transition:transform .45s ease}.shop{position:relative;width:21%;height:100%;min-width:140px;display:flex;flex-direction:column;align-items:center;filter:drop-shadow(4px 6px 0 #5d3a2b26);cursor:pointer;transition:transform .25s}.shop:hover,.shop.nearby{transform:translateY(-6px)}.shop.nearby .shop-sign{background:#ffe69b;box-shadow:0 0 0 4px #e8b44c88}.roof{position:relative;width:110%;height:27%;background:#b95334;border:4px solid #573625;border-radius:48% 48% 8px 8px/65% 65% 8px 8px;clip-path:polygon(9% 0,91% 0,100% 75%,83% 100%,17% 100%,0 75%);box-shadow:inset 0 8px #dc8652}.roof:after{content:'';position:absolute;bottom:10%;left:4%;right:4%;height:6px;background:#efb56c;border-radius:50%}.roof-teal{background:#4e8277;box-shadow:inset 0 8px #87b8a0}.roof-gold{background:#d59b3f;box-shadow:inset 0 8px #f1ca75}.roof-red{background:#b94d35}.shop-front{position:relative;flex:1;width:88%;background:#e9c48a;border:4px solid #573625;border-top:0;display:flex;flex-direction:column;align-items:center;padding:12px 8px 0;box-shadow:inset 8px 0 #f7dda8,inset -8px 0 #c89b62}.shop-sign{z-index:1;white-space:nowrap;padding:5px 11px;background:#f5dfaa;border:3px solid #68442a;border-radius:5px;font-weight:900;font-size:clamp(11px,1.2vw,16px);box-shadow:2px 3px 0 #815332;transition:.2s}.shop-window{position:relative;margin-top:10px;width:90%;height:55%;border:4px solid #573625;border-radius:7px;background:#f8e7bb;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(24px,4vw,48px)}.shop-window span{font-size:10px;font-weight:700;color:#6d4a2d}.meat-display{background:#edc69a}.fish-display{background:#c3ded0}.tofu-display{background:#f3e3ad}.spice-display{background:#f1c17c}.door{position:absolute;bottom:0;left:36%;width:29%;height:35%;background:#8d5435;border:4px solid #573625;border-bottom:0;border-radius:40% 40% 0 0}.door:after{content:'◦';position:absolute;right:8px;top:45%;color:#f0d08a}.shop-label{position:absolute;bottom:6px;font-size:10px;font-weight:900;color:#6c472b}.steps{height:12px;width:95%;background:#bb8953;border:3px solid #573625;border-top:0}.tree{position:absolute;font-size:52px;bottom:0;z-index:-1}.tree-one{left:-2%;}.tree-two{right:-2%}.street-ground{position:absolute;z-index:6;left:0;right:0;bottom:0;height:39%;background:linear-gradient(#c99a63,#e0b579 22%,#b77c4a 23%,#c18a56 100%);border-top:8px solid #79502f;clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}.paving{position:absolute;inset:8% 0 0;background:repeating-linear-gradient(0deg,transparent 0 44px,#855a3c44 45px 48px),repeating-linear-gradient(90deg,transparent 0 95px,#855a3c33 96px 99px);transform:perspective(220px) rotateX(9deg);transform-origin:top}.road-centerline{position:absolute;left:0;right:0;top:40%;height:2px;background:#f2d09a77}.player-wrap{position:absolute;z-index:12;left:50%;bottom:11%;width:76px;transform:translateX(-50%);transition:left .3s ease;pointer-events:none}.player{height:112px;position:relative;filter:drop-shadow(3px 5px 0 #57362544);animation:bob 1s ease-in-out infinite}.player-hat{position:absolute;z-index:4;top:1px;left:12px;width:52px;height:15px;background:#4c6f58;border:3px solid #3c3023;border-radius:50% 50% 5px 5px}.player-head{position:absolute;z-index:3;top:10px;left:20px;width:36px;height:35px;border:3px solid #39291e;border-radius:45% 45% 42% 42%;background:#f4c58f}.player-head:before,.player-head:after{content:'';position:absolute;top:14px;width:5px;height:6px;background:#39291e;border-radius:50%}.player-head:before{left:7px}.player-head:after{right:7px}.player-head i{position:absolute;bottom:3px;left:12px;width:8px;height:4px;border-bottom:2px solid #a94c32;border-radius:50%}.player-body{position:absolute;top:42px;left:13px;width:50px;height:43px;background:#d85b3c;border:3px solid #39291e;border-radius:12px 12px 6px 6px}.scarf{position:absolute;top:2px;left:4px;width:38px;height:8px;background:#e8bc56;border:2px solid #39291e;border-radius:4px}.player-arm{position:absolute;top:48px;width:13px;height:35px;background:#f1c18a;border:3px solid #39291e;border-radius:9px}.arm-left{left:3px;transform:rotate(13deg)}.arm-right{right:2px;transform:rotate(-13deg)}.player-leg{position:absolute;top:80px;width:17px;height:27px;background:#426c63;border:3px solid #39291e;border-radius:5px}.leg-left{left:19px}.leg-right{right:17px}.player-name{text-align:center;margin-top:1px;font-size:10px;font-weight:900;background:#fff0c8;border:2px solid #573625;border-radius:20px;padding:2px 7px;white-space:nowrap}.player-wrap.walking .player{animation:walk .35s linear infinite}@keyframes bob{50%{transform:translateY(-2px)}}@keyframes walk{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}.shop-prompt{position:absolute;z-index:22;right:22px;bottom:25%;width:220px;padding:15px;background:#fff1d1;border:3px solid var(--ink);border-radius:13px;box-shadow:5px 5px 0 #9e7147;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.shop-prompt.visible{opacity:1;transform:none;pointer-events:auto}.prompt-kicker{font-size:10px;color:#a66b3c;font-weight:900}.shop-prompt strong{display:block;font-size:20px;margin:3px 0}.shop-prompt small{display:block;color:#80603e;font-size:11px;margin-bottom:10px}.primary-btn{border:3px solid var(--ink);border-radius:8px;background:#d95a35;color:#fff4d6;padding:10px 16px;font-weight:900;box-shadow:3px 3px 0 var(--ink);transition:transform .15s,box-shadow .15s}.primary-btn:hover{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}.primary-btn span{margin-left:10px}.scene-caption{position:absolute;z-index:16;bottom:17px;left:20px;display:flex;gap:10px;align-items:center;padding:10px 14px;background:#fff0d8eF;border:2px solid #6c472d;border-radius:10px;box-shadow:3px 3px 0 #8e6138}.caption-pin{font-size:23px;color:#c85832}.scene-caption b,.scene-caption small{display:block}.scene-caption b{font-size:13px}.scene-caption small{font-size:10px;color:#80603e;margin-top:3px}.move-controls{position:absolute;z-index:17;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px}.round-control,.walk-control{border:3px solid var(--ink);background:#fff0cd;border-radius:12px;box-shadow:3px 3px 0 #805735;font-weight:900}.round-control{width:45px;height:45px;font-size:23px}.walk-control{height:48px;min-width:140px;background:#64866b;color:#fff4d7;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 15px}.walk-icon{font-size:20px}.round-control:active,.walk-control:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #805735}.cook-scene{background:linear-gradient(#c7d8c0 0%,#e8d2a1 44%,#c18d5a 44%,#a86f46 100%)}.kitchen-backdrop{position:absolute;inset:0 0 38%;background:linear-gradient(90deg,#d3ad76 0 9%,transparent 9% 91%,#c99a62 91%),linear-gradient(#d6c093,#f2dfb0);border-bottom:12px solid #79502f}.kitchen-window{position:absolute;top:8%;left:34%;width:32%;height:64%;border:9px solid #69452b;border-bottom-width:14px;background:#a6c5a0;box-shadow:inset 0 0 0 5px #f3d49c}.window-lattice{position:absolute;inset:0;background:linear-gradient(90deg,transparent 47%,#69452b 48% 52%,transparent 53%),linear-gradient(0deg,transparent 47%,#69452b 48% 52%,transparent 53%)}.window-view{position:absolute;bottom:5px;width:100%;text-align:center;font-size:11px;color:#4c7358}.hanging-herbs{position:absolute;top:8%;left:8%;font-size:31px;filter:drop-shadow(2px 3px #6e4b2e)}.shelf{position:absolute;top:24%;right:8%;display:flex;gap:8px}.shelf span{padding:17px 7px 6px;background:#b77e4d;border:3px solid #69452b;border-radius:5px;color:#fff0c9;font-size:10px}.cook-heading{position:absolute;z-index:5;top:18px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:flex-start}.cook-heading h1{margin:4px 0;font-size:clamp(22px,3vw,38px)}.cook-heading p{margin:0;font-size:12px;color:#6c5438}.back-btn,.secondary-btn{border:3px solid var(--ink);background:#fff0cd;border-radius:9px;padding:9px 13px;font-weight:900;box-shadow:3px 3px 0 #805735}.cook-counter{position:absolute;z-index:5;top:112px;left:27px;background:#fff0d9d9;border:2px solid #805735;border-radius:20px;padding:7px 13px;font-size:12px}.cook-counter b{color:#c84f31;font-size:17px}.cook-counter span{margin:0 5px}.first-person-view{position:absolute;inset:28% 0 0;overflow:hidden}.countertop{position:absolute;inset:40% -4% -5%;background:repeating-linear-gradient(0deg,#b67d4d 0 18px,#a86c41 19px 21px);border-top:10px solid #71472c;transform:perspective(320px) rotateX(3deg)}.pot-shadow{position:absolute;left:50%;top:23%;width:43%;height:65%;transform:translateX(-50%);background:#593b27;border-radius:50%;filter:blur(14px);opacity:.35}.wok{position:absolute;z-index:3;left:50%;top:15%;width:min(49vw,510px);height:66%;transform:translateX(-50%)}.wok-rim{position:absolute;z-index:4;top:0;left:0;right:0;height:24%;border:13px solid #37291f;background:#655044;border-radius:50%;box-shadow:inset 0 0 0 7px #b7a17b,0 7px 0 #37291f}.pot-content{position:absolute;z-index:5;top:6%;left:5%;right:5%;height:40%;overflow:hidden;border-radius:50%;background:radial-gradient(ellipse,#5d6e3e 0,#9d6d3e 45%,#46362a 75%);border:5px solid #a28a66}.pot-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#f7e4b6;font-size:13px;text-shadow:1px 2px #39291e}.wok-front{position:absolute;top:13%;left:1%;right:1%;height:70%;background:linear-gradient(90deg,#37302b,#685144 23%,#49372b 50%,#6a5140 76%,#302821);border:8px solid #37291f;border-top:0;border-radius:8% 8% 48% 48%/5% 5% 48% 48%;clip-path:polygon(0 0,100% 0,87% 68%,72% 93%,50% 100%,28% 93%,13% 68%)}.wok-handle{position:absolute;z-index:2;top:17%;width:27%;height:9%;background:#49382a;border:6px solid #2e241b;border-radius:25px}.handle-left{left:-21%;transform:rotate(12deg)}.handle-right{right:-21%;transform:rotate(-12deg)}.steam{position:absolute;bottom:20%;width:25px;height:55px;border-left:5px solid #fff0ccaa;border-radius:50%;animation:steam 2s infinite ease-in-out}.steam1{left:25%}.steam2{left:48%;animation-delay:.5s}.steam3{right:20%;animation-delay:1s}@keyframes steam{0%{transform:translateY(15px) scale(.8);opacity:0}50%{opacity:.8}100%{transform:translateY(-30px) scale(1.2);opacity:0}}.pot-item{position:absolute;z-index:2;font-size:clamp(18px,3vw,32px);filter:drop-shadow(1px 2px #39291e)}.hand{position:absolute;z-index:8;bottom:8%;font-size:clamp(48px,6vw,80px);filter:drop-shadow(3px 5px 0 #65432988)}.hand-left{left:16%;transform:rotate(-28deg)}.hand-right{right:15%;transform:rotate(-25deg)}.action-hint{position:absolute;z-index:9;bottom:8%;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff0d8e8;border:2px solid #69452b;border-radius:20px;padding:8px 13px;font-size:11px;font-weight:700}.ingredient-dock{position:absolute;z-index:12;bottom:0;left:0;right:0;padding:10px 17px 13px;background:#fff0d9f2;border-top:5px solid #654329;box-shadow:0 -7px 0 #e5bd78}.dock-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.dock-header strong{display:block;font-size:17px}.dock-note{font-size:10px;color:#84603d}.ingredient-cards{display:flex;gap:10px;overflow-x:auto;padding:3px 2px 8px}.ingredient-card{flex:1;min-width:105px;max-width:170px;display:flex;flex-direction:column;align-items:center;padding:6px 7px 8px;border:2px solid #b8996d;border-radius:9px;background:#fffae9;box-shadow:2px 3px 0 #b99b6e;transition:.15s}.ingredient-card img{width:100%;height:65px;object-fit:contain}.ingredient-card span{font-weight:900;font-size:12px}.ingredient-card small{font-size:9px;color:#98764b;margin-top:2px}.ingredient-card.selected{border:3px solid #c94f32;background:#ffe3ad;transform:translateY(-3px);box-shadow:2px 5px 0 #b94c30}.cook-actions{display:flex;justify-content:center;gap:10px;margin-top:2px}.cook-actions .primary-btn,.cook-actions .secondary-btn{padding:8px 14px;font-size:12px}.gesture-bar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 7px 0}.gesture-status{display:flex;align-items:center;gap:10px}.gesture-status b,.gesture-status small{display:block}.gesture-status b{font-size:12px}.gesture-status small{font-size:10px;color:#876748;margin-top:3px}.camera-dot{flex-shrink:0}.gesture-guide{display:flex;gap:13px;font-size:10px;color:#795a39}.gesture-guide span{display:flex;align-items:center;gap:4px}kbd{font:700 10px sans-serif;background:#fff1d0;border:1px solid #b99a6e;border-bottom-width:3px;border-radius:4px;padding:3px 5px}.modal{position:fixed;z-index:100;inset:0;background:#2f241dcc;display:grid;place-items:center;padding:20px}.modal-card{position:relative;width:min(500px,100%);background:#fff0d3;border:4px solid var(--ink);border-radius:17px;padding:27px;box-shadow:8px 8px 0 #9c7045}.modal-card h2{margin:6px 0 15px}.modal-card p{font-size:13px;line-height:1.8}.modal-tip{padding:10px;background:#f2dfb7;border-radius:8px}.modal-tip code{font-size:11px;overflow-wrap:anywhere}.modal-close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:27px}@media(max-width:850px){.game-shell{padding:8px}.scene{height:calc(100vh - 150px);min-height:600px}.mini-map{width:155px;top:10px;left:10px}.street-sign{top:110px}.street-world{top:25%;height:37%;padding:0 1%;gap:1%}.shop{min-width:90px;width:23%}.shop-front{padding:7px 4px 0}.shop-sign{font-size:10px;padding:4px}.shop-window{margin-top:6px}.shop-label{font-size:8px}.player-wrap{bottom:13%}.shop-prompt{right:10px;bottom:29%;width:170px;padding:10px}.scene-caption{left:8px;bottom:75px;max-width:45%}.scene-caption small{display:none}.move-controls{bottom:13px}.gesture-bar{align-items:flex-start;flex-direction:column;gap:8px}.gesture-guide{flex-wrap:wrap}.cook-heading{top:12px;left:15px}.cook-counter{top:95px;left:15px}.first-person-view{inset:29% 0 0}.wok{width:62vw;height:56%;top:18%}.hand-left{left:3%}.hand-right{right:3%}.action-hint{bottom:5%;font-size:9px}.ingredient-dock{padding:8px}.ingredient-card{min-width:90px}.ingredient-card img{height:48px}.cook-actions .primary-btn,.cook-actions .secondary-btn{padding:7px 8px;font-size:10px}}@media(max-height:700px){.scene{height:calc(100vh - 130px);min-height:520px}.gesture-bar{min-height:48px}.street-world{top:16%;height:48%}.street-ground{height:37%}.player-wrap{bottom:10%}.cook-scene .ingredient-card img{height:48px}}


/* First-person kitchen revision: ingredients live on the counter, not in a card deck. */
#gestureVideo{transform:scaleX(-1)}
.cook-scene{background:linear-gradient(#d8c49c 0%,#b88b58 47%,#795032 48%,#c18d5a 100%)}
.cook-scene .kitchen-backdrop{inset:0 0 31%;background:linear-gradient(90deg,#b58b5b 0 7%,transparent 7% 93%,#ad8050 93%),linear-gradient(#cfbd95,#e8d5a9 68%,#a87848 69%);border-bottom:13px solid #654329}
.cook-scene .kitchen-window{top:8%;left:37%;width:26%;height:54%;background:linear-gradient(#b2cfb0 0 55%,#718b62 56% 69%,#d5b078 70%)}
.cook-scene .window-view{font-size:12px}
.cook-heading{z-index:14}
.cook-counter{top:114px;display:flex;align-items:center;gap:8px;max-width:calc(100% - 40px);white-space:normal}
.cook-counter #cookFeedback{margin:0;flex:1}
.cook-counter .counter-sep{opacity:.55}
.heat-pill{margin-left:auto!important;padding:3px 9px;border-radius:12px;background:#b8472f;color:#fff2d2;font-weight:900;font-size:11px;white-space:nowrap}
.first-person-view{inset:27% 0 0}
.countertop{inset:35% -4% -5%;background:repeating-linear-gradient(0deg,#bd8953 0 21px,#a96f41 22px 25px),linear-gradient(#bd8953,#8b5935);border-top:12px solid #69442b;box-shadow:inset 0 8px #d2a16b}
.wok{top:9%;width:min(42vw,470px);height:64%;filter:drop-shadow(0 8px 0 #48302544)}
.wok-rim{height:26%;border-width:13px;background:#50443b;box-shadow:inset 0 0 0 7px #bca782,0 8px 0 #2e241d}
.pot-content{top:6%;height:43%;border-width:5px;background:radial-gradient(ellipse,#4c5a36 0,#997044 48%,#39281f 78%)}
.wok-front{top:14%;height:73%;background:linear-gradient(90deg,#292724,#5f5147 24%,#3e342d 50%,#665348 77%,#28231f);border-width:9px}
.firebox{position:absolute;z-index:2;left:50%;top:47%;width:min(31vw,310px);height:21%;transform:translateX(-50%);display:flex;justify-content:center;gap:23%;align-items:center;opacity:.8;pointer-events:none}
.fire-flame{font-size:clamp(24px,3vw,40px);filter:drop-shadow(0 0 10px #ef842c);animation:flameFlicker .55s infinite alternate}
.fire-flame-b{animation-delay:.2s}
.fire-grate{position:absolute;bottom:7%;left:12%;right:12%;height:12px;border-radius:6px;background:repeating-linear-gradient(90deg,#4d3929 0 13px,#72563b 14px 20px);border:2px solid #3b2b21}
@keyframes flameFlicker{from{transform:translateY(3px) scale(.92);opacity:.72}to{transform:translateY(-4px) scale(1.07);opacity:1}}
.hand{bottom:28%;font-size:clamp(45px,5.6vw,76px);filter:drop-shadow(3px 5px 0 #65432988)}
.hand-left{left:3%;transform:rotate(-30deg)}
.hand-right{right:3%;transform:rotate(-25deg)}
.held-ingredient{position:absolute;z-index:13;right:17px;top:48%;display:flex;align-items:center;gap:7px;padding:7px 10px;background:#fff0d7e8;border:2px solid #76502e;border-radius:13px;box-shadow:3px 3px 0 #67452d66;font-size:11px}
.held-caption{font-size:10px;color:#986b3e}
.held-emoji{font-size:21px;min-width:23px;text-align:center}
.held-ingredient b{max-width:72px;white-space:nowrap}
.held-ingredient.holding{background:#ffe1a1;border-color:#d45832;box-shadow:0 0 0 4px #f5bf6a88,3px 3px 0 #67452d66}
.ingredient-stations{position:absolute;z-index:12;left:4%;right:4%;bottom:60px;min-height:115px;padding:8px 12px 3px;border-radius:20px 20px 10px 10px;background:linear-gradient(#d9b47aee,#b7834fef);border:3px solid #70482b;border-bottom-width:6px;box-shadow:0 6px 0 #65412777,inset 0 3px #f2d39d;}
.station-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:2px;color:#4e3220}
.station-heading b{font-size:12px}
.station-heading small{font-size:9px;color:#704d30}
.station-row{display:flex;justify-content:center;align-items:flex-end;gap:clamp(4px,2vw,22px);height:84px}
.ingredient-bowl{position:relative;flex:1;min-width:0;max-width:150px;height:81px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;padding:0 4px 3px;border:0;background:transparent;border-radius:12px;box-shadow:none;transition:transform .18s,filter .18s;overflow:visible}
.ingredient-bowl:hover{transform:translateY(-3px)}
.ingredient-bowl .ingredient-pile{position:absolute;z-index:2;top:0;font-size:clamp(24px,3vw,37px);filter:drop-shadow(1px 3px 0 #56372455);transition:transform .2s}
.ingredient-bowl .bowl-shape{position:absolute;z-index:1;bottom:16px;width:min(82%,94px);height:31px;border:3px solid #563926;border-top:4px solid #f3d9a5;border-radius:8px 8px 45% 45%;background:linear-gradient(#b95c3c,#7c3e2c 76%);box-shadow:inset 0 -5px #5a2e22,0 4px 0 #6c4428}
.ingredient-bowl:nth-child(2) .bowl-shape{background:linear-gradient(#e4c18b,#ac8557 76%)}
.ingredient-bowl:nth-child(3) .bowl-shape{background:linear-gradient(#91b9b1,#527c73 76%)}
.ingredient-bowl:nth-child(4) .bowl-shape{background:linear-gradient(#f0e2c8,#c4ad87 76%)}
.ingredient-bowl:nth-child(5) .bowl-shape{background:linear-gradient(#bf6244,#7c352b 76%)}
.tofu-pile{font-size:32px!important;color:#fff8e5;text-shadow:1px 2px #8f7455}
.ingredient-bowl b{position:relative;z-index:3;max-width:100%;font-size:10px;white-space:nowrap;color:#fff0cc;text-shadow:1px 1px #5a3824}
.ingredient-bowl small{position:relative;z-index:3;font-size:8px;color:#ffe4b2;line-height:1.1}
.ingredient-bowl.active{transform:translateY(-5px);filter:drop-shadow(0 0 7px #fff3c4)}
.ingredient-bowl.active .ingredient-pile{transform:translateY(-5px) scale(1.12)}
.ingredient-bowl.active .bowl-shape{border-color:#fff0ae;box-shadow:0 0 0 3px #d9502e,0 5px 0 #693f25}
.ingredient-bowl.active b{color:#fff9dd}
.action-hint{bottom:184px;max-width:84%;white-space:normal;text-align:center;line-height:1.45;background:#fff0d8e8;border:2px solid #69452b;box-shadow:3px 3px 0 #6e472d55}
.cook-controls{position:absolute;z-index:16;left:50%;bottom:10px;transform:translateX(-50%);width:max-content;max-width:96%;display:flex;justify-content:center;gap:8px;align-items:center}
.cook-controls .primary-btn,.cook-controls .secondary-btn{padding:8px 12px;font-size:11px;white-space:nowrap}
.ingredient-toss{animation:ingredientToss .42s cubic-bezier(.2,.8,.3,1)}
@keyframes ingredientToss{0%{transform:translateY(40px) scale(.65) rotate(-35deg);opacity:.2}58%{transform:translateY(-25px) scale(1.28) rotate(20deg);opacity:1}100%{opacity:1}}
@media(max-width:850px){
 .cook-counter{top:100px;left:12px;right:12px;padding:6px 9px;font-size:10px;gap:5px}
 .first-person-view{inset:28% 0 0}
 .wok{top:11%;width:min(62vw,430px);height:56%}
 .firebox{top:43%;width:45vw}
 .held-ingredient{top:45%;right:7px;padding:5px 7px;font-size:9px;gap:4px}
 .held-ingredient b{max-width:50px}
 .ingredient-stations{left:2%;right:2%;bottom:57px;padding:6px 5px 2px;min-height:103px}
 .station-heading b{font-size:10px}.station-heading small{font-size:8px}
 .station-row{height:74px;gap:2px}
 .ingredient-bowl{height:72px;padding-bottom:1px}
 .ingredient-bowl .ingredient-pile{font-size:24px}
 .ingredient-bowl .bowl-shape{height:26px;width:82%;bottom:14px;border-width:2px}
 .ingredient-bowl b{font-size:8px}.ingredient-bowl small{font-size:7px}
 .hand{bottom:30%;font-size:42px}
 .action-hint{bottom:165px;font-size:9px;padding:6px 8px}
 .cook-controls{bottom:7px;gap:5px}
 .cook-controls .primary-btn,.cook-controls .secondary-btn{padding:7px 8px;font-size:9px;border-width:2px}
}
@media(max-width:430px){
 .ingredient-stations{bottom:55px}
 .station-heading small{max-width:58%;text-align:right}
 .ingredient-bowl .ingredient-pile{font-size:21px}
 .cook-controls .secondary-btn{padding:7px 6px}
 .held-ingredient{right:3px;gap:3px}
}


/* === 修正小熊精灵尺寸：保留原街道布局，只限制角色图片大小 === */
.street-scene .player-wrap{width:clamp(82px,8vw,122px);height:clamp(132px,20vh,188px);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;isolation:isolate;}
.street-scene .player-wrap .bear-sprite{display:block;width:100%;height:calc(100% - 18px);max-width:100%;max-height:100%;object-fit:contain;object-position:center bottom;flex:1 1 auto;filter:drop-shadow(3px 5px 0 #57362544);transform-origin:center bottom;}
.street-scene .player-wrap .player-shadow{position:absolute;z-index:-1;bottom:18px;left:14%;width:72%;height:12px;border-radius:50%;background:#39291e66;filter:blur(4px);}
.street-scene .player-name{position:relative;z-index:2;line-height:1.1;margin-top:0;font-size:10px;}

/* === 俯视灶台模拟器：仅覆盖烹饪场景，不改变街巷场景 === */
.cook-scene{background:#214e49!important;border-color:#2f281f!important;box-shadow:0 9px 0 #b8a075,inset 0 0 0 4px #d6b980!important;color:#2f291f;}
.cook-scene:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 35%,#47736a 0,#214e49 66%,#163b38 100%);pointer-events:none;}
.cook-scene .kitchen-backdrop{display:none!important;}
.cook-scene .topdown-heading{position:absolute;z-index:20;top:13px;left:18px;right:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:0;background:transparent;border:0;backdrop-filter:none;}
.cook-scene .topdown-heading h1{font-size:clamp(20px,2.3vw,31px);color:#fff0cc;text-shadow:0 2px 2px #153a34;margin:3px 0 2px;}
.cook-scene .topdown-heading p{font-size:clamp(10px,.9vw,13px);color:#d7e0bf;margin:0;}
.cook-scene .topdown-heading .eyebrow{color:#e9c77c;}
.cook-scene .topdown-heading .back-btn{background:#f4ddb0;border-color:#30251d;box-shadow:3px 4px 0 #101f1d;padding:8px 12px;white-space:nowrap;}
.cook-scene .topdown-counter{position:absolute;z-index:20;top:82px;left:18px;right:18px;display:flex;align-items:center;gap:8px;max-width:none;background:#f4e3bcf0;border:2px solid #493321;border-radius:10px;padding:7px 12px;box-shadow:3px 4px 0 #153a3444;font-size:12px;}
.cook-scene .topdown-counter b{font-size:16px;color:#c94f31;}
.cook-scene .topdown-counter #cookFeedback{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cook-scene .heat-pill{padding:3px 9px;border-radius:15px;background:#e6b55b;color:#422e20;font-weight:900;white-space:nowrap;}
.kitchen-workspace{position:absolute;z-index:4;inset:128px 15px 18px;overflow:hidden;border:2px solid #102f2d;border-radius:15px;background:linear-gradient(135deg,#2e6259,#1c4944 52%,#245148);box-shadow:inset 0 0 0 4px #5d8770,inset 0 0 30px #122e2caa;isolation:isolate;}
.worktop-grain{position:absolute;inset:0;opacity:.26;background:repeating-linear-gradient(0deg,transparent 0 34px,#9eb89a22 35px 37px),repeating-linear-gradient(90deg,transparent 0 74px,#112f2b22 75px 77px);pointer-events:none;}
.prep-board,.seasoning-rack{position:absolute;z-index:2;top:7%;height:86%;border:4px solid #68432b;border-radius:9px;background:linear-gradient(125deg,#dfb17a,#c9915d 45%,#dfb27d 72%,#bc8051);box-shadow:0 7px 0 #112b29aa,inset 0 0 0 3px #f1cb91,inset 0 0 0 8px #a87245;}
.prep-board{left:1.5%;width:28%;}
.seasoning-rack{right:1.5%;width:27%;background:linear-gradient(130deg,#c68f59,#e4bc7f 46%,#c18a53);}
.prep-board:after,.seasoning-rack:after{content:"";position:absolute;inset:12px;border:1px solid #855c39aa;border-radius:4px;pointer-events:none;}
.surface-label{position:absolute;z-index:3;left:12px;top:8px;display:flex;flex-direction:column;gap:2px;color:#4b2e1c;text-shadow:0 1px #f5d39b;pointer-events:none;}
.surface-label b{font-size:clamp(11px,1vw,15px);}
.surface-label small{font-size:clamp(8px,.72vw,10px);opacity:.78;}
.kitchen-object{position:absolute;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:9px;color:#32291f;transition:transform .15s,filter .15s;touch-action:manipulation;}
.ingredient-object{width:39%;height:26%;}
.kitchen-object:hover,.kitchen-object:focus-visible,.kitchen-object.focus-target{outline:none;transform:translateY(-3px) scale(1.04);filter:drop-shadow(0 0 5px #fff0b0);}
.kitchen-object:focus-visible:after,.kitchen-object.focus-target:after{content:none;}
.kitchen-object.focus-target .object-emoji,.kitchen-object.focus-target .sauce-vessel{filter:drop-shadow(0 0 7px #fff0a8) drop-shadow(1px 3px 2px #57331e66);}
.object-emoji{position:relative;z-index:2;display:grid;place-items:center;width:clamp(45px,5.2vw,80px);height:clamp(38px,7.2vh,69px);font-size:clamp(28px,3.9vw,54px);line-height:1;filter:drop-shadow(1px 4px 2px #57331e77);}
.tofu-emoji{color:#fff2d8;text-shadow:1px 2px #9d8260;}
.object-label{position:relative;z-index:3;margin-top:1px;padding:2px 5px;border-radius:5px;background:#f5dfb6d9;color:#553521;font-size:clamp(8px,.72vw,10px);font-weight:900;white-space:nowrap;box-shadow:0 2px 0 #81532c55;}
.seasoning-rack .sauce-object{width:38%;height:38%;}
.sauce-vessel{position:relative;display:block;width:clamp(29px,3.6vw,51px);height:clamp(42px,6.4vh,61px);border:3px solid #583b28;border-radius:9px 9px 12px 12px;background:linear-gradient(90deg,#f0cd88 0 18%,#c47a40 19% 79%,#efbf72 80%);box-shadow:2px 5px 0 #5a382855,inset 0 0 0 3px #f3cb89;}
.sauce-vessel:before{content:"";position:absolute;left:27%;top:-10px;width:46%;height:10px;background:#68452b;border:2px solid #422c21;border-bottom:0;border-radius:4px 4px 0 0;}
.sauce-vessel:after{content:"";position:absolute;left:18%;right:18%;top:40%;height:5px;border-radius:3px;background:#f2d5a0;opacity:.9;}
.sauce-vessel i{position:absolute;left:20%;right:20%;top:18%;height:18%;background:#e9d9a9;border-radius:2px;}
.sauce-oil .sauce-vessel{background:linear-gradient(90deg,#caa24b,#719347 30%,#a7ae51 72%,#526d38);}
.sauce-paste .sauce-vessel{background:linear-gradient(90deg,#9c422d,#d75a32 45%,#763022);}
.sauce-wine .sauce-vessel{background:linear-gradient(90deg,#e5c68c,#b8a56b 40%,#e2d1a1);}
.pan-zone{position:absolute;z-index:4;left:30.5%;top:7%;width:39%;height:86%;display:flex;align-items:center;justify-content:center;}
.pan-handle{position:absolute;z-index:1;right:5%;bottom:4%;width:28%;height:13%;border:7px solid #211f1d;border-radius:12px;background:linear-gradient(#604b39,#2b2824);transform:rotate(37deg);box-shadow:0 5px 0 #101a19;}
.topdown-wok{position:relative;z-index:3;width:min(100%,min(34vw,390px));aspect-ratio:1/1;border-radius:50%;padding:7%;background:radial-gradient(circle at 43% 35%,#5e5a50 0 48%,#272a28 50% 55%,#777066 56% 59%,#242624 61% 70%,#101a19 73% 100%);box-shadow:0 12px 0 #102b29,0 18px 24px #081d1b88,inset 0 0 0 5px #151d1b;transition:filter .2s,transform .2s;}
.wok-outer-rim{position:absolute;inset:7%;border-radius:50%;border:5px solid #898274;background:radial-gradient(circle at 40% 30%,#3b3d39 0,#282b28 65%,#171d1a 100%);box-shadow:inset 0 0 0 6px #181f1c,0 0 0 2px #101b18;}
.wok-inner{position:absolute;z-index:2;inset:14%;overflow:hidden;border:2px solid #756c5c;border-radius:50%;background:radial-gradient(ellipse at 42% 36%,#494940,#282d28 73%,#1d211e);box-shadow:inset 0 0 24px #101713aa;transition:filter .25s;}
.wok-inner:before{content:"";position:absolute;inset:0;border-radius:50%;background:repeating-radial-gradient(ellipse at 35% 38%,transparent 0 21px,#e2c89e08 22px 24px);pointer-events:none;}
.wok-glint{position:absolute;z-index:4;top:17%;left:24%;width:27%;height:10%;border-top:4px solid #d5c7a55c;border-radius:50%;transform:rotate(-24deg);pointer-events:none;}
.pot-placeholder{position:absolute;z-index:3;inset:0;display:grid;place-items:center;text-align:center;padding:15%;color:#ddd2b1;font-size:clamp(9px,.85vw,13px);line-height:1.5;opacity:.8;pointer-events:none;text-shadow:0 2px #18211e;}
.pot-item{position:absolute;z-index:4;display:grid;place-items:center;width:23%;height:22%;font-size:clamp(18px,2.3vw,32px);filter:drop-shadow(1px 3px 1px #0009);animation:foodDrop .35s ease-out;}
@keyframes foodDrop{0%{transform:translateY(-28px) scale(.65);opacity:.25}70%{transform:translateY(4px) scale(1.12)}100%{opacity:1}}
.pan-zone.drop-ready .topdown-wok{filter:drop-shadow(0 0 14px #ffd06c);transform:scale(1.025);}
.fire-glow{position:absolute;z-index:2;bottom:12%;left:27%;width:46%;height:11%;border-radius:50%;background:#f07a24;filter:blur(16px);opacity:.1;transition:opacity .3s;pointer-events:none;}
.fire-glow.hot-2{opacity:.28}.fire-glow.hot-3{opacity:.62;}
.pan-label{position:absolute;z-index:6;bottom:0;left:50%;transform:translateX(-50%);font-size:clamp(9px,.75vw,11px);font-weight:900;letter-spacing:.05em;color:#e5ddbb;white-space:nowrap;text-shadow:0 2px #18312d;pointer-events:none;}
.kitchen-tool{position:absolute;z-index:7;display:flex;align-items:center;justify-content:center;gap:4px;border:2px solid #6e4c31;border-radius:9px;background:linear-gradient(#e6c18a,#b9824f);box-shadow:3px 4px 0 #112e2b99,inset 0 2px #f3d5a0;padding:5px 9px;color:#482f1e;}
.kitchen-tool span{font-size:clamp(20px,2.2vw,31px);line-height:1;}
.kitchen-tool small{font-size:clamp(8px,.7vw,10px);font-weight:900;white-space:nowrap;}
.stir-zone{left:32.5%;bottom:3%;}
.fire-zone{right:31.5%;bottom:3%;}
.fire-zone span{filter:drop-shadow(0 0 4px #ffad42);}
.held-ingredient{position:absolute;z-index:12;top:8px;right:8px;display:flex;align-items:center;gap:6px;max-width:36%;padding:5px 8px;border:2px solid #725034;border-radius:10px;background:#f6e3bded;box-shadow:2px 3px 0 #142f2d77;font-size:10px;}
.held-ingredient .held-emoji{font-size:23px;line-height:1;}
.held-ingredient b{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.held-ingredient.holding{border-color:#e8ae48;background:#ffe3a0;box-shadow:0 0 0 3px #ffcf6b55,2px 3px 0 #142f2d77;}
.hand-cursor{position:absolute;z-index:15;left:50%;top:50%;display:none;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;align-items:center;justify-content:center;background:#fff2cc99;border:2px dashed #fff0ae;box-shadow:0 0 0 4px #183c36aa;pointer-events:none;}
.hand-cursor.visible{display:flex;}
.hand-cursor span{font-size:27px;filter:drop-shadow(0 2px 1px #36231c);}
.action-hint{position:absolute;z-index:12;left:50%;top:7px;bottom:auto;transform:translateX(-50%);max-width:52%;white-space:normal;text-align:center;line-height:1.35;padding:6px 10px;border:1px solid #e2c58d;border-radius:8px;background:#143c37dc;color:#fff0cc;font-size:clamp(8px,.76vw,11px);font-weight:700;box-shadow:0 3px 7px #102d2a66;pointer-events:none;}
.cook-scene .topdown-controls{display:none!important;position:absolute;z-index:22;left:50%;bottom:8px;transform:translateX(-50%);display:flex;gap:7px;width:auto;max-width:98%;justify-content:center;}
.cook-scene .topdown-controls button{padding:6px 9px;font-size:10px;white-space:nowrap;box-shadow:2px 3px 0 #172d2a;}
.cook-scene #pickupIngredient{display:none!important;}
.cook-scene .gesture-status{color:#f5e9c7;}
@media(max-width:850px){
 .street-scene .player-wrap{width:clamp(72px,13vw,98px);height:clamp(118px,19vh,155px);bottom:13%;}
 .kitchen-workspace{inset:130px 7px 18px;border-radius:11px;}
 .prep-board{left:1%;width:29%;}.seasoning-rack{right:1%;width:27%;}
 .pan-zone{left:29%;width:42%;}
 .topdown-wok{width:min(100%,44vw,310px);}
 .object-emoji{width:44px;height:42px;font-size:clamp(22px,4.7vw,36px);}
 .kitchen-object .object-label{font-size:7px;padding:1px 3px;}
 .sauce-vessel{width:27px;height:41px;}
 .cook-scene .topdown-heading{top:8px;left:10px;right:10px;}
 .cook-scene .topdown-heading h1{font-size:19px;}
 .cook-scene .topdown-heading p{max-width:60vw;font-size:9px;}
 .cook-scene .topdown-counter{top:69px;left:10px;right:10px;padding:5px 7px;font-size:9px;gap:4px;}
 .cook-scene .topdown-counter b{font-size:13px;}
 .cook-scene .topdown-counter #cookFeedback{max-width:45%;}
 .surface-label{left:7px;top:6px;}.surface-label b{font-size:9px}.surface-label small{font-size:7px;}
 .kitchen-tool{gap:2px;padding:4px 5px;}
 .kitchen-tool span{font-size:18px}.kitchen-tool small{font-size:7px;}
 .stir-zone{left:29%;bottom:2%;}.fire-zone{right:29%;bottom:2%;}
 .held-ingredient{top:5px;right:4px;gap:3px;padding:3px 4px;font-size:8px;max-width:40%;}
 .held-ingredient .held-emoji{font-size:18px;}
 .hand-cursor{width:40px;height:40px;}
 .action-hint{top:5px;bottom:auto;max-width:42%;font-size:7px;padding:4px 5px;}
 .cook-scene .topdown-controls{bottom:5px;gap:4px;}
 .cook-scene .topdown-controls button{font-size:8px;padding:5px 5px;border-width:2px;}
}
@media(max-width:520px){
 .prep-board{width:32%;}.seasoning-rack{width:30%;}
 .pan-zone{left:31%;width:39%;}
 .topdown-wok{width:min(100%,39vw,245px);}
 .pan-handle{width:24%;height:10%;}
 .stir-zone{left:32%;bottom:1%;}.fire-zone{right:30%;bottom:1%;}
 .kitchen-object{width:42%;height:25%;}
 .cook-scene .topdown-heading .back-btn{font-size:9px;padding:6px 7px;}
 .cook-scene .topdown-counter{flex-wrap:wrap;}
 .cook-scene .topdown-counter #cookFeedback{order:4;flex-basis:100%;max-width:none;}
 .action-hint{display:none;}
}

.kitchen-object.is-taken{opacity:.28;filter:grayscale(.8);transform:scale(.94);pointer-events:none;}

.street-scene .player-wrap.walking .bear-sprite{animation:bearSpriteStep .26s ease-in-out infinite alternate;}
@keyframes bearSpriteStep{to{translate:0 -3px;}}


/* ===== Reference-led art direction: painted Hunan market street and overhead kitchen ===== */
.street-scene {
  background: #c6d6b1 url("https://res.cloudinary.com/svhxeuf7/image/upload/v1796283453/ancient-market.webp") center center / 100% 100% no-repeat !important;
  isolation: isolate;
}
.street-scene > .sky-wash,
.street-scene > .far-hills,
.street-scene > .lantern,
.street-scene > .street-sign,
.street-scene > .street-ground { display: none !important; }
.street-scene .street-world .tree { display:none !important; }
.street-scene .street-world {
  position:absolute; inset:0; top:0; height:100%; left:0; right:0; padding:0;
  display:block; z-index:8; pointer-events:none; transition:none;
}
/* Hand-painted-style shop plaques float over the shop fronts in the scenic background. */
.street-scene .painted-shop-sign {
  position:absolute; z-index:4; top:34%; width:20%; padding:5px 7px;
  text-align:center; font-weight:900; font-size:clamp(10px,.95vw,15px); letter-spacing:.06em;
  color:#54341f; background:linear-gradient(#d9b782,#c49a62); border:2px solid #69452b;
  outline:1px solid #f3d9a5; border-radius:3px; box-shadow:2px 3px 0 #583a2655;
  text-shadow:0 1px #f7dfaf; pointer-events:none;
}
.street-scene .sign-meat { left:2.7%; }
.street-scene .sign-fish { left:27.7%; }
.street-scene .sign-tofu { left:52.7%; }
.street-scene .sign-spice { left:77.7%; }
/* These invisible shop elements are interaction hit areas aligned over the painted doors. */
.street-scene .street-world .shop {
  position:absolute; display:block; min-width:0; width:22%; height:48%; top:23%; bottom:auto;
  opacity:0; filter:none; transform:none !important; transition:none; pointer-events:auto; cursor:pointer;
}
.street-scene .street-world .shop[data-index="0"] { left:2%; width:22%; }
.street-scene .street-world .shop[data-index="1"] { left:27%; width:22%; }
.street-scene .street-world .shop[data-index="2"] { left:52%; width:22%; }
.street-scene .street-world .shop[data-index="3"] { left:77%; width:22%; }
.street-scene .street-world .shop * { pointer-events:none; }
.street-scene .player-wrap {
  width:clamp(74px,6.2vw,98px); height:clamp(118px,18vh,150px); bottom:11%;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
}
.street-scene .player-wrap .bear-sprite {
  display:block; width:100%; height:calc(100% - 18px); max-width:100%; max-height:100%;
  object-fit:contain; object-position:center bottom; flex:1 1 auto;
  filter:drop-shadow(2px 4px 2px #39291e55); transform-origin:center bottom;
}
.street-scene .player-wrap .player-shadow { bottom:18px; }
.street-scene .shop-prompt { backdrop-filter:blur(3px); }
.street-scene .shop-prompt .primary-btn { cursor:pointer; }

.cook-scene {
  background:#225248 url("https://res.cloudinary.com/svhxeuf7/image/upload/v1796283455/topdown-cooking-workbench.webp") center/cover no-repeat;
}
.cook-scene .topdown-heading { z-index:8; }
.cook-scene .topdown-heading > div {
  padding:8px 12px; border:2px solid #765332; border-radius:10px;
  background:#fff1d8e8; box-shadow:3px 4px 0 #4f372866;
}
.cook-scene .topdown-heading h1 { font-size:clamp(20px,2.5vw,32px); }
.cook-scene .topdown-heading p { font-size:11px; }
.cook-scene .topdown-counter {
  top:94px; left:4%; right:auto; max-width:70%; z-index:8;
  background:#f6e8cced; border:2px solid #6d4a2b; color:#4d3825;
}
.cook-scene .topdown-counter #cookFeedback { white-space:normal; max-width:46vw; }
.kitchen-workspace {
  left:4%; right:4%; top:128px; bottom:14px; inset:128px 4% 14px;
  border:2px solid #5a432b; border-radius:14px;
  background:#225248 url("https://res.cloudinary.com/svhxeuf7/image/upload/v1796283455/topdown-cooking-workbench.webp") center 22% / cover no-repeat;
  box-shadow:0 6px 0 #173d35aa, inset 0 0 0 3px #f3d19a66; overflow:hidden;
}
.worktop-grain { display:none !important; }
.prep-board, .seasoning-rack {
  top:7%; height:86%; border:0; border-radius:0; background:transparent; box-shadow:none;
}
.prep-board { left:0; width:34%; }
.seasoning-rack { right:0; top:0; width:27%; height:48%; }
.prep-board:after, .seasoning-rack:after { display:none; }
.surface-label {
  left:12px; top:10px; gap:3px; padding:4px 7px; border:1px solid #80603d;
  border-radius:6px; background:#fff0d9d9; box-shadow:1px 2px 0 #553a2466;
}
.surface-label b { font-size:clamp(10px,.9vw,13px); }
.seasoning-rack .surface-label { top:69%; left:8px; }
.surface-label small { font-size:clamp(8px,.65vw,9px); }
.kitchen-object {
  border:0; background:transparent; box-shadow:none; border-radius:12px;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  gap:2px; overflow:visible; transition:filter .14s, transform .14s; touch-action:manipulation;
}
.ingredient-object { width:44%; height:29%; }
.object-art {
  display:block; width:100%; height:calc(100% - 22px); max-height:clamp(64px,10vh,105px);
  object-fit:contain; filter:drop-shadow(1px 3px 1px #513a2866); pointer-events:none;
}
.ingredient-object .object-art { opacity:1; }
.kitchen-object .object-label {
  margin-top:-1px; padding:3px 7px; border:1px solid #886542; border-radius:5px;
  background:#fff5dfed; color:#543924; font-size:clamp(9px,.7vw,11px); font-weight:900;
  box-shadow:1px 2px 0 #61452c66; pointer-events:none;
}
.kitchen-object:hover,
.kitchen-object:focus-visible,
.kitchen-object.focus-target {
  outline:none; transform:translateY(-2px) scale(1.035); filter:drop-shadow(0 0 7px #fff1a2);
}
.kitchen-object.focus-target .object-art { filter:drop-shadow(0 0 7px #fff1a2) drop-shadow(1px 3px 1px #513a2866); }
.sauce-object .object-art { opacity:0; }
.sauce-object.focus-target { background:#fff1a247; box-shadow:0 0 0 3px #ffe6a899; border-radius:14px; }
.kitchen-object.cursor-target { background:#fff1a244; box-shadow:0 0 0 3px #fff0a488; border-radius:14px; }
.sauce-object { width:44%; height:40%; }
.sauce-object .object-art { width:100%; height:calc(100% - 18px); max-height:clamp(50px,8vh,78px); }
.sauce-object .object-label { position:relative; }
.pan-zone {
  left:31%; top:4%; width:44%; height:86%;
  background:transparent; display:flex; align-items:center; justify-content:center;
}
.pan-handle, .wok-outer-rim, .wok-glint { display:none !important; }
.topdown-wok {
  width:min(100%,min(38vw,550px)); height:auto; aspect-ratio:1/1; padding:0;
  border:0; border-radius:50%; background:transparent; box-shadow:none;
  position:relative; transition:filter .2s, transform .2s;
}
.wok-inner {
  position:absolute; inset:10%; overflow:visible; border:0; border-radius:50%;
  background:transparent; box-shadow:none; transition:filter .25s;
}
.wok-inner:before { display:none; }
.pot-placeholder {
  color:#f8ebcf; background:#173d35a8; inset:34% 12%; padding:7px; border-radius:9px;
  font-size:clamp(10px,.9vw,13px); text-shadow:none; opacity:.95; align-content:center;
}
.pot-item {
  width:30%; height:27%; display:grid; place-items:center; font-size:0;
  filter:drop-shadow(1px 3px 1px #251a12aa); animation:foodDrop .35s ease-out;
}
.pot-item img { width:100%; height:100%; object-fit:contain; }
.pan-zone.drop-ready .topdown-wok { filter:drop-shadow(0 0 12px #ffcf70); transform:scale(1.025); }
.pan-label { bottom:-1%; color:#fff0cf; font-size:10px; text-shadow:0 2px #18312d,1px 2px #18312d; }
.fire-glow { bottom:8%; opacity:.08; }
.fire-glow.hot-2 { opacity:.28; }.fire-glow.hot-3 { opacity:.55; }
.stir-zone, .fire-zone {
  bottom:2%; border:2px solid #593d25; border-radius:8px; padding:5px 8px;
  background:#fff0d9ee; box-shadow:2px 3px 0 #47311e99; color:#4f3521;
}
.stir-zone { left:28%; }.fire-zone { right:25%; }
.held-ingredient {
  top:8px; right:8px; max-width:30%; border:2px solid #765331; background:#fff1dbeF;
  border-radius:10px; padding:4px 8px; color:#4f3521;
}
.held-ingredient .held-emoji { display:grid; place-items:center; width:42px; height:40px; font-size:11px; }
.held-ingredient .held-emoji img { display:block; width:100%; height:100%; object-fit:contain; }
.held-empty { font-size:10px; color:#846448; }
.held-ingredient b { max-width:95px; font-size:10px; }
.hand-cursor { width:50px; height:50px; background:#fff2ccc9; border:2px dashed #fff1a3; box-shadow:0 0 0 4px #315d4c88; }
.action-hint {
  top:auto; bottom:8px; left:50%; max-width:48%; white-space:normal;
  padding:6px 10px; border:1px solid #e4c48e; border-radius:8px;
  background:#fff0d9e8; color:#4e3522; font-size:clamp(9px,.72vw,11px); text-shadow:none;
}
.cook-scene .topdown-controls {
  display:flex !important; position:absolute; z-index:25; left:50%; bottom:8px;
  transform:translateX(-50%); width:auto; max-width:94%; justify-content:center; gap:7px;
  flex-wrap:wrap; pointer-events:auto;
}
.cook-scene .topdown-controls button { font-size:10px; padding:7px 10px; white-space:nowrap; }
.cook-scene #pickupIngredient { display:none !important; }
.finish-dish-btn { background:#d75b36; color:#fff4d6; }
.dish-result-card { width:min(620px,96vw); text-align:center; padding:24px 28px 22px; max-height:92vh; overflow:auto; }
.dish-result-card h2 { margin:6px 0 6px; font-size:clamp(24px,3vw,34px); }
.dish-result-image { display:block; width:min(300px,58vw); height:240px; object-fit:contain; margin:0 auto 8px; filter:drop-shadow(0 7px 7px #55392430); }
.dish-result-summary { max-width:490px; margin:0 auto 12px; color:#76583d; line-height:1.7; font-size:13px; }
.dish-result-stats { display:grid; gap:6px; margin:12px 0 16px; }
.dish-result-stats span { display:block; padding:7px 10px; border-radius:7px; background:#f3dfb9; color:#63442c; font-size:12px; font-weight:800; }
.dish-result-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
@media(max-width:850px) {
 .street-scene { background-position:center center; }
 .street-scene .player-wrap { width:clamp(68px,10vw,88px); height:clamp(110px,17vh,136px); bottom:13%; }
 .street-scene .street-world .shop { top:24%; height:46%; }
 .mini-map { width:155px; }
 .shop-prompt { bottom:26%; }
 .scene-caption { bottom:72px; max-width:44%; }
 .kitchen-workspace { inset:120px 1.5% 12px; background-position:center center; }
 .cook-scene .topdown-counter { top:78px; max-width:88%; }
 .cook-scene .topdown-counter #cookFeedback { max-width:40vw; }
 .prep-board { width:35%; }
 .seasoning-rack { width:28%; }
 .pan-zone { left:29%; width:46%; }
 .topdown-wok { width:min(100%,42vw,420px); }
 .object-art { max-height:clamp(52px,9vh,82px); }
 .kitchen-object .object-label { font-size:8px; padding:2px 4px; }
 .surface-label { left:5px; top:5px; padding:2px 4px; }
 .surface-label b { font-size:8px; }
 .surface-label small { font-size:6px; }
 .held-ingredient { max-width:34%; padding:3px 5px; }
 .held-ingredient .held-emoji { width:30px; height:30px; }
 .action-hint { max-width:40%; font-size:8px; bottom:50px; }
 .cook-scene .topdown-controls { bottom:5px; gap:4px; }
 .cook-scene .topdown-controls button { font-size:8px; padding:5px 6px; }
 .dish-result-card { padding:22px 16px 16px; }
 .dish-result-image { height:190px; }
}
@media(max-height:700px) {
 .scene { height:calc(100vh - 128px); min-height:490px; }
 .kitchen-workspace { top:112px; bottom:8px; }
 .cook-scene .topdown-counter { top:73px; }
 .object-art { max-height:70px; }
 .dish-result-image { height:160px; }
}


/* === 摄像头画中画：固定在游戏界面右下角 === */
.camera-panel {
  position: fixed;
  z-index: 1200;
  right: clamp(12px, 1.6vw, 26px);
  bottom: clamp(58px, 7vh, 76px);
  width: clamp(180px, 17vw, 226px);
  max-width: calc(100vw - 24px);
  padding: 8px;
  overflow: hidden;
  color: var(--ink, #39291e);
  background: #fff2d9f2;
  border: 2px solid var(--ink, #39291e);
  border-radius: 12px;
  box-shadow: 4px 5px 0 rgba(57, 41, 30, .28);
  backdrop-filter: blur(5px);
}
.camera-panel.hidden { display: none !important; }
.camera-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.3;
}
#cameraClose {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #795636;
  border-radius: 50%;
  background: #f7dfad;
  font-size: 17px;
  line-height: 1;
}
#gestureVideo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #9c794b;
  border-radius: 7px;
  background: #2d3c35;
  transform: scaleX(-1);
}
#cameraHint {
  margin: 6px 1px 1px;
  font-size: 10px;
  line-height: 1.4;
  color: #735439;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .camera-panel {
    right: 8px;
    bottom: 60px;
    width: min(176px, calc(100vw - 16px));
    padding: 6px;
    border-radius: 9px;
  }
  .camera-panel-head { margin-bottom: 4px; font-size: 11px; }
  #cameraClose { width: 21px; height: 21px; flex-basis: 21px; font-size: 15px; }
  #cameraHint { margin-top: 4px; font-size: 9px; }
}

/* ===== 点击反馈（纯 CSS：:active 按下 + 弹性回弹，无 JS） ===== */
button, .shop, .ingredient-bowl, .ingredient-card, .kitchen-object, .map-node, .kitchen-tool, .camera-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 按钮：按下时 3px 硬阴影收掉，并轻微缩小，松手弹回 */
.primary-btn, .secondary-btn, .back-btn, .icon-btn, .cook-controls button,
.kitchen-tool, .camera-toggle, .finish-dish-btn {
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease, filter .15s ease;
}
.primary-btn:active, .secondary-btn:active, .back-btn:active, .icon-btn:active,
.cook-controls button:active, .kitchen-tool:active, .camera-toggle:active {
  transform: translate(3px, 3px) scale(.97) !important;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
  filter: brightness(.96);
}

/* 行走 / 转向圆钮：按到底 */
.round-control:active, .walk-control:active {
  transform: translate(2px, 2px) scale(.94) !important;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
}

/* 店铺：按下像往前踏了一步 */
.shop:active { transform: translateY(5px) scale(.965) !important; }
.shop:active .shop-sign { background: #ffe08a; }
.shop:active .door { background: #7a4529; }

/* 食材碗 / 厨房物件 / 食材卡：按下压扁一点，像被手按下去 */
.ingredient-bowl:active, .kitchen-object:active, .ingredient-card:active {
  transform: translateY(3px) scale(.92) !important;
  filter: brightness(.93);
}

/* 小地图节点 */
.map-node:active { transform: scale(.85); }

/* 点炒锅区域时锅体轻微下沉 */
.pan-zone:active .topdown-wok { transform: scale(.985); }

/* 纯触屏设备：清掉会“粘住”的 hover 位移 */
@media (hover: none) {
  .shop:hover { transform: none; }
  .ingredient-bowl:hover { transform: none; }
  .kitchen-object:hover { transform: none; }
}

/* 减少动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  .primary-btn:active, .secondary-btn:active, .back-btn:active, .icon-btn:active,
  .cook-controls button:active, .kitchen-tool:active, .camera-toggle:active,
  .round-control:active, .walk-control:active, .shop:active,
  .ingredient-bowl:active, .kitchen-object:active, .ingredient-card:active { transform: none !important; }
}
