.fx-cat { --fx-cat-left: 14%; --fx-cat-top: 160px; --fx-cat-depth: 22px; --fx-cat-squash: 1; --fx-cat-label-top: 128px; display: grid; }
.fx-cat:has(#fx-cat-right:checked) { --fx-cat-left: 86%; }
.fx-cat:has(#fx-cat-front:checked) { --fx-cat-left: 50%; --fx-cat-depth: 140px; }
.fx-cat:has(#fx-cat-behind:checked) { --fx-cat-left: 66%; --fx-cat-depth: -70px; --fx-cat-label-top: 124px; }
.fx-cat:has(#fx-cat-under:checked) { --fx-cat-left: 50%; --fx-cat-depth: 10px; --fx-cat-squash: 0.4; --fx-cat-label-top: 270px; }
.fx-cat:has(#fx-cat-above:checked) { --fx-cat-left: 50%; --fx-cat-top: 0px; --fx-cat-depth: -65px; --fx-cat-label-top: -28px; }
.fx-cat .fx-cat-content { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-cat .fx-cat-steps { margin: 0; padding-left: 24px; }
.fx-cat .fx-cat-goal { margin: 0; }
.fx-cat .fx-cat-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-cat .fx-cat-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-cat .fx-cat-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-cat .fx-cat-choices .fx-btn { min-height: 44px; min-width: 0; box-sizing: border-box; padding: 10px; color: var(--fx-ink); background: var(--fx-paper); text-align: center; }
.fx-cat .fx-cat-choices .fx-btn:has(input:checked) { background: var(--fx-sun-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-cat .fx-cat-choices .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
@container (max-width: 480px) { .fx-cat .fx-cat-choices { grid-template-columns: 1fr; } }
.fx-cat .fx-cat-stage { position: relative; height: 440px; box-sizing: border-box; padding: 0; overflow: hidden; display: grid; grid-template-rows: 350px 34px 52px; color: var(--fx-ink); }
.fx-cat .fx-cat-view { position: relative; min-width: 0; height: 350px; perspective: 800px; }
.fx-cat .fx-cat-room { position: relative; width: 92%; max-width: 440px; height: 300px; margin: 36px auto 0; transform: rotateX(-12deg); transform-style: preserve-3d; }
.fx-cat .fx-cat-wall { position: absolute; left: 0; top: 0; width: 100%; height: 260px; box-sizing: border-box; background: var(--fx-sky-pale); border: 1px solid var(--fx-sky); transform: translateZ(-100px); }
.fx-cat .fx-cat-floor { position: absolute; left: 0; top: 260px; width: 100%; height: 260px; box-sizing: border-box; background: var(--fx-mint-pale); border: 1px solid var(--fx-mint); transform-origin: center top; transform: rotateX(90deg) translateY(-100px); }
.fx-cat .fx-cat-shelf-top { position: absolute; left: 35%; top: 100px; width: 30%; height: 50px; background: var(--fx-sun); border: 1px solid var(--fx-ink); box-sizing: border-box; transform-origin: center top; transform: translateZ(-100px) rotateX(90deg); }
.fx-cat .fx-cat-shelf-front { position: absolute; left: 35%; top: 100px; width: 30%; height: 7px; background: var(--fx-sun); border: 1px solid var(--fx-ink); box-sizing: border-box; transform: translateZ(-50px); }
.fx-cat .fx-cat-tag { position: absolute; padding: 2px 5px; border: 1px solid var(--fx-ink); border-radius: 5px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 18px; white-space: nowrap; }
.fx-cat .fx-cat-shelf-label { left: 50%; top: 112px; transform: translateX(-50%) translateZ(-48px); }
.fx-cat .fx-cat-sofa-base { position: absolute; left: 27%; top: 225px; width: 46%; height: 35px; background: var(--fx-mint-pale); transform: translateZ(-16px); }
.fx-cat .fx-cat-sofa-back { position: absolute; left: 27%; top: 165px; width: 46%; height: 60px; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 12px 12px 0 0; background: var(--fx-mint); transform: translateZ(-16px); }
.fx-cat .fx-cat-sofa-top { position: absolute; left: 27%; top: 217px; width: 46%; height: 58px; box-sizing: border-box; border: 2px solid var(--fx-ink); background: var(--fx-mint-pale); transform-origin: center top; transform: translateZ(-16px) rotateX(90deg); }
.fx-cat .fx-cat-sofa-front { position: absolute; left: 27%; top: 217px; width: 46%; height: 21px; box-sizing: border-box; border: 2px solid var(--fx-ink); background: var(--fx-mint); transform: translateZ(42px); }
.fx-cat .fx-cat-leg { position: absolute; top: 238px; width: 4%; height: 22px; box-sizing: border-box; border: 1px solid var(--fx-ink); background: var(--fx-sun); transform: translateZ(40px); }
.fx-cat .fx-cat-leg-left { left: 29%; }
.fx-cat .fx-cat-leg-right { left: 67%; }
.fx-cat .fx-cat-arm { position: absolute; top: 192px; width: 8%; height: 46px; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-mint); transform: translateZ(48px); }
.fx-cat .fx-cat-arm-left { left: 24%; }
.fx-cat .fx-cat-arm-right { left: 68%; }
.fx-cat .fx-cat-sofa-label { left: 50%; top: 184px; transform: translateX(-50%) translateZ(62px); }
.fx-cat .fx-cat-animal { position: absolute; left: var(--fx-cat-left); top: var(--fx-cat-top); width: 76px; height: 100px; margin-left: -38px; transform-origin: center bottom; transform: translateZ(var(--fx-cat-depth)) scaleY(var(--fx-cat-squash)); transition: left 0.65s, top 0.65s, transform 0.65s; }
.fx-cat .fx-cat-animal svg { display: block; width: 76px; height: 100px; overflow: visible; }
.fx-cat .fx-cat-fur { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 1.5; stroke-linejoin: round; }
.fx-cat .fx-cat-tail { fill: none; stroke: var(--fx-coral); stroke-width: 8; stroke-linecap: round; }
.fx-cat .fx-cat-inner-ear { fill: var(--fx-sun-pale); }
.fx-cat .fx-cat-eye-dot { fill: var(--fx-ink); }
.fx-cat .fx-cat-face { fill: none; stroke: var(--fx-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-cat .fx-cat-animal-label { left: var(--fx-cat-left); top: var(--fx-cat-label-top); background: var(--fx-coral-pale); transform: translateX(-50%) translateZ(var(--fx-cat-depth)); transition: left 0.65s, top 0.65s, transform 0.65s; }
.fx-cat .fx-cat-floor-label { left: 8px; bottom: 8px; }
.fx-cat .fx-cat-viewer { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; }
.fx-cat .fx-cat-viewer svg { width: 28px; height: 20px; fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-cat .fx-cat-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px 4px; box-sizing: border-box; }
.fx-cat .fx-cat-word-card { padding: 3px; border: 1px solid var(--fx-sun); border-radius: 7px; background: var(--fx-sun-pale); text-align: center; font-size: 14px; line-height: 1.3; }
.fx-cat .fx-cat-word-card b { display: block; font-size: 12px; }
.fx-cat .fx-cat-stack { display: grid; min-width: 0; }
.fx-cat .fx-cat-state { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-cat:has(#fx-cat-left:checked) .fx-cat-state-left, .fx-cat:has(#fx-cat-right:checked) .fx-cat-state-right, .fx-cat:has(#fx-cat-front:checked) .fx-cat-state-front, .fx-cat:has(#fx-cat-behind:checked) .fx-cat-state-behind, .fx-cat:has(#fx-cat-under:checked) .fx-cat-state-under, .fx-cat:has(#fx-cat-above:checked) .fx-cat-state-above { visibility: visible; }