.fx-pour { display: grid; }
.fx-pour .fx-body { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-pour .fx-body, .fx-pour .fx-body * { box-sizing: border-box; }
.fx-pour .fx-body p { margin: 0; }
.fx-pour .fx-note ol { margin: 0; padding-left: 24px; }
.fx-pour .fx-note li + li { margin-top: 6px; }
.fx-pour .fx-hint { font-size: 14px; }
.fx-pour .fx-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-pour fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-pour legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-pour .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-pour .fx-btn { display: flex; align-items: center; flex: 1 1 150px; min-height: 44px; padding: 10px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); cursor: pointer; }
.fx-pour .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-pour .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-pour .fx-stack { display: grid; min-width: 0; }
.fx-pour .fx-stack > * { grid-area: 1 / 1; visibility: hidden; }
.fx-pour .fx-scene { position: relative; isolation: isolate; overflow: hidden; height: 450px; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.fx-pour .fx-table-wrap { position: absolute; top: 48px; right: 12px; bottom: 52px; left: 12px; perspective: 800px; }
.fx-pour .fx-table { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(12deg); transition: transform 0.45s; }
.fx-pour .fx-surface { position: absolute; inset: 0; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-sun-pale); transform: translateZ(8px); }
.fx-pour .fx-edge { position: absolute; bottom: 0; left: 0; right: 0; height: 12px; background: var(--fx-sun); border: 2px solid var(--fx-ink); transform-origin: bottom; transform: rotateX(-90deg) translateZ(0px); }
.fx-pour .fx-pair { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-pour .fx-place { --fx-w: 64px; --fx-h: 112px; --fx-turn: -14deg; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 4px; text-align: center; border-radius: 12px; transition: background 0.3s; }
.fx-pour .fx-side-label { display: flex; align-items: center; align-self: center; height: 24px; font-size: 14px; }
.fx-pour .fx-view { display: flex; align-items: flex-end; justify-content: center; height: 190px; padding-bottom: 8px; perspective: 600px; }
.fx-pour .fx-vessel { display: block; position: relative; width: var(--fx-w); height: var(--fx-h); transform-style: preserve-3d; transform: rotateY(var(--fx-turn)) translateZ(8px); transition: width 0.45s, height 0.45s, transform 0.45s; }
.fx-pour .fx-vessel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(8px); }
.fx-pour .fx-water { fill: var(--fx-sky-pale); animation: fx-pour-fill 1.2s ease-out both; }
.fx-pour .fx-depth { fill: var(--fx-sky); }
.fx-pour .fx-outline { fill: none; stroke: var(--fx-ink); stroke-width: 2.5; stroke-linejoin: round; }
.fx-pour .fx-glint { fill: none; stroke: var(--fx-paper); stroke-width: 4; stroke-linecap: round; }
.fx-pour .fx-name { align-items: center; height: 46px; font-size: 14px; line-height: 1.3; }
.fx-pour .fx-cups { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; width: 104px; height: 52px; align-self: center; }
.fx-pour .fx-cup { position: relative; width: 18px; height: 20px; background: var(--fx-sky); border: 2px solid var(--fx-ink); border-radius: 0 0 5px 5px; }
.fx-pour .fx-cup::after { content: ""; position: absolute; top: 2px; right: -7px; width: 6px; height: 9px; border: 2px solid var(--fx-ink); border-left: 0; border-radius: 0 4px 4px 0; }
.fx-pour .fx-score { align-items: center; height: 32px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.fx-pour .fx-cup-label { position: relative; z-index: 1; text-align: center; font-size: 14px; }
.fx-pour:has(#fx-pour-lc:checked) .fx-side-l, .fx-pour:has(#fx-pour-rc:checked) .fx-side-r { --fx-w: 82px; --fx-h: 144px; --fx-turn: -8deg; }
.fx-pour:has(#fx-pour-lb:checked) .fx-side-l, .fx-pour:has(#fx-pour-rb:checked) .fx-side-r { --fx-w: 112px; --fx-h: 178px; --fx-turn: -4deg; }
.fx-pour:has(#fx-pour-la:checked) .fx-side-l .fx-a, .fx-pour:has(#fx-pour-lc:checked) .fx-side-l .fx-c, .fx-pour:has(#fx-pour-lb:checked) .fx-side-l .fx-b, .fx-pour:has(#fx-pour-ra:checked) .fx-side-r .fx-a, .fx-pour:has(#fx-pour-rc:checked) .fx-side-r .fx-c, .fx-pour:has(#fx-pour-rb:checked) .fx-side-r .fx-b { visibility: visible; }
.fx-pour:has(#fx-pour-la:checked) .fx-side-l .fx-cup:nth-child(n + 3), .fx-pour:has(#fx-pour-ra:checked) .fx-side-r .fx-cup:nth-child(n + 3), .fx-pour:has(#fx-pour-lc:checked) .fx-side-l .fx-cup:nth-child(n + 5), .fx-pour:has(#fx-pour-rc:checked) .fx-side-r .fx-cup:nth-child(n + 5) { visibility: hidden; }
.fx-pour:has(#fx-pour-lc:checked):has(#fx-pour-ra:checked) .fx-side-l, .fx-pour:has(#fx-pour-lb:checked):has(#fx-pour-ra:checked) .fx-side-l, .fx-pour:has(#fx-pour-lb:checked):has(#fx-pour-rc:checked) .fx-side-l, .fx-pour:has(#fx-pour-la:checked):has(#fx-pour-rc:checked) .fx-side-r, .fx-pour:has(#fx-pour-la:checked):has(#fx-pour-rb:checked) .fx-side-r, .fx-pour:has(#fx-pour-lc:checked):has(#fx-pour-rb:checked) .fx-side-r { background: var(--fx-mint-pale); box-shadow: inset 0 0 0 3px var(--fx-mint); }
.fx-pour:has(#fx-pour-la:checked):has(#fx-pour-ra:checked) .fx-aa, .fx-pour:has(#fx-pour-la:checked):has(#fx-pour-rc:checked) .fx-ac, .fx-pour:has(#fx-pour-la:checked):has(#fx-pour-rb:checked) .fx-ab, .fx-pour:has(#fx-pour-lc:checked):has(#fx-pour-ra:checked) .fx-ca, .fx-pour:has(#fx-pour-lc:checked):has(#fx-pour-rc:checked) .fx-cc, .fx-pour:has(#fx-pour-lc:checked):has(#fx-pour-rb:checked) .fx-cb, .fx-pour:has(#fx-pour-lb:checked):has(#fx-pour-ra:checked) .fx-ba, .fx-pour:has(#fx-pour-lb:checked):has(#fx-pour-rc:checked) .fx-bc, .fx-pour:has(#fx-pour-lb:checked):has(#fx-pour-rb:checked) .fx-bb { visibility: visible; }
@keyframes fx-pour-fill { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@container (max-width: 480px) { .fx-pour .fx-controls { grid-template-columns: 1fr; } .fx-pour .fx-pair { grid-template-columns: 1fr; } .fx-pour .fx-scene { height: 850px; } }
@media (prefers-reduced-motion: reduce) { .fx-pour .fx-water { animation: none; } .fx-pour .fx-vessel, .fx-pour .fx-table, .fx-pour .fx-place { transition: none; } }