/* FR.immersion (js/game/immersion.js): body.im-peek blurs the English glosses. A standalone gloss is revealed by a
   click / tap (.im-seen); a gloss that labels a control shows on hover or keyboard focus, and stays visible on touch
   screens (no hover there, and a tap would press the control). Transparent text + a text shadow blurs inline text
   without changing the layout. Keep the control list in step with CONTROL in immersion.js. */
@media (hover: hover) {
  body.im-peek
    :is(.g-en, .dj-en):not(.im-seen):not(
      :is(button, a, label, summary, select, [role="button"], [role="tab"], [data-view], [data-act], [tabindex]):is(:hover, :focus-visible) *
    ) {
    color: transparent;
    text-shadow: 0 0 7px var(--g-gloss, var(--sub));
    cursor: help;
    user-select: none;
  }
}
@media (hover: none) {
  body.im-peek
    :is(.g-en, .dj-en):not(.im-seen):not(:is(button, a, label, summary, select, [role="button"], [role="tab"], [data-view], [data-act], [tabindex]) *) {
    color: transparent;
    text-shadow: 0 0 7px var(--g-gloss, var(--sub));
    user-select: none;
  }
}
body.im-peek .im-seen:is(.g-en, .dj-en) {
  animation: im-reveal 0.25s ease-out;
}
@keyframes im-reveal {
  from {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.im-peek .im-seen:is(.g-en, .dj-en) {
    animation: none;
  }
}
