:root{color-scheme:dark;--cream:#fff5e8;--ink:#694830;--pink:#efb1ac;--mint:#b4e1d7;--stage-width:min(100vw - 16px,420px,calc((100svh - 266px)*.71186));font-family:'Zen Maru Gothic','Noto Sans TC',sans-serif;font-weight:700;color:var(--cream)}*{box-sizing:border-box}body{margin:0;background:#2b2427;overscroll-behavior:none;min-height:100svh;background-image:linear-gradient(#231e2033,#21181a44),url('assets/kitchen-night.png');background-size:cover;background-position:center 64%;overflow-x:hidden}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,canvas:focus-visible{outline:3px solid #b1edee;outline-offset:4px}button:disabled{cursor:default;filter:saturate(.4);opacity:.55}.game-shell{position:relative;width:min(100%,460px);margin:auto;min-height:100svh;padding:10px 16px max(7px,env(safe-area-inset-bottom));display:flex;align-items:center;flex-direction:column;background:linear-gradient(#30232622,#5730240a);user-select:none;-webkit-user-select:none}.header{width:100%;flex:none}.topline{display:flex;justify-content:space-between;align-items:center;height:44px}.wordmark{font-size:17px;letter-spacing:2px;text-shadow:0 2px 4px #201515}.wordmark small{font-size:9px;letter-spacing:1px;background:#ffdfcb20;padding:3px 7px;border:1px solid #ecd0ab48;border-radius:4px;vertical-align:2px}.top-actions{display:flex;gap:7px}.icon-btn{width:44px;height:44px;border:1px solid #fce2b573;border-radius:50%;background:#543527b8;color:#fff5dd;font-size:21px;box-shadow:0 3px 5px #21171d30}.icon-btn.off{color:#a89889}h1{font-size:40px;line-height:1.3;letter-spacing:2px;text-align:center;margin:8px 0 10px;font-weight:900;color:#fff1dd;text-shadow:0 3px 0 #6d3d2a,2px 0 #6d3d2a,-2px 0 #6d3d2a,0 -2px #6d3d2a,0 6px 12px #30161970;white-space:nowrap}h1 span{color:#ffc4bc}h1 i{font-style:normal;color:#c6ebe1}.scoreboard{display:flex;gap:9px;justify-content:center;height:55px}.score-card{flex:1;max-width:130px;background:linear-gradient(#fff5dfee,#f9e4cae8);border:2px solid #d9ae80;border-radius:13px;box-shadow:0 4px 0 #603c2a77,0 3px 8px #160d1620;color:var(--ink);padding:3px 10px 4px;text-align:center}.score-card span{font-size:10px;letter-spacing:2px;display:block;line-height:1.4}.score-card strong{font-size:26px;line-height:1.1;display:block;font-weight:900;font-variant-numeric:tabular-nums}.score-card.best strong{font-size:22px;color:#aa7550;padding-top:3px}.next-card{width:100px;flex:none;border:1px solid #dcac76;border-radius:10px;background:#543524d9;box-shadow:0 3px 0 #39201f;position:relative;padding:0 5px}.next-card>span{position:absolute;top:-10px;left:26px;background:#543524;padding:0 5px;font-size:9px;letter-spacing:1px;color:#efce9e}#next-preview{display:flex;align-items:center;justify-content:space-evenly;height:100%;gap:4px}#next-preview img{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 2px 2px #24101b70)}#next-preview img+img{width:27px;height:27px;opacity:.75}.stage-wrap{width:var(--stage-width);height:calc(var(--stage-width)*1.40476);position:relative;flex:none;isolation:isolate;margin-top:0}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;-webkit-tap-highlight-color:transparent}.chef{position:absolute;left:-13px;bottom:-2px;pointer-events:none;width:104px;height:108px;z-index:2}.chef img{position:absolute;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 4px #251b1aa0);transform-origin:50% 90%}.chef.react img{animation:chef-pop .38s ease-out}.chef div{position:absolute;left:75px;bottom:3px;width:max-content;max-width:208px;background:#fff1dceF;color:#775439;border:1px solid #c49a74;border-radius:8px 8px 8px 0;padding:5px 8px;font-size:10px;box-shadow:0 3px 7px #38201836}.round-info{position:absolute;left:50%;transform:translateX(-50%);bottom:37px;font-size:10px;letter-spacing:1px;color:#fff0d9;text-shadow:0 2px 3px #43251e;pointer-events:none;white-space:nowrap;background:#492e2066;border-radius:10px;padding:3px 9px}.combo-banner{position:absolute;top:34%;left:0;width:100%;text-align:center;pointer-events:none;font-size:30px;font-weight:900;color:#ffead9;text-shadow:0 3px #945552,0 0 16px #ffbb8280;opacity:0;z-index:3}.combo-banner.show{animation:combo-pop 1.15s both}.controls{flex:none;width:100%;max-width:370px;text-align:center;padding-top:1px}#instruction{font-size:11px;letter-spacing:1px;margin:2px 0 9px;color:#ffe8c9;text-shadow:0 1px 3px #281717}#instruction b{color:#a9d7c5;margin:0 7px}.control-row{display:flex;gap:12px;justify-content:center}.btn{border:1px solid #fff3d8;border-radius:15px;color:#644632;height:47px;box-shadow:0 4px 0 #51302699,0 4px 8px #24131844;padding:0 20px;min-width:135px;font-size:15px;font-weight:900;transition:transform .12s,filter .12s;touch-action:manipulation}.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #513026}.btn.mint{background:linear-gradient(#cdf4e6,#a3dace)}.btn.coral{background:linear-gradient(#ffd4c6,#eeaea6)}.btn small{font-size:11px;background:#49766324;border-radius:50%;padding:3px 6px;margin-left:4px}.btn>span{font-size:19px;vertical-align:-1px}.footer-links{display:flex;align-items:center;justify-content:center;gap:10px;font-size:9px;color:#e4c7aa;padding-top:11px}.footer-links button{border:0;background:none;color:#f2d5b6;padding:3px 0;font-size:10px;letter-spacing:.5px;min-height:44px}.version{opacity:.65}.legal{position:absolute;left:-9999px}.desktop-note{display:none}.modal{position:fixed;inset:0;background:#1f17216e;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;z-index:20;padding:16px;transition:opacity .2s}.modal[hidden]{display:none}.modal-panel{position:relative;background:linear-gradient(140deg,#fff5e8,#f4e2cc);border:3px solid #e4b390;outline:1px solid #fff2d9;outline-offset:4px;border-radius:25px;width:min(100%,348px);padding:26px 25px 23px;box-shadow:0 15px 60px #12081670;color:var(--ink);text-align:center;max-height:calc(100svh - 48px);overflow-y:auto;animation:panel-in .3s ease-out}.modal-kicker{font-size:10px;letter-spacing:2px;color:#ae7e5d;margin:0 0 9px}.modal-panel h2{font-size:27px;font-weight:900;line-height:1.3;margin:0 0 14px;color:#7b5140}.modal-panel p{font-size:12px;line-height:1.8;margin:9px 0 18px}.modal-panel .hero-food{height:84px;display:flex;justify-content:center;align-items:center;gap:4px;margin:7px 0 13px}.hero-food img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 4px 4px #a0754330)}.hero-food img:last-child{width:78px;height:78px}.hero-food b{font-size:24px;color:#bb9271}.modal-panel .btn{display:block;width:100%;margin-top:12px;font-size:16px}.text-btn{color:#a27b5d;background:none;border:0;font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:12px;min-height:44px}.close-btn{position:absolute;right:8px;top:7px;width:36px;height:36px;background:none;border:0;color:#a17c60;font-size:25px}.result-score{font-size:54px;font-weight:900;line-height:1;color:#cc857a;margin:18px 0 5px}.result-stats{display:flex;justify-content:center;gap:16px;margin:17px 0;padding:13px 0;border-top:1px solid #d6b798;border-bottom:1px solid #d6b798}.result-stats span{font-size:10px;color:#987153}.result-stats strong{display:block;font-size:18px;color:#735035}.record-badge{background:#a7d9c8;color:#477d66;font-size:11px;letter-spacing:2px;padding:4px 11px;border-radius:20px;display:inline-block}.tier-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 5px;margin:20px -7px}.tier-grid img{display:block;width:57px;height:57px;object-fit:contain;margin:0 auto 6px}.tier-grid figure{margin:0}.tier-grid figcaption{font-size:9px;line-height:1.3}.tier-grid .locked img{filter:grayscale(1);opacity:.3}.tier-grid .locked figcaption{color:#b7a58d}.modal-panel label{display:block;text-align:left;font-size:12px;margin:17px 0 6px}.rating-row{display:flex;gap:6px}.rating-row button{flex:1;border:1px solid #d9b99c;border-radius:10px;padding:8px 3px;font-size:11px;background:#fffbf2;color:#8e715c;min-height:44px}.rating-row button.selected{background:#b9e2d3;border-color:#70ae97;color:#3b735d}.modal-panel textarea{width:100%;resize:vertical;border:1px solid #d9b99c;background:#fffcf7;border-radius:12px;padding:11px;font:inherit;font-size:12px;color:#76503c;min-height:78px}.feedback-note{font-size:10px!important;color:#a58367;line-height:1.6!important;margin-bottom:0!important}#toast{position:fixed;z-index:50;bottom:35px;left:50%;transform:translate(-50%,15px);background:#fff0dc;color:#75503c;border:1px solid #c79d79;border-radius:20px;padding:10px 17px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;white-space:nowrap;box-shadow:0 5px 16px #20142040}#toast.show{opacity:1;transform:translate(-50%,0)}@keyframes panel-in{from{opacity:0;transform:translateY(15px) scale(.96)}to{opacity:1;transform:none}}@keyframes chef-pop{50%{transform:rotate(-8deg) scale(1.1)}}@keyframes combo-pop{0%{opacity:0;transform:scale(.7) translateY(10px)}20%,65%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translateY(-20px)}}@media(min-width:800px){:root{--stage-width:min(420px,calc((100svh - 266px)*.71186))}body{background-size:cover;background-position:center 60%}.game-shell{margin-left:calc(50% - 210px);border-left:1px solid #e5b88322;border-right:1px solid #e5b88322;background:linear-gradient(#30232610,#57302420);max-width:460px}.desktop-note{display:block;position:fixed;top:24%;right:calc(50% + 270px);width:230px;color:#fff0d7;text-shadow:0 2px 8px #211119}.note-kicker{font-size:10px;letter-spacing:2px;color:#d6b798}.desktop-note h2{font-size:36px;font-weight:900;line-height:1.55;letter-spacing:3px;margin:18px 0}.desktop-note p{font-size:12px;line-height:2;letter-spacing:1px}.desktop-note p.small{font-size:10px;color:#dbc1a5}.note-rule{width:35px;height:2px;background:#ccae86;margin:20px 0}.desktop-note button{background:none;border:0;border-bottom:1px solid #c3a789;color:#e0c6a6;padding:7px 0;font-size:11px}}@media(max-height:740px){:root{--stage-width:min(100vw - 26px,420px,calc((100svh - 280px)*.71186))}.game-shell{padding-top:5px}.topline{height:44px}.icon-btn{height:44px;width:44px;font-size:19px}h1{font-size:32px;margin-bottom:6px}.scoreboard{height:48px}.score-card strong{font-size:23px}.score-card.best strong{font-size:20px}.controls{max-width:330px}.btn{height:44px;font-size:14px}.footer-links{padding-top:7px}.chef{width:86px;height:90px;left:-4px;bottom:-3px}.chef div{left:63px;max-width:190px;font-size:9px;bottom:4px}.round-info{bottom:32px;font-size:9px}#instruction{margin-bottom:7px}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}@media print{button,.modal,.desktop-note,.footer-links{display:none!important}}

/* 0.2: keep the small food visible; the chef sits outside the playable bowl. */
.wordmark{font-size:14px;letter-spacing:.8px}.wordmark small{font-size:8px;padding:3px 5px;letter-spacing:.5px}
.title-row{display:flex;align-items:center;justify-content:center;gap:15px;margin:6px 0 9px}.title-row h1{margin:0;font-size:42px}
.mode-pill{border:1px solid #d9ba9377;border-radius:20px;padding:7px 11px;min-height:36px;font-size:11px;color:#f6e6ce;background:#503626c9;box-shadow:0 2px 6px #21151d50;white-space:nowrap}.mode-pill span{padding-left:5px;color:#b7ead7}
.chef{left:-19px;bottom:1px;width:86px;height:90px}.chef div{left:78px;bottom:2px;max-width:190px}
.mode-options{display:grid;gap:9px;text-align:left;margin:18px -8px 8px}.mode-choice{display:grid;grid-template-columns:1fr auto;align-items:center;border:1px solid #dcb599;border-radius:13px;background:#fff9ed;padding:10px 12px;min-height:65px;color:#79553f;text-align:left}.mode-choice strong{font-size:17px}.mode-choice span{font-size:10px;color:#ae876a}.mode-choice small{grid-column:1/-1;font-size:10px;line-height:1.5;margin-top:5px}.mode-choice.active{border-color:#6daa97;background:#d9efe2}.mode-choice b{font-size:18px;color:#9cbeab}.mode-explain{font-size:11px!important;color:#a58365}.lab-sliders{border-top:1px solid #d5b798;padding-top:10px;text-align:left}.lab-sliders label{display:flex;justify-content:space-between;font-size:12px;margin:10px 0 4px}.lab-sliders input{width:100%;accent-color:#78b49f;min-height:32px}.lab-sliders output{color:#9e7763;font-weight:900}
.arcade-options{display:grid;gap:10px;margin:16px -8px 8px}.arcade-choice{display:flex;align-items:center;gap:12px;text-decoration:none;border:1px solid #ddbc9d;background:#fff9ef;border-radius:14px;padding:10px;color:#7c5541;text-align:left}.arcade-choice img{width:54px;height:54px;object-fit:contain}.arcade-choice strong{display:block;font-size:18px}.arcade-choice small{display:block;font-size:11px;color:#a68565;margin-top:3px}
@media(max-height:740px){.title-row{gap:11px;margin:5px 0 7px}.title-row h1{font-size:32px}.mode-pill{font-size:10px;padding:5px 9px;min-height:33px}.chef{left:-19px;bottom:1px;width:80px;height:84px}.chef div{left:71px;bottom:2px;max-width:184px;font-size:9px}.mode-choice{min-height:56px;padding:8px 10px}.mode-options{gap:7px;margin-top:12px}.mode-choice strong{font-size:15px}}

.wordmark{color:inherit;text-decoration:none}

/* 0.2.2: reactions have their own footer row, entirely outside the canvas. */
:root{--stage-width:min(100vw - 16px,420px,calc((100svh - 336px)*.71186))}
.controls .chef{position:relative;left:auto;bottom:auto;width:100%;height:46px;margin:0 0 4px;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:27px 19px;align-items:center;gap:0 7px;text-align:left;z-index:auto}
.controls .chef img{position:static;grid-column:1;grid-row:1/3;width:40px;height:40px;justify-self:center;align-self:center;transform-origin:50% 90%}
.controls .chef div{position:static;left:auto;bottom:auto;width:auto;max-width:none;margin:0;box-shadow:none}
.controls .chef #chef-line{grid-column:2;grid-row:1;justify-self:start;max-width:100%;font-size:10px;line-height:1.35;padding:4px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.controls .chef #instruction{grid-column:2;grid-row:2;border:0;border-radius:0;background:none;color:#ffe8c9;padding:0 4px;font-size:10px;line-height:16px;letter-spacing:.6px}
.controls .chef.react img{animation:chef-nod .38s ease-out}
.footer-links{padding-top:6px}
@keyframes chef-nod{50%{transform:translateY(2px) rotate(-5deg) scale(1.03)}}
@media(min-width:800px){:root{--stage-width:min(420px,calc((100svh - 336px)*.71186))}}
@media(max-height:740px){:root{--stage-width:min(100vw - 26px,420px,calc((100svh - 304px)*.71186))}.footer-links{padding-top:3px}}

/* 0.2.3: opinion forms removed; keep a clear, touchable route to the official site. */
.footer-links .site-home{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#f2d5b6;font-size:10px;letter-spacing:.5px;text-decoration:none}.modal-panel>.site-home{display:flex;align-items:center;justify-content:center;min-height:44px;margin:4px 0 -4px;text-decoration:underline;touch-action:manipulation}.site-home span{margin-left:3px}.site-home:focus-visible{outline:3px solid #b1edee;outline-offset:2px}

.site-home{min-width:44px}

/* 0.2.4: the aiming and merge recipe stay in the existing footer, off the bowl. */
.score-card.best{position:relative;overflow:hidden;padding-top:1px;padding-bottom:1px}
.score-card.best::after{content:"";position:absolute;left:0;bottom:0;width:var(--record-progress,0%);height:3px;background:#89bca6;transition:width .22s ease-out;pointer-events:none}
.score-card.best strong{font-size:20px;line-height:1.1;padding-top:0}
.score-card.best #record-gap{font-size:9px;line-height:12px;letter-spacing:0;white-space:nowrap;color:#8f6b50}
.controls .chef #instruction{display:flex;align-items:center;min-height:19px;overflow:hidden;white-space:nowrap;letter-spacing:.2px}
.merge-recipe{display:inline-flex;align-items:center;gap:3px;color:#cef4dc;line-height:18px}
.controls .chef .merge-recipe img{position:static;display:inline-block;grid-column:auto;grid-row:auto;width:18px;height:18px;object-fit:contain;filter:drop-shadow(0 1px 1px #20151850)}
.controls .chef #instruction .merge-recipe b{font-size:10px;margin:0;color:#ffe7c2}
.merge-recipe>span{margin-left:2px;font-size:10px;font-weight:900}
.aim-hint.pair{color:#c6f8dc}
.score-difference{color:#9e7557;font-variant-numeric:tabular-nums}
@media(max-height:740px){.score-card.best strong{font-size:18px}.score-card.best #record-gap{font-size:8px;line-height:10px}}
@media(prefers-reduced-motion:reduce){.score-card.best::after{transition:none}}

/* The instructions and evolution collection each have a visible entry on mobile. */
.footer-links{gap:7px}.footer-links button{min-width:44px}.title-row{gap:10px}.title-row h1{font-size:clamp(30px,9vw,40px)}.modal-panel .mode-summary{font-size:11px;color:#9c775c;margin:0 0 9px}.help-copy{text-align:left}.modal-panel .help-copy p{margin:14px 0;font-size:12px}.help-copy strong{color:#805342}

.chef .mm-cinema-progress{grid-column:1/-1;font-size:11px;padding:3px 6px;min-height:0;line-height:1.4}

/* Pot layout hotfix: reserve real header/footer space before sizing the bowl. */
.game-shell{height:100svh;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;justify-items:center;align-items:stretch;margin-top:0;margin-bottom:0}

.game-shell>.header,.game-shell>.member-bar,.game-shell>.controls{min-width:0}

.game-shell .title-row{flex-wrap:wrap}

.game-shell .title-row h1{max-width:100%}
.game-shell:has(>.member-bar){grid-template-rows:auto auto minmax(0,1fr) auto}
.game-shell>.member-bar{width:100%;margin:6px 0 8px;flex:none}
.game-shell>.member-bar span{color:#ffe9ce;text-shadow:0 1px 3px #221611}
.game-shell .stage-wrap{width:auto;height:min(100%,590px,calc((100vw - 32px)*1.4047619));aspect-ratio:420/590;max-width:100%;min-height:0;justify-self:center;align-self:center;margin-top:0}
.game-shell canvas:focus-visible{outline-offset:-2px;outline-width:2px}
.game-shell .scoreboard{height:auto;min-height:60px}
.game-shell .score-card{min-height:60px;padding:3px 8px 6px;display:flex;flex-direction:column;justify-content:center}
.game-shell .score-card.best{padding:3px 8px 6px}
.game-shell .score-card.best #record-label{font-size:9px;line-height:13px;letter-spacing:1px}
.game-shell .score-card.best strong{font-size:20px;line-height:22px;padding-top:0}
.game-shell .score-card.best #record-gap{font-size:9px;line-height:12px}
.game-shell .controls .chef{height:auto;grid-template-rows:minmax(27px,auto) minmax(19px,auto);grid-auto-rows:auto;row-gap:3px;margin-bottom:6px}
.game-shell .controls .chef .mm-cinema-progress{grid-row:3;margin:0;min-height:24px}
.game-shell .control-row .btn{flex:1;min-width:0;min-height:44px;height:auto;padding:5px 10px;line-height:1.25}
.game-shell .footer-links{flex-wrap:wrap;row-gap:0}
#toast{left:var(--pot-toast-left,50%);bottom:var(--pot-toast-bottom,35px);max-width:var(--pot-toast-width,calc(100vw - 32px));white-space:normal;text-align:center}
@media(max-height:660px){
 .game-shell>.member-bar{height:44px;min-height:44px;margin:0;padding:0;justify-content:flex-start;padding-right:153px;gap:7px}
 .game-shell>.member-bar span{font-size:10px;white-space:nowrap}
 .game-shell>.member-bar .member-open{min-height:44px;padding:7px 10px;white-space:nowrap}
 .game-shell .topline{height:0}
 .game-shell .wordmark{display:none}
 .game-shell .top-actions{position:absolute;right:16px;top:5px}
 .game-shell .title-row{margin:3px 0 6px;gap:8px}
 .game-shell .title-row h1{font-size:clamp(25px,7vw,28px)}
 .game-shell .scoreboard,.game-shell .score-card{min-height:54px}
 .game-shell .score-card,.game-shell .score-card.best{padding:2px 7px 3px}
 .game-shell .score-card.best strong{font-size:18px;line-height:20px}
 .game-shell .score-card.best #record-label{line-height:12px}
 .game-shell .score-card.best #record-gap{line-height:11px}
 .game-shell .controls .chef{grid-template-rows:minmax(24px,auto) minmax(17px,auto);row-gap:2px;margin-bottom:4px}
 .game-shell .controls .chef #chef-line{padding:3px 7px}
 .game-shell .controls .chef #instruction{min-height:17px;line-height:17px}
 .game-shell .controls .chef .mm-cinema-progress{min-height:22px;padding:2px 6px}
 .game-shell .footer-links{padding-top:0}
}
@media(max-height:460px) and (min-width:700px){
 .game-shell,.game-shell:has(>.member-bar){width:min(100%,960px);max-width:none;margin:0 auto;grid-template-columns:minmax(0,1fr) minmax(320px,380px);grid-template-rows:44px auto minmax(0,1fr);column-gap:16px}
 .game-shell>.member-bar{grid-column:2;grid-row:1}
 .game-shell>.header{grid-column:2;grid-row:2}
 .game-shell>.stage-wrap{grid-column:1;grid-row:1/-1}
 .game-shell>.controls{grid-column:2;grid-row:3;align-self:start;max-width:100%;padding-top:7px}
 .desktop-note{display:none}
}
