*{box-sizing:border-box}body{margin:0;background:var(--ah-canvas);color:var(--ah-ink);font-family:var(--ah-font)}header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 4%;border-bottom:1px solid var(--ah-divider)}.brand,.header-actions{display:flex;align-items:center;gap:12px}.brand{font-size:14px;font-weight:900;letter-spacing:1px}.header-actions{flex-wrap:wrap}.edition{font-size:14px;color:var(--ah-muted)}main{max-width:1300px;margin:auto;padding:24px 32px;display:grid;grid-template-columns:1fr 1fr;gap:36px}.kitchen{text-align:center;min-width:0}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:2px;color:var(--ah-muted)}h1{font-size:clamp(28px,3vw,44px);margin:8px 0}.question{font-size:26px;margin:12px 0}.parfait-stage{position:relative;width:min(100%,400px);aspect-ratio:1.25;height:auto;margin:clamp(56px,8vh,88px) auto 0}.glass{position:absolute;z-index:2;left:3%;top:0;width:94%;height:78%;overflow:visible;isolation:isolate}.glass::before{content:"";position:absolute;inset:0;background:#eff6ed;z-index:0;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M5%201H95Q99%201%2098%206L79%2094Q78%2099%2073%2099H27Q22%2099%2021%2094L2%206Q1%201%205%201Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M5%201H95Q99%201%2098%206L79%2094Q78%2099%2073%2099H27Q22%2099%2021%2094L2%206Q1%201%205%201Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat}.glass::after{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M5%201H95Q99%201%2098%206L79%2094Q78%2099%2073%2099H27Q22%2099%2021%2094L2%206Q1%201%205%201Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M5%201H95Q99%201%2098%206L79%2094Q78%2099%2073%2099H27Q22%2099%2021%2094L2%206Q1%201%205%201Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat;content:"";position:absolute;inset:0;z-index:30;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M5%201H95Q99%201%2098%206L79%2094Q78%2099%2073%2099H27Q22%2099%2021%2094L2%206Q1%201%205%201Z%22%20fill%3D%22none%22%20stroke%3D%22%2397b6b0%22%20stroke-width%3D%2212%22%20stroke-linejoin%3D%22round%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat}.shine{position:absolute;left:14%;top:8%;width:3%;height:60%;transform:rotate(-17deg);border-radius:30px;background:#ffffff66;pointer-events:none;z-index:20}.stem{position:absolute;z-index:1;top:76%;left:29%;height:23%;width:42%;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M42%202H58L60%2030Q63%2049%2084%2068L95%2080Q99%2086%2093%2088H7Q1%2086%205%2080L16%2068Q37%2049%2040%2030Z%22%20fill%3D%22%23cee0d6%22%20stroke%3D%22%2397b6b0%22%20stroke-width%3D%225.5%22%20stroke-linejoin%3D%22round%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3Cpath%20d%3D%22M46%2010L44%2032Q41%2051%2026%2067%22%20fill%3D%22none%22%20stroke%3D%22%23eff6ed%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat}#pieces,.ingredient-layer{position:absolute;inset:0;pointer-events:none}.piece{position:absolute;aspect-ratio:1;transform:translate(-50%,-50%) rotate(var(--rotation)) scale(var(--scale));filter:drop-shadow(0 2px 1px #51240a22)}.piece svg{width:100%;height:100%;animation:drop .4s ease-out both;animation-delay:var(--delay)}@keyframes drop{from{opacity:0;transform:translateY(-60px) scale(.7)}to{opacity:1;transform:none}}.order{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px auto 16px;max-width:540px}.order span{font:44px Georgia;color:var(--ah-accent)}.order p{font-size:21px;line-height:1.45;margin:0}.pantry{padding:24px;background:var(--ah-surface);border:1px solid var(--ah-divider);border-radius:24px;align-self:start}.pantry h2{margin:0;font-size:26px}.hint,.note{font-size:14px;color:var(--ah-muted);line-height:1.5}#topping-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.topping-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 4px;min-height:112px;font:inherit}.ingredient-art{width:52px;height:52px}.ingredient-art svg{width:100%;height:100%}.ingredient-name{font-size:15px;font-weight:bold}.dots{display:flex;gap:5px;margin-top:2px}.dots i{width:6px;height:6px;border-radius:50%;background:#d8ddcf}.dots i.filled{background:var(--ah-selected-border)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.fullscreen-notice{text-align:center}.collapse-icon{display:none}#fullscreen[aria-pressed="true"] .expand-icon{display:none}#fullscreen[aria-pressed="true"] .collapse-icon{display:block}@media(min-width:800px) and (min-height:650px){main{min-height:calc(100svh - var(--header-height,70px) - var(--footer-height,26px));align-items:center}.topping-button{min-height:clamp(100px,14vh,155px)}}@media(max-width:799px){main{padding:20px;gap:20px}.brand{font-size:12px}.header-actions{gap:8px}.edition{display:none}.pantry{padding:16px}.ingredient-name{font-size:13px}}@media(max-width:620px){main{grid-template-columns:1fr}.parfait-stage{width:min(100%,340px)}header{padding:10px 16px}.header-actions{margin-left:auto}.pantry h2{font-size:24px}}@media(prefers-reduced-motion:reduce){.piece svg{animation:none}}

fieldset{border:0;padding:0;margin:0 0 18px}legend{font-size:20px;font-weight:bold;margin-bottom:10px}#base-options,#sauce-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.base-button,.sauce-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px;padding:8px;font:inherit;font-size:14px}.scoop-icon{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px}.scoop-icon svg{display:block;width:100%;height:auto}.sauce-bowl{width:25px;height:25px;flex-shrink:0;border:3px solid white;border-radius:50%;background:var(--sauce-color)}.check{display:none}.sauce-button[aria-pressed="true"] .check{display:inline}#ice-cream{position:absolute;inset:0;pointer-events:none;z-index:3}@keyframes drizzle{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}.ice-scoop{position:absolute;width:48%;aspect-ratio:1;height:auto;transform:rotate(var(--scoop-angle,0deg))}.ice-scoop svg{display:block;width:100%;height:auto}.scoop-0{bottom:44%;left:8%;--scoop-angle:0deg}.scoop-1{bottom:44%;right:8%;--scoop-angle:0deg}.pantry h2{font-size:22px}.topping-button{min-height:88px}.ingredient-art{width:42px;height:42px}@media(min-width:800px){.topping-button{min-height:88px}main{align-items:start}}@media(prefers-reduced-motion:reduce){}

/* Keep the option pages stable and compact on classroom screens. */
.pane-content{min-height:490px}.pane-content .note{display:none}
#base-options .base-button{font-size:13px;min-height:56px}.pane-content .ingredient-name{font-size:14px}
@media(min-width:700px) and (min-height:600px){
 .ah-builder main{min-height:0;align-items:start}
 .parfait-stage{margin-top:clamp(40px,6vh,64px)}
 .order{margin:8px auto 12px}.order p{font-size:18px;line-height:1.35}
 .pane-content{min-height:480px}.pane-content .topping-button{min-height:78px;padding:5px 2px}
 .pane-content .ingredient-art{width:36px;height:36px}
}
@media(max-width:620px){.pane-content{min-height:490px}.pane-content .ingredient-name{font-size:13px}}

/* Spend spare viewport height above the glass, not below Reset.
   Natural content height still wins for long orders or enlarged text. */
@media(min-width:700px) and (min-height:600px){
 .ah-builder .kitchen{
  display:flex;flex-direction:column;align-items:center;
  min-height:calc(100svh - var(--header-height,56px) - var(--footer-height,26px) - 2 * clamp(12px,2vh,24px));
 }
 .kitchen .heading{width:100%;margin-bottom:40px;flex-shrink:0}
 .kitchen .parfait-stage{margin-top:auto;flex-shrink:0}
 .kitchen .order{flex-shrink:0;width:100%}
 .kitchen #clear{flex-shrink:0}
}

/* Bowl and contents have separate layers: the rim is open above y=0.
   The cream stays inset from the tapered walls and supports the lower scoop. */
.whipped-base{position:absolute;z-index:2;left:calc(11% + 14px);right:calc(11% + 14px);bottom:14px;height:50%;background:#fff5e1;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M1%2010C6%2010%208%207%2011%204Q13%202%2015%205C20%2013%2026%2011%2031%205Q34%201%2037%205C43%2013%2049%2012%2055%205Q58%201%2061%205C67%2012%2074%2013%2080%206Q83%202%2086%206C91%2011%2095%208%2099%2010L81%2095Q80%20100%2075%20100H25Q20%20100%2019%2095Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M1%2010C6%2010%208%207%2011%204Q13%202%2015%205C20%2013%2026%2011%2031%205Q34%201%2037%205C43%2013%2049%2012%2055%205Q58%201%2061%205C67%2012%2074%2013%2080%206Q83%202%2086%206C91%2011%2095%208%2099%2010L81%2095Q80%20100%2075%20100H25Q20%20100%2019%2095Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat;box-shadow:inset 0 -3px 0 #eedec1}
#drizzle{position:absolute;inset:0;pointer-events:none}

.glass #pieces{z-index:25;clip-path:polygon(0 -100%,100% -100%,100% 0,78% 100%,22% 100%,0 0)}
/* Safety boundary retains tapered sides while allowing scoop crowns above rim. */
#ice-cream{clip-path:polygon(0 -100%,100% -100%,100% 0,78% 100%,22% 100%,0 0)}


.whipped-base::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M1%2010C6%2010%208%207%2011%204Q13%202%2015%205C20%2013%2026%2011%2031%205Q34%201%2037%205C43%2013%2049%2012%2055%205Q58%201%2061%205C67%2012%2074%2013%2080%206Q83%202%2086%206C91%2011%2095%208%2099%2010L81%2095Q80%20100%2075%20100H25Q20%20100%2019%2095Z%22%20fill%3D%22none%22%20stroke%3D%22%23dac8aa%22%20stroke-width%3D%2212%22%20vector-effect%3D%22non-scaling-stroke%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat}

.layer-navigation{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 0 8px}.ah-builder .layer-navigation h2{font-size:17px;margin:0}.layer-slots{display:grid;grid-template-columns:1fr 1fr;gap:6px}.layer-slots button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:48px;padding:4px;font:inherit;font-size:13px}.slot-art{width:28px;height:28px;flex-shrink:0}.slot-art svg{width:100%;height:100%}#clear-slot{font-size:13px;min-height:32px;padding:5px 0}#layer-conversation{white-space:pre-line;font-size:14px;line-height:1.4;margin:8px 0;color:var(--ah-strong)}.order p{white-space:normal}.pane-content .topping-button{min-height:64px}.pane-content .ingredient-art{width:30px;height:30px}.pane-content .ingredient-layer{z-index:auto!important}.glass .ingredient-layer{z-index:auto!important}

.ice-scoop .scoop-syrup,.free-art .scoop-syrup{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M0%200H100V50Q95%2044%2090%2050T70%2050T50%2050T30%2050T10%2050Q5%2056%200%2050Z%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M0%200H100V50Q95%2044%2090%2050T70%2050T50%2050T30%2050T10%2050Q5%2056%200%2050Z%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-size:100% 200%;mask-size:100% 200%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;animation:pour-syrup 1.15s ease-in-out both;transform-origin:50% 15%}
@keyframes pour-syrup{from{-webkit-mask-position:0 100%;mask-position:0 100%}to{-webkit-mask-position:0 0;mask-position:0 0}}
@media(prefers-reduced-motion:reduce){.ice-scoop .scoop-syrup,.free-art .scoop-syrup{animation:none;-webkit-mask-image:none;mask-image:none}}
