.fx-unfold { --fx-h1: 52px; --fx-h2: 52px; --fx-h3: 52px; --fx-h4: 52px; display: grid; gap: 16px; }
.fx-unfold:has(#fx-unfold-f1:checked) { --fx-h1: 168px; }
.fx-unfold:has(#fx-unfold-f2:checked) { --fx-h2: 136px; }
.fx-unfold:has(#fx-unfold-f3:checked) { --fx-h3: 280px; }
.fx-unfold:has(#fx-unfold-f4:checked) { --fx-h4: 152px; }
.fx-unfold .fx-note ol { margin: 0; padding-left: 24px; }
.fx-unfold .fx-note li { padding: 3px 0; }
.fx-unfold .fx-goal { margin: 0; }
.fx-unfold .fx-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-unfold .fx-controls legend { padding: 0; margin-bottom: 12px; font-weight: 800; }
.fx-unfold .fx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-unfold .fx-btn { display: grid; align-content: center; gap: 4px; min-width: 0; min-height: 72px; box-sizing: border-box; padding: 10px; white-space: normal; text-align: left; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-ink); border-radius: 8px; }
.fx-unfold .fx-btn small { font-size: 12px; }
.fx-unfold .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint-pale); }
.fx-unfold .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-unfold .fx-status, .fx-unfold .fx-note-slot { display: grid; min-width: 0; }
.fx-unfold .fx-status p, .fx-unfold .fx-note-slot p { grid-area: 1 / 1; visibility: hidden; margin: 0; overflow-wrap: break-word; }
.fx-unfold .fx-status .fx-start { visibility: visible; }
.fx-unfold:has(input:checked) .fx-status .fx-start { visibility: hidden; }
.fx-unfold:has(input:checked) .fx-status .fx-progress { visibility: visible; }
.fx-unfold:has(#fx-unfold-f1:checked):has(#fx-unfold-f2:checked):has(#fx-unfold-f3:checked):has(#fx-unfold-f4:checked) .fx-status .fx-progress { visibility: hidden; }
.fx-unfold:has(#fx-unfold-f1:checked):has(#fx-unfold-f2:checked):has(#fx-unfold-f3:checked):has(#fx-unfold-f4:checked) .fx-status .fx-complete { visibility: visible; }
.fx-unfold .fx-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.fx-unfold .fx-scene { position: relative; height: 844px; min-width: 0; padding: 8px; box-sizing: border-box; overflow: hidden; }
.fx-unfold .fx-perspective { position: relative; height: 820px; perspective: 1200px; }
.fx-unfold .fx-scene-label { position: absolute; top: 0; left: 4px; margin: 0; font-size: 12px; }
.fx-unfold .fx-envelope { position: absolute; top: 32px; left: 4px; right: 4px; height: calc(var(--fx-h1) + var(--fx-h2) + var(--fx-h3) + var(--fx-h4) + 26px); box-sizing: border-box; border: 1px solid var(--fx-ink); background: var(--fx-paper); transition: height 0.7s; }
.fx-unfold .fx-envelope small { position: absolute; bottom: 2px; right: 4px; font-size: 12px; color: var(--fx-ink); }
.fx-unfold .fx-letter { position: absolute; top: 40px; left: 8px; right: 8px; height: calc(var(--fx-h1) + var(--fx-h2) + var(--fx-h3) + var(--fx-h4)); transform-style: preserve-3d; transform: rotateX(4deg) rotateZ(-1deg); transition: transform 0.7s; }
.fx-unfold .fx-frame { position: absolute; left: 0; right: 0; transform-style: preserve-3d; transition: top 0.7s; }
.fx-unfold .fx-frame1 { top: 0; }
.fx-unfold .fx-frame2 { top: var(--fx-h1); }
.fx-unfold .fx-frame3 { top: calc(var(--fx-h1) + var(--fx-h2)); }
.fx-unfold .fx-frame4 { top: calc(var(--fx-h1) + var(--fx-h2) + var(--fx-h3)); }
.fx-unfold .fx-cover { position: absolute; top: 0; left: 0; right: 0; height: 44px; box-sizing: border-box; display: grid; align-content: center; padding: 3px 6px; border: 1px solid var(--fx-ink); background: var(--fx-sun-pale); color: var(--fx-ink); transform: translateZ(2px); opacity: 1; visibility: visible; transition: opacity 0.25s, visibility 0s 0.25s; }
.fx-unfold .fx-cover b, .fx-unfold .fx-cover small { font-size: 12px; line-height: 17px; }
.fx-unfold .fx-cover1 { animation: fx-unfold-pulse 1.4s ease-in-out 3; }
.fx-unfold:has(input:checked) .fx-cover { animation: fx-unfold-pulse 1.4s ease-in-out 3; }
.fx-unfold .fx-paper { position: relative; box-sizing: border-box; padding: 8px; border: 1px solid var(--fx-ink); background: var(--fx-sun-pale); color: var(--fx-ink); backface-visibility: hidden; transform-origin: center top; transform: rotateX(-180deg) translateZ(1px); visibility: hidden; transition: transform 0.7s, visibility 0s 0.7s; }
.fx-unfold .fx-p1 { height: 160px; }
.fx-unfold .fx-p2 { height: 128px; }
.fx-unfold .fx-p3 { height: 272px; }
.fx-unfold .fx-p4 { height: 144px; }
.fx-unfold .fx-paper p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: break-word; }
.fx-unfold .fx-paper .fx-part { margin: 0 0 5px; font-size: 12px; font-weight: 800; }
.fx-unfold .fx-address { text-align: right; }
.fx-unfold .fx-tag { display: inline-block; padding: 2px 6px; font-size: 12px; line-height: 16px; font-weight: 800; border: 1px solid var(--fx-ink); border-radius: 4px; }
.fx-unfold .fx-skeleton { background: var(--fx-sun); }
.fx-unfold .fx-detail { background: var(--fx-sky); }
.fx-unfold .fx-key { position: absolute; bottom: 8px; left: 12px; right: 12px; margin: 0; font-size: 12px; color: var(--fx-ink); }
.fx-unfold .fx-notes { display: grid; gap: 12px; min-width: 0; }
.fx-unfold .fx-notes-title { margin: 0; }
.fx-unfold .fx-note-slot p { font-size: 14px; line-height: 1.5; }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-p1, .fx-unfold:has(#fx-unfold-f2:checked) .fx-p2, .fx-unfold:has(#fx-unfold-f3:checked) .fx-p3, .fx-unfold:has(#fx-unfold-f4:checked) .fx-p4 { visibility: visible; transform: rotateX(0deg) translateZ(1px); transition-delay: 0s; }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-cover1, .fx-unfold:has(#fx-unfold-f2:checked) .fx-cover2, .fx-unfold:has(#fx-unfold-f3:checked) .fx-cover3, .fx-unfold:has(#fx-unfold-f4:checked) .fx-cover4 { visibility: hidden; opacity: 0; }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-n1, .fx-unfold:has(#fx-unfold-f2:checked) .fx-n2, .fx-unfold:has(#fx-unfold-f3:checked) .fx-n3, .fx-unfold:has(#fx-unfold-f4:checked) .fx-n4 { visibility: visible; }
.fx-unfold:has(#fx-unfold-f1:checked):has(#fx-unfold-f2:checked):has(#fx-unfold-f3:checked):has(#fx-unfold-f4:checked) .fx-letter { transform: rotateX(0deg) rotateZ(0deg); }
.fx-unfold:has(#fx-unfold-f1:checked):has(#fx-unfold-f2:checked):has(#fx-unfold-f3:checked):has(#fx-unfold-f4:checked) .fx-skeleton { box-shadow: 0 0 0 3px var(--fx-sun); }
@container (max-width: 480px) { .fx-unfold .fx-two, .fx-unfold .fx-choices { grid-template-columns: minmax(0, 1fr); } }
@keyframes fx-unfold-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--fx-sun); } 50% { box-shadow: 0 0 0 4px var(--fx-sun); } }
@media (prefers-reduced-motion: reduce) { .fx-unfold .fx-perspective .fx-letter .fx-cover { animation: none; } .fx-unfold .fx-paper, .fx-unfold .fx-cover, .fx-unfold .fx-frame, .fx-unfold .fx-envelope, .fx-unfold .fx-letter { transition: none; } }