.fx-basket { display: grid; gap: 12px; --fx-basket-empty: visible; --fx-basket-win: hidden; --fx-basket-progress: hidden; --fx-basket-outline: var(--fx-ink); --fx-basket-fill: var(--fx-paper); }
.fx-basket:has(input:checked) { --fx-basket-empty: hidden; }
.fx-basket:has(.fx-basket-good input:checked):not(:has(.fx-basket-bad input:checked)) { --fx-basket-progress: visible; --fx-basket-outline: var(--fx-sun); }
.fx-basket:has(.fx-basket-bad input:checked) { --fx-basket-outline: var(--fx-coral); --fx-basket-fill: var(--fx-coral-pale); }
.fx-basket:has(#fx-basket-shirt:checked):has(#fx-basket-tee:checked):not(:has(.fx-basket-bad input:checked)) { --fx-basket-win: visible; --fx-basket-progress: hidden; --fx-basket-outline: var(--fx-mint); --fx-basket-fill: var(--fx-mint-pale); }
.fx-basket .fx-basket-steps { margin: 0; padding-left: 22px; }
.fx-basket .fx-basket-goal { margin: 0; }
.fx-basket .fx-basket-work { min-width: 0; padding: 0; margin: 0; border: 0; color: var(--fx-ink); font-size: 14px; }
.fx-basket .fx-basket-work legend { max-width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-basket .fx-basket-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-basket .fx-basket-choice { box-sizing: border-box; min-width: 0; min-height: 48px; padding: 8px; justify-content: center; text-align: center; overflow-wrap: anywhere; font-size: 14px; }
.fx-basket .fx-basket-choice:has(input:checked) { background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-basket .fx-basket-choice:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 2px; }
.fx-basket .fx-basket-checks { grid-column: 1 / -1; margin: 0; line-height: 1.5; }
.fx-basket .fx-basket-scene { grid-column: 1 / -1; position: relative; box-sizing: border-box; height: 900px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--fx-ink); }
.fx-basket .fx-basket-paper { position: absolute; box-sizing: border-box; top: 8px; left: 8px; right: 8px; height: 96px; padding: 8px; margin: 0; background: var(--fx-sun-pale); border: 2px solid var(--fx-sun); line-height: 18px; }
.fx-basket .fx-basket-tick { font-size: 20px; font-weight: 800; }
.fx-basket .fx-basket-rail { position: absolute; top: 110px; left: 8px; right: 8px; height: 24px; box-sizing: border-box; border-bottom: 3px solid var(--fx-ink); }
.fx-basket .fx-basket-bag { position: absolute; box-sizing: border-box; top: 525px; bottom: 10px; left: 5px; right: 5px; border: 3px solid var(--fx-basket-outline); background: var(--fx-basket-fill); border-radius: 8px; }
.fx-basket .fx-basket-bag::before { content: ""; position: absolute; top: -22px; left: 30%; width: 40%; height: 19px; border: 3px solid var(--fx-basket-outline); border-bottom: 0; border-radius: 12px 12px 0 0; }
.fx-basket .fx-basket-bag b { display: block; padding: 10px 4px; text-align: center; font-size: 14px; }
.fx-basket .fx-basket-clothes { position: absolute; top: 145px; left: 6px; right: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 0 4px; }
.fx-basket .fx-basket-piece { min-width: 0; height: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; transform: translateY(var(--fx-basket-drop, 0px)); transition: transform 0.45s; }
.fx-basket .fx-basket-piece svg { width: 44px; max-width: 100%; height: 32px; flex-shrink: 0; fill: var(--fx-sky); stroke: var(--fx-ink); stroke-width: 2.5; stroke-linejoin: round; }
.fx-basket .fx-basket-piece .fx-basket-seam { fill: none; }
.fx-basket .fx-basket-name { display: block; box-sizing: border-box; height: 64px; width: 100%; flex-shrink: 0; overflow-wrap: anywhere; }
.fx-basket .fx-basket-tag { display: block; box-sizing: border-box; width: 100%; height: 46px; flex-shrink: 0; padding: 1px; border: 1px solid var(--fx-coral); background: var(--fx-coral-pale); line-height: 14px; visibility: var(--fx-basket-tag, hidden); }
.fx-basket .fx-basket-pass .fx-basket-tag { border-color: var(--fx-mint); background: var(--fx-mint-pale); box-shadow: 0 0 0 1px var(--fx-mint); }
.fx-basket .fx-basket-hint { position: absolute; top: 448px; left: 8px; right: 8px; height: 64px; visibility: var(--fx-basket-empty); }
.fx-basket .fx-basket-arrow { display: block; text-align: right; margin-right: 8%; font-size: 24px; line-height: 22px; }
.fx-basket:has(#fx-basket-shirt:checked) .fx-basket-p1, .fx-basket:has(#fx-basket-skirt:checked) .fx-basket-p2, .fx-basket:has(#fx-basket-crop:checked) .fx-basket-p3, .fx-basket:has(#fx-basket-dress:checked) .fx-basket-p4, .fx-basket:has(#fx-basket-tee:checked) .fx-basket-p5, .fx-basket:has(#fx-basket-trousers:checked) .fx-basket-p6, .fx-basket:has(#fx-basket-sarong:checked) .fx-basket-p7, .fx-basket:has(#fx-basket-shorts:checked) .fx-basket-p8 { --fx-basket-drop: 425px; --fx-basket-tag: visible; }
.fx-basket .fx-basket-status { grid-column: 1 / -1; display: grid; min-width: 0; }
.fx-basket .fx-basket-message { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.fx-basket .fx-basket-empty { visibility: var(--fx-basket-empty); }
.fx-basket .fx-basket-win { visibility: var(--fx-basket-win); }
.fx-basket .fx-basket-progress { visibility: var(--fx-basket-progress); }
.fx-basket .fx-basket-c1:has(input:checked) ~ .fx-basket-status .fx-basket-i1, .fx-basket .fx-basket-c2:has(input:checked) ~ .fx-basket-status .fx-basket-i2, .fx-basket .fx-basket-c3:has(input:checked) ~ .fx-basket-status .fx-basket-i3, .fx-basket .fx-basket-c4:has(input:checked) ~ .fx-basket-status .fx-basket-i4, .fx-basket .fx-basket-c5:has(input:checked) ~ .fx-basket-status .fx-basket-i5, .fx-basket .fx-basket-c6:has(input:checked) ~ .fx-basket-status .fx-basket-i6, .fx-basket .fx-basket-c7:has(input:checked) ~ .fx-basket-status .fx-basket-i7, .fx-basket .fx-basket-c8:has(input:checked) ~ .fx-basket-status .fx-basket-i8 { visibility: visible; }
.fx-basket .fx-basket-choice:has(input:checked) ~ .fx-basket-choice:has(input:checked) ~ .fx-basket-status .fx-basket-item { visibility: hidden; }
.fx-basket:has(.fx-basket-bad input:checked) .fx-basket-choice:has(input:checked) ~ .fx-basket-choice:has(input:checked) ~ .fx-basket-status .fx-basket-mixed { visibility: visible; }
@container (max-width: 480px) { .fx-basket .fx-basket-layout { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-basket .fx-basket-piece { transition: none; } }