:root{--paper:#f5f1e7;--ink:#29392d;--muted:#778071;--line:#dbddce;--accent:#b96640;--green:#47664b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.65 system-ui,-apple-system,"Microsoft JhengHei",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #b96640;outline-offset:3px}button{border:1px solid var(--line);background:transparent;border-radius:7px;padding:7px 12px}button:hover:not(:disabled){background:#e5e8db}a{color:inherit;text-decoration:none}button[aria-pressed=true]{background:#e3e9d7;border-color:#668063}.shell{max-width:1240px;margin:auto;padding:0 40px}nav{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);height:79px}nav>div{display:flex;gap:22px;align-items:center}.brand{font-weight:900;letter-spacing:2px;font-size:21px}.brand span{font-size:9px;letter-spacing:1.7px;margin-left:15px;font-weight:500;color:var(--muted)}header{display:flex;justify-content:space-between;align-items:center;padding:36px 0 30px}.eyebrow{font-size:10px;letter-spacing:2.1px;color:var(--muted);font-weight:650;margin:0 0 10px}.eyebrow i{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;margin-right:8px}h1{font-size:42px;letter-spacing:1px;margin:0;font-weight:750;line-height:1.3}h1 span{color:var(--accent)}.intro{color:var(--muted);margin:13px 0 0}.best{display:grid;text-align:right}.best small{font-size:11px;color:var(--muted)}.best strong{font:45px Georgia;margin:3px 0}.best em{font:13px system-ui;margin-left:8px;color:var(--muted)}.game{border:1px solid #cbd0bd;border-radius:13px;overflow:hidden;background:#faf8f0}.gamebar,.gamefoot{display:flex;justify-content:space-between;align-items:center;padding:12px 22px}.gamebar{background:#e9edde;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:1.6px}.gamebar b{font-weight:400;letter-spacing:.5px;color:var(--muted);margin-left:10px}.gamebar button{font-size:12px;padding:3px 10px}.steps{list-style:none;display:flex;margin:0;padding:15px 23px;border-bottom:1px solid var(--line);gap:12px}.steps li{flex:1;color:#939987;font:italic 15px Georgia;white-space:nowrap}.steps li span{font:12px system-ui;margin-left:7px}.steps li.active{color:var(--accent);font-weight:700}.steps li.done{color:#527650}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:470px}.scene-wrap{position:relative;min-width:0;background:#e8e8d6;overflow:hidden}#scene{width:100%;height:100%;min-height:470px;touch-action:none;cursor:crosshair}#scene canvas{width:100%;height:100%;display:block}.scene-caption{position:absolute;top:22px;left:24px;right:24px;display:flex;justify-content:space-between;z-index:1;pointer-events:none;font:10px system-ui;letter-spacing:1.8px;color:#64725e}.scene-caption span+span{letter-spacing:.5px}.scene-hint{position:absolute;bottom:22px;left:15px;right:15px;text-align:center;font-size:12px;color:#56644e;pointer-events:none}aside{padding:26px 25px;border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0}h2{font-size:22px;line-height:1.5;letter-spacing:.4px;margin:0 0 8px}#instruction{color:var(--muted);font-size:12px;margin:0 0 18px;min-height:36px}#controls{flex:1}.primary{background:var(--green);color:#fff;border:0;width:100%;padding:13px 15px;text-align:center;border-radius:6px;font-weight:600}.primary:hover:not(:disabled){background:#36573c}.feedback{color:var(--accent);font-size:12px;min-height:20px;margin:12px 0 10px}.gamefoot{border-top:1px solid var(--line);color:#838b79;font-size:10px;letter-spacing:1px}.tips{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;padding:28px 0}.tips div{border-left:2px solid #d2d7c3;padding-left:16px}.tips b{font-size:11px;color:#69785b}.tips p{font-size:12px;color:var(--muted);margin:5px 0}footer{border-top:1px solid var(--line);padding:18px 0 28px;font-size:9px;letter-spacing:1.5px;color:#8e9584;display:flex;justify-content:space-between}.choice-row{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 14px}.choice-row button{flex:1;white-space:nowrap;font-size:12px;padding:7px}.label{display:flex;justify-content:space-between;font-size:11px;color:#6e7b62;margin:12px 0 5px}.timing{height:24px;background:#e6ddc7;position:relative;border-radius:5px;overflow:hidden;margin:12px 0 22px}.timing .sweet{position:absolute;left:40%;width:20%;height:100%;background:#a6ba8a}.timing .needle{position:absolute;width:4px;height:100%;background:var(--accent);left:50%}.minor{width:100%;margin:7px 0;padding:10px;background:#f2ead9;border-color:#ded5bf}.ingredients{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.ingredient{font-size:10px;padding:6px 2px;border-radius:6px;position:relative}.ingredient b{display:block;font-size:22px;font-weight:400;line-height:1.4}.ingredient[aria-pressed=true]:after{content:'✓';position:absolute;right:4px;top:1px;color:#47664b}.meter{height:7px;border-radius:10px;background:#e1e2d3;overflow:hidden;margin:6px 0 11px}.meter i{display:block;height:100%;width:0;background:var(--accent);transition:width .15s}.cook-meter{position:relative;height:20px;background:linear-gradient(90deg,#ce8f88,#ab7560,#81533d,#35291f);border-radius:4px}.cook-meter i{position:absolute;top:-4px;width:3px;height:28px;background:white;box-shadow:0 0 0 1px #354331}.cook-meter b{position:absolute;top:2px;height:16px;border:1px dashed white;width:12%;transform:translateX(-50%)}.micro{font-size:10px;color:#8a907d;margin:7px 0}.result-score{font:68px Georgia;color:var(--accent);line-height:1.1;margin:12px 0}.result-score small{font:14px system-ui;color:var(--muted)}.result-score b{font:21px Georgia;border:1px solid #c2c9b1;border-radius:50%;display:inline-grid;place-items:center;width:39px;height:39px;vertical-align:middle;margin-left:20px;color:var(--green)}.score-row{display:flex;justify-content:space-between;font-size:12px;border-bottom:1px dashed var(--line);padding:5px 0}.review{font-size:11px;color:#707b66;margin:12px 0;padding-left:16px}.review li{margin-bottom:5px}.pause-overlay{position:absolute;inset:0;z-index:5;background:#f5f1e7ed;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:30px}.pause-overlay .primary{max-width:240px}.pause-overlay[hidden]{display:none}.flash{position:absolute;inset:0;background:#fff4d9;opacity:0;pointer-events:none}.flash.play{animation:puff .7s ease-out}@keyframes puff{0%{opacity:1}100%{opacity:0}}.fallback{height:100%;display:grid;place-items:center;font-size:90px}.saved{color:#47664b}.fallback small{font-size:12px}.swipe-note{text-align:center;padding:16px;background:#efeddf;border-radius:7px;font-size:12px;color:#7e886e}
@media(max-width:950px){.shell{padding:0 22px}.workspace{grid-template-columns:minmax(0,1fr) 290px}aside{padding:22px 18px}h1{font-size:35px}.scene-caption span+span{display:none}}
@media(max-width:650px){.shell{padding:0 14px}nav{height:60px}nav>div{gap:10px;font-size:11px}.brand{font-size:17px}.brand span{display:none}header{padding:23px 0}h1{font-size:27px}.intro{font-size:11px}.best strong{font-size:32px}.best small{font-size:9px}.eyebrow{font-size:8px;letter-spacing:1.3px}.workspace{grid-template-columns:1fr}.scene-wrap{height:270px}#scene{min-height:270px}.scene-caption{top:14px;left:16px}.scene-hint{bottom:12px;font-size:11px}aside{border-left:0;border-top:1px solid var(--line);padding:20px}h2{font-size:21px}.steps{padding:12px;gap:5px}.steps li{font-size:12px}.steps li span{font-size:10px;margin-left:3px}.gamebar{padding:9px 14px}.gamebar b{display:none}.gamefoot{padding:10px;font-size:8px;letter-spacing:0}.ingredients{grid-template-columns:repeat(4,1fr)}.ingredient{font-size:11px}.tips{gap:10px;padding:23px 0}.tips div{padding-left:8px}.tips b{font-size:9px}.tips p{font-size:10px}footer{font-size:8px;letter-spacing:.5px}#instruction{min-height:0;margin-bottom:12px}.feedback{margin-top:6px}}
@media(max-height:500px) and (min-width:651px){header,.tips,footer{display:none}nav{height:45px}.workspace{min-height:340px}#scene{min-height:340px}.gamebar{padding:4px 15px}.steps{padding:8px 16px}aside{padding:14px}.gamefoot{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep the cooking surface in the viewport; only the recipe panel scrolls. */
body.cooking{overflow:hidden;overscroll-behavior:none}.cooking .game{position:fixed;inset:12px;z-index:10;display:flex;flex-direction:column;max-width:1320px;margin:auto}.cooking .workspace{flex:1;min-height:0}.cooking .scene-wrap{min-height:0;height:100%}.cooking #scene{height:100%;min-height:0}.cooking aside{overflow:auto;overscroll-behavior:contain}.cooking .gamefoot{display:none}.cooking #next{position:sticky;bottom:0;flex-shrink:0;box-shadow:0 0 0 7px #faf8f0}
@media(max-width:650px){.cooking .game{inset:0;border-radius:0}.cooking .workspace{grid-template-rows:minmax(140px,32%) minmax(0,1fr)}.cooking .steps{padding:9px 12px}.cooking aside{display:block;padding:14px 18px}.cooking #instruction{font-size:11px}.cooking .feedback{min-height:16px}.cooking h2{font-size:19px}.cooking #next{margin-top:8px}.cooking .scene-caption{top:10px}.cooking .scene-hint{bottom:7px;font-size:10px}.cooking .eyebrow{margin-bottom:4px}}
.game-actions{display:flex;align-items:center;gap:8px;letter-spacing:0}.game-actions a{font-size:11px}@media(max-width:400px){.gamebar>span{font-size:8px;letter-spacing:.8px}.game-actions{gap:4px}.game-actions button{padding:4px 6px;font-size:10px}.game-actions a{font-size:10px}}
.cut-options{display:grid;gap:9px}.cut-option{text-align:left;padding:12px 13px;background:#f5f1e5}.cut-option strong{display:flex;justify-content:space-between;font-size:16px}.cut-option small{font-size:10px;font-weight:400;color:var(--muted)}.cut-option span{display:block;font-size:11px;margin-top:4px}.cut-option em{font-style:normal;font-size:10px;color:#879075}.cut-note{font-size:12px;color:#7b664c;margin:14px 0}.cooking aside{display:flex;overflow:hidden}.cooking #controls{overflow:auto;overscroll-behavior:contain;min-height:0}.cooking #chapter,.cooking #title,.cooking #instruction,.cooking #feedback{flex-shrink:0}.cooking #next{position:static;box-shadow:none;margin-top:0}.cooking #feedback{min-height:16px;margin:8px 0}.cooking .steps li{font-size:12px}.cooking .steps li span{margin-left:4px}
@media(max-width:360px){.steps li{font-size:10px}.steps li span{font-size:9px;margin-left:2px}.cooking .steps li{font-size:10px}.cooking .steps li span{margin-left:2px}.cooking #chapter{font-size:7px}.cooking #instruction{margin-bottom:8px}}
.cooking nav,.cooking header,.cooking .tips,.cooking footer{visibility:hidden}
@media(max-height:500px) and (min-width:651px){.cooking #instruction{display:none}.cooking #title{font-size:16px;margin-bottom:5px}.cooking #chapter{font-size:8px;margin-bottom:3px}.cooking aside{padding:10px 14px}.cooking #next{padding:8px}.cooking #feedback:empty{display:none}.cooking .label:first-child{margin-top:3px}}
@media(max-height:650px) and (max-width:650px){.cooking .workspace{grid-template-rows:minmax(100px,28%) minmax(0,1fr)}.cooking #title{font-size:17px}.cooking .scene-caption{font-size:8px}}
