.fx-jug { display: grid; --fx-factor: 1; --fx-lemon: 200; --fx-orange: 150; --fx-cranberry: 80; --fx-angle: -16deg; --fx-n: inherit; --fx-o: hidden; --fx-c: hidden; --fx-b: hidden; --fx-ou: inherit; --fx-os: hidden; --fx-cu: inherit; --fx-cs: hidden; --fx-mix: var(--fx-sun-pale); --fx-tick: inherit; }
.fx-jug:has(#fx-jug-l3:checked) { --fx-factor: 3; --fx-lemon: 600; --fx-angle: -12deg; }
.fx-jug:has(#fx-jug-l5:checked) { --fx-factor: 5; --fx-lemon: 1000; --fx-angle: -8deg; }
.fx-jug:has(#fx-jug-lh:checked) { --fx-factor: 5.5; --fx-lemon: 1100; --fx-angle: -5deg; }
.fx-jug:has(#fx-jug-o:checked) { --fx-orange: calc(150 * var(--fx-factor)); --fx-n: hidden; --fx-o: inherit; --fx-ou: hidden; --fx-os: inherit; --fx-mix: var(--fx-sun); }
.fx-jug:has(#fx-jug-c:checked) { --fx-cranberry: calc(80 * var(--fx-factor)); --fx-n: hidden; --fx-o: hidden; --fx-c: inherit; --fx-cu: hidden; --fx-cs: inherit; --fx-mix: var(--fx-coral); }
.fx-jug:has(#fx-jug-o:checked):has(#fx-jug-c:checked) { --fx-o: hidden; --fx-c: hidden; --fx-b: inherit; --fx-mix: var(--fx-coral-pale); }
.fx-jug:has(#fx-jug-l1:checked) { --fx-n: hidden; --fx-o: hidden; --fx-c: hidden; --fx-b: inherit; --fx-mix: var(--fx-coral-pale); --fx-tick: hidden; }
.fx-jug .fx-jug-wrap { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-jug .fx-jug-wrap p { margin: 0; }
.fx-jug .fx-jug-wrap small { font-size: 12px; }
.fx-jug .fx-jug-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fx-jug .fx-jug-controls { border: 0; margin: 0; padding: 0; min-width: 0; }
.fx-jug .fx-jug-controls legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-jug .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-jug .fx-btn { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 10px 12px; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-ink); border-radius: 8px; cursor: pointer; }
.fx-jug .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint-pale); }
.fx-jug .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-jug .fx-jug-controls .fx-jug-hint { margin-top: 8px; font-size: 14px; font-weight: 700; }
.fx-jug .fx-jug-scene { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; height: 540px; padding: 12px; }
.fx-jug .fx-jug-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-jug .fx-jug-card > * { flex-shrink: 0; }
.fx-jug .fx-jug-swatch { box-sizing: border-box; display: grid; place-items: center; height: 32px; border: 2px solid var(--fx-ink); border-radius: 6px; font-size: 14px; font-weight: 700; color: var(--fx-ink); }
.fx-jug .fx-jug-original-swatch { background: var(--fx-coral-pale); }
.fx-jug .fx-jug-mixed { background: var(--fx-mix); }
.fx-jug .fx-jug-stack, .fx-jug .fx-jug-layer { display: grid; min-width: 0; }
.fx-jug .fx-jug-stack > *, .fx-jug .fx-jug-layer > * { grid-area: 1 / 1; margin: 0; }
.fx-jug .fx-jug-f1, .fx-jug .fx-jug-f3, .fx-jug .fx-jug-f5, .fx-jug .fx-jug-fh { visibility: hidden; }
.fx-jug:has(#fx-jug-l1:checked) .fx-jug-f1, .fx-jug:has(#fx-jug-l3:checked) .fx-jug-f3, .fx-jug:has(#fx-jug-l5:checked) .fx-jug-f5, .fx-jug:has(#fx-jug-lh:checked) .fx-jug-fh { visibility: visible; }
.fx-jug .fx-jug-n { visibility: var(--fx-n); }
.fx-jug .fx-jug-o { visibility: var(--fx-o); }
.fx-jug .fx-jug-c { visibility: var(--fx-c); }
.fx-jug .fx-jug-b { visibility: var(--fx-b); }
.fx-jug .fx-jug-ou { visibility: var(--fx-ou); }
.fx-jug .fx-jug-os { visibility: var(--fx-os); }
.fx-jug .fx-jug-cu { visibility: var(--fx-cu); }
.fx-jug .fx-jug-cs { visibility: var(--fx-cs); }
.fx-jug .fx-jug-tick { visibility: var(--fx-tick); color: var(--fx-ink); background: var(--fx-mint); }
.fx-jug .fx-jug-status { font-size: 14px; line-height: 1.4; }
.fx-jug .fx-jug-view { display: flex; align-items: safe flex-end; justify-content: center; height: 236px; padding-bottom: 6px; box-sizing: border-box; perspective: 650px; }
.fx-jug .fx-jug-vessel { position: relative; width: 110px; height: 224px; transform-style: preserve-3d; transform: rotateX(-8deg) rotateY(var(--fx-angle)); transition: transform 0.5s; }
.fx-jug .fx-jug-band { position: absolute; left: 0; width: 100%; background: var(--fx-fill); transform: translateZ(8px); transform-style: preserve-3d; transition: height 0.5s, bottom 0.5s; }
.fx-jug .fx-jug-band::after { content: ""; position: absolute; left: 100%; top: 0; width: 12px; height: 100%; background: var(--fx-fill); border: 1px solid var(--fx-ink); box-sizing: border-box; transform-origin: left center; transform: rotateY(90deg); }
.fx-jug .fx-jug-band::before { content: ""; position: absolute; top: -4px; left: 0; box-sizing: border-box; width: 100%; height: 8px; border: 1px solid var(--fx-ink); border-radius: 50%; background: var(--fx-fill); }
.fx-jug .fx-jug-lemon { --fx-fill: var(--fx-sun-pale); }
.fx-jug .fx-jug-orange { --fx-fill: var(--fx-sun); }
.fx-jug .fx-jug-cranberry { --fx-fill: var(--fx-coral); }
.fx-jug .fx-jug-vessel .fx-jug-lemon { bottom: 0; height: calc(var(--fx-lemon) * 0.088px); }
.fx-jug .fx-jug-vessel .fx-jug-orange { bottom: calc(var(--fx-lemon) * 0.088px); height: calc(var(--fx-orange) * 0.088px); }
.fx-jug .fx-jug-vessel .fx-jug-cranberry { bottom: calc((var(--fx-lemon) + var(--fx-orange)) * 0.088px); height: calc(var(--fx-cranberry) * 0.088px); }
.fx-jug .fx-jug-frame { position: absolute; inset: 0; border: 3px solid var(--fx-ink); border-top: 0; border-radius: 0 0 10px 10px; transform: translateZ(10px); }
.fx-jug .fx-jug-frame::after { content: ""; position: absolute; right: -25px; top: 30px; width: 20px; height: 76px; border: 3px solid var(--fx-ink); border-left: 0; border-radius: 0 16px 16px 0; }
.fx-jug .fx-jug-glass { position: relative; box-sizing: border-box; width: 76px; height: 96px; border: 3px solid var(--fx-ink); border-radius: 0 0 12px 12px; background: var(--fx-coral-pale); transform: rotateX(-8deg) rotateY(-16deg) translateZ(4px); }
.fx-jug .fx-jug-stripe { position: absolute; top: 0; right: 4px; bottom: 0; width: 16px; display: flex; flex-direction: column-reverse; }
.fx-jug .fx-jug-stripe > div { background: var(--fx-fill); }
.fx-jug .fx-jug-stripe .fx-jug-lemon { height: 46.51%; }
.fx-jug .fx-jug-stripe .fx-jug-orange { height: 34.88%; }
.fx-jug .fx-jug-stripe .fx-jug-cranberry { height: 18.61%; }
.fx-jug .fx-jug-legend { display: grid; gap: 2px; font-size: 12px; line-height: 1.5; }
.fx-jug .fx-jug-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; }
.fx-jug .fx-jug-name::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 1px solid var(--fx-ink); background: var(--fx-fill); }
.fx-jug .fx-jug-tag { font-size: 12px; padding: 8px; }
.fx-jug .fx-jug-tag > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.fx-jug .fx-jug-messages p { box-sizing: border-box; }
@container (max-width: 480px) { .fx-jug .fx-jug-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 300px 520px; height: 860px; } .fx-jug .fx-jug-original-view { height: 100px; } }
@media (prefers-reduced-motion: reduce) { .fx-jug .fx-jug-vessel, .fx-jug .fx-jug-band { transition: none; } }