.fx-lift { --fx-level: 3; display: grid; gap: 16px; }
.fx-lift:has(#fx-lift-f35:checked) { --fx-level: 0; }
.fx-lift:has(#fx-lift-f34:checked) { --fx-level: 1; }
.fx-lift:has(#fx-lift-f33:checked) { --fx-level: 2; }
.fx-lift:has(#fx-lift-f31:checked) { --fx-level: 4; }
.fx-lift:has(#fx-lift-f30:checked) { --fx-level: 5; }
.fx-lift:has(#fx-lift-f29:checked) { --fx-level: 6; }
.fx-lift .fx-lift-steps { margin: 0; padding: 0; list-style: none; color: var(--fx-ink); }
.fx-lift .fx-lift-steps li + li { margin-top: 8px; }
.fx-lift .fx-lift-goal { margin: 0; color: var(--fx-ink); line-height: 1.5; }
.fx-lift .fx-lift-controls { min-width: 0; margin: 0; padding: 14px; border: 2px solid var(--fx-ink); border-radius: 16px; background: var(--fx-paper); color: var(--fx-ink); }
.fx-lift .fx-lift-controls legend { padding: 0 6px; font-weight: 800; }
.fx-lift .fx-lift-panel { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 16px; align-items: start; }
.fx-lift .fx-lift-panel-copy { min-width: 0; line-height: 1.5; }
.fx-lift .fx-lift-panel-copy p { margin: 0 0 12px; }
.fx-lift .fx-lift-buttons { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; }
.fx-lift .fx-lift-button { box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; }
.fx-lift .fx-lift-button:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); box-shadow: 0 0 0 3px var(--fx-sun-pale); }
.fx-lift .fx-lift-button:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 4px; }
.fx-lift .fx-lift-hint { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.fx-lift .fx-lift-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-lift .fx-lift-building { box-sizing: border-box; height: 408px; min-width: 0; padding: 12px; color: var(--fx-ink); }
.fx-lift .fx-lift-building-title { margin: 0; line-height: 24px; }
.fx-lift .fx-lift-direction { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; line-height: 24px; }
.fx-lift .fx-lift-arrow { width: 24px; height: 20px; flex: 0 0 24px; }
.fx-lift .fx-lift-arrow polygon { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 1.5; stroke-linejoin: round; }
.fx-lift .fx-lift-frame { border: 2px solid var(--fx-ink); background: var(--fx-paper); }
.fx-lift .fx-lift-floors { position: relative; height: 308px; }
.fx-lift .fx-lift-floor { box-sizing: border-box; display: flex; align-items: center; height: 44px; padding-left: 8px; padding-right: 82px; border-bottom: 1px solid var(--fx-ink); font-size: 14px; line-height: 18px; }
.fx-lift .fx-lift-floor:last-of-type { border-bottom: 0; }
.fx-lift .fx-lift-floor small { display: block; font-size: 12px; line-height: 14px; }
.fx-lift .fx-lift-start { background: var(--fx-sky-pale); }
.fx-lift .fx-lift-car { box-sizing: border-box; position: absolute; top: 6px; right: 10px; display: flex; align-items: center; justify-content: center; width: 62px; height: 32px; border: 2px solid var(--fx-ink); border-radius: 5px; background: var(--fx-sun); color: var(--fx-ink); font-size: 14px; font-weight: 800; transform: translateY(calc(var(--fx-level) * 44px)); transition: transform 0.9s; }
.fx-lift .fx-lift-screen { min-width: 0; color: var(--fx-ink); }
.fx-lift .fx-lift-screen-title { margin: 0 0 10px; line-height: 24px; }
.fx-lift .fx-lift-messages { display: grid; }
.fx-lift .fx-lift-messages .fx-lift-message { box-sizing: border-box; grid-area: 1 / 1; visibility: hidden; margin: 0; padding: 14px; border: 2px solid var(--fx-ink); border-radius: 12px; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-lift .fx-lift-message.fx-note { background: var(--fx-sky-pale); }
.fx-lift .fx-lift-message.fx-wrong { background: var(--fx-coral-pale); }
.fx-lift .fx-lift-message.fx-right { background: var(--fx-mint); }
.fx-lift .fx-lift-tick { display: block; margin-bottom: 6px; font-size: 28px; font-weight: 800; line-height: 32px; }
.fx-lift:has(#fx-lift-f32:checked) .fx-lift-s32, .fx-lift:has(#fx-lift-f33:checked) .fx-lift-s33, .fx-lift:has(#fx-lift-f34:checked) .fx-lift-s34, .fx-lift:has(#fx-lift-f35:checked) .fx-lift-s35, .fx-lift:has(#fx-lift-f31:checked) .fx-lift-s31, .fx-lift:has(#fx-lift-f30:checked) .fx-lift-s30, .fx-lift:has(#fx-lift-f29:checked) .fx-lift-s29 { visibility: visible; }
.fx-lift:has(#fx-lift-f33:checked) .fx-lift-arrow { animation: fx-lift-warn33 0.28s 3; }
.fx-lift:has(#fx-lift-f34:checked) .fx-lift-arrow { animation: fx-lift-warn34 0.28s 3; }
.fx-lift:has(#fx-lift-f35:checked) .fx-lift-arrow { animation: fx-lift-warn35 0.28s 3; }
.fx-lift:has(#fx-lift-f30:checked) .fx-lift-pass31 { background: var(--fx-sun-pale); animation: fx-lift-pass30 0.2s 2 0.25s; }
.fx-lift:has(#fx-lift-f29:checked) .fx-lift-pass31 { background: var(--fx-sun-pale); animation: fx-lift-pass29 0.2s 2 0.2s; }
.fx-lift:has(#fx-lift-f29:checked) .fx-lift-pass30 { background: var(--fx-sun-pale); animation: fx-lift-pass29 0.2s 2 0.5s; }
@keyframes fx-lift-warn33 { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes fx-lift-warn34 { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes fx-lift-warn35 { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes fx-lift-pass30 { 0%, 100% { background: var(--fx-sun-pale); } 50% { background: var(--fx-sun); } }
@keyframes fx-lift-pass29 { 0%, 100% { background: var(--fx-sun-pale); } 50% { background: var(--fx-sun); } }
@container (max-width: 480px) { .fx-lift .fx-lift-panel { grid-template-columns: 1fr; } .fx-lift .fx-lift-results { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-lift .fx-lift-car { transition: none; } .fx-lift .fx-lift-arrow, .fx-lift .fx-lift-pass31, .fx-lift .fx-lift-pass30 { animation: none; } }