.fx-jug { --fx-level: 0; display: grid; gap: 16px; }
.fx-jug:has(#fx-jug-quarter:checked) { --fx-level: 0.25; }
.fx-jug:has(#fx-jug-nine:checked) { --fx-level: 0.45; }
.fx-jug:has(#fx-jug-half:checked) { --fx-level: 0.5; }
.fx-jug:has(#fx-jug-three:checked) { --fx-level: 0.6; }
.fx-jug:has(#fx-jug-threequarter:checked) { --fx-level: 0.75; }
.fx-jug:has(#fx-jug-full:checked) { --fx-level: 1; }
.fx-jug .fx-jug-steps { margin: 0; padding-left: 24px; }
.fx-jug .fx-jug-steps li + li { margin-top: 6px; }
.fx-jug .fx-jug-goal { margin: 0; color: var(--fx-ink); }
.fx-jug .fx-jug-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-jug .fx-jug-controls legend { padding: 0; margin-bottom: 12px; max-width: 100%; font-size: 16px; line-height: 1.4; font-weight: 800; color: var(--fx-ink); }
.fx-jug .fx-jug-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; color: var(--fx-ink); }
.fx-jug .fx-jug-assembly { display: grid; width: 100%; max-width: 280px; height: 400px; min-width: 0; justify-self: center; }
.fx-jug .fx-jug-choices { grid-area: 1 / 1; display: block; position: relative; z-index: 2; height: 400px; min-width: 0; padding: 0; margin: 0; pointer-events: none; }
.fx-jug .fx-jug-lines-title { position: absolute; top: 76px; right: 6px; width: 82px; font-size: 12px; line-height: 16px; text-align: center; }
.fx-jug .fx-jug-choices .fx-btn { position: absolute; right: 6px; box-sizing: border-box; width: 82px; height: 30px; min-height: 30px; min-width: 24px; margin: 0; padding: 2px 5px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--fx-ink); border-radius: 6px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 20px; white-space: nowrap; cursor: pointer; pointer-events: auto; }
.fx-jug .fx-jug-choices .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-jug .fx-jug-choices .fx-jug-three:has(input:checked) { background: var(--fx-mint); }
.fx-jug .fx-jug-choices .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-jug .fx-jug-choices .fx-jug-empty { top: 339px; }
.fx-jug .fx-jug-choices .fx-jug-quarter { top: 301px; }
.fx-jug .fx-jug-choices .fx-jug-nine { top: 263px; }
.fx-jug .fx-jug-choices .fx-jug-half { top: 230px; }
.fx-jug .fx-jug-choices .fx-jug-three { top: 195px; }
.fx-jug .fx-jug-choices .fx-jug-threequarter { top: 159px; }
.fx-jug .fx-jug-choices .fx-jug-full { top: 99px; }
.fx-jug .fx-jug-stage { grid-area: 1 / 1; position: relative; z-index: 1; box-sizing: border-box; width: 100%; height: 400px; min-width: 0; padding: 0; margin: 0; background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-jug .fx-jug-caption { position: absolute; top: 8px; left: 8px; right: 8px; margin: 0; font-size: 16px; line-height: 20px; }
.fx-jug .fx-jug-full-mark { position: absolute; top: 36px; left: 8px; margin: 0; font-size: 12px; line-height: 16px; }
.fx-jug .fx-jug-drawing { position: absolute; top: 74px; left: 0; width: 100%; height: 320px; fill: none; stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-jug .fx-jug-handle, .fx-jug .fx-jug-shell { fill: var(--fx-paper); }
.fx-jug .fx-jug-water { fill: var(--fx-sky); stroke: none; transform-box: fill-box; transform-origin: center bottom; transform: scaleY(var(--fx-level)); transition: transform 0.5s; }
.fx-jug .fx-jug-outline { fill: none; stroke-width: 3.5; }
.fx-jug .fx-jug-ticks { fill: none; stroke-width: 1.5; }
.fx-jug .fx-jug-readout { display: grid; gap: 12px; align-content: center; min-width: 0; }
.fx-jug .fx-jug-tags { display: grid; gap: 12px; margin: 0; min-width: 0; }
.fx-jug .fx-jug-tag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px 10px; min-width: 0; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); }
.fx-jug .fx-jug-tag dt { font-size: 14px; font-weight: 800; }
.fx-jug .fx-jug-tag dt small { display: block; font-size: 12px; font-weight: 400; }
.fx-jug .fx-jug-values { display: grid; margin: 0; min-width: 0; font-size: 26px; line-height: 1.2; text-align: right; }
.fx-jug .fx-jug-hint { margin: 0; font-size: 14px; }
.fx-jug .fx-jug-messages { display: grid; min-width: 0; }
.fx-jug .fx-jug-messages p { margin: 0; }
.fx-jug .fx-jug-state { grid-area: 1 / 1; visibility: hidden; }
.fx-jug:has(#fx-jug-empty:checked) .fx-jug-s0, .fx-jug:has(#fx-jug-quarter:checked) .fx-jug-s1, .fx-jug:has(#fx-jug-nine:checked) .fx-jug-s2, .fx-jug:has(#fx-jug-half:checked) .fx-jug-s3, .fx-jug:has(#fx-jug-three:checked) .fx-jug-s4, .fx-jug:has(#fx-jug-threequarter:checked) .fx-jug-s5, .fx-jug:has(#fx-jug-full:checked) .fx-jug-s6 { visibility: visible; }
.fx-jug:has(#fx-jug-three:checked) .fx-jug-tag { background: var(--fx-mint-pale); border-color: var(--fx-mint); box-shadow: 0 0 0 2px var(--fx-mint); }
@container (max-width: 480px) { .fx-jug .fx-jug-layout { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-jug .fx-jug-water { transition: none; } }