/* A transparent reveal mask: motion opens it; resting closes it. */
#cosmos-reveal{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:21;
  pointer-events:none;
  user-select:none;
  contain:strict;
  mix-blend-mode:screen;
  opacity:.78;
}
#cosmos-reveal[hidden],
body.intro-pending #cosmos-reveal,
body.intro-revealing #cosmos-reveal,
body:has(dialog[open]) #cosmos-reveal{visibility:hidden}
@media (any-hover:none),(forced-colors:active){#cosmos-reveal{display:none}}
@media print{#cosmos-reveal{display:none}}

/* Native cursor keeps its exact hotspot and works above dialogs and video. */
@media (any-hover:hover) and (any-pointer:fine) and (forced-colors:none){
  html,html body,html body *,html body.copy-edit-mode [data-copy-ref],dialog::backdrop{
    cursor:url('/assets/tech-star-cursor.svg') 12 12,crosshair!important;
  }
}
