.fx-flights { display: grid; gap: 14px; }
.fx-flights .fx-flights-steps { margin: 0; padding-left: 24px; }
.fx-flights .fx-flights-goal, .fx-flights .fx-flights-caption { margin: 0; color: var(--fx-ink); }
.fx-flights .fx-flights-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-flights .fx-flights-controls legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.fx-flights .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-flights .fx-btn { box-sizing: border-box; min-height: 44px; min-width: 44px; padding: 10px 12px; color: var(--fx-ink); }
.fx-flights .fx-btn:has(input:checked) { background: var(--fx-sky-pale); color: var(--fx-ink); box-shadow: inset 0 0 0 2px var(--fx-ink); }
.fx-flights .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-flights .fx-flights-round { border-radius: 50%; }
.fx-flights .fx-flights-scene { position: relative; box-sizing: border-box; height: 430px; overflow: hidden; perspective: 700px; color: var(--fx-ink); }
.fx-flights .fx-flights-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx-flights .fx-flights-tag { box-sizing: border-box; min-width: 0; padding: 10px 2px; border: 2px solid var(--fx-ink); border-radius: 6px; background: var(--fx-paper); text-align: center; font-size: 12px; line-height: 1.6; }
.fx-flights .fx-flights-tick { visibility: hidden; }
.fx-flights .fx-flights-axisname { position: absolute; top: 94px; left: 0; width: 100%; margin: 0; text-align: center; font-size: 14px; font-weight: 700; }
.fx-flights .fx-flights-axis { position: absolute; top: 122px; left: 28px; right: 28px; height: 230px; }
.fx-flights .fx-flights-ruler { position: absolute; top: 200px; left: 0; width: 100%; border-top: 2px solid var(--fx-ink); }
.fx-flights .fx-flights-mark { position: absolute; top: 200px; left: var(--fx-flights-x); height: 9px; border-left: 1px solid var(--fx-ink); }
.fx-flights .fx-flights-mark span { position: absolute; top: 13px; left: 0; transform: translateX(-50%); font-size: 12px; }
.fx-flights .fx-flights-marker { --fx-flights-show: 0; --fx-flights-drop: -110px; --fx-flights-scale: 0; position: absolute; left: var(--fx-flights-x); top: var(--fx-flights-y); width: 0; height: 0; }
.fx-flights .fx-flights-stem { position: absolute; top: 22px; left: 0; height: calc(200px - var(--fx-flights-y) - 22px); border-left: 1px solid var(--fx-ink); opacity: var(--fx-flights-show); transition: opacity 0.35s; }
.fx-flights .fx-flights-arm { position: absolute; top: 22px; width: 6px; border-top: 1px solid var(--fx-ink); opacity: var(--fx-flights-show); }
.fx-flights .fx-flights-arm-a { left: 0; }
.fx-flights .fx-flights-arm-d { right: 0; }
.fx-flights .fx-flights-dot { position: absolute; top: calc(197px - var(--fx-flights-y)); left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--fx-ink); opacity: var(--fx-flights-show); }
.fx-flights .fx-flights-block { position: relative; width: 52px; height: 44px; transform-style: preserve-3d; opacity: var(--fx-flights-show); transform: translate3d(var(--fx-flights-shift), var(--fx-flights-drop), 0) scale(var(--fx-flights-scale)) rotateX(8deg) rotateY(-10deg); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.3s; }
.fx-flights .fx-flights-front { position: absolute; inset: 0; box-sizing: border-box; display: grid; place-content: center; text-align: center; border: 2px solid var(--fx-ink); border-radius: 3px; background: var(--fx-sun-pale); transform: translateZ(4px); font-size: 12px; line-height: 1.3; }
.fx-flights .fx-flights-front b { font-size: 14px; }
.fx-flights .fx-flights-top { position: absolute; top: -4px; left: 0; width: 52px; height: 8px; box-sizing: border-box; background: var(--fx-sun); border: 1px solid var(--fx-ink); transform: rotateX(90deg); }
.fx-flights .fx-flights-side { position: absolute; top: 0; right: -4px; width: 8px; height: 44px; box-sizing: border-box; background: var(--fx-sun); border: 1px solid var(--fx-ink); transform: rotateY(90deg); }
.fx-flights:has(#fx-flights-a:checked) .fx-flights-ma, .fx-flights:has(#fx-flights-b:checked) .fx-flights-mb, .fx-flights:has(#fx-flights-c:checked) .fx-flights-mc, .fx-flights:has(#fx-flights-d:checked) .fx-flights-md { --fx-flights-show: 1; --fx-flights-drop: 0px; --fx-flights-scale: 1; }
.fx-flights .fx-flights-directions { position: absolute; top: 363px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.fx-flights .fx-flights-ascending { position: absolute; top: 397px; left: 12%; right: 12%; margin: 0; border-top: 2px solid var(--fx-ink); padding-top: 3px; text-align: center; font-size: 14px; visibility: hidden; }
.fx-flights:has(#fx-flights-a:checked):has(#fx-flights-b:checked):has(#fx-flights-c:checked):has(#fx-flights-d:checked) .fx-flights-ascending { visibility: visible; }
.fx-flights .fx-flights-status, .fx-flights .fx-flights-feedback { display: grid; grid-template-columns: minmax(0, 1fr); }
.fx-flights .fx-flights-message, .fx-flights .fx-flights-answer { grid-area: 1 / 1; margin: 0; font-size: 14px; line-height: 1.5; }
.fx-flights:has(#fx-flights-a:checked) .fx-flights-a0, .fx-flights:not(:has(#fx-flights-a:checked)) .fx-flights-a1, .fx-flights:has(#fx-flights-b:checked) .fx-flights-b0, .fx-flights:not(:has(#fx-flights-b:checked)) .fx-flights-b1, .fx-flights:has(#fx-flights-c:checked) .fx-flights-c0, .fx-flights:not(:has(#fx-flights-c:checked)) .fx-flights-c1, .fx-flights:has(#fx-flights-d:checked) .fx-flights-d0, .fx-flights:not(:has(#fx-flights-d:checked)) .fx-flights-d1 { visibility: hidden; }
.fx-flights .fx-flights-answer { visibility: hidden; }
.fx-flights:has(#fx-flights-qnone:checked) .fx-flights-anone, .fx-flights:has(#fx-flights-qa:checked) .fx-flights-aa, .fx-flights:has(#fx-flights-qb:checked) .fx-flights-ab, .fx-flights:has(#fx-flights-qc:checked) .fx-flights-ac, .fx-flights:has(#fx-flights-qd:checked) .fx-flights-ad { visibility: visible; }
.fx-flights:has(#fx-flights-qb:checked) .fx-flights-tick { visibility: visible; }
.fx-flights:has(#fx-flights-qb:checked) .fx-flights-tb, .fx-flights:has(#fx-flights-qb:checked) .fx-flights-mb .fx-flights-front { background: var(--fx-mint); box-shadow: 0 0 10px var(--fx-mint); }
.fx-flights:has(#fx-flights-qa:checked) .fx-flights-ta, .fx-flights:has(#fx-flights-qc:checked) .fx-flights-tc, .fx-flights:has(#fx-flights-qd:checked) .fx-flights-td { background: var(--fx-coral-pale); }
.fx-flights:has(#fx-flights-qa:checked) .fx-flights-ma .fx-flights-front, .fx-flights:has(#fx-flights-qc:checked) .fx-flights-mc .fx-flights-front, .fx-flights:has(#fx-flights-qd:checked) .fx-flights-md .fx-flights-front { background: var(--fx-coral-pale); box-shadow: 0 0 10px var(--fx-sun); animation: fx-flights-wobble 0.4s 2; }
@keyframes fx-flights-wobble { 0%, 100% { transform: translateZ(4px) rotate(0deg); } 25% { transform: translateZ(4px) rotate(-4deg); } 75% { transform: translateZ(4px) rotate(4deg); } }
@container (max-width: 480px) { .fx-flights .fx-flights-controls .fx-row { display: grid; grid-template-columns: minmax(0, 1fr); } .fx-flights .fx-flights-round { border-radius: 24px; } .fx-flights .fx-flights-tags { gap: 4px; left: 8px; right: 8px; } }
@media (prefers-reduced-motion: reduce) { .fx-flights .fx-flights-block, .fx-flights .fx-flights-stem { transition: none; } .fx-flights .fx-flights-front { animation: none; } }