.fx-squash { display: grid; gap: 16px; }
.fx-squash .fx-squash-goal { margin: 0; font-weight: 700; }
.fx-squash .fx-note ol { margin: 0; padding-left: 24px; }
.fx-squash .fx-note li + li { margin-top: 6px; }
.fx-squash .fx-squash-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-squash .fx-squash-controls legend { padding: 0; margin-bottom: 12px; font-weight: 700; }
.fx-squash .fx-squash-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fx-squash .fx-squash-choice { display: grid; justify-items: center; gap: 8px; min-width: 0; min-height: 72px; box-sizing: border-box; padding: 10px 4px; color: var(--fx-ink); background: var(--fx-paper); font-size: 14px; cursor: pointer; }
.fx-squash .fx-squash-choice:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint-pale); border-color: var(--fx-ink); }
.fx-squash .fx-squash-choice:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-squash .fx-squash-pair { display: flex; gap: 6px; align-items: center; }
.fx-squash .fx-squash-pair span { padding: 3px; border: 1px solid var(--fx-ink); border-radius: 3px; background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-squash .fx-squash-summary, .fx-squash .fx-squash-says, .fx-squash .fx-squash-word-label { display: grid; }
.fx-squash .fx-squash-summary p, .fx-squash .fx-squash-says p, .fx-squash .fx-squash-word-label span { grid-area: 1 / 1; margin: 0; }
.fx-squash .fx-squash-progress, .fx-squash .fx-squash-done { visibility: hidden; }
.fx-squash:has(input:checked) .fx-squash-start { visibility: hidden; }
.fx-squash:has(input:checked) .fx-squash-progress { visibility: visible; }
.fx-squash .fx-squash-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-squash .fx-squash-picture { margin: 0; min-width: 0; }
.fx-squash .fx-squash-caption { font-size: 14px; margin-top: 8px; }
.fx-squash .fx-squash-feedback { display: grid; gap: 12px; min-width: 0; }
.fx-squash .fx-squash-table { position: relative; height: 560px; box-sizing: border-box; color: var(--fx-ink); overflow: hidden; }
.fx-squash .fx-squash-view { position: absolute; top: 8px; left: 8px; right: 8px; height: 530px; perspective: 700px; }
.fx-squash .fx-squash-board { height: 450px; background: var(--fx-sun-pale); border-top: 3px solid var(--fx-ink); border-bottom: 3px solid var(--fx-ink); transform: rotateX(-6deg); transform-origin: center top; transform-style: preserve-3d; }
.fx-squash .fx-squash-item { --fx-on: 0; --fx-before: visible; --fx-after: hidden; }
.fx-squash .fx-squash-before { visibility: var(--fx-before); }
.fx-squash .fx-squash-after { visibility: var(--fx-after); }
.fx-squash .fx-squash-row { position: relative; height: 90px; transform-style: preserve-3d; }
.fx-squash .fx-squash-word-label { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 700; }
.fx-squash .fx-squash-apost-label { position: absolute; top: 23px; right: 3px; font-size: 12px; }
.fx-squash .fx-squash-tiles { position: relative; width: 168px; height: 90px; margin: 0 auto; transform-style: preserve-3d; }
.fx-squash .fx-squash-tile { --fx-to: var(--fx-from); position: absolute; top: 44px; left: calc((var(--fx-from) + (var(--fx-to) - var(--fx-from)) * var(--fx-on)) * 24px); width: 22px; height: 30px; box-sizing: border-box; display: grid; place-items: center; border: 1px solid var(--fx-ink); border-bottom-width: 3px; border-radius: 4px; background: var(--fx-paper); color: var(--fx-ink); font-size: 22px; line-height: 1; font-weight: 700; transform-style: preserve-3d; transition: left 0.7s, transform 0.7s, background 0.3s, box-shadow 0.3s; }
.fx-squash .fx-squash-fall { background: var(--fx-coral-pale); transform: translateY(calc(var(--fx-on) * var(--fx-drop))) rotateX(calc(var(--fx-on) * 65deg)) rotateZ(calc(var(--fx-on) * 12deg)) translateZ(calc(var(--fx-on) * -8px)); }
.fx-squash .fx-squash-apost { background: var(--fx-coral); transform: translateY(calc((var(--fx-on) - 1) * 26px)) translateZ(4px); }
.fx-squash .fx-squash-fallen-label { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; font-weight: 700; }
.fx-squash:has(#fx-squash-do:checked) .fx-squash-do, .fx-squash:has(#fx-squash-have:checked) .fx-squash-have, .fx-squash:has(#fx-squash-am:checked) .fx-squash-am, .fx-squash:has(#fx-squash-is:checked) .fx-squash-is, .fx-squash:has(#fx-squash-are:checked) .fx-squash-are { --fx-on: 1; --fx-before: hidden; --fx-after: visible; }
.fx-squash:has(#fx-squash-do:checked):has(#fx-squash-have:checked):has(#fx-squash-am:checked):has(#fx-squash-is:checked):has(#fx-squash-are:checked) .fx-squash-progress { visibility: hidden; }
.fx-squash:has(#fx-squash-do:checked):has(#fx-squash-have:checked):has(#fx-squash-am:checked):has(#fx-squash-is:checked):has(#fx-squash-are:checked) .fx-squash-done { visibility: visible; }
.fx-squash:has(#fx-squash-do:checked):has(#fx-squash-have:checked):has(#fx-squash-am:checked):has(#fx-squash-is:checked):has(#fx-squash-are:checked) .fx-squash-letter { background: var(--fx-mint); box-shadow: 0 0 8px var(--fx-sun); }
.fx-squash:has(#fx-squash-do:checked):has(#fx-squash-have:checked):has(#fx-squash-am:checked):has(#fx-squash-is:checked):has(#fx-squash-are:checked) .fx-squash-apost { box-shadow: 0 0 8px var(--fx-sun); }
@container (max-width: 480px) { .fx-squash .fx-squash-layout, .fx-squash .fx-squash-choices { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-squash .fx-squash-tile { transition: none; } }