.fx-magnify { --fx-index: 0; --fx-light: var(--fx-muted); display: grid; gap: 16px; }
.fx-magnify:has(#fx-magnify-did:checked) { --fx-index: 1; }
.fx-magnify:has(#fx-magnify-government:checked) { --fx-index: 2; --fx-light: var(--fx-mint); }
.fx-magnify:has(#fx-magnify-decide:checked) { --fx-index: 3; --fx-light: var(--fx-mint); }
.fx-magnify:has(#fx-magnify-do:checked) { --fx-index: 4; }
.fx-magnify .fx-magnify-body { display: grid; gap: 16px; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--fx-ink); }
.fx-magnify .fx-magnify-body > .fx-note { margin: 0; }
.fx-magnify .fx-magnify-steps { margin: 0; padding-left: 24px; }
.fx-magnify .fx-magnify-steps li + li { margin-top: 4px; }
.fx-magnify .fx-magnify-goal { margin: 0; }
.fx-magnify .fx-magnify-controls { margin: 0; padding: 0; border: 0; min-width: 0; }
.fx-magnify .fx-magnify-controls legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.fx-magnify .fx-magnify-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fx-magnify .fx-magnify-choices .fx-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-width: 0; min-height: 68px; margin: 0; padding: 8px 4px; border: 2px solid var(--fx-ink); border-radius: 16px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 1.3; white-space: normal; cursor: pointer; }
.fx-magnify .fx-magnify-choices .fx-btn:has(input:checked) { background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-magnify .fx-magnify-choices .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-magnify .fx-magnify-spot { display: block; flex: 0 0 24px; box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); }
.fx-magnify .fx-btn:has(input:checked) .fx-magnify-spot { background: var(--fx-sun); border-width: 5px; }
.fx-magnify .fx-magnify-scene { position: relative; box-sizing: border-box; height: 310px; min-width: 0; padding: 0; border: 1px solid var(--fx-muted); border-radius: 16px; background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-magnify .fx-magnify-card-label { position: absolute; left: 14px; top: 14px; margin: 0; font-size: 14px; font-weight: 800; }
.fx-magnify .fx-magnify-card { position: absolute; left: 10px; right: 10px; top: 64px; height: 96px; box-sizing: border-box; border: 1px solid var(--fx-muted); border-radius: 8px; background: var(--fx-paper); }
.fx-magnify .fx-magnify-words { position: absolute; left: 49px; right: 49px; top: 0; bottom: 0; }
.fx-magnify .fx-magnify-part { position: absolute; left: calc(var(--fx-slot) * 25%); top: 50%; transform: translate(-50%, -50%); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.fx-magnify .fx-magnify-rail { position: absolute; left: 60px; right: 60px; top: 56px; height: 180px; }
.fx-magnify .fx-magnify-glass { position: absolute; left: calc(var(--fx-index) * 25%); top: 0; width: 112px; height: 180px; transform: translateX(-50%); transition: left 0.4s; }
.fx-magnify .fx-magnify-handle { position: absolute; left: 46px; top: 104px; width: 20px; height: 66px; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 8px; background: var(--fx-sun); }
.fx-magnify .fx-magnify-handle::before { content: ""; position: absolute; top: 13px; left: 3px; width: 10px; height: 6px; border-top: 1px solid var(--fx-ink); border-bottom: 1px solid var(--fx-ink); }
.fx-magnify .fx-magnify-light { display: inline-block; flex: 0 0 14px; box-sizing: border-box; width: 14px; height: 14px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-light); }
.fx-magnify .fx-magnify-handle .fx-magnify-light { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); }
.fx-magnify .fx-magnify-lens { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 112px; height: 112px; overflow: hidden; border: 5px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); }
.fx-magnify .fx-magnify-lens span { grid-area: 1 / 1; visibility: hidden; font-size: 16px; line-height: 1.5; font-weight: 800; white-space: nowrap; }
.fx-magnify .fx-magnify-lens .fx-magnify-key { text-decoration: underline; text-decoration-color: var(--fx-mint); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fx-magnify:has(#fx-magnify-government:checked) .fx-magnify-government-word, .fx-magnify:has(#fx-magnify-decide:checked) .fx-magnify-decide-word { text-decoration: underline; text-decoration-color: var(--fx-mint); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fx-magnify .fx-magnify-legend { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 12px; line-height: 1.5; }
.fx-magnify .fx-magnify-legend > span { display: flex; align-items: center; gap: 8px; }
.fx-magnify .fx-magnify-lens-symbol { display: inline-block; box-sizing: border-box; width: 22px; height: 22px; border: 3px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); }
.fx-magnify .fx-magnify-status, .fx-magnify .fx-magnify-feedback { display: grid; }
.fx-magnify .fx-magnify-status > p, .fx-magnify .fx-magnify-feedback > p { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-magnify .fx-magnify-status > p { font-size: 14px; }
.fx-magnify:has(#fx-magnify-what:checked) .fx-magnify-s0, .fx-magnify:has(#fx-magnify-did:checked) .fx-magnify-s1, .fx-magnify:has(#fx-magnify-government:checked) .fx-magnify-s2, .fx-magnify:has(#fx-magnify-decide:checked) .fx-magnify-s3, .fx-magnify:has(#fx-magnify-do:checked) .fx-magnify-s4 { visibility: visible; }
@container (max-width: 480px) { .fx-magnify .fx-magnify-choices { grid-template-columns: 1fr; } .fx-magnify .fx-magnify-choices .fx-btn { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 8px 12px; font-size: 14px; } .fx-magnify .fx-magnify-card { left: 6px; right: 6px; } .fx-magnify .fx-magnify-words { left: 0; right: 0; } .fx-magnify .fx-magnify-part { left: calc(var(--fx-word) * 1%); } .fx-magnify .fx-magnify-rail { left: 6px; right: 6px; } .fx-magnify .fx-magnify-glass { left: calc(56px + (100% - 112px) * var(--fx-index) / 4); } }