.fx-crease { display: grid; gap: 16px; }
.fx-crease .fx-steps { margin: 0; padding-left: 24px; }
.fx-crease .fx-steps li + li { margin-top: 6px; }
.fx-crease .fx-goal { margin: 0; color: var(--fx-ink); }
.fx-crease .fx-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-crease .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-crease .fx-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-crease .fx-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 10px; border: 2px solid var(--fx-ink); background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; cursor: pointer; }
.fx-crease .fx-btn::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid var(--fx-ink); background: var(--fx-paper); }
.fx-crease .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); }
.fx-crease .fx-btn:has(input:checked)::before { background: var(--fx-ink); }
.fx-crease .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-crease .fx-control-tip { margin: 10px 0 0; font-size: 14px; color: var(--fx-ink); }
.fx-crease .fx-stage { box-sizing: border-box; height: 650px; padding: 12px; color: var(--fx-ink); }
.fx-crease .fx-caption { display: block; height: 24px; font-size: 16px; line-height: 24px; text-align: center; }
.fx-crease .fx-view { height: 560px; perspective: 1000px; }
.fx-crease .fx-sheet { width: calc(100% - 18px); max-width: 520px; margin: 12px auto 0; transform: rotateX(5deg) rotateY(-2deg); transform-origin: center top; transform-style: preserve-3d; font-size: 15px; line-height: 1.4; }
.fx-crease .fx-tail { transform-style: preserve-3d; transform-origin: center top; transform: translateY(0px) translateZ(0px) rotateX(0deg); transition: transform 0.6s; }
.fx-crease .fx-piece { box-sizing: border-box; height: 108px; padding: 8px 12px; background: var(--fx-paper); border-left: 1px solid var(--fx-ink); border-right: 1px solid var(--fx-ink); }
.fx-crease .fx-sheet > .fx-piece { border-top: 1px solid var(--fx-ink); }
.fx-crease .fx-last { border-bottom: 1px solid var(--fx-ink); }
.fx-crease .fx-piece p { margin: 4px 0 0; }
.fx-crease .fx-paras { display: grid; height: 20px; font-size: 13px; line-height: 20px; }
.fx-crease .fx-paras b { grid-area: 1 / 1; visibility: hidden; }
.fx-crease .fx-paras .fx-always { visibility: visible; }
.fx-crease .fx-foldline { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; height: 28px; border-top: 2px dashed var(--fx-muted); border-left: 1px solid var(--fx-ink); border-right: 1px solid var(--fx-ink); background: var(--fx-paper); font-size: 13px; line-height: 20px; }
.fx-crease .fx-foldline svg { width: 40px; height: 18px; fill: none; stroke: var(--fx-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-crease:has(#fx-crease-a:checked) .fx-tail-a { transform: translateY(6px) translateZ(4px) rotateX(-14deg); }
.fx-crease:has(#fx-crease-b:checked) .fx-tail-b { transform: translateY(6px) translateZ(4px) rotateX(24deg); }
.fx-crease:has(#fx-crease-c:checked) .fx-tail-c { transform: translateY(6px) translateZ(4px) rotateX(-24deg); }
.fx-crease:has(#fx-crease-a:checked) .fx-pa, .fx-crease:has(#fx-crease-b:checked):not(:has(#fx-crease-a:checked)) .fx-pb2, .fx-crease:has(#fx-crease-a:checked):has(#fx-crease-b:checked) .fx-pb3, .fx-crease:has(#fx-crease-c:checked):not(:has(#fx-crease-a:checked)):not(:has(#fx-crease-b:checked)) .fx-pc2, .fx-crease:has(#fx-crease-c:checked):has(#fx-crease-a:checked):not(:has(#fx-crease-b:checked)) .fx-pc3, .fx-crease:has(#fx-crease-c:checked):has(#fx-crease-b:checked):not(:has(#fx-crease-a:checked)) .fx-pc3, .fx-crease:has(#fx-crease-a:checked):has(#fx-crease-b:checked):has(#fx-crease-c:checked) .fx-pc4 { visibility: visible; }
.fx-crease .fx-tick { visibility: hidden; margin: 8px 0 0; padding: 4px; background: var(--fx-mint-pale); color: var(--fx-ink); font-size: 14px; line-height: 20px; text-align: center; }
.fx-crease .fx-feedback { display: grid; gap: 10px; min-width: 0; }
.fx-crease .fx-readout { display: grid; min-width: 0; font-size: 16px; line-height: 1.45; }
.fx-crease .fx-readout > p { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); }
.fx-crease .fx-layout { display: block; margin-bottom: 8px; font-weight: 700; }
.fx-crease:not(:has(#fx-crease-a:checked)):not(:has(#fx-crease-b:checked)):not(:has(#fx-crease-c:checked)) .fx-s0, .fx-crease:has(#fx-crease-a:checked):not(:has(#fx-crease-b:checked)):not(:has(#fx-crease-c:checked)) .fx-s1, .fx-crease:has(#fx-crease-b:checked):not(:has(#fx-crease-a:checked)):not(:has(#fx-crease-c:checked)) .fx-s2, .fx-crease:has(#fx-crease-c:checked):not(:has(#fx-crease-a:checked)):not(:has(#fx-crease-b:checked)) .fx-s3, .fx-crease:has(#fx-crease-a:checked):has(#fx-crease-b:checked):not(:has(#fx-crease-c:checked)) .fx-s4, .fx-crease:has(#fx-crease-a:checked):has(#fx-crease-c:checked):not(:has(#fx-crease-b:checked)) .fx-s5, .fx-crease:has(#fx-crease-b:checked):has(#fx-crease-c:checked):not(:has(#fx-crease-a:checked)) .fx-s6, .fx-crease:has(#fx-crease-a:checked):has(#fx-crease-b:checked):has(#fx-crease-c:checked) .fx-s7, .fx-crease:has(#fx-crease-b:checked):has(#fx-crease-c:checked):not(:has(#fx-crease-a:checked)) .fx-tick { visibility: visible; }
@container (max-width: 480px) { .fx-crease .fx-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-crease .fx-tail { transition: none; } }