.fx-magnify { --fx-lens-x: 100%; --fx-lens-y: 208px; display: grid; gap: 16px; }
.fx-magnify .fx-magnify-guide { margin: 0; color: var(--fx-ink); }
.fx-magnify .fx-magnify-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.fx-magnify .fx-magnify-goal { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fx-ink); }
.fx-magnify .fx-magnify-controls { min-width: 0; border: 0; padding: 0; margin: 0; }
.fx-magnify .fx-magnify-controls legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--fx-ink); }
.fx-magnify .fx-magnify-spots { display: flex; flex-wrap: nowrap; gap: 6px; }
.fx-magnify .fx-magnify-spot { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 0 1 40px; width: 40px; height: 40px; min-width: 32px; min-height: 40px; padding: 0; border: 2px solid var(--fx-muted); border-radius: 50%; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 1; cursor: pointer; }
.fx-magnify .fx-magnify-spot:has(input:checked) { border-color: var(--fx-ink); background: var(--fx-sky-pale); color: var(--fx-ink); font-weight: 800; }
.fx-magnify .fx-magnify-spot:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-magnify .fx-magnify-scene { position: relative; box-sizing: border-box; height: 400px; min-height: 400px; padding: 0; overflow: hidden; }
.fx-magnify .fx-magnify-card { position: absolute; top: 12px; left: 12px; right: 12px; height: 192px; box-sizing: border-box; border: 1px solid var(--fx-muted); border-radius: 5px; background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-magnify .fx-magnify-card-label { position: absolute; top: 12px; left: 12px; font-size: 14px; line-height: 1.4; }
.fx-magnify .fx-magnify-print { position: absolute; top: 96px; left: 12px; right: 12px; height: 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 6px; align-items: center; font-size: 12px; line-height: 1.5; color: var(--fx-muted); }
.fx-magnify .fx-magnify-glass { position: absolute; z-index: 1; top: var(--fx-lens-y); left: clamp(8px, calc(var(--fx-lens-x) - 78px), calc(100% - 178px)); box-sizing: border-box; width: 156px; height: 156px; border: 5px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); color: var(--fx-ink); transition: left 0.45s, top 0.45s; }
.fx-magnify .fx-magnify-glass::after { content: ""; position: absolute; top: 128px; left: 126px; width: 12px; height: 46px; border-radius: 4px; background: var(--fx-ink); transform-origin: top center; transform: rotate(-35deg); }
.fx-magnify .fx-magnify-face { position: relative; box-sizing: border-box; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; padding: 48px 12px 20px; }
.fx-magnify .fx-magnify-glass-label { position: absolute; top: 23px; left: 0; width: 100%; text-align: center; font-size: 12px; line-height: 1.2; }
.fx-magnify .fx-magnify-words { display: grid; height: 100%; align-items: center; }
.fx-magnify .fx-magnify-words p { grid-area: 1 / 1; visibility: hidden; margin: 0; font-size: 16px; line-height: 1.35; font-weight: 750; text-align: center; }
.fx-magnify .fx-magnify-notes { display: grid; gap: 8px; }
.fx-magnify .fx-magnify-note-label { font-size: 14px; color: var(--fx-ink); }
.fx-magnify .fx-magnify-messages { display: grid; }
.fx-magnify .fx-magnify-messages > p { grid-area: 1 / 1; visibility: hidden; margin: 0; box-sizing: border-box; font-size: 14px; line-height: 1.5; color: var(--fx-ink); }
.fx-magnify .fx-magnify-result { display: block; margin-bottom: 6px; }
.fx-magnify:has(#fx-magnify-start:checked) .fx-magnify-message-start, .fx-magnify:has(#fx-magnify-spot1:checked) .fx-magnify-word1, .fx-magnify:has(#fx-magnify-spot1:checked) .fx-magnify-message1, .fx-magnify:has(#fx-magnify-spot2:checked) .fx-magnify-word2, .fx-magnify:has(#fx-magnify-spot2:checked) .fx-magnify-message2, .fx-magnify:has(#fx-magnify-spot3:checked) .fx-magnify-word3, .fx-magnify:has(#fx-magnify-spot3:checked) .fx-magnify-message3, .fx-magnify:has(#fx-magnify-spot4:checked) .fx-magnify-word4, .fx-magnify:has(#fx-magnify-spot4:checked) .fx-magnify-message4 { visibility: visible; }
.fx-magnify:has(#fx-magnify-spot1:checked) { --fx-lens-x: 14%; --fx-lens-y: 54px; }
.fx-magnify:has(#fx-magnify-spot2:checked) { --fx-lens-x: 40%; --fx-lens-y: 54px; }
.fx-magnify:has(#fx-magnify-spot3:checked) { --fx-lens-x: 65%; --fx-lens-y: 54px; }
.fx-magnify:has(#fx-magnify-spot4:checked) { --fx-lens-x: 85%; --fx-lens-y: 54px; }
.fx-magnify:has(#fx-magnify-spot2:checked) .fx-magnify-part2 { text-decoration-line: underline; text-decoration-color: var(--fx-sky); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.fx-magnify:has(#fx-magnify-spot3:checked) .fx-magnify-part3, .fx-magnify:has(#fx-magnify-spot4:checked) .fx-magnify-part4 { text-decoration-line: underline; text-decoration-color: var(--fx-coral); text-decoration-thickness: 3px; text-underline-offset: 3px; }
@container (max-width: 480px) { .fx-magnify { --fx-lens-y: 282px; } .fx-magnify .fx-magnify-scene { height: 472px; min-height: 472px; } .fx-magnify .fx-magnify-card { height: 260px; } .fx-magnify .fx-magnify-print { top: 80px; left: 8px; right: 8px; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 68px 68px; gap: 20px 8px; } .fx-magnify:has(#fx-magnify-spot1:checked) { --fx-lens-x: 26%; --fx-lens-y: 48px; } .fx-magnify:has(#fx-magnify-spot2:checked) { --fx-lens-x: 74%; --fx-lens-y: 48px; } .fx-magnify:has(#fx-magnify-spot3:checked) { --fx-lens-x: 26%; --fx-lens-y: 136px; } .fx-magnify:has(#fx-magnify-spot4:checked) { --fx-lens-x: 74%; --fx-lens-y: 136px; } }
@media (prefers-reduced-motion: reduce) { .fx-magnify .fx-magnify-glass { transition: none; } }