html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#fff8e6}
#activity-root{width:100%;height:100%}
.harvest{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:6px;color:#3d3226;position:relative;isolation:isolate}
.lever-scene{position:relative;flex:1 1 auto;min-height:142px;max-height:240px;width:100%;touch-action:none}
.lever-pivot{position:absolute;left:calc(50% - 16px);top:var(--beam-y,58%);width:32px;height:50px;background:#b67b44;clip-path:polygon(50% 0,100% 100%,0 100%);filter:drop-shadow(0 4px 2px #8a552c30)}
.lever-beam{position:absolute;left:0;right:0;top:var(--beam-y,58%);height:12px;border-radius:8px;background:linear-gradient(#e0ac6d,#a26835);box-shadow:0 3px 4px #8a552c35;transform-origin:50% 50%;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.lever-reference{position:absolute;left:0;right:0;top:calc(var(--beam-y,58%) + 4px);height:0;border-top:4px dashed #906b40}
.lever-reference:before,.lever-reference:after{content:'';position:absolute;top:-14px;width:10px;height:24px;border:3px solid #906b40;border-radius:6px;background:#fff8e6}
.lever-reference:before{left:0}.lever-reference:after{right:0}
.beam-end-right{position:absolute;right:0;top:0;width:12px;height:12px}
.harvest.is-balanced .lever-reference{border-top-style:solid;border-color:#b87a08}
.lever-place{position:absolute;top:14px;transform:translateX(-50%);font-size:17px;font-weight:600;color:#76502f;line-height:22px;text-align:center;background:#fff8e6;border-radius:4px;padding:0 2px}
.lever-place:before{content:'';position:absolute;left:50%;top:-18px;width:2px;height:16px;background:#79502b}
.basket-token{position:absolute;bottom:10px;transform:translateX(-50%);width:56px;height:74px;padding:0;border:0;background:transparent;color:#3d3226;cursor:grab;touch-action:none;transition:left .5s cubic-bezier(.16,1,.3,1);display:grid;place-items:end center;outline-offset:2px}
.basket-token img{width:56px;height:53px;object-fit:contain;pointer-events:none}
.basket-weight{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;padding:3px 4px;border-radius:7px;background:#fff8e6;pointer-events:none}
.basket-mass{font-size:18px;line-height:19px;color:#174a7e}
.basket-units{display:grid;grid-template-columns:repeat(2,6px);gap:2px;pointer-events:none}
.basket-units i{width:6px;height:6px;border-radius:50%;background:#674124}
.basket-units i:only-child{grid-column:1 / -1;justify-self:center}
.basket-token{border-radius:12px}
.basket-token[aria-pressed="true"]{outline:3px solid #174a7e;outline-offset:2px}
.low-marker{position:absolute;right:-16px;top:10px;width:24px;height:24px;fill:none;stroke:#93601d;stroke-width:3;opacity:0;pointer-events:none}
.basket-token.is-low .low-marker{opacity:1}
.basket-token[aria-disabled="true"]{cursor:default}
.basket-lock{position:absolute;right:0;top:7px;width:17px;height:16px;border:1.5px solid #95601f;border-radius:4px;background:linear-gradient(135deg,#fff1b5,#e5b34d 48%,#bb832b);box-shadow:inset 0 1px 0 #fff8d8,0 2px 3px #603b1f40;pointer-events:none}
.basket-lock:before{content:'';position:absolute;left:3px;top:-10px;width:8px;height:10px;border:2px solid #9b6b2c;border-bottom:0;border-radius:7px 7px 0 0;background:transparent;box-shadow:inset 1px 0 0 #fff2c1}
.basket-lock:after{content:'';position:absolute;left:6px;top:4px;width:5px;height:8px;background:radial-gradient(circle at 50% 2.5px,#795020 0 2.3px,transparent 2.5px),linear-gradient(#795020,#795020) center 4px/2px 4px no-repeat}
.product-row{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;flex:0 0 56px;gap:4px;width:100%;color:#4d3523}
.product-side{text-align:center;min-width:0}
.factor-heading{display:block;font-size:14px;line-height:18px;white-space:nowrap}
.equation{display:flex;align-items:baseline;justify-content:center;gap:6px;font-size:26px;font-weight:600;line-height:32px;white-space:nowrap}
.equation [data-factor="mass"]{color:#174a7e}
.equation [data-product]{border-bottom:2px solid currentColor;min-width:18px}
.product-comparison{text-align:center;font-size:32px;font-weight:600;line-height:38px}
.harvest.is-balanced .product-row{background:#f8df94;border-radius:9px}
.distance-choices{display:flex;justify-content:center;gap:6px;flex:0 0 56px}
.distance-choice{width:118px;height:56px;flex:0 1 118px;border:2px solid #b67b44;border-radius:13px;background:#f5e4bf;color:#4d3523;font:600 18px 'Fredoka',sans-serif;cursor:pointer;box-shadow:inset 0 2px 1px #fff8e6,0 3px 4px #6b46221c;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px}
.distance-choice svg{width:25px;height:24px;flex:0 0 25px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.distance-choice:focus-visible,.basket-token:focus-visible{outline:3px solid #174a7e;outline-offset:2px}
.distance-choice:active{transform:scale(.97)}
.basket-token{bottom:-4px}
@media(min-width:700px) and (min-height:650px){.basket-token{width:84px;height:98px}.basket-token img{width:84px;height:84px}.basket-weight{bottom:15px;padding:4px 6px}.basket-mass{font-size:23px;line-height:25px}.basket-units{grid-template-columns:repeat(2,8px);gap:3px}.basket-units i{width:8px;height:8px}}
.harvest.is-demo .basket-token,.harvest.is-demo .distance-choice{pointer-events:none}
.harvest.is-balanced .lever-beam{box-shadow:0 0 12px #f2c141}
.tutorial-hand{position:fixed;z-index:90;width:64px;height:74px;pointer-events:none;object-fit:contain;transform:translate(-12px,-10px);transition:left .5s cubic-bezier(.16,1,.3,1),top .5s cubic-bezier(.16,1,.3,1)}
.tutorial-hand[hidden]{display:none}
@media(max-width:600px){.factor-heading{font-size:12px;line-height:16px}.equation{font-size:21px;line-height:27px;gap:4px}.product-comparison{font-size:28px}.product-row{gap:2px;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)}}
@media(max-height:700px){.lever-scene{min-height:110px;--beam-y:70%}.harvest{gap:0}.basket-token{height:56px}.basket-token img{height:48px}.lever-pivot{height:28px}.basket-lock{top:0}.product-row{flex-basis:38px}.factor-heading{font-size:12px;line-height:14px}.equation{font-size:20px;line-height:24px;gap:4px}.product-comparison{font-size:27px;line-height:34px}}
@media(orientation:landscape) and (max-height:620px){.product-row{position:relative}.product-row:before{content:'Mass × Distance';position:absolute;top:0;left:50%;transform:translateX(-50%);padding:0 2px;background:#fff8e6;font-size:11px;line-height:14px;white-space:nowrap}.product-side,.product-comparison{align-self:end}.factor-heading{display:none}.product-comparison{line-height:24px}}
@media(prefers-reduced-motion:reduce){.lever-beam,.basket-token,.tutorial-hand{transition:none}}
