/* V166 — refine the real colored-pencil game without replacing approved artwork. */
#app .zw165 .zw166-bowl-stash{
 position:absolute!important;z-index:8!important;
 left:21%!important;top:21%!important;width:58%!important;height:30%!important;
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 grid-auto-rows:50%!important;
 align-items:center!important;justify-items:center!important;
 gap:0!important;pointer-events:none!important;
 overflow:hidden!important;border-radius:47% 47% 22% 22%!important;
}
#app .zw165 .zw166-bowl-stash.zw166-stash-1,
#app .zw165 .zw166-bowl-stash.zw166-stash-2,
#app .zw165 .zw166-bowl-stash.zw166-stash-3,
#app .zw165 .zw166-bowl-stash.zw166-stash-4{grid-auto-rows:95%!important;}
#app .zw165 .zw166-stash-item{
 width:100%!important;height:100%!important;min-width:0!important;
 display:grid!important;place-items:center!important;
 animation:zw166-ingredient-drop .38s cubic-bezier(.16,1.1,.38,1) both!important;
}
#app .zw165 .zw166-stash-item:nth-child(2n){rotate:-10deg!important}
#app .zw165 .zw166-stash-item:nth-child(3n){rotate:9deg!important}
#app .zw165 .zw166-stash-item img{
 width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;
 filter:drop-shadow(0 2px 1px rgba(80,58,34,.23))!important;
}
#app .zw165 .zw166-bake-stars{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;height:clamp(25px,5vh,42px)!important;
 gap:clamp(9px,4vw,22px)!important;flex:0 0 auto!important;
 pointer-events:none!important;
}
#app .zw165 .zw166-bake-star{
 width:clamp(24px,7vw,41px)!important;height:100%!important;
 object-fit:contain!important;opacity:.25!important;
 filter:grayscale(.7)!important;scale:.78!important;
 transition:opacity .2s ease,scale .27s ease,filter .2s ease!important;
}
#app .zw165 .zw166-bake-star.zw166-baked{
 opacity:1!important;filter:drop-shadow(0 0 7px rgba(242,175,75,.7))!important;
 scale:1.17!important;animation:zw166-bake-pop .35s ease-out both!important;
}
#app .zw165 .zw160-bake-bottom{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:clamp(4px,1vh,10px)!important;
}
#app .zw165 .zw160-bake-bottom .zw160-tray-button{
 flex:0 0 auto!important;position:relative!important;z-index:6!important;
}
#app .zw165 .zw160-baking .zw160-oven-art{
 animation:zw166-oven-warm 1.05s ease-in-out infinite alternate!important;
}
#app .zw165 .zw160-oven-wrap.zw165-ready .zw165-oven-pastry{
 filter:drop-shadow(0 2px 3px rgba(88,52,31,.23))!important;
}
#app .zw165 .zw160-win-scene .zw162-serve-button{touch-action:none!important}
#app .zw165 .zw162-serve-button.zw166-serving-origin{
 opacity:.52!important;filter:drop-shadow(0 2px 1px rgba(101,68,41,.12))!important;
}
#app .zw165 .zw160-win-scene .zw160-character.zw166-feed-target{
 filter:drop-shadow(0 0 15px rgba(249,194,106,.88))!important;
 animation:zw166-feed-bounce .45s ease-in-out infinite alternate!important;
}
.zw166-serving-ghost{
 position:fixed!important;z-index:999999!important;pointer-events:none!important;
 left:0;top:0;width:clamp(92px,25vw,145px)!important;height:clamp(92px,25vw,145px)!important;
 max-width:none!important;max-height:none!important;object-fit:contain!important;
 transform:translate(-50%,-50%) rotate(-8deg)!important;
 filter:drop-shadow(0 8px 4px rgba(77,48,29,.29))!important;
 animation:zw166-serve-float .45s ease-in-out infinite alternate!important;
}
@keyframes zw166-ingredient-drop {
 from{opacity:.3;transform:translateY(-13px) scale(.69)}
 to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes zw166-bake-pop {
 from{transform:translateY(6px) scale(.7)}
 to{transform:translateY(0) scale(1)}
}
@keyframes zw166-oven-warm{
 from{filter:drop-shadow(0 0 1px rgba(235,147,50,.4))}
 to{filter:drop-shadow(0 0 13px rgba(255,175,77,.83))}
}
@keyframes zw166-feed-bounce{to{transform:rotate(3deg) scale(1.025)}}
@keyframes zw166-serve-float{to{transform:translate(-50%,-53%) rotate(4deg)}}
@media(orientation:landscape){
 #app .zw165 .zw166-bowl-stash{
  left:22%!important;top:22%!important;width:56%!important;height:29%!important;
 }
 #app .zw165 .zw166-bake-stars{height:clamp(19px,7vh,31px)!important;gap:14px!important}
 #app .zw165 .zw166-bake-star{width:25px!important}
 #app .zw165 .zw160-bake-bottom{gap:2px!important}
}
@media(orientation:portrait) and (max-height:640px){
 #app .zw165 .zw166-bake-stars{height:22px!important;gap:8px!important}
 #app .zw165 .zw166-bake-star{width:23px!important}
 #app .zw165 .zw160-bake-bottom{gap:1px!important}
}
@media(prefers-reduced-motion:reduce){
 #app .zw165 .zw166-stash-item,
 #app .zw165 .zw166-bake-star,
 #app .zw165 .zw160-baking .zw160-oven-art,
 #app .zw165 .zw166-feed-target,
 .zw166-serving-ghost{animation:none!important;transition:none!important}
}

/* V166 visual acceptance refinements: centered ingredients, smaller pastry in oven. */
#app .zw165 .zw166-bowl-stash.zw166-stash-1{
 width:33%!important;left:33.5%!important;grid-template-columns:minmax(0,1fr)!important;
}
#app .zw165 .zw166-bowl-stash.zw166-stash-2{
 width:46%!important;left:27%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#app .zw165 .zw166-bowl-stash.zw166-stash-3{
 width:59%!important;left:20.5%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#app .zw165 .zw166-bowl-stash.zw166-stash-4{
 width:70%!important;left:15%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
#app .zw165 .zw165-oven-pastry{
 width:36%!important;height:27%!important;left:32%!important;top:43%!important;
 transform-origin:center!important;
}
#app .zw165 .zw166-bake-star{
 width:clamp(30px,8vw,47px)!important;
 filter:grayscale(.65) drop-shadow(0 1px 2px rgba(99,60,32,.2))!important;
}
#app .zw165 .zw166-bake-stars{gap:clamp(12px,5vw,24px)!important}
@media(orientation:landscape){
 #app .zw165 .zw165-oven-pastry{width:34%!important;left:33%!important;top:40%!important;height:30%!important}
 #app .zw165 .zw166-bake-star{width:29px!important}
}
