/* Supplied art decorates live DOM controls; geometry remains in app/math code. */
:root{--cream:#fff9ec;--ink:#492819;--muted:#72523a;--green:#287a2b;--green-dark:#205c25;--line:#c59c65;--blue:#285e7a;--cocoa:#643a2a;background:#f5e7cf}
body{background:linear-gradient(#e8f4df 0 260px,#f5e7cf 260px);color:var(--ink)}
.bakery-scene{height:260px;border-bottom:8px solid #e9b565;box-shadow:0 5px 15px #72512724;background:#d6e9c9;isolation:isolate}
.scene-art{position:absolute;left:50%;top:0;transform:translateX(-50%);width:max(100%,900px);aspect-ratio:1672/941}
.scene-image{display:block;width:100%;height:auto;max-width:none;pointer-events:none}
.scene-sign-cover{position:absolute;left:73.863636%;top:19.553666%;width:6.45933%;height:15.834219%;background:#f5deb5;color:#b45b52;display:grid;place-items:center;pointer-events:none}
.scene-sign-cover svg{display:block;width:42%;height:auto}
body[data-view=home] .bakery-scene,body[data-stage=result] .bakery-scene{height:760px}
body[data-view=home] .scene-art,body[data-stage=result] .scene-art{width:max(100%,1351px)}
.app-shell{max-width:1180px;padding-inline:32px}
.topbar{background:#fff9eaf7;padding:10px 15px;border:2px solid #d0ad78;border-radius:21px;box-shadow:0 4px 0 #9e774427;margin-bottom:22px}
.brand{letter-spacing:.07em;color:#315837}.brand small{color:#496848}
button{min-width:48px;min-height:48px;border:2px solid #c49c68;border-radius:17px;background:#fff4d8;box-shadow:inset 0 2px 0 #ffffffb0,0 3px 0 #ad7c4933;transition:transform 120ms,background 120ms,border-color 120ms}
button:hover{background:#fff9e9;border-color:#648750}button:active{transform:translateY(2px)}
.primary{background:#287a2b;border-color:#205c25;box-shadow:inset 0 3px 0 #6bae5890,0 4px 0 #194e21;color:#fffdf5;border-radius:21px;padding:13px 27px}
.primary:hover{background:#246d28;border-color:#16471c}.primary:disabled{background:#e2e8d4;color:#616852;border-color:#a0ad8b}
button[aria-pressed=true]{background:#d9eed0;border-color:#347436;box-shadow:inset 0 0 0 1px #347436}
.toolbar button{background:#fff3d5;border-color:#ba955f;border-radius:15px;font-size:13px;padding:9px 12px}
.toolbar button[data-action=help]{background:#ffe3e6;border-color:#bd7983}.toolbar button[data-action=replay]{background:#e0f0f6;border-color:#6d9bac}
.icon{stroke-width:2.5}.eyebrow{color:#347238}
.supplied-art{object-fit:contain;pointer-events:none;user-select:none;-webkit-user-select:none}
.art-unavailable{visibility:hidden}.cookie-art.art-unavailable{visibility:visible;background:#dca15a;border:3px solid #8c5727;border-radius:50%;color:transparent}
.cookie-art{object-fit:contain;rotate:0deg!important}.cookie-btn .cookie-art{transition:transform 120ms,filter 120ms}
.home-intro{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:center;max-width:780px;margin:60px auto 30px;padding:20px 28px 20px 12px;background:#fff9eeef;border:3px solid #fff5d8;border-radius:34px;box-shadow:0 8px 0 #80562d20,0 13px 24px #56371e28;text-align:left}
.home-copy h1{font-size:58px;line-height:1.02;color:#63371f;letter-spacing:-.04em;margin-bottom:15px}.home-copy .eyebrow{font-size:11px;letter-spacing:.11em;margin-bottom:10px}
.home-intro p:not(.eyebrow){color:#67492f;font-size:18px;line-height:1.45;margin-bottom:15px}.home-intro .primary{margin-top:0}
.benny{width:208px;height:260px;pointer-events:none;flex-shrink:0}.benny-art{display:block;width:100%;height:100%}
.station-grid{gap:24px;margin:30px 0}.station-card{background:#fffcf2;border:3px solid #b08b58;border-radius:28px;overflow:hidden;box-shadow:0 6px 0 #9b6b3530}
.station-card:hover{background:#fffdf8;border-color:#3e803e;transform:translateY(-2px)}
.station-card .station-art{height:178px;background:#fce0df}.station-card:nth-child(2) .station-art{background:#dcf0f5}.station-card:nth-child(3) .station-art{background:#ffedbd}
.station-card .card-copy,.station-card:nth-child(2) .card-copy{transform:none;background:#fffbee;border-radius:0;box-shadow:none;padding:17px 16px 21px;border-top:2px solid #dabd8b}
.card-copy::before{display:none}.card-copy h2{font-size:25px}.card-copy p{color:#715137;font-size:15px}.card-meta{font-size:14px;color:#286c2d;font-weight:700}
.station-number{top:12px;left:12px;width:32px;height:32px;background:#fff8e8;border:2px solid #ac7c46;color:#644023}
.menu-plate,.menu-tray,.menu-brownie{position:relative;width:82%;max-width:280px;aspect-ratio:689/324}
.menu-plate>img,.menu-tray>img,.menu-brownie>img{width:100%;height:100%;display:block}
.menu-pair{position:absolute;inset:14% 22% 18%;display:flex;align-items:center;justify-content:center;gap:7%;pointer-events:none}.menu-pair img{width:44%;height:auto;aspect-ratio:361/355}
.menu-tray{aspect-ratio:732/335;width:84%}.menu-array{position:absolute;left:23%;right:22%;top:11%;bottom:25%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px}.menu-array img{width:100%;height:100%;object-fit:contain}
.menu-brownie{aspect-ratio:727/351;width:86%}
.home-footer{background:#fff9e9de;color:#5f422b;border-radius:17px;padding:15px 18px;margin-top:22px}
.game-heading{padding:13px 18px;background:#fff7e7f5;border:2px solid #d0aa72;border-radius:21px;margin-bottom:15px}.game-heading h1{font-size:33px;color:#603b22}
.order-badge{background:#fff0bf;border-color:#b98b49;border-radius:15px;color:#61411e}
.steps{gap:8px;margin-bottom:21px}.step{background:#fff8df;border:2px solid #d2b680;border-radius:13px;margin:0;padding:8px 12px;font-size:13px;color:#674c2f}.step:nth-child(2){background:#e4f2f8;border-color:#94bccc}.step:nth-child(3){background:#ffe5e7;border-color:#db9da3}.step.current{background:#dcedd0;color:#245b28;border:2px solid #6b9a50;box-shadow:0 2px 0 #739b4930}
.ticket{background:#fff8de;border:2px solid #c49b5f;border-bottom-width:4px;border-radius:16px;margin-inline:14px;padding:18px 22px;box-shadow:0 4px 7px #68472118}.ticket-clip{border-color:#518965;background:linear-gradient(90deg,#82b994,#b8dec0,#82b994);height:24px;top:-14px}.ticket .instruction{color:#54351f}
.workbench{background:#fff9eccc;border:2px solid #c9a572;border-radius:27px;box-shadow:inset 0 0 0 5px #fffdf5,0 7px 0 #b18b5130;padding:24px 30px}
.workbench{background:#fff9ec}.work-title h2{color:#603b22;font-size:20px}.work-title button{background:#ffedcd}.work-title{margin-bottom:22px}
.surface-label,.label-small{color:#765435;letter-spacing:.06em}.source-surface{background:#f7dfaa;box-shadow:inset 0 0 0 2px #e6bc71;border-radius:24px}
.pair-slot{background:#f5f9dc;border-color:#69996e;box-shadow:inset 0 0 0 4px #fffef0;border-radius:24px}.pair-slot.occupied{background:#e5f0d4}.pair-slot.drop-hover{background:#cce4b9;border-color:#287a2b;outline-color:#287a2b}
.rack-strips span{background:linear-gradient(90deg,#a9d6b7,#e9f6db 14%,#f8fbe8 50%,#d0e9c8 85%,#a9d6b7);border-color:#6a9d77;box-shadow:inset 0 0 0 4px #faffee,0 4px 0 #98b58644}
.leftover-tray{background:#fff0c5;border-color:#a8803e}.plate-row .undo-pair{min-width:48px;min-height:48px;left:calc(100% + 3px);padding:10px;top:17px;background:#ffefcc;border-color:#b48950}
.source-browse button{min-height:48px}.placement-instruction,.placement-hint{color:#705031}
.parity-question h2,.guided-count h2{color:#5a361f}.parity-choice button{background:#fff1cc;border-color:#b89550}.parity-choice button:last-child{background:#dff0db;border-color:#79a26f}.parity-choice button:hover{outline:2px solid #398241;outline-offset:2px}
.tray{border-color:#78b5cc;outline-color:#477c96;background:linear-gradient(100deg,#f6e1b3,#fff8dc 50%,#ecd09a);box-shadow:0 7px 0 #4a809b,0 12px 10px #68472722,inset 0 0 0 2px #fffdf1}
.tray-cell{border-color:#8a9461;background:#fff9de}.tray-cell.filled{background:transparent}.tray.labelled .tray-cell{background-color:transparent}
.brownie-board{border-color:#b77f40;background:linear-gradient(95deg,#d9a25a,#f0c98a 25%,#edc17b 77%,#d9a25a);box-shadow:0 5px 0 #a97638,0 9px 7px #78512722}
.slab,.sample,.demo-slab,.demo-sample,.demo-pieces button{background-color:#643a2a;background-image:linear-gradient(#54281736,#54281736),url('assets/art/cookie-kitchen-v1/brownie_surface_texture.webp');background-size:cover;background-position:center}
.slab{box-shadow:0 4px 0 #48291f,0 6px 6px #48291f40}.sample{box-shadow:inset 0 0 0 2px #48291f,0 3px 0 #48291f}
.cut-marker{background:#fff2c8;color:#54331d}.cut-control-row button{background:#ffedbe;border-color:#b58d4b}.piece{background:transparent}.piece[aria-pressed=true]{background:#fffbe725}
.equation-area{background:#fffced;border:2px solid #d6b46d;border-radius:22px;box-shadow:0 4px 0 #c7a75c20}.number-field{border-color:#ac8853;background:#fffef8;border-radius:14px}.number-field.total{background:#e9f3dd}.guided-count{background:#f2f7e5;border-color:#a4bf7c}
.equation-actions button,.group-controls button{background:#e5f0f6;border-color:#91b5c8}.group-controls button[aria-pressed=true]{background:#d6ebd1;border-color:#4c8b50}.group-warning{color:#705333}
.feedback{background:#e5f1db;border-color:#44893f;color:#375d2c}.feedback.error{background:#fff0d5;border-color:#a56429;color:#74471d}
.order-board{background:#fff6de;border:6px solid #d6a95e;box-shadow:inset 0 0 0 3px #fffdf1,0 7px 0 #ae7c3c22;border-radius:27px}.order-grid button{background:#fffbeb;border:2px solid #c79f61;border-radius:17px;box-shadow:0 3px 0 #c2a16630}.order-grid button::before{background:#91be9b;border-radius:4px}.order-grid button:nth-child(3n+2){background:#e7f3f8}.order-grid button:nth-child(3n){background:#ffebed}
.result-panel{background:#fff9e9;border:3px solid #cbab72;border-radius:30px;max-width:900px}.result-welcome{display:flex;gap:20px;align-items:center;justify-content:center;max-width:710px;margin:0 auto 20px}.result-welcome>div:last-child{max-width:470px}.result-welcome h2{color:#6a3e24;font-size:36px;line-height:1.12}.result-welcome .rule{margin-bottom:0}
.result-art{position:relative;width:152px;min-width:152px;height:190px}.result-art .benny{width:152px;height:190px}.result-star{position:absolute;right:-12px;top:0;width:42px;height:40px;animation:art-sparkle 450ms ease-out both}
@keyframes art-sparkle{from{opacity:0;transform:scale(.75) rotate(-12deg)}to{opacity:1;transform:scale(1) rotate(0)}}
.result-panel .work-title h2{font-size:20px}.result-panel .work-title{justify-content:center}.box-options button{background:#fff1c9}.box-options button[aria-pressed=true]{background:#dceecf}
dialog{background:#fffbed;border:3px solid #c5a367;border-radius:27px}.dialog-toolbar button{min-height:48px}.tutorial-mini{background:#f4e6c7;border:2px solid #d9b573;border-radius:22px}.help-benny{float:right;width:104px;height:130px;margin:0 0 12px 15px}body:has(#overlay[open]) #app .benny{visibility:hidden}
#keypad{background:#fffbe9;border:2px solid #a8bf7d;border-radius:20px}.keypad-grid button{background:#fff2c6;border-color:#c2a361}.keypad-grid .word-key{background:#e3eff4}
@media(max-width:760px){
 .app-shell{padding-inline:18px}.topbar{padding:10px 12px}.home-intro{grid-template-columns:168px minmax(0,1fr);padding:19px 20px 19px 8px;margin-top:38px;gap:8px}.home-benny{width:168px;height:210px}.home-copy h1{font-size:47px}.home-intro p:not(.eyebrow){font-size:16px}
 .station-grid{max-width:550px;gap:20px}.station-card{display:grid;grid-template-columns:43% 57%}.station-card .station-art{height:170px}.station-card .card-copy{height:100%;display:flex;flex-direction:column;justify-content:center;padding:15px 16px;border-top:0;border-left:2px solid #dfc18b}.card-copy h2{font-size:23px}.card-copy p{font-size:14px;margin-bottom:10px}.card-meta{font-size:13px;gap:7px}
 .workbench{padding:21px}.game-heading h1{font-size:30px}.home-footer{font-size:11px}.result-welcome{gap:10px}.result-welcome h2{font-size:29px}
}
@media(max-width:600px){.help-benny{display:none}.home-copy .eyebrow{font-size:9px;letter-spacing:.06em}}
@media(max-width:440px){
 .app-shell{padding:12px 12px max(28px,env(safe-area-inset-bottom))}.topbar{padding:9px 10px;margin-bottom:16px;gap:9px}.brand img{width:34px;height:34px}.toolbar{gap:5px}.toolbar button{padding:8px 6px;font-size:12px;min-width:48px;border-radius:13px}.toolbar .btn-content{gap:4px}.toolbar .icon{width:17px;height:17px}
 .scene-art{width:780px}.bakery-scene{height:280px}body[data-view=home] .bakery-scene,body[data-stage=result] .bakery-scene{height:440px}body[data-view=home] .scene-art,body[data-stage=result] .scene-art{width:782px}
 .home-intro{grid-template-columns:124px minmax(0,1fr);gap:2px;padding:18px 14px 18px 0;margin:35px auto 24px;border-radius:27px}.home-benny{width:136px;height:170px;justify-self:center}.home-copy h1{font-size:36px;margin-bottom:12px}.home-copy .eyebrow{display:none}.home-intro p:not(.eyebrow){font-size:14px;line-height:1.45;margin-bottom:13px}.home-intro .primary{font-size:18px;padding:11px 22px}
 .station-grid{margin-top:24px}.station-card .station-art{height:158px}.station-card .card-copy{padding:14px 10px}.card-copy h2{font-size:21px}.card-copy p{font-size:13px}.card-meta{font-size:12px}.station-number{width:27px;height:27px;top:8px;left:8px;font-size:10px}.menu-plate,.menu-tray,.menu-brownie{width:94%}
 .game-heading{padding:12px 11px;margin-top:12px}.game-heading h1{font-size:26px}.order-badge{font-size:11px;padding:7px 8px;min-height:48px}.steps{gap:6px}.step{font-size:11px;padding:7px 8px}.ticket{margin-inline:4px;padding:17px 14px}.ticket .instruction{font-size:16px}
 .workbench{padding:18px 12px;border-radius:24px}.work-title h2{font-size:17px}.work-title button{min-width:48px;min-height:48px}.pair-builder{gap:10px}.pair-builder .cookie-btn{min-width:48px;min-height:48px}.pair-slot{min-width:48px;min-height:78px}.source-browse{gap:10px}.source-browse button{width:48px;min-height:48px}
 .plate-row .undo-pair{padding:9px;left:calc(100% + 2px);min-width:48px;min-height:48px}.pair-area:has(>.leftover-column) .plate-row .undo-pair{top:9px;left:calc(100% + 1px)}
 .tray{padding:8px;gap:4px;border-width:7px}.tray-cell{width:48px;height:48px;min-height:48px;min-width:48px}.tray.labelled .tray-cell{width:52px;height:52px;min-height:52px}.group-controls button{min-width:48px;min-height:48px}.cut-control-row button{min-width:48px;min-height:48px;padding:8px 10px}.brownie-board{padding:17px}
 .equation-area{padding:20px 10px 15px}.equation-actions button{min-height:48px;font-size:12px;padding:8px 10px}.guided-count h2{font-size:22px}.number-field{min-width:56px;min-height:56px}
 .result-panel{padding:20px 12px}.result-welcome{gap:5px;text-align:left}.result-art{width:100px;min-width:100px;height:125px}.result-art .benny{width:100px;height:125px}.result-star{width:28px;height:27px;right:0}.result-welcome h2{font-size:25px}.result-welcome .eyebrow{font-size:10px}.result-welcome .rule{font-size:13px}.result-panel .work-title h2{font-size:18px}
 .demo-builder .cookie-btn{min-width:48px;min-height:48px}.demo-builder .source-surface{padding-inline:2px}.demo-builder .pair-slot{min-width:48px}.tutorial-mini:has(.demo-builder){padding-inline:5px}.pair-builder.demo-builder{gap:8px}
}
@media(max-width:340px){.home-intro{display:block;text-align:center;padding:18px}.home-benny{margin:auto}.station-card{display:block}.station-card .card-copy{border-left:0;border-top:2px solid #dfc18b}.result-welcome{display:block;text-align:center}.result-art{margin:auto}.game-heading h1{font-size:25px}}
