@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#302d38;background:#faf7f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid #9663d7;outline-offset:4px}header{height:100px;max-width:1600px;margin:auto;padding:0 4%;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:inherit;font-size:26px;font-weight:800;letter-spacing:-1px;display:flex;align-items:center;gap:12px}.mark{display:inline-grid;place-content:center;background:#dbef91;width:44px;height:44px;border-radius:15px;font:italic bold 38px Georgia;letter-spacing:-4px;padding-right:5px}.tiny{font-size:10px;font-weight:600;letter-spacing:2px;margin-left:22px;color:#79747e}.round{border:1px solid #ddd9d4;background:transparent;border-radius:25px;padding:11px 17px;font-size:14px}main{max-width:1600px;margin:0 auto;padding:0 4%;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.play{height:min(750px,calc(100svh - 165px));min-height:570px;position:relative;overflow:hidden;border-radius:28px;background:radial-gradient(ellipse at 49% 44%,#fffaf7 0%,#f5e9e5 70%,#f0e2de 100%);isolation:isolate}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;position:absolute;inset:0;z-index:1}.intro{position:absolute;left:36px;top:34px;pointer-events:none;z-index:2}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#82757c}h1{font-family:Manrope,sans-serif;font-size:clamp(34px,4.2vw,64px);line-height:1.08;letter-spacing:-3px;margin:17px 0}h1 em{font-family:Georgia,serif;color:#bb5b76;font-weight:400}p{font-size:14px;line-height:1.7;color:#82747c}.counter{position:absolute;right:30px;top:34px;text-align:right;z-index:2;pointer-events:none}.counter strong{display:block;font:500 34px Manrope}.counter span{font-size:12px;color:#8b7c81}.fruit-label{position:absolute;left:34px;bottom:114px;z-index:2;pointer-events:none}.fruit-label>span:first-child{font-size:10px;letter-spacing:2px;color:#9a868d}.fruit-label h2{font-family:Manrope;font-size:24px;letter-spacing:-1px;margin:6px 0 10px}.badge{font-size:11px;color:#89717b}.hint{position:absolute;bottom:113px;right:34px;font-size:12px;color:#a0838b;z-index:2;pointer-events:none}.bottom-controls{position:absolute;bottom:26px;left:30px;right:30px;display:flex;justify-content:center;gap:10px;z-index:3}.bottom-controls button{background:#fff9f6cc;border:1px solid #d9c8c780;padding:13px 19px;border-radius:30px;font-size:13px;transition:transform .2s}.bottom-controls button:hover{transform:translateY(-3px)}.bottom-controls button.dark{background:#37303d;color:white;border-color:#37303d}aside{padding:25px 22px 20px;background:#fffdf9;border:1px solid #eae4dc;border-radius:26px}.shelf-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.shelf-heading h2{font-family:Manrope;letter-spacing:-1px;font-size:23px;margin:9px 0 0}.total{padding:7px 10px;background:#f3efe9;border-radius:12px;font-size:12px;color:#938678}.fruits{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.fruit{padding:8px 2px 7px;min-width:0;border:1px solid transparent;border-radius:15px;background:#f7f4ef;display:flex;align-items:center;flex-direction:column;gap:4px;transition:background .2s,transform .2s}.fruit:hover{background:#eee8df;transform:translateY(-2px)}.fruit[aria-pressed=true]{border-color:#ba89c5;background:#f0e6f1}.fruit img{width:43px;height:40px;object-fit:contain}.fruit span{font-size:10px;color:#716571;white-space:nowrap}.squish{margin-top:26px;border-top:1px solid #ece6df;padding-top:22px}.squish label{font-size:13px;font-weight:700;display:flex;justify-content:space-between}.squish label span{font-weight:400;color:#968394;font-size:11px}.squish input{width:100%;accent-color:#b581bd;margin:17px 0 9px}.squish>div{display:flex;justify-content:space-between;font-size:10px;color:#9c9297}.shelf-note{text-align:center;margin:22px 0 0;font-size:12px;color:#9c8f95}footer{max-width:1600px;margin:auto;padding:22px 4%;display:flex;justify-content:space-between;font-size:11px;color:#9c9395}footer b{padding:0 10px;font-weight:400}#toast{position:absolute;z-index:3;top:48%;left:50%;transform:translate(-50%,-50%) scale(.8);pointer-events:none;opacity:0;font:italic 30px Georgia;color:#70395a;text-shadow:0 2px 10px white;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,-90%) scale(1)}@media(min-width:1500px){.play{min-height:740px}.fruit{padding:13px 2px}.fruit img{width:48px;height:45px}}@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 265px;gap:15px}aside{padding:22px 15px}.intro{left:25px}.hint{display:none}.bottom-controls{left:15px;right:15px;gap:6px}.bottom-controls button{padding:12px}.tiny{display:none}.fruit-label{left:25px}h1{letter-spacing:-2px}}@media(max-width:720px){header{height:78px;padding:0 5%}.brand{font-size:23px}main{display:flex;flex-direction:column;padding:0 4%;gap:15px}.play{min-height:510px;height:65svh;max-height:660px;border-radius:23px}.intro{top:25px;left:23px}h1{font-size:39px;margin:14px 0}.intro p{font-size:12px;line-height:1.5;margin:0}.eyebrow{font-size:9px;letter-spacing:1.5px}.counter{top:26px;right:22px}.counter strong{font-size:28px}.counter span{font-size:10px}.fruit-label{bottom:93px;left:24px}.fruit-label h2{font-size:21px}.bottom-controls{bottom:21px}.bottom-controls button{font-size:12px;padding:12px 13px}aside{padding:22px;border-radius:23px}.fruits{grid-template-columns:repeat(6,1fr);gap:7px}.fruit img{width:39px;height:38px}.fruit span{font-size:9px}.fruit{padding:8px 0}.shelf-heading{margin-bottom:20px}.shelf-heading h2{font-size:23px}.squish{margin-top:22px}.shelf-note{margin:15px 0 0}.shelf-note br{display:none}footer{padding:22px 6% 30px;font-size:10px}footer span:last-child{display:none}}@media(max-width:380px){.fruits{grid-template-columns:repeat(3,1fr)}.fruit span{font-size:12px}.play{min-height:500px}}
.fruit span{font-size:12px;white-space:normal;line-height:1.2;overflow-wrap:anywhere}.squish label{font-size:14px}.bottom-controls button{font-size:14px}@media(max-width:720px){.fruits{grid-template-columns:repeat(3,1fr)}.fruit{flex-direction:row;padding:8px 5px;justify-content:center}.fruit img{width:31px;height:35px}.fruit span{font-size:12px}.bottom-controls button{font-size:12px}}

