:root{--blue:#12609a;--header:64px;--footer:38px;--ink:#163d5d}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:system-ui,sans-serif;color:white;background:#dce7ed}button,select{font:inherit;border:0;border-radius:8px;padding:9px 14px;cursor:pointer}button{background:#ffe09a;color:#173c57;font-weight:700}button:disabled{opacity:.43;cursor:default}button:focus-visible,select:focus-visible{outline:3px solid #82ceff;outline-offset:2px}#scene{position:fixed;inset:0}#scene canvas{display:block}header{position:fixed;inset:0 0 auto;height:var(--header);display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:8px 16px;background:var(--blue);z-index:8}header b{font-size:15px;display:flex;align-items:center;gap:8px}header .logo{width:32px;height:32px}#currentOrder{text-align:center;color:#fff1bd;font-size:15px;font-weight:700}#orders{position:fixed;right:14px;top:calc(var(--header) + 14px);width:205px;background:#102a3be6;padding:13px;border-radius:12px;max-height:38vh;overflow:hidden}h2{font-size:19px;margin:0 0 10px}.order{padding:8px;margin:6px 0;background:#24475c;border-radius:8px;font-size:13px}.order.active{outline:2px solid #ffe09a}#score{font-size:13px;margin-top:10px}#hint{position:fixed;bottom:108px;left:50%;transform:translateX(-50%);background:#102a3bea;padding:9px 16px;border-radius:9px;text-align:center;width:max-content;max-width:76vw;font-size:15px}#actions{position:fixed;bottom:calc(var(--footer) + 14px);left:50%;transform:translateX(-50%);display:flex;gap:8px;white-space:nowrap}footer{position:fixed;bottom:0;left:0;right:0;height:var(--footer);display:flex;align-items:center;justify-content:center;background:var(--blue);font-size:13px;font-weight:600;padding:5px 12px;z-index:8}#stats{position:fixed;top:calc(var(--header) + 12px);left:10px;background:#102a3bc9;border-radius:4px;padding:5px;font-size:10px}.overlay{position:fixed;inset:var(--header) 0 var(--footer);display:grid;place-items:center;z-index:6;background:#081824b8}.overlay[hidden]{display:none}#menu{background:linear-gradient(140deg,#e9f5ff,#aecfea)}#menu section{width:min(590px,94vw);max-height:100%;padding:20px 28px;border:3px solid white;border-radius:18px;background:#f8fcff;color:var(--ink);text-align:center;box-shadow:0 12px 45px #123c5d25}.menu-brand{color:var(--blue);font-weight:800;font-size:14px}#menu h1{font-size:36px;margin:6px}#menu p{margin:7px;font-size:15px}.shape-icons{font-size:32px;color:var(--blue);margin:3px}#menu label{display:block;text-align:left;margin:10px 0;font-weight:600;font-size:15px}#menu select{width:100%;margin-top:4px;background:#e8f2fb;color:var(--ink);padding:8px}#start{width:100%;background:var(--blue);color:white;margin-top:8px}#loadStatus{font-size:13px!important;min-height:18px}#work{background:#edf5fb}#work .work{height:100%;width:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:7px;padding:10px 20px;color:var(--ink);overflow:hidden}.workhead{display:flex;justify-content:space-between;align-items:center;gap:10px}#workTitle{margin:0;font-size:21px}#workOrder{padding:6px 12px;background:var(--blue);color:white;border-radius:7px;font-size:15px;font-weight:700;text-align:center}#canvasWrap{min-height:0;min-width:0;overflow:hidden;border-radius:12px;background:#b99466}#surface{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:crosshair}#workHint{font-size:16px;font-weight:600;margin:0}#done{justify-self:end;min-height:36px}@media(max-width:1000px){header b{font-size:12px}#currentOrder{font-size:12px}header{gap:8px}#orders{width:170px}#actions{gap:5px}#actions button{font-size:13px;padding:9px 10px}}@media(max-width:700px){:root{--header:84px;--footer:46px}header{grid-template-columns:1fr auto auto;grid-template-rows:32px 28px;padding:7px 10px;gap:4px}#currentOrder{grid-row:2;grid-column:1/-1}header b{font-size:12px}header .logo{width:24px;height:24px}header button{padding:7px 9px;font-size:12px}#orders{width:140px;padding:8px}.order{font-size:11px}#actions{width:98%;justify-content:center;gap:4px}#actions button{font-size:11px;padding:8px 7px}#hint{bottom:105px;font-size:12px;max-width:94vw}footer{font-size:11px;text-align:center}#work .work{padding:8px 10px;gap:5px}#workTitle{font-size:17px}#workHint,#workOrder{font-size:12px}#menu section{padding:12px 20px}#menu h1{font-size:28px}.shape-icons{font-size:25px}}@media(max-height:650px){#menu section{padding:9px 20px}#menu h1{font-size:28px;margin:3px}#menu p{font-size:13px;margin:4px}.shape-icons{font-size:22px;margin:0}#menu label{margin:6px 0;font-size:13px}#menu select{padding:6px}#start{padding:7px;margin-top:4px}#loadStatus{margin:4px!important}#workHint{font-size:13px}#workTitle{font-size:18px}.workhead button{font-size:12px;padding:6px 9px}}

#stats{display:none}

.menu-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.menu-fields label{min-width:0!important;margin:3px 0!important}.menu-fields select{min-width:0;font-size:14px}#learningText{position:fixed;bottom:150px;left:50%;transform:translateX(-50%);max-width:80vw;border-radius:10px;padding:10px 18px;background:#fff0c4;color:#173c57;font-weight:700;text-align:center;z-index:4}#learningText[hidden]{display:none}#workLesson{margin-top:5px;color:#fff0c4;font-weight:700}.rtl #orders{left:14px;right:auto}.rtl #menu label{text-align:right}.rtl #workTitle{text-align:right}#canvasWrap,#surface{direction:ltr}@media(max-width:700px){.menu-fields select{font-size:12px}.menu-fields{gap:5px 8px}#learningText{bottom:145px;max-width:94vw;font-size:13px;padding:6px 12px}}

header{grid-template-columns:auto minmax(0,1fr) auto auto auto}#boxing{background:#edf5fb}#boxing .boxing-work{height:100%;width:min(1080px,100%);display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:8px;padding:14px 20px;color:var(--ink);overflow:hidden}#boxOrder{font-weight:700;text-align:center}#boxChoices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#boxChoices button{display:flex;align-items:center;justify-content:center;gap:6px;background:#f6deb6;border:2px solid #a7835b;padding:3px 6px;font-size:14px;min-width:0}#boxChoices svg{width:42px;height:36px;flex-shrink:0}#boxingCanvas{width:100%;height:100%;min-height:0;object-fit:contain;direction:ltr}#boxingFeedback{font-weight:700;text-align:center;min-height:25px;margin:0}#boxingFeedback[data-result="rejected"]{color:#b52c27}#boxingFeedback[data-result="fit"]{color:#236842}#sound[data-state="locked"],#sound[data-state="suspended"]{outline:2px solid #fff}#hint{max-width:90vw}#actions button{font-size:12px}
@media(max-width:1000px){header b{max-width:210px;font-size:11px}header{gap:5px;padding-inline:8px}header button{font-size:12px;padding:8px}#boxing .boxing-work{padding:8px;gap:5px}#boxChoices button{font-size:11px}#boxChoices svg{width:30px;height:28px}#boxingFeedback{font-size:12px}}
@media(max-width:700px){header{grid-template-columns:1fr auto auto auto}#currentOrder{grid-column:1/-1}header b{max-width:230px}#boxChoices button{padding:2px;font-size:10px}#actions{flex-wrap:wrap}#actions button{font-size:10px;padding:5px 7px}#hint{bottom:120px}#learningText{bottom:166px}footer{font-size:10px}}

#actions{pointer-events:none}#actions span{display:flex;align-items:center;padding:8px 12px;border:2px solid #c6d5df;border-radius:8px;background:#d7e0e6;color:#355065;font-weight:700;font-size:12px;opacity:.7}#actions span[data-active="true"]{background:#ffe09a;color:#173c57;border-color:#fff0c4;opacity:1}#done{background:#ffe09a;color:#173c57;padding:8px 14px;border-radius:8px;font-weight:700;pointer-events:none}#done[data-complete="false"]{opacity:.5}@media(max-width:700px){#actions span{font-size:10px;padding:5px 7px}}

/* Readable prompts for early readers. Color has a matching word or key label. */
#actions,#orders{display:none}#hint{bottom:68px;font-size:clamp(22px,2.6vw,34px);font-weight:800;background:#fff2b9;color:#204563;border:4px solid #ffcb42;max-width:92vw}#currentOrder{font-size:clamp(20px,2.2vw,30px);color:#fff39b}#workTitle,#boxingTitle{font-size:28px;color:#12609a}#workHint,#boxingFeedback{font-size:clamp(20px,2.4vw,28px);color:#12609a;font-weight:800}#workOrder,#boxOrder,#workLesson{font-size:24px}#done{font-size:22px}#boxChoices button{font-size:20px;min-height:56px}#boxChoices button[data-keyboard="true"]{outline:5px solid #1673b4;background:#fff0a6;outline-offset:-2px}#boxingFeedback[data-result="rejected"]{color:#b32532}#boxingFeedback[data-result="fit"]{color:#16714e}footer{font-size:17px;text-align:center;min-height:46px;height:auto}#menu p,#menu label,#menu select,#start{font-size:22px}#menu h1{color:#d35a23}#menu section{width:min(720px,94vw)}#menu .menu-brand{color:#147a58}#work .work,#boxing .boxing-work{gap:6px}#boxChoices{grid-template-columns:repeat(3,1fr)}#learningText{font-size:26px}button:focus-visible,select:focus-visible{outline:5px solid #ffcf40}#start{background:#148359}header b{font-size:12px}header button{font-size:16px}
@media(max-height:680px){#workTitle,#boxingTitle{font-size:24px}#workOrder,#boxOrder,#workLesson{font-size:21px}#menu p,#menu label,#menu select,#start{font-size:19px}#boxChoices button{font-size:18px;min-height:45px}#boxChoices svg{height:32px}#hint{font-size:24px}}

footer{font-size:26px!important;line-height:1.15;font-weight:800;color:#fff3ae} :root{--footer:48px}

.menu-fields label:first-child{grid-column:1/-1}
#menu #language{height:auto;border:2px solid #91b9d6}
#language option{unicode-bidi:plaintext}
@font-face{font-family:PizzaCJK;src:url("/play/pizza/fonts/pizza-cjk.woff") format("woff");font-display:swap}
@font-face{font-family:PizzaDevanagari;src:url("/play/pizza/fonts/pizza-devanagari.woff") format("woff");font-display:swap}
html,body{font-family:system-ui,PizzaCJK,PizzaDevanagari,sans-serif}

/* v65: one order heading in the main header; station work advances automatically. */
#work .work{grid-template-rows:auto minmax(0,1fr) auto}
#workLesson{grid-row:1;margin:0;padding:6px 12px;background:var(--blue);color:#fff0c4;border-radius:7px;text-align:center}
#workLesson[hidden]{display:none}
#canvasWrap{grid-row:2}
#workHint{grid-row:3}

/* v67: narration and feedback never reflow the drawing surface. */
#work .work{grid-template-rows:3.4em minmax(0,1fr) 2.6em;font-size:clamp(16px,2vw,24px)}
#workLesson{font-size:inherit;line-height:1.15;display:flex;align-items:center;justify-content:center;min-height:0;overflow:auto}
#workLesson[hidden]{display:flex;visibility:hidden}
#workHint{font-size:inherit;line-height:1.15;min-height:0;overflow:auto;display:flex;align-items:center}
#boxing .boxing-work{grid-template-rows:2em 1.5em auto minmax(0,1fr) 3.4em;font-size:clamp(16px,2vw,24px);min-width:0}
#boxingTitle{font-size:inherit;margin:0}#boxOrder{font-size:inherit}
#boxingFeedback{font-size:inherit;line-height:1.15;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto}
#boxChoices button{font-size:clamp(12px,1.55vw,20px);min-height:42px}
#boxingCanvas{min-width:0;max-width:100%}
footer{height:var(--footer);min-height:0;font-size:clamp(13px,2vw,26px)!important;overflow:hidden}
@media(max-width:700px){#work .work{grid-template-rows:5.4em minmax(0,1fr) 2.6em}#boxChoices button{overflow-wrap:anywhere}#boxChoices svg{width:22px;height:24px}header b{font-size:10px}header button{font-size:13px}}

/* v72: shared navy/cyan game menu, scoped to the opening/settings overlay. */
#menu{inset:0;z-index:30;display:flex;flex-direction:column;background:radial-gradient(at 60% 0%,#0e3152,#051327 75%);color:#f1f6ff;overflow:auto;place-items:normal}
#menu[hidden]{display:none}
#menu .menu-top{height:96px;min-height:80px;padding:14px 3.2%;display:flex;align-items:center;background:#061326;border-bottom:1px solid #203750}
#menu .menu-brand{display:flex;align-items:center;gap:20px;color:#f1f6ff;font-size:26px;font-weight:750}
#menu .menu-brand .logo{width:70px;height:60px;filter:drop-shadow(0 0 7px #00bfff)}
#menu .menu-layout{display:grid;grid-template-columns:1.67fr 1fr;gap:20px;padding:14px 20px 14px 5px;flex:1;min-height:0}
#menu section{width:auto;max-height:none;min-width:0;padding:28px 30px;border:1px solid #2c435e;border-radius:28px;background:linear-gradient(145deg,#0c2444,#051327);color:#f1f6ff;box-shadow:none;text-align:start}
#menu .menu-hero{position:relative;display:flex;align-items:center;overflow:hidden;background:radial-gradient(at 95% 0%,#0c3750,transparent 65%),linear-gradient(145deg,#0b2444,#051327)}
#menu .hero-copy{position:relative;z-index:1;width:42%;align-self:center}
#menu h1{font-size:clamp(36px,3.6vw,54px);line-height:1.15;color:#f1f6ff;margin:0 0 18px}
#menu p.intro{font-size:clamp(18px,1.7vw,24px);line-height:1.5;margin:0;color:#bdd6ee}
#menu .pizza-hero{position:absolute;inset-inline-end:0;width:63%;max-height:90%;object-fit:contain;pointer-events:none}
#menu .menu-settings{display:flex;flex-direction:column}
#menu h2{font-size:32px;margin:0 0 12px}
#menu .menu-fields{display:flex;flex-direction:column;gap:6px}
#menu label{font-size:16px;margin:0!important;font-weight:700;text-align:start}
#menu select,#menu #language{width:100%;background:#061a34;border:1px solid #40516b;color:#f1f6ff;font-size:20px;padding:11px 16px;border-radius:14px;margin:5px 0 0;min-height:48px}
#menu .choice-label select{display:none}
#menu .menu-choices{display:flex;gap:10px;margin-bottom:3px}
#menu .menu-choices button{flex:1;min-width:0;padding:10px 4px;border-radius:13px;border:1px solid #22c8eb;background:#092c4c;color:#f1f6ff;font-size:19px;overflow-wrap:anywhere}
#menu .menu-choices button[aria-pressed=true]{background:#0095c7;border:3px solid #6ee0ff;padding:8px 2px;box-shadow:inset 0 0 0 1px #32afd4}
#menu .start-area{margin-top:auto;padding-top:22px}
#menu #start{background:linear-gradient(100deg,#0099da,#21c4df);color:#001522;font-size:24px;min-height:58px;border-radius:16px;margin:0}
#menu #loadStatus{font-size:13px!important;min-height:0;margin:6px 0 0;text-align:center}
#menu #loadStatus:empty{display:none}
#menu button:focus-visible,#menu select:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:850px){#menu .menu-layout{grid-template-columns:1fr 1fr;gap:12px;padding:12px}#menu section{padding:22px}#menu .hero-copy{width:100%;align-self:flex-start}#menu .pizza-hero{width:100%;bottom:0;top:auto;max-height:65%}#menu .menu-choices button{font-size:16px}#menu h2{font-size:26px}}
@media(max-width:600px){#menu .menu-top{height:70px;min-height:70px}#menu .menu-brand{font-size:21px;gap:12px}#menu .menu-brand .logo{width:45px;height:45px}#menu .menu-layout{display:flex;flex-direction:column;flex:none}#menu .menu-hero{min-height:240px}#menu .hero-copy{width:50%;align-self:center}#menu .pizza-hero{width:55%;max-height:100%;top:0}#menu h1{font-size:34px}#menu p.intro{font-size:17px}#menu .menu-settings{min-height:460px}}
@media(max-height:650px) and (min-width:601px){#menu .menu-top{height:64px;min-height:64px}#menu .menu-layout{min-height:450px}#menu section{padding:18px 24px}#menu h2{font-size:26px}#menu .start-area{padding-top:10px}}
