.fx-doors { --fx-doors-delivery: 0; display: grid; gap: 16px; }
.fx-doors .fx-doors-steps { margin: 0; padding-left: 24px; }
.fx-doors .fx-doors-steps li { padding: 3px 0; }
.fx-doors .fx-doors-goal { margin: 0; color: var(--fx-ink); }
.fx-doors .fx-doors-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-doors .fx-doors-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-doors .fx-doors-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-doors .fx-btn { box-sizing: border-box; min-height: 44px; min-width: 44px; padding: 10px 12px; background: var(--fx-paper); color: var(--fx-ink); border: 2px solid var(--fx-ink); cursor: pointer; }
.fx-doors .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-doors .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-doors .fx-doors-scene { position: relative; box-sizing: border-box; width: 100%; min-width: 0; height: 328px; margin: 0; overflow: hidden; color: var(--fx-ink); background: var(--fx-sky-pale); }
.fx-doors .fx-doors-houses { position: absolute; top: 12px; left: 12px; right: 12px; height: 202px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.fx-doors .fx-doors-house { --fx-doors-open: 0; display: grid; grid-template-rows: 22px 140px 40px; min-width: 0; }
.fx-doors .fx-doors-place { font-size: 12px; line-height: 20px; text-align: center; }
.fx-doors .fx-doors-front { position: relative; box-sizing: border-box; height: 140px; border: 2px solid var(--fx-ink); border-top-width: 6px; background: var(--fx-mint-pale); }
.fx-doors .fx-doors-house:nth-child(even) .fx-doors-front { background: var(--fx-sun-pale); }
.fx-doors .fx-doors-window { position: absolute; top: 10px; left: 50%; width: 20px; height: 18px; box-sizing: border-box; transform: translateX(-50%); border: 2px solid var(--fx-ink); background: var(--fx-sky); }
.fx-doors .fx-doors-frame { position: absolute; bottom: 0; left: 50%; display: block; width: 74%; max-width: 54px; height: 86px; transform: translateX(-50%); perspective: 420px; background: var(--fx-paper); }
.fx-doors label.fx-doors-frame { cursor: pointer; }
.fx-doors .fx-doors-flap { position: absolute; inset: 0; box-sizing: border-box; border: 2px solid var(--fx-ink); background: var(--fx-sun-pale); transform-origin: left center; transform-style: preserve-3d; transform: rotateY(calc(var(--fx-doors-open) * -110deg)); transition: transform 0.7s; }
.fx-doors .fx-doors-flap::after { content: ""; position: absolute; right: 4px; bottom: 25px; width: 5px; height: 5px; border-radius: 50%; background: var(--fx-ink); }
.fx-doors .fx-doors-face { position: absolute; top: 10px; left: 8%; width: 84%; box-sizing: border-box; padding: 2px 0; text-align: center; font-size: 22px; line-height: 1.2; font-weight: 800; background: var(--fx-sun); color: var(--fx-ink); backface-visibility: hidden; transform: translateZ(1px); }
.fx-doors .fx-doors-reveal { position: absolute; inset: 0; display: grid; place-items: center; box-sizing: border-box; border: 2px solid var(--fx-ink); font-size: 24px; font-weight: 800; background: var(--fx-paper); color: var(--fx-ink); opacity: var(--fx-doors-open); transition: opacity 0.2s 0.2s; }
.fx-doors .fx-doors-caption { box-sizing: border-box; padding-top: 6px; text-align: center; font-size: 12px; line-height: 1.25; }
.fx-doors .fx-doors-route { position: absolute; left: 12px; right: 12px; top: 224px; height: 72px; }
.fx-doors .fx-doors-parcel { position: absolute; top: 0; left: calc(var(--fx-doors-delivery) * (100% - 78px)); box-sizing: border-box; width: 78px; height: 72px; padding: 3px; display: grid; justify-items: center; align-content: center; border: 2px solid var(--fx-ink); background: var(--fx-sun-pale); color: var(--fx-ink); font-size: 12px; line-height: 1.2; text-align: center; transition: left 0.8s, top 0.8s; }
.fx-doors .fx-doors-parcel .fx-score { margin: 0; font-size: 16px; line-height: 1.3; }
.fx-doors .fx-doors-tick { visibility: hidden; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fx-mint); font-size: 16px; font-weight: 800; }
.fx-doors .fx-doors-street-label { position: absolute; bottom: 10px; left: 8px; right: 8px; text-align: center; font-size: 12px; line-height: 18px; font-weight: 800; }
.fx-doors:has(#fx-doors-d4:checked) .fx-doors-h4, .fx-doors:has(#fx-doors-d5:checked) .fx-doors-h5, .fx-doors:has(#fx-doors-d6:checked) .fx-doors-h6, .fx-doors:has(#fx-doors-d7:checked) .fx-doors-h7 { --fx-doors-open: 1; }
.fx-doors:has(#fx-doors-d7:checked) { --fx-doors-delivery: 1; }
.fx-doors:has(#fx-doors-d7:checked) .fx-doors-tick { visibility: visible; }
.fx-doors .fx-doors-says { display: grid; min-width: 0; }
.fx-doors .fx-doors-says p { grid-area: 1 / 1; visibility: hidden; box-sizing: border-box; margin: 0; padding: 12px; color: var(--fx-ink); }
.fx-doors .fx-note { color: var(--fx-ink); background: var(--fx-sky-pale); }
.fx-doors .fx-wrong { background: var(--fx-coral-pale); }
.fx-doors .fx-right { background: var(--fx-mint-pale); }
.fx-doors:has(#fx-doors-start:checked) .fx-doors-s0, .fx-doors:has(#fx-doors-d4:checked) .fx-doors-s4, .fx-doors:has(#fx-doors-d5:checked) .fx-doors-s5, .fx-doors:has(#fx-doors-d6:checked) .fx-doors-s6, .fx-doors:has(#fx-doors-d7:checked) .fx-doors-s7 { visibility: visible; }
.fx-doors .fx-doors-parcel-status .fx-doors-waiting { visibility: visible; }
.fx-doors:has(#fx-doors-d7:checked) .fx-doors-waiting { visibility: hidden; }
.fx-doors:has(#fx-doors-d7:checked) .fx-doors-delivered { visibility: visible; }
@container (max-width: 480px) { .fx-doors .fx-doors-choices { display: grid; grid-template-columns: 1fr; } .fx-doors .fx-doors-scene { height: 872px; } .fx-doors .fx-doors-houses { top: 12px; left: 96px; right: 8px; height: 812px; grid-template-columns: 1fr; grid-template-rows: repeat(7, 104px); gap: 14px; } .fx-doors .fx-doors-house { grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: 34px 70px; column-gap: 8px; } .fx-doors .fx-doors-place { grid-column: 2; grid-row: 1; align-self: end; text-align: left; } .fx-doors .fx-doors-front { grid-column: 1; grid-row: 1 / 3; width: 54px; height: 104px; } .fx-doors .fx-doors-caption { grid-column: 2; grid-row: 2; align-self: start; text-align: left; padding-top: 4px; } .fx-doors .fx-doors-window { top: 6px; height: 14px; width: 18px; } .fx-doors .fx-doors-frame { height: 64px; max-width: 38px; } .fx-doors .fx-doors-face { top: 8px; font-size: 18px; } .fx-doors .fx-doors-route { top: 28px; left: 8px; right: auto; width: 78px; height: 780px; } .fx-doors .fx-doors-parcel { left: 0; top: calc(var(--fx-doors-delivery) * (100% - 72px)); } }
@media (prefers-reduced-motion: reduce) { .fx-doors .fx-doors-flap, .fx-doors .fx-doors-parcel, .fx-doors .fx-doors-reveal { transition: none; } }