/* A+ step 2: targets are buried and invisible. They only appear inside the scan.
   Today's target alone keeps a faint pulse so it can be found. */
.tg:not(.near):not(:focus-visible) :is(.br,.ok,.lb){opacity:0!important}
.tg:not([data-state=done]):not(.near):not(:focus-visible) :is(.day,.ic){opacity:0!important}
/* past days stay on the field: small icon and bare number. Under the scan they grow into the full detection frame. */
.tg[data-state=done]:not(.near):not(:focus-visible) .ic{transform:scale(.42);opacity:.9}
.tg[data-state=done]:not(.near):not(:focus-visible) .day{left:50%;top:calc(50% + 17px);translate:-50% 0;background:none;color:rgba(255,236,196,.85);padding:0;font-size:10px;text-shadow:0 0 6px #000}
.tg[data-state=done]:not(.near):not(:focus-visible) .day em{display:none}
.tg .day em{font-style:normal}
.tg :is(.br,.day,.ic,.ok){transition:opacity .35s,transform .45s cubic-bezier(.2,.8,.2,1)}
.tg:not(.near):not(:focus-visible) .br{transform:scale(1.5)}
.tg[data-state=today] .br,.tg[data-state=today] .ic{animation:none}
.tg[data-state=today]::before{content:"";position:absolute;left:50%;top:50%;translate:-50% -50%;width:3px;height:3px;border-radius:50%;background:rgba(215,230,245,.3);pointer-events:none;transition:opacity .3s}
.tg[data-state=today]::before{width:5px;height:5px;background:#FFE7AE;box-shadow:0 0 10px 2px rgba(255,200,87,.7)}
.tg[data-state=today]::after{inset:30%;border-color:rgba(255,200,87,.7);animation-duration:3.4s;pointer-events:none}
#gl,.tg{touch-action:none}
#targets{will-change:transform}
.tg .day{white-space:nowrap;text-transform:uppercase}
#mtag.off{color:var(--gold)}#mtag.off::before{display:none}
/* the field slides under the HUD: a soft scrim keeps the title and the read-outs legible */
.hud.top::before,.hud.bot::before{content:"";position:absolute;left:0;right:0;z-index:-1;pointer-events:none}
.hud.top::before{top:0;height:150%;background:linear-gradient(180deg,rgba(3,10,18,.34),rgba(3,10,18,.16) 55%,transparent)}
.hud.bot::before{bottom:0;height:170%;background:linear-gradient(0deg,rgba(3,10,18,.34),rgba(3,10,18,.16) 55%,transparent)}

.credit{font:500 11px var(--f-m);letter-spacing:.1em;text-transform:uppercase;color:#EAF3FB}
.credit a{color:var(--g);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.credit a:hover{color:#fff}
.hud{text-shadow:0 0 8px rgba(3,10,18,.95),0 0 2px rgba(3,10,18,.9)}
