/* A calm kitchen stage with the blender fixed at the horizontal centre. */
.juice-screen{display:flex;flex-direction:column;align-items:center;gap:5px;background:radial-gradient(ellipse at 15% 16%,#fff7d5,transparent 46%),linear-gradient(150deg,#e5f3e6,#d4e9e5 65%,#f9e8ce);box-sizing:border-box;padding:8px 10px 12px;overflow:auto}
.juice-screen .game-toolbar,.juice-screen .at-game-steps{flex:none}
.juice-flowerline{display:none}
.juice-instruction{max-width:820px;line-height:1.3;margin:3px auto;font-size:clamp(13px,2.7vw,18px)}
.juice-progress{margin:0 auto 3px;background:#ffffffbd;font-size:13px;color:#3b7164}
.juice-fruits{width:min(100%,700px);gap:10px;flex:none;position:relative;z-index:6}
.juice-fruits button{position:relative;flex:1;width:25%;max-width:155px;min-height:96px;padding:7px 5px 6px;border:2px solid #fff;border-radius:20px;background:linear-gradient(150deg,#fffef9,#f5ecd9);box-shadow:0 5px 11px #6b8b7430;transition:transform .2s,opacity .2s}
.juice-fruits .juice-fruit-art{display:block;width:100%;height:clamp(54px,9vw,92px);overflow:hidden;pointer-events:none;filter:drop-shadow(0 4px 3px #526c4924)}
.juice-fruits small{font-size:clamp(12px,2.5vw,15px);line-height:1.2;margin-top:2px;color:#385c55}
.juice-known-letter{color:#d62d64;font-weight:900}
.juice-added{position:absolute;right:4px;top:4px;width:20px;height:20px;border-radius:50%;background:#2b997a;color:white;font:800 16px system-ui;display:grid;place-items:center}
.juice-fruits button:disabled{opacity:.48;box-shadow:none}
.juice-screen .juice-scene{flex:none;display:block;position:relative;width:min(100%,800px);aspect-ratio:5/3;height:auto;min-height:0;max-height:none;margin:auto auto 0;background:radial-gradient(ellipse at 50% 99%,#c4ad8766,transparent 60%);isolation:isolate}
.juice-scene:before{content:'';position:absolute;left:1%;right:1%;bottom:3%;height:13%;border-radius:50%;background:linear-gradient(#fff5e5,#eadac0);box-shadow:0 7px 13px #6b785223;z-index:0}
.juice-screen .juice-character{position:absolute;left:0;bottom:6%;width:30%;height:auto;max-height:none;aspect-ratio:2/3;display:block;z-index:3}
.juice-screen .juice-character .avatar{width:100%;height:auto;aspect-ratio:2/3;max-width:none;max-height:none;transform:none;margin:0}
.juice-screen .juice-character .avatar img{max-height:none}
.juice-screen .juice-character .avatar-body{width:100%;height:100%;object-fit:contain}
.juice-screen .juice-blender{left:34%;right:auto;bottom:12%;width:32%;height:auto;aspect-ratio:2/3;max-height:none;z-index:2}
.juice-screen .juice-blender-art{display:block;width:100%;height:100%;max-height:none;filter:drop-shadow(0 7px 5px #325c5833);overflow:visible}
.juice-screen .juice-drop-hint{top:auto;bottom:-8%;font-size:clamp(10px,1.8vw,14px);padding:4px 9px;background:#fffaf1;box-shadow:0 2px 6px #567c6224}
.juice-screen .juice-piece{stroke:none;animation:juice-drop-in .4s ease-out both}
.juice-pitcher{transform-origin:140px 280px}
.juice-screen .juice-glass{left:25.5%;bottom:8%;width:8%;z-index:5}
.juice-screen .juice-scene-approaching .juice-character,.juice-screen .juice-scene-pouring .juice-character,.juice-screen .juice-scene-drinking .juice-character{transform:translateX(20%)}
.juice-screen .juice-scene-pouring .juice-glass,.juice-screen .juice-scene-drinking .juice-glass{bottom:22%}
.juice-screen .juice-scene-pouring:after{left:29.2%;top:31.5%;height:31%;width:1%;box-shadow:inset 2px 0 #fff6}
.juice-screen .juice-heart{top:21%;right:15%;font-size:clamp(19px,4.5vw,32px)}
.juice-reaction{font:800 clamp(12px,2vw,18px) system-ui;top:-4%;right:-8%;color:#bd3974}
.juice-actions{flex:none;width:min(100%,700px);min-height:76px;gap:4px;margin-bottom:auto}
.juice-actions p{max-width:100%;font-size:clamp(12px,2.5vw,16px);min-height:1.3em;margin:0}
.juice-make{min-width:150px;min-height:48px;background:linear-gradient(135deg,#e86e9a,#cf497d);box-shadow:0 4px 9px #a04b6f30;font-size:17px;border-width:2px}
.juice-wait{font-size:13px}
.juice-fruit-ghost{position:fixed;z-index:200;pointer-events:none;width:80px;height:80px;transform:translate(-50%,-50%);filter:drop-shadow(0 10px 7px #253f4544)}
.juice-fruit-ghost .juice-fruit-art{width:100%;height:100%}
@keyframes juice-approach{0%{transform:translateX(0)}30%{transform:translate(7%,-2px)}70%{transform:translate(15%,0)}100%{transform:translateX(20%)}}
@keyframes juice-pickup{0%,55%{bottom:8%}100%{bottom:22%}}
@keyframes juice-pour-tilt{0%,100%{transform:none}25%,75%{transform:translateX(50px) rotate(-32deg)}}
@keyframes juice-sip{0%,9%,80%,100%{transform:none}30%,58%{transform:translate(-6.5cqw,-20cqw) rotate(-12deg)}}
@keyframes juice-arm-sip{0%,9%,80%,100%{d:path('M210 234 Q218 275 206 300')}30%,58%{d:path('M210 234 Q210 178 160 160')}}
@media(max-width:420px){.juice-screen{gap:4px;padding:5px 7px 8px}.juice-fruits{gap:6px}.juice-fruits button{min-height:87px;border-radius:16px;padding:5px 2px}.juice-instruction{font-size:13px}.juice-actions{min-height:72px}.juice-screen .juice-scene{margin-top:auto;margin-bottom:5px}.juice-screen .juice-drop-hint{font-size:10px}}
@media(max-height:500px) and (min-width:500px){.juice-screen{display:grid;grid-template-columns:34% 1fr;grid-template-rows:auto auto auto 1fr auto;gap:3px 10px;padding:3px 9px;overflow:auto;align-items:center}.juice-screen .game-toolbar,.juice-screen .at-game-steps{grid-column:1/-1;width:100%;margin:0}.juice-instruction{grid-column:1;grid-row:3;font-size:11px;margin:0}.juice-progress{display:none}.juice-fruits{grid-column:1;grid-row:4;display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%}.juice-fruits button{width:100%;min-height:55px;padding:2px;border-radius:12px}.juice-fruits .juice-fruit-art{height:35px}.juice-fruits small{font-size:11px}.juice-screen .juice-scene{grid-column:2;grid-row:3/6;width:min(100%,calc((100dvh - 103px) * 5 / 3));margin:auto;justify-self:center}.juice-actions{grid-column:1;grid-row:5;min-height:0;margin:0}.juice-actions p{font-size:10px;min-height:0}.juice-make{min-height:34px;font-size:12px;padding:4px 10px}.juice-wait{font-size:10px}}
@media(prefers-reduced-motion:reduce){.juice-screen .juice-scene-pouring .juice-pitcher{transform:translateX(50px) rotate(-32deg)}.juice-screen .juice-scene-approaching .juice-character{transform:translateX(20%)}.juice-screen .juice-piece{animation:none}}

.juice-piece .juice-fruit-art{width:66px;height:66px;overflow:hidden;filter:none}

/* The appliance itself is the control; fruit drops still target its full bounds. */
.juice-screen button.juice-blender{padding:0;border:0;background:transparent;color:#246f65;font:inherit;box-shadow:none;opacity:1;appearance:none;touch-action:manipulation;cursor:default}
.juice-screen button.juice-blender:enabled{cursor:pointer}
.juice-screen button.juice-blender:focus-visible{outline:4px solid #d84483;outline-offset:5px;border-radius:20px}
.juice-power{position:absolute;left:46.5%;top:79%;width:22%;aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%;color:#367a70;background:#fff0c9;box-shadow:0 0 0 2px #f9ffff,inset 0 2px 4px #ffffff;pointer-events:none}
.juice-power svg{width:60%;height:60%}
.juice-blender:enabled .juice-power{color:white;background:#d74785;box-shadow:0 0 0 3px #fff3ce,0 0 12px #f4a6c8;animation:juice-power-ready 1.6s ease-in-out infinite}
.juice-blender:enabled .juice-drop-hint{background:#fff4d3;color:#8a325f}
.juice-screen [data-juice-phase="starting"] .juice-character{animation:juice-switch-approach 1.2s ease-in-out both}
.juice-screen [data-juice-phase="switching"] .juice-character,.juice-screen [data-juice-phase="mixing"] .juice-character,.juice-screen [data-juice-phase="mixed"] .juice-character{transform:translateX(40%)}
.juice-switch-arm{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;opacity:0}
[data-juice-phase="switching"] .juice-switch-arm{opacity:1}
[data-juice-phase="switching"] .juice-switch-arm g{transform-origin:240px 225px;animation:juice-switch-reach .6s ease-in-out both}
[data-juice-phase="switching"] .juice-power{animation:juice-power-press .6s ease-in-out both}
[data-juice-phase="switching"] .juice-character .avatar{clip-path:polygon(0 0,100% 0,100% 44%,77% 44%,77% 67%,100% 67%,100% 100%,0 100%)}
[data-juice-phase="mixing"] .juice-power{color:#fff;background:#2fa68a;box-shadow:0 0 0 2px white,0 0 12px #70ecbb}
@keyframes juice-power-ready{50%{box-shadow:0 0 0 5px #fff3ce,0 0 18px #ed6fa9}}
@keyframes juice-switch-approach{0%{transform:translateX(0)}30%{transform:translate(12%,-2px)}65%{transform:translate(27%,0)}85%{transform:translate(35%,-2px)}100%{transform:translateX(40%)}}
@keyframes juice-switch-reach{0%,100%{transform:rotate(32deg)}40%,65%{transform:rotate(0)}}
@keyframes juice-power-press{0%,100%{transform:translate(-50%,-50%) scale(1)}40%,65%{transform:translate(-50%,-50%) scale(.88);background:#2fa68a;color:#fff}}
/* After blending, walk back a little to pick up the glass without jumping. */
@keyframes juice-approach{0%{transform:translateX(40%)}35%{transform:translate(33%,-2px)}70%{transform:translate(26%,0)}100%{transform:translateX(20%)}}
@media(prefers-reduced-motion:reduce){.juice-screen [data-juice-phase="starting"] .juice-character{animation:none;transform:translateX(40%)}.juice-switch-arm g,.juice-power{animation:none!important}[data-juice-phase="switching"] .juice-switch-arm g{transform:none}}

.juice-fruits{width:min(100%,820px)}
.juice-fruits button{max-width:184px}
.juice-fruits .juice-fruit-art{height:clamp(66px,16vw,118px)}
.juice-screen .juice-character{width:36%;left:-3%;bottom:4%}
.juice-screen .juice-blender{width:26%;left:37%;bottom:12%}
.juice-screen .juice-scene-pouring:after{left:32%;top:42%;height:26%;transform:rotate(8deg);transform-origin:top}
.juice-screen .juice-scene-pouring .juice-glass,.juice-screen .juice-scene-drinking .juice-glass{left:27%;bottom:23%}
@media(max-height:500px) and (min-width:500px){.juice-fruits .juice-fruit-art{height:clamp(40px,10vh,52px)}}

/* A: larger labels and a cup visibly carried by both hands. */
.juice-a .juice-fruits small{font-size:clamp(17px,3.9vw,23px);line-height:1.18;overflow-wrap:anywhere}
.juice-a .juice-fruits button{padding-bottom:9px}
.juice-a .juice-power{width:38%;min-width:48px;min-height:48px;top:78%}
.juice-a .juice-drop-hint{font-size:clamp(14px,2.8vw,19px);padding:6px 12px;bottom:-10%}
.juice-a .juice-blender:enabled .juice-drop-hint{font-size:clamp(17px,3.2vw,22px)}
.juice-a .juice-instruction{font-size:clamp(15px,3vw,20px);line-height:1.35}
.juice-a .juice-cup-rig{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none;overflow:visible}
.juice-a .juice-hand-carry{transform:translate(197px,310px);transform-origin:28px 63px}
.juice-a .juice-rig-arms,.juice-a .juice-rig-fingers{opacity:0}
.juice-a .juice-rig-sleeve{stroke:url(#juice-rig-sleeve);stroke-width:22px}
.juice-a .juice-rig-forearm{stroke:url(#juice-rig-skin);stroke-width:13px}
.juice-a [data-juice-phase=approaching] .juice-hand-carry{animation:juice-a-pickup 1.2s ease-in-out both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=approaching] .juice-rig-fingers{animation:juice-a-grasp 1.2s ease both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=approaching] .juice-rig-arms{animation:juice-a-reach 1.2s ease both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=approaching] .juice-rig-forearm.left{animation:juice-a-pick-left 1.2s ease both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=approaching] .juice-rig-forearm.right{animation:juice-a-pick-right 1.2s ease both;animation-delay:var(--juice-elapsed,0s)}
.juice-a :is([data-juice-phase=pouring],[data-juice-phase=drinking]) :is(.juice-rig-arms,.juice-rig-fingers){opacity:1}
.juice-a :is([data-juice-phase=pouring],[data-juice-phase=drinking]) .juice-hand-carry{transform:translate(197px,245px)}
.juice-a [data-juice-phase=pouring] .juice-liquid{animation:juice-fill 2.4s ease both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=drinking] .juice-hand-carry{animation:juice-a-sip 4s ease-in-out both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=drinking] .juice-rig-sleeve.left{animation:juice-a-sleeve-left 4s ease-in-out both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=drinking] .juice-rig-sleeve.right{animation:juice-a-sleeve-right 4s ease-in-out both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=drinking] .juice-rig-forearm.left{animation:juice-a-arm-left 4s ease-in-out both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=drinking] .juice-rig-forearm.right{animation:juice-a-arm-right 4s ease-in-out both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=drinking] .juice-liquid{animation:juice-drain-glass 4s linear both;animation-delay:var(--juice-elapsed,0s)}
.juice-a :is([data-juice-phase=pouring],[data-juice-phase=drinking]) .juice-character .avatar{clip-path:polygon(0 0,100% 0,100% 43%,73% 43%,73% 65%,100% 72%,100% 100%,0 100%,0 72%,29% 65%,29% 43%,0 43%)}
.juice-a .juice-scene-pouring:after{left:34.4%;top:42%;height:19%;width:1.5%;transform:rotate(15deg);transform-origin:top center;background:linear-gradient(90deg,#ffb52d,#ffe58b 40%,#f89c23);box-shadow:inset 1px 0 #fff8}
.juice-a [data-juice-phase=pouring] .juice-pitcher,.juice-a .juice-scene-pouring:after{animation-delay:var(--juice-elapsed,0s)}
@keyframes juice-a-pickup{0%,66%{transform:translate(197px,310px)}100%{transform:translate(197px,245px)}}
@keyframes juice-a-reach{0%,40%{opacity:0}58%,100%{opacity:1}}
@keyframes juice-a-grasp{0%,60%{opacity:0}66%,100%{opacity:1}}
@keyframes juice-a-pick-left{0%,48%{d:path('M160 272 Q171 292 174 308')}66%{d:path('M160 272 Q188 337 205 363')}100%{d:path('M160 272 Q180 294 205 298')}}
@keyframes juice-a-pick-right{0%,48%{d:path('M241 244 Q260 282 270 303')}66%{d:path('M241 244 Q270 335 247 361')}100%{d:path('M241 244 Q249 277 247 296')}}
@keyframes juice-a-sip{0%,9%,80%,100%{transform:translate(197px,245px)}30%,58%{transform:translate(132px,119px) rotate(-12deg)}}
@keyframes juice-a-sleeve-left{0%,9%,80%,100%{d:path('M126 190 Q119 255 160 272')}30%,58%{d:path('M126 190 Q109 209 124 215')}}
@keyframes juice-a-sleeve-right{0%,9%,80%,100%{d:path('M205 190 Q228 222 241 244')}30%,58%{d:path('M205 190 Q218 202 202 218')}}
@keyframes juice-a-arm-left{0%,9%,80%,100%{d:path('M160 272 Q180 294 205 298')}30%,58%{d:path('M124 215 Q123 189 138 176')}}
@keyframes juice-a-arm-right{0%,9%,80%,100%{d:path('M241 244 Q249 277 247 296')}30%,58%{d:path('M202 218 Q194 190 180 170')}}
@media(max-height:500px) and (min-width:500px){.juice-a .juice-fruits small{font-size:16px}.juice-a .juice-instruction{font-size:13px}.juice-a .juice-power{min-width:42px;min-height:42px}.juice-a .juice-drop-hint{font-size:13px}.juice-a .juice-blender:enabled .juice-drop-hint{font-size:15px}}
@media(prefers-reduced-motion:reduce){.juice-a .juice-cup-rig *{animation:none!important}.juice-a [data-juice-phase=approaching] .juice-hand-carry{transform:translate(197px,245px)}.juice-a [data-juice-phase=approaching] :is(.juice-rig-arms,.juice-rig-fingers){opacity:1}.juice-a :is([data-juice-phase=pouring],[data-juice-phase=drinking]) .juice-liquid{transform:scaleY(1)}}

/* v103: large fruit choices and a clearly visible drinking scene. */
.juice-a .juice-fruits{width:min(100%,920px);max-width:920px;margin:4px auto 0;gap:12px}
.juice-a .juice-fruits button{max-width:218px;min-height:174px;padding:8px;border-radius:24px}
.juice-a .juice-fruits .juice-fruit-art{height:140px}
.juice-a .juice-fruits small{font-size:22px;overflow-wrap:normal}
.juice-a .juice-scene{width:min(100%,800px,calc((100dvh - 510px)*5/3));max-width:none;margin:12px auto 0}
.juice-a .juice-power{width:46%;min-width:60px;min-height:60px}
.juice-a .juice-drop-hint{white-space:nowrap;bottom:-12%}
.juice-a .juice-actions{min-height:84px;margin:12px auto 0;gap:8px}
.juice-a .juice-make{min-height:62px;min-width:224px;font-size:22px;padding:14px 28px}
.juice-a .juice-reaction{font-size:clamp(18px,3vw,26px);padding:8px 14px;left:87%;right:auto;top:4%;animation:juice-a-delight 4s ease both;animation-delay:var(--juice-elapsed,0s)}
.juice-a [data-juice-phase=drinking] .juice-heart{top:-3%;right:-25%;font-size:clamp(24px,5vw,40px);animation:juice-a-hearts 4s ease-out both;animation-delay:var(--juice-elapsed,0s)}
/* Keep body and hands aligned while sipping; celebrate after lowering the cup. */
.juice-a [data-juice-phase=drinking] .juice-character{animation:none}
@keyframes juice-a-delight{0%,70%{opacity:0;transform:translateY(6px) scale(.85)}78%,100%{opacity:1;transform:none}}
@keyframes juice-a-hearts{0%,66%{opacity:0;transform:translateY(0) scale(.7)}76%{opacity:1;transform:translateY(-12px) scale(1)}100%{opacity:1;transform:translateY(-40px) scale(1.15)}}
@media(max-width:600px) and (min-height:501px){
 .juice-a .juice-fruits{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:min(100%,440px)}
 .juice-a .juice-fruits button{width:100%;max-width:none;min-height:130px;padding:5px}
 .juice-a .juice-fruits .juice-fruit-art{height:100px}
 .juice-a .juice-fruits small{font-size:20px}
 .juice-a .juice-scene{width:100%;margin:10px auto 0}
 .juice-a .juice-actions{margin-top:12px}
}
@media(max-height:500px) and (min-width:500px){
 .juice-a .juice-fruits{gap:6px;margin:0}
 .juice-a .juice-fruits button{width:100%;min-height:68px;padding:3px;border-radius:14px}
 .juice-a .juice-fruits .juice-fruit-art{height:52px}
 .juice-a .juice-fruits small{font-size:16px}
 .juice-a .juice-scene{width:min(100%,calc((100dvh - 115px)*5/3));margin:0 auto}
 .juice-a .juice-power{min-width:48px;min-height:48px}
 .juice-a .juice-actions{min-height:0;margin:4px 0 0;gap:2px}
 .juice-a .juice-make{min-height:46px;min-width:170px;font-size:18px;padding:6px 14px}
 .juice-a .juice-reaction{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.juice-a .juice-reaction,.juice-a [data-juice-phase=drinking] .juice-heart{animation:none;opacity:1;transform:none}}

/* Keep choosing, blending and drinking within one viewport. */
.juice-screen.juice-a{height:100dvh;min-height:0;overflow:hidden;gap:4px;padding:5px 7px max(6px,env(safe-area-inset-bottom))}
.juice-a .juice-instruction{margin:0;font-size:16px;line-height:1.2;flex:none}
.juice-a .juice-progress{margin:0;font-size:13px;flex:none}
.juice-a .juice-fruits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 auto;flex:none;width:min(100%,760px)}
.juice-a .juice-fruits button{width:100%;min-height:0;padding:5px 2px;max-width:none;border-radius:16px}
.juice-a .juice-fruits .juice-fruit-art{height:clamp(58px,11dvh,100px)}
.juice-a .juice-fruits small{font-size:clamp(14px,3.5vw,19px)}
.juice-a .juice-scene{flex:none;width:min(100%,800px,calc((100dvh - 350px)*5/3));margin:auto auto 0}
.juice-a .juice-actions{flex:none;min-height:76px;margin:4px auto 0;gap:3px}
.juice-a .juice-actions p{font-size:14px;line-height:1.2;margin:0}
.juice-a .juice-make{min-height:50px;min-width:190px;font-size:20px;padding:8px 18px}
@media(max-height:500px) and (min-width:500px){
 .juice-screen.juice-a{grid-template-rows:52px 42px auto 1fr auto;gap:3px 8px}
 .juice-a .juice-fruits{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .juice-a .juice-fruits .juice-fruit-art{height:35px}
 .juice-a .juice-fruits small{font-size:13px}
 .juice-a .juice-scene{width:min(100%,calc((100dvh - 115px)*5/3));margin:0 auto}
 .juice-a .juice-actions{min-height:0;margin:0}
 .juice-a .juice-actions p{font-size:11px}
 .juice-a .juice-make{min-height:44px;font-size:16px;padding:5px 10px}
}
