:root{font:16px Arial,Helvetica,sans-serif;color:#283a54;background:#e4eafa}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;background:white;color:#243439;border:1px solid #cbdcde;border-radius:10px;padding:11px 14px;font-weight:700}button:hover{background:#edf8f8;border-color:#007e82}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #007e82;outline-offset:3px}[hidden]{display:none!important}header,main,footer{max-width:1450px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:22px 24px}.brand{font-size:27px;font-weight:900;letter-spacing:-1px;text-decoration:none;color:#2b4973}.brand span{font-weight:400}.brand i{color:#e68137;margin-left:7px}.edition{font-size:12px;letter-spacing:1px}.edition select{padding:9px;border:1px solid #bfcee7;border-radius:8px;color:#2b4973}main{padding:0 24px}p{line-height:1.5}.setup{display:flex;align-items:center;gap:20px;background:#4463a0;color:white;border:3px solid white;border-radius:22px;padding:20px 24px;margin-bottom:24px;flex-wrap:wrap}.setup h1{font-size:27px;margin:0}.setup p{font-size:14px;margin:5px 0 0}.setup>div:first-child{margin-right:auto}label{display:block;font-size:14px;margin-bottom:7px}.quantity>div{display:flex;gap:5px}.quantity input{width:60px;text-align:center;border:0;border-radius:8px;padding:10px}.quantity button{padding:10px 14px}select{padding:11px;border:0;border-radius:9px;max-width:100%}.primary{background:#ffcd56;border-color:#e9ae38;box-shadow:0 3px 0 #d49b29}.primary:hover{background:#ffe08b}.layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:22px}.kitchen{background:white;border:3px solid #c1cfea;border-radius:24px;padding:18px;min-width:0}.gamehead{display:flex;align-items:center;gap:15px;color:#4463a0;font-size:12px;font-weight:bold;letter-spacing:.5px}#score{margin-left:auto;color:#007e82}#exit{font-size:13px;border-color:#aa6e69;color:#8e3d36}progress{width:100%;height:7px;border:0;border-radius:5px;overflow:hidden;background:#e7eeee;margin:15px 0}progress::-webkit-progress-bar{background:#e7eeee}progress::-webkit-progress-value{background:#007e82}.commandbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,1fr);gap:20px;align-items:center;padding:18px;background:#fffbed;border:2px solid #e9bf62;border-radius:18px;margin-bottom:15px}.brief{min-width:0}#taskTitle{font-size:25px;margin:0 0 8px;color:#2b4973}#instruction{font-size:16px;margin:0;color:#526369}#controls{min-width:0}#controls p{margin:0 0 8px}#controls:empty{display:none}.measure{display:flex;align-items:center;gap:8px;margin:0 0 8px}.measure input{width:100px;border:2px solid #c9dada;border-radius:9px;padding:9px;font-size:22px}.controls-buttons{display:flex;gap:8px;flex-wrap:wrap}.hint{font-size:14px;color:#526369}.big-number{font-size:30px;font-weight:bold;color:#007e82}.oven-range{width:100%;accent-color:#e68838}.finish{font-size:18px}.workspace{position:relative;height:680px;background:url('kitchen-background.png') center/100% 100% no-repeat;border:2px solid #acc4da;border-radius:20px;overflow:hidden;isolation:isolate}.workspace>.pantry{position:absolute;left:2%;top:53%;width:46%;height:43%}.shelf-title{display:none}.shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;height:100%;align-content:center;align-items:center}.item{background:transparent;border:2px solid transparent;display:flex;flex-direction:column;align-items:center;gap:0;justify-content:end;padding:0 2px;min-height:0;text-align:center;font-size:12px;touch-action:none;user-select:none}.item:hover{background:#ffffff35;border-color:#fff6;transform:none}.item.selected{background:#ffebaa50;border-color:#ffd068}.item.used{opacity:.25}.item span:not(.ingredient-art){background:#ffffffed;border-radius:6px;padding:3px 5px;font-size:12px;font-weight:bold;line-height:1.25;max-width:100%}.ingredient-art{display:block;background-image:url('ingredient-objects.png');background-size:400% 200%;background-repeat:no-repeat;width:min(100%,90px);aspect-ratio:1;pointer-events:none;filter:drop-shadow(0 4px 2px #283a5428)}.workarea{position:absolute;left:52%;top:53%;width:46%;height:43%;display:flex;align-items:center;justify-content:center}.bowl{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(100%,320px);padding:0;background:transparent!important;border:2px solid transparent;box-shadow:none;touch-action:none;overflow:visible;flex:none}.visual{display:block;width:100%;aspect-ratio:1;background-image:url('cartoon-baking-states.png');background-size:300% 200%;background-repeat:no-repeat;background-position:0 0;pointer-events:none;transform:none!important;filter:drop-shadow(0 7px 3px #283a5430)}#bowlLabel{position:absolute;top:87%;left:50%;transform:translateX(-50%);white-space:normal;text-align:center;background:#fff9d9;border:2px solid #e9bf62;border-radius:18px;padding:6px 10px;font-size:13px;color:#685126;min-width:70%;max-width:100%;z-index:3}.bowl.dragover{border-color:#fff7c4;border-style:dashed;background:#ffffff30!important;transform:none}.contents{display:flex;gap:5px;flex-wrap:wrap;padding-top:10px;min-height:25px}.contents span{font-size:12px;background:#eaf3f3;border-radius:18px;padding:5px 8px;color:#315e62}aside{background:#f5f7ff;border:2px solid #ccd8ef;border-radius:20px;padding:12px 15px;height:fit-content}.recipehead{display:flex;justify-content:space-between;align-items:center;gap:8px}.recipehead h2{font-size:21px}.recipehead button{font-size:12px;padding:7px}.ingredient{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #dce6e7;padding:12px 0;font-size:14px}.ingredient strong{white-space:nowrap}.note{font-size:13px;color:#526369}details{padding:16px 0;border-top:1px solid #d6e0e0;font-size:14px}summary{font-weight:bold;cursor:pointer}#feedback{display:none;line-height:1.5;border-radius:10px;margin-bottom:12px;padding:12px}#feedback.good{display:block;background:#e4f4ee;color:#186343}#feedback.bad{display:block;background:#fff1dc;color:#825419}.moving{position:fixed;z-index:1000;pointer-events:none;width:110px;height:110px}.moving .ingredient-art{width:110px}.motion-prop{position:absolute;left:calc(50% - 30px);top:30%;font-size:62px;pointer-events:none;z-index:4;filter:drop-shadow(0 8px 4px #24343925)}.motion-prop.ingredient-art{width:140px;height:140px;top:8%;left:calc(50% - 70px);max-width:none}.particle{position:fixed;z-index:1100;pointer-events:none;width:7px;height:7px;border-radius:50%;background:#e4cc94}.particle.milk{background:#fff;width:8px;height:14px}.particle.confetti{border-radius:2px;background:#ffce55;width:9px;height:5px}.particle.confetti:nth-child(3n){background:#009ba0}.particle.confetti:nth-child(3n+1){background:#ed8059}.oven-effect{position:absolute;inset:0;pointer-events:none;display:flex;justify-content:space-around;align-items:center;z-index:2;background:linear-gradient(0deg,#ff982425,transparent 70%)}.heat{font-size:65px;color:#ffc770;opacity:0;animation:steam-rise 1.6s ease-in-out infinite}.heat:nth-child(2){animation-delay:.5s}.heat:nth-child(3){animation-delay:1s}.oven-on .visual{filter:sepia(.3) saturate(1.3)}.bake-progress{height:10px;border-radius:20px;background:#e5ded4;margin:12px 0;overflow:hidden}.bake-progress span{display:block;width:0;height:100%;background:#e89135;animation:bake-fill 5s linear forwards}.step-arrival{animation:step-arrival .3s ease-out}.motion-caption{font-size:14px;color:#007e82;font-weight:bold}footer{display:flex;justify-content:space-between;padding:30px 24px;font-size:13px;color:#687a7f}@keyframes steam-rise{0%{transform:translateY(40px) scale(.7);opacity:0}30%{opacity:.6}100%{transform:translateY(-90px) scale(1.2);opacity:0}}@keyframes bake-fill{to{width:100%}}@keyframes step-arrival{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:1100px){.layout{grid-template-columns:1fr}.workspace{height:640px}#recipe{display:grid;grid-template-columns:repeat(2,1fr);column-gap:24px}.ingredient-art{width:min(100%,95px)}}@media(max-width:650px){header{padding:16px}.brand{font-size:24px}.edition{font-size:0}.edition select{font-size:13px;width:140px}main{padding:0 12px}.setup{padding:14px;gap:12px;margin-bottom:15px}.setup>div:first-child{display:none}.setup>.primary{width:100%}.setup select{font-size:13px}.quantity input{width:45px}.quantity button{padding:10px}.kitchen{padding:9px}.gamehead{gap:6px;flex-wrap:wrap}#exit{font-size:12px;padding:8px}#stageLabel{font-size:11px}.commandbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px}#taskTitle{font-size:19px}#instruction{font-size:14px}#controls{font-size:14px}#controls button{font-size:13px;padding:9px 8px}.measure{flex-wrap:wrap}.measure input{width:75px;font-size:20px}.hint{font-size:12px}.big-number{font-size:24px}.workspace{height:550px}.workspace>.pantry{left:1%;width:48%;top:53%;height:44%}.workarea{left:52%;width:46%;top:53%;height:44%}.shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px}.ingredient-art{width:min(100%,49px)}.item span:not(.ingredient-art){font-size:10px;padding:2px;overflow-wrap:anywhere}.bowl{width:100%;max-width:190px}#bowlLabel{font-size:11px;padding:4px 6px}.motion-prop{font-size:42px}.motion-prop.ingredient-art{width:95px;height:95px;left:calc(50% - 47px)}#recipe{display:block}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
/* Ingredienslisten ruller for seg selv; arbeidsområdet flytter seg aldri. */
.shelf-title{display:block;font-size:14px;margin:0 0 5px;color:#283a54;background:#fff9;border-radius:8px;padding:3px 7px;width:fit-content}.shelf{height:calc(100% - 26px);overflow-y:auto;align-content:start;scrollbar-width:thin;scrollbar-color:#668faf #ffffff70}.item span:not(.ingredient-art){font-size:14px}.item{min-height:100px}.shelf .ingredient-art{width:min(100%,74px)}@media(max-width:650px){.shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.item span:not(.ingredient-art){font-size:14px}.item{min-height:100px}.shelf .ingredient-art{width:min(100%,64px)}}
/* Fire ingredienser per side, med tydelige sideknapper. */
.shelf{height:calc(100% - 63px);overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:3px;align-content:stretch}.shelf-title{font-size:13px;white-space:normal;margin-bottom:3px}.shelf .item{min-height:0;height:100%;justify-content:center}.shelf .ingredient-art{width:min(100%,70px)}.shelf-nav{display:flex;align-items:center;justify-content:space-between;gap:3px;height:32px;margin-top:3px;background:#fff9;border-radius:8px;padding:2px}.shelf-nav button{font-size:12px;padding:6px 7px}.shelf-nav span{font-size:12px;white-space:nowrap;color:#283a54;font-weight:bold}.workspace>.pantry{height:45%;top:52%}@media(max-width:650px){.workspace{height:650px}.shelf .ingredient-art{width:min(100%,60px)}.shelf .item span:not(.ingredient-art){font-size:14px;overflow-wrap:normal}.shelf-nav button{font-size:11px;padding:6px 3px}.shelf-title{font-size:12px}.shelf-nav span{font-size:11px}.workarea{top:53%;height:44%}}
/* Oppgavene ligger på kjøkkenveggen, over den faste benken. */
.scene-hud{position:absolute;left:4%;right:4%;top:19%;height:32%;z-index:5;overflow:auto;scrollbar-width:thin;border-radius:16px;background:#fffbedf5;border:2px solid #e9bf62;padding:12px}.scene-hud .commandbar{background:transparent;border:0;border-radius:0;padding:0;margin:0;gap:16px}.scene-hud #feedback{margin:8px 0 0;padding:9px;font-size:14px}.scene-hud #controls p{margin:0 0 5px}.scene-hud #instruction{font-size:15px}.scene-hud #taskTitle{font-size:22px}.scene-hud .big-number{font-size:25px}.scene-hud .measure{margin-bottom:7px}.scene-hud .hint{font-size:13px}.shelf .item{min-width:0;overflow:hidden}.shelf .item span:not(.ingredient-art){box-sizing:border-box;max-width:100%;width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.2;min-width:0;padding:4px 3px;text-align:center}.shelf .ingredient-art{flex-shrink:0}body.playing .setup{display:none}body.playing .workspace{height:clamp(520px,calc(100svh - 165px),680px)}body.playing header{padding-top:12px;padding-bottom:12px}body.playing .kitchen{padding-top:12px}@media(max-width:650px){.scene-hud{left:3%;right:3%;top:18%;height:33%;padding:9px}.scene-hud .commandbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.scene-hud #taskTitle{font-size:18px}.scene-hud #instruction{font-size:14px}.scene-hud #controls{font-size:14px}.scene-hud #controls label{font-size:14px}.scene-hud #controls button{padding:8px 6px;font-size:13px}.scene-hud .measure input{font-size:19px;padding:7px;width:70px}.scene-hud .big-number{font-size:24px}.shelf .item span:not(.ingredient-art){font-size:14px}.shelf .ingredient-art{width:min(100%,56px)}body.playing .workspace{height:clamp(520px,calc(100svh - 150px),650px)}body.playing .kitchen{padding:8px}.scene-hud .hint{font-size:12px}}
/* Ingen skjult rulling eller klipte knapper i oppgavepanelet. */
.scene-hud{top:16%;height:auto;min-height:180px;max-height:none;overflow:visible;padding:14px;box-sizing:border-box}.scene-hud .commandbar{align-items:start}.scene-hud #taskTitle{margin:0 0 7px}.scene-hud #instruction{line-height:1.35}.scene-hud .controls-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex-wrap:nowrap}.scene-hud .controls-buttons button{min-width:0;white-space:nowrap;padding:9px 4px;font-size:14px;box-shadow:none}.scene-hud .measure{flex-wrap:nowrap;gap:6px}.scene-hud .measure input{width:100%;min-width:0;flex:1}.scene-hud .measure strong{flex:none}.scene-hud #feedback{font-size:13px;line-height:1.3;margin-top:8px}.bowl{outline:none}.bowl.dragover{border-color:transparent;border-style:solid}.bowl.dragover #bowlLabel{background:#ffe49a}.shelf .item span:not(.ingredient-art){width:100%;min-height:34px;overflow-wrap:anywhere;white-space:normal;hyphens:auto;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1.15;padding:4px;box-sizing:border-box}.shelf .item.used span:not(.ingredient-art){opacity:1}.shelf .item.used{opacity:.4}@media(max-width:650px){body.playing .workspace{height:650px;min-height:650px;max-height:none}.scene-hud{top:15%;min-height:185px;padding:10px;left:3%;right:3%}.scene-hud #controls label{font-size:14px;line-height:1.2;margin-bottom:6px}.scene-hud .measure input{padding:7px 6px;font-size:20px;height:40px}.scene-hud .controls-buttons button{font-size:13px;padding:9px 3px}.scene-hud #taskTitle{font-size:18px}.scene-hud #instruction{font-size:14px}.scene-hud .hint{font-size:13px}.scene-hud .big-number{font-size:24px;margin:6px 0}.shelf .item span:not(.ingredient-art){font-size:13px;min-height:36px;overflow-wrap:anywhere;hyphens:auto;padding:4px 2px}}

/* Tastaturfokus markerer bolleetiketten, uten ramme rundt hele spriteflaten. */
.bowl:focus-visible{outline:none}.bowl:focus-visible #bowlLabel{outline:3px solid #007e82;outline-offset:2px}
@media(max-width:650px){body.playing .workspace{height:clamp(510px,calc(100svh - 158px),650px);min-height:0}.scene-hud{top:12%}.scene-hud .controls-buttons button{min-height:40px}.shelf .item span:not(.ingredient-art){hyphens:none}.scene-hud #feedback{padding:6px;margin-top:6px;font-size:12px}.scene-hud .measure input{outline-offset:1px}}
@media(max-width:350px){.scene-hud #instruction{font-size:13px}.scene-hud #taskTitle{font-size:16px}.scene-hud .commandbar{gap:8px}.scene-hud #controls label{font-size:13px}.shelf .item span:not(.ingredient-art){font-size:12px}.scene-hud{padding:8px}}

.scene-hud #controls>button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.shelf .item span:not(.ingredient-art){hyphens:manual}

.shelf .item{position:relative}.shelf .item .item-check{position:absolute;top:3px;right:3px;width:20px;min-height:20px;height:20px;padding:0;border-radius:50%;background:#e4f4ee;color:#186343;font-size:12px}

@media(max-width:650px){.shelf .ingredient-art{width:min(100%,clamp(38px,calc(10svh - 27px),56px))}}
@media(max-width:350px){body.playing .workspace{height:clamp(480px,calc(100svh - 190px),650px)}.scene-hud{top:8%}.shelf .ingredient-art{width:min(100%,clamp(32px,calc(10svh - 34px),56px))}.shelf .item span:not(.ingredient-art){min-height:34px;padding:3px 2px}.scene-hud .finish{font-size:16px;line-height:1.25}}
/* Bollen står fast; nummeret følger bolletypen gjennom hele oppskriften. */
.bowl-number{position:absolute;left:50%;top:68%;transform:translateX(-50%);display:grid;place-items:center;background:#fffdf2;color:#246276;border:2px solid #246276;border-radius:50%;width:36px;height:36px;font-size:22px;font-weight:900;line-height:1;z-index:3;pointer-events:none}
.bowl-number[data-color=coral]{color:#9c4037;border-color:#9c4037;background:#fff7ed}
.secondary-bowl{position:absolute;left:0;top:0;width:52%;z-index:4;pointer-events:none;transform-origin:65% 70%}
.secondary-bowl .bowl-number{width:25px;height:25px;font-size:16px}
.secondary-label{position:absolute;top:88%;left:0;right:0;text-align:center;background:#fff7ed;border:1px solid #d89580;border-radius:8px;font-size:12px;font-weight:bold;color:#79392f;padding:3px}
.tool-art{background-image:url('kitchen-tools.png');background-size:300% 100%;background-repeat:no-repeat;width:100px;height:100px;left:calc(50% - 50px);top:18%;font-size:0}
.following #score{display:none}.following #exit{margin-left:auto}.following .item:not(.used):disabled{opacity:1}.guided-ingredients{list-style:none;margin:0 0 9px;padding:0;font-size:14px;line-height:1.3}.guided-ingredients li{margin:0 0 4px}.guided-ingredients strong{white-space:nowrap}.guided-value{font-size:23px;font-weight:bold;color:#007e82}.scene-hud .guided-buttons button{white-space:normal;line-height:1.2}.following .controls-buttons{align-items:stretch}.following .brief{align-self:start}
@media(max-width:650px){.bowl-number{width:25px;height:25px;font-size:16px;top:68%}.secondary-bowl .bowl-number{width:19px;height:19px;font-size:12px}.secondary-label{font-size:11px;padding:2px}.tool-art{width:70px;height:70px;left:calc(50% - 35px)}.guided-ingredients{font-size:13px;line-height:1.2;margin-bottom:6px}.guided-ingredients li{margin-bottom:4px}.scene-hud .guided-buttons button{font-size:13px;padding:7px 3px}.guided-value{font-size:20px}}
@media(max-width:350px){.bowl-number{width:22px;height:22px;font-size:14px}.guided-ingredients{font-size:12px}.scene-hud .guided-buttons button{font-size:12px;padding:5px 2px}}
