:root{
  --ink:#603b2c;--nut:#78472e;--berry:#ba3d3a;--red:#ed5c48;--jade:#257a6c;--leaf:#62aa8c;--cream:#fff8df;--gold:#f4ba44;
  color:var(--ink);background:#fbd893;color-scheme:light;font:600 16px/1.35 "Hiragino Maru Gothic ProN","PingFang HK","Microsoft JhengHei","Noto Sans HK",system-ui,sans-serif;
}
*{box-sizing:border-box}body{margin:0}html,body{width:100%;min-height:100%;overscroll-behavior:none}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none}
button:focus-visible{outline:4px solid #194e84;outline-offset:4px}button:active{transform:translateY(2px)}[hidden]{display:none!important}
h1,h2,p{margin:0}.sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#shell{position:relative;min-height:100svh;isolation:isolate}.scene{min-height:100svh;position:relative;isolation:isolate}
.round{flex:none;width:46px;height:46px;display:grid;place-items:center;padding:0;border-radius:50%;border:2px solid #885331;background:#fff4cf;box-shadow:inset 0 2px #fffcdf,0 3px #ac7350;color:#78472e}
.round svg{width:23px;height:23px;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;fill:none}.back-arrow:before{content:"";width:13px;height:13px;border:solid currentColor;border-width:0 0 4px 4px;rotate:45deg;margin-left:5px}
.start-button,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:.6em;line-height:1.2;font-weight:900;letter-spacing:.05em;white-space:nowrap;padding:.6em 1.35em;border-radius:1.8em;min-height:47px}
.start-button{background:linear-gradient(#72c2a5 0 8%,#46a58a 12%,#33947d 50%,#26836e 52%,#23816e);border:3px solid #395841;box-shadow:inset 0 0 0 2px #b2d8a7,0 4px 0 #663e2c,0 6px 0 2px #ffedbc;color:#fffce7;text-shadow:0 2px #286b50;font-size:clamp(19px,2vw,29px)}
.start-button.red{background:linear-gradient(#ff9371,#ed6a50 48%,#dc5842 51%,#cb473a);border-color:#943c29;box-shadow:inset 0 0 0 2px #ffb48d,0 4px #733e2b,0 5px 0 2px #fff0c9;text-shadow:0 2px #aa4b34}
.secondary{background:#ffefc8;border:2px solid #b98d64;box-shadow:0 3px #ae865f;color:#765032}
.splash{overflow:hidden;height:100svh;min-height:340px;background:#ffe5b4}
.top-sound{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));z-index:1}

.logotype{width:100%;line-height:0;transform:rotate(-4deg);filter:drop-shadow(0 5px 2px #843f241c)}.logotype img{width:100%;height:auto;display:block}
.title-ribbon{position:relative;background:#b64437;color:#fff6d2;font-size:clamp(18px,2.1vw,37px);font-weight:950;letter-spacing:.09em;transform:rotate(-3deg);padding:.18em .84em .23em;margin:1% 0 12%;line-height:1.25;border-top:2px solid #e78959;border-bottom:2px solid #82432b;box-shadow:0 2px #fff3bc}
.title-ribbon:before,.title-ribbon:after{content:"";position:absolute;width:17px;top:10%;height:100%;background:#9d3f34;z-index:-1}.title-ribbon:before{right:100%;clip-path:polygon(0 0,100% 5%,100% 100%,0 100%,27% 50%)}.title-ribbon:after{left:100%;clip-path:polygon(0 5%,100% 0,73% 50%,100% 100%,0 100%)}.title-ribbon i{font-style:normal;color:#ffc87a;font-size:.65em;vertical-align:middle}
.splash .start-button{padding:.57em 1.4em}.book-glyph{width:1.12em;height:.86em;border:2px solid #fff8dc;border-radius:3px 3px 1px 1px;position:relative;transform:rotate(-6deg)}.book-glyph:after{content:"";position:absolute;top:0;bottom:0;left:48%;border-left:2px solid #fff8dc}
.book-screen,.finish,.kitchen{--gingham:#d55c52;background-color:#ee9883;background-image:repeating-linear-gradient(0deg,transparent 0 13px,#ffe9c549 13px 26px),repeating-linear-gradient(90deg,transparent 0 13px,#ffe9c544 13px 26px)}
.book-screen{display:grid;align-content:center;justify-items:center;padding:80px 4vw 36px;min-height:max(100svh,530px);background-color:#cb5a50}
.booktop{position:absolute;left:max(3vw,16px);right:max(3vw,16px);top:max(14px,env(safe-area-inset-top));display:flex;align-items:center;gap:12px}
.stamp-count{margin-left:auto;background:#fff0c5;color:var(--berry);border:2px solid #af7155;padding:.42em .95em;border-radius:2em;font-size:clamp(14px,1.35vw,19px);box-shadow:0 2px #9d5540}
.binder{--accent:#b74736;position:relative;display:grid;grid-template-columns:minmax(220px,.76fr) minmax(0,1.24fr);width:min(1060px,94vw);height:min(72svh,645px);min-height:410px;border:8px solid #376f59;background:#f5dfae;border-radius:19px 26px 26px 19px;box-shadow:inset 0 0 0 2px #9a794c,1px 3px 0 #e5b980,1px 6px 0 #f7dead,2px 9px 0 #47785b,2px 13px #2d5745,2px 18px 19px #70382350}
.index-leaf,.recipe-leaf{min-width:0;position:relative;padding:clamp(15px,2.4vw,36px)}
.index-leaf{border-radius:11px 0 0 11px;background:linear-gradient(90deg,#fff1cb,#f7e5bb 96%,#d4b78d);display:flex;flex-direction:column;justify-content:center;gap:clamp(15px,3.3vh,34px);padding-right:clamp(24px,3vw,48px)}
.index-leaf h2{font-size:clamp(23px,2.2vw,35px);color:#835037;letter-spacing:.08em}
.recipes{display:grid;gap:clamp(9px,2vh,18px)}.tab{--tab:#b84c3a;border:2px solid #d9bd92;border-left:7px solid var(--tab);border-radius:11px;background:#fff9e4;box-shadow:0 3px #d7be94;display:flex;align-items:center;gap:9px;text-align:left;padding:6px 9px 6px 3px;position:relative;min-width:0}
.tab[data-dish=soup]{--tab:#3a8972}.tab[data-dish=cookies]{--tab:#a75575}.tab img{width:clamp(42px,5.4vw,78px);height:clamp(42px,5.4vw,78px);object-fit:contain}.tab b{display:block;font-size:clamp(16px,1.65vw,23px)}.tab small{display:block;color:#96694b;font-size:14px;letter-spacing:.12em}.tab[aria-pressed=true]{border-color:var(--tab);background:#ffedbc;transform:rotate(-1.2deg) translateX(3px);box-shadow:0 3px #b38b5d}
.binding{position:absolute;top:12%;bottom:12%;left:38%;width:34px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;transform:translateX(-50%);z-index:2;pointer-events:none}
.binding i{display:block;position:relative;width:32px;height:12px;border:2px solid #715338;border-radius:42%;background:linear-gradient(#9a7b53,#f6df9b 30%,#d2ba7a 63%,#967342);box-shadow:0 3px 4px #855f3d52}
.recipe-leaf{--accent:#bc4b3e;border-radius:0 16px 16px 0;background:linear-gradient(90deg,#e5c99f,#fff5d8 4%,#fff9e6 84%,#f4e1b4);display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;align-items:center;gap:5px;padding-left:clamp(22px,3vw,46px);padding-bottom:clamp(16px,2.2vw,30px)}
[data-dish=soup] .recipe-leaf{--accent:#397b65}[data-dish=cookies] .recipe-leaf{--accent:#9d5570}
.folio{display:flex;justify-content:space-between;width:100%;color:var(--accent);font-weight:900;letter-spacing:.06em;align-items:center;font-size:clamp(14px,1.2vw,17px)}.folio span:first-child{border-bottom:2px solid currentColor;padding:0 2px 3px}
.dish-window{position:relative;align-self:stretch;width:100%;min-height:0;display:grid;place-items:center;isolation:isolate}
.dish-halo{position:absolute;inset:9% 10%;z-index:-1;background:radial-gradient(ellipse at center,#f2d99a,transparent 67%);border-radius:50%}
.dish-window img{position:absolute;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 3px #945f3526)}
.dish-window.turn img{animation:plate-in .33s ease-out both}
@keyframes plate-in{from{opacity:.3;transform:translateX(14px) rotate(5deg) scale(.94)}to{opacity:1;transform:none}}
.best-stamp{position:absolute;right:1%;bottom:2%;color:#b75040;border:3px double currentColor;font-size:14px;border-radius:50%;padding:8px 5px;rotate:-12deg;background:#fff5dceb}
.recipe-info{text-align:center}.recipe-info h2{font-size:clamp(23px,3vw,42px);letter-spacing:.03em;color:var(--accent);font-weight:950}.recipe-info p{color:#7d624b;margin:3px 0 7px;font-size:clamp(14px,1.35vw,19px)}.recipe-leaf>.start-button{font-size:clamp(18px,1.5vw,24px);min-width:9em;padding:.49em 1.25em}
.kitchen{height:100svh;min-height:280px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background-color:#c78e59}
.hud{background:linear-gradient(#d85c4e,#bc493e);border-bottom:3px solid #9a4535;display:flex;align-items:center;gap:clamp(8px,1.4vw,24px);padding:6px max(3.4vw,env(safe-area-inset-left));color:#fff6d5;min-width:0;z-index:2;box-shadow:0 2px #ffdd9e}
.pause-glyph:before{content:"";width:12px;height:17px;border:solid currentColor;border-width:0 4px}.hud .round{width:38px;height:38px}
.order{display:flex;align-items:center;gap:8px;min-width:0}.order img{width:43px;height:39px;object-fit:contain}.order strong{font-size:clamp(16px,1.45vw,24px);white-space:nowrap;text-shadow:0 2px #8d432e}
.steps{display:flex;align-items:center;gap:9px;margin-left:auto}.steps b{font-size:clamp(14px,1.3vw,19px);white-space:nowrap}#pips{display:flex;gap:4px}#pips i{height:10px;width:10px;border-radius:50%;background:#9b4639;border:1px solid #8c4036}#pips i.done{background:#f0bc49}#pips i.now{background:#ffedc5;box-shadow:0 0 0 2px #fff3cc5e}
.score{display:flex;align-items:center;gap:5px;background:#934239;border:1px solid #de8a69;border-radius:55px;padding:3px 12px 3px 8px;white-space:nowrap;line-height:1.15}.score span{color:#ffd866;font-size:1.25em}.score b{font:800 19px/1.3 ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;min-width:1.3ch}
.rotate{display:none;border:1px solid #987053;border-radius:20px;padding:5px 9px;background:#fff2cd;font-size:14px}
#worktop{display:grid;min-height:0;position:relative;place-items:center;isolation:isolate;background:repeating-linear-gradient(0deg,#bc8757 0 2px,#c69666 2px 7px,#c29261 7px 10px,#c69768 10px 54px)}
#worktop:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#805b423e,transparent 16%,transparent 84%,#805b423e),repeating-linear-gradient(45deg,#ffe8b90a 0 2px,transparent 2px 7px)}
#arena{position:relative;min-width:1px;min-height:1px;overflow:hidden;box-shadow:0 0 0 2px #966d47,0 2px 17px #774b343b}
#stage{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer}
.coach-wrap{background-color:#e8b687;background-image:repeating-linear-gradient(0deg,transparent 0 8px,#fff2c938 8px 16px),repeating-linear-gradient(90deg,transparent 0 8px,#fff2c94a 8px 16px);border-top:3px solid #a36d40;z-index:2;padding:6px max(2vw,env(safe-area-inset-left)) max(7px,env(safe-area-inset-bottom))}
.coach{display:flex;align-items:center;position:relative;gap:clamp(7px,1.4vw,21px);max-width:1200px;margin:auto}
.portrait{position:relative;flex:none;width:clamp(49px,6vw,82px);height:clamp(54px,7.2vh,82px);align-self:flex-end}
.portrait img{width:100%;height:115%;object-fit:contain;object-position:bottom;position:absolute;bottom:-5px;filter:drop-shadow(1px 2px 0 #fff6d0)}
.speech{flex:1;min-width:0;position:relative;border:2px solid #a97c52;border-radius:15px;background:#fff9e3;box-shadow:0 2px #ba936e;padding:6px clamp(9px,1.3vw,18px)}
.speech:before{content:"";position:absolute;background:#fff9e3;width:11px;height:11px;border-bottom:2px solid #a97c52;border-left:2px solid #a97c52;transform:rotate(45deg);left:-7px;top:45%}
.speech h2{color:#944130;font-size:clamp(18px,1.65vw,27px);line-height:1.2}.speech p{font-size:clamp(15px,1.2vw,19px);margin-top:2px}
.replay{width:37px;height:37px;color:#256c5d;border-color:#749479;background:#e9f1c8;box-shadow:0 2px #879470}.replay i{font-style:normal;font-size:21px}
.gauge{width:clamp(110px,14vw,200px);flex:none}.gauge-title{display:flex;align-items:center;gap:4px;color:#593a27;font-size:14px}.gauge-title img{width:24px;height:24px;object-fit:contain}.gauge-title strong{margin-left:auto;font-variant-numeric:tabular-nums}
#meter{height:13px;background:#936e50;border:2px solid #7e6049;border-radius:20px;overflow:hidden;margin:3px 0}#fill{display:block;height:100%;width:0;background:repeating-linear-gradient(122deg,#6abb96 0 8px,#9dd3a3 8px 13px);transition:width .13s linear}
.reward{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse,#ffe69a66,transparent 62%)}.reward b,.win-title h1{font-weight:1000;line-height:1.15;letter-spacing:.04em;color:#cc4934;-webkit-text-stroke:5px #fff7cf;paint-order:stroke fill;text-shadow:0 4px #ffe3a3,0 7px #895434}
.reward b{font-size:clamp(34px,5.7vw,84px);transform:rotate(-5deg);animation:stamp .4s ease-out both}
.reward span{margin-top:9px;background:#fff8d9;border:2px solid #b6824c;padding:4px 14px;border-radius:20px;font-weight:850}
.star-medal{border-radius:50%;width:clamp(32px,5vw,67px);aspect-ratio:1;display:grid;place-items:center;font-size:clamp(24px,3.6vw,49px);color:#fff2a0;background:linear-gradient(135deg,#ffe78a,#e69327);border:3px solid #a66f34;box-shadow:inset 0 0 0 3px #ffe69a,0 3px #b67b36}
@keyframes stamp{from{transform:translateY(-18px) rotate(-11deg) scale(1.3);opacity:0}65%{transform:rotate(-5deg) scale(.96)}to{transform:rotate(-5deg);opacity:1}}
.finish{min-height:100svh;display:grid;place-items:center;overflow:hidden;background-color:#6db097}
.banquet{position:relative;isolation:isolate;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;align-items:center;width:min(650px,94vw);height:min(88svh,760px);min-height:350px;background:#fff2c6;border-radius:46% 46% 18px 18px / 15% 15% 18px 18px;border:5px solid #bd8b4f;outline:3px solid #fff3c3;box-shadow:0 8px #805c37;padding:clamp(12px,2.4vh,28px) 20px;overflow:hidden}
.rays{position:absolute;inset:0;z-index:-1;background:repeating-conic-gradient(from 3deg at 50% 48%,#fff1c6 0 10deg,#ffe2a1 10deg 20deg)}
.win-title{text-align:center}#stars{font-size:clamp(22px,3.2vw,46px);color:#ea9a21;letter-spacing:4px;text-shadow:0 2px #9f5b2a}.win-title h1{font-size:clamp(34px,5.8vw,74px)}
.presentation{min-height:0;height:100%;width:100%;position:relative}.presentation img:first-child{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 4px #ac792f45);animation:plate-in .5s ease-out}
#cheer{position:absolute;height:50%;max-width:27%;object-fit:contain;right:0;bottom:0;filter:drop-shadow(2px 3px #fff4c5)}
.receipt{background:#fff9e8;text-align:center;border-block:2px dashed #bd9771;padding:6px 1.4em;width:min(100%,410px)}.receipt h2{font-size:clamp(20px,2.15vw,32px)}.receipt p{font-size:clamp(14px,1.3vw,18px);margin-top:3px}
.win-actions{display:flex;align-items:center;gap:16px;margin-top:clamp(10px,2vh,20px)}.win-actions .start-button,.pause-card .start-button{font-size:clamp(17px,1.7vw,22px)}
.scrim{position:absolute;inset:0;z-index:9;display:grid;place-items:center;background:#56362897;padding:15px}.pause-card{display:flex;flex-direction:column;gap:13px;align-items:center;background:#fff3d1;border:5px double #bb8056;box-shadow:0 7px #765137;border-radius:24px;padding:25px clamp(22px,4vw,65px);text-align:center}
.pause-card h2{font-size:30px;color:var(--berry)}.pause-card>.start-button,.pause-card>.secondary{width:100%}.pause-audio{display:flex;align-items:center;gap:10px;padding-bottom:4px}.pause-audio .round{width:34px;height:34px}
.pause-hat{width:61px;height:35px;position:relative;display:grid;place-items:end center}.pause-hat:before{content:"";background:#fff9e9;width:36px;height:17px;border:2px solid #a8866a;border-radius:4px;box-shadow:inset 0 -4px #eddcbb}.pause-hat i,.pause-hat i:before,.pause-hat i:after{position:absolute;border:2px solid #a8866a;border-radius:50%;background:#fff9ea;width:25px;height:21px;top:1px;left:9px}.pause-hat i:before,.pause-hat i:after{content:"";top:-6px;left:8px}.pause-hat i:after{left:22px;top:0}
@media(hover:hover){.tab:hover,.start-button:hover,.secondary:hover,.round:hover{filter:brightness(1.055)}}
@media(orientation:portrait) and (max-aspect-ratio:4/5){


  .title-ribbon{margin:1% 0 5%;font-size:clamp(16px,4.3vw,28px)}.splash .start-button{font-size:clamp(18px,4.1vw,25px)}
}
@media(max-width:720px) and (orientation:portrait){
  .book-screen{min-height:100svh;padding:70px 12px 20px}.binder{width:100%;height:min(80svh,760px);min-height:415px;display:flex;flex-direction:column;border-width:5px}
  .index-leaf{padding:9px 10px 12px;flex:none;gap:6px;border-radius:10px 10px 0 0;background:#f8e7bb}.index-leaf h2{font-size:20px}.recipes{display:flex;gap:5px}.tab{flex:1;justify-content:center;border:2px solid #ceb28d;border-bottom:4px solid var(--tab);padding:3px 2px;gap:3px;flex-direction:column}.tab img{width:42px;height:36px}.tab b{font-size:14px}.tab small{display:none}.tab[aria-pressed=true]{transform:rotate(-1.5deg) translateY(-1px)}
  .binding{left:10%;right:10%;width:auto;top:120px;height:20px;bottom:auto;transform:none;flex-direction:row;justify-content:space-around}.binding i{height:20px;width:9px}
  .recipe-leaf{padding:14px 14px 12px;background:linear-gradient(#e7cfa8,#fff5d9 5%,#fff8e5 88%,#f8e8c5);flex:1;min-height:0;border-radius:0 0 12px 12px}.recipe-info h2{font-size:25px}
}
@media(orientation:portrait){
  .rotate{display:block}.hud{padding:5px 7px;gap:6px}.steps{gap:0}#pips{display:none}.order img{display:none}.order strong{font-size:15px}.score{padding:3px 6px}.score b{font-size:16px}
  .kitchen{grid-template-rows:auto minmax(0,1fr) auto}.coach{display:grid;grid-template-columns:52px minmax(0,1fr) 37px;gap:6px;align-items:center}.coach-wrap{padding:9px 10px max(12px,env(safe-area-inset-bottom))}.gauge{grid-column:2/4;width:100%;display:flex;align-items:center;gap:7px}.gauge-title{gap:4px}.gauge-title img{width:20px;height:20px}#meter{flex:1}
  #shell.turned{position:absolute;top:0;left:100vw;width:100svh;height:100vw;min-height:0;transform:rotate(90deg);transform-origin:top left}#shell.turned .kitchen{min-height:0;height:100%;width:100%}
  #shell.turned .coach{display:flex;gap:8px}#shell.turned .coach-wrap{padding:3px 12px}#shell.turned .portrait{width:43px;height:44px}#shell.turned .speech{padding:3px 8px}#shell.turned .speech h2{font-size:16px}#shell.turned .speech p{font-size:14px}#shell.turned .gauge{width:105px;display:block}#shell.turned .hud{padding:2px 12px}#shell.turned .hud .round{height:31px;width:31px}
}
@media(max-height:560px) and (orientation:landscape){
  .book-screen{min-height:100svh;padding:48px 4vw 14px}.booktop{top:5px}.booktop .round,.top-sound{width:34px;height:34px}.stamp-count{font-size:14px}
  .binder{height:calc(100svh - 67px);min-height:210px;border-width:5px}.index-leaf,.recipe-leaf{padding:7px 23px}.index-leaf{gap:7px}.index-leaf h2{font-size:19px}.recipes{gap:5px}.tab{padding:3px;gap:5px}.tab img{width:38px;height:36px}.tab b{font-size:15px}.tab small{font-size:12px}.recipe-info h2{font-size:21px}.recipe-info p{font-size:14px;margin:0 0 3px}.recipe-leaf>.start-button{min-height:33px;font-size:16px;padding:.23em 1em}
  .title-ribbon{margin-bottom:6%}.splash .start-button{min-height:35px;font-size:16px}.hud{padding-block:3px}.hud .round{width:30px;height:30px}.order img{width:32px;height:29px}.coach-wrap{padding-block:3px}.portrait{width:46px;height:41px}.speech{padding-block:2px}.speech h2{font-size:17px}.speech p{font-size:14px}.gauge-title img{height:18px;width:18px}.replay{height:31px;width:31px}
  .banquet{height:94svh;min-height:250px;width:min(540px,83vw);padding:7px 14px}.win-title h1{font-size:28px}#stars{font-size:19px}.win-actions{margin-top:7px}.win-actions button{min-height:34px;padding:.32em 1em}.receipt{padding:2px}.receipt h2{font-size:18px}
}
@media(max-height:730px) and (orientation:portrait){.title-ribbon{margin-bottom:4%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.snapshot{position:absolute;left:0;bottom:2%;padding:4px 4px 3px;display:grid;justify-items:center;background:#fffaf0;border:1px solid #c4a17c;box-shadow:0 3px 6px #6e493d3a;rotate:-7deg;color:#80533a}
.snapshot img#photoPreview{position:static;width:clamp(52px,6vw,82px);height:auto;aspect-ratio:1.45;object-fit:cover;filter:none;animation:none}
.snapshot b{font-size:13px}.presentation.photo-mode #finishedDish{padding:3%;object-fit:contain}.snapshot:focus-visible{outline-color:var(--jade)}
/* Prevent a landscape canvas from contributing its old intrinsic width on rotation. */
.kitchen,#worktop{grid-template-columns:minmax(0,1fr);min-width:0;width:100%}
#arena{max-width:100%}.coach-wrap,.speech,.hud{min-width:0}.rotate{color:#604532}
.sr{top:0;left:0}
@media(orientation:portrait) and (max-width:600px){
  #shell:not(.turned) .kitchen{align-content:center;background-color:#ce8069}
  #shell:not(.turned) #worktop{background:linear-gradient(#ffe7bb99,#ffe7bb99),url('art/workbench.jpg') center/cover}
}
.goal-card{display:none}
@media(orientation:portrait) and (max-width:600px){
  #shell:not(.turned) .kitchen{grid-template-rows:auto minmax(0,1fr) auto auto;align-content:stretch;background-color:#ca7666}
  #shell:not(.turned) .goal-card{position:relative;margin:12px 7vw;min-height:0;display:grid;place-items:center;border:3px solid #bb8d5e;border-radius:13px;background:radial-gradient(ellipse,#fff5d3,#ffe0a7);box-shadow:0 3px #996041}
  .goal-card img{position:absolute;width:92%;height:90%;object-fit:contain}.goal-card figcaption{position:absolute;left:9px;top:7px;z-index:1;background:#fff1cb;color:#98533a;padding:3px 7px;border-radius:9px;font-size:13px}
  #shell:not(.turned) #worktop{aspect-ratio:16/9}
}
@keyframes title-arrive{from{opacity:0;transform:translateY(-15px) rotate(-7deg) scale(.94)}to{opacity:1;transform:rotate(-4deg) scale(1)}}
@keyframes scene-arrive{from{opacity:.55;translate:0 5px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:no-preference){
  .splash:not([hidden]) .logotype{animation:title-arrive .48s cubic-bezier(.2,.7,.3,1)}
  .book-screen:not([hidden]) .binder,.kitchen:not([hidden]) .coach,.finish:not([hidden]) .banquet{animation:scene-arrive .24s ease-out both}
}

/* The scenery and its title share one native-aspect frame at every window size. */
#home{height:100svh;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;background:#ffe8ad}
.theatre{position:relative;min-height:0;min-width:0;display:grid;place-items:center;container-type:size;isolation:isolate;background-color:#73bace;background-image:repeating-linear-gradient(90deg,transparent 0 21px,#2f81a22b 22px 28px,#d2f6e737 31px 42px),repeating-linear-gradient(0deg,transparent 0 8px,#fff4d815 8px 16px)}
.key-scene{position:relative;width:min(100%,calc((100svh - 86px)*1.7768));width:min(100cqw,calc(100cqh * 1.776833));aspect-ratio:1672/941;isolation:isolate;box-shadow:0 0 0 2px #82614a3d,0 0 18px #42575b40}
.scene-picture{display:block;position:absolute;inset:0;z-index:-1}.scene-picture img{width:100%;height:100%;display:block;object-fit:contain}
.cover-controls{position:absolute;inset:13% auto auto 2.7%;width:39%;display:flex;flex-direction:column;align-items:center}
.cover-controls .title-ribbon{font-size:clamp(15px,min(2.1vw,3.6vh),35px);margin:2% 0 8%}
.cover-controls .start-button{font-size:clamp(16px,min(2.05vw,3.5vh),27px);min-height:40px}
.dish-counter{display:flex;align-items:center;justify-content:center;gap:clamp(12px,3vw,46px);padding:5px max(13px,env(safe-area-inset-left)) max(5px,env(safe-area-inset-bottom));position:relative;z-index:1;color:#754634;background:repeating-linear-gradient(90deg,#fff3e5cc 0 16px,#ffcfc78c 16px 32px),#ffcfc8;border-top:4px solid #ad6b43;box-shadow:0 -3px #fff2d7, inset 0 3px #fff7d5}
.dish-counter h2{font-size:clamp(16px,1.7vw,25px);letter-spacing:.05em}.counter-dishes{display:flex;gap:clamp(12px,2.5vw,42px)}
.counter-dishes button{position:relative;display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:8px;padding:1px 9px;border:0;background:transparent;color:#68382d;font-weight:850;border-radius:12px}.counter-dishes button:hover,.counter-dishes button:focus-visible{background:#fff6d8}.counter-dishes img{width:clamp(45px,min(6vw,10vh),90px);height:clamp(42px,min(5vw,8vh),72px);object-fit:contain;filter:drop-shadow(0 2px 1px #824b372d)}
.counter-dishes span{font-size:clamp(14px,1.25vw,20px);text-shadow:0 1px #fff9e1}.app-badge{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 2px 1px #a7715747)}
@media(max-aspect-ratio:1/1){
  .theatre{background:#fff0c5}.key-scene{width:100%;height:100%;aspect-ratio:auto;display:grid;grid-template-rows:auto minmax(0,1fr);justify-items:center;background:linear-gradient(#ffe7b0,#fff0ba 50%,#f9deab)}
  .cover-controls{position:relative;inset:auto;grid-row:1;width:min(65%,36svh,420px);padding-top:max(9px,env(safe-area-inset-top));padding-bottom:7px}
  .cover-controls .title-ribbon{margin:0 0 5px;font-size:clamp(15px,2.65vh,24px)}
  .cover-controls .start-button{font-size:clamp(16px,2.6vh,22px);padding:.38em 1.1em;min-height:35px}
  .scene-picture{grid-row:2;position:relative;inset:auto;width:100%;height:100%;min-height:0;z-index:0;background:linear-gradient(#ffeab0 0,#ffebb7 75%,#f6d79a)}
  .scene-picture img{object-position:center bottom;max-width:100%}
  .top-sound{top:max(9px,env(safe-area-inset-top));right:max(9px,env(safe-area-inset-right));width:38px;height:38px}
  .dish-counter{gap:5px;padding:5px 5px max(5px,env(safe-area-inset-bottom))}.dish-counter h2{display:none}
  .counter-dishes{width:min(650px,100%);justify-content:space-around;gap:4px}.counter-dishes button{display:flex;flex-direction:column;gap:1px;flex:1;padding:1px 2px}.counter-dishes img{width:clamp(54px,13vw,83px);height:clamp(38px,6.15vh,65px)}
}
@media(max-height:450px) and (orientation:landscape){
  .cover-controls{top:5%;width:36%}.cover-controls .title-ribbon{font-size:14px;margin:1% 0 4%}.cover-controls .start-button{font-size:15px;min-height:30px;padding:.25em 1.1em}
  .counter-dishes img{width:40px;height:34px}.dish-counter{padding-block:2px}
}

.index-leaf .binding{left:100%}
.counter-track{display:flex;align-items:center;justify-content:center;gap:clamp(6px,1.6vw,24px);min-width:0}
.tray-arrow{width:42px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#984432;flex:none}
.tray-arrow:before{content:'';width:14px;height:14px;border:solid currentColor;border-width:0 5px 5px 0;border-radius:2px;rotate:-45deg;filter:drop-shadow(1px 2px 0 #fff8e6)}
.tray-arrow.prev:before{rotate:135deg}
.tray-arrow:hover,.tray-arrow:focus-visible{background:#ffebc5}
.counter-dishes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(4px,1.4vw,23px)}
.counter-dishes button{height:100%}
.counter-dishes span{white-space:nowrap}
.binder .recipes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(6px,1.3vh,14px)}
.binder .tab{flex-direction:column;gap:1px;padding:5px 2px 4px;border-left-width:2px;border-bottom:4px solid var(--tab);text-align:center}
.binder .tab img{width:min(88px,7.5vw);height:clamp(37px,7.8vh,74px)}.binder .tab b{font-size:clamp(14px,1.48vw,20px);line-height:1.25;white-space:nowrap}
.binder .tab small{font-size:12px;line-height:1.12}
.tab[data-dish=maki]{--tab:#497854}.tab[data-dish=pancakes]{--tab:#ad445d}.tab[data-dish=salmon]{--tab:#aa5b31}
[data-dish=maki] .recipe-leaf{--accent:#36644b}[data-dish=pancakes] .recipe-leaf{--accent:#a34862}[data-dish=salmon] .recipe-leaf{--accent:#a6572f}
@media(max-width:720px) and (orientation:portrait){
  .counter-track{width:min(100%,600px);gap:0}.tray-arrow{width:32px;height:48px}
  .counter-track .counter-dishes{flex:1;gap:2px;min-width:0}.counter-dishes span{font-size:clamp(12px,3.3vw,16px)}
  .binder .recipes{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .binder .tab{padding:2px;gap:1px}.binder .tab img{width:48px;height:clamp(27px,4.5vh,40px)}
  .index-leaf{padding-bottom:14px}.binding{top:auto;bottom:0;translate:0 50%}
  .index-leaf .binding{left:5%;right:5%}
  .recipe-leaf{padding-top:14px}
}
@media(max-height:560px) and (orientation:landscape){
  .binder .recipes{gap:4px}.binder .tab{flex-direction:row;justify-content:center;padding:2px 1px;gap:4px}
  .binder .tab img{width:clamp(25px,4vw,40px);height:clamp(28px,7vh,36px)}.binder .tab b{font-size:clamp(12px,1.65vw,16px)}
  .binder .tab small{font-size:10px}
}
