.fx-shelf { --fx-complete: hidden; --fx-progress: hidden; --fx-start: visible; --fx-glow: 0px; --fx-c-fill: var(--fx-sun-pale); display: grid; gap: 14px; }
.fx-shelf:has(input:checked) { --fx-progress: visible; --fx-start: hidden; }
.fx-shelf:has(#fx-shelf-a:checked):has(#fx-shelf-b:checked):has(#fx-shelf-c:checked):has(#fx-shelf-d:checked) { --fx-complete: visible; --fx-progress: hidden; --fx-glow: 3px; --fx-c-fill: var(--fx-mint-pale); }
.fx-shelf .fx-note, .fx-shelf .fx-right { margin: 0; color: var(--fx-ink); font-size: 14px; line-height: 1.45; }
.fx-shelf .fx-shelf-steps { list-style: none; margin: 0; padding: 0; }
.fx-shelf .fx-shelf-steps li + li { margin-top: 6px; }
.fx-shelf .fx-shelf-goal { margin: 0; font-weight: 700; color: var(--fx-ink); }
.fx-shelf .fx-shelf-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-shelf .fx-shelf-controls legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-shelf .fx-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx-shelf .fx-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 8px; border: 2px solid var(--fx-ink); background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.fx-shelf .fx-btn:has(input:checked) { background: var(--fx-mint); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-shelf .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-shelf .fx-shelf-scene { position: relative; height: 570px; min-width: 0; padding: 0; margin: 0; overflow: hidden; box-sizing: border-box; color: var(--fx-ink); font-size: 12px; background: var(--fx-sky-pale); }
.fx-shelf .fx-shelf-caption { position: absolute; top: 10px; left: 8px; right: 8px; margin: 0; text-align: center; font-size: 13px; line-height: 18px; font-weight: 800; }
.fx-shelf .fx-shelf-hint { position: absolute; top: 34px; left: 8px; right: 8px; margin: 0; text-align: center; font-size: 12px; line-height: 16px; }
.fx-shelf .fx-shelf-track { position: absolute; top: 0; bottom: 0; left: 20px; right: 20px; }
.fx-shelf .fx-shelf-rail { position: absolute; top: 350px; left: 0; right: 0; height: 9px; box-sizing: border-box; border: 2px solid var(--fx-ink); background: var(--fx-sun); }
.fx-shelf .fx-shelf-tick { position: absolute; top: 348px; left: calc(var(--fx-mark) * 1%); height: 18px; width: 0; border-left: 1px solid var(--fx-ink); }
.fx-shelf .fx-shelf-tick span { position: absolute; top: 22px; left: 0; transform: translateX(-50%); font-size: 12px; line-height: 16px; }
.fx-shelf .fx-shelf-low span { top: 42px; }
.fx-shelf .fx-shelf-directions { position: absolute; top: 416px; left: 0; right: 0; display: flex; justify-content: space-between; gap: 6px; font-size: 12px; line-height: 18px; }
.fx-shelf .fx-shelf-floor { position: absolute; top: 506px; left: 0; right: 0; border-top: 2px solid var(--fx-muted); }
.fx-shelf .fx-shelf-floor-label { position: absolute; top: 546px; left: 0; right: 0; text-align: center; font-size: 12px; line-height: 16px; }
.fx-shelf .fx-shelf-piece, .fx-shelf .fx-shelf-says { --fx-on: hidden; --fx-off: visible; }
.fx-shelf .fx-shelf-piece { --fx-x: var(--fx-floor-x); --fx-y: 450px; position: absolute; inset: 0; }
.fx-shelf .fx-shelf-a { --fx-floor-x: 12.5%; }
.fx-shelf .fx-shelf-b { --fx-floor-x: 37.5%; }
.fx-shelf .fx-shelf-c { --fx-floor-x: 62.5%; }
.fx-shelf .fx-shelf-d { --fx-floor-x: 87.5%; }
.fx-shelf:has(#fx-shelf-a:checked) .fx-shelf-a { --fx-x: 50%; --fx-y: 60px; --fx-on: visible; --fx-off: hidden; }
.fx-shelf:has(#fx-shelf-b:checked) .fx-shelf-b { --fx-x: 48.5%; --fx-y: 140px; --fx-on: visible; --fx-off: hidden; }
.fx-shelf:has(#fx-shelf-c:checked) .fx-shelf-c { --fx-x: 75%; --fx-y: 284px; --fx-on: visible; --fx-off: hidden; }
.fx-shelf:has(#fx-shelf-d:checked) .fx-shelf-d { --fx-x: 65%; --fx-y: 204px; --fx-on: visible; --fx-off: hidden; }
.fx-shelf .fx-shelf-box { position: absolute; z-index: 2; left: var(--fx-x); top: var(--fx-y); transform: translateX(-50%); width: min(64px, 22%); height: 56px; box-sizing: border-box; padding: 3px 0; border: 2px solid var(--fx-ink); border-radius: 3px; background: var(--fx-sun-pale); text-align: center; font-size: 12px; line-height: 15px; transition: left 0.7s, top 0.7s; }
.fx-shelf .fx-shelf-box b, .fx-shelf .fx-shelf-box span { display: block; }
.fx-shelf .fx-shelf-c .fx-shelf-box { background: var(--fx-c-fill); outline: var(--fx-glow) solid var(--fx-sun); outline-offset: 3px; }
.fx-shelf .fx-shelf-guide { position: absolute; z-index: 1; left: var(--fx-x); top: calc(var(--fx-y) + 56px); height: calc(350px - var(--fx-y) - 56px); width: 0; border-left: 1px dotted var(--fx-ink); transition: left 0.7s, top 0.7s, height 0.7s; }
.fx-shelf .fx-shelf-floor-note { position: absolute; left: var(--fx-floor-x); top: 512px; transform: translateX(-50%); width: min(64px, 22%); text-align: center; font-size: 12px; line-height: 14px; }
.fx-shelf .fx-shelf-flag { position: absolute; z-index: 3; top: calc(var(--fx-y) - 22px); left: var(--fx-x); transform: translateX(-50%); padding: 0 4px; border: 1px solid var(--fx-ink); border-radius: 3px; background: var(--fx-sun-pale); font-size: 12px; line-height: 18px; font-weight: 800; }
.fx-shelf .fx-shelf-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-shelf .fx-shelf-says { display: grid; min-width: 0; }
.fx-shelf .fx-shelf-says p { grid-area: 1 / 1; }
.fx-shelf .fx-shelf-on { visibility: var(--fx-on); }
.fx-shelf .fx-shelf-off { visibility: var(--fx-off); }
.fx-shelf .fx-shelf-start { visibility: var(--fx-start); }
.fx-shelf .fx-shelf-progress { visibility: var(--fx-progress); }
.fx-shelf .fx-shelf-best { visibility: var(--fx-complete); }
@container (max-width: 480px) { .fx-shelf .fx-row, .fx-shelf .fx-shelf-status-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-shelf .fx-shelf-box, .fx-shelf .fx-shelf-guide { transition: none; } }