/* Keep all names and instructions outside the interactive fruit canvas. */
.play canvas{top:215px;bottom:88px;height:calc(100% - 303px)}
.fruit-label{position:static;pointer-events:auto;padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid #ece6df}
.fruit-label h2{font-size:25px;margin:7px 0}.fruit-label .badge{font-size:12px}
.hint{bottom:82px;right:0;left:0;text-align:center;font-size:12px}
@media(max-width:1000px){.play canvas{top:200px;height:calc(100% - 288px)}}
@media(max-width:720px){.play canvas{top:168px;bottom:84px;height:calc(100% - 252px)}.hint{display:none}.fruit-label{display:flex;align-items:center;gap:14px;padding-bottom:18px;margin-bottom:18px;flex-wrap:wrap}.fruit-label h2{font-size:23px;margin:0}.fruit-label .badge{margin-left:auto}.play{min-height:530px}}

.audio-controls{display:flex;gap:8px}.audio-controls button{min-height:44px;min-width:96px}.audio-controls button[aria-pressed=true]{background:#e5efc9;border-color:#b9ce83}.audio-status{margin:0 auto;max-width:1600px;padding:0 4%;font-size:14px;color:#7c4258}.audio-status:empty{display:none}.audio-status:not(:empty){padding-bottom:12px}@media(max-width:720px){.audio-controls{gap:6px}.audio-controls button{padding:10px;font-size:12px;min-width:78px}.brand{gap:8px;font-size:21px}.mark{width:36px;height:36px;font-size:31px}header{padding:0 4%}}@media(max-width:360px){header{flex-wrap:wrap;height:auto;padding-top:12px;padding-bottom:12px;gap:10px}.audio-controls{margin-left:auto}}

.fruit-logo{display:block;object-fit:contain;background:transparent;border-radius:0;padding:0;width:52px;height:52px;transform:rotate(-16deg) scale(1.3)}
.food-switch{display:flex;gap:4px;background:#f0ece7;border-radius:24px;padding:4px;margin-bottom:18px}.food-switch button{flex:1;border:0;background:transparent;border-radius:20px;min-height:40px;font-size:14px}.food-switch button[aria-pressed=true]{background:#fffdf9;box-shadow:0 2px 6px #40302012;font-weight:700}
[data-theme=night]{color-scheme:dark;background:#191822;color:#eee8f1}
[data-theme=night] .play{background:radial-gradient(ellipse at 49% 44%,#403146 0%,#2b2534 70%,#24202d 100%)}
[data-theme=night] aside{background:#24212e;border-color:#3f3749}
[data-theme=night] .fruit{background:#302b3b;color:#eee8f1}
[data-theme=night] .fruit:hover{background:#44394f}
[data-theme=night] .fruit[aria-pressed=true]{border-color:#bb92cf;background:#4a3656}
[data-theme=night] .fruit span,[data-theme=night] .squish label{color:#e0d4e7}
[data-theme=night] .food-switch{background:#181620}
[data-theme=night] .food-switch button[aria-pressed=true]{background:#584261;color:#fff}
[data-theme=night] h1 em{color:#ed9db8}
[data-theme=night] p,[data-theme=night] .eyebrow,[data-theme=night] .tiny,[data-theme=night] .badge,[data-theme=night] .fruit-label>span:first-child,[data-theme=night] .counter span,[data-theme=night] .hint,[data-theme=night] .squish label span,[data-theme=night] .squish>div,[data-theme=night] footer{color:#beb0c8}
[data-theme=night] .round{border-color:#55495e}
[data-theme=night] .audio-controls button[aria-pressed=true]{background:#47503a;border-color:#768557;color:#eff4df}
[data-theme=night] .bottom-controls button{background:#413747;border-color:#63546d;color:#f7edf6}
[data-theme=night] .bottom-controls button.dark{background:#ddc2e7;border-color:#ddc2e7;color:#35243e}
[data-theme=night] .total{background:#393044;color:#d8c9df}
[data-theme=night] .squish,[data-theme=night] .fruit-label{border-color:#47394e}
[data-theme=night] #toast{color:#f0cce8;text-shadow:0 2px 10px #221d29}
@media(max-width:720px){header{height:auto;min-height:78px;flex-wrap:wrap;gap:10px;padding-top:14px;padding-bottom:14px}.audio-controls{margin-left:auto}.audio-controls button{min-width:70px;padding:10px 8px}.fruit-logo{width:42px;height:42px}.brand{font-size:21px}.food-switch{margin-bottom:18px}}

.food-switch button{min-width:0;padding-left:8px;padding-right:8px}.food-switch button:nth-child(2){flex:1.5}

/* Full, single-line names with room for the longest items in every category. */
.fruits{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fruit{flex-direction:column;justify-content:center;padding:8px 3px;gap:4px;min-height:68px}
.fruit img{width:39px;height:35px;flex:none}
.fruit span{font-size:.75rem;line-height:1.25;white-space:nowrap;overflow-wrap:normal;word-break:normal;letter-spacing:-.15px}
.food-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:20px}
.food-switch button{white-space:nowrap}
@media(min-width:460px) and (max-width:720px){.fruits{grid-template-columns:repeat(3,minmax(0,1fr))}}

.item-nav{position:absolute;z-index:3;top:calc(50% + 64px);transform:translateY(-50%);width:44px;height:44px;padding:12px;border:0;border-radius:50%;background:transparent;color:#8c7582;display:grid;place-items:center;transition:background .15s,color .15s}
.item-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.item-nav.previous{left:8px}.item-nav.next{right:8px}.item-nav:hover{background:#fff8f580;color:#624657}
[data-theme=night] .item-nav{color:#c3a8d0}[data-theme=night] .item-nav:hover{background:#63516b66;color:#f8eafa}
@media(max-width:1000px){.item-nav{top:calc(50% + 56px)}}
@media(max-width:720px){.item-nav{top:calc(50% + 42px)}.item-nav.previous{left:3px}.item-nav.next{right:3px}}

/* Touch devices: quick repeated taps activate controls without browser zoom. */
@media (pointer: coarse){html,body,button,a,input{touch-action:manipulation}}

/* Desktop picker and cutting board share a height; the picker scrolls inside it. */
@media(min-width:721px){
 main{align-items:start}
 aside{height:min(750px,calc(100svh - 165px));min-height:570px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b6a5b4 transparent}
}
@media(min-width:1500px){aside{min-height:740px}}

/* A welcoming feedback invitation below the game, on every screen size. */
footer{flex-wrap:wrap;gap:12px}
.footer-feedback{flex:0 0 100%;min-width:0;margin-top:8px;padding-top:22px;border-top:1px solid #ddd9d4;text-align:center}
.footer-feedback h2{margin:0;font-size:16px;line-height:1.5;color:#302d38}
.footer-feedback p{margin:8px 0 0;color:#655760}
.footer-feedback a{color:#93455d;text-underline-offset:3px;overflow-wrap:anywhere}
[data-theme=night] .footer-feedback{border-color:#47394e}
[data-theme=night] .footer-feedback h2{color:#f7edf6}
[data-theme=night] .footer-feedback p{color:#beb0c8}
[data-theme=night] .footer-feedback a{color:#ed9db8}

/* Mobile gameplay should never select labels or open touch callouts. */
@media (any-pointer: coarse){
 .play,.play *,aside,aside *,.audio-controls,.audio-controls *{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
 }
 /* Preserve editing, selection and native menus in text-entry controls. */
 :is(.play,aside,.audio-controls) :is(input,textarea,[contenteditable]:not([contenteditable="false"])),
 :is(.play,aside,.audio-controls) [contenteditable]:not([contenteditable="false"]) *{
  -webkit-user-select:text;user-select:text;-webkit-touch-callout:default;
 }
}

/* Feedback stays below the playground and opens only when invited. */
.feedback-primary{display:inline-block;border:0;border-radius:24px;padding:13px 22px;background:#302d38;color:#fff;font-size:15px;font-weight:600;min-height:46px}
.footer-feedback .feedback-primary{margin:16px 0 4px}
#feedback-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:470px;max-height:calc(100dvh - 40px);overflow-y:auto;border:1px solid #e7d9df;border-radius:24px;padding:26px;background:#faf7f2;color:#302d38;box-shadow:0 24px 80px #302d3840}
#feedback-dialog::backdrop{background:#251d2b88}
.feedback-heading{display:flex;align-items:center;gap:16px;justify-content:space-between}
.feedback-heading h2{font-size:23px;line-height:1.25;margin:0}
#feedback-close{flex:none;border:0;background:transparent;width:44px;height:44px;font-size:28px;border-radius:50%}
#feedback-dialog p{font-size:14px;line-height:1.6;color:#655760}
#feedback-form label{display:block;font-size:14px;font-weight:600;margin:16px 0 7px}
#feedback-form label span{font-weight:400}
#feedback-form :is(input,textarea,select){width:100%;box-sizing:border-box;border:1px solid #cdbfc5;border-radius:12px;background:#fffdfb;color:#302d38;padding:12px;font:inherit;font-size:16px;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#feedback-form textarea{resize:vertical;min-height:110px}
#feedback-form .feedback-note{margin:8px 0 18px}
#feedback-send{width:100%}
#feedback-send:disabled{opacity:.6;cursor:wait}
#feedback-result:empty{display:none}
#feedback-dialog #feedback-result{font-size:16px;color:inherit}
.feedback-backup{margin-bottom:0;overflow-wrap:anywhere}
.feedback-backup a{color:#93455d;text-underline-offset:3px}
.feedback-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
[data-theme=night] #feedback-dialog{background:#221d29;color:#f7edf6;border-color:#55495e}
[data-theme=night] #feedback-dialog p{color:#beb0c8}
[data-theme=night] #feedback-form :is(input,textarea,select){background:#181620;color:#f7edf6;border-color:#63546d}
[data-theme=night] .feedback-primary{background:#ddc2e7;color:#35243e}
[data-theme=night] .feedback-backup a{color:#ed9db8}
