.fx-tenstick { display: grid; gap: 14px; }
.fx-tenstick .fx-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fx-tenstick .fx-goal, .fx-tenstick .fx-help { margin: 0; color: var(--fx-ink); }
.fx-tenstick .fx-help { font-size: 14px; }
.fx-tenstick .fx-control-area { display: grid; gap: 10px; }
.fx-tenstick .fx-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px; align-items: end; }
.fx-tenstick .fx-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-tenstick .fx-group legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.fx-tenstick .fx-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-tenstick .fx-slot { display: grid; min-width: 0; }
.fx-tenstick .fx-wait, .fx-tenstick .fx-add { grid-area: 1 / 1; box-sizing: border-box; min-height: 68px; min-width: 24px; padding: 8px 4px; border: 2px solid var(--fx-ink); background: var(--fx-coral); color: var(--fx-ink); border-radius: 5px; text-align: center; font-size: 14px; line-height: 1.3; }
.fx-tenstick .fx-wait { display: grid; align-content: center; }
.fx-tenstick .fx-add { display: grid; align-content: center; cursor: pointer; }
.fx-tenstick .fx-add span { grid-area: 1 / 1; }
.fx-tenstick .fx-undoword { visibility: hidden; }
.fx-tenstick .fx-add:has(input:checked) { background: var(--fx-mint-pale); color: var(--fx-ink); }
.fx-tenstick .fx-add:has(input:checked) .fx-addword { visibility: hidden; }
.fx-tenstick .fx-add:has(input:checked) .fx-undoword { visibility: visible; }
.fx-tenstick .fx-add:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-tenstick .fx-add2, .fx-tenstick .fx-add3, .fx-tenstick .fx-add4 { visibility: hidden; }
.fx-tenstick:has(#fx-tenstick-c1:checked):not(:has(#fx-tenstick-c3:checked)) .fx-add2, .fx-tenstick:has(#fx-tenstick-c2:checked):not(:has(#fx-tenstick-c4:checked)) .fx-add3, .fx-tenstick:has(#fx-tenstick-c3:checked) .fx-add4 { visibility: visible; }
.fx-tenstick:has(#fx-tenstick-c2:checked) .fx-add1, .fx-tenstick:has(#fx-tenstick-c2:checked) .fx-wait2, .fx-tenstick:has(#fx-tenstick-c3:checked) .fx-wait3, .fx-tenstick:has(#fx-tenstick-c4:checked) .fx-wait4 { visibility: hidden; }
.fx-tenstick .fx-view { position: relative; height: 365px; perspective: 700px; color: var(--fx-ink); }
.fx-tenstick .fx-world { position: absolute; inset: 0; transform-style: preserve-3d; }
.fx-tenstick .fx-racklabel { position: absolute; left: 0; top: 12px; width: 50%; text-align: center; font-size: 14px; }
.fx-tenstick .fx-tower { position: absolute; bottom: 45px; left: 22%; width: 24px; height: 240px; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(-20deg); }
.fx-tenstick .fx-cube { position: absolute; width: 24px; height: 24px; left: 0; bottom: calc(var(--fx-level, 0) * 24px); transform-style: preserve-3d; transition: transform 0.45s; }
.fx-tenstick .fx-cube span, .fx-tenstick .fx-stick span { position: absolute; inset: 0; box-sizing: border-box; border: 1px solid var(--fx-ink); background: var(--fx-sky); }
.fx-tenstick .fx-front { transform: translateZ(12px); }
.fx-tenstick .fx-cube .fx-side, .fx-tenstick .fx-stick .fx-side { background: var(--fx-sky-pale); transform: rotateY(90deg) translateZ(12px); }
.fx-tenstick .fx-cube .fx-top, .fx-tenstick .fx-stick .fx-top { background: var(--fx-sky-pale); height: 24px; transform: rotateX(90deg) translateZ(12px); }
.fx-tenstick .fx-orange .fx-front { background: var(--fx-coral); }
.fx-tenstick .fx-orange .fx-side, .fx-tenstick .fx-orange .fx-top { background: var(--fx-coral-pale); }
.fx-tenstick .fx-empty { position: absolute; top: 0; left: 0; width: 24px; height: 24px; box-sizing: border-box; border: 2px dashed var(--fx-ink); transform: translateZ(12px); }
.fx-tenstick .fx-incoming { transform: translate3d(0, -36px, 0) scale(0); }
.fx-tenstick .fx-stick { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(2px); opacity: 0; transition: opacity 0.25s 0.4s; }
.fx-tenstick:has(#fx-tenstick-c1:checked) .fx-incoming { transform: translate3d(0, 0, 0) scale(1); }
.fx-tenstick:has(#fx-tenstick-c1:checked) .fx-stick { opacity: 1; }
.fx-tenstick:has(#fx-tenstick-c1:checked) .fx-stick .fx-front { border: 2px solid var(--fx-sun); }
.fx-tenstick .fx-mat { position: absolute; left: 53%; width: 40%; bottom: 39px; height: 6px; background: var(--fx-mint); }
.fx-tenstick .fx-leftovers { position: absolute; left: 57%; bottom: 45px; width: 80px; height: 24px; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(-20deg); }
.fx-tenstick .fx-leftovers .fx-cube { left: calc(var(--fx-slot) * 28px); bottom: 0; transform: translate3d(0, -45px, 0) scale(0); }
.fx-tenstick:has(#fx-tenstick-c2:checked) .fx-extra2, .fx-tenstick:has(#fx-tenstick-c3:checked) .fx-extra3, .fx-tenstick:has(#fx-tenstick-c4:checked) .fx-extra4 { transform: translate3d(0, 0, 0) scale(1); }
.fx-tenstick .fx-rackcaption { position: absolute; bottom: 10px; left: 0; width: 50%; display: grid; text-align: center; font-size: 14px; }
.fx-tenstick .fx-rackcaption b { grid-area: 1 / 1; }
.fx-tenstick .fx-ten { visibility: hidden; }
.fx-tenstick:has(#fx-tenstick-c1:checked) .fx-nine { visibility: hidden; }
.fx-tenstick:has(#fx-tenstick-c1:checked) .fx-ten { visibility: visible; }
.fx-tenstick .fx-leftlabel { position: absolute; bottom: 10px; left: 50%; width: 50%; text-align: center; font-size: 14px; }
.fx-tenstick .fx-digit { position: absolute; visibility: hidden; font-size: 26px; line-height: 1.2; background: var(--fx-sun-pale); padding: 0 8px; border-radius: 5px; }
.fx-tenstick .fx-digit1 { left: 20%; top: 43px; }
.fx-tenstick .fx-digit3 { left: 68%; bottom: 83px; }
.fx-tenstick:has(#fx-tenstick-c4:checked) .fx-digit { visibility: visible; }
.fx-tenstick .fx-readout { display: grid; }
.fx-tenstick .fx-panel { grid-area: 1 / 1; display: grid; grid-template-rows: auto auto 1fr; gap: 12px; visibility: hidden; min-width: 0; }
.fx-tenstick .fx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-tenstick .fx-cards p { margin: 0; padding: 8px 2px; text-align: center; border: 2px solid var(--fx-ink); border-radius: 6px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; }
.fx-tenstick .fx-cards strong { font-size: 26px; }
.fx-tenstick .fx-equation { text-align: center; margin: 0; }
.fx-tenstick .fx-sentence { margin: 0; align-self: start; }
.fx-tenstick:not(:has(#fx-tenstick-c1:checked)) .fx-s0, .fx-tenstick:has(#fx-tenstick-c1:checked):not(:has(#fx-tenstick-c2:checked)) .fx-s1, .fx-tenstick:has(#fx-tenstick-c2:checked):not(:has(#fx-tenstick-c3:checked)) .fx-s2, .fx-tenstick:has(#fx-tenstick-c3:checked):not(:has(#fx-tenstick-c4:checked)) .fx-s3, .fx-tenstick:has(#fx-tenstick-c4:checked) .fx-s4 { visibility: visible; }
@container (max-width: 480px) { .fx-tenstick .fx-controls { grid-template-columns: 1fr; } .fx-tenstick .fx-group:first-child .fx-slot { max-width: 120px; } }
@media (prefers-reduced-motion: reduce) { .fx-tenstick .fx-cube, .fx-tenstick .fx-stick { transition: none; } }