.fx-jar { --fx-level: 0; --fx-target-colour: var(--fx-coral); display: grid; }
.fx-jar .fx-shell { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); }
.fx-jar .fx-guide ol { list-style: none; margin: 0; padding: 0; }
.fx-jar .fx-guide li { margin: 0; line-height: 1.5; }
.fx-jar .fx-guide li + li { margin-top: 6px; }
.fx-jar .fx-goal { margin: 0; line-height: 1.5; }
.fx-jar .fx-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-jar .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-jar .fx-controls .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-jar .fx-controls .fx-btn { box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 10px 12px; color: var(--fx-ink); background: var(--fx-paper); }
.fx-jar .fx-controls .fx-btn:has(input:checked) { background: var(--fx-mint); color: var(--fx-ink); }
.fx-jar .fx-controls .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-jar .fx-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-jar .fx-jarstage { box-sizing: border-box; height: 380px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fx-jar .fx-caption { margin: 0; min-height: 44px; line-height: 22px; text-align: center; }
.fx-jar .fx-diagram { position: relative; width: 100%; max-width: 280px; height: 292px; flex-shrink: 0; margin: 0 auto; }
.fx-jar .fx-glass { position: absolute; box-sizing: border-box; top: 21px; left: 5px; width: calc(100% - 90px); height: 246px; border: 3px solid var(--fx-ink); border-radius: 8px 8px 16px 16px; background: var(--fx-paper); }
.fx-jar .fx-volume { position: absolute; top: 24px; left: 8px; width: calc(100% - 96px); height: 240px; overflow: hidden; border-radius: 4px 4px 12px 12px; }
.fx-jar .fx-volume svg { display: block; width: 100%; height: 100%; }
.fx-jar .fx-liquid { fill: var(--fx-mint-pale); y: calc(240px - var(--fx-level) * 48px); height: calc(var(--fx-level) * 48px); transition: y 0.35s, height 0.35s; }
.fx-jar .fx-coinrow { visibility: hidden; }
.fx-jar .fx-coinrow ellipse { fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-jar .fx-target { position: absolute; top: 164px; left: 8px; width: calc(100% - 96px); border-top: 3px dashed var(--fx-target-colour); }
.fx-jar .fx-target span { position: absolute; left: 2px; bottom: 6px; padding: 2px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 16px; white-space: nowrap; }
.fx-jar .fx-scale { position: absolute; top: 24px; right: 0; width: 78px; height: 240px; }
.fx-jar .fx-mark { position: absolute; right: 0; bottom: calc(var(--fx-mark) * 20% - 22px); display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 76px; height: 44px; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; line-height: 22px; font-weight: 800; cursor: pointer; }
.fx-jar .fx-mark::before { content: ""; position: absolute; right: 100%; top: 19px; width: 12px; border-top: 2px solid var(--fx-ink); }
.fx-jar .fx-hint { position: absolute; top: 251px; right: 0; width: 76px; text-align: center; font-size: 12px; line-height: 16px; }
.fx-jar .fx-pointer { position: absolute; left: 27px; top: -24px; font-size: 24px; line-height: 24px; }
.fx-jar .fx-results { display: grid; gap: 12px; min-width: 0; }
.fx-jar .fx-moneylabel { margin: 0; }
.fx-jar .fx-amount, .fx-jar .fx-says { display: grid; min-width: 0; }
.fx-jar .fx-amount p, .fx-jar .fx-says p { grid-area: 1 / 1; margin: 0; }
.fx-jar .fx-says p { box-sizing: border-box; line-height: 1.5; overflow-wrap: anywhere; }
.fx-jar .fx-state { visibility: hidden; }
.fx-jar:has(#fx-jar-one:checked) { --fx-level: 1; }
.fx-jar:has(#fx-jar-two:checked) { --fx-level: 2; }
.fx-jar:has(#fx-jar-three:checked) { --fx-level: 3; --fx-target-colour: var(--fx-mint); }
.fx-jar:has(#fx-jar-four:checked) { --fx-level: 4; --fx-target-colour: var(--fx-mint); }
.fx-jar:has(#fx-jar-five:checked) { --fx-level: 5; --fx-target-colour: var(--fx-mint); }
.fx-jar:has(#fx-jar-empty:checked) .fx-s0, .fx-jar:has(#fx-jar-one:checked) .fx-s1, .fx-jar:has(#fx-jar-two:checked) .fx-s2, .fx-jar:has(#fx-jar-three:checked) .fx-s3, .fx-jar:has(#fx-jar-four:checked) .fx-s4, .fx-jar:has(#fx-jar-five:checked) .fx-s5, .fx-jar:has(#fx-jar-one:checked) .fx-coinrow:nth-of-type(-n + 1), .fx-jar:has(#fx-jar-two:checked) .fx-coinrow:nth-of-type(-n + 2), .fx-jar:has(#fx-jar-three:checked) .fx-coinrow:nth-of-type(-n + 3), .fx-jar:has(#fx-jar-four:checked) .fx-coinrow:nth-of-type(-n + 4), .fx-jar:has(#fx-jar-five:checked) .fx-coinrow:nth-of-type(-n + 5) { visibility: visible; }
.fx-jar:has(#fx-jar-one:checked) .fx-mark-one, .fx-jar:has(#fx-jar-two:checked) .fx-mark-two, .fx-jar:has(#fx-jar-three:checked) .fx-mark-three, .fx-jar:has(#fx-jar-four:checked) .fx-mark-four, .fx-jar:has(#fx-jar-five:checked) .fx-mark-five { background: var(--fx-mint); }
@container (max-width: 480px) { .fx-jar .fx-scene { grid-template-columns: minmax(0, 1fr); } }