/* US Nuclear Regulatory Commission — radiation-area ambiance: pulsing red alert
   glow, a radioactive-material warning sign, blinking red beacons, hazard stripes.
   Hidden until the egg activates (body.egg-on); stops at 7s.
   (loads only on /org/united-states-nuclear-regulatory-commission) */

#nrc-glow {
    position: fixed; inset: 0; z-index: 9996; pointer-events: none; display: none;
    background: radial-gradient(120% 90% at 50% 50%,
        rgba(255, 0, 0, 0) 45%, rgba(255, 20, 0, 0.10) 75%, rgba(180, 0, 0, 0.28) 100%);
}
body.egg-on #nrc-glow { display: block; animation: nrc-pulse 1.8s ease-in-out infinite; }
@keyframes nrc-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* hazard stripes top + bottom */
#nrc-top, #nrc-bot {
    position: fixed; left: 0; right: 0; height: 12px; z-index: 9998; pointer-events: none; display: none;
    background: repeating-linear-gradient(45deg, #f4d000 0 18px, #111 18px 36px);
}
#nrc-top { top: 0; } #nrc-bot { bottom: 0; }
body.egg-on #nrc-top, body.egg-on #nrc-bot { display: block; }

/* blinking red beacons */
.nrc-beacon {
    position: fixed; width: 14px; height: 14px; border-radius: 50%; z-index: 9999;
    pointer-events: none; background: #ff2020; display: none;
    box-shadow: 0 0 12px 4px rgba(255, 32, 32, 0.9);
}
.nrc-beacon.tl { top: 20px; left: 20px; }
.nrc-beacon.tr { top: 20px; right: 20px; }
body.egg-on .nrc-beacon { display: block; animation: nrc-blink 0.9s step-end infinite; }
body.egg-on .nrc-beacon.tr { animation-delay: 0.45s; }
@keyframes nrc-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.1; } }

/* radioactive-material warning sign */
#nrc-sign {
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
    z-index: 9999; pointer-events: none; text-align: center; display: none;
    background: #f4d000; color: #111; border: 3px solid #111; border-radius: 8px;
    padding: 0.55rem 1.1rem 0.7rem; box-shadow: 0 0 26px rgba(255, 40, 0, 0.5);
    font-family: ui-sans-serif, system-ui, sans-serif;
}
body.egg-on #nrc-sign { display: block; }
#nrc-sign .tre { font-size: 2.4rem; line-height: 1; }
#nrc-sign .t1 { font-size: 0.9rem; font-weight: 800; letter-spacing: 0.12em; }
#nrc-sign .t2 { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; margin-top: 0.1rem; }

@media (prefers-reduced-motion: reduce) {
    body.egg-on #nrc-glow { animation: none; }
    body.egg-on .nrc-beacon { animation: none; }
}
