Variants
Sizes and states, all built from the same markup.
Usage
Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.
Accessibility
- Role and state. A real radiogroup: each option is role=radio with aria-checked, one tab stop, and the result panel is a polite live region. The 3D scale is a decorative aria-hidden canvas.
- Keyboard. Tab to the group, Arrow keys, Home and End move and select a round, Enter or Space re-weighs the current round. Clicking the scene is a pointer extra.
- Reduced motion. With prefers-reduced-motion the weights are already on the pans and the beam jumps to its final tilt: no drops, swings or sparks, the verdict still reads.
- Contrast. The card uses the colour tokens (AA in light, dark and every preset); the winning pan and weights take the active preset colour.