.fx-stack { display: block; }
.fx-stack .fx-stack-inner { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 14px; line-height: 1.4; }
.fx-stack .fx-stack-steps ol { margin: 0; padding-left: 24px; }
.fx-stack .fx-stack-steps li + li { margin-top: 6px; }
.fx-stack .fx-stack-goal { margin: 0; font-weight: 800; }
.fx-stack .fx-stack-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-stack .fx-stack-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-stack .fx-stack-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.fx-stack .fx-stack-choice { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: start; align-items: start; gap: 8px; box-sizing: border-box; min-width: 0; min-height: 44px; margin: 0; padding: 10px; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); text-align: left; white-space: normal; cursor: pointer; }
.fx-stack .fx-stack-choice:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-stack .fx-stack-choice:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-stack .fx-stack-box { display: grid; place-items: center; box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; }
.fx-stack .fx-stack-checkmark { visibility: hidden; }
.fx-stack .fx-stack-choice:has(input:checked) .fx-stack-checkmark { visibility: visible; }
.fx-stack .fx-stack-choice:has(input:checked) .fx-stack-box { background: var(--fx-mint); }
.fx-stack .fx-stack-copy { min-width: 0; }
.fx-stack .fx-stack-hint { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; }
.fx-stack .fx-stack-quote { display: block; margin-top: 6px; font-weight: 400; }
.fx-stack .fx-stack-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; align-content: start; gap: 16px; box-sizing: border-box; height: 650px; min-width: 0; padding: 12px; overflow: hidden; }
.fx-stack .fx-stack-card { box-sizing: border-box; min-width: 0; padding: 12px; border: 2px solid var(--fx-ink); border-radius: 6px; background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-stack .fx-stack-card-title { display: block; font-size: 16px; }
.fx-stack .fx-stack-card ul { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.fx-stack .fx-stack-card li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; }
.fx-stack .fx-stack-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fx-mint); color: var(--fx-ink); font-size: 16px; font-weight: 800; visibility: hidden; }
.fx-stack .fx-stack-view { min-width: 0; height: 620px; perspective: 1000px; }
.fx-stack .fx-stack-letter { display: grid; grid-template-rows: 110px 140px 100px 100px 110px; gap: 8px; box-sizing: border-box; width: 100%; height: 620px; padding: 12px; border: 2px solid var(--fx-muted); border-radius: 4px; background: var(--fx-paper); color: var(--fx-ink); box-shadow: 0 4px 8px var(--fx-muted); transform: rotateX(2deg) rotateY(-2deg) translateZ(0); transform-origin: center top; transform-style: preserve-3d; transition: transform 0.45s, border-color 0.45s, box-shadow 0.45s; }
.fx-stack .fx-stack-section { display: grid; grid-template-rows: max-content 1fr; gap: 6px; box-sizing: border-box; min-width: 0; padding: 8px; }
.fx-stack .fx-stack-section > b { align-self: start; }
.fx-stack .fx-stack-section p { align-self: start; min-width: 0; margin: 0; }
.fx-stack .fx-stack-slot { border: 1px dashed var(--fx-muted); border-radius: 4px; background: var(--fx-sky-pale); transform-style: preserve-3d; }
.fx-stack .fx-stack-drop { box-sizing: border-box; padding: 8px; border-radius: 3px; background: var(--fx-paper); color: var(--fx-ink); box-shadow: 0 3px 6px var(--fx-muted); visibility: hidden; opacity: 0; transform: translate3d(0, -45px, 30px) scale(0); transform-origin: center top; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s, visibility 0.2s; }
.fx-stack:has(#fx-stack-why:checked) .fx-stack-addwhy, .fx-stack:has(#fx-stack-when:checked) .fx-stack-addwhen, .fx-stack:has(#fx-stack-who:checked) .fx-stack-addwho { visibility: visible; opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.fx-stack:has(#fx-stack-why:checked):has(#fx-stack-when:checked):has(#fx-stack-who:checked) .fx-stack-letter { border-color: var(--fx-mint); box-shadow: 0 0 10px var(--fx-mint); transform: rotateX(0deg) rotateY(0deg) translateZ(0); }
.fx-stack .fx-stack-notes { display: grid; gap: 8px; min-width: 0; }
.fx-stack .fx-stack-messages { display: grid; min-width: 0; }
.fx-stack .fx-stack-message { grid-area: 1 / 1; box-sizing: border-box; margin: 0; visibility: hidden; color: var(--fx-ink); }
.fx-stack .fx-stack-inline { display: inline; margin: 0; font-size: inherit; font-weight: 800; }
.fx-stack:has(#fx-stack-why:not(:checked)):has(#fx-stack-when:not(:checked)):has(#fx-stack-who:not(:checked)) .fx-stack-none { visibility: visible; }
.fx-stack:has(#fx-stack-why:checked):has(#fx-stack-when:not(:checked)):has(#fx-stack-who:not(:checked)) .fx-stack-onlywhy { visibility: visible; }
.fx-stack:has(#fx-stack-why:not(:checked)):has(#fx-stack-when:checked):has(#fx-stack-who:not(:checked)) .fx-stack-onlywhen { visibility: visible; }
.fx-stack:has(#fx-stack-why:not(:checked)):has(#fx-stack-when:not(:checked)):has(#fx-stack-who:checked) .fx-stack-onlywho { visibility: visible; }
.fx-stack:has(#fx-stack-why:checked):has(#fx-stack-when:checked):has(#fx-stack-who:not(:checked)) .fx-stack-two, .fx-stack:has(#fx-stack-why:checked):has(#fx-stack-when:not(:checked)):has(#fx-stack-who:checked) .fx-stack-two, .fx-stack:has(#fx-stack-why:not(:checked)):has(#fx-stack-when:checked):has(#fx-stack-who:checked) .fx-stack-two { visibility: visible; }
.fx-stack:has(#fx-stack-why:checked):has(#fx-stack-when:checked):has(#fx-stack-who:checked) .fx-stack-all { visibility: visible; }
@container (max-width: 480px) { .fx-stack .fx-stack-choices { grid-template-columns: 1fr; } .fx-stack .fx-stack-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: 230px 820px; height: 1120px; } .fx-stack .fx-stack-card { height: 230px; } .fx-stack .fx-stack-view { height: 820px; } .fx-stack .fx-stack-letter { height: 820px; grid-template-rows: 140px 188px 140px 140px 152px; transform: rotateX(1deg) rotateY(-1deg) translateZ(0); } }
@media (prefers-reduced-motion: reduce) { .fx-stack .fx-stack-letter, .fx-stack .fx-stack-drop { transition: none; } }