.fx-pour { --fx-level: 1; --fx-s0: visible; --fx-s1: hidden; --fx-s2: hidden; --fx-s3: hidden; --fx-s4: hidden; --fx-s5: hidden; --fx-s6: hidden; display: grid; gap: 16px; }
.fx-pour:has(#fx-pour-g1:checked) { --fx-level: 0.85; --fx-s0: hidden; --fx-s1: visible; }
.fx-pour:has(#fx-pour-g2:checked) { --fx-level: 0.7; --fx-s1: hidden; --fx-s2: visible; }
.fx-pour:has(#fx-pour-g3:checked) { --fx-level: 0.55; --fx-s2: hidden; --fx-s3: visible; }
.fx-pour:has(#fx-pour-g4:checked) { --fx-level: 0.4; --fx-s3: hidden; --fx-s4: visible; }
.fx-pour:has(#fx-pour-g5:checked) { --fx-level: 0.25; --fx-s4: hidden; --fx-s5: visible; }
.fx-pour:has(#fx-pour-g6:checked) { --fx-level: 0.1; --fx-s5: hidden; --fx-s6: visible; }
.fx-pour .fx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fx-pour .fx-goal { margin: 0; }
.fx-pour .fx-controls-wrap { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-pour .fx-controls-wrap legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.fx-pour .fx-help { font-size: 14px; margin: 0 0 12px; }
.fx-pour .fx-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-pour .fx-controls .fx-btn { --fx-access: hidden; --fx-pointer: none; --fx-line: dashed; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; margin: 0; padding: 10px 4px; border: 2px var(--fx-line) var(--fx-muted); border-radius: 10px; background: var(--fx-sky-pale); color: var(--fx-ink); font-size: 14px; pointer-events: var(--fx-pointer); }
.fx-pour .fx-controls .fx-vh { visibility: var(--fx-access); }
.fx-pour .fx-controls .fx-btn:has(input:checked) { background: var(--fx-sky); color: var(--fx-ink); }
.fx-pour .fx-controls .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-pour .fx-controls .fx-pick1, .fx-pour:has(#fx-pour-g1:checked) .fx-controls .fx-pick2, .fx-pour:has(#fx-pour-g2:checked) .fx-controls .fx-pick3, .fx-pour:has(#fx-pour-g3:checked) .fx-controls .fx-pick4, .fx-pour:has(#fx-pour-g4:checked) .fx-controls .fx-pick5, .fx-pour:has(#fx-pour-g5:checked) .fx-controls .fx-pick6 { --fx-access: visible; --fx-pointer: auto; --fx-line: solid; }
.fx-pour:has(#fx-pour-g2:checked) .fx-controls .fx-pick1, .fx-pour:has(#fx-pour-g3:checked) .fx-controls .fx-pick2, .fx-pour:has(#fx-pour-g4:checked) .fx-controls .fx-pick3, .fx-pour:has(#fx-pour-g5:checked) .fx-controls .fx-pick4, .fx-pour:has(#fx-pour-g6:checked) .fx-controls .fx-pick5 { --fx-access: hidden; --fx-pointer: none; --fx-line: dashed; }
.fx-pour .fx-scene { position: relative; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); align-items: center; gap: 16px; height: 370px; padding: 12px; color: var(--fx-ink); }
.fx-pour .fx-bottle-panel { display: grid; gap: 8px; min-width: 0; }
.fx-pour .fx-part { margin: 0; font-size: 14px; }
.fx-pour .fx-bottle-drawing { position: relative; padding-top: 12px; }
.fx-pour .fx-cap { position: absolute; top: 0; left: 18px; width: 32px; height: 12px; box-sizing: border-box; border: 2px solid var(--fx-ink); background: var(--fx-mint); }
.fx-pour .fx-bottle-frame { position: relative; box-sizing: content-box; width: 64px; height: 240px; border: 2px solid var(--fx-ink); border-radius: 10px 10px 5px 5px; overflow: hidden; background: var(--fx-paper); }
.fx-pour .fx-bottle-water, .fx-pour .fx-fill { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: var(--fx-sky); transform-origin: center bottom; transition: transform 0.6s; }
.fx-pour .fx-bottle-water { transform: scaleY(var(--fx-level)); }
.fx-pour .fx-mark { position: absolute; bottom: 32px; left: -6px; width: 82px; border-top: 2px dashed var(--fx-coral); }
.fx-pour .fx-threshold { position: absolute; left: 90px; bottom: 30px; width: 100px; font-size: 12px; line-height: 1.4; }
.fx-pour .fx-cross { position: absolute; left: 74px; bottom: 20px; visibility: hidden; color: var(--fx-coral); font-size: 24px; font-weight: 800; }
.fx-pour:has(#fx-pour-g6:checked) .fx-cross { visibility: visible; }
.fx-pour .fx-glasses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; align-self: end; padding-bottom: 12px; min-width: 0; }
.fx-pour .fx-glass { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.fx-pour .fx-glass-number { font-size: 14px; }
.fx-pour .fx-cup { position: relative; box-sizing: content-box; width: calc(100% - 8px); max-width: 64px; height: 36px; border: 2px solid var(--fx-ink); border-top: 0; border-radius: 0 0 5px 5px; overflow: hidden; background: var(--fx-paper); transform-origin: center bottom; }
.fx-pour .fx-capacity { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.fx-pour .fx-fill { transform: scaleY(0); }
.fx-pour:has(#fx-pour-g1:checked) .fx-glass1 .fx-fill, .fx-pour:has(#fx-pour-g2:checked) .fx-glass2 .fx-fill, .fx-pour:has(#fx-pour-g3:checked) .fx-glass3 .fx-fill, .fx-pour:has(#fx-pour-g4:checked) .fx-glass4 .fx-fill, .fx-pour:has(#fx-pour-g5:checked) .fx-glass5 .fx-fill, .fx-pour:has(#fx-pour-g6:checked) .fx-glass6 .fx-fill { transform: scaleY(1); }
.fx-pour .fx-glass1 .fx-cup { animation: fx-pour-pulse 1.4s ease-in-out 3; }
.fx-pour:has(#fx-pour-g1:checked) .fx-glass1 .fx-cup { animation: none; }
.fx-pour .fx-says { display: grid; }
.fx-pour .fx-state { grid-area: 1 / 1; display: grid; align-content: start; gap: 8px; visibility: hidden; margin: 0; padding: 14px; border: 2px solid var(--fx-ink); border-radius: 12px; color: var(--fx-ink); }
.fx-pour .fx-state p { margin: 0; }
.fx-pour .fx-state .fx-score { font-size: 20px; line-height: 1.3; }
.fx-pour .fx-total { font-size: 14px; }
.fx-pour .fx-sentence { font-size: 16px; line-height: 1.5; }
.fx-pour .fx-s0 { visibility: var(--fx-s0); }
.fx-pour .fx-s1 { visibility: var(--fx-s1); }
.fx-pour .fx-s2 { visibility: var(--fx-s2); }
.fx-pour .fx-s3 { visibility: var(--fx-s3); }
.fx-pour .fx-s4 { visibility: var(--fx-s4); }
.fx-pour .fx-s5 { visibility: var(--fx-s5); }
.fx-pour .fx-s6 { visibility: var(--fx-s6); }
@container (max-width: 480px) { .fx-pour .fx-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-pour .fx-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 340px minmax(0, 1fr); height: 640px; } .fx-pour .fx-bottle-panel { width: 100%; max-width: 240px; justify-self: center; } .fx-pour .fx-glasses { grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: stretch; align-items: center; gap: 16px 8px; padding-bottom: 0; } }
@keyframes fx-pour-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .fx-pour .fx-bottle-water, .fx-pour .fx-fill { transition: none; } .fx-pour .fx-glass1 .fx-cup { animation: none; } }