*{box-sizing:border-box}body{margin:0;background:#fff;color:#332a28;font:14px -apple-system,BlinkMacSystemFont,"Noto Sans JP",sans-serif}main{max-width:480px;margin:auto;padding:6px 16px 16px}.game-title-accessible{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}button{min-height:44px;border:0;border-radius:10px;background:#f1eeeb;color:#332a28;font:inherit;font-weight:600;padding:8px 12px;touch-action:manipulation;cursor:pointer}button:disabled{opacity:.4}button:active{background:#e5dcd4}button:focus-visible,#stage:focus-visible{outline:3px solid #a67648;outline-offset:2px}.companion{display:flex;align-items:center;gap:10px;min-height:80px}.companion img{object-fit:contain;transition:transform .25s}.companion[data-mood=happy] img{transform:rotate(-5deg) scale(1.08)}.companion[data-mood=careful] img{transform:rotate(5deg)}.companion p{margin:4px 0;font-size:13px;line-height:1.5}.companion strong{font-size:12px}.panel{padding:12px 0;text-align:center}.panel h2{font-size:19px;margin:8px 0}.panel p{line-height:1.6;margin:10px 0}.panel button,#stop{width:100%}.hud{display:flex;align-items:center;gap:12px;height:38px}.hud>span{margin-left:auto}#pause{min-height:36px;width:40px;padding:4px}.order{display:flex;align-items:center;justify-content:space-between;background:#f8f4ef;border-radius:10px;padding:8px 10px;min-height:76px}.order small{display:block;font-size:10px;color:#827363}.order strong{display:block;margin:2px 0 5px}.recipe{display:flex;gap:4px;flex-wrap:wrap}.recipe span{font-size:10px;color:#796e62}.recipe .current{color:#332a28;font-weight:700;text-decoration:underline;text-underline-offset:3px}#sample{position:relative;flex:0 0 72px;height:56px;display:flex;flex-direction:column-reverse;align-items:center;justify-content:flex-start;transform:scale(.38);transform-origin:center center}#sample .layer{flex-shrink:0}#stage{height:clamp(220px,33dvh,310px);position:relative;overflow:hidden;background:linear-gradient(90deg,#eadccb55,transparent 30%,#fff8ec77 70%,#d6c3ab44),linear-gradient(#f4ede3 0 72%,#d9bd99 72%,#eed8bb 74%,#f1ddc3);border-radius:12px;margin:8px 0;touch-action:none;isolation:isolate}.kitchen-light{position:absolute;inset:12px 20% 30%;border:8px solid #fffcf7;box-shadow:0 2px 8px #b6a38b33;background:linear-gradient(90deg,transparent 48%,#fffcf7 48% 52%,transparent 52%),linear-gradient(#d9e6e5,#fcf6e7)}#cake,#hero{position:absolute;bottom:39px;left:50%;width:0;display:flex;flex-direction:column-reverse;align-items:center;transform-origin:bottom center;z-index:3}#cake .layer{transform:translateX(var(--offset)) rotate(var(--lean));flex-shrink:0}.layer{position:relative;width:174px;height:78px;display:flex;align-items:center;justify-content:center;z-index:1}.tier1{height:27px;z-index:2}.tier2{height:37px;z-index:3}.pastry{position:relative;flex-shrink:0;pointer-events:none}.sponge{width:174px;height:78px;border-radius:50% / 20%;background:radial-gradient(ellipse at 50% 12%,#fff0bc,#e9b55c 65%,#b88135);box-shadow:inset 0 -7px 6px #9f632555,0 5px 5px #74502a33;overflow:hidden;border-bottom:2px solid #ad753f}.sponge:before{content:"";position:absolute;inset:2px 1px auto;height:25px;border-radius:50%;background:radial-gradient(ellipse,#fff2c9,#e2ac53);box-shadow:0 2px 1px #fff7d577}.sponge:after{content:"";position:absolute;inset:29px 0 8px;background:radial-gradient(circle at 20% 30%,#8f602544 0 1px,transparent 2px),radial-gradient(circle at 70% 80%,#8f602566 0 1px,transparent 2px);background-size:13px 11px,17px 15px;opacity:.75}.sponge b{position:absolute;left:0;right:0;top:43px;height:13px;background:#fff8e9;box-shadow:0 3px 0 #d85d6855;transform:rotate(-1deg)}.sponge.flavor1{filter:brightness(.62) sepia(.4)}.sponge.flavor2{filter:hue-rotate(37deg) saturate(.65)}.cream{width:174px;height:35px;display:flex;align-items:flex-end;justify-content:center;gap:0;filter:drop-shadow(0 3px 2px #987e6655)}.cream:before{content:"";position:absolute;inset:12px 0 0;border-radius:50% / 30%;background:linear-gradient(#fffdf3,#e5d8bd)}.cream i{position:relative;display:block;width:25px;height:34px;border-radius:75% 20% 45% 35%;background:repeating-conic-gradient(from -25deg at 50% 90%,#fffdf2 0deg 14deg,#e5d7bf 18deg 24deg,#fffdf2 28deg 40deg);transform:rotate(-10deg)}.cream.flavor1{filter:sepia(.6) brightness(.62) drop-shadow(0 3px 2px #987e6655)}.cream.flavor2{filter:sepia(.35) hue-rotate(290deg) saturate(2) drop-shadow(0 3px 2px #987e6655);--pink:#f8bac6}.cream.flavor2 i{background:repeating-conic-gradient(from -25deg at 50% 90%,#ffe1e5 0deg 14deg,#da8b9a 18deg 24deg,#ffd3dc 28deg 40deg)}.cream.flavor2:before{background:#f7c1cd}.topping{width:130px;height:42px;display:flex;align-items:flex-end;justify-content:center;gap:8px}.topping>i{position:relative;display:block;width:31px;height:37px;border-radius:50% 50% 60% 60%;background:radial-gradient(ellipse at 30% 25%,#ffb0a1,transparent 35%),radial-gradient(circle,#ffe4a7 0 1px,transparent 1.6px),linear-gradient(110deg,#ef605c,#a61d31);background-size:auto,7px 8px,auto;box-shadow:inset -3px -4px 3px #8a173d44,0 3px 3px #66332333;transform:rotate(-12deg)}.topping>i:nth-child(2){transform:translateY(-5px) rotate(8deg)}.topping b{position:absolute;width:27px;height:12px;background:#52783b;clip-path:polygon(50% 40%,10% 0,22% 60%,0 75%,42% 80%,55% 100%,65% 70%,100% 60%,70% 30%,80% 0);left:2px;top:-4px}.fruit1{gap:0;flex-wrap:wrap;width:110px;align-content:flex-end}.fruit1>i{width:25px;height:25px;border-radius:50%;background:radial-gradient(circle at 30% 23%,#a9b1d7,#485b8a 45%,#232846);transform:none!important;margin-left:-4px}.fruit1 b{width:10px;height:9px;top:3px;left:6px;border-radius:50%;background:#556895}.fruit2>i{width:34px;height:34px;border-radius:0;clip-path:polygon(50% 0,63% 33%,100% 36%,73% 61%,81% 100%,50% 78%,18% 100%,26% 61%,0 36%,37% 33%);background:linear-gradient(125deg,#f0c36f,#84502a 60%,#ba8244);box-shadow:none}.fruit2 b{display:none}.plate{position:absolute;width:240px;height:28px;background:radial-gradient(ellipse,#fffdf9 0 58%,#c0a581 61%,#f9f1e4 65%,#cdbba4 75%);border-radius:50%;bottom:22px;left:50%;transform:translateX(-50%);box-shadow:0 8px 8px #896b4b44;z-index:2}.center-guide{position:absolute;top:24px;bottom:45px;left:50%;border-left:1px dashed #b69f8277;z-index:2}#balance{position:absolute;bottom:4px;left:0;right:0;text-align:center;font-size:11px;color:#705e49;z-index:4}#ghost{position:absolute;z-index:8;transform:translate(-50%,-80%);opacity:.85;pointer-events:none;filter:drop-shadow(0 10px 6px #5b392b44)}#stage.aiming .center-guide{border-color:#b57a43;border-width:2px}#stage.aiming .plate{box-shadow:0 0 0 3px #c79b5b55,0 8px 8px #896b4b44}.land{animation:landing .55s ease-out}#feedback{position:absolute;top:20px;left:0;right:0;text-align:center;color:#85502e;font-weight:700;opacity:0;z-index:5}.pop{animation:feedback 1.5s ease-out}#step{margin:8px 0;font-size:13px;font-weight:600}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.choices button{height:88px;padding:6px 0;position:relative;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}.choices .pastry{position:absolute;top:4px;left:50%;transform:translateX(-50%) scale(.44);transform-origin:50% 0}.choices .cream{top:18px;transform:translateX(-50%) scale(.48)}.choices .topping{top:12px;transform:translateX(-50%) scale(.75)}.choices span{position:absolute;bottom:9px;left:0;right:0;font-size:11px}.choices [aria-pressed=true]{box-shadow:inset 0 0 0 2px #ad895c;background:#f6e7d6}.actions{display:flex;gap:8px;margin-top:8px}.actions button{flex:1}#bake,#stop,#start,#retry,#next,#resume{background:#eadccc}#meter{height:36px;border-radius:18px;background:linear-gradient(90deg,#f0e7d8,#e7c17e);position:relative;overflow:hidden}.sweet{position:absolute;left:40%;width:20%;height:100%;background:#a5bea2;border-inline:2px solid #ffffff99}#needle{position:absolute;left:0;top:3px;height:30px;width:6px;border-radius:3px;background:#fff;box-shadow:0 0 4px #65503c;transform:translateX(-3px)}.meter-label{display:flex;justify-content:space-between;font-size:10px;margin:4px 0 8px}.note{font-size:10px;color:#827668;margin:10px 0}#oven p{font-size:12px;margin:8px 0}#judging{padding:0}#judging h2{margin:4px 0}#judging p{margin:6px 0;font-size:12px}#stage[data-finishing=true] #cake:after{content:"";position:absolute;width:180px;height:140px;bottom:0;left:-90px;background:linear-gradient(110deg,transparent 35%,#fff9 49%,transparent 63%);clip-path:inset(0 round 50% 50% 10% 10%);transform:translateX(calc(var(--shine,0%) - 50%));pointer-events:none}#hero{position:relative;bottom:auto;left:50%;height:170px;justify-content:flex-start;margin:0 0 12px}#hero:before{content:"";position:absolute;bottom:-8px;width:240px;height:26px;border-radius:50%;background:#eee0cb;z-index:0}@keyframes landing{0%{transform:translateY(-20px)}35%{transform:translateY(3px) scaleY(.94)}60%{transform:rotate(-2deg)}80%{transform:rotate(1deg)}100%{transform:none}}@keyframes feedback{0%{opacity:0;transform:translateY(8px)}15%,65%{opacity:1}100%{opacity:0;transform:translateY(-10px)}}@media(max-height:740px){#stage{height:205px}.companion{min-height:66px}.companion img{width:54px;height:54px}.choices button{height:76px}.order{min-height:68px}main{padding-top:2px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.pop{opacity:1}#cake{transform:none!important}}
/* Keep the fillings appetizing under the same warm kitchen light. */
.cream.flavor1{filter:drop-shadow(0 3px 2px #78513c55)}.cream.flavor1 i{background:repeating-conic-gradient(from -25deg at 50% 90%,#bd8868 0deg 14deg,#754833 18deg 24deg,#d09b78 28deg 40deg)}.cream.flavor1:before{background:linear-gradient(#ba8160,#805039)}.cream.flavor2{filter:drop-shadow(0 3px 2px #987e6655)}
.order>div:first-child{min-width:0;flex:1}#sample{width:72px;min-width:72px}
#sample{transform:none}#sample .layer{position:absolute;left:50%;transform:translateX(-50%) scale(.38);transform-origin:center bottom}#sample .tier0{bottom:0}#sample .tier1{bottom:29px}#sample .tier2{bottom:39px}
