/* Find the Difference (Math). Static pictures: no blinking or flashing; the only motion is a 0.3 s wiggle on a wrong quiz answer (off under reduced motion). Fades are removed under prefers-reduced-motion. */
.fd-screen .fd-instruction { margin: 0 0 6px; color: var(--muted); }
.fd-counter { font-size: 1.5rem; font-weight: 900; margin: 6px 0; color: var(--green-dark); }
.fd-status { min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.fd-note { margin: 0; min-height: 1.5em; font-weight: 800; color: var(--ink); opacity: 0; transition: opacity .4s ease; }
.fd-note.show { opacity: 1; }
.fd-hint-text { margin: 0; font-weight: 800; color: var(--ink); }
.fd-hint-text:not(:empty) { padding: 8px 14px; border-radius: 14px; background: var(--sky); border: 2px solid var(--blue-action); }
.fd-hint-btn { opacity: 0; transition: opacity .8s ease; }
.fd-hint-btn.show { opacity: 1; }
.fd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fd-figure { margin: 0; }
.fd-figure figcaption { font-weight: 900; margin-bottom: 6px; }
.fd-pic { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: white; touch-action: manipulation; }
.fd-pic img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.fd-spot { position: absolute; box-sizing: border-box; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.fd-spot:focus-visible { outline: 4px solid var(--blue-action); outline-offset: 2px; background: rgba(255,255,255,.35); }
.fd-spot.found { cursor: default; border: 4px solid var(--ink); box-shadow: 0 0 0 3px white, inset 0 0 0 3px white; }
.fd-spot.found::after { content: "★"; position: absolute; right: -6px; top: -14px; width: 28px; height: 28px; line-height: 28px; text-align: center; font-size: 1.1rem; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); color: var(--ink); }
.fd-finish { margin-top: 18px; padding: 18px; border: 3px solid var(--green-dark); border-radius: 22px; background: var(--paper); text-align: center; }
.fd-finish h2 { font-size: 2rem; margin: 0 0 8px; outline: none; }
.fd-cheer { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.fd-cheer img { width: 120px; height: auto; }
.fd-bubble { margin: 0; max-width: 420px; padding: 12px 18px; border: 3px solid var(--ink); border-radius: 20px; background: var(--yellow); font-weight: 900; font-size: 1.2rem; }
.fd-qline { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0; }
.fd-q { font-size: 1.35rem; font-weight: 900; margin: 0; }
.fd-speaker { flex: none; width: 52px; height: 52px; min-width: 48px; min-height: 48px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--blue-action); box-shadow: inset 0 -4px 0 rgba(0,0,0,.14); cursor: pointer; }
.fd-speaker:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; }
.fd-choices { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.fd-choice { min-width: 96px; min-height: 52px; font-size: 1.25rem; }
.fd-choice.right { box-shadow: inset 0 0 0 4px var(--yellow); }
.fd-choice:disabled { opacity: 1; }
.fd-answer-note { min-height: 1.6em; margin: 10px 0; font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fd-answer-note.right { color: var(--green-dark); }
.fd-answer-note.wrong { color: #B3261E; font-size: 1.6rem; } /* #B3261E on --paper is about 6.4:1 */
.fd-answer-note .fd-icon { flex: none; }
.fd-choice.wrong { outline: 4px solid #B3261E; outline-offset: 2px; animation: fd-wiggle .3s ease-in-out; }
@keyframes fd-wiggle { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.fd-great { font-size: 1.5rem; font-weight: 900; margin: 6px 0 12px; color: var(--green-dark); }
.fd-finish .button-row { justify-content: center; }
.fd-finish .btn { min-height: 52px; }
@media (max-width: 780px) { .fd-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fd-note, .fd-hint-btn { transition: none; } .fd-choice.wrong { animation: none; } }
.fd-card-piko { height: 84px; width: auto; display: block; }
