.fx-tuck { --fx-fold: 0; display: grid; gap: 14px; }
.fx-tuck:has(#fx-tuck-fold:checked) { --fx-fold: 1; }
.fx-tuck > * { color: var(--fx-ink); }
.fx-tuck .fx-tuck-steps { margin: 0; padding-left: 24px; font-size: 16px; line-height: 1.5; }
.fx-tuck .fx-tuck-goal, .fx-tuck .fx-tuck-read, .fx-tuck .fx-tuck-report-label { margin: 0; font-size: 16px; line-height: 1.5; }
.fx-tuck .fx-tuck-controls, .fx-tuck .fx-tuck-report { display: grid; gap: 12px; min-width: 0; }
.fx-tuck .fx-tuck-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.fx-tuck .fx-tuck-group legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.fx-tuck .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-tuck .fx-tuck-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-tuck .fx-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px 12px; font-size: 16px; line-height: 1.3; white-space: normal; color: var(--fx-ink); background: var(--fx-paper); cursor: pointer; }
.fx-tuck .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint); }
.fx-tuck .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-tuck .fx-tuck-desk { position: relative; height: 330px; box-sizing: border-box; padding: 0; overflow: hidden; background: var(--fx-sun); color: var(--fx-ink); }
.fx-tuck .fx-tuck-paper-label { position: absolute; left: 14px; top: 16px; font-size: 14px; }
.fx-tuck .fx-tuck-peg-label { position: absolute; left: 0; right: 0; top: 48px; text-align: center; font-size: 14px; }
.fx-tuck .fx-tuck-perspective { position: absolute; left: 14px; right: 14px; top: 105px; height: 82px; perspective: 700px; }
.fx-tuck .fx-tuck-sheet { display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; background: var(--fx-sun-pale); border: 2px solid var(--fx-ink); border-radius: 3px; transform: rotateX(12deg) rotateY(-5deg); transform-style: preserve-3d; transition: transform 0.7s; }
.fx-tuck .fx-tuck-word { --fx-slot: 1.1em; grid-area: 1 / 1; display: flex; align-items: center; position: relative; font-size: 34px; font-weight: 800; line-height: 1.2; white-space: nowrap; transform-style: preserve-3d; }
.fx-tuck .fx-tuck-word.fx-tuck-c { --fx-slot: 1.65em; }
.fx-tuck .fx-tuck-word, .fx-tuck .fx-tuck-key, .fx-tuck .fx-tuck-msg { visibility: hidden; }
.fx-tuck .fx-tuck-slot { position: relative; display: inline-block; width: var(--fx-slot); height: 1.2em; transform-style: preserve-3d; }
.fx-tuck .fx-tuck-slot::before { content: ""; position: absolute; left: 0; top: -6px; bottom: -6px; border-left: 2px dashed var(--fx-coral); }
.fx-tuck .fx-tuck-band { position: absolute; inset: 0; white-space: pre; text-align: right; background: var(--fx-coral-pale); transform-origin: left center; transform-style: preserve-3d; backface-visibility: hidden; transform: rotateY(calc(var(--fx-fold) * -180deg)) translateZ(calc(var(--fx-fold) * 1px)); transition: transform 0.75s; }
.fx-tuck .fx-tuck-tail { transform: translateX(calc(var(--fx-fold) * (0.26em - var(--fx-slot)))); transition: transform 0.75s; }
.fx-tuck .fx-tuck-peg { position: absolute; left: 0; top: 0; color: var(--fx-coral); transform: translateY(calc(-1.45em + var(--fx-fold) * 1.45em)) translateZ(3px); transition: transform 0.75s; }
.fx-tuck .fx-tuck-r .fx-tuck-peg { left: 50%; transform: translateY(-1.45em) translateZ(3px); }
.fx-tuck .fx-tuck-cross { position: absolute; left: calc(50% + 1em); top: -1.45em; opacity: 0; visibility: hidden; transform: translateZ(4px); transition: opacity 0.2s; }
.fx-tuck .fx-tuck-of { position: absolute; top: 194px; left: 0; right: 0; margin: 0; text-align: center; font-size: 20px; font-weight: 800; text-decoration: line-through; opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.fx-tuck .fx-tuck-keys { position: absolute; left: 12px; right: 12px; bottom: 14px; display: grid; }
.fx-tuck .fx-tuck-key { grid-area: 1 / 1; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.fx-tuck .fx-tuck-line { display: inline-block; height: 15px; margin-right: 8px; border-left: 2px dashed var(--fx-coral); vertical-align: middle; }
.fx-tuck .fx-tuck-shade { padding: 1px 5px; background: var(--fx-coral-pale); }
.fx-tuck .fx-tuck-says { display: grid; min-width: 0; }
.fx-tuck .fx-tuck-msg { grid-area: 1 / 1; margin: 0; font-size: 16px; line-height: 1.5; color: var(--fx-ink); overflow-wrap: anywhere; }
.fx-tuck .fx-tuck-detail { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; }
.fx-tuck:has(#fx-tuck-you:checked) .fx-tuck-y, .fx-tuck:has(#fx-tuck-they:checked) .fx-tuck-t, .fx-tuck:has(#fx-tuck-could:checked) .fx-tuck-c, .fx-tuck:has(#fx-tuck-your:checked) .fx-tuck-r { visibility: visible; }
.fx-tuck:has(#fx-tuck-you:checked) .fx-tuck-y0, .fx-tuck:has(#fx-tuck-they:checked) .fx-tuck-t0, .fx-tuck:has(#fx-tuck-could:checked) .fx-tuck-c0, .fx-tuck:has(#fx-tuck-your:checked) .fx-tuck-r0 { visibility: visible; }
.fx-tuck:has(#fx-tuck-fold:checked) .fx-tuck-flat { visibility: hidden; }
.fx-tuck:has(#fx-tuck-you:checked):has(#fx-tuck-fold:checked) .fx-tuck-y1, .fx-tuck:has(#fx-tuck-they:checked):has(#fx-tuck-fold:checked) .fx-tuck-t1, .fx-tuck:has(#fx-tuck-could:checked):has(#fx-tuck-fold:checked) .fx-tuck-c1, .fx-tuck:has(#fx-tuck-your:checked):has(#fx-tuck-fold:checked) .fx-tuck-r1 { visibility: visible; }
.fx-tuck:has(#fx-tuck-could:checked):has(#fx-tuck-fold:checked) .fx-tuck-of { visibility: visible; opacity: 1; }
.fx-tuck:has(#fx-tuck-your:checked):has(#fx-tuck-fold:checked) .fx-tuck-sheet { transform: rotateX(0deg) rotateY(0deg); animation: fx-tuck-shake 0.7s ease-out 1; }
.fx-tuck:has(#fx-tuck-your:checked):has(#fx-tuck-fold:checked) .fx-tuck-r .fx-tuck-peg { transform: translate(1em, -1.45em) rotate(22deg) translateZ(3px); animation: fx-tuck-bounce 0.75s ease-out 1; }
.fx-tuck:has(#fx-tuck-your:checked):has(#fx-tuck-fold:checked) .fx-tuck-cross { visibility: visible; opacity: 1; transition-delay: 0.7s; }
@keyframes fx-tuck-shake { 0% { transform: rotateX(12deg) rotateY(-5deg); } 25% { transform: translateY(-10px) rotateZ(-2deg) rotateX(18deg); } 50% { transform: translateY(-6px) rotateZ(2deg); } 75% { transform: translateY(-3px) rotateZ(-1deg); } 100% { transform: rotateX(0deg) rotateY(0deg); } }
@keyframes fx-tuck-bounce { 0% { transform: translateY(-1.45em) translateZ(3px); } 35% { transform: translateY(0) translateZ(3px); } 65% { transform: translate(0.6em, -2em) rotate(12deg) translateZ(3px); } 100% { transform: translate(1em, -1.45em) rotate(22deg) translateZ(3px); } }
@container (max-width: 480px) { .fx-tuck .fx-tuck-choices { grid-template-columns: 1fr; } .fx-tuck .fx-tuck-word { font-size: 26px; } }