@font-face{font-family:Fredoka;src:url(assets/Fredoka.ttf);font-display:swap}:root{--ink:#28564f;--cream:#fffbed;--teal:#247d79;--gold:#f5bc49;--wood:#ba8450}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);font-family:Fredoka,Arial,sans-serif;background:#edf3e7}button,select,input{font:inherit}button{border:2px solid #c1d2bb;border-radius:12px;background:#fffdf3;color:var(--ink);padding:6px 12px;min-height:38px;box-shadow:0 3px 0 #c7d7bf;cursor:pointer;touch-action:manipulation}button:active{translate:0 2px;box-shadow:0 1px 0 #c7d7bf}button:disabled{opacity:.45;cursor:default}button[aria-pressed=true]{background:#dbeacb;border-color:#6f9b79}button:focus-visible,select:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:3px solid #00899b;outline-offset:2px}button.primary{background:var(--gold);color:#62421b;border-color:#daa437;box-shadow:0 3px 0 #c39332;font-size:20px}button svg{width:24px;height:24px;vertical-align:middle}select{border:2px solid #baceb7;border-radius:10px;background:#fffdf3;color:var(--ink);padding:7px;min-height:38px}#app{height:100dvh;min-height:680px;position:relative;overflow:hidden}#scene{position:absolute;inset:0 0 50%;background:linear-gradient(90deg,#fff8e7a8,#fff7e533),url(assets/kitchen.webp) center 54%/cover;border-bottom:7px solid #c89452;overflow:hidden}header{position:absolute;top:5%;left:3%;z-index:2}header small{font-size:10px;letter-spacing:1.6px;color:#876332}h1{font-size:clamp(24px,2.8vw,41px);margin:6px 0;line-height:1.05}h1 em{font-style:normal;color:#b96630}#chef{position:absolute;left:25%;width:25%;height:90%;bottom:0;object-fit:contain;object-position:bottom;filter:drop-shadow(0 5px 5px #57391f33)}#intro{position:absolute;top:18%;left:55%;right:5%;background:#fffaeaf2;border:2px solid #eadcb3;padding:20px;border-radius:22px}#intro h2{font-size:34px;margin:0 0 8px}#intro p{font-size:19px;line-height:1.4;margin:10px 0}#intro small{font-size:14px;color:#687b5d}#sceneStatus{position:absolute;top:7%;right:4%;width:54%;padding:10px 18px;background:#fff9e9ed;border-radius:18px;font-size:23px;text-align:center}.play h1,.end h1{font-size:clamp(23px,2.2vw,32px)}.play #chef{left:3%;width:23%;height:min(63%,33vw);bottom:9%}#customers{position:absolute;left:28%;right:6%;top:24%;bottom:24%;display:flex;justify-content:space-around;align-items:flex-end;gap:10px}.customer{height:100%;flex:1;max-width:230px;text-align:center;min-width:0}.customer img{height:90%;width:100%;object-fit:contain;object-position:bottom}.customer span{display:block;background:#fff9e9ec;border:2px solid #d5c087;border-radius:10px;width:max-content;max-width:100%;padding:2px 10px;font-size:13px;margin:auto}.customer.happy img{animation:cheer .6s 2 ease-in-out}#party{position:absolute;left:28%;right:4%;bottom:2%;height:22%}#partyCaption{position:absolute;top:0;width:100%;text-align:center;color:#71451d;font-size:14px}.partyTable{position:absolute;bottom:0;height:70%;width:100%;border-radius:45% 45% 12px 12px/20% 20% 12px 12px;background:repeating-linear-gradient(0deg,#bd8756 0 12px,#c39061 13px 15px);border:3px solid #9b6336;box-shadow:0 7px 0 #87532f}.partyTable:before{content:'';position:absolute;inset:5px 10%;background:#f5ead5;border-radius:40%}#rack{position:absolute;inset:3px 6%;display:flex;align-items:center;justify-content:center;gap:5px;z-index:1}.plate{width:clamp(20px,2.5vw,42px);height:auto;aspect-ratio:1;border:2px solid #fffcf2;background:#fff8df;border-radius:50%;opacity:.55;flex-shrink:1;min-width:0}.plate.done{opacity:1}.plate .pizza{height:100%;width:100%}.bunting{position:absolute;left:10%;width:80%;top:-7px;display:flex;justify-content:space-around;border-top:2px solid #a77344}.bunting i{width:13px;height:15px;background:#e8ae48;clip-path:polygon(0 0,100% 0,50% 100%)}.bunting i:nth-child(even){background:#4a9990}#partyGuests{display:none}#party[data-full=true] .partyTable{box-shadow:0 7px 0 #87532f,0 0 22px #fff2ad}
#menu{position:absolute;top:51.5%;bottom:8%;left:4%;right:4%;display:grid;grid-template-columns:.7fr 2.5fr;gap:25px;align-items:center}.menu-title small{font-size:11px;color:#977230;letter-spacing:1.5px}.menu-title h2{font-size:34px;line-height:1.2;margin:12px 0}.menu-title p{font-size:14px;color:#6d8068}.menu-options{display:flex;flex-direction:column;gap:12px}.setup-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.setup-row label{display:flex;align-items:center;gap:8px;font-size:14px}.players{display:flex;gap:6px}.players button{font-size:16px;padding:7px 18px}.setup-row select{font-size:14px}.setup-row #settings{font-size:14px}#configSummary{font-size:13px;color:#748063}.mode-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mode-cards button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px;min-height:128px}.mode-cards svg{width:78px;height:50px}.mode-cards strong{font-size:22px;font-weight:500}.mode-cards small{font-size:13px}#menuMessage{font-size:13px;text-align:center;margin:0;min-height:16px}
footer{position:absolute;bottom:1%;left:2%;right:2%;height:5.5%;display:flex;align-items:center;justify-content:center;gap:8px;z-index:5}footer button{font-size:13px;min-height:34px;padding:4px 10px}#stations{position:absolute;top:51%;bottom:7.5%;left:1.5%;right:1.5%;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px}#stations[data-count='2']{grid-template-columns:repeat(2,minmax(0,1fr))}#stations[data-count='3']{grid-template-columns:repeat(3,minmax(0,1fr))}.station{--player:#cf9230;min-height:0;min-width:0;border:3px solid var(--player);border-radius:19px;background:#fffdf3;box-shadow:0 4px 0 #cad9c2;padding:7px 10px;display:grid;grid-template-rows:25px 33px 36px minmax(0,1fr) 64px;gap:4px;container-type:inline-size}.station-head{display:flex;align-items:center;gap:7px;font-size:16px}.station-head>span:first-child{display:flex;align-items:center;gap:5px;font-weight:500}.station-head img{width:23px;height:27px;object-fit:contain}.station-head .score{margin-left:auto;font-size:14px}.station-head .listen{padding:0 6px;min-height:27px;height:27px;border-width:1px;box-shadow:none}.station-head .listen svg{width:21px;height:21px}.station-order{display:flex;justify-content:center;align-items:center;gap:12px;text-align:center;color:#305c50;font-size:17px;min-height:0}.station-order small{display:block;font-size:12px}.fraction{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;font-size:22px;line-height:1;vertical-align:middle;min-width:23px;color:#1d7779}.fraction>span:first-child{border-bottom:2px solid currentColor;padding:0 4px 2px}.fraction>span:last-child{padding:2px 4px 0}.station-order .fraction{font-size:20px}.cut-tools{display:flex;align-items:center;justify-content:center;gap:7px}.cut-tools>span{font-size:12px}.cut-tools button{min-height:33px;padding:1px 10px;box-shadow:0 2px 0 #c7d7bf}.cut-tools .less,.cut-tools .more{font-size:23px;min-width:34px}.cut-tools output{font-size:24px;min-width:23px;text-align:center}.cut-tools .cut{background:#e2edcf;font-size:14px}.work-area{min-height:0;min-width:0;position:relative}.pizza-pair{display:flex;gap:12px;justify-content:center;align-items:stretch;height:100%;min-height:0}figure{margin:0;min-width:0;min-height:0;flex:1;display:grid;grid-template-rows:17px minmax(0,1fr) 30px;height:100%;max-width:360px}figcaption{font-size:12px;text-align:center}.source,.reference-pizza,.share-source{min-height:0;min-width:0;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}.source,.share-source{touch-action:none;user-select:none;-webkit-user-select:none}.pizza{height:100%;width:100%;display:block;overflow:visible;touch-action:none}.slice{cursor:pointer}.slice[aria-disabled=true]{cursor:default}.slice:focus{stroke:#168da0;stroke-width:5}.amount,.reference-fraction{display:flex;align-items:center;justify-content:center}.amount .fraction,.reference-fraction .fraction{font-size:13px}.station-tail{display:grid;grid-template-rows:minmax(0,1fr) 35px;gap:3px;min-height:0}.feedback{font-size:12px;text-align:center;line-height:1.1;display:flex;align-items:center;justify-content:center;padding:1px 4px;min-height:0}.feedback.error{background:#fff0d4;color:#995222;border-radius:8px}.feedback.success{background:#deefcd;color:#1d7460;border-radius:8px}.actions{display:flex;align-items:stretch;justify-content:center;gap:6px}.actions button{font-size:13px;min-height:33px;padding:3px 9px;white-space:nowrap}.actions .primary{font-size:17px;flex:1}.station.solved{background:#fbfff2}.station.finished:not(.solved) .work-area{opacity:.55}.station.finished:not(.solved) .actions{visibility:hidden}
.share-board{height:100%;min-height:0;display:grid;grid-template-columns:minmax(75px,.65fr) minmax(170px,1.5fr);gap:5px}.share-board figure{width:100%;grid-template-rows:17px minmax(0,1fr) 23px}.remaining{font-size:11px;text-align:center;line-height:1.1}.plates{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:4px}.plate-card{display:grid;grid-template-rows:minmax(0,1fr) 20px;gap:2px;min-height:0}.give{min-height:0;padding:1px 3px;box-shadow:none;position:relative;display:flex;justify-content:space-around;align-items:center;gap:2px;overflow:hidden;border-radius:10px}.give>span{display:flex;flex-direction:column;align-items:center;font-size:11px;min-width:25px}.give img{width:25px;height:30px;object-fit:contain}.give .pizza{width:48px;height:48px;min-width:20px;pointer-events:none}.give small{font-size:12px}.undo{min-height:20px;font-size:10px;padding:0;border-width:1px;box-shadow:none;border-radius:6px}.station.sharing{grid-template-rows:25px 33px minmax(0,1fr) 64px}.equivalence-proof{height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 32px;min-height:0}.proof-visual{height:100%;min-height:0;display:flex;justify-content:center}.proof-visual svg{height:100%;max-width:100%;overflow:visible}.proof-caption{display:flex;justify-content:center;align-items:center;gap:7px;font-size:17px}.proof-caption .fraction{font-size:14px}.proof-caption>span:last-child{font-size:11px;line-height:1.1}.proof-layer{animation:superpose 1.4s ease-in-out both;transform-origin:center}.carry-ghost,.delivery{position:fixed;pointer-events:none;z-index:50;filter:drop-shadow(0 4px 3px #0004)}.carry-ghost{width:90px;height:90px;translate:-50% -50%}.delivery{width:60px;height:60px}.carry-ghost svg,.delivery svg{width:100%;height:100%}
#stations[data-count='1']{left:3%;right:3%}#stations[data-count='1'] .station{grid-template-columns:minmax(160px,.7fr) minmax(300px,2fr) minmax(180px,.85fr);grid-template-rows:27px 36px minmax(0,1fr);gap:5px 16px;padding:9px 17px}#stations[data-count='1'] .station-head{grid-column:1/-1}#stations[data-count='1'] .station-order{grid-column:1/-1;font-size:22px}#stations[data-count='1'] .cut-tools{grid-column:1;grid-row:3;flex-wrap:wrap;align-content:center;padding:0 10px}#stations[data-count='1'] .cut-tools>span{width:100%;text-align:center;font-size:16px}#stations[data-count='1'] .cut-tools .cut{width:100%;font-size:17px;margin-top:6px}#stations[data-count='1'] .work-area{grid-column:2;grid-row:3}#stations[data-count='1'] .station-tail{grid-column:3;grid-row:3;grid-template-rows:minmax(60px,1fr) auto;align-content:center;gap:10px}#stations[data-count='1'] .feedback{font-size:16px;line-height:1.2;padding:8px}#stations[data-count='1'] .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}#stations[data-count='1'] .actions .primary{grid-row:1;grid-column:1/-1;min-height:43px;font-size:21px}#stations[data-count='1'] .actions .clear,#stations[data-count='1'] .actions .hint{grid-row:2}#stations[data-count='1'] .station.sharing .work-area{grid-column:1/3}#stations[data-count='1'] .share-board{grid-template-columns:minmax(110px,.8fr) minmax(230px,1.6fr);gap:15px}#stations[data-count='1'] .give img{height:40px;width:35px}#stations[data-count='1'] .give .pizza{width:65px;height:65px}#stations[data-count='1'] .give>span,#stations[data-count='1'] .give small{font-size:14px}#stations[data-count='1'] .plate-card{grid-template-rows:minmax(0,1fr) 25px}#stations[data-count='1'] .undo{font-size:12px;min-height:25px}#stations[data-count='1'] .proof-caption>span:last-child{font-size:14px}#stations[data-count='1'] .proof-caption .fraction{font-size:20px}
#ending{position:absolute;top:52%;bottom:8%;left:7%;right:7%;border:2px solid #d7cf9c;border-radius:23px;background:#fffdf3;padding:16px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px;text-align:center}#ending h2{font-size:30px;margin:0}#endMessage{font-size:18px;margin:0}#summary{display:flex;justify-content:center;align-items:center;gap:25px;min-height:0}#summary>div{border-bottom:4px solid var(--player);background:#e9efd9;border-radius:13px;display:grid;grid-template-columns:60px auto;grid-template-rows:1fr 1fr;column-gap:10px;padding:8px 20px;text-align:left}#summary img{width:60px;height:75px;object-fit:contain;grid-row:1/3}#summary strong{align-self:end;font-size:22px}#summary span{font-size:16px}.end-actions{display:flex;justify-content:center;gap:12px}.end #chef{left:2%;width:24%;height:74%;bottom:6%}.end #sceneStatus{font-size:22px;top:5%;width:65%;right:3%}.end #party{left:28%;right:4%;height:71%;bottom:3%}.end .partyTable{height:27%}.end #partyGuests{display:flex;position:absolute;inset:10% 0 13%;justify-content:space-around;align-items:flex-end;gap:10px}.end #partyGuests img{height:95%;width:23%;object-fit:contain;object-position:bottom;animation:cheer .7s 3 ease-in-out}.end #partyGuests img:last-child{height:108%}.end .bunting{top:0}.end #partyCaption{top:-7%;font-size:16px}
dialog{position:absolute;top:51%;bottom:auto;margin:0 auto;width:min(820px,96vw);max-height:44dvh;overflow:auto;border:3px solid #d8c28b;border-radius:18px;background:#fffcf0;color:var(--ink);padding:14px 22px;z-index:40}dialog::backdrop{background:#173d3555}dialog h2{font-size:24px;margin:0 0 8px}dialog p{font-size:15px;line-height:1.35}dialog>button{width:100%}.teacher-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.teacher-grid fieldset{border:1px solid #c7d6ba;border-radius:12px;padding:9px}.teacher-grid legend{font-size:15px}.teacher-grid p{font-size:12px;margin:6px 0}.teacher-grid label{display:flex;align-items:center;gap:8px;font-size:15px}.teacher-grid .check{margin-top:14px}#denominators{display:flex;flex-wrap:wrap;gap:6px}#denominators label{padding:8px;background:#edf3df;border-radius:9px;font-size:18px;min-height:40px}input[type=checkbox]{width:20px;height:20px;accent-color:var(--teal)}#settingWarning{color:#a24d29;margin:5px 0;min-height:16px}#helpText{font-size:18px}#paused,#smallScreen,#loading{position:absolute;z-index:30;left:25%;right:25%;top:55%;padding:25px;background:#fffae9;border:3px solid #c9b97d;border-radius:20px;text-align:center;box-shadow:0 0 0 100vmax #173d3544}#paused h2{font-size:25px}#loading progress{width:100%;margin-top:12px;accent-color:var(--teal)}#smallScreen{z-index:35}
@keyframes superpose{0%{transform:translateX(65px);opacity:.2}70%,100%{transform:translateX(0);opacity:1}}@keyframes cheer{50%{translate:0 -7px;rotate:3deg}}
@media(min-height:950px) and (min-width:701px){.station{grid-template-rows:32px 45px 44px minmax(0,1fr) 82px;gap:7px;padding:10px}.station.sharing{grid-template-rows:32px 45px minmax(0,1fr) 82px}.station-order{font-size:21px}.station-order .fraction{font-size:26px}.cut-tools button{min-height:40px;font-size:17px}.cut-tools>span{font-size:15px}.station-tail{grid-template-rows:minmax(0,1fr) 43px}.actions button{min-height:41px;font-size:16px}.actions .primary{font-size:21px}.feedback{font-size:16px}.station-head{font-size:19px}.station-head .listen{height:32px}.station-head .score{font-size:17px}.share-board{grid-template-columns:minmax(100px,.7fr) minmax(200px,1.5fr)}.plate-card{grid-template-rows:minmax(0,1fr) 28px}.undo{min-height:28px;font-size:12px}.give img{width:35px;height:45px}.give .pizza{width:60px;height:65px}.give>span,.give small{font-size:14px}}
@media(max-width:1000px) and (min-width:701px){#menu{grid-template-columns:1fr;left:5%;right:5%}.menu-title{display:none}.mode-cards strong{font-size:19px}.menu-options{gap:9px}.mode-cards button{min-height:110px}#stations{gap:7px;left:1%;right:1%}.station{padding:6px}.cut-tools{gap:3px}.cut-tools>span{font-size:10px}.cut-tools button{padding:1px 6px}.actions{gap:3px}.actions button{padding:2px 5px;font-size:12px}.actions .primary{font-size:16px}.station-order{font-size:15px;gap:8px}.share-board{grid-template-columns:minmax(65px,.6fr) minmax(140px,1.5fr);gap:3px}.give{flex-wrap:wrap}.give>span{font-size:10px}.give img{width:20px;height:23px}.give .pizza{width:30px;height:32px}.give small{font-size:11px}#stations[data-count='1'] .station{grid-template-columns:minmax(120px,.6fr) minmax(240px,1.7fr) minmax(150px,.8fr);gap:5px 8px}#stations[data-count='1'] .feedback{font-size:14px}.end #sceneStatus{font-size:18px}}
@media(max-width:700px){#app{min-height:800px}header{left:4%;top:4%}header small{font-size:8px}h1,.play h1,.end h1{font-size:25px}#chef{left:0;width:43%;height:65%;bottom:1%}#intro{left:43%;right:3%;top:31%;padding:12px}#intro h2{font-size:24px}#intro p{font-size:15px;margin:8px 0}#intro small{font-size:12px}.play #chef{left:0;width:27%;height:40%;bottom:23%}#sceneStatus{top:29%;left:49%;right:3%;width:auto;font-size:19px;padding:12px}.play #customers{left:24%;right:48%;top:33%;bottom:24%}.customer img{height:90%}.customer span{font-size:11px;padding:2px 6px}#party{left:4%;right:4%;height:18%;bottom:2%}#partyCaption{font-size:11px}.bunting{left:0;width:14%;gap:2px;border:0;top:-7px}.bunting i{width:8px;height:11px}#rack{gap:2px;inset:4px 5%}.plate{width:28px;min-width:0;border-width:1px}.menu-title{display:none}#menu{display:block;top:51%;bottom:8%;left:3%;right:3%}.menu-options{height:100%;justify-content:center;gap:8px}.setup-row{gap:7px;justify-content:center}.players button{font-size:13px;min-height:34px;padding:4px 10px}.setup-row label{font-size:12px;gap:5px}.setup-row select{font-size:12px;min-height:34px;padding:5px}.setup-row #settings{font-size:12px;min-height:34px;padding:5px 8px}#configSummary{font-size:11px}.mode-cards{gap:5px}.mode-cards button{min-height:129px;padding:7px 3px;gap:5px}.mode-cards svg{width:57px;height:41px}.mode-cards strong{font-size:17px;line-height:1.1}.mode-cards small{font-size:11px;line-height:1.15}#menuMessage{font-size:11px;line-height:1.15}footer{gap:5px;height:6%;left:1%;right:1%}footer button{font-size:11px;padding:3px 8px;min-height:33px}#stations,#stations[data-count='1']{left:2%;right:2%;top:51%;bottom:8%}#stations[data-count='1'] .station{grid-template-columns:1fr;grid-template-rows:25px 34px 35px minmax(0,1fr) 67px;padding:6px 8px;gap:4px}#stations[data-count='1'] .station.sharing{grid-template-rows:25px 34px minmax(0,1fr) 67px}#stations[data-count='1'] .station-head{grid-column:1;grid-row:auto}#stations[data-count='1'] .station-order{grid-column:1;grid-row:auto;font-size:17px}#stations[data-count='1'] .cut-tools{grid-column:1;grid-row:auto;flex-wrap:nowrap;padding:0;gap:6px}#stations[data-count='1'] .cut-tools>span{width:auto;font-size:12px}#stations[data-count='1'] .cut-tools .cut{width:auto;margin:0;font-size:13px}#stations[data-count='1'] .work-area,#stations[data-count='1'] .station.sharing .work-area{grid-column:1;grid-row:auto}#stations[data-count='1'] .station-tail{grid-column:1;grid-row:auto;grid-template-rows:minmax(0,1fr) 36px;gap:3px}#stations[data-count='1'] .feedback{font-size:12px;line-height:1.1;padding:1px 3px}#stations[data-count='1'] .actions{display:flex;gap:5px}#stations[data-count='1'] .actions .primary{min-height:34px;font-size:18px}#stations[data-count='1'] .actions button{font-size:12px}#stations[data-count='1'] .share-board{grid-template-columns:minmax(80px,.65fr) minmax(170px,1.5fr);gap:5px}#stations[data-count='1'] .give img{height:28px;width:24px}#stations[data-count='1'] .give .pizza{width:40px;height:42px}#stations[data-count='1'] .give>span,#stations[data-count='1'] .give small{font-size:11px}#stations[data-count='1'] .plate-card{grid-template-rows:minmax(0,1fr) 22px}#stations[data-count='1'] .undo{min-height:22px;font-size:10px}#stations[data-count='1'] .proof-caption>span:last-child{font-size:11px}#stations[data-count='1'] .proof-caption .fraction{font-size:14px}.station-order small{font-size:12px}.pizza-pair{gap:8px}figure{grid-template-rows:16px minmax(0,1fr) 27px}figcaption{font-size:11px}.share-board figure{grid-template-rows:16px minmax(0,1fr) 24px}.end #chef{left:0;width:23%;height:43%;bottom:19%}.end #sceneStatus{left:43%;top:27%;font-size:17px;width:auto;right:3%}.end #party{left:25%;right:3%;height:45%;bottom:5%}.end #partyCaption{font-size:12px;top:1%}.end .bunting{top:-9%;left:5%;width:90%;border-top:2px solid #a77344}.end #partyGuests{gap:2px;inset:15% 0 15%}.end #partyGuests img{width:24%}#ending{left:3%;right:3%;padding:12px;gap:8px}#ending h2{font-size:24px}#endMessage{font-size:16px}#summary{gap:8px}#summary>div{padding:6px 10px;grid-template-columns:45px auto}#summary img{width:45px;height:65px}#summary strong{font-size:20px}#summary span{font-size:15px}.end-actions{gap:6px}.end-actions button,.end-actions .primary{font-size:15px;padding:6px 9px}dialog{padding:10px 12px;max-height:44dvh;top:51%}dialog h2{font-size:20px}.teacher-grid{grid-template-columns:1.3fr 1fr;gap:9px}.teacher-grid legend{font-size:12px}.teacher-grid fieldset{padding:5px}#denominators{gap:3px}#denominators label{padding:4px;font-size:16px;min-height:33px;gap:3px}.teacher-grid label{font-size:12px;gap:4px}.teacher-grid select{font-size:12px;max-width:100%;padding:4px}.teacher-grid p{font-size:11px}.teacher-grid .check{margin-top:8px}input[type=checkbox]{width:17px;height:17px}#helpText{font-size:15px}#settingWarning{font-size:12px}#paused,#smallScreen,#loading{left:5%;right:5%;padding:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.cut-tools .split{font-size:13px;background:#e7edf9;padding:2px 7px}#stations[data-count="1"] .cut-tools .split{width:100%;margin-top:4px;font-size:15px}.bunting{top:12px}.end .bunting{top:0}@media(max-width:1000px) and (min-width:701px){#stations[data-count="3"] .cut-tools>span{display:none}.cut-tools .split{font-size:11px;padding:2px 4px}}@media(max-width:700px){#stations[data-count="1"] .cut-tools .split{width:auto;margin:0;font-size:11px;padding:2px 4px}.cut-tools:has(.split:not([hidden]))>span{display:none}.bunting{top:-7px}}

.bunting{top:20px}.end .bunting{top:0}@media(max-width:700px){.bunting{top:-7px}.end .bunting{top:-9%}}
/* Pizza illustrations and clearer preparation workspaces. */
.station-head .zoom{font-size:12px;min-height:27px;padding:1px 8px;box-shadow:none;border-width:1px;background:#edf3df}.station-head .zoom[aria-pressed=true]{background:#d9eec8;border-color:#6d9f65}.station-order{font-size:19px;font-weight:500;color:#214d45}.station-order>.fraction{font-size:25px;font-weight:500;background:#fff2c8;border-radius:9px;padding:3px 8px;color:#185e5d;min-width:45px}.station-order small{font-weight:400}.source .slice:hover{stroke:#17899c;stroke-width:4}.source.cutting .slice{animation:cut-glow .6s ease-out}.slice[aria-pressed=true]{transition:stroke .12s}.give.drop-ready{background:#e4f3ca!important;border-color:#5e9d3e!important;box-shadow:0 0 0 3px #b5d869,inset 0 0 15px #d4e9a7;scale:1.015}.give.arrived{animation:plate-arrival .45s ease-out}.portion-flight{position:fixed;pointer-events:none;width:70px;height:70px;z-index:55;filter:drop-shadow(0 4px 3px #0004)}.portion-flight svg{width:100%;height:100%}.carry-ghost{width:100px;height:100px}.actions .replay{white-space:normal;line-height:1.05;font-size:12px;background:#e2ecf8}#stations[data-count='1'] .actions .replay{grid-row:2;grid-column:1/-1;font-size:15px}
.station{grid-template-rows:25px 52px 35px minmax(0,1fr) 60px;gap:3px;padding:6px 9px}.station.sharing{grid-template-rows:25px 45px minmax(0,1fr) 60px}figure{grid-template-rows:15px minmax(0,1fr) 26px}.station-tail{grid-template-rows:minmax(0,1fr) 35px}.station .amount .fraction,.station .reference-fraction .fraction{font-size:14px}.cut-tools>span{color:#647762}.station-head .score{color:#5a7062}#stations[data-count='1'] .station{grid-template-rows:27px 52px minmax(0,1fr)}#stations[data-count='1'] .station-order{font-size:23px}#stations[data-count='1'] .station-order>.fraction{font-size:26px}.play #partyGuests{display:flex;position:absolute;left:2%;bottom:65%;height:48%;gap:3px;pointer-events:none}.play #partyGuests img{height:100%;width:38px;object-fit:contain;object-position:bottom;animation:friend-arrives .7s ease-out}.play #partyCaption{left:20%;width:80%}.play .bunting{left:23%;width:73%}
/* Enlargement stays inside that player's lower-half station. */
#stations .station.zoomed{grid-template-columns:1fr;grid-template-rows:27px 48px minmax(0,1fr) 37px;gap:2px;padding:5px 8px}#stations .station.zoomed .station-head{grid-column:1;grid-row:1}#stations .station.zoomed .station-order{grid-column:1;grid-row:2;font-size:18px}#stations .station.zoomed .cut-tools{display:none}#stations .station.zoomed .work-area,#stations .station.zoomed.sharing .work-area{grid-column:1;grid-row:3}#stations .station.zoomed .station-tail{grid-column:1;grid-row:4;display:block}#stations .station.zoomed .feedback{display:none}#stations .station.zoomed .actions{display:flex;height:100%;gap:6px}#stations .station.zoomed .actions button{font-size:13px;min-height:34px}#stations .station.zoomed .actions .primary{font-size:17px;min-height:34px}#stations .station.zoomed .reference{display:none!important}#stations .station.zoomed .working{max-width:none;grid-template-rows:minmax(0,1fr) 22px}#stations .station.zoomed .working>figcaption{display:none}#stations .station.zoomed .working .source{grid-row:1}#stations .station.zoomed .working .amount{grid-row:2}#stations .station.zoomed .share-board{grid-template-columns:minmax(95px,1.1fr) minmax(150px,1fr);gap:7px}#stations .station.zoomed .share-board figure{max-width:none;grid-template-rows:15px minmax(0,1fr) 22px}#stations .station.zoomed .give small{font-size:12px}#stations .station.zoomed .give img{width:24px;height:30px}#stations .station.zoomed .give .pizza{height:43px;width:43px}
@media(min-height:950px) and (min-width:701px){.station{grid-template-rows:30px 54px 40px minmax(0,1fr) 68px;gap:4px;padding:8px 10px}.station.sharing{grid-template-rows:30px 48px minmax(0,1fr) 68px}.station-tail{grid-template-rows:minmax(0,1fr) 41px}.station-head .zoom{min-height:32px;font-size:14px}.station-order{font-size:22px}.station-order>.fraction{font-size:26px}#stations .station.zoomed{grid-template-rows:32px 54px minmax(0,1fr) 43px;gap:3px}#stations .station.zoomed .actions button{min-height:40px;font-size:15px}#stations .station.zoomed .actions .primary{font-size:21px}.station .amount .fraction,.station .reference-fraction .fraction{font-size:16px}}
@media(max-width:1000px) and (min-width:701px){.station-order{font-size:16px}.station-order>.fraction{font-size:23px}.station-head{font-size:14px;gap:4px}.station-head .zoom{font-size:10px;padding:1px 5px}.station-head .score{font-size:11px}.station-head img{width:18px}.play #partyGuests img{width:28px}.station-head .listen{padding:0 4px}}
@media(max-width:700px){#stations[data-count='1'] .station{grid-template-rows:25px 48px 35px minmax(0,1fr) 60px;gap:3px;padding:6px 8px}#stations[data-count='1'] .station.sharing{grid-template-rows:25px 43px minmax(0,1fr) 60px}#stations[data-count='1'] .station-order{font-size:17px}#stations[data-count='1'] .station-order>.fraction{font-size:22px;padding:2px 6px;min-width:39px}#stations[data-count='1'] .station-tail{grid-template-rows:minmax(0,1fr) 35px;gap:2px}.station-head .zoom{font-size:11px;min-height:27px}.station-head .score{font-size:12px}.station-head{gap:5px}#stations[data-count='1'] .actions .replay{font-size:11px;max-width:118px}.play #partyGuests{height:43%;left:1%;bottom:65%}.play #partyGuests img{width:24px}.play #partyCaption{left:27%;width:73%;font-size:10px}.play .bunting{display:none}#stations[data-count='1'] .station.zoomed{grid-template-columns:1fr;grid-template-rows:26px 44px minmax(0,1fr) 37px;gap:2px;padding:5px 7px}#stations[data-count='1'] .station.zoomed .station-tail{display:block;grid-row:4;grid-column:1}#stations[data-count='1'] .station.zoomed .actions{display:flex;height:100%}#stations[data-count='1'] .station.zoomed .station-order{font-size:16px}#stations[data-count='1'] .station.zoomed .work-area{grid-row:3;grid-column:1}#stations[data-count='1'] .station.zoomed .actions .primary{min-height:34px;font-size:18px}#stations[data-count='1'] .station.zoomed .share-board{grid-template-columns:minmax(105px,1.1fr) minmax(150px,1fr);gap:4px}#stations[data-count='1'] .station.zoomed .give{flex-wrap:wrap;padding-bottom:12px}#stations[data-count='1'] .station.zoomed .give small{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:11px}#stations[data-count='1'] .station.zoomed .give>span{font-size:10px}#stations[data-count='1'] .station.zoomed .give img{height:25px;width:22px}#stations[data-count='1'] .station.zoomed .give .pizza{width:35px;height:37px}}
@keyframes plate-arrival{50%{background:#e7f4cc;border-color:#85ae54}}@keyframes cut-glow{0%{stroke:#fff;stroke-width:6}100%{stroke-width:2}}@keyframes friend-arrives{from{translate:30px 0;opacity:0}to{translate:0;opacity:1}}
@media(prefers-reduced-motion:reduce){.give.arrived,.source.cutting .slice,.play #partyGuests img{animation:none}.give.drop-ready{scale:1}}
#stations .station.zoomed .feedback.error,#stations .station.zoomed .feedback.success,#stations .station.zoomed .feedback.tip{display:flex;position:absolute;bottom:43px;left:7%;right:7%;min-height:28px;padding:5px 8px;border:1px solid #c1d4ae;border-radius:10px;background:#fff9e9f5;font-size:12px;z-index:5;box-shadow:0 2px 5px #3452}#stations .station.zoomed .feedback.error{color:#994b22;background:#fff0d4f5}#stations .station.zoomed .feedback.success{color:#1d7460;background:#deefcdf5}
.station{position:relative}
@media(min-width:701px){#stations[data-count='1'] .station.zoomed{grid-template-columns:minmax(120px,.6fr) minmax(300px,3fr) minmax(160px,.75fr);grid-template-rows:28px minmax(0,1fr);gap:3px 12px}#stations[data-count='1'] .station.zoomed .station-head{grid-column:1/-1;grid-row:1}#stations[data-count='1'] .station.zoomed .station-order{grid-column:1;grid-row:2;flex-direction:column;justify-content:center;font-size:19px}#stations[data-count='1'] .station.zoomed .station-order>.fraction{font-size:32px}#stations[data-count='1'] .station.zoomed .work-area,#stations[data-count='1'] .station.zoomed.sharing .work-area{grid-column:2;grid-row:2}#stations[data-count='1'] .station.zoomed .station-tail{grid-column:3;grid-row:2;display:flex;flex-direction:column;justify-content:center;gap:10px}#stations[data-count='1'] .station.zoomed .actions{height:auto;display:grid;grid-template-columns:1fr 1fr}#stations[data-count='1'] .station.zoomed .actions .primary{grid-column:1/-1;min-height:42px}#stations[data-count='1'] .station.zoomed .feedback.error,#stations[data-count='1'] .station.zoomed .feedback.success,#stations[data-count='1'] .station.zoomed .feedback.tip{position:static;min-height:45px;font-size:14px}#stations[data-count='1'] .station.zoomed .share-board{grid-template-columns:minmax(120px,1.1fr) minmax(180px,1fr)}}

#stations .station.zoomed.show-proof .feedback.success{display:none}

.auto-next{display:flex;align-items:center;justify-content:center;flex:1;font-size:14px;color:#25725e;background:#e5f0d8;border-radius:10px;padding:4px 8px;text-align:center}#stations[data-count='1'] .actions .auto-next{grid-row:1;grid-column:1/-1;min-height:40px}.station.zoomed .actions .auto-next{min-height:30px}@media(max-width:700px){.auto-next{font-size:12px;padding:3px}}

/* Physical cutter, local to each station and available while enlarged. */
.cut-guide{fill:none;stroke:#fffbe3;stroke-width:4;stroke-dasharray:5 5;filter:drop-shadow(0 1px 1px #352);cursor:crosshair}.cut-guide.done{stroke:#754320;stroke-width:3;stroke-dasharray:none}.needs-cut .source{cursor:crosshair}.station.sharing 

.cut-guide{stroke:#157e83;stroke-width:4;filter:drop-shadow(0 0 2px #fff)}.cut-guide.done{stroke:#754320;stroke-width:3}

.cut-guide{filter:none;stroke:#075a69;stroke-width:5}.needs-cut .amount{pointer-events:none}.needs-cut .source{position:relative;z-index:1}

/* Fraction operations: all manipulation remains inside the lower station. */
.mode-cards:has([data-advanced]:not([hidden])){grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.mode-cards [data-advanced]{background:#e5f1d9}.mode-cards:has([data-advanced]:not([hidden])) strong{font-size:18px}
.arithmetic-board{height:100%;display:flex;align-items:stretch;gap:6px}.arithmetic-board figure{flex:1;display:grid;grid-template-rows:24px minmax(0,1fr) 30px;min-width:0;max-width:none;text-align:center}.arithmetic-board figure>.pizza{min-height:0;height:100%;width:100%}.arithmetic-board figcaption{font-size:13px;line-height:1.1}.arithmetic-board .fraction{font-size:15px}.pizza-stack{min-height:0;display:flex;align-items:center}.pizza-stack>.pizza{min-width:0;flex:1}.operation-piece{cursor:pointer;touch-action:none;stroke:transparent;stroke-width:3}.operation-piece:focus-visible,.operation-piece:hover{stroke:#16858b}.arithmetic .work-area{touch-action:none}.arithmetic .station-order{gap:8px}.arithmetic .station-order .fraction{font-size:24px;background:#fff3ce;padding:3px 7px;border-radius:8px}.arithmetic-board .combined{border-left:2px dashed #bdcfaa;padding-left:5px}.arithmetic .source{display:none}.arithmetic .cut-tools .cut{font-size:12px}
@media(max-width:1000px){.mode-cards:has([data-advanced]:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}.mode-cards:has([data-advanced]:not([hidden])) button{min-height:62px;padding:5px;gap:3px}.mode-cards:has([data-advanced]:not([hidden])) button svg{display:none}.mode-cards:has([data-advanced]:not([hidden])) strong{font-size:15px}.mode-cards:has([data-advanced]:not([hidden])) small{font-size:10px}.arithmetic-board figcaption{font-size:11px}.arithmetic .station-order .fraction{font-size:21px}}
@media(max-width:700px){.mode-cards:has([data-advanced]:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.mode-cards:has([data-advanced]:not([hidden])) button{min-height:48px}.menu-options:has([data-advanced]:not([hidden])){gap:5px}.arithmetic-board figure{grid-template-rows:25px minmax(0,1fr) 28px}.arithmetic .station-order{font-size:15px}}
.arithmetic-board .combined.double{flex:2}.arithmetic-board .pizza-stack>.pizza{width:0}.plate:has(>.pizza:nth-child(2)){display:flex}.plate:has(>.pizza:nth-child(2))>.pizza{width:50%}.delivery:has(>.pizza:nth-child(2)){display:flex}.delivery:has(>.pizza:nth-child(2))>.pizza{width:50%}
.answer-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr) 28px;gap:3px 8px}.answer-board>figure{height:100%;grid-template-rows:20px minmax(0,1fr) 25px}.answer-board>figure:only-of-type{grid-column:1/-1}.answer-total{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:8px;font-size:14px}.answer-total .fraction{font-size:15px}.answer-board .operation-piece[aria-pressed=true]{stroke:#fff9dc;stroke-width:2}
.sum-station .work-area{padding-bottom:36px}.extra-pizza{position:absolute;bottom:0;left:50%;transform:translateX(-50%);min-height:31px;padding:3px 12px;font-size:13px;white-space:nowrap;background:#e7f1d6}.sum-answer figure{grid-template-rows:20px minmax(0,1fr) 0px}.sum-answer figcaption{font-weight:500}.sum-answer .answer-total{font-size:15px;font-weight:500;background:#fff1cb;border-radius:8px}.sum-station .work-area:has(.extra-pizza[hidden]){padding-bottom:0}
/* Classroom revision: protect the answer area and expose the course progression. */
.course-focus{margin:0;text-align:center;font-size:14px;line-height:1.2;color:#28564f}.menu-options{gap:8px}
#stations .station.arithmetic{grid-template-rows:27px 54px minmax(0,1fr) 79px;gap:4px}#stations .station.arithmetic .work-area{padding-bottom:0}#stations .station.arithmetic .station-tail{grid-template-rows:minmax(38px,1fr) 36px}.arithmetic .feedback{font-size:16px;line-height:1.15;font-weight:500;background:#e9f3de;border-radius:9px}.arithmetic .actions .extra-pizza{position:static;transform:none;font-size:13px;min-height:34px;white-space:nowrap;padding:3px 8px}.answer-board{grid-template-rows:minmax(0,1fr) 27px}.answer-board>figure,.sum-answer>figure{grid-template-rows:19px minmax(0,1fr) 0px}.answer-board>figure>div{display:none}.answer-board>figure>.pizza{height:100%;max-height:100%;min-height:0}.answer-board>figure:only-of-type{grid-column:1/-1}.answer-total{padding:2px}.arithmetic .actions .hint{display:none}
#stations[data-count='1'] .station.arithmetic{grid-template-columns:minmax(130px,.6fr) minmax(300px,2.6fr) minmax(180px,.8fr);grid-template-rows:28px minmax(0,1fr)}#stations[data-count='1'] .station.arithmetic .station-head{grid-column:1/-1;grid-row:1}#stations[data-count='1'] .station.arithmetic .station-order{grid-column:1;grid-row:2;flex-wrap:wrap;align-content:center}#stations[data-count='1'] .station.arithmetic .work-area{grid-column:2;grid-row:2}#stations[data-count='1'] .station.arithmetic .station-tail{grid-column:3;grid-row:2;grid-template-rows:minmax(70px,1fr) auto}#stations[data-count='1'] .station.arithmetic .actions .extra-pizza{grid-column:1/-1;grid-row:3}#stations[data-count='1'] .station.arithmetic .actions .hint{display:block}
#stations .station:not(.arithmetic) .feedback{font-size:15px;line-height:1.15;background:#f4f5e4;border-radius:8px}#stations .station:not(.arithmetic) .station-tail{grid-template-rows:minmax(30px,1fr) 35px}#stations .station:not(.arithmetic):not(.zoomed){grid-template-rows:25px 52px 35px minmax(0,1fr) 72px}#stations[data-count='1'] .station:not(.arithmetic):not(.zoomed){grid-template-rows:27px 52px minmax(0,1fr)}
@media(max-width:700px){.course-focus{font-size:12px}#menu{top:50.5%}.menu-options{gap:5px}#stations[data-count='1'] .station.arithmetic{grid-template-columns:1fr;grid-template-rows:27px 50px minmax(0,1fr) 77px}#stations[data-count='1'] .station.arithmetic .station-head{grid-row:1;grid-column:1}#stations[data-count='1'] .station.arithmetic .station-order{grid-row:2;grid-column:1}#stations[data-count='1'] .station.arithmetic .work-area{grid-row:3;grid-column:1}#stations[data-count='1'] .station.arithmetic .station-tail{grid-row:4;grid-column:1;grid-template-rows:minmax(36px,1fr) 35px}#stations[data-count='1'] .station.arithmetic .actions{display:flex}#stations[data-count='1'] .station.arithmetic .actions .hint{display:none}.arithmetic .feedback{font-size:15px}#stations[data-count='1'] .station:not(.arithmetic):not(.zoomed){grid-template-rows:25px 48px 35px minmax(0,1fr) 72px}#stations[data-count='1'] .station.sharing:not(.zoomed){grid-template-rows:25px 43px minmax(0,1fr) 72px}}

#stations .station.sharing:not(.zoomed){grid-template-rows:25px 43px minmax(0,1fr) 72px}#stations[data-count='1'] .station.sharing:not(.zoomed){grid-template-rows:27px 52px minmax(0,1fr)}@media(max-width:700px){#stations[data-count='1'] .station.sharing:not(.zoomed){grid-template-rows:25px 43px minmax(0,1fr) 72px}}

/* Equivalence order ticket: identical pizza scale, clearly different container. */
.reference{background:#fff1cf;border:2px solid #cda86a;border-bottom:4px dashed #cda86a;border-radius:9px 9px 2px 2px;box-shadow:0 3px 4px #674c1420}.reference figcaption{font-weight:500;color:#785016;background:#f6dfaa;border-radius:6px 6px 0 0}.reference .reference-fraction{color:#785016}.reference-pizza{padding:0}.pizza-pair .working{background:#f5faf1;border:2px solid #c8dcb8;border-radius:10px}.pizza-pair .reference,.pizza-pair .working{padding:0;box-sizing:border-box}
#menu{align-items:stretch}.menu-title{align-self:center}.menu-options{min-height:0;justify-content:center}.mode-cards:has([data-mode=multiply]:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr));overflow-y:auto;min-height:0;gap:6px}.mode-cards:has([data-mode=multiply]:not([hidden])) button{min-height:65px;padding:6px;gap:3px}.mode-cards:has([data-mode=multiply]:not([hidden])) svg{display:none}.mode-cards:has([data-mode=multiply]:not([hidden])) strong{font-size:17px}.mode-cards:has([data-mode=multiply]:not([hidden])) small{font-size:12px}#denominatorLabel{font-size:13px}#denominatorMode{max-width:200px}.sum-station .work-area{padding-bottom:0}
@media(max-width:1000px){.mode-cards:has([data-mode=multiply]:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}.mode-cards:has([data-mode=multiply]:not([hidden])) button{min-height:54px}.mode-cards:has([data-mode=multiply]:not([hidden])) strong{font-size:14px}.mode-cards:has([data-mode=multiply]:not([hidden])) small{font-size:10px}.menu-options{justify-content:flex-start}.mode-cards{overflow-y:auto;min-height:0;flex-shrink:1}.setup-row{gap:5px}.course-focus{flex-shrink:0}}
@media(max-width:700px){.mode-cards:has([data-mode=multiply]:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}.mode-cards:has([data-mode=multiply]:not([hidden])) button{min-height:52px}.menu-options{gap:4px}.setup-row{flex-shrink:0;justify-content:center}#configSummary{font-size:11px}.course-focus{font-size:11px}.mode-cards{overscroll-behavior:contain;touch-action:pan-y}#menuMessage{font-size:11px;flex-shrink:0}.reference figcaption{font-size:11px}}
#stations .station.arithmetic.has-simplification .actions .hint{display:block;font-size:12px;padding:3px 7px}.simplify-help{position:absolute;inset:0;z-index:8;background:#fff8df;border:2px solid #d5b46a;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px;text-align:center;overflow:auto}.simplify-help strong{font-size:16px}.simplify-help p{margin:0;font-size:14px;line-height:1.15}.simplify-equation{display:flex;align-items:center;justify-content:center;gap:9px;font-size:20px}.simplify-equation .fraction{font-size:20px;white-space:nowrap}.simplify-help button{font-size:13px;min-height:32px;padding:3px 12px}.simplify-help p b{color:#146b69}@media(max-height:800px){.simplify-help{justify-content:flex-start;gap:3px;padding:5px}.simplify-help strong{font-size:14px}.simplify-help p{font-size:12px}.simplify-equation,.simplify-equation .fraction{font-size:17px}}
/* Clear activity shelves and per-player teaching cards. */
.activity-tabs{display:flex;gap:8px;justify-content:center}.activity-tabs button{flex:1;min-height:42px;font-size:16px;background:#fff8df}.activity-tabs button[aria-pressed=true]{background:#237c78;color:white}.mode-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.help-buttons{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}.help-rule{background:#e5f3ed;padding:8px;border-radius:8px}.fraction-model{display:grid;width:min(220px,90%);height:70px;flex-shrink:0;border:2px solid #366d71}.fraction-model i{border:1px solid #366d71;background:#faf5dc;display:flex;align-items:center;justify-content:center;font-style:normal;color:#163f45}.multiply-model{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr)}.divide-model{grid-template-columns:repeat(4,1fr)}.fraction-model .third{background:#9bd8e1}.fraction-model .taken{background:#e9ac48;font-weight:bold}.visual-operation{font-size:12px;padding:3px 6px;min-height:35px}.arithmetic .actions{display:flex;flex-wrap:wrap;gap:4px}.arithmetic .actions .serve{flex:1}.simplify-help{justify-content:flex-start}.simplify-help>strong{flex-shrink:0}.simplify-help .help-buttons{margin-top:auto}.simplify-help p{max-width:440px}
@media(max-width:700px){
 #app{min-height:650px}.play #scene{height:29%}.play #stations{top:30%;bottom:8%}.play #scene header{padding:10px}.play #scene h1{font-size:19px}.play #chef{max-height:65%;bottom:12%}.play #customers{top:20%;height:62%}.play #sceneStatus{font-size:13px;top:3%;left:48%;right:3%;padding:5px}.play #party{height:23%}.play #partyCaption{font-size:11px}.play #partyGuests{display:none}
 #menu{top:40%}.menu #scene{height:39%}.menu #intro{font-size:12px}.menu #intro h2{font-size:19px}.menu #chef{max-height:65%}.activity-tabs button{font-size:13px;min-height:38px;padding:4px}.menu-options .mode-cards,.mode-cards:has([data-mode=multiply]:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;flex-shrink:0}.menu-options .mode-cards button{min-height:59px}.menu-options .mode-cards svg{display:none}.menu-options .mode-cards strong{font-size:14px}.menu-options .mode-cards small{font-size:11px}#stations[data-count='1'] .station.arithmetic .station-tail{grid-template-rows:minmax(36px,1fr) auto}#stations[data-count='1'] .station.arithmetic{grid-template-rows:27px 54px minmax(0,1fr) 94px}.simplify-help p{font-size:14px}.simplify-help strong{font-size:16px}.simplify-help button{min-height:38px}.fraction-model{height:80px}.arithmetic .actions button{min-height:36px}
}
@media(prefers-reduced-motion:no-preference){.fraction-model .taken{animation:help-reveal .6s ease-out}@keyframes help-reveal{from{opacity:.3;transform:scale(.8)}to{opacity:1;transform:scale(1)}}}
#stations:not([data-count='1']) .simplify-help{gap:2px;padding:5px}#stations:not([data-count='1']) .simplify-help strong{font-size:14px}#stations:not([data-count='1']) .simplify-help p{font-size:12px}#stations:not([data-count='1']) .fraction-model{height:42px}#stations:not([data-count='1']) .help-buttons{position:sticky;bottom:0;background:#fff8df;flex-shrink:0}#stations:not([data-count='1']) .help-buttons button{min-height:30px;padding:2px 8px}
@media(max-width:700px){.play #customers{left:48%;right:5%;top:20%;height:55%}.play #customers .customer span{display:none}.play #chef{left:8%;bottom:17%;max-height:48%}.play #scene header{max-width:46%}.play #scene h1{font-size:17px}}
.written-board{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(140px,1.2fr);gap:10px;height:100%;padding:3px}.written-answer{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:0}.entry-field{min-height:0;flex:1;max-height:95px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3px}.entry-field:first-child{border-bottom:4px solid #28564f}.entry-field small{font-size:12px}.entry-field strong{font-size:30px}.entry-field[aria-pressed=true]{outline:3px solid #e9af35;outline-offset:-3px;background:#fff1ca}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,minmax(0,1fr));gap:4px;min-height:0}.number-pad button{min-height:0;padding:2px;font-size:23px;touch-action:none}.baking-reward{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:3px}.baking-pizza{height:65%;aspect-ratio:1;max-width:70%}.baking-pizza svg{height:100%;width:100%}.baking-reward strong{font-size:22px}.baking-reward span{font-size:16px}.written-calculation .actions .serve{flex:2}
@media(prefers-reduced-motion:no-preference){.baking-pizza{animation:bake-pizza 1.6s ease-in-out both}@keyframes bake-pizza{0%{opacity:0;transform:scale(.3) rotate(-30deg);filter:grayscale(1)}35%{opacity:1;transform:scale(1.05);filter:grayscale(.5)}65%{filter:grayscale(0);transform:scale(1)}100%{transform:translateY(-8px) scale(.9);filter:drop-shadow(0 0 10px #ffbe59)}}}
@media(max-width:700px){.written-board{grid-template-columns:minmax(100px,.8fr) minmax(150px,1.2fr)}.number-pad button{font-size:27px}.entry-field{max-height:120px}.entry-field strong{font-size:36px}}
