.fx-tray { --fx-pizza-cost: 0; --fx-bread-cost: 0; --fx-cost: calc(var(--fx-pizza-cost) + var(--fx-bread-cost)); --fx-fill: var(--fx-sky); --fx-topping: var(--fx-coral); display: block; }
.fx-tray:has(#fx-tray-margherita:checked) { --fx-pizza-cost: 38.97; }
.fx-tray:has(#fx-tray-vegetable:checked) { --fx-pizza-cost: 35.97; --fx-topping: var(--fx-mint); }
.fx-tray:has(#fx-tray-pepperoni:checked) { --fx-pizza-cost: 44.97; --fx-fill: var(--fx-coral); }
.fx-tray:has(#fx-tray-bread:checked) { --fx-bread-cost: 4.5; }
.fx-tray:has(#fx-tray-margherita:checked):has(#fx-tray-bread:checked) { --fx-fill: var(--fx-coral); }
.fx-tray:has(#fx-tray-vegetable:checked):has(#fx-tray-bread:checked) { --fx-fill: var(--fx-mint); }
.fx-tray .fx-tray-inner { display: grid; gap: 16px; min-width: 0; font-size: 16px; line-height: 1.4; color: var(--fx-ink); }
.fx-tray .fx-tray-inner * { box-sizing: border-box; }
.fx-tray .fx-tray-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fx-tray .fx-tray-goal { margin: 0; }
.fx-tray .fx-note, .fx-tray .fx-right, .fx-tray .fx-wrong { color: var(--fx-ink); }
.fx-tray .fx-tray-controls { min-width: 0; border: 0; padding: 0; margin: 0; }
.fx-tray .fx-tray-controls legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.fx-tray .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-tray .fx-btn { min-height: 44px; min-width: 24px; max-width: 100%; padding: 10px 12px; font-size: 16px; line-height: 1.4; color: var(--fx-ink); background: var(--fx-paper); cursor: pointer; }
.fx-tray .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun-pale); }
.fx-tray .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-tray .fx-tray-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; height: 400px; padding: 12px; }
.fx-tray .fx-tray-menu, .fx-tray .fx-tray-order, .fx-tray .fx-tray-money { min-width: 0; }
.fx-tray .fx-tray-title { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.fx-tray .fx-tray-menu ul { list-style: none; padding: 0; margin: 0; }
.fx-tray .fx-tray-menu li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--fx-muted); line-height: 1.3; }
.fx-tray .fx-tray-menu li span { min-width: 0; overflow-wrap: anywhere; }
.fx-tray .fx-tray-platter { height: 190px; padding: 10px; border: 5px solid var(--fx-sun); border-radius: 18px; background: var(--fx-sun-pale); display: grid; grid-template-rows: 90px 70px; }
.fx-tray .fx-tray-pizzas, .fx-tray .fx-tray-breads { display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: center; transform: translateY(0); transition: transform 0.3s; }
.fx-tray .fx-tray-itemlabel { font-size: 14px; font-weight: 700; line-height: 20px; }
.fx-tray .fx-tray-icons { display: flex; justify-content: space-around; align-items: center; gap: 4px; }
.fx-tray .fx-tray-pizza { position: relative; display: block; width: 28%; max-width: 54px; aspect-ratio: 1; border: 3px solid var(--fx-sun); border-radius: 50%; background: var(--fx-paper); }
.fx-tray .fx-tray-pizza::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: var(--fx-topping); }
.fx-tray .fx-tray-pizza::after { content: ""; position: absolute; top: 28%; right: 28%; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-sun); }
.fx-tray .fx-tray-loaf { display: block; width: 28%; height: 22px; border: 3px solid var(--fx-sun); border-radius: 50%; background: var(--fx-paper); }
.fx-tray:has(#fx-tray-none:checked) .fx-tray-pizzas { visibility: hidden; transform: translateY(-12px); }
.fx-tray .fx-tray-breads { visibility: hidden; transform: translateY(-12px); }
.fx-tray:has(#fx-tray-bread:checked) .fx-tray-breads { visibility: visible; transform: translateY(0); }
.fx-tray .fx-tray-change { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-height: 64px; margin-top: 8px; }
.fx-tray .fx-tray-change-reveal { display: flex; align-items: center; gap: 6px; visibility: hidden; }
.fx-tray:has(#fx-tray-vegetable:checked):has(#fx-tray-bread:checked) .fx-tray-change-reveal { visibility: visible; }
.fx-tray .fx-tray-coins { position: relative; display: block; width: 32px; height: 32px; }
.fx-tray .fx-tray-coins i { position: absolute; left: 0; top: 16px; width: 32px; height: 12px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-sun); }
.fx-tray .fx-tray-coins i:nth-child(2) { top: 8px; }
.fx-tray .fx-tray-coins i:nth-child(3) { top: 0; }
.fx-tray .fx-tray-meter { position: relative; height: 260px; }
.fx-tray .fx-tray-track { position: absolute; left: 12%; bottom: 0; width: 42%; height: 214px; border: 2px solid var(--fx-ink); background: var(--fx-paper); }
.fx-tray .fx-tray-fill { position: absolute; left: calc(12% + 2px); bottom: 2px; width: calc(42% - 4px); height: calc(var(--fx-cost) * 5px); background: var(--fx-fill); transition: height 0.35s, background-color 0.35s; }
.fx-tray .fx-tray-limit { position: absolute; left: 0; right: 0; bottom: 212px; border-top: 2px dashed var(--fx-ink); }
.fx-tray .fx-tray-limit span { position: absolute; right: 0; bottom: 3px; padding: 0 3px; font-size: 14px; font-weight: 800; background: var(--fx-paper); }
.fx-tray .fx-tray-total { display: grid; gap: 2px; margin-top: 8px; }
.fx-tray .fx-tray-values, .fx-tray .fx-tray-status { display: grid; }
.fx-tray .fx-tray-state { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-tray:has(#fx-tray-none:checked):has(#fx-tray-bread:not(:checked)) .fx-tray-s0, .fx-tray:has(#fx-tray-none:checked):has(#fx-tray-bread:checked) .fx-tray-s1, .fx-tray:has(#fx-tray-margherita:checked):has(#fx-tray-bread:not(:checked)) .fx-tray-s2, .fx-tray:has(#fx-tray-margherita:checked):has(#fx-tray-bread:checked) .fx-tray-s3, .fx-tray:has(#fx-tray-vegetable:checked):has(#fx-tray-bread:not(:checked)) .fx-tray-s4, .fx-tray:has(#fx-tray-vegetable:checked):has(#fx-tray-bread:checked) .fx-tray-s5, .fx-tray:has(#fx-tray-pepperoni:checked):has(#fx-tray-bread:not(:checked)) .fx-tray-s6, .fx-tray:has(#fx-tray-pepperoni:checked):has(#fx-tray-bread:checked) .fx-tray-s7 { visibility: visible; }
@container (max-width: 480px) { .fx-tray .fx-tray-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 184px 288px 352px; gap: 16px; height: 888px; } }
@media (prefers-reduced-motion: reduce) { .fx-tray .fx-tray-pizzas, .fx-tray .fx-tray-breads, .fx-tray .fx-tray-fill { transition: none; } }