.fx-basket { --fx-basket-h: 0; --fx-basket-j: 0; --fx-basket-t: 0; --fx-basket-s: 0; --fx-basket-total: calc(var(--fx-basket-h) * 23 + var(--fx-basket-j) * 37 + var(--fx-basket-t) * 39 + var(--fx-basket-s) * 20); display: grid; gap: 16px; }
.fx-basket:has(#fx-basket-hat:checked) { --fx-basket-h: 1; }
.fx-basket:has(#fx-basket-jumper:checked) { --fx-basket-j: 1; }
.fx-basket:has(#fx-basket-shirt:checked) { --fx-basket-t: 1; }
.fx-basket:has(#fx-basket-scarf:checked) { --fx-basket-s: 1; }
.fx-basket .fx-basket-steps { margin: 0; padding-left: 24px; }
.fx-basket .fx-basket-steps li + li { margin-top: 6px; }
.fx-basket .fx-basket-goal { margin: 0; color: var(--fx-ink); }
.fx-basket .fx-basket-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-basket .fx-basket-controls legend { max-width: 100%; padding: 0; margin-bottom: 12px; font-weight: 800; color: var(--fx-ink); }
.fx-basket .fx-basket-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 10px; border-bottom: 4px solid var(--fx-ink); }
.fx-basket .fx-basket-choice { box-sizing: border-box; min-width: 0; min-height: 124px; margin: 0; padding: 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer; transform: none; }
.fx-basket .fx-basket-choice:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); transform: none; }
.fx-basket .fx-basket-choice:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-basket .fx-basket-picked { font-size: 12px; visibility: hidden; }
.fx-basket .fx-basket-choice:has(input:checked) .fx-basket-picked { visibility: visible; }
.fx-basket .fx-basket-icon { display: block; flex-shrink: 0; width: 76px; max-width: 100%; height: 54px; fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 2.5; stroke-linejoin: round; }
.fx-basket .fx-basket-jumper-art { fill: var(--fx-sky); }
.fx-basket .fx-basket-shirt-art { fill: var(--fx-coral); }
.fx-basket .fx-basket-scarf-art { fill: var(--fx-mint); }
.fx-basket .fx-basket-detail { fill: none; }
.fx-basket .fx-basket-button { fill: var(--fx-ink); stroke: none; }
.fx-basket .fx-basket-scene { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; height: 308px; padding: 12px; border: 2px dashed var(--fx-sky); background: var(--fx-sky-pale); }
.fx-basket .fx-basket-pane, .fx-basket .fx-basket-money-pane { position: relative; min-width: 0; height: 280px; }
.fx-basket .fx-basket-caption { position: relative; z-index: 2; margin: 0; color: var(--fx-ink); font-size: 14px; font-weight: 800; line-height: 20px; text-align: center; }
.fx-basket .fx-basket-wire { position: absolute; bottom: 8px; left: 0; width: 100%; height: 176px; fill: none; stroke: var(--fx-ink); stroke-width: 2.5; stroke-linejoin: round; }
.fx-basket .fx-basket-piece { box-sizing: border-box; position: absolute; left: 10%; width: 80%; height: 42px; bottom: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 3px; border: 1px solid var(--fx-ink); border-radius: 6px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; font-weight: 700; line-height: 18px; visibility: hidden; opacity: 0; transform: translateY(-16px); transition: transform 0.35s, opacity 0.2s, bottom 0.35s; }
.fx-basket .fx-basket-piece .fx-basket-icon { width: 44px; height: 34px; }
.fx-basket .fx-basket-jumper-piece { bottom: calc(26px + var(--fx-basket-h) * 46px); }
.fx-basket .fx-basket-shirt-piece { bottom: calc(26px + (var(--fx-basket-h) + var(--fx-basket-j)) * 46px); }
.fx-basket .fx-basket-scarf-piece { bottom: calc(26px + (var(--fx-basket-h) + var(--fx-basket-j) + var(--fx-basket-t)) * 46px); }
.fx-basket:has(#fx-basket-hat:checked) .fx-basket-hat-piece, .fx-basket:has(#fx-basket-jumper:checked) .fx-basket-jumper-piece, .fx-basket:has(#fx-basket-shirt:checked) .fx-basket-shirt-piece, .fx-basket:has(#fx-basket-scarf:checked) .fx-basket-scarf-piece { visibility: visible; opacity: 1; transform: translateY(0); }
.fx-basket .fx-basket-meter { position: absolute; bottom: 14px; left: 50%; width: 64px; height: 160px; transform: translateX(-50%); border: 2px solid var(--fx-ink); border-top: 0; background: var(--fx-paper); }
.fx-basket .fx-basket-fill { position: absolute; bottom: 0; left: 0; right: 0; height: calc(var(--fx-basket-total) * 2px); background: var(--fx-sun); transition: height 0.35s, background-color 0.35s; }
.fx-basket .fx-basket-limit { position: absolute; top: 0; left: -14px; right: -14px; border-top: 3px dashed var(--fx-ink); }
.fx-basket:has(#fx-basket-hat:checked):has(#fx-basket-jumper:checked):has(#fx-basket-shirt:not(:checked)):has(#fx-basket-scarf:checked) .fx-basket-fill { background: var(--fx-mint); }
.fx-basket:has(#fx-basket-hat:checked):has(#fx-basket-jumper:checked):has(#fx-basket-shirt:checked) .fx-basket-fill, .fx-basket:has(#fx-basket-hat:checked):has(#fx-basket-shirt:checked):has(#fx-basket-scarf:checked) .fx-basket-fill, .fx-basket:has(#fx-basket-jumper:checked):has(#fx-basket-shirt:checked):has(#fx-basket-scarf:checked) .fx-basket-fill { background: var(--fx-coral); }
.fx-basket .fx-basket-status { display: grid; min-width: 0; }
.fx-basket .fx-basket-msg { box-sizing: border-box; grid-area: 1 / 1; align-self: stretch; min-width: 0; margin: 0; padding: 12px; border: 2px solid var(--fx-ink); border-radius: 10px; color: var(--fx-ink); line-height: 1.5; visibility: visible; }
.fx-basket .fx-basket-msg .fx-score { display: block; margin: 0 0 8px; font-size: 24px; line-height: 1.3; }
.fx-basket:has(#fx-basket-hat:checked) .fx-basket-h0, .fx-basket:has(#fx-basket-hat:not(:checked)) .fx-basket-h1, .fx-basket:has(#fx-basket-jumper:checked) .fx-basket-j0, .fx-basket:has(#fx-basket-jumper:not(:checked)) .fx-basket-j1, .fx-basket:has(#fx-basket-shirt:checked) .fx-basket-t0, .fx-basket:has(#fx-basket-shirt:not(:checked)) .fx-basket-t1, .fx-basket:has(#fx-basket-scarf:checked) .fx-basket-s0, .fx-basket:has(#fx-basket-scarf:not(:checked)) .fx-basket-s1 { visibility: hidden; }
@container (max-width: 480px) { .fx-basket .fx-basket-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-basket .fx-basket-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 240px 280px; height: 564px; } .fx-basket .fx-basket-pane { height: 240px; } }