.fx-unfold { display: grid; gap: 16px; }
.fx-unfold * { box-sizing: border-box; }
.fx-unfold .fx-note, .fx-unfold .fx-right, .fx-unfold .fx-wrong, .fx-unfold .fx-goal { color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-unfold .fx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fx-unfold .fx-goal, .fx-unfold .fx-read { margin: 0; }
.fx-unfold .fx-controls { border: 0; padding: 0; margin: 0; min-width: 0; color: var(--fx-ink); font-size: 16px; }
.fx-unfold .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; line-height: 1.4; }
.fx-unfold .fx-fold-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-unfold .fx-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-unfold .fx-btn { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 48px; padding: 12px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; font-weight: 700; line-height: 1.4; white-space: normal; cursor: pointer; }
.fx-unfold .fx-fold-button { flex-direction: column; align-items: flex-start; gap: 4px; }
.fx-unfold .fx-btn:has(input:checked) { background: var(--fx-sky-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-unfold .fx-miss:has(input:checked) { background: var(--fx-coral-pale); }
.fx-unfold .fx-correct:has(input:checked) { background: var(--fx-mint-pale); border-color: var(--fx-mint); }
.fx-unfold .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-unfold .fx-reset { grid-column: 1 / -1; }
.fx-unfold .fx-answer-text { flex: 1; min-width: 0; }
.fx-unfold .fx-tick { visibility: hidden; flex: 0 0 20px; font-size: 20px; }
.fx-unfold .fx-correct:has(input:checked) .fx-tick { visibility: visible; }
.fx-unfold .fx-miss:has(input:checked) .fx-answer-text { animation: fx-unfold-shake 0.24s; }
.fx-unfold .fx-tab { font-size: 12px; font-weight: 400; line-height: 1.4; }
.fx-unfold .fx-help { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.fx-unfold .fx-read { color: var(--fx-ink); font-size: 16px; line-height: 1.4; }
.fx-unfold .fx-view { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; color: var(--fx-ink); }
.fx-unfold .fx-stage { height: 760px; min-width: 0; padding: 10px; overflow: hidden; }
.fx-unfold .fx-perspective { width: 100%; height: 100%; perspective: 1000px; }
.fx-unfold .fx-paper { display: grid; gap: 6px; width: 100%; transform: rotateX(2deg) rotateY(-1deg) rotateZ(-0.3deg); transform-style: preserve-3d; transition: transform 0.65s; }
.fx-unfold .fx-email-header { margin: 0; min-height: 72px; padding: 10px; border: 2px solid var(--fx-ink); background: var(--fx-paper); font-size: 14px; line-height: 1.4; }
.fx-unfold .fx-start { margin: 0; height: 24px; font-size: 14px; font-weight: 800; line-height: 24px; }
.fx-unfold .fx-panel { position: relative; min-width: 0; height: 200px; }
.fx-unfold .fx-turn { position: relative; width: 100%; height: 100%; transform-origin: 50% 0; transform-style: preserve-3d; transform: translateY(0%) rotateX(0deg) translateZ(1px); transition: transform 0.65s; }
.fx-unfold .fx-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 1.35; backface-visibility: hidden; transition: visibility 0s 0.325s; }
.fx-unfold .fx-cover { justify-content: center; visibility: visible; transform: translateZ(1px); }
.fx-unfold .fx-back { visibility: hidden; transform: rotateX(180deg) translateZ(1px); }
.fx-unfold .fx-face p { margin: 0; }
.fx-unfold .fx-tag { display: inline-block; padding: 3px 6px; border: 1px solid var(--fx-muted); font-size: 12px; font-weight: 700; }
.fx-unfold .fx-main { background: var(--fx-sun-pale); border-color: var(--fx-sun); box-shadow: 0 0 0 2px var(--fx-sun-pale); }
.fx-unfold .fx-detail { background: var(--fx-paper); }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-turn1, .fx-unfold:has(#fx-unfold-f2:checked) .fx-turn2, .fx-unfold:has(#fx-unfold-f3:checked) .fx-turn3 { transform: translateY(100%) rotateX(-180deg) translateZ(1px); }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-p1 .fx-cover, .fx-unfold:has(#fx-unfold-f2:checked) .fx-p2 .fx-cover, .fx-unfold:has(#fx-unfold-f3:checked) .fx-p3 .fx-cover { visibility: hidden; }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-p1 .fx-back, .fx-unfold:has(#fx-unfold-f2:checked) .fx-p2 .fx-back, .fx-unfold:has(#fx-unfold-f3:checked) .fx-p3 .fx-back { visibility: visible; }
.fx-unfold:has(#fx-unfold-answer-a:checked) .fx-p3 .fx-face, .fx-unfold:has(#fx-unfold-answer-c:checked) .fx-p2 .fx-face, .fx-unfold:has(#fx-unfold-answer-d:checked) .fx-p3 .fx-face { box-shadow: 0 0 0 3px var(--fx-muted); }
.fx-unfold:has(#fx-unfold-answer-b:checked) .fx-p1 .fx-face { background: var(--fx-mint-pale); border-color: var(--fx-mint); box-shadow: 0 0 0 3px var(--fx-mint-pale); }
.fx-unfold:has(#fx-unfold-answer-b:checked) .fx-main { background: var(--fx-mint-pale); border-color: var(--fx-mint); box-shadow: none; }
.fx-unfold:has(#fx-unfold-answer-b:checked) .fx-detail { border-color: var(--fx-muted); background: var(--fx-paper); }
.fx-unfold .fx-messages { display: grid; gap: 12px; min-width: 0; }
.fx-unfold .fx-live { display: grid; min-width: 0; }
.fx-unfold .fx-sentence { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-unfold .fx-initial, .fx-unfold .fx-second-closed, .fx-unfold .fx-third-closed, .fx-unfold .fx-no-answer { visibility: visible; }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-initial, .fx-unfold:has(#fx-unfold-f2:checked) .fx-initial, .fx-unfold:has(#fx-unfold-f3:checked) .fx-initial { visibility: hidden; }
.fx-unfold:has(#fx-unfold-f2:checked) .fx-first-closed, .fx-unfold:has(#fx-unfold-f3:checked) .fx-first-closed { visibility: visible; }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-first-closed { visibility: hidden; }
.fx-unfold:has(#fx-unfold-f1:checked) .fx-first-open, .fx-unfold:has(#fx-unfold-f2:checked) .fx-second-open, .fx-unfold:has(#fx-unfold-f3:checked) .fx-third-open { visibility: visible; }
.fx-unfold:has(#fx-unfold-f2:checked) .fx-second-closed, .fx-unfold:has(#fx-unfold-f3:checked) .fx-third-closed { visibility: hidden; }
.fx-unfold:has(#fx-unfold-answer-a:checked) .fx-no-answer, .fx-unfold:has(#fx-unfold-answer-b:checked) .fx-no-answer, .fx-unfold:has(#fx-unfold-answer-c:checked) .fx-no-answer, .fx-unfold:has(#fx-unfold-answer-d:checked) .fx-no-answer { visibility: hidden; }
.fx-unfold:has(#fx-unfold-answer-a:checked) .fx-feedback-a, .fx-unfold:has(#fx-unfold-answer-b:checked) .fx-feedback-b, .fx-unfold:has(#fx-unfold-answer-c:checked) .fx-feedback-c, .fx-unfold:has(#fx-unfold-answer-d:checked) .fx-feedback-d { visibility: visible; }
@keyframes fx-unfold-shake { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-2px); } 70% { transform: translateX(2px); } }
@container (max-width: 480px) { .fx-unfold .fx-view, .fx-unfold .fx-fold-controls, .fx-unfold .fx-answers { grid-template-columns: minmax(0, 1fr); } .fx-unfold .fx-stage { height: 900px; } .fx-unfold .fx-panel { height: 240px; } }
@media (prefers-reduced-motion: reduce) { .fx-unfold .fx-turn, .fx-unfold .fx-paper, .fx-unfold .fx-face { transition: none; } .fx-unfold .fx-miss:has(input:checked) .fx-answer-text { animation: none; } }