.fx-till { display: grid; gap: 16px; }
.fx-till .fx-till-steps { margin: 0; padding-left: 24px; }
.fx-till .fx-till-goal { margin: 0; }
.fx-till .fx-till-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fx-till .fx-till-group { min-width: 0; margin: 0; padding: 8px; border: 1px solid var(--fx-muted); border-radius: 8px; }
.fx-till .fx-till-group legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.fx-till .fx-till-group .fx-row { gap: 6px; }
.fx-till .fx-till-group .fx-btn { min-width: 32px; min-height: 32px; padding: 4px 8px; border-radius: 50%; box-sizing: border-box; color: var(--fx-ink); background: var(--fx-paper); }
.fx-till .fx-btn:has(input:checked) { background: var(--fx-sun-pale); outline: 2px solid var(--fx-ink); }
.fx-till .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
@container (max-width: 480px) { .fx-till .fx-till-controls { grid-template-columns: 1fr; } }
.fx-till .fx-till-scene { height: 420px; padding: 12px 8px; box-sizing: border-box; color: var(--fx-ink); }
.fx-till .fx-till-caption { display: block; text-align: center; margin-bottom: 8px; }
.fx-till .fx-till-screen { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; height: 64px; padding: 0 18px; margin: 0; border: 3px solid var(--fx-ink); border-radius: 8px; background: var(--fx-mint-pale); color: var(--fx-ink); font-size: 32px; line-height: 1.3; box-sizing: border-box; }
.fx-till .fx-till-currency { position: absolute; left: 2px; font-size: 20px; }
.fx-till .fx-till-digit { display: grid; text-align: center; border-radius: 4px; }
.fx-till .fx-till-digit span { grid-area: 1 / 1; }
.fx-till .fx-till-v0 { visibility: var(--fx-v0, visible); }
.fx-till .fx-till-v1 { visibility: var(--fx-v1, hidden); }
.fx-till .fx-till-v2 { visibility: var(--fx-v2, hidden); }
.fx-till .fx-till-v3 { visibility: var(--fx-v3, hidden); }
.fx-till .fx-till-pounds { background: var(--fx-sun-pale); }
.fx-till .fx-till-pence { background: var(--fx-paper); }
.fx-till .fx-till-point { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); }
.fx-till .fx-till-point-label { height: 44px; text-align: center; font-size: 12px; line-height: 18px; }
.fx-till .fx-till-brackets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; text-align: center; font-size: 14px; }
.fx-till .fx-till-brackets b { border: 2px solid var(--fx-ink); border-top: 0; padding: 3px; }
.fx-till .fx-till-drawer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.fx-till .fx-till-tray { min-width: 0; height: 132px; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-paper); text-align: center; box-sizing: border-box; padding: 4px 2px; }
.fx-till .fx-till-tray b { display: block; height: 36px; font-size: 12px; line-height: 16px; }
.fx-till .fx-till-pile { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fx-till .fx-till-piece { display: grid; place-items: center; width: min(40px, 100%); height: 23px; box-sizing: border-box; border: 1px solid var(--fx-ink); border-radius: 50%; font-size: 12px; font-weight: 700; opacity: clamp(0, calc(var(--fx-n, 0) - var(--fx-i)), 1); transition: opacity 0.25s; }
.fx-till .fx-till-notes .fx-till-piece { background: var(--fx-sky); border-radius: 2px; }
.fx-till .fx-till-gold .fx-till-piece { background: var(--fx-sun); }
.fx-till .fx-till-silver .fx-till-piece { background: var(--fx-paper); border-color: var(--fx-muted); }
.fx-till .fx-till-copper .fx-till-piece { background: var(--fx-coral-pale); }
.fx-till .fx-till-arrow { height: 24px; text-align: right; font-size: 12px; font-weight: 700; visibility: hidden; }
.fx-till .fx-till-prize { height: 60px; display: flex; align-items: center; justify-content: center; gap: 10px; visibility: hidden; }
.fx-till .fx-till-frame { border: 4px double var(--fx-ink); padding: 3px 12px; text-align: center; background: var(--fx-sun-pale); font-size: 12px; }
.fx-till .fx-till-messages { display: grid; }
.fx-till .fx-till-message { grid-area: 1 / 1; visibility: hidden; margin: 0; min-width: 0; }
.fx-till .fx-till-pound { visibility: visible; }
.fx-till:has(#fx-till-a1:checked) .fx-till-a { --fx-v0: hidden; --fx-v1: visible; --fx-n: 1; }
.fx-till:has(#fx-till-a2:checked) .fx-till-a { --fx-v0: hidden; --fx-v2: visible; --fx-n: 2; }
.fx-till:has(#fx-till-a3:checked) .fx-till-a { --fx-v0: hidden; --fx-v3: visible; --fx-n: 3; }
.fx-till:has(#fx-till-b1:checked) .fx-till-b { --fx-v0: hidden; --fx-v1: visible; --fx-n: 1; }
.fx-till:has(#fx-till-b2:checked) .fx-till-b { --fx-v0: hidden; --fx-v2: visible; --fx-n: 2; }
.fx-till:has(#fx-till-b3:checked) .fx-till-b { --fx-v0: hidden; --fx-v3: visible; --fx-n: 3; }
.fx-till:has(#fx-till-c1:checked) .fx-till-c { --fx-v0: hidden; --fx-v1: visible; --fx-n: 1; }
.fx-till:has(#fx-till-c2:checked) .fx-till-c { --fx-v0: hidden; --fx-v2: visible; --fx-n: 2; }
.fx-till:has(#fx-till-c3:checked) .fx-till-c { --fx-v0: hidden; --fx-v3: visible; --fx-n: 3; }
.fx-till:has(#fx-till-d1:checked) .fx-till-d { --fx-v0: hidden; --fx-v1: visible; --fx-n: 1; }
.fx-till:has(#fx-till-d2:checked) .fx-till-d { --fx-v0: hidden; --fx-v2: visible; --fx-n: 2; }
.fx-till:has(#fx-till-d3:checked) .fx-till-d { --fx-v0: hidden; --fx-v3: visible; --fx-n: 3; }
.fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked) .fx-till-pound { visibility: hidden; }
.fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked):has(#fx-till-c0:checked):has(#fx-till-d0:checked) .fx-till-m0, .fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked):has(#fx-till-c0:checked):has(#fx-till-d1:checked) .fx-till-m1, .fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked):has(#fx-till-c0:checked):has(#fx-till-d2:checked) .fx-till-m2, .fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked):has(#fx-till-c0:checked):has(#fx-till-d3:checked) .fx-till-m3 { visibility: visible; }
.fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked):not(:has(#fx-till-c0:checked)) .fx-till-under { visibility: visible; }
.fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked):not(:has(#fx-till-c0:checked)) .fx-till-units { outline: 3px solid var(--fx-sun); }
.fx-till:has(#fx-till-a0:checked):has(#fx-till-b0:checked):has(#fx-till-c0:checked):has(#fx-till-d0:checked) .fx-till-arrow { visibility: visible; animation: fx-till-flash 0.8s 4; }
@keyframes fx-till-flash { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.fx-till:has(#fx-till-a1:checked):has(#fx-till-b1:checked):has(#fx-till-c2:checked):has(#fx-till-d3:checked) .fx-till-pound { visibility: hidden; }
.fx-till:has(#fx-till-a1:checked):has(#fx-till-b1:checked):has(#fx-till-c2:checked):has(#fx-till-d3:checked) .fx-till-win, .fx-till:has(#fx-till-a1:checked):has(#fx-till-b1:checked):has(#fx-till-c2:checked):has(#fx-till-d3:checked) .fx-till-prize { visibility: visible; }
.fx-till:has(#fx-till-a1:checked):has(#fx-till-b1:checked):has(#fx-till-c2:checked):has(#fx-till-d3:checked) .fx-till-screen, .fx-till:has(#fx-till-a1:checked):has(#fx-till-b1:checked):has(#fx-till-c2:checked):has(#fx-till-d3:checked) .fx-till-digit { background: var(--fx-mint); }