/* Loading cover (2026-11-24): Nathan: "When Bot Town opens, can you show a loading screen until it is fully loaded?
   It looks weird when you open the town and wait for things to pop in." The cover is pure CSS so it is there from
   the very first paint; js/loadcover.js lifts it once the view is ready. If the script never runs, it lifts itself
   after 25 s so the town can't stay hidden. */
.viewport::before{content:"";position:absolute;inset:0;z-index:900;pointer-events:none;
  background:radial-gradient(circle at 50% 45%,#16293a 0,#0b1824 45%,#060d16 100%);
  opacity:1;visibility:visible;transition:opacity .6s ease,visibility 0s linear .6s;
  animation:lc-failsafe 0s linear 25s forwards}
.viewport::after{content:attr(data-lc-text);position:absolute;left:50%;top:50%;z-index:901;pointer-events:none;
  transform:translate(-50%,-50%);min-width:220px;padding:58px 0 0;text-align:center;
  font:800 15px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.32em;text-transform:uppercase;color:#70d3cf;
  background:
    radial-gradient(circle,#70d3cf 0 4px,transparent 5px) 50% 14px/14px 14px no-repeat,
    linear-gradient(90deg,transparent,#70d3cf55,transparent) 50% 40px/var(--lc-w,40%) 2px no-repeat;
  opacity:1;visibility:visible;transition:opacity .4s ease,visibility 0s linear .4s;
  animation:lc-pulse 1.6s ease-in-out infinite,lc-failsafe 0s linear 25s forwards}
.viewport:not([data-lc-text])::after{content:"Loading Bot Town"}
.viewport.lc-done::before,.viewport.lc-done::after{opacity:0;visibility:hidden;animation:none}
@keyframes lc-pulse{0%,100%{filter:brightness(.75)}50%{filter:brightness(1.25)}}
@keyframes lc-failsafe{to{opacity:0;visibility:hidden}}
@media (prefers-reduced-motion:reduce){.viewport::after{animation:lc-failsafe 0s linear 25s forwards}}
