.fx-jug { --fx-level: 0; --fx-target: 360; --fx-sign: 1; --fx-current: calc(360 - var(--fx-level) * 28); display: grid; gap: 14px; }
.fx-jug:has(#fx-jug-310:checked) { --fx-level: 1; }
.fx-jug:has(#fx-jug-320:checked) { --fx-level: 2; }
.fx-jug:has(#fx-jug-330:checked) { --fx-level: 3; }
.fx-jug:has(#fx-jug-340:checked) { --fx-level: 4; }
.fx-jug:has(#fx-jug-350:checked) { --fx-level: 5; }
.fx-jug:has(#fx-jug-360:checked) { --fx-level: 6; }
.fx-jug:has(#fx-jug-370:checked) { --fx-level: 7; }
.fx-jug:has(#fx-jug-380:checked) { --fx-level: 8; }
.fx-jug:has(#fx-jug-390:checked) { --fx-level: 9; }
.fx-jug:has(#fx-jug-400:checked) { --fx-level: 10; }
.fx-jug:has(#fx-jug-350:checked), .fx-jug:has(#fx-jug-360:checked), .fx-jug:has(#fx-jug-370:checked), .fx-jug:has(#fx-jug-380:checked), .fx-jug:has(#fx-jug-390:checked), .fx-jug:has(#fx-jug-400:checked) { --fx-target: 80; --fx-sign: -1; }
.fx-jug .fx-jug-steps { margin: 0; padding-left: 24px; }
.fx-jug .fx-jug-steps li { padding: 3px 0; }
.fx-jug .fx-jug-goal { margin: 0; color: var(--fx-ink); }
.fx-jug .fx-jug-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-jug .fx-jug-controls legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.fx-jug .fx-jug-stage { position: relative; height: 430px; padding: 0; box-sizing: border-box; overflow: hidden; }
.fx-jug .fx-jug-title { position: absolute; top: 8px; left: 11%; z-index: 3; color: var(--fx-ink); font-size: 14px; }
.fx-jug .fx-jug-lines { position: absolute; top: 66px; left: 11%; width: 53%; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 28px; gap: 0; }
.fx-jug .fx-jug-line { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 6px; box-sizing: border-box; width: 100%; min-width: 0; min-height: 28px; height: 28px; margin: 0; padding: 0 2px; border: 0; border-radius: 3px; background: none; color: var(--fx-ink); font-size: 12px; line-height: 1.2; font-weight: 600; cursor: pointer; }
.fx-jug .fx-jug-line > span:first-of-type { white-space: nowrap; }
.fx-jug .fx-jug-line:has(input:checked) { background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-jug .fx-jug-line:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 1px; }
.fx-jug .fx-jug-tick { flex: 1; min-width: 8px; border-top: 1px solid var(--fx-ink); }
.fx-jug .fx-jug-major .fx-jug-tick { border-top-width: 3px; }
.fx-jug .fx-jug-major { font-weight: 800; }
.fx-jug .fx-jug-drawing { position: absolute; inset: 0; width: 100%; height: 430px; pointer-events: none; }
.fx-jug .fx-jug-handle, .fx-jug .fx-jug-outline { fill: none; stroke: var(--fx-ink); stroke-width: 3; stroke-linejoin: round; }
.fx-jug .fx-jug-glass { fill: var(--fx-paper); stroke: none; }
.fx-jug .fx-jug-glow { fill: none; stroke: var(--fx-mint); stroke-width: 11; stroke-linejoin: round; visibility: hidden; }
.fx-jug:has(#fx-jug-350:checked) .fx-jug-glow { visibility: visible; }
.fx-jug .fx-jug-water { fill: var(--fx-sky-pale); stroke: none; y: calc(360px - var(--fx-level) * 28px); height: calc(28px + var(--fx-level) * 28px); transition: y 0.25s, height 0.25s; }
.fx-jug .fx-jug-surface { transform: translateY(calc(var(--fx-current) * 1px)); transition: transform 0.25s; }
.fx-jug .fx-jug-surface path { fill: none; stroke: var(--fx-sky); stroke-width: 3; }
.fx-jug .fx-jug-arrow { transform: translateY(calc(var(--fx-target) * 1px)); }
.fx-jug .fx-jug-shaft { y: min(0px, calc((var(--fx-current) - var(--fx-target)) * 1px)); height: max(calc((var(--fx-current) - var(--fx-target)) * 1px), calc((var(--fx-target) - var(--fx-current)) * 1px)); fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 1; }
.fx-jug .fx-jug-head { transform: scaleY(var(--fx-sign)); fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 1; stroke-linejoin: round; }
.fx-jug:has(#fx-jug-300:checked) .fx-jug-arrow, .fx-jug:has(#fx-jug-400:checked) .fx-jug-arrow { visibility: hidden; }
.fx-jug .fx-jug-water-label { position: absolute; top: calc(350px - var(--fx-level) * 28px); left: 76%; width: 23%; color: var(--fx-ink); font-size: 12px; line-height: 1.2; font-weight: 700; transition: top 0.25s; }
.fx-jug .fx-jug-readouts, .fx-jug .fx-jug-says { display: grid; min-width: 0; }
.fx-jug .fx-jug-state { grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.fx-jug .fx-jug-readout { display: grid; align-content: start; gap: 10px; }
.fx-jug .fx-jug-tags, .fx-jug .fx-jug-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-jug .fx-jug-tags > span { padding: 8px; border: 1px solid var(--fx-ink); border-radius: 6px; background: var(--fx-mint-pale); color: var(--fx-ink); font-size: 14px; }
.fx-jug .fx-jug-card > span { display: grid; align-content: start; gap: 4px; padding: 10px; border: 1px solid var(--fx-ink); border-radius: 6px; background: var(--fx-sun-pale); color: var(--fx-ink); font-size: 14px; }
.fx-jug .fx-jug-card b { font-size: 22px; line-height: 1.2; }
.fx-jug .fx-jug-readout small { font-size: 14px; color: var(--fx-ink); }
.fx-jug .fx-jug-says p { margin: 0; font-size: 16px; }
.fx-jug:has(#fx-jug-300:checked) .fx-jug-s300, .fx-jug:has(#fx-jug-310:checked) .fx-jug-s310, .fx-jug:has(#fx-jug-320:checked) .fx-jug-s320, .fx-jug:has(#fx-jug-330:checked) .fx-jug-s330, .fx-jug:has(#fx-jug-340:checked) .fx-jug-s340, .fx-jug:has(#fx-jug-350:checked) .fx-jug-s350, .fx-jug:has(#fx-jug-360:checked) .fx-jug-s360, .fx-jug:has(#fx-jug-370:checked) .fx-jug-s370, .fx-jug:has(#fx-jug-380:checked) .fx-jug-s380, .fx-jug:has(#fx-jug-390:checked) .fx-jug-s390, .fx-jug:has(#fx-jug-400:checked) .fx-jug-s400 { visibility: visible; }
@container (max-width: 480px) { .fx-jug .fx-jug-tags, .fx-jug .fx-jug-card { grid-template-columns: minmax(0, 1fr); } }