@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Manrope:wght@400;500;600;650;700;800&display=swap');
:root{--ink:#26291f;--paper:#f5f4ef;--acid:#eff58b;--line:rgba(38,41,31,.17);--muted:#686b60}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:16px}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #5b7df4;outline-offset:5px}button{transition:background .2s,transform .15s}button:active{transform:scale(.97)}.topbar{height:94px;margin:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{font-family:'Manrope',sans-serif;font-size:31px;font-weight:800;letter-spacing:-1.7px;text-decoration:none;color:var(--ink);display:flex;align-items:center}.brand-star{font-size:38px;margin:0 5px;line-height:1}.brand-dot{font-size:12px;align-self:flex-start;padding-top:5px;margin-left:4px;letter-spacing:0}.top-note,.eyebrow,.field-label,.range-label label,.specimen-number,.panel-footer,.footer span:nth-child(2){font-size:11px;font-weight:600;letter-spacing:1.8px}.top-note{font-size:12px;padding-right:45px}.icon-button{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:transparent;display:grid;place-items:center}.icon-button svg{width:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}main{display:grid;grid-template-columns:minmax(0,1fr) 344px;gap:24px;margin:25px 4% 0;min-height:660px;height:calc(100svh - 180px);max-height:890px}.playground{position:relative;min-height:650px;overflow:hidden;border-radius:6px;background:#eceee8}.intro{position:absolute;top:36px;left:36px;z-index:2;pointer-events:none}.eyebrow{display:block}.intro h1{font-family:'Manrope',sans-serif;font-size:clamp(44px,4.7vw,72px);font-weight:600;line-height:1.04;letter-spacing:-3.8px;margin:17px 0 15px}.intro h1 em{font-style:normal;color:#747e55}.intro p{font-size:14px;color:#676b5b;margin:0}.stage{position:absolute;inset:0}.stage canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.stage canvas[data-tool="press"]{cursor:pointer}.stage canvas[data-tool="cut"]{cursor:crosshair}.stage canvas:active{cursor:grabbing}#loading{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);font-size:14px}.cut-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.cut-overlay path{stroke:#fff;stroke-width:2;stroke-dasharray:5 5;fill:none;filter:drop-shadow(0 1px 2px #333)}.specimen{position:absolute;left:36px;bottom:94px;pointer-events:none;display:flex;flex-direction:column;gap:7px}.specimen-number{font-size:10px;color:#717669}.specimen>span:nth-child(2){font-family:'Manrope',sans-serif;font-size:24px;font-weight:600;letter-spacing:-.7px}.specimen-note{font-size:12px;color:#73796a}.stage-bottom{position:absolute;bottom:0;left:30px;right:30px;height:65px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;pointer-events:none}.gesture{font-size:13px;display:flex;align-items:center;gap:10px}.gesture svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}.live-state{font-size:11px;color:#757967;font-family:monospace}.controls{background:var(--acid);border-radius:6px;padding:29px 28px 22px;display:flex;flex-direction:column}.panel-top{display:flex;justify-content:space-between;align-items:center}.panel-top .eyebrow{font-size:10px;letter-spacing:1.5px}.tiny-star{font-size:26px;line-height:1}.controls h2{font-family:'Manrope',sans-serif;font-size:28px;letter-spacing:-1.1px;line-height:1.2;font-weight:600;margin:15px 0 27px}.control-section{padding:23px 0;border-top:1px solid var(--line)}.field-label{display:flex;gap:13px;font-size:11px;color:#6c7350}.field-label>span,.range-label label>span{color:var(--ink)}.flavours{display:flex;gap:8px;margin-top:17px}.flavour{display:flex;flex:1;align-items:center;gap:7px;justify-content:center;border:1px solid transparent;border-radius:7px;padding:10px 5px;background:transparent;font-size:13px}.flavour:hover{background:#ffffff45}.flavour.active{border-color:#697340;background:#ffffff35}.swatch{width:19px;height:19px;border-radius:50%;display:inline-block;box-shadow:inset 0 0 0 3px #4b7348;background:#f67b78}.swatch.citrus{background:#ffd657;box-shadow:inset 0 0 0 3px #bc9418}.swatch.pink{background:#efa2b6;box-shadow:inset 0 0 0 3px #738f4a}.tools{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #9aa16b;border-radius:8px;overflow:hidden;margin-top:17px;padding:4px;gap:2px}.tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:12px 5px 10px;border:0;background:transparent;border-radius:5px;font-size:13px}.tool svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.tool.active{background:var(--ink);color:var(--acid)}.tool:not(.active):hover{background:#ffffff45}.texture{padding-bottom:28px}.range-label{display:flex;align-items:center;justify-content:space-between}.range-label label{color:#6c7350;display:flex;gap:13px;font-size:11px}.range-label output{font-family:monospace;font-size:13px}input[type=range]{appearance:none;width:100%;height:4px;background:linear-gradient(to right,var(--ink) 75%,#c1ca74 75%);margin:26px 0 15px;border-radius:2px;cursor:ew-resize}input[type=range]::-webkit-slider-thumb{appearance:none;width:17px;height:17px;background:var(--ink);border:4px solid var(--acid);box-shadow:0 0 0 1px var(--ink);border-radius:50%;cursor:ew-resize}input[type=range]::-moz-range-thumb{width:12px;height:12px;background:var(--ink);border:3px solid var(--acid);box-shadow:0 0 0 1px var(--ink);border-radius:50%}.range-ends{display:flex;justify-content:space-between;font-size:11px;color:#626944}.bounce-button{background:var(--ink);color:var(--acid);border:0;padding:17px 18px;display:flex;justify-content:space-between;align-items:center;border-radius:8px;font-size:15px}.bounce-button:hover{background:#444c2d}.bounce-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.bottom-controls{display:flex;align-items:center;justify-content:space-between;margin:21px 0 26px;gap:6px}.slow-label{display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer;position:relative}.slow-label input{width:32px;height:18px;position:absolute;opacity:0;margin:0}.toggle{width:30px;height:17px;border:1px solid #8b9662;border-radius:20px;position:relative}.toggle:after{content:'';width:11px;height:11px;background:#7b8657;border-radius:50%;position:absolute;top:2px;left:3px;transition:transform .2s}.slow-label input:checked+.toggle{background:var(--ink);border-color:var(--ink)}.slow-label input:checked+.toggle:after{background:var(--acid);transform:translateX(11px)}.slow-label input:focus-visible+.toggle{outline:3px solid #5b7df4;outline-offset:3px}.reset-button{display:flex;align-items:center;gap:6px;border:0;background:none;font-size:12px;padding:5px}.reset-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}.panel-footer{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:19px;border-top:1px solid var(--line);font-size:8px;letter-spacing:.8px;color:#6b7351}.footer{height:60px;margin:0 4%;display:flex;justify-content:space-between;align-items:center;color:#777c6e;font-size:11px}.footer span:nth-child(2){font-size:9px;letter-spacing:1.4px}.footer span:last-child{font-size:10px}@media(min-width:1600px){main{grid-template-columns:minmax(0,1fr) 380px;gap:30px}.controls{padding:34px}.control-section{padding:30px 0}.intro{top:44px;left:44px}}@media(max-width:1050px){main{grid-template-columns:minmax(0,1fr) 310px;gap:16px}.controls{padding:25px 22px}.intro{left:26px;top:29px}.intro h1{font-size:52px;letter-spacing:-2.8px}.stage-bottom{left:22px;right:22px}.live-state{display:none}.specimen{left:26px}.controls h2{font-size:26px}.topbar{height:78px}}@media(max-width:760px){.topbar{height:76px;margin:0 5%}.top-note{font-size:9px;letter-spacing:1.1px;padding:0}.wordmark{font-size:25px}.brand-star{font-size:30px}.icon-button{width:35px;height:35px}main{display:flex;flex-direction:column;height:auto;max-height:none;margin:16px 4% 0;gap:16px}.playground{height:570px;min-height:570px}.intro{top:25px;left:25px}.intro .eyebrow{font-size:9px}.intro h1{font-size:49px;margin-top:13px;line-height:1.02}.intro p{font-size:12px}.specimen{bottom:83px;left:25px}.specimen>span:nth-child(2){font-size:20px}.specimen-note{font-size:11px}.stage-bottom{height:58px}.gesture{font-size:12px}.controls{padding:25px}.controls h2{margin-bottom:23px}.control-section{padding:22px 0}.flavour,.tool{font-size:14px}.tools{grid-template-columns:repeat(3,1fr)}.tool{flex-direction:row;padding:16px 0}.bounce-button{padding:18px}.panel-footer{font-size:9px}.field-label,.range-label label{font-size:12px}.panel-top .eyebrow{font-size:11px}.range-ends,.slow-label,.reset-button{font-size:13px}.bottom-controls{margin-bottom:24px}.footer{margin:0 5%;height:62px}.footer span:last-child{display:none}.footer span:nth-child(2){font-size:8px}.live-state{display:block;font-size:10px}}@media(prefers-reduced-motion:reduce){button,.toggle:after{transition:none}}
@media(min-width:761px) and (max-height:820px){.topbar{height:76px}main{min-height:555px;height:calc(100svh - 147px);margin-top:18px}.playground{min-height:555px}.controls{padding:22px 25px 17px}.controls h2{margin:10px 0 19px;font-size:26px}.control-section{padding:17px 0}.flavours,.tools{margin-top:13px}.tool{padding:9px 4px}.texture{padding-bottom:20px}.bottom-controls{margin:16px 0 18px}.panel-footer{padding-top:15px}.footer{height:48px}.intro h1{font-size:55px}.intro{top:28px}.specimen{bottom:83px}.stage-bottom{height:58px}}
/* Let the content determine height so enlarged text never overlaps the footer. */
main{height:auto;min-height:calc(100svh - 180px);max-height:none}.controls{min-width:0}.footer{gap:15px}.flavour,.tool{font-size:14px}.range-ends,.slow-label,.reset-button{font-size:12px}.panel-footer{font-size:9px}.specimen-note{font-size:13px}.top-note,.eyebrow,.field-label,.range-label label{letter-spacing:1.3px}.field-label,.range-label label{font-size:12px}.panel-top .eyebrow{font-size:11px}.footer span:last-child{display:none}.footer span:nth-child(2){font-size:11px}.gesture{font-size:14px}.specimen-number{font-size:11px}.live-state{font-size:12px}@media(min-width:761px) and (max-height:820px){main{height:auto;min-height:calc(100svh - 147px)}.controls{padding:20px 24px 16px}.control-section{padding:14px 0}.controls h2{margin:8px 0 16px}.tool{padding:8px 4px}.bottom-controls{margin:13px 0 15px}input[type=range]{margin:22px 0 13px}.texture{padding-bottom:19px}.panel-footer{padding-top:13px}}@media(max-width:760px){main{min-height:0}.gesture{font-size:12px}.specimen-note{font-size:12px}.live-state{font-size:10px}}

/* Fruit options wrap into equal, touch-friendly rows on every screen size. */
.flavours{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.flavour{min-height:44px;padding:10px 4px;white-space:nowrap}.swatch{flex-shrink:0}.swatch.mango{background:#ffbf28;box-shadow:inset 0 0 0 3px #d96d2a}.swatch.lychee{background:#fff8e9;box-shadow:inset 0 0 0 3px #ca5776}

/* Fruit choices keep their full names and generous touch targets. */
.flavour{flex-direction:column;gap:5px;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.25;padding:9px 2px}.swatch.dragonfruit{background:#fff8ef;box-shadow:inset 0 0 0 3px #ed2378}

/* A wide final-row choice keeps the longest fruit name easy to read. */
.flavour[data-flavour="passionfruit"]{grid-column:span 2}
.swatch.kiwi{background:#a1cd39;box-shadow:inset 0 0 0 3px #88613e}
.swatch.strawberry{background:#f04355;box-shadow:inset 0 0 0 3px #c9223a}
.swatch.pineapple{background:#ffd34b;box-shadow:inset 0 0 0 3px #a48830}
.swatch.passionfruit{background:#f6c531;box-shadow:inset 0 0 0 3px #7e305f}
.swatch.orange{background:#ffb735;box-shadow:inset 0 0 0 3px #f67a16}

/* Both collections share the same accessible choice grid. */
.category-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;margin-top:13px;border:1px solid #9aa16b;border-radius:10px}
.category-tab{border:0;background:transparent;border-radius:6px;min-width:0;min-height:44px;padding:8px 12px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:15px;font-weight:600}
.category-tab span{font-size:11px;font-weight:500;opacity:.7}
.category-tab[aria-selected="true"]{background:var(--ink);color:var(--acid)}
.category-tab:hover:not([aria-selected="true"]){background:#ffffff45}
.category-tab:focus-visible{outline-offset:-2px}
.flavours[hidden]{display:none}
.animal-choice{min-height:72px;flex-direction:column;gap:5px}
.animal-icon{font-size:27px;line-height:1.15}
