.fx-jug { --fx-jug-level: 0; display: grid; gap: 16px; }
.fx-jug:has(#fx-jug-n1:checked) { --fx-jug-level: 1; }
.fx-jug:has(#fx-jug-n2:checked) { --fx-jug-level: 2; }
.fx-jug:has(#fx-jug-n3:checked) { --fx-jug-level: 3; }
.fx-jug:has(#fx-jug-n4:checked) { --fx-jug-level: 4; }
.fx-jug:has(#fx-jug-n5:checked) { --fx-jug-level: 5; }
.fx-jug:has(#fx-jug-n6:checked) { --fx-jug-level: 6; }
.fx-jug:has(#fx-jug-n7:checked) { --fx-jug-level: 7; }
.fx-jug:has(#fx-jug-n8:checked) { --fx-jug-level: 8; }
.fx-jug:has(#fx-jug-n9:checked) { --fx-jug-level: 9; }
.fx-jug:has(#fx-jug-n10:checked) { --fx-jug-level: 10; }
.fx-jug .fx-note ol { margin: 0; padding-left: 24px; }
.fx-jug .fx-jug-goal { margin: 0; color: var(--fx-ink); }
.fx-jug .fx-jug-field { min-width: 0; padding: 0; margin: 0; border: 0; }
.fx-jug .fx-jug-field legend { padding: 0; font-weight: 800; }
.fx-jug .fx-jug-scale-caption { margin: 10px 0; }
.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 { position: relative; height: 420px; min-width: 0; padding: 0; box-sizing: border-box; color: var(--fx-ink); }
.fx-jug .fx-jug-caption { position: absolute; top: 10px; left: 8px; right: 8px; margin: 0; text-align: center; font-size: 14px; }
.fx-jug .fx-jug-lines { position: absolute; top: 45px; right: 8px; width: 68px; height: 330px; display: flex; flex-direction: column-reverse; flex-wrap: nowrap; gap: 0; z-index: 3; }
.fx-jug .fx-jug-choice { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 4px; box-sizing: border-box; flex: 0 0 30px; width: 68px; min-height: 30px; margin: 0; padding: 2px 6px; border: 1px solid var(--fx-muted); border-radius: 4px; font-size: 14px; line-height: 20px; color: var(--fx-ink); background: var(--fx-paper); cursor: pointer; }
.fx-jug .fx-jug-choice::before { content: ""; width: 14px; border-top: 2px solid var(--fx-ink); margin-right: auto; }
.fx-jug .fx-jug-choice:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun); border-color: var(--fx-ink); font-weight: 800; }
.fx-jug .fx-jug-choice:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 2px; z-index: 4; }
.fx-jug .fx-jug-perspective { position: absolute; left: 20px; top: 60px; width: 100px; height: 300px; perspective: 700px; }
.fx-jug .fx-jug-vessel { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(-18deg); transition: transform 0.5s; }
.fx-jug .fx-jug-front { position: absolute; inset: 0; border: 2px solid var(--fx-ink); box-sizing: border-box; transform: translateZ(1px); }
.fx-jug .fx-jug-front svg { width: 100%; height: 100%; overflow: visible; }
.fx-jug .fx-jug-front path { fill: none; stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-jug .fx-jug-glass-side { position: absolute; left: 100%; top: 0; width: 28px; height: 100%; box-sizing: border-box; border: 2px solid var(--fx-ink); background: var(--fx-sky-pale); transform-origin: left center; transform: rotateY(90deg); }
.fx-jug .fx-jug-liquid { position: absolute; bottom: 0; left: 0; width: 100%; height: calc(var(--fx-jug-level) * 30px); transform-style: preserve-3d; transition: height 0.5s; }
.fx-jug .fx-jug-water-front { position: absolute; inset: 0; background: var(--fx-sky); }
.fx-jug .fx-jug-water-side { position: absolute; top: 0; left: 100%; width: 28px; height: 100%; background: var(--fx-sky); border-right: 1px solid var(--fx-ink); box-sizing: border-box; transform-origin: left center; transform: rotateY(90deg); }
.fx-jug .fx-jug-water-top { position: absolute; top: 0; left: 0; width: 100%; height: 28px; background: var(--fx-sky-pale); border: 1px solid var(--fx-ink); box-sizing: border-box; transform-origin: center top; transform: rotateX(-90deg); }
.fx-jug:has(#fx-jug-n0:checked) .fx-jug-liquid { visibility: hidden; }
.fx-jug .fx-jug-hint { position: absolute; right: 82px; top: 318px; z-index: 4; padding: 2px 4px; font-size: 12px; line-height: 20px; background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-jug .fx-jug-water-label { position: absolute; left: 20px; top: 375px; margin: 0; font-size: 14px; font-weight: 700; }
.fx-jug .fx-jug-tags { position: absolute; right: 8px; top: 380px; display: grid; font-size: 14px; }
.fx-jug .fx-jug-tag { grid-area: 1 / 1; visibility: hidden; padding: 2px 6px; border-radius: 4px; background: var(--fx-mint-pale); color: var(--fx-ink); font-weight: 800; }
.fx-jug .fx-jug-reading { min-width: 0; color: var(--fx-ink); }
.fx-jug .fx-jug-reading .fx-score { margin: 0 0 12px; }
.fx-jug .fx-jug-messages { display: grid; }
.fx-jug .fx-jug-message { grid-area: 1 / 1; visibility: hidden; margin: 0; align-self: stretch; overflow-wrap: break-word; }
.fx-jug:has(#fx-jug-n0:checked) .fx-jug-m0, .fx-jug:has(#fx-jug-n1:checked) .fx-jug-m1, .fx-jug:has(#fx-jug-n2:checked) .fx-jug-m2, .fx-jug:has(#fx-jug-n3:checked) .fx-jug-m3, .fx-jug:has(#fx-jug-n4:checked) .fx-jug-m4, .fx-jug:has(#fx-jug-n5:checked) .fx-jug-m5, .fx-jug:has(#fx-jug-n6:checked) .fx-jug-m6, .fx-jug:has(#fx-jug-n7:checked) .fx-jug-m7, .fx-jug:has(#fx-jug-n8:checked) .fx-jug-m8, .fx-jug:has(#fx-jug-n9:checked) .fx-jug-m9, .fx-jug:has(#fx-jug-n10:checked) .fx-jug-m10, .fx-jug:has(#fx-jug-n5:checked) .fx-jug-half, .fx-jug:has(#fx-jug-n10:checked) .fx-jug-whole { 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-liquid, .fx-jug .fx-jug-vessel { transition: none; } }