.fx-leaflet { display: grid; gap: 14px; }
.fx-leaflet .fx-instructions ol { margin: 0; padding-left: 24px; list-style: decimal; }
.fx-leaflet .fx-instructions li { padding-left: 2px; }
.fx-leaflet .fx-goal, .fx-leaflet .fx-reset, .fx-leaflet .fx-hint { margin: 0; color: var(--fx-ink); }
.fx-leaflet .fx-reset, .fx-leaflet .fx-hint { font-size: 14px; line-height: 1.5; }
.fx-leaflet .fx-controls { margin: 0; padding: 0; border: 0; min-width: 0; }
.fx-leaflet .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-leaflet .fx-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-leaflet .fx-choices .fx-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px; border: 2px solid var(--fx-ink); color: var(--fx-ink); background: var(--fx-paper); font-size: 14px; line-height: 1.4; text-align: center; cursor: pointer; }
.fx-leaflet .fx-choices .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-leaflet .fx-choices .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-leaflet .fx-scene { box-sizing: border-box; height: 800px; padding: 16px; overflow: hidden; color: var(--fx-ink); }
.fx-leaflet .fx-view { height: 100%; min-width: 0; display: grid; place-items: center; perspective: 1000px; }
.fx-leaflet .fx-paper { box-sizing: border-box; width: 100%; max-width: 360px; height: 748px; padding: 0 8px; border: 1px solid var(--fx-ink); background: var(--fx-paper); transform: rotateX(3deg) rotateZ(-0.5deg); transform-style: preserve-3d; }
.fx-leaflet .fx-title { box-sizing: border-box; height: 64px; margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; }
.fx-leaflet .fx-title span { font-size: 13px; }
.fx-leaflet .fx-title b { font-size: 22px; line-height: 1.2; }
.fx-leaflet .fx-fold { height: 218px; transform-style: preserve-3d; }
.fx-leaflet .fx-part { box-sizing: border-box; display: flex; align-items: center; height: 38px; margin: 0; font-size: 13px; line-height: 17px; font-weight: 800; }
.fx-leaflet .fx-slot { position: relative; height: 150px; transform-style: preserve-3d; }
.fx-leaflet .fx-copy { box-sizing: border-box; height: 100%; padding: 9px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 1px solid var(--fx-ink); background: var(--fx-paper); visibility: hidden; }
.fx-leaflet .fx-copy p { margin: 0; font-size: 13px; line-height: 1.35; }
.fx-leaflet .fx-copy .fx-swimming { padding: 4px; border: 1px solid var(--fx-ink); background: var(--fx-sun); box-shadow: 0 0 0 3px var(--fx-sun-pale); font-weight: 800; }
.fx-leaflet .fx-flap { position: absolute; inset: 0; transform-origin: center bottom; transform-style: preserve-3d; transform: rotateX(0deg) translateZ(2px); transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fx-leaflet .fx-front, .fx-leaflet .fx-back { box-sizing: border-box; position: absolute; inset: 0; border: 2px solid var(--fx-ink); backface-visibility: hidden; }
.fx-leaflet .fx-front { display: grid; place-items: center; padding: 12px; background: var(--fx-sky-pale); text-align: center; transform: translateZ(1px); }
.fx-leaflet .fx-front b { font-size: 18px; line-height: 1.3; text-decoration: underline; text-underline-offset: 4px; }
.fx-leaflet .fx-back { background: var(--fx-sun-pale); transform: rotateX(180deg) translateZ(1px); }
.fx-leaflet:has(#fx-leaflet-stay:checked) .fx-stay .fx-flap, .fx-leaflet:has(#fx-leaflet-things:checked) .fx-things .fx-flap, .fx-leaflet:has(#fx-leaflet-travel:checked) .fx-travel .fx-flap { transform: rotateX(100deg) translateZ(2px); }
.fx-leaflet:has(#fx-leaflet-stay:checked) .fx-stay .fx-copy, .fx-leaflet:has(#fx-leaflet-things:checked) .fx-things .fx-copy, .fx-leaflet:has(#fx-leaflet-travel:checked) .fx-travel .fx-copy { visibility: visible; }
.fx-leaflet .fx-count { display: grid; height: 26px; align-items: center; }
.fx-leaflet .fx-tally { grid-area: 1 / 1; margin: 0; visibility: hidden; font-size: 14px; line-height: 20px; font-weight: 800; text-align: center; }
.fx-leaflet .fx-messages { display: grid; }
.fx-leaflet .fx-message { box-sizing: border-box; display: block; grid-area: 1 / 1; margin: 0; visibility: hidden; font-size: 14px; line-height: 1.5; color: var(--fx-ink); }
.fx-leaflet:not(:has(input:checked)) .fx-m0, .fx-leaflet:not(:has(input:checked)) .fx-c0 { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-stay:checked):not(:has(#fx-leaflet-things:checked)):not(:has(#fx-leaflet-travel:checked)) .fx-ms, .fx-leaflet:has(#fx-leaflet-stay:checked):not(:has(#fx-leaflet-things:checked)):not(:has(#fx-leaflet-travel:checked)) .fx-c1 { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-travel:checked):not(:has(#fx-leaflet-things:checked)):not(:has(#fx-leaflet-stay:checked)) .fx-mt, .fx-leaflet:has(#fx-leaflet-travel:checked):not(:has(#fx-leaflet-things:checked)):not(:has(#fx-leaflet-stay:checked)) .fx-c1 { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-things:checked):not(:has(#fx-leaflet-stay:checked)):not(:has(#fx-leaflet-travel:checked)) .fx-ma, .fx-leaflet:has(#fx-leaflet-things:checked):not(:has(#fx-leaflet-stay:checked)):not(:has(#fx-leaflet-travel:checked)) .fx-c1 { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-things:checked):has(#fx-leaflet-stay:checked):not(:has(#fx-leaflet-travel:checked)) .fx-mtwo, .fx-leaflet:has(#fx-leaflet-things:checked):has(#fx-leaflet-travel:checked):not(:has(#fx-leaflet-stay:checked)) .fx-mtwo, .fx-leaflet:has(#fx-leaflet-things:checked):has(#fx-leaflet-stay:checked):not(:has(#fx-leaflet-travel:checked)) .fx-c2, .fx-leaflet:has(#fx-leaflet-things:checked):has(#fx-leaflet-travel:checked):not(:has(#fx-leaflet-stay:checked)) .fx-c2 { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-stay:checked):has(#fx-leaflet-travel:checked):not(:has(#fx-leaflet-things:checked)) .fx-mmiss, .fx-leaflet:has(#fx-leaflet-stay:checked):has(#fx-leaflet-travel:checked):not(:has(#fx-leaflet-things:checked)) .fx-c2 { visibility: visible; }
.fx-leaflet:has(#fx-leaflet-stay:checked):has(#fx-leaflet-things:checked):has(#fx-leaflet-travel:checked) .fx-mall, .fx-leaflet:has(#fx-leaflet-stay:checked):has(#fx-leaflet-things:checked):has(#fx-leaflet-travel:checked) .fx-c3 { visibility: visible; }
@container (max-width: 480px) { .fx-leaflet .fx-choices { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-leaflet .fx-flap { transition: none; } }