.fx-crate { display: grid; }
.fx-crate .fx-crate-shell { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-crate .fx-crate-shell * { box-sizing: border-box; }
.fx-crate .fx-crate-steps { margin: 0; padding-left: 24px; }
.fx-crate .fx-crate-steps li + li { margin-top: 6px; }
.fx-crate .fx-crate-goal, .fx-crate .fx-crate-read { margin: 0; }
.fx-crate .fx-crate-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-crate .fx-crate-control { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-crate .fx-crate-control legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.fx-crate .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-crate .fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 8px 10px; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; line-height: 1.3; cursor: pointer; }
.fx-crate .fx-btn:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-crate .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-crate .fx-crate-track { position: relative; display: block; flex-shrink: 0; width: 52px; height: 28px; border: 2px solid var(--fx-ink); border-radius: 20px; background: var(--fx-sky-pale); }
.fx-crate .fx-crate-track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); transition: transform 0.3s; }
.fx-crate .fx-crate-switch:has(input:checked) .fx-crate-track { background: var(--fx-mint); }
.fx-crate .fx-crate-switch:has(input:checked) .fx-crate-track::before { transform: translateX(24px); }
.fx-crate .fx-crate-stack { display: grid; }
.fx-crate .fx-crate-stack > * { display: block; grid-area: 1 / 1; margin: 0; visibility: hidden; }
.fx-crate .fx-crate-stack > .fx-crate-before { visibility: visible; }
.fx-crate:has(#fx-crate-b56:checked) .fx-crate-56-off, .fx-crate:has(#fx-crate-b23:checked) .fx-crate-23-off, .fx-crate:has(#fx-crate-b47:checked) .fx-crate-47-off, .fx-crate:has(#fx-crate-b38:checked) .fx-crate-38-off { visibility: visible; }
.fx-crate:has(#fx-crate-move:checked) .fx-crate-before, .fx-crate:has(#fx-crate-move:checked) .fx-crate-off { visibility: hidden; }
.fx-crate:has(#fx-crate-move:checked) .fx-crate-after, .fx-crate:has(#fx-crate-b56:checked):has(#fx-crate-move:checked) .fx-crate-56-on, .fx-crate:has(#fx-crate-b23:checked):has(#fx-crate-move:checked) .fx-crate-23-on, .fx-crate:has(#fx-crate-b47:checked):has(#fx-crate-move:checked) .fx-crate-47-on, .fx-crate:has(#fx-crate-b38:checked):has(#fx-crate-move:checked) .fx-crate-38-on { visibility: visible; }
.fx-crate .fx-crate-scene { position: relative; width: 100%; height: 344px; padding: 0; overflow: hidden; color: var(--fx-ink); }
.fx-crate .fx-crate-label { position: absolute; padding: 0 8px; text-align: center; font-size: 16px; line-height: 1.35; }
.fx-crate .fx-crate-crate-label { top: 16px; left: 0; width: 50%; }
.fx-crate .fx-crate-basket-label { top: 16px; left: 50%; width: 50%; }
.fx-crate .fx-crate-gap-label { top: 294px; left: 0; width: 50%; font-size: 14px; }
.fx-crate .fx-crate-grid { position: absolute; left: calc(25% - 100px); top: 86px; width: 200px; height: 200px; border-radius: 6px; transition: box-shadow 0.8s; }
.fx-crate .fx-crate-board { fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 2; transition: fill 0.8s; }
.fx-crate .fx-crate-dividers { fill: none; stroke: var(--fx-sun); stroke-width: 1; }
.fx-crate .fx-crate-apples, .fx-crate .fx-crate-moving-fruit { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 0.8; }
.fx-crate .fx-crate-gap-halo { fill: none; stroke: var(--fx-sun); stroke-width: 4; transition: opacity 0.8s; }
.fx-crate .fx-crate-gap { fill: none; stroke: var(--fx-coral); stroke-width: 1.5; stroke-dasharray: 3 2; transition: opacity 0.8s; }
.fx-crate .fx-crate-basket-art { position: absolute; left: calc(75% - 80px); top: 132px; width: 160px; height: 150px; }
.fx-crate .fx-crate-handle { fill: none; stroke: var(--fx-ink); stroke-width: 6; }
.fx-crate .fx-crate-basket-body { fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 3; }
.fx-crate .fx-crate-weave { fill: none; stroke: var(--fx-ink); stroke-width: 2; opacity: 0.5; }
.fx-crate .fx-crate-rim { fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 3; }
.fx-crate .fx-crate-moving { position: absolute; left: calc(75% - 10px); top: 170px; width: 20px; height: 20px; transition: left 0.8s, top 0.8s; }
.fx-crate .fx-crate-stem { fill: none; stroke: var(--fx-ink); stroke-width: 1.5; stroke-linecap: round; }
.fx-crate:has(#fx-crate-move:checked) .fx-crate-moving { left: calc(25% + 80px); top: 86px; }
.fx-crate:has(#fx-crate-move:checked) .fx-crate-board { fill: var(--fx-mint-pale); }
.fx-crate:has(#fx-crate-move:checked) .fx-crate-grid { box-shadow: 0 0 12px 3px var(--fx-mint); }
.fx-crate:has(#fx-crate-move:checked) .fx-crate-gap, .fx-crate:has(#fx-crate-move:checked) .fx-crate-gap-halo { opacity: 0; }
.fx-crate .fx-crate-total { display: grid; gap: 4px; color: var(--fx-ink); }
.fx-crate .fx-crate-total .fx-score { font-size: 22px; line-height: 1.3; font-weight: 800; }
.fx-crate .fx-crate-feedback > p { padding: 12px; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
@container (max-width: 480px) { .fx-crate .fx-crate-controls { grid-template-columns: 1fr; } .fx-crate .fx-crate-scene { height: 556px; } .fx-crate .fx-crate-crate-label { top: 16px; width: 100%; } .fx-crate .fx-crate-grid { left: calc(50% - 100px); top: 80px; } .fx-crate .fx-crate-gap-label { top: 288px; width: 100%; } .fx-crate .fx-crate-basket-label { top: 338px; left: 0; width: 100%; } .fx-crate .fx-crate-basket-art { left: calc(50% - 80px); top: 390px; } .fx-crate .fx-crate-moving { left: calc(50% - 10px); top: 428px; } .fx-crate:has(#fx-crate-move:checked) .fx-crate-moving { left: calc(50% + 80px); top: 80px; } }
@media (prefers-reduced-motion: reduce) { .fx-crate .fx-crate-moving, .fx-crate .fx-crate-track::before, .fx-crate .fx-crate-board, .fx-crate .fx-crate-grid, .fx-crate .fx-crate-gap, .fx-crate .fx-crate-gap-halo { transition: none; } }