.fx-pour { display: grid; gap: 16px; }
.fx-pour .fx-note ol { margin: 0; padding-left: 24px; }
.fx-pour .fx-pour-goal { margin: 0; }
.fx-pour .fx-pour-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-pour .fx-pour-controls legend { font-weight: 800; padding: 0; }
.fx-pour .fx-pour-help { margin: 8px 0; font-size: 14px; }
.fx-pour .fx-pour-start { margin: 8px 0; font-weight: 700; }
.fx-pour:has(#fx-pour-p1:checked) .fx-pour-start { visibility: hidden; }
.fx-pour .fx-pour-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-right: 8px; }
.fx-pour .fx-pour-choice { position: relative; display: grid; min-width: 0; min-height: 48px; padding: 8px 6px; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 4px 4px 12px 12px; background: var(--fx-sky-pale); color: var(--fx-ink); text-align: center; font-size: 14px; visibility: hidden; cursor: pointer; }
.fx-pour .fx-pour-choice::after { content: ""; position: absolute; right: -8px; top: 8px; width: 8px; height: 18px; border: 2px solid var(--fx-ink); border-left: 0; border-radius: 0 8px 8px 0; }
.fx-pour .fx-pour-choice span { grid-area: 1 / 1; align-self: center; }
.fx-pour .fx-pour-undo { visibility: hidden; }
.fx-pour .fx-pour-choice:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-pour .fx-pour-choice:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-pour:not(:has(#fx-pour-p2:checked)) .fx-pour-c1,
.fx-pour:has(#fx-pour-p1:checked):not(:has(#fx-pour-p3:checked)) .fx-pour-c2,
.fx-pour:has(#fx-pour-p2:checked):not(:has(#fx-pour-p4:checked)) .fx-pour-c3,
.fx-pour:has(#fx-pour-p3:checked):not(:has(#fx-pour-p5:checked)) .fx-pour-c4,
.fx-pour:has(#fx-pour-p4:checked):not(:has(#fx-pour-p6:checked)) .fx-pour-c5,
.fx-pour:has(#fx-pour-p5:checked):not(:has(#fx-pour-p7:checked)) .fx-pour-c6,
.fx-pour:has(#fx-pour-p6:checked):not(:has(#fx-pour-p8:checked)) .fx-pour-c7,
.fx-pour:has(#fx-pour-p7:checked) .fx-pour-c8 { visibility: visible; }
.fx-pour .fx-pour-choice:has(input:checked) .fx-pour-add { visibility: hidden; }
.fx-pour .fx-pour-choice:has(input:checked) .fx-pour-undo { visibility: inherit; }
.fx-pour .fx-pour-scene { height: 390px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px 12px; color: var(--fx-ink); }
.fx-pour .fx-pour-jug-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-width: 0; }
.fx-pour .fx-pour-perspective { perspective: 600px; width: 140px; height: 140px; display: grid; place-items: center; }
.fx-pour .fx-pour-jug { position: relative; width: 88px; height: 104px; border: 3px solid var(--fx-ink); border-radius: 4px 4px 20px 20px; background: var(--fx-paper); transform-style: preserve-3d; transform: rotateY(-12deg) rotateZ(0deg); transition: transform 0.6s; }
.fx-pour .fx-pour-jug::after { content: ""; position: absolute; right: -25px; top: 14px; width: 20px; height: 46px; border: 4px solid var(--fx-ink); border-left: 0; border-radius: 0 16px 16px 0; transform: translateZ(-2px); }
.fx-pour .fx-pour-jug-water { position: absolute; inset: 18px 3px 3px; border-radius: 0 0 15px 15px; background: var(--fx-sky); transition: transform 0.6s; transform-origin: bottom; }
.fx-pour .fx-pour-jug span { position: absolute; left: 4px; right: 4px; top: 40px; background: var(--fx-paper); font-size: 14px; font-weight: 700; transform: translateZ(2px); }
.fx-pour:has(#fx-pour-p1:checked) .fx-pour-jug { transform: rotateY(-12deg) rotateZ(28deg); }
.fx-pour:has(#fx-pour-p1:checked) .fx-pour-jug-water { transform: scaleY(0); }
.fx-pour .fx-pour-bucket-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; text-align: center; perspective: 700px; }
.fx-pour .fx-pour-full { font-weight: 700; font-size: 14px; }
.fx-pour .fx-pour-vessel { position: relative; width: 180px; height: 240px; margin: 4px 0 8px; transform-style: preserve-3d; }
.fx-pour .fx-pour-bucket { position: absolute; left: 0; top: 0; width: 128px; height: 240px; box-sizing: content-box; border: 3px solid var(--fx-ink); border-top: 3px dashed var(--fx-ink); border-radius: 0 0 18px 18px; background: var(--fx-sky-pale); transform-style: preserve-3d; transition: box-shadow 0.5s; }
.fx-pour .fx-pour-bucket::after { content: ""; position: absolute; inset: -3px -3px -3px 110px; border: 2px solid var(--fx-ink); border-radius: 0 0 16px 0; background: var(--fx-sky); transform-origin: right; transform: rotateY(55deg) translateZ(-1px); }
.fx-pour .fx-pour-layer { position: absolute; left: 0; right: 0; bottom: calc(var(--fx-layer) * 12.5%); height: 12.5%; box-sizing: border-box; border-top: 1px solid var(--fx-ink); background: var(--fx-sky); opacity: 0; transform: translate3d(-20px, -40px, 24px) scale(0); transform-style: preserve-3d; transition: transform 0.6s, opacity 0.4s; }
.fx-pour .fx-pour-layer:nth-child(even) { background: var(--fx-sky-pale); }
.fx-pour .fx-pour-layer span { display: block; font-size: 14px; line-height: 28px; font-weight: 700; }
.fx-pour .fx-pour-scale { position: absolute; left: 140px; top: 3px; height: 240px; width: 36px; }
.fx-pour .fx-pour-scale span { position: absolute; bottom: calc(var(--fx-mark) * 20px); left: 0; transform: translateY(50%); font-size: 14px; border-left: 8px solid var(--fx-ink); padding-left: 4px; line-height: 16px; }
.fx-pour .fx-pour-scene small { font-size: 12px; }
.fx-pour:has(#fx-pour-p1:checked) .fx-pour-l1, .fx-pour:has(#fx-pour-p2:checked) .fx-pour-l2, .fx-pour:has(#fx-pour-p3:checked) .fx-pour-l3, .fx-pour:has(#fx-pour-p4:checked) .fx-pour-l4, .fx-pour:has(#fx-pour-p5:checked) .fx-pour-l5, .fx-pour:has(#fx-pour-p6:checked) .fx-pour-l6, .fx-pour:has(#fx-pour-p7:checked) .fx-pour-l7, .fx-pour:has(#fx-pour-p8:checked) .fx-pour-l8 { opacity: 1; transform: translate3d(0, 0, 3px) scale(1); }
.fx-pour:has(#fx-pour-p8:checked) .fx-pour-bucket { box-shadow: 0 0 0 7px var(--fx-mint); }
.fx-pour .fx-pour-messages { display: grid; }
.fx-pour .fx-pour-message { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); }
.fx-pour .fx-pour-message p { margin: 0 0 10px; }
.fx-pour .fx-pour-message p:last-child { margin-bottom: 0; }
.fx-pour:not(:has(#fx-pour-p1:checked)) .fx-pour-m0, .fx-pour:has(#fx-pour-p1:checked):not(:has(#fx-pour-p2:checked)) .fx-pour-m1, .fx-pour:has(#fx-pour-p2:checked):not(:has(#fx-pour-p3:checked)) .fx-pour-m2, .fx-pour:has(#fx-pour-p3:checked):not(:has(#fx-pour-p4:checked)) .fx-pour-m3, .fx-pour:has(#fx-pour-p4:checked):not(:has(#fx-pour-p5:checked)) .fx-pour-m4, .fx-pour:has(#fx-pour-p5:checked):not(:has(#fx-pour-p6:checked)) .fx-pour-m5, .fx-pour:has(#fx-pour-p6:checked):not(:has(#fx-pour-p7:checked)) .fx-pour-m6, .fx-pour:has(#fx-pour-p7:checked):not(:has(#fx-pour-p8:checked)) .fx-pour-m7, .fx-pour:has(#fx-pour-p8:checked) .fx-pour-m8 { visibility: visible; }
@container (max-width: 480px) { .fx-pour .fx-pour-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-pour .fx-pour-scene { grid-template-columns: minmax(0, 1fr); height: 610px; grid-template-rows: 210px 350px; } }
@media (prefers-reduced-motion: reduce) { .fx-pour .fx-pour-jug, .fx-pour .fx-pour-jug-water, .fx-pour .fx-pour-layer, .fx-pour .fx-pour-bucket { transition: none; } }