:root{color-scheme:light;--forest:#193d30;--dark:#102a22;--cream:#fbf4de;--paper:#fffaf0;--gold:#c6a15d;--muted:#687563;--line:#d6caa5;--shadow:#49381e20;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--forest);background:#f4ead0}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#fffdf4,transparent 50%),repeating-linear-gradient(90deg,#ceb98b09 0 1px,transparent 1px 34px),#f4ead0;min-width:280px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #5c9373;outline-offset:3px}button{touch-action:manipulation}[hidden]{display:none!important}h1,h2,p{margin:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.045em}em{color:#967235;font-weight:400}h2{font-size:clamp(28px,7vw,38px);line-height:1.13}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;line-height:1.6;color:#897342}.tatjana-navigation{display:flex;justify-content:space-between;align-items:center;background:var(--forest);padding:12px;color:var(--cream);gap:9px}.tatjana-navigation a{color:inherit;min-height:44px;display:grid;place-items:center;text-decoration:none}.tatjana-navigation span{font-family:Georgia,serif}.pastry-app{max-width:610px;margin:auto;padding:16px 14px 25px}.primary,.secondary,.icon-button,.spoon-button,.level-button,.close-dialog{border:1px solid var(--line);border-radius:14px;min-height:48px;box-shadow:0 3px 0 #8c744e2b;background:var(--paper);font-weight:750}.primary{width:100%;padding:14px 20px;background:linear-gradient(120deg,#e9d59d,#cfaf6f);border-color:#c3a56c;color:var(--dark);font-size:16px;min-height:55px}.secondary{padding:10px 13px}.quiet{min-height:44px;background:none;border:0;font-size:13px;text-decoration:underline;text-underline-offset:4px;color:#6a725b}.welcome{text-align:center;padding-top:14px}.welcome h1{font-size:clamp(40px,10.5vw,64px);line-height:1.04;margin:12px 0 13px}.welcome-intro{font-size:15px;line-height:1.6;color:#60715e}.welcome-scene{position:relative;width:min(100%,410px);height:auto;padding-top:194px;padding-bottom:24px;margin:8px auto 8px;isolation:isolate}.welcome-chef{position:absolute;z-index:3;width:75%;height:214px;object-fit:contain;object-position:center bottom;top:0;left:17%;filter:drop-shadow(0 5px 4px #4a371a22);pointer-events:none}.welcome-bubble{position:absolute;top:37px;left:0;z-index:4;max-width:145px;padding:10px 12px;border:1px solid #d6c69f;border-radius:18px 18px 3px 18px;font-family:Georgia,serif;font-size:13px;font-style:italic;line-height:1.45;background:#fffcf1eb;transform:rotate(-5deg)}.welcome-tray{position:relative;width:86%;margin:0 auto;z-index:2;display:grid;grid-template-columns:repeat(6,1fr);padding:11px;gap:4px;background:linear-gradient(135deg,#45694d,#1d4031);border:5px ridge #bc9c60;border-radius:18px;box-shadow:0 8px 0 #8e733f30;transform:perspective(700px) rotateX(15deg)}.preview-tile{aspect-ratio:1;background:#faf1d2;border:1px solid #c6b792;border-radius:7px;display:block}.pastry-art{display:block;width:100%;height:100%;background-image:url('/assets/tatjana-pastries-v185.webp');background-size:300% 200%;background-repeat:no-repeat;pointer-events:none}.tray-label{position:absolute;bottom:0;left:0;right:0;color:#8c753f;font-size:8px;letter-spacing:.2em;font-weight:800}.welcome-actions{max-width:420px;margin:auto}.resume-copy{margin:12px 0 2px;font-size:12px;color:#6e775d}.welcome-links{display:flex;justify-content:center;gap:24px}.game-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:3px 0 15px}.game-heading h1{font-size:clamp(29px,7.5vw,43px);line-height:1.1;margin-top:4px}.game-heading .eyebrow{font-size:8px;letter-spacing:.14em}.heading-buttons{display:flex;gap:6px}.icon-button{width:44px;min-height:44px;font-size:22px;border-radius:13px;background:#ffffff80}.play-nav{display:flex;align-items:stretch;gap:0;border:1px solid #d6c8a2;border-radius:17px;background:#fffaf0;box-shadow:0 4px 0 #997b4420;padding:8px 0;margin-bottom:13px}.level-button{flex:1;background:none;border:0;border-radius:0;box-shadow:none;text-align:left;padding:2px 12px;min-width:0}.level-button>span{font-size:9px;font-weight:750;letter-spacing:.04em;display:block}.level-button b{font-size:21px;letter-spacing:0;color:#9b743b}.level-button small{display:block;font-size:10px;color:var(--muted);font-weight:500}.moves-counter,.score-counter{border-left:1px solid #d7cbac;text-align:center;display:grid;place-content:center;min-width:24%;padding:0 6px}.moves-counter span,.score-counter span{font-size:8px;letter-spacing:.1em;color:#6e775d;font-weight:750}.moves-counter strong{font-family:Georgia,serif;font-size:31px;font-weight:400;line-height:1.1}.score-counter strong{font-size:18px;line-height:1.6}.moves-counter.low strong{color:#a7533b}.order{background:#fdf8e9e0;padding:10px 12px;border-radius:15px;border:1px solid #d9cda9;position:relative;z-index:2}.order-title{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:750;color:#6a745e}.order-title>span:first-child{font-size:15px}.order-title small{display:none}.goals{display:flex;justify-content:space-evenly;gap:8px;margin-top:7px}.goal{display:flex;align-items:center;gap:4px;min-width:0}.goal-art{width:38px;height:38px;flex:0 0 38px}.goal strong{font-size:17px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}.goal small{font-size:11px;font-weight:500;color:#7f826c}.goal.complete strong{color:#3a7a4a}.goal.complete strong:after{content:' ✓';font-size:12px}.chef-shelf{height:98px;position:relative;z-index:3;pointer-events:none;margin-top:3px}.chef-shelf>img{position:absolute;right:4%;bottom:-11px;height:123px;width:145px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 4px 2px #715c3420)}.chef-speech{position:absolute;left:2%;bottom:17px;width:calc(100% - 150px);max-width:290px;font-family:Georgia,serif;font-style:italic;line-height:1.5;font-size:13px;color:#667154}.chef-flour{position:absolute;right:4px;top:28px;font-size:21px;color:#b6955a}.board-frame{position:relative;isolation:isolate;padding:8px;border:2px solid #a88a50;border-radius:20px;background:linear-gradient(120deg,#e4ce98,#b79558 45%,#efdfb4 55%,#aa8c54);box-shadow:0 6px 0 #9c82433d,0 10px 22px #6d532716}.board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;border-radius:12px;background:#d9cda9;padding:5px;touch-action:none;user-select:none;-webkit-user-select:none}.tile{position:relative;aspect-ratio:1;min-width:0;padding:1px;border:1px solid #c2b58b;border-radius:9px;background:linear-gradient(135deg,#fffcef,#f2e4be);box-shadow:0 2px 0 #8e784e40;transition:transform .18s ease,opacity .18s ease,background .18s;will-change:auto;touch-action:none}.tile:focus-visible{z-index:3;outline-offset:0}.tile.selected{background:#e6e9c5;outline:2px solid #5b8865;outline-offset:0;z-index:2}.tile.hint{animation:hint-glow 1.2s ease-in-out 2;outline:2px solid #a0813f;outline-offset:0;z-index:2}.tile.clearing{transform:scale(.55) rotate(9deg);opacity:0}.tile.refilled .pastry-art{animation:pastry-drop .24s ease-out}.tile.spoon-hit{animation:spoon-hit .45s ease-in-out;background:#e4ce88}.spoon-actor{position:absolute;z-index:10;pointer-events:none;inset:auto 2% calc(100% - 20px) auto;width:43%;max-width:175px;height:145px;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}.spoon-actor>img{width:100%;height:100%;object-fit:contain;object-position:right bottom;filter:drop-shadow(0 3px 7px #23352a33)}.spoon-actor.is-active{opacity:1;transform:translateY(0)}.wooden-spoon{position:absolute;top:10%;left:-7%;font-size:48px;transform:rotate(-40deg);filter:sepia(1);display:none}.sugar-sparkles{position:absolute;pointer-events:none;inset:35% 0 auto;text-align:center;color:#fff5c2;font-size:38px;letter-spacing:16px;opacity:0;z-index:12}.board-frame.spoon-party .sugar-sparkles{animation:sugar-twinkle 1.6s ease-in-out}.message{min-height:40px;text-align:center;font-size:11px;color:#6a735b;line-height:1.4;padding:12px 3px 5px}.game-tools{display:flex;gap:7px;align-items:stretch}.game-tools>.secondary{font-size:12px;white-space:nowrap;min-height:51px;min-width:0}.game-tools>.secondary>span{font-size:19px;vertical-align:middle}.retry-button{width:47px;flex:0 0 47px;font-size:24px!important;padding:5px!important}.spoon-button{position:relative;overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:5px 9px;background:#e8dcb8;font-size:12px;line-height:1.5;isolation:isolate}.spoon-button>span:not(.spoon-charge){position:relative;z-index:2}.spoon-button small{display:block;font-size:10px;font-weight:500;line-height:1.3}.spoon-icon{font-size:23px;filter:sepia(.5)}.spoon-button:disabled{color:#777d64;background:#f0ead6}.spoon-charge{position:absolute;inset:0 auto 0 0;background:#d5b46c5c;width:0;transition:width .35s}.spoon-button.ready{border-color:#9f7a30;box-shadow:0 3px 0 #aa894950,0 0 0 2px #dfcb902e;background:#f4dfa2}.spoon-button.ready .spoon-icon{animation:spoon-ready 1.8s ease-in-out infinite}.spoon-tip{font-size:10px;line-height:1.5;color:#7a7e66;text-align:center;margin:10px 10px 15px}.campaign-progress{padding:13px 2px 2px;border-top:1px solid #cbbd96;font-size:10px;color:#7b785c;display:flex;flex-direction:column;gap:6px}.campaign-progress progress{appearance:none;height:5px;width:100%;border:0;border-radius:8px;background:#d9d3b6;overflow:hidden}.campaign-progress progress::-webkit-progress-bar{background:#d9d3b6}.campaign-progress progress::-webkit-progress-value{background:#6c8d66;border-radius:8px}.campaign-progress progress::-moz-progress-bar{background:#6c8d66}.save-label{font-size:9px;text-align:center;color:#8a876d;margin-top:14px;line-height:1.5}.save-warning{font-size:12px;padding:12px;margin-top:10px;border:1px solid #b49a64;border-radius:12px;background:#fff5d8;line-height:1.5}.game-dialog{max-width:490px;width:calc(100% - 24px);max-height:88dvh;padding:0;border:1px solid #bdab7b;border-radius:23px;background:#fbf5e3;color:var(--forest);box-shadow:0 16px 70px #071e1880}.game-dialog::backdrop{background:#102c24b8;backdrop-filter:blur(4px)}.dialog-content{padding:23px;overflow:auto}.dialog-content>header{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.close-dialog{width:44px;min-width:44px;min-height:44px;box-shadow:none;background:#ece5cf;font-size:25px;line-height:1;padding:0}.rules{padding-left:20px;line-height:1.6;font-size:13px;margin:14px 0}.rules li{margin:0 0 12px;padding-left:4px}.help-note{font-size:12px;line-height:1.6;color:#727b63;margin:12px 0 18px}.dialog-actions{display:flex;gap:10px;margin-top:24px}.dialog-actions>button{flex:1;min-width:0}.dialog-actions .primary{width:auto}.level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.level-grid .chapter-label{grid-column:1/-1;margin:18px 0 1px;font-size:10px;line-height:1.6;letter-spacing:.04em;font-weight:750}.level-option{min-height:55px;border:1px solid #c7b992;border-radius:11px;background:#fffaf0;font-weight:750;font-size:15px;padding:5px 0}.level-option small{display:block;font-size:9px;letter-spacing:1px;color:#ac8740;margin-top:1px;min-height:12px}.level-option:disabled{color:#a6a590;background:#e9e5d4;border-color:#d6d1bd;box-shadow:none}.level-option.current{background:#254b36;color:#fff5dc;border-color:#254b36}.level-option.current small{color:#e7cd8d}.result-content{position:relative;text-align:center;padding-top:34px}.result-close{position:absolute;right:13px;top:12px;width:36px;min-width:36px;min-height:36px;font-size:22px}.result-content>h2{padding:5px 5px 0}.result-stars{font-size:31px;color:#b68b37;letter-spacing:6px;margin:12px 0}.result-content>p:not(.eyebrow){font-size:13px;line-height:1.6;color:#718064;margin:10px 0 15px}.reward-unlock{font-size:11px!important;color:#977844!important}.recipe-reward{margin:20px 0 16px;padding:18px 16px 14px;border:1px solid #cdb987;border-radius:18px;background:linear-gradient(135deg,#fffdf4,#f0e3bf);text-align:center;box-shadow:0 4px 0 #a58b4520}.recipe-emblem{width:66px;height:66px;margin:0 auto 8px}.recipe-source{font-size:8px;letter-spacing:.12em;font-weight:800;color:#8b733d}.recipe-reward h3{margin:9px 0 6px;font:400 29px/1.1 Georgia,serif;letter-spacing:-.025em;overflow-wrap:anywhere}.recipe-link{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #4b6c43;border-radius:12px;background:#244b34;color:#fff8e3;text-decoration:none;font-size:12px;font-weight:750;line-height:1.4;padding:12px 10px}.recipe-link:hover{background:#325f42}.recipe-reward>small{display:block;font-size:9px;color:#8a8469;margin-top:9px;line-height:1.5}.book-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto}.recipe-grid{display:grid;gap:10px}.recipe-card{display:flex;gap:10px;align-items:center;min-width:0;width:100%;min-height:116px;padding:13px;border:1px solid #caba91;border-radius:15px;background:#fffaf0;color:var(--forest);text-align:left;text-decoration:none;box-shadow:0 3px 0 #a58b4518}.recipe-card:hover{background:#fffdf4;border-color:#a88a50}.recipe-card-art{width:52px;height:52px;flex:0 0 52px}.recipe-card-content{display:flex;flex-direction:column;gap:5px;min-width:0}.recipe-card-content strong{font:400 21px/1.15 Georgia,serif;overflow-wrap:anywhere}.recipe-card-content>span{font-size:11px;line-height:1.45;color:#737c63}.recipe-card-content small{font-size:10px;line-height:1.4;color:#94723a;font-weight:750}.recipe-card.locked{background:#eee8d4;color:#969b81;box-shadow:none;border-color:#d0cbb4;cursor:default}.recipe-card.locked .recipe-card-art{display:grid;place-items:center;font-size:30px}.recipe-card.locked .recipe-card-content>span,.recipe-card.locked .recipe-card-content small{color:#8e947c}.is-busy .tile{cursor:wait}.is-busy .game-tools button{opacity:.65}@keyframes hint-glow{50%{filter:brightness(1.12);transform:scale(1.06)}}@keyframes pastry-drop{from{transform:translateY(-20%) scale(.9);opacity:.4}to{transform:none;opacity:1}}@keyframes spoon-hit{30%{transform:scale(.83);box-shadow:0 0 0 4px #d9b65d}70%{transform:scale(1.07)}}@keyframes sugar-twinkle{0%,100%{opacity:0;transform:translateY(10px)}30%{opacity:1}70%{opacity:.8;transform:translateY(-35px)}}@keyframes spoon-ready{50%{transform:rotate(-17deg)}}
@media(min-width:500px){.pastry-app{padding:24px 25px 30px}.welcome-scene{height:auto;padding-top:240px}.welcome-chef{height:260px;top:0}.welcome-bubble{left:0;top:55px;font-size:15px;max-width:175px}.welcome-tray{bottom:auto}.chef-shelf{height:105px}.chef-shelf>img{height:145px;width:180px;right:5%}.chef-speech{font-size:16px;width:calc(100% - 200px);bottom:19px}.tile{border-radius:12px}.board{gap:5px;padding:8px}.board-frame{padding:10px}.goals{margin-top:5px}.goal-art{width:44px;height:44px;flex-basis:44px}.game-heading .eyebrow{font-size:10px}.play-nav{padding:11px 0}.level-button{padding:2px 17px}.level-button>span{font-size:11px}.level-button b{font-size:24px}.level-button small{font-size:12px}.moves-counter span,.score-counter span{font-size:10px}.game-tools>.secondary,.spoon-button{font-size:14px}.spoon-button small{font-size:11px}.message{font-size:12px}.spoon-tip{font-size:11px}.campaign-progress{font-size:11px}.save-label{font-size:10px}.icon-button{width:48px;min-height:48px}}
@media(max-width:350px){.pastry-app{padding:13px 10px 20px}.welcome-scene{height:auto;padding-top:172px}.welcome-chef{height:192px;top:0;width:78%;left:17%}.welcome-bubble{font-size:11px;max-width:125px;top:30px;padding:8px}.welcome-tray{width:94%;padding:8px}.game-heading h1{font-size:27px}.heading-buttons{gap:4px}.icon-button{width:41px;min-height:44px}.game-heading{margin-bottom:12px}.chef-shelf{height:85px}.chef-shelf>img{height:108px;width:130px;right:2%}.chef-speech{width:calc(100% - 130px);font-size:11px;bottom:15px}.board-frame{padding:5px;border-radius:16px}.board{gap:3px;padding:3px}.tile{border-radius:7px;padding:0}.order{padding:8px}.goal-art{width:33px;height:33px;flex-basis:33px}.goal strong{font-size:15px}.goal small{font-size:10px}.game-tools{gap:5px}.game-tools>.secondary{padding:8px}.spoon-button{padding:4px;font-size:11px;gap:3px}.spoon-icon{font-size:20px}.retry-button{width:44px;flex-basis:44px}.dialog-content{padding:19px}.level-grid{gap:6px}.goal.complete strong:after{font-size:10px}.goal{gap:2px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.sugar-sparkles{display:none}}

.chef-shelf.spoon-host>img{visibility:hidden}.flying-spoon-layer{position:absolute;inset:0;overflow:hidden;border-radius:18px;pointer-events:none;z-index:13}.flying-spoon{position:absolute;width:74px;height:74px;object-fit:contain;opacity:0;transform:translate(-73%,-27%) rotate(-10deg);transform-origin:73% 27%;filter:drop-shadow(0 4px 3px #3a290e40);transition:left .16s ease,top .16s ease,opacity .12s}.flying-spoon.is-active{opacity:1}.flying-spoon.tap{animation:wooden-tap .3s ease-in-out}@keyframes wooden-tap{0%,100%{transform:translate(-73%,-27%) rotate(-10deg)}45%{transform:translate(-73%,calc(-27% + 5px)) rotate(8deg)}}

/* Playing is one measured viewport. Welcome and dialogs retain their own flow. */
html.tatjana-playing-root{height:100%;overflow:hidden}
body.is-playing{height:var(--visible-height,100dvh);min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.is-playing>nav{flex-shrink:0}
body.is-playing .pastry-app{width:100%;height:auto;min-height:0;flex:1;margin:0 auto;padding:5px 10px calc(4px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;overflow:hidden}
body.is-playing .game{--chef-height:clamp(64px,10dvh,84px);flex:1;min-height:0;display:grid;grid-template-rows:54px 40px var(--chef-height) minmax(0,1fr) 18px 46px;gap:5px}
body.is-playing .game-heading{display:none}
body.is-playing .play-nav{padding:3px 0;margin:0;min-width:0;border-radius:13px;box-shadow:0 2px 0 #997b4415}
body.is-playing .level-button{padding:0 7px;min-height:44px;flex:1}
body.is-playing .level-button>span{font-size:7px;letter-spacing:0;white-space:nowrap}
body.is-playing .level-button b{font-size:18px}
body.is-playing .level-button small{font-size:8px;line-height:1.3;white-space:nowrap}
body.is-playing .moves-counter,body.is-playing .score-counter{min-width:15%;padding:0 4px}
body.is-playing .moves-counter span,body.is-playing .score-counter span{font-size:7px;letter-spacing:.04em}
body.is-playing .moves-counter strong{font-size:25px;line-height:1}
body.is-playing .score-counter strong{font-size:14px;line-height:1.65}
body.is-playing .heading-buttons{align-self:center;gap:1px;padding:0 3px}
body.is-playing .icon-button{width:44px;min-height:44px;border:0;background:transparent;box-shadow:none;border-radius:9px;font-size:22px}
body.is-playing .order{min-height:0;padding:3px 5px;border-radius:12px}
body.is-playing .order-title{display:none}
body.is-playing .goals{height:32px;align-items:center;margin:0;gap:4px}
body.is-playing .goal{gap:3px}
body.is-playing .goal-art{width:30px;height:30px;flex-basis:30px}
body.is-playing .goal strong{font-size:15px}
body.is-playing .goal small{font-size:10px}
body.is-playing .chef-shelf{height:100%;min-height:0;margin:0;z-index:3;overflow:visible}
body.is-playing .chef-shelf>img{height:100%;width:125px;max-width:44%;top:0;right:5%;bottom:0;object-fit:contain;object-position:center bottom}
body.is-playing .chef-speech{left:2%;top:50%;bottom:auto;transform:translateY(-50%);width:calc(100% - 145px);max-width:none;font-size:11px;line-height:1.4}
body.is-playing .chef-flour{top:30%;right:1%;font-size:16px}
body.is-playing .spoon-actor{inset:0 5% 0 auto;height:100%;width:125px;max-width:44%;transform:translateY(4px)}
body.is-playing .spoon-actor.is-active{transform:none}
body.is-playing .spoon-actor>img{object-position:center bottom}
body.is-playing .board-space{display:grid;place-items:center;min-height:0;min-width:0;overflow:visible}
body.is-playing .board-frame{max-width:100%;max-height:100%;padding:5px;border-width:2px;border-radius:15px;box-shadow:0 3px 0 #9c82432b}
body.is-playing .board{width:100%;height:100%;padding:3px;gap:3px;border-radius:9px}
body.is-playing .tile{width:100%;height:100%;aspect-ratio:auto;padding:0;border-radius:6px;min-height:0}
body.is-playing .message{height:18px;min-height:0;padding:0 3px;font-size:10px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.is-playing .game-tools{min-height:0;gap:5px}
body.is-playing .game-tools>.secondary,body.is-playing .spoon-button{min-height:44px;height:46px;padding:3px 9px;font-size:12px}
body.is-playing .game-tools>.secondary>span{font-size:17px}
body.is-playing .spoon-button{gap:5px;line-height:1.3}
body.is-playing .spoon-button small{font-size:9px;line-height:1.4}
body.is-playing .spoon-icon{font-size:22px}
body.is-playing .retry-button{width:44px;flex-basis:44px}
body.is-playing .spoon-tip,body.is-playing .campaign-progress{display:none}
body.is-playing .save-label{flex-shrink:0;margin:4px 0 0;height:11px;font-size:8px;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.is-playing .save-warning{flex-shrink:0;margin:2px 0 0;padding:2px 4px;font-size:8px;line-height:1.3;border-radius:5px}
@media(min-width:500px){body.is-playing .pastry-app{padding-left:20px;padding-right:20px}body.is-playing .level-button>span{font-size:9px}body.is-playing .level-button small{font-size:9px}body.is-playing .moves-counter span,body.is-playing .score-counter span{font-size:8px}body.is-playing .chef-speech{font-size:12px}body.is-playing .goal-art{width:32px;height:32px;flex-basis:32px}}
@media(max-height:620px){body.is-playing .game{--chef-height:64px;gap:3px;grid-template-rows:52px 36px var(--chef-height) minmax(0,1fr) 16px 44px}body.is-playing .order{padding:1px 5px}body.is-playing .game-tools>.secondary,body.is-playing .spoon-button{height:44px}body.is-playing .message{height:16px;line-height:16px}body.is-playing .pastry-app{padding-top:3px;padding-bottom:3px}body.is-playing .save-label{margin-top:2px}}

/* Keep her hands at the rim when a short tray leaves spare vertical space. */
body.is-playing .game{grid-template-rows:54px 40px minmax(0,1fr) 18px 46px}
body.is-playing .tray-scene{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:0;min-width:0}
body.is-playing .chef-shelf{flex:0 0 var(--chef-height);height:var(--chef-height);width:100%}
body.is-playing .board-space{flex:0 0 auto;width:100%;align-items:start}
@media(max-height:620px){body.is-playing .game{grid-template-rows:52px 36px minmax(0,1fr) 16px 44px}}

body.is-playing .game-tools>.continue-game{width:100%;min-height:44px;height:46px;flex:1;padding:5px 14px;font-size:14px;line-height:1.3;border-radius:13px}
@media(max-height:620px){body.is-playing .game-tools>.continue-game{height:44px}}

/* Both poses use measured space, so even the larger celebration stays in view. */
body.is-playing .chef-shelf>img{width:var(--chef-height);max-width:65%;right:4%;transition:opacity .2s ease}
body.is-playing .chef-speech{width:calc(100% - var(--chef-height) - 30px)}
body.is-playing .chef-shelf.spoon-host>img{visibility:visible;opacity:0}
body.is-playing .game.is-celebrating .chef-speech,body.is-playing .game.is-celebrating .chef-flour{visibility:hidden}
body.is-playing .game.is-celebrating .spoon-actor{inset:0 auto auto 50%;width:calc(100% - 8px);max-width:430px;height:calc(100% - 14px);transform:translate(-50%,12px) scale(.96);transition:opacity .22s ease,transform .3s ease;overflow:visible}
body.is-playing .game.is-celebrating .spoon-actor.is-active{transform:translate(-50%,0) scale(1)}
body.is-playing .game.is-celebrating .spoon-actor>img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
@media(prefers-reduced-motion:reduce){body.is-playing .game.is-celebrating .spoon-actor{transform:translate(-50%,0)}}

/* A hint stays legible until the suggested swap is completed or cancelled. */
body.is-playing .tile.hint{
  z-index:6;
  outline:3px solid #124b36;
  outline-offset:-3px;
  background:#d9edbc;
  box-shadow:inset 0 0 0 5px #fff9df,0 0 0 2px #124b36,0 0 0 5px #f8d86488;
  animation:hint-clarify .6s ease-in-out 2;
}
body.is-playing .tile.hint[data-hint-step="1"]{z-index:7}
body.is-playing .tile.hint[data-hint-step="1"]::before,
body.is-playing .tile.hint[data-hint-step="2"]::before{
  content:attr(data-hint-step);
  box-sizing:border-box;
  position:absolute;
  z-index:8;
  top:1px;
  left:1px;
  display:grid;
  place-items:center;
  width:min(28px,60%);
  height:min(28px,60%);
  aspect-ratio:1;
  border:2px solid #fff9df;
  border-radius:50%;
  background:#124b36;
  color:#fffdf0;
  box-shadow:0 2px 4px #092c2380;
  font:900 clamp(12px,4.4vw,18px)/1 system-ui,sans-serif;
  pointer-events:none;
  user-select:none;
}
/* Keep each number at the outside corner, clear of the larger shared arrow. */
body.is-playing .tile.hint[data-hint-axis="horizontal"] + .tile.hint[data-hint-step="2"]::before{left:auto;right:1px}
body.is-playing .tile.hint[data-hint-axis="vertical"] ~ .tile.hint[data-hint-step="2"]::before{top:auto;bottom:1px}
body.is-playing .tile.hint[data-hint-step="1"][data-hint-axis="horizontal"]::after,
body.is-playing .tile.hint[data-hint-step="1"][data-hint-axis="vertical"]::after{
  position:absolute;
  box-sizing:border-box;
  z-index:9;
  display:grid;
  place-items:center;
  border:2px solid #fff9df;
  border-radius:6px;
  background:#124b36;
  color:#fffdf0;
  box-shadow:0 2px 4px #092c2380;
  font:900 clamp(16px,5.6vw,22px)/1 system-ui,sans-serif;
  transform:translate(-50%,-50%);
  pointer-events:none;
  user-select:none;
}
body.is-playing .tile.hint[data-hint-step="1"][data-hint-axis="horizontal"]::after{
  content:'↔';
  left:calc(100% + 2.5px);
  top:50%;
  width:min(30px,80%);
  height:min(24px,64%);
}
body.is-playing .tile.hint[data-hint-step="1"][data-hint-axis="vertical"]::after{
  content:'↕';
  top:calc(100% + 2.5px);
  left:50%;
  width:min(24px,64%);
  height:min(30px,80%);
}
@keyframes hint-clarify{
  50%{filter:brightness(1.12);box-shadow:inset 0 0 0 5px #fff9df,0 0 0 2px #124b36,0 0 0 6px #f8d864bb}
}
@media(max-height:700px){
  body.is-playing .tile.hint[data-hint-step]::before{font-size:12px}
  body.is-playing .tile.hint[data-hint-step="1"][data-hint-axis]::after{font-size:16px}
}
@media(max-height:620px){
  body.is-playing .tile.hint[data-hint-step]::before{font-size:10px}
  body.is-playing .tile.hint[data-hint-step="1"][data-hint-axis]::after{font-size:14px}
}
@media(prefers-reduced-motion:reduce){body.is-playing .tile.hint{animation:none}}
