.fx-jug { --fx-water: 60px; display: grid; }
.fx-jug:has(#fx-jug-f2:checked) { --fx-water: 100px; }
.fx-jug:has(#fx-jug-f3:checked) { --fx-water: 140px; }
.fx-jug:has(#fx-jug-f4:checked) { --fx-water: 180px; }
.fx-jug .fx-jug-content { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 14px; line-height: 1.5; }
.fx-jug .fx-note, .fx-jug .fx-right, .fx-jug .fx-wrong { color: var(--fx-ink); }
.fx-jug .fx-note ol { margin: 0; padding-left: 24px; }
.fx-jug .fx-jug-goal, .fx-jug .fx-jug-step { margin: 0; }
.fx-jug .fx-jug-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-jug .fx-jug-controls legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.fx-jug .fx-jug-control-caption { margin: 6px 0; }
.fx-jug .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-jug .fx-btn { box-sizing: border-box; min-height: 40px; min-width: 40px; padding: 8px 10px; color: var(--fx-ink); background: var(--fx-paper); }
.fx-jug .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun-pale); }
.fx-jug .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-jug .fx-jug-fill-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-jug .fx-jug-fill-option { border-top: 3px solid var(--fx-sky); }
@container (max-width: 480px) { .fx-jug .fx-jug-fill-options { grid-template-columns: 1fr; } }
.fx-jug .fx-jug-stage { box-sizing: border-box; height: 430px; padding: 12px; overflow: hidden; color: var(--fx-ink); }
.fx-jug .fx-jug-title { margin: 0; line-height: 22px; text-align: center; }
.fx-jug .fx-jug-caption { margin: 0; min-height: 42px; text-align: center; line-height: 20px; }
.fx-jug .fx-jug-scene { height: 282px; perspective: 700px; }
.fx-jug .fx-jug-turn { position: relative; top: 10px; width: 76px; height: 260px; margin: 0 auto; transform-style: preserve-3d; transform: rotateX(-4deg) rotateY(-8deg); transition: transform 0.45s; }
.fx-jug .fx-jug-back, .fx-jug .fx-jug-glass { box-sizing: border-box; position: absolute; inset: 0; border: 2px solid var(--fx-ink); border-radius: 8px 8px 16px 16px; }
.fx-jug .fx-jug-back { background: var(--fx-sky-pale); transform: translateZ(-10px); }
.fx-jug .fx-jug-glass { transform: translateZ(10px); }
.fx-jug .fx-jug-side { position: absolute; left: -10px; top: 8px; bottom: 12px; width: 20px; background: var(--fx-sky-pale); border: 1px solid var(--fx-muted); transform: rotateY(90deg); }
.fx-jug .fx-jug-liquid { position: absolute; bottom: 10px; left: 3px; right: 3px; height: var(--fx-water); background: var(--fx-sky); border-radius: 0 0 12px 12px; transform: translateZ(2px); transform-style: preserve-3d; transition: height 0.45s; }
.fx-jug .fx-jug-surface { position: absolute; top: -4px; left: 0; right: 0; height: 8px; border: 1px solid var(--fx-ink); border-radius: 50%; background: var(--fx-sky); transform: rotateX(55deg) translateZ(2px); }
.fx-jug .fx-jug-water-text { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 800; }
.fx-jug .fx-jug-tick { position: absolute; top: var(--fx-y); left: 64px; width: 12px; border-top: 2px solid var(--fx-ink); transform: translateZ(13px); }
.fx-jug .fx-jug-long { left: 52px; width: 24px; }
.fx-jug .fx-jug-mark { box-sizing: border-box; position: absolute; left: -72px; width: 68px; height: 48px; padding: 1px; border: 2px solid var(--fx-paper); border-radius: 6px; background: var(--fx-paper); font-size: 12px; line-height: 14px; text-align: center; transform: translateZ(13px); }
.fx-jug .fx-jug-mark3 { top: 6px; }
.fx-jug .fx-jug-mark2 { top: 206px; }
.fx-jug .fx-jug-small-label { position: absolute; left: 84px; top: 94px; width: 60px; font-size: 12px; line-height: 16px; transform: translateZ(13px); }
.fx-jug .fx-jug-scale-caption { margin: 0; font-size: 12px; line-height: 18px; text-align: center; }
.fx-jug .fx-jug-arrow { position: absolute; width: 0; border-left: 2px solid var(--fx-ink); visibility: hidden; transform: translateZ(15px); transition: top 0.45s, height 0.45s; }
.fx-jug .fx-jug-down { left: 14px; top: calc(250px - var(--fx-water)); height: calc(var(--fx-water) - 20px); }
.fx-jug .fx-jug-up { left: 36px; top: 30px; height: calc(220px - var(--fx-water)); }
.fx-jug .fx-jug-arrow::after { content: ""; position: absolute; left: -5px; width: 6px; height: 6px; transform: rotate(45deg); }
.fx-jug .fx-jug-down::after { bottom: 0; border-right: 2px solid var(--fx-ink); border-bottom: 2px solid var(--fx-ink); }
.fx-jug .fx-jug-up::after { top: 0; border-left: 2px solid var(--fx-ink); border-top: 2px solid var(--fx-ink); }
.fx-jug:has(.fx-jug-lower:checked):has(#fx-jug-a2:checked) .fx-jug-down, .fx-jug:has(.fx-jug-upper:checked):has(#fx-jug-a3:checked) .fx-jug-up, .fx-jug:has(.fx-jug-lower:checked):has(#fx-jug-a3:checked) .fx-jug-arrow, .fx-jug:has(.fx-jug-upper:checked):has(#fx-jug-a2:checked) .fx-jug-arrow { visibility: visible; }
.fx-jug:has(.fx-jug-lower:checked):has(#fx-jug-a2:checked) .fx-jug-mark2, .fx-jug:has(.fx-jug-upper:checked):has(#fx-jug-a3:checked) .fx-jug-mark3 { background: var(--fx-mint); border-color: var(--fx-ink); }
.fx-jug:has(.fx-jug-lower:checked):has(#fx-jug-a3:checked) .fx-jug-mark3, .fx-jug:has(.fx-jug-upper:checked):has(#fx-jug-a2:checked) .fx-jug-mark2 { background: var(--fx-sun-pale); border-color: var(--fx-coral); animation: fx-jug-flash 0.6s 2; }
@keyframes fx-jug-flash { 0%, 100% { background: var(--fx-sun-pale); } 50% { background: var(--fx-coral); } }
.fx-jug .fx-jug-messages { display: grid; min-width: 0; }
.fx-jug .fx-jug-messages p { grid-area: 1 / 1; visibility: hidden; margin: 0; min-width: 0; }
.fx-jug .fx-jug-picture-text { font-size: 14px; }
.fx-jug:has(#fx-jug-f1:checked):has(#fx-jug-a0:checked) .fx-jug-f1n, .fx-jug:has(#fx-jug-f1:checked):has(#fx-jug-a2:checked) .fx-jug-f1r, .fx-jug:has(#fx-jug-f1:checked):has(#fx-jug-a3:checked) .fx-jug-f1w, .fx-jug:has(#fx-jug-f2:checked):has(#fx-jug-a0:checked) .fx-jug-f2n, .fx-jug:has(#fx-jug-f2:checked):has(#fx-jug-a2:checked) .fx-jug-f2r, .fx-jug:has(#fx-jug-f2:checked):has(#fx-jug-a3:checked) .fx-jug-f2w, .fx-jug:has(#fx-jug-f3:checked):has(#fx-jug-a0:checked) .fx-jug-f3n, .fx-jug:has(#fx-jug-f3:checked):has(#fx-jug-a2:checked) .fx-jug-f3w, .fx-jug:has(#fx-jug-f3:checked):has(#fx-jug-a3:checked) .fx-jug-f3r, .fx-jug:has(#fx-jug-f4:checked):has(#fx-jug-a0:checked) .fx-jug-f4n, .fx-jug:has(#fx-jug-f4:checked):has(#fx-jug-a2:checked) .fx-jug-f4w, .fx-jug:has(#fx-jug-f4:checked):has(#fx-jug-a3:checked) .fx-jug-f4r { visibility: visible; }