.fx-jug { --fx-level: 0; display: grid; gap: 16px; }
.fx-jug:has(#fx-jug-10:checked) { --fx-level: 10; }
.fx-jug:has(#fx-jug-20:checked) { --fx-level: 20; }
.fx-jug:has(#fx-jug-30:checked) { --fx-level: 30; }
.fx-jug:has(#fx-jug-40:checked) { --fx-level: 40; }
.fx-jug:has(#fx-jug-50:checked) { --fx-level: 50; }
.fx-jug:has(#fx-jug-60:checked) { --fx-level: 60; }
.fx-jug:has(#fx-jug-70:checked) { --fx-level: 70; }
.fx-jug:has(#fx-jug-80:checked) { --fx-level: 80; }
.fx-jug:has(#fx-jug-90:checked) { --fx-level: 90; }
.fx-jug:has(#fx-jug-100:checked) { --fx-level: 100; }
.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; }
.fx-jug .fx-jug-controls { margin: 0; padding: 0; border: 0; min-width: 0; }
.fx-jug .fx-jug-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-jug .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-jug .fx-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 36px; min-height: 36px; padding: 6px 10px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; cursor: pointer; }
.fx-jug .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); border-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-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-jug .fx-jug-scene { display: grid; grid-template-rows: 24px 340px 1fr; gap: 8px; box-sizing: border-box; width: 100%; max-width: 340px; min-width: 0; height: 480px; margin: 0; padding: 12px; justify-self: center; color: var(--fx-ink); }
.fx-jug .fx-jug-caption { text-align: center; font-weight: 800; font-size: 16px; line-height: 24px; }
.fx-jug .fx-jug-success { display: inline-block; width: 24px; visibility: hidden; }
.fx-jug .fx-jug-art { position: relative; height: 340px; min-width: 0; }
.fx-jug .fx-jug-art svg { display: block; width: 100%; height: 340px; }
.fx-jug .fx-jug-handle, .fx-jug .fx-jug-glass { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 3; stroke-linejoin: round; }
.fx-jug .fx-jug-water { fill: var(--fx-sky); y: calc(310px - var(--fx-level) * 2.6px); height: calc(var(--fx-level) * 2.6px); transition: y 0.35s, height 0.35s; }
.fx-jug .fx-jug-surface { fill: var(--fx-ink); y: calc(309px - var(--fx-level) * 2.6px); transition: y 0.35s; }
.fx-jug .fx-jug-outline { fill: none; stroke: var(--fx-ink); stroke-width: 3; stroke-linejoin: round; }
.fx-jug .fx-jug-unit { fill: var(--fx-ink); font-size: 14px; font-weight: 800; }
.fx-jug .fx-jug-mark { position: absolute; top: calc(297px - var(--fx-mark) * 2.6px); left: 55%; width: 20%; min-width: 36px; height: 26px; display: flex; align-items: center; gap: 4px; color: var(--fx-ink); font-size: 12px; font-weight: 800; cursor: pointer; }
.fx-jug .fx-jug-tickline { width: 10px; flex-shrink: 0; border-top: 2px solid var(--fx-ink); }
.fx-jug .fx-jug-hint { position: absolute; top: 271px; left: 2%; width: 51%; height: 26px; display: flex; align-items: center; justify-content: flex-end; box-sizing: border-box; padding-right: 3px; font-size: 12px; white-space: nowrap; background: var(--fx-sun-pale); color: var(--fx-ink); visibility: hidden; }
.fx-jug .fx-jug-key { align-self: center; text-align: center; }
.fx-jug .fx-jug-key p { margin: 0; font-size: 12px; line-height: 18px; }
.fx-jug .fx-jug-reading { display: grid; gap: 12px; min-width: 0; }
.fx-jug .fx-jug-says, .fx-jug .fx-jug-feedback { display: grid; min-width: 0; }
.fx-jug .fx-jug-says > p, .fx-jug .fx-jug-feedback > p { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); }
.fx-jug:has(#fx-jug-empty:checked) .fx-jug-surface { visibility: hidden; }
.fx-jug:has(#fx-jug-empty:checked) .fx-jug-hint, .fx-jug:has(#fx-jug-80:checked) .fx-jug-success { visibility: visible; }
.fx-jug:has(#fx-jug-80:checked) .fx-jug-outline { stroke: var(--fx-mint); stroke-width: 5; }
.fx-jug:has(#fx-jug-empty:checked) .fx-jug-s-empty, .fx-jug:has(#fx-jug-10:checked) .fx-jug-s-10, .fx-jug:has(#fx-jug-20:checked) .fx-jug-s-20, .fx-jug:has(#fx-jug-30:checked) .fx-jug-s-30, .fx-jug:has(#fx-jug-40:checked) .fx-jug-s-40, .fx-jug:has(#fx-jug-50:checked) .fx-jug-s-50, .fx-jug:has(#fx-jug-60:checked) .fx-jug-s-60, .fx-jug:has(#fx-jug-70:checked) .fx-jug-s-70, .fx-jug:has(#fx-jug-80:checked) .fx-jug-s-80, .fx-jug:has(#fx-jug-90:checked) .fx-jug-s-90, .fx-jug:has(#fx-jug-100:checked) .fx-jug-s-100 { visibility: visible; }
.fx-jug:has(#fx-jug-empty:checked) .fx-jug-f-empty, .fx-jug:has(#fx-jug-10:checked) .fx-jug-f-higher, .fx-jug:has(#fx-jug-20:checked) .fx-jug-f-higher, .fx-jug:has(#fx-jug-30:checked) .fx-jug-f-higher, .fx-jug:has(#fx-jug-40:checked) .fx-jug-f-higher, .fx-jug:has(#fx-jug-50:checked) .fx-jug-f-higher, .fx-jug:has(#fx-jug-60:checked) .fx-jug-f-higher, .fx-jug:has(#fx-jug-70:checked) .fx-jug-f-70, .fx-jug:has(#fx-jug-80:checked) .fx-jug-f-80, .fx-jug:has(#fx-jug-90:checked) .fx-jug-f-90, .fx-jug:has(#fx-jug-100:checked) .fx-jug-f-100 { visibility: visible; }
@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, .fx-jug .fx-jug-surface { transition: none; } }