:root{--cream:#faf7ed;--paper:#fffef9;--ink:#29392f;--muted:#778074;--red:#bd4935;--redlight:#fae8de;--green:#365946;--line:#e4e3d6;--sage:#e8eddf;--yellow:#f6df9d;--radius:18px;font-family:Arial,'Noto Sans JP','Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d7a445;outline-offset:3px}button{color:inherit;border:0;background:none}img{max-width:100%}.shell{max-width:1480px;margin:auto;padding:0 40px}header{height:98px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:20px;letter-spacing:-.8px;text-decoration:none;white-space:nowrap}.brand img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 1px #6b351b20)}.brand small{display:block;font-size:9px;letter-spacing:2.8px;font-weight:600;margin-top:4px;color:var(--muted)}.identity{display:flex;gap:12px;align-items:center;font-size:13px}.identity .avatar{width:36px;height:36px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-weight:800}nav{display:flex;gap:5px;background:#efeee4;border-radius:50px;padding:5px}nav button{padding:12px 21px;border-radius:50px;font-size:13px;font-weight:700}nav button.active{background:var(--green);color:#fff}.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:10px;padding:13px 19px;background:var(--red);color:#fff;font-size:14px;font-weight:700;min-height:44px;text-decoration:none}.btn.green{background:var(--green)}.btn.light{background:var(--paper);color:var(--ink);border:1px solid var(--line)}.btn.subtle{background:var(--sage);color:var(--green)}.btn.small{padding:9px 13px;min-height:36px;font-size:12px}.btn.full{width:100%}.text-btn{font-size:12px;text-decoration:underline;text-underline-offset:4px;color:var(--muted);padding:9px}.eyebrow{text-transform:uppercase;font-weight:700;font-size:10px;letter-spacing:2.4px;color:var(--red);display:flex;align-items:center;gap:8px}.eyebrow:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}h1,h2,h3,p{margin:0}h1{font-family:Georgia,'Times New Roman',serif;font-size:43px;letter-spacing:-1.9px;font-weight:500;line-height:1.16}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:15px}.muted{color:var(--muted);font-size:12px;line-height:1.8}.pagehead{padding:34px 0 27px;display:flex;align-items:end;justify-content:space-between;gap:20px}.pagehead h1{margin:9px 0}.tag{display:inline-flex;padding:6px 10px;border-radius:30px;font-size:10px;font-weight:700;background:var(--sage);color:var(--green);white-space:nowrap}.dot{width:6px;height:6px;background:#568663;border-radius:50%;display:inline-block;margin-right:6px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.section-label{font-size:10px;letter-spacing:1.8px;font-weight:700;text-transform:uppercase;color:var(--muted);margin-bottom:14px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:15px}label{font-size:12px;font-weight:700;display:grid;gap:8px}input,select{border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);padding:13px 12px;min-width:0;max-width:100%}input::placeholder{color:#a4a69a}input[type=number]{width:80px}small{font-size:11px}.error{color:#a53224;font-size:12px;line-height:1.7;white-space:pre-line}.notice{padding:13px 17px;border-radius:11px;background:var(--yellow);font-size:12px;line-height:1.7;margin-bottom:20px}.loading{padding:90px;text-align:center;color:var(--muted)}.footer{margin-top:42px;padding:21px 0 25px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.welcome{display:grid;grid-template-columns:1.15fr .85fr;gap:70px;align-items:center;max-width:1180px;min-height:calc(100vh - 170px);margin:0 auto;padding:48px 0}.welcome h1{font-size:69px;letter-spacing:-3.8px;margin:20px 0 18px;line-height:1.04}.welcome h1 em{color:var(--red);font-weight:400}.welcome-copy>p{font-size:15px;line-height:1.9;color:var(--muted);margin-bottom:25px;max-width:430px}.welcome .hero-pizza{width:min(420px,100%);margin:24px auto -5px;transform:rotate(-7deg)}.hero-pizza .board{box-shadow:none}.welcome-login{padding:34px;position:relative}.welcome-login:before{content:'';position:absolute;top:-5px;left:20px;right:20px;height:10px;border-radius:8px;background:repeating-linear-gradient(90deg,var(--red) 0,var(--red) 24px,#ffeede 24px,#ffeede 48px)}.welcome-login h2{font-family:Georgia,serif;font-size:30px;font-weight:500;margin:10px 0}.welcome-login .login-tabs{display:flex;border-bottom:1px solid var(--line);gap:20px;margin:20px 0 24px}.login-tabs button{font-size:12px;padding:12px 0;color:var(--muted);border-bottom:2px solid transparent}.login-tabs .active{border-bottom-color:var(--red);color:var(--red);font-weight:700}.steps{display:flex;gap:23px;margin:25px 0 0;font-size:11px}.steps b{display:inline-grid;place-items:center;width:24px;height:24px;background:var(--sage);color:var(--green);border-radius:50%;margin-right:5px}.demo-strip{background:var(--yellow);padding:9px 20px;display:flex;justify-content:center;align-items:center;gap:15px;font-size:11px}.demo-strip button{text-decoration:underline}.shop-layout{display:grid;grid-template-columns:1fr 340px;gap:25px}.shop-front{overflow:hidden;background:#fffdf5}.awning{height:30px;background:repeating-linear-gradient(90deg,var(--red) 0,var(--red) 46px,#f6e9d8 46px,#f6e9d8 92px);border-bottom:5px solid #f5e9d9}.shop-title{text-align:center;padding:26px 20px 18px}.shop-title h2{font-family:Georgia,serif;font-size:28px;font-weight:500;margin:9px 0}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:18px 28px 30px}.product{text-align:center;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--cream);position:relative}.product img{height:115px;width:100%;object-fit:contain;margin:4px 0 13px;filter:drop-shadow(0 5px 5px #663d1517)}.product h3{font-size:15px}.product .price{font-family:Georgia,serif;font-size:26px;margin:13px 0 5px}.register{padding:25px;align-self:start}.register .field{margin-top:20px}.register select{width:100%}.quantity{display:flex;align-items:center;gap:14px;margin-top:8px}.quantity button{background:var(--sage);border-radius:8px;width:38px;height:38px;font-size:21px}.quantity output{font-weight:700;min-width:23px;text-align:center}.total{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed var(--line);padding-top:22px;margin:25px 0}.total strong{font-size:31px;font-family:Georgia,serif;font-weight:500}.phrase{background:var(--sage);padding:22px 25px;border-radius:14px;margin-top:22px}.phrase b{display:block;font-family:Georgia,serif;font-size:22px;font-weight:500;margin:9px 0}.phrase p{font-size:12px;line-height:2;color:var(--green)}.wallet{display:flex;align-items:center;gap:28px;background:var(--green);color:var(--paper);padding:26px 30px}.wallet .amount{font-family:Georgia,serif;font-size:44px;letter-spacing:-1px}.wallet .muted{color:#c4cfbf}.wallet .section-label{color:#bdcbb9;margin-bottom:5px}.shopping-top{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:25px}.scan-card{padding:22px 25px;display:grid;gap:14px}.code-form{display:flex;gap:8px}.code-form input{flex:1;width:80px;font-size:20px;letter-spacing:5px}.shop-directory{margin-top:28px}.directory-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:15px}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.mini-shop{padding:20px;overflow:hidden;position:relative}.mini-shop:before{content:'';height:5px;background:repeating-linear-gradient(90deg,var(--red) 0,var(--red) 22px,#f0decb 22px,#f0decb 44px);position:absolute;left:0;right:0;top:0}.mini-menu{display:grid;gap:10px;margin-top:17px}.mini-menu .row{gap:10px}.mini-menu img{width:38px;height:38px;object-fit:contain}.mini-menu .price{margin-left:auto;font-size:12px;font-weight:700}.mini-menu .name{font-size:12px}.mini-menu .name small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.history{margin-top:28px;padding:22px}.history-row{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.history-row:last-child{border:0}.history-row img{width:42px;height:42px;object-fit:contain}.builder-layout{display:grid;grid-template-columns:180px minmax(300px,1fr) 270px;gap:24px;align-items:start}.bases-panel{padding:18px 14px}.base-choice{display:flex;align-items:center;gap:10px;width:100%;border:1px solid transparent;padding:8px;border-radius:10px;margin-bottom:7px;text-align:left}.base-choice.active{border-color:#b4c5a6;background:var(--sage)}.base-choice img{width:47px;height:47px;object-fit:contain}.base-choice b{font-size:11px;display:block}.base-choice small{font-size:9px;color:var(--muted);display:block;margin-top:4px}.free-label{font-size:10px;color:var(--green);padding:4px 8px;border-radius:20px;background:var(--sage)}.workbench{min-width:0}.workbench-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 4px 15px}.workbench-bar input{border:0;background:none;padding:6px 0;font-family:Georgia,serif;font-size:22px;width:70%}.save-state{font-size:10px;color:var(--green);white-space:nowrap}.pizza-stage{position:relative;aspect-ratio:1;max-width:660px;width:100%;margin:auto;touch-action:none;border-radius:22px;background:radial-gradient(ellipse at center,#eee3cc 0%,#eee3cc 52%,#f5f0e3 53%,#f5f0e3 65%,transparent 66%)}.pizza-stage .board{position:absolute;inset:4%;border-radius:50%;background:repeating-linear-gradient(2deg,#d2ae76 0,#d2ae76 3px,#d0aa72 4px,#dbb981 6px,#d7b47b 9px);box-shadow:0 17px 28px #58472320,inset 0 0 0 8px #c5a06b;pointer-events:none}.pizza-layer{position:absolute;pointer-events:none;user-select:none;-webkit-user-drag:none}.base-layer{inset:7%;width:86%;height:86%;object-fit:contain;z-index:1;filter:drop-shadow(0 5px 5px #5a2f1620)}.cheese-layer{left:17.6%;top:17.6%;width:64.8%;height:64.8%;z-index:2;object-fit:contain}.placed{position:absolute;z-index:3;transform:translate(-50%,-50%);border:1px solid transparent;background:none;padding:0;border-radius:8px;touch-action:none;cursor:grab;line-height:0;min-width:12px;aspect-ratio:1;user-select:none}.placed img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 1px 1px #552c1920)}.placed.selected{border:1.5px dashed var(--red);background:#ffffff20;z-index:4}.placed:active{cursor:grabbing}.placement-hint{text-align:center;font-size:11px;color:var(--muted);padding:12px 0 5px}.tool-bar{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:10px}.tool-bar .btn{padding:10px 12px;font-size:11px}.selection-tools{display:flex;justify-content:center;gap:8px;min-height:46px;margin-top:8px}.selection-tools button{padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:11px}.ingredients-panel{padding:20px}.ingredient-list{display:grid;gap:8px;max-height:550px;overflow-y:auto}.ingredient{display:grid;grid-template-columns:44px 1fr auto;gap:9px;align-items:center;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;padding:9px 8px;position:relative;touch-action:none;cursor:grab}.ingredient.active{border-color:#a4b99b;background:var(--sage)}.ingredient:disabled{cursor:default}.ingredient img{width:42px;height:42px;object-fit:contain;pointer-events:none}.ingredient b{display:block;font-size:11px}.ingredient small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.ingredient .count{font-size:11px;background:var(--sage);padding:5px;border-radius:6px}.empty{text-align:center;padding:26px 15px}.empty .illustration{width:95px;height:95px;object-fit:contain;opacity:.7;margin-bottom:10px}.ingredient-note{margin-top:15px;font-size:10px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}.drag-ghost{position:fixed;z-index:500;pointer-events:none;width:60px;height:60px;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 5px #0002)}@keyframes spread{from{transform:scale(.12);opacity:.4}to{transform:scale(1);opacity:1}}.teacher-toolbar{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:25px}.teacher-toolbar select{margin-right:auto}.toggle{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:12px}.toggle.on{background:var(--sage);border-color:#c1cdb7}.teacher-table{width:100%;border-collapse:collapse;font-size:12px}.teacher-table th{text-align:left;padding:15px;color:var(--muted);font-size:10px;letter-spacing:1px;border-bottom:1px solid var(--line)}.teacher-table td{padding:13px 15px;border-bottom:1px solid var(--line)}.teacher-table .tiny{width:30px;height:30px;object-fit:contain;vertical-align:middle;margin-right:5px}.table-wrap{overflow-x:auto}.teacher-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.gallery-card{padding:16px;text-align:center}.gallery-card .pizza-stage{pointer-events:none}.gallery-card h3{margin:15px 0 4px}.teacher-view-bar{background:var(--yellow);padding:12px 18px;display:flex;justify-content:space-between;font-size:12px;margin:15px 0;border-radius:8px}.overlay{position:fixed;inset:0;background:#182f24a6;backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:22px}.modal{position:relative;background:var(--cream);border-radius:22px;padding:32px;width:min(470px,100%);max-height:92vh;overflow:auto;text-align:center;box-shadow:0 15px 80px #0003}.modal.wide{width:min(700px,100%)}.modal h2{font-family:Georgia,serif;font-size:30px;font-weight:500;margin:8px 25px 12px}.close-modal{position:absolute;right:13px;top:13px;width:34px;height:34px;border-radius:50%;background:var(--sage);font-size:20px}.qr{background:white;padding:12px;border:1px solid var(--line);border-radius:14px;width:232px;height:232px;display:block;margin:20px auto 10px}.checkout-code{font-size:40px;letter-spacing:8px;font-family:monospace;margin:9px 0 13px;color:var(--green)}.checkout-item{display:flex;justify-content:center;align-items:center;gap:12px;margin:18px 0}.checkout-item img{width:74px;height:74px;object-fit:contain}.checkout-total{font-size:36px;font-family:Georgia,serif;margin:17px 0}.modal video{width:100%;border-radius:12px;margin:20px 0;background:#1b201a}.modal .btn{margin-top:12px}.status-paid{background:var(--sage);padding:20px;border-radius:12px;color:var(--green)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(15px);background:var(--green);color:#fff;padding:14px 22px;border-radius:12px;z-index:900;font-size:13px;box-shadow:0 4px 20px #0002;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}#toast.bad{background:#a63c2c}.tabs-inline{display:flex;gap:8px;margin-bottom:20px}.tabs-inline .active{background:var(--green);color:white}.screen-reader{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
@media(min-width:1350px){.builder-layout{grid-template-columns:190px minmax(300px,1fr) 290px}.ingredient{grid-template-columns:50px 1fr auto;padding:11px}.ingredient img{width:48px;height:48px}}
@media(max-width:1100px){.shell{padding:0 25px}.builder-layout{grid-template-columns:150px minmax(280px,1fr) 225px;gap:15px}.ingredients-panel{padding:14px}.bases-panel{padding:14px 8px}nav button{padding:11px 13px}header{gap:12px}.identity .account-name{display:none}.welcome{gap:35px}.welcome h1{font-size:58px}.shop-layout{grid-template-columns:1fr 290px}.products{padding:18px 18px 25px}.product img{height:90px}}
@media(max-width:800px){.shell{padding:0 18px}header{height:auto;min-height:84px;flex-wrap:wrap;padding:18px 0;gap:15px}.brand{font-size:18px}.brand img{width:37px;height:37px}.brand small{font-size:8px}nav{order:3;width:100%;justify-content:center}nav button{flex:1;white-space:nowrap}.pagehead{padding:25px 0 20px}h1{font-size:34px}.pagehead>.tag{display:none}.builder-layout{grid-template-columns:1fr 230px;gap:15px}.bases-panel{grid-column:1/-1;display:flex;align-items:center;gap:4px;overflow-x:auto;padding:9px}.bases-panel>.section-label{display:none}.bases-panel .free-label{display:none}.base-choice{min-width:105px;flex:1;margin:0;padding:5px;gap:6px}.base-choice img{width:34px;height:34px}.base-choice b{font-size:9px}.base-choice small{display:none}.welcome{grid-template-columns:1fr;gap:25px;padding-top:30px;max-width:560px}.welcome h1{font-size:54px}.welcome-copy{position:relative}.welcome .hero-pizza{display:none}.welcome-copy>p{font-size:13px}.steps{margin-top:0}.welcome-login{padding:28px}.shop-layout{grid-template-columns:1fr}.shop-grid{grid-template-columns:repeat(2,1fr)}.shopping-top{grid-template-columns:1fr 1fr}.wallet{padding:22px;display:block}.wallet .amount{font-size:39px}.wallet .muted{margin-top:10px}.teacher-grid{grid-template-columns:repeat(2,1fr)}.products{padding:18px}.register{padding:22px}.register .field{margin-top:12px}.shop-title{padding-bottom:5px}}
@media(max-width:560px){.builder-layout{grid-template-columns:1fr;gap:16px}.workbench{grid-row:2}.ingredients-panel{grid-row:3;padding:17px}.ingredient-list{grid-template-columns:repeat(2,1fr);max-height:none;gap:7px}.ingredient{grid-template-columns:38px 1fr auto;padding:8px 6px}.ingredient img{width:35px;height:35px}.ingredient b{font-size:10px}.ingredient small{font-size:9px}.ingredients-panel .section-label{margin-bottom:10px}.ingredient-note{font-size:10px}.shopping-top{grid-template-columns:1fr}.wallet{display:flex;gap:25px}.shop-grid{grid-template-columns:1fr}.directory-header{align-items:start;flex-direction:column}.directory-header select{width:100%}.products{gap:7px;padding:14px}.product{padding:11px 5px}.product img{height:75px}.product h3{font-size:12px}.product small{font-size:9px}.product .price{font-size:22px}.identity{gap:0}.identity .avatar{display:none}.welcome h1{font-size:52px}.steps{gap:9px;font-size:10px}.steps b{width:21px;height:21px;margin-right:3px}.welcome-login{padding:23px}.pagehead h1{font-size:31px}.teacher-toolbar .btn{font-size:11px}.teacher-grid{gap:10px}.gallery-card{padding:10px}.footer{margin-top:28px}.base-choice{min-width:89px;flex-direction:column;gap:3px;padding:7px 4px}.base-choice img{width:39px;height:39px}.base-choice b{font-size:9px}.modal{padding:29px 22px}.qr{width:210px;height:210px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Tap-to-order checkout and automatic QR camera. */
.product-order{width:100%;color:var(--ink);font:inherit;transition:transform .15s,box-shadow .15s,border-color .15s}
.product-order:not(:disabled):hover{transform:translateY(-3px);border-color:#9eb499;box-shadow:0 8px 22px #304c3112}
.product-order:not(:disabled):active{transform:translateY(0)}
.order-tap{display:block;margin-top:15px;font-size:11px;font-weight:700;color:var(--green)}
.order-steps{padding-left:19px;margin:20px 0;font-size:12px;line-height:2.2;color:var(--green)}
.order-quantities{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:20px 0 13px}
.order-quantities button{display:grid;gap:5px;justify-items:center;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:12px 4px;color:var(--green);min-height:88px}
.order-quantities button:hover{background:var(--sage);border-color:#a4b99b}
.order-quantities strong{font-size:25px}.order-quantities small{font-size:10px}.order-quantities span{font-size:10px;color:var(--muted)}
.shopping-top{align-items:start}.scanner-window{position:relative;overflow:hidden;border-radius:12px;background:#1a2e23;aspect-ratio:4/3;max-height:300px;width:100%}
.scanner-window video{display:block;width:100%;height:100%;object-fit:cover}
.scanner-guide{position:absolute;inset:17%;border:2px solid #fff8d1a8;border-radius:16px;pointer-events:none;box-shadow:0 0 0 100px #0a1d1422}
#scan-status{min-height:39px}
@media(max-width:560px){.order-quantities{gap:6px}.order-quantities button{min-height:78px;padding:9px 2px}.order-quantities strong{font-size:23px}.order-tap{font-size:10px}.scanner-window{max-height:270px}}

/* Illustrated pizza workshop artwork. */
.welcome{gap:44px;padding:30px 0;grid-template-columns:1.12fr .88fr}
.welcome-copy{position:relative;isolation:isolate;overflow:hidden;border-radius:26px;height:clamp(610px,calc(100svh - 165px),730px);padding:30px;box-shadow:0 16px 44px #5f391c18;background:#40553a}
.welcome .hero-pizza{position:absolute;inset:0;width:100%;height:100%;margin:0;transform:none;z-index:-2}
.welcome-art{display:block;width:100%;height:100%;object-fit:cover;object-position:center 48%}
.welcome-copy:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#172a23db 0%,#172a2387 16%,transparent 37%,transparent 64%,#172a2370 77%,#172a23ed 100%);pointer-events:none}
.welcome-copy>.eyebrow{color:#ffe9bb;font-size:9px;letter-spacing:2px}
.welcome-copy>h1{color:#fff9eb;font-size:clamp(40px,4vw,57px);letter-spacing:-2.5px;line-height:1.05;margin:17px 0;text-shadow:0 2px 15px #14291c66}
.welcome-copy>h1 em{color:#ffdb86}
.welcome-copy>p{position:absolute;bottom:75px;left:30px;right:24px;margin:0;max-width:none;color:#fff7e5;font-size:13px;line-height:1.85;text-shadow:0 1px 5px #15231d}
.welcome-copy>.steps{position:absolute;bottom:29px;left:30px;right:20px;margin:0;gap:16px;color:#fff7e5;font-weight:700;font-size:10px}
.welcome-copy .steps b{background:#ffe6a8;color:#38503b}
.welcome-login{box-shadow:0 12px 36px #54402008}
.game-pagehead{position:relative;isolation:isolate;overflow:hidden;min-height:184px;margin:23px 0 25px;padding:27px 28px;border:1px solid #eadfc8;border-radius:20px;background:#fff4df;align-items:center;box-shadow:0 5px 20px #6b46200a}
.game-banner-art{position:absolute;inset:0 0 0 auto;height:100%;width:auto;max-width:none;z-index:-2;mask-image:linear-gradient(90deg,transparent 0%,#000 29%)}
.game-pagehead:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff4df 0%,#fff4dffb 30%,#fff4dfdf 43%,#fff4df50 57%,transparent 74%);pointer-events:none}
.game-pagehead .pagehead-copy{max-width:67%}
.game-pagehead h1{font-size:35px;letter-spacing:-1.2px;margin:10px 0}
.game-pagehead .muted{color:#626a58;font-size:12px;max-width:660px}
.game-pagehead>.tag{position:absolute;right:16px;top:15px;box-shadow:0 2px 12px #20392118;background:#fffaf0eb}
@media(max-width:1100px){.welcome{gap:27px}.welcome-copy{padding:25px}.welcome-copy>p,.welcome-copy>.steps{left:25px}.welcome-copy>.steps{gap:10px}.game-pagehead .pagehead-copy{max-width:72%}.game-pagehead h1{font-size:31px}}
@media(max-width:800px){.welcome{grid-template-columns:1fr;max-width:560px;padding-top:24px;gap:23px}.welcome-copy{height:430px;min-height:0;padding:25px}.welcome .hero-pizza{display:block}.welcome-art{object-position:center 45%}.welcome-copy>h1{font-size:45px;max-width:370px}.welcome-copy>p{bottom:69px;font-size:12px}.welcome-copy>.steps{bottom:24px;font-size:10px}.game-pagehead{min-height:166px;padding:23px;margin-top:19px}.game-pagehead .pagehead-copy{max-width:78%}.game-pagehead h1{font-size:29px}.game-pagehead .muted{font-size:11px}.game-pagehead:after{background:linear-gradient(90deg,#fff4df 0%,#fff4dff7 32%,#fff4dfcc 53%,#fff4df40 75%,transparent 100%)}}
@media(max-width:560px){.welcome-copy{height:405px;padding:23px;border-radius:21px}.welcome-copy>h1{font-size:39px;letter-spacing:-1.8px;margin-top:14px}.welcome-copy>.eyebrow{font-size:8px;letter-spacing:1.6px}.welcome-copy>p,.welcome-copy>.steps{left:23px}.welcome-copy>p{font-size:11px;bottom:67px}.welcome-copy>.steps{font-size:9px;gap:9px}.game-pagehead{padding:21px 19px;min-height:173px;margin-top:16px;border-radius:16px}.game-pagehead .pagehead-copy{max-width:94%}.game-pagehead h1{font-size:29px;max-width:260px}.game-pagehead .eyebrow{font-size:8px;letter-spacing:1.2px}.game-pagehead .muted{font-size:10px;max-width:280px}.game-pagehead:after{background:linear-gradient(90deg,#fff4dffb 0%,#fff4dfef 40%,#fff4dfb8 70%,#fff4df40 100%)}.game-banner-art{opacity:.7;right:-125px}}
@media(min-width:801px){.workbench .pizza-stage{max-width:min(100%,clamp(300px,calc(100svh - 440px),660px))}}

.role-badge{background:#edf3e7;color:#32604a;border-radius:999px;padding:10px 16px;font-size:11px;font-weight:bold;letter-spacing:1px}.role-control{padding:25px;margin-bottom:25px}.role-control .muted{margin:14px 0;line-height:1.8}.role-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.selection-summary{font-size:14px;font-weight:bold;color:var(--green)}.keeper-checkbox{width:24px;height:24px;accent-color:#367c56;cursor:pointer}.teacher-table td small{display:block;margin-bottom:5px}.demo-controls{display:flex;gap:7px;flex-wrap:wrap}.small-actions{padding-top:15px;border-top:1px solid var(--line)}.mascarpone-layer{z-index:2}@media(max-width:800px){.role-badge{order:3;width:100%;text-align:center}.role-control{padding:18px}.role-actions .btn{flex:1;min-width:180px}.demo-strip{flex-wrap:wrap}.demo-controls button{font-size:10px}}

/* The pizza is the workspace; side trays scroll without moving the canvas. */
body.editing-pizza{height:100dvh;overflow:hidden}
.editing-pizza #app{height:100dvh;display:flex;flex-direction:column;min-height:0}
.editing-pizza .shell{width:100%;max-width:none;padding:0 16px 12px;flex:1;min-height:0;display:flex;flex-direction:column}
.editing-pizza header{height:54px;min-height:54px;flex-wrap:nowrap;padding:0;gap:12px;flex-shrink:0}
.editing-pizza .brand{font-size:16px;gap:8px}.editing-pizza .brand img{width:30px;height:30px}.editing-pizza .brand small{display:none}
.editing-pizza .identity{font-size:12px;gap:8px}.editing-pizza .identity .avatar{width:28px;height:28px}
.editing-pizza .role-badge{order:initial;width:auto;padding:6px 10px;font-size:10px}
.editing-pizza .footer{display:none}.editing-pizza .notice,.editing-pizza .teacher-view-bar{flex-shrink:0;margin:6px 0;padding:7px 12px;font-size:11px}
.editing-pizza .demo-strip{flex-shrink:0;padding:5px 12px;gap:8px;min-height:34px}.editing-pizza .demo-strip>span{display:none}.editing-pizza .demo-controls{margin-left:auto}.editing-pizza .demo-controls button{padding:4px 8px;font-size:10px}
.editing-pizza .builder-layout{flex:1;min-height:0;grid-template-columns:clamp(132px,15vw,200px) minmax(0,1fr) clamp(132px,15vw,200px);gap:12px;padding-top:10px;align-items:stretch}
.editing-pizza .bases-panel,.editing-pizza .ingredients-panel{padding:10px;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;grid-column:auto;grid-row:auto}
.editor-panel-title{font-size:12px;margin:1px 3px 9px;letter-spacing:.4px;flex-shrink:0}
.editing-pizza .base-list{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
.editing-pizza .base-choice{flex:none;min-width:0;flex-direction:row;gap:7px;padding:6px 3px;margin-bottom:4px;min-height:52px}
.editing-pizza .base-choice img{width:42px;height:42px;flex-shrink:0}.editing-pizza .base-choice b{font-size:10px}.editing-pizza .base-choice small{font-size:9px;display:block}
.editing-pizza .workbench{display:grid;grid-template-rows:36px minmax(0,1fr) 38px;min-height:0;grid-row:auto}
.editing-pizza .workbench-bar{padding:0 8px;gap:8px;min-width:0}.editing-pizza .workbench-bar input{font-size:20px;padding:3px 0;min-width:0;flex:1;width:0}.editing-pizza .save-state{font-size:10px;flex-shrink:0}
.pizza-canvas{display:grid;place-items:center;min-height:0;min-width:0;container-type:size}
.editing-pizza .pizza-stage{width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:none;margin:0;aspect-ratio:1;background:none}
.editing-pizza .tool-bar{margin:0;gap:7px;align-items:center;flex-wrap:nowrap}.editing-pizza .tool-bar .btn{min-height:30px;padding:6px 12px;font-size:11px;border-radius:8px}
.editing-pizza .ingredient-list{display:flex;flex-direction:column;gap:6px;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 3px}
.editing-pizza .ingredient{grid-template-columns:36px minmax(0,1fr) auto;padding:6px 4px;gap:5px;flex-shrink:0;min-height:54px;touch-action:pan-y}
.editing-pizza .ingredient img{width:35px;height:35px}.editing-pizza .ingredient b{font-size:10px;overflow-wrap:anywhere}.editing-pizza .ingredient small{font-size:9px}.editing-pizza .ingredient .count{font-size:10px;padding:4px}
.editing-pizza .ingredient-list .empty{padding:20px 4px}.editing-pizza .empty h3{font-size:13px;line-height:1.5}
.cheese-layer.spreading{animation:spread .6s ease-out}
.piece-controls{position:absolute;aspect-ratio:1;z-index:6;pointer-events:none;min-width:12px;transform-origin:center}
.rotation-line{position:absolute;left:50%;bottom:100%;height:24px;width:1px;background:#365946;pointer-events:none}
.rotate-handle{position:absolute;left:calc(50% - 18px);top:-42px;width:36px;height:36px;display:grid;place-items:center;pointer-events:auto;cursor:grab;touch-action:none;color:var(--green);border-radius:50%;user-select:none;line-height:1}
.rotate-handle:before{content:'';position:absolute;inset:5px;border-radius:50%;background:var(--paper);border:1.5px solid var(--green);box-shadow:0 2px 5px #0002}
.rotate-handle svg{position:relative;pointer-events:none}.rotate-handle:active{cursor:grabbing}.rotate-handle:focus-visible{outline:3px solid #d7a445;outline-offset:2px}
.remove-handle{position:absolute;right:-26px;bottom:-26px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;pointer-events:auto;touch-action:none;font-size:23px;line-height:1;background:var(--paper);border:1px solid #d1c9b7;box-shadow:0 2px 5px #0002;color:var(--red)}
@media(max-width:760px) and (min-width:601px){.editing-pizza .builder-layout{grid-template-columns:112px minmax(0,1fr) 112px;gap:7px}.editing-pizza .bases-panel,.editing-pizza .ingredients-panel{padding:6px}.editing-pizza .base-choice{flex-direction:column;gap:2px}.editing-pizza .base-choice small{display:none}.editing-pizza .ingredient{grid-template-columns:28px minmax(0,1fr);gap:3px}.editing-pizza .ingredient img{width:28px;height:28px}.editing-pizza .ingredient .count{position:absolute;right:2px;top:2px;font-size:9px}.editing-pizza .ingredient small{font-size:8px}.editing-pizza .role-badge{display:none}}
@media(max-width:600px){.editing-pizza .shell{padding:0 8px 8px}.editing-pizza header{height:44px;min-height:44px;gap:6px}.editing-pizza .brand{font-size:13px}.editing-pizza .brand img{width:26px;height:26px}.editing-pizza .role-badge,.editing-pizza .identity .avatar,.editing-pizza .account-name{display:none}.editing-pizza .identity .text-btn{padding:7px;font-size:11px}.editing-pizza .builder-layout{grid-template-columns:1fr;grid-template-rows:66px minmax(0,1fr) min(25dvh,170px);gap:7px;padding-top:6px}.editing-pizza .bases-panel{grid-row:1;flex-direction:row;align-items:center;gap:6px;padding:4px}.editing-pizza .bases-panel .editor-panel-title{display:none}.editing-pizza .base-list{display:flex;width:100%;overflow-x:auto;overflow-y:hidden;gap:4px}.editing-pizza .base-choice{flex-direction:column;min-width:68px;width:68px;gap:1px;margin:0;padding:2px;min-height:48px}.editing-pizza .base-choice img{width:32px;height:32px}.editing-pizza .base-choice b{font-size:8px;white-space:nowrap}.editing-pizza .base-choice small{display:none}.editing-pizza .workbench{grid-row:2;grid-template-rows:28px minmax(0,1fr) 32px}.editing-pizza .workbench-bar input{font-size:18px}.editing-pizza .ingredients-panel{grid-row:3;padding:7px}.editing-pizza .ingredients-panel .editor-panel-title{margin:0 2px 5px;font-size:11px}.editing-pizza .ingredient-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:5px}.editing-pizza .ingredient{min-height:45px;grid-template-columns:32px minmax(0,1fr) auto}.editing-pizza .ingredient img{width:30px;height:30px}.editing-pizza .ingredient-list .empty{grid-column:1/-1;padding:10px}.editing-pizza .demo-strip{min-height:30px;padding:4px 8px;flex-wrap:nowrap}.editing-pizza .demo-strip>b{font-size:9px;white-space:nowrap}.editing-pizza .demo-controls{gap:3px;flex-wrap:nowrap}.editing-pizza .demo-controls button{font-size:8px;padding:4px}.editing-pizza .tool-bar .btn{padding:5px 10px;min-height:28px;font-size:10px}}

.ingredient-thumb{display:grid;place-items:center;touch-action:none;min-width:0}

/* Camera gestures stay inside the canvas; menus keep their size and place. */
.session-actions{height:27px;min-height:27px;justify-content:flex-end;border:0;padding:0;gap:0}.session-actions .text-btn{font-size:12px;padding:3px 5px}
.editing-pizza header.session-actions{height:27px;min-height:27px;padding:0}.editing-pizza .builder-layout{padding-top:0}
.pizza-canvas{overflow:hidden;touch-action:none;isolation:isolate}.pizza-scene{position:relative;width:min(100cqw,100cqh);height:min(100cqw,100cqh);transform-origin:center;will-change:transform}
.editing-pizza .pizza-scene .pizza-stage{width:100%;height:100%}.pizza-stage .board{inset:0;background:url('/assets/board-oak-v1.webp') center/contain no-repeat;box-shadow:none;border-radius:0;filter:drop-shadow(0 8px 7px #58472326)}
.base-layer{inset:2%;width:96%;height:96%}.cheese-layer{left:11%;top:11%;width:78%;height:78%}
.zoom-fit{font-size:12px;white-space:nowrap;padding:3px 7px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.zoom-fit[hidden]{display:none}
.shop-layout{margin-top:8px}.shop-title{padding-top:18px}.shop-title>.tag{display:none}.shop-title h2{font-size:23px}
.editing-pizza .workbench-bar input{font-size:24px}.editing-pizza .base-choice b,.editing-pizza .ingredient b{font-size:13px}.editing-pizza .editor-panel-title{font-size:15px}.editing-pizza .tool-bar .btn{font-size:14px}
@media(max-width:600px){.editing-pizza header.session-actions{height:22px;min-height:22px}.editing-pizza .workbench-bar input{font-size:22px}.editing-pizza .base-choice b{font-size:11px}.editing-pizza .ingredient b{font-size:12px}.editing-pizza .tool-bar .btn{font-size:12px}}
/* Compact classroom screens: keep the controls close to the activity. */
.shell{padding:0 clamp(10px,2vw,28px)}
h1{font-size:28px;letter-spacing:-.6px}h2{font-size:18px}
.pagehead{padding:8px 0 12px;gap:12px}.pagehead h1{font-size:26px;margin:0 0 4px}
.pagehead .muted{line-height:1.5;max-width:720px}
.signed-in .section-label{margin-bottom:6px;font-size:10px;letter-spacing:1px}
.signed-in .btn{padding:8px 12px;min-height:36px;font-size:13px}
.signed-in input,.signed-in select{padding:7px 9px;min-height:36px}
.signed-in .notice{margin:6px 0 10px;padding:7px 11px;line-height:1.5}
.signed-in .awning{height:10px;border-bottom-width:2px}
.signed-in .shop-title{padding:8px 12px 4px}.signed-in .shop-title h2{font-size:21px;margin:2px 0}
.signed-in .shop-title>.section-label{display:none}
.signed-in .products{grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;padding:10px}
.signed-in .product{padding:7px;border-radius:10px}
.signed-in .product img{height:64px;margin:0 0 5px;filter:none}
.signed-in .product h3{font-size:14px;line-height:1.2}
.signed-in .product .price{font-size:18px;margin:5px 0 0}
.signed-in .shop-layout{display:block;margin-top:6px}
.signed-in .phrase{padding:10px 14px;margin-top:10px}
.signed-in .phrase>.section-label{display:none}.signed-in .phrase b{font-size:19px;margin:0 0 5px}
.signed-in .phrase p{line-height:1.6}
.signed-in .teacher-toolbar{gap:8px;margin-bottom:10px}
.signed-in .role-control{padding:12px;margin-bottom:12px}
.signed-in .role-control>.row .section-label{display:none}
.signed-in .role-actions{gap:8px;margin:10px 0}
.signed-in .small-actions{padding-top:10px;margin-bottom:0}
.signed-in .selection-summary{font-size:13px}
.activity-help{font-size:12px;margin-top:8px;color:var(--muted)}
.activity-help summary{cursor:pointer;width:fit-content}.activity-help p{margin:8px 0!important;line-height:1.6!important}
.signed-in .teacher-table th,.signed-in .teacher-table td{padding:9px}
.signed-in .table-wrap{overflow-x:auto}
.signed-in .shopping-top{gap:12px;margin:8px 0 14px}
.signed-in .wallet,.signed-in .scan-card{padding:14px}
.signed-in .wallet .amount{font-size:36px}
.signed-in .scanner-window{max-height:220px;margin-top:8px}
.signed-in #scan-status{min-height:0;margin-top:7px;line-height:1.5}
.signed-in .directory-header{margin-bottom:10px;gap:8px}
.signed-in .shop-grid,.signed-in .teacher-grid{gap:10px}
.signed-in .mini-shop{padding:12px}.signed-in .mini-menu{margin-top:8px}
.signed-in .demo-strip{padding:5px 10px;gap:8px}.signed-in .demo-strip>span{display:none}
.signed-in .demo-controls{gap:7px}.signed-in .demo-controls button{min-height:28px}
.modal{padding:20px;border-radius:16px}.modal h2{font-size:25px;margin:5px 24px 10px}
.checkout-item{margin:10px 0;gap:9px}.checkout-item img{width:52px;height:52px}
.order-quantities{gap:7px;margin:14px 0 8px}.order-quantities button{min-height:66px;padding:8px 3px;border-radius:9px}
.qr{width:min(240px,58dvh,72vw);height:auto;aspect-ratio:1}
/* Geordie's counter keeps every labelled tray inside the available viewport. */
body.teacher-shop {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f3ead8;
}
.teacher-shop #app { height: 100%; min-height: 0; }
.teacher-shop .shell {
  width: 100%; max-width: none; height: 100%; padding: 0 clamp(5px, 1vw, 18px) clamp(5px, 1vh, 12px);
  display: flex; flex-direction: column;
}
.teacher-shop .session-actions { display: none; }
.teacher-shop-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.teacher-shop-toolbar {
  flex: none; display: grid; align-items: center; gap: 6px;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  padding: 4px clamp(2px, .7vw, 12px);
}
.teacher-shop-toolbar h1 { margin: 0; grid-area: 1 / 2; line-height: 0; }
.teacher-shop-toolbar h1 img { display: block; height: clamp(47px, 9dvh, 90px); width: auto; max-width: 34vw; object-fit: contain; }
.shop-back { justify-self: start; }
.shop-tools { justify-self: end; display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 3px 8px; }
.shop-tools select { max-width: 100%; min-width: 0; }
.shop-tools .text-btn { font-size: 12px; white-space: nowrap; }
.teacher-shop-main .shop-front {
  flex: 1; min-height: 0; display: flex; border-radius: 14px;
  background: linear-gradient(115deg,#9d9c90,#e4e0d5 25%,#a6aaa3 58%,#dbd8cc);
  border: 1px solid #82887e; box-shadow: inset 0 2px 3px #fff9, 0 2px 3px #44301d30;
}
.teacher-shop-main .products {
  flex: 1; min-height: 0; display: grid;
  grid-template: repeat(5,minmax(0,1fr)) / repeat(5,minmax(0,1fr));
  gap: clamp(3px,.65vmin,9px); padding: clamp(4px,.9vmin,12px);
}
.teacher-shop-main .product {
  position: relative; isolation: isolate; min-height: 0; min-width: 0; padding: 0;
  overflow: hidden; border-radius: clamp(6px,1.3vmin,16px); border: 2px solid #bfc1b8;
  background: #625d51; box-shadow: 0 1px 2px #25291f99, 0 -1px 1px #ffffffe6;
  touch-action: manipulation;
}
.teacher-shop-main .product img {
  display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; filter: none;
}
.teacher-shop-main .tray-tag {
  position: absolute; bottom: clamp(3px,.7vmin,8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 4px); padding: .13em .6em .16em;
  color: #26382f; background: #fff8e6; border: 1px solid #d6c9a8; border-radius: 3px;
  font-size: clamp(13px,1.9vmin,20px); line-height: 1.12; text-align: center;
  box-shadow: 0 2px 4px #24150677;
}
.teacher-shop-main .product-order:not(:disabled):hover,
.teacher-shop-main .product-order:focus-visible {
  transform: none; border-color: #fff7d8; outline: 3px solid #23543b; outline-offset: -3px;
}
.teacher-shop-main .product-order:active .tray-tag { background: #ffdf92; }
@media(max-width:640px) {
  .teacher-shop-toolbar { grid-template-columns: 1fr 1fr; gap: 3px; }
  .teacher-shop-toolbar h1 { grid-area: 1 / 1 / 2 / -1; justify-self: center; }
  .teacher-shop-toolbar h1 img { max-width: 64vw; height: clamp(40px,8dvh,60px); }
  .shop-tools { flex-wrap: nowrap; }
  .shop-tools select, .teacher-shop-toolbar .btn { min-height: 30px; padding: 3px 6px; font-size: 12px; }
  .shop-tools .text-btn { font-size: 10px; padding: 4px 2px; }
  .teacher-shop-main .tray-tag { font-size: clamp(10px,2.7vw,14px); padding: 2px; }
  .teacher-shop-main .product { border-width: 1px; }
}
@media(max-height:470px) and (orientation:landscape) {
  .teacher-shop-toolbar h1 img { height: 37px; }
  .teacher-shop-main .products { gap: 3px; padding: 4px; }
  .teacher-shop-main .tray-tag { bottom: 2px; font-size: 11px; }
}
@media(max-width:600px){
 .signed-in .products:not(.teacher-shop-main .products){grid-template-columns:repeat(auto-fit,minmax(88px,1fr))}
 .signed-in .role-actions .btn{min-width:0;flex:1 1 140px}
 .signed-in .teacher-toolbar .btn{font-size:12px}
}
/* Sign-in uses the same restrained scale as the activity. */
body:not(.signed-in) header{height:64px;min-height:64px;padding:0;gap:12px}
body:not(.signed-in) .brand{font-size:18px}body:not(.signed-in) .brand img{width:34px;height:34px}
body:not(.signed-in) .brand small{display:none}
.welcome{min-height:0;padding:20px 0;gap:28px}
.welcome-copy{height:clamp(380px,calc(100svh - 140px),590px);padding:24px;border-radius:18px}
.welcome-copy>h1{font-size:clamp(32px,3.5vw,44px);letter-spacing:-1.2px;margin:12px 0}
.welcome-copy>p{left:24px;right:20px;bottom:65px;font-size:12px;line-height:1.6}
.welcome-copy>.steps{left:24px;bottom:24px;gap:12px}
.welcome-login{padding:24px}.welcome-login h2{font-size:26px;margin:7px 0}
.welcome-login .login-tabs{margin:10px 0 16px}.welcome-login .stack{gap:12px}
.footer{margin-top:8px;padding:12px 0}
@media(max-width:800px){.welcome{gap:16px;padding:16px 0}.welcome-copy{height:330px;min-height:0}.welcome-copy>h1{font-size:34px;max-width:280px}.welcome-copy>p{font-size:11px}.welcome-copy>.steps{font-size:9px;gap:8px}.welcome-login{padding:20px}body:not(.signed-in) header{min-height:54px;height:54px}}
body.maker-shop{height:100dvh}
.maker-shop #app,.maker-shop .shell{height:100%;min-height:0;display:flex;flex-direction:column}
.maker-shop .shell{flex:1;width:100%;max-width:none;padding:0 clamp(4px,1vw,16px) 6px}
.maker-shop .demo-strip,.maker-shop .session-actions{flex:none}
.maker-shop .maker-title{height:clamp(38px,9dvh,80px);display:grid;place-items:center;background:url('/assets/shop-counter-v1/maker-sign.webp') center/auto 100% no-repeat}
.maker-title h1{max-width:min(70vw,25dvh);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;color:#fff1d2;text-shadow:0 2px 2px #162e22;font:bold italic clamp(13px,2.6dvh,24px) Georgia,serif}
.maker-counter .tray-tag b{white-space:nowrap;color:#815126}

/* Shared account controls */
.session-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 16px;padding:12px 0}.session-actions .account-name{font-size:12px;overflow-wrap:anywhere;margin-right:auto}.session-actions .text-btn{font-size:12px;white-space:normal}.shared-google{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.shared-google h3{margin:0 0 12px}.shared-google a{text-align:center;text-decoration:none}.shared-google p{font-size:12px;line-height:1.5}.welcome-login input{min-width:0}#account-password-form input{width:100%}@media(max-width:600px){.session-actions{justify-content:flex-start}.session-actions .account-name{width:100%}.session-actions .text-btn{padding:8px 0}.role-control .row.between{flex-wrap:wrap;gap:12px}}

.aroha-google-button{display:inline-flex;align-items:center;gap:18px;min-height:60px;padding:5px 24px 5px 5px;border:1px solid #4285f4;border-radius:9px;background:#4285f4;color:#fff;text-decoration:none;font-family:Arial,'Noto Sans JP',sans-serif;font-size:18px;font-weight:500;line-height:1.35;box-shadow:0 1px 3px #00000026;cursor:pointer}.aroha-google-button:hover{background:#3374dc;border-color:#3374dc;color:#fff}.aroha-google-button:focus-visible{outline:3px solid #e6ab2b;outline-offset:4px}.aroha-google-button .google-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:5px;background:#fff;flex:none}.aroha-google-button img{display:block;width:29px;height:29px;object-fit:contain}.aroha-google-button:disabled{opacity:.6;cursor:wait}

.shared-google .aroha-google-button{font-size:17px;text-align:left;max-width:100%;gap:14px}.shared-google .aroha-google-button img{width:29px;height:29px}

/* The whole oven scene scales together, including the pizza's depth and landing point. */
.bake-choices {display:flex;gap:.65rem;flex-wrap:wrap}
#bake-error:empty {display:none}
.editing-pizza .oven-view,.editing-pizza .baked-pizza-view {
  flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;
  text-align:center;padding:clamp(6px,1.6vh,18px) 0;gap:clamp(4px,1vh,10px)
}
.oven-view h1,.baked-pizza-view h1 {margin:0;font-size:clamp(18px,3.1vmin,32px);line-height:1.25;overflow-wrap:anywhere}
.baked-pizza-view p {margin:0;color:var(--green);font-size:clamp(13px,2.2vmin,20px)}
.oven-frame,.baked-pizza-art {flex:1;min-height:0;width:100%;container-type:size;display:grid;place-items:center}
.oven-scene {position:relative;width:min(100cqw,150cqh,1200px);aspect-ratio:3/2;overflow:hidden;isolation:isolate;border-radius:clamp(10px,2vmin,22px);background:#56311c}
.oven-stone {display:block;width:100%;height:100%}
.oven-firelight {position:absolute;inset:34% 57% 39% 17%;pointer-events:none;background:radial-gradient(ellipse,#ffc0596b 0%,#ff85352b 34%,transparent 67%);mix-blend-mode:screen;animation:oven-glow .8s ease-in-out infinite alternate}
.oven-carriage {position:absolute;left:54%;top:78%;width:50%;aspect-ratio:1;animation:oven-travel var(--bake-time) ease-in-out var(--bake-delay) both}
.oven-plane {position:absolute;inset:0;transform:scaleY(.43)}
.oven-peel {position:absolute;inset:0;border-radius:46% 46% 33% 33%;background:repeating-linear-gradient(87deg,#a26b38 0%,#c38a50 2%,#d7a770 4%,#c99259 8%);box-shadow:inset 0 0 0 2px #936137,0 5px 3px #4b291b77;animation:oven-peel-out var(--bake-time) ease-in-out var(--bake-delay) both}
.oven-peel::after {content:"";position:absolute;top:90%;height:210%;width:10%;left:45%;border-radius:10%;background:linear-gradient(90deg,#764725,#d99e60 22%,#ad7640 73%,#6d442d);box-shadow:0 4px 3px #643c2870}
.editing-pizza .oven-plane .pizza-stage {width:100%;height:100%;background:none;animation:oven-browning var(--bake-time) ease var(--bake-delay) both;pointer-events:none}
.oven-plane .board {display:none}
.oven-plane .placed,.baked-pizza-art .placed {min-width:0;cursor:default}
.editing-pizza .baked-pizza-art .pizza-stage {width:min(100cqw,100cqh,800px);height:auto;pointer-events:none}
.pizza-stage.baked .base-layer {filter:saturate(1.18) brightness(.90)}
@keyframes oven-travel {
  0%,8% {top:81%;transform:translate(-50%,-50%) scale(1)}
  31%,75% {top:58%;transform:translate(-50%,-50%) scale(.42)}
  96%,100% {top:81%;transform:translate(-50%,-50%) scale(1)}
}
@keyframes oven-peel-out {
  0%,31%,75%,100% {transform:translateY(0);opacity:1}
  49%,57% {transform:translateY(560%);opacity:0}
}
@keyframes oven-browning {
  0%,18% {filter:brightness(1)}
  34% {filter:brightness(.82) saturate(1.24)}
  70% {filter:brightness(.74) saturate(1.4)}
  94%,100% {filter:brightness(.96) saturate(1.12)}
}
@keyframes oven-glow {from{opacity:.3}to{opacity:1}}
@media(max-width:430px){.editing-pizza .tool-bar{gap:4px}.editing-pizza .tool-bar .btn{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){
  .oven-carriage {animation:none;top:58%;transform:translate(-50%,-50%) scale(.42)}
  .oven-firelight,.oven-plane .oven-peel,.editing-pizza .oven-plane .pizza-stage {animation:none}
  .oven-peel {visibility:hidden}
}

.pizza-foundation {position:absolute;inset:0;z-index:1;pointer-events:none}
.pizza-foundation .sauce-layer,.sauce-trail {z-index:2;object-fit:contain}
.pizza-foundation .cheese-layer {z-index:3}
.pizza-foundation .mascarpone-layer {z-index:4}
.pizza-stage.baked .base-layer[src*="/kitchen-v2/"] {filter:none}
.sauce-trail {position:absolute;left:10%;top:10%;width:80%;height:80%;pointer-events:none}
.sauce-dispenser {position:absolute;z-index:9;width:18%;height:25%;pointer-events:none}
.sauce-dispenser img {position:absolute;left:0;top:-9%;height:100%;width:auto;max-width:none;transform:translateX(-50%) rotate(-146deg);transform-origin:50% 0;filter:drop-shadow(1px 3px 2px #40201230)}
.sauce-dispenser i {position:absolute;width:5%;min-width:2px;height:13%;bottom:100%;left:-2.5%;border-radius:100%;background:var(--sauce-color)}
.editing-pizza .ingredients-panel .ingredient-list {flex:1;min-height:0}
.condiments {flex:none;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.condiment-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.condiment-heading h2 {font-size:14px;margin:0}
.sauce-clear {font-size:11px;text-decoration:underline;padding:3px 5px}
.sauce-bottles {display:grid;grid-template-columns:1fr 1fr;gap:4px}
.sauce-choice {display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:3px 1px;background:#fffdf8;border:1px solid #d5d5ca;border-radius:9px;touch-action:none;user-select:none}
.sauce-choice img {width:auto;height:clamp(28px,6dvh,54px);object-fit:contain;pointer-events:none}
.sauce-choice span {line-height:1.35;font-size:clamp(10px,1.4dvh,13px);white-space:nowrap}
.sauce-choice[aria-pressed=true] {background:#fff1d7;border-color:#ae6422;box-shadow:inset 0 0 0 1px #ae6422}
.oven-raw-phase,.oven-cooked-phase {position:absolute;inset:0;pointer-events:none}
.oven-raw-phase {animation:oven-raw-fade var(--bake-time) linear var(--bake-delay) both}
.oven-cooked-phase {animation:oven-cooked-fade var(--bake-time) linear var(--bake-delay) both}
@keyframes oven-raw-fade {0%,44%{opacity:1}65%,100%{opacity:0}}
@keyframes oven-cooked-fade {0%,44%{opacity:0}65%,100%{opacity:1}}
@media(max-width:600px){
 .editing-pizza .ingredients-panel {display:grid;grid-template-columns:minmax(0,1fr) minmax(108px,34%);grid-template-rows:auto minmax(0,1fr);gap:3px 8px}
 .editing-pizza .ingredients-panel>.editor-panel-title {grid-column:1;grid-row:1}
 .editing-pizza .ingredients-panel .ingredient-list {grid-column:1;grid-row:2;display:flex;flex-direction:column}
 .editing-pizza .ingredients-panel .condiments {grid-column:2;grid-row:1 / 3;border-top:0;border-left:1px solid var(--line);margin:0;padding:0 0 0 6px}
 .condiment-heading {margin-bottom:2px}.condiment-heading h2 {font-size:12px}
 .sauce-choice img {height:clamp(20px,4.3dvh,35px)}
}
@media(max-height:470px) and (min-width:601px){
 .sauce-choice {flex-direction:row;gap:2px}.sauce-choice img{height:27px}
}
.fridge-scene {perspective:1000px}
.fridge-tray {position:absolute;left:50%;top:66%;width:54%;aspect-ratio:1;animation:fridge-slide var(--bake-time) ease-in-out var(--bake-delay) both}
.editing-pizza .fridge-tray .pizza-stage {width:100%;height:100%;background:none}
.fridge-door {position:absolute;inset:0;transform-origin:left center;backface-visibility:hidden;border-radius:3% 4% 4% 3%;border:4px solid #438f84;background:linear-gradient(110deg,#76baac,#b5e6d7 14%,#95d7c9 48%,#6db8a9 91%,#478f84);box-shadow:inset 0 0 12px #e0fff4;animation:fridge-close var(--bake-time) ease-in-out var(--bake-delay) both}
.fridge-door i {position:absolute;bottom:38%;right:7%;width:3%;height:27%;border-radius:45%;background:linear-gradient(90deg,#728482,#f9ffff 35%,#a8bab8 73%,#526463);box-shadow:3px 4px 4px #34665e}
@keyframes fridge-slide {0%,6%,97%,100%{transform:translate(-50%,-5%) scale(1.1,.4)}25%,82%{transform:translate(-50%,-50%) scale(.71,.23)}}
@keyframes fridge-close {0%,27%,85%,100%{transform:rotateY(-100deg)}44%,68%{transform:rotateY(0)}}
@media(prefers-reduced-motion:reduce){.fridge-tray{animation:none;transform:translate(-50%,-50%) scale(.71,.23)}.fridge-door{display:none}}

.ingredient.incompatible{filter:grayscale(1);opacity:.38;cursor:not-allowed;background:#ececec}.ingredient.incompatible .count{background:#ddd}.ingredient.incompatible small{color:#555}

.ingredient-drag-preview {position:fixed;z-index:500;pointer-events:none;aspect-ratio:1}
.ingredient-drag-preview .placed {border-width:1.5px}
