.fx-jug { --fx-l: 200; --fx-factor: 1; --fx-juice: var(--fx-factor); --fx-lean: -8deg; --fx-dilute: 0.65; --fx-mix: 0.65; --fx-mark: var(--fx-ink); --fx-mark-paper: var(--fx-paper); display: grid; }
.fx-jug:has(#fx-jug-n2:checked) { --fx-l: 400; --fx-factor: 2; --fx-lean: -6deg; --fx-dilute: 0.4; }
.fx-jug:has(#fx-jug-n3:checked) { --fx-l: 600; --fx-factor: 3; --fx-lean: -4deg; --fx-dilute: 0.28; }
.fx-jug:has(#fx-jug-n4:checked) { --fx-l: 1000; --fx-factor: 5; --fx-lean: -2deg; --fx-dilute: 0.17; --fx-mark: var(--fx-mint); --fx-mark-paper: var(--fx-mint-pale); }
.fx-jug:has(#fx-jug-n5:checked) { --fx-l: 1100; --fx-factor: 5.5; --fx-lean: 0deg; --fx-dilute: 0.15; --fx-mark: var(--fx-mint); --fx-mark-paper: var(--fx-mint-pale); }
.fx-jug:has(#fx-jug-forget:checked) { --fx-juice: 1; --fx-mix: var(--fx-dilute); --fx-mark: var(--fx-ink); --fx-mark-paper: var(--fx-paper); }
.fx-jug * { box-sizing: border-box; }
.fx-jug .fx-jug-body { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-jug .fx-jug-steps { list-style: none; margin: 0; padding: 0; }
.fx-jug .fx-jug-steps li + li { margin-top: 6px; }
.fx-jug .fx-jug-goal { margin: 0; }
.fx-jug .fx-jug-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-jug .fx-jug-controls legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.fx-jug .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-jug .fx-btn { min-height: 44px; min-width: 44px; padding: 8px 10px; font-size: 14px; color: var(--fx-ink); }
.fx-jug .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-jug .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-jug .fx-jug-stage { height: 530px; min-width: 0; padding: 12px; display: grid; grid-template-rows: 330px minmax(0, 1fr) 32px; gap: 12px; }
.fx-jug .fx-jug-scene { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 24px; width: 100%; max-width: 390px; height: 330px; margin: 0 auto; padding: 0 10px; }
.fx-jug .fx-jug-view { min-width: 0; }
.fx-jug .fx-jug-title { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 700; }
.fx-jug .fx-jug-perspective { height: 284px; perspective: 640px; }
.fx-jug .fx-jug-vessel { position: relative; height: 284px; border: 3px solid var(--fx-ink); border-radius: 4px 4px 18px 18px; background: var(--fx-paper); transform-style: preserve-3d; transform: rotateX(2deg) rotateY(var(--fx-lean)); transition: transform 0.45s; }
.fx-jug .fx-jug-handle { position: absolute; right: -18px; top: 38px; width: 20px; height: 126px; border: 5px solid var(--fx-ink); border-radius: 0 14px 14px 0; transform: translateZ(-4px); }
.fx-jug .fx-jug-tank { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 260px; transform: translateZ(1px); }
.fx-jug .fx-jug-liquid { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column-reverse; }
.fx-jug .fx-jug-band { flex-shrink: 0; border-top: 1px solid var(--fx-ink); transform: translateZ(2px); transition: height 0.45s, transform 0.45s; }
.fx-jug .fx-jug-lemon { height: calc(var(--fx-l) * 0.1px); background: var(--fx-sun-pale); }
.fx-jug .fx-jug-orange { height: calc(150 * var(--fx-juice) * 0.1px); background: var(--fx-sun); }
.fx-jug .fx-jug-cranberry { height: calc(80 * var(--fx-juice) * 0.1px); background: var(--fx-coral); }
.fx-jug .fx-jug-mark { position: absolute; bottom: 200px; left: 0; right: 0; border-top: 3px dashed var(--fx-mark); transform: translateZ(4px); }
.fx-jug .fx-jug-mark span { position: absolute; bottom: 5px; right: 0; max-width: 100%; padding: 2px 4px; background: var(--fx-mark-paper); font-size: 12px; line-height: 16px; text-align: right; }
.fx-jug .fx-jug-glassview { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 312px; }
.fx-jug .fx-jug-glasslabel { margin: 0; font-size: 12px; line-height: 16px; text-align: center; font-weight: 700; }
.fx-jug .fx-jug-glass { position: relative; width: 50px; height: 76px; border: 3px solid var(--fx-ink); border-top-width: 1px; border-radius: 2px 2px 8px 8px; background: var(--fx-paper); }
.fx-jug .fx-jug-mix { position: absolute; bottom: 4px; left: 4px; right: 4px; height: 52px; background: var(--fx-coral); opacity: var(--fx-mix); transition: opacity 0.45s; }
.fx-jug .fx-jug-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: center; min-width: 0; }
.fx-jug .fx-jug-key { display: grid; gap: 4px; min-width: 0; padding: 4px 8px; border-left: 6px solid var(--fx-sun); background: var(--fx-paper); font-size: 14px; line-height: 20px; }
.fx-jug .fx-jug-key-lemon { border-color: var(--fx-sun-pale); }
.fx-jug .fx-jug-key-cranberry { border-color: var(--fx-coral); }
.fx-jug .fx-jug-total { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 18px; line-height: 24px; }
.fx-jug .fx-jug-swap { display: grid; min-width: 0; }
.fx-jug .fx-jug-swap > * { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-jug .fx-jug-extra { display: block; margin-top: 6px; }
.fx-jug:has(#fx-jug-n1:checked) .fx-jug-l1, .fx-jug:has(#fx-jug-n2:checked) .fx-jug-l2, .fx-jug:has(#fx-jug-n3:checked) .fx-jug-l3, .fx-jug:has(#fx-jug-n4:checked) .fx-jug-l4, .fx-jug:has(#fx-jug-n5:checked) .fx-jug-l5, .fx-jug:has(#fx-jug-forget:checked) .fx-jug-on { visibility: visible; }
.fx-jug:has(#fx-jug-n1:checked):not(:has(#fx-jug-forget:checked)) .fx-jug-n1-off, .fx-jug:has(#fx-jug-n2:checked):not(:has(#fx-jug-forget:checked)) .fx-jug-n2-off, .fx-jug:has(#fx-jug-n3:checked):not(:has(#fx-jug-forget:checked)) .fx-jug-n3-off, .fx-jug:has(#fx-jug-n4:checked):not(:has(#fx-jug-forget:checked)) .fx-jug-n4-off, .fx-jug:has(#fx-jug-n5:checked):not(:has(#fx-jug-forget:checked)) .fx-jug-n5-off, .fx-jug:has(#fx-jug-n1:checked):has(#fx-jug-forget:checked) .fx-jug-n1-on, .fx-jug:has(#fx-jug-n2:checked):has(#fx-jug-forget:checked) .fx-jug-n2-on, .fx-jug:has(#fx-jug-n3:checked):has(#fx-jug-forget:checked) .fx-jug-n3-on, .fx-jug:has(#fx-jug-n4:checked):has(#fx-jug-forget:checked) .fx-jug-n4-on, .fx-jug:has(#fx-jug-n5:checked):has(#fx-jug-forget:checked) .fx-jug-n5-on { visibility: visible; }
@container (max-width: 480px) { .fx-jug .fx-jug-keys { grid-template-columns: 1fr; gap: 4px; } .fx-jug .fx-jug-key { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }