/* Adapted from Preetesh Jain's public MIT-licensed CodePen:
   https://codepen.io/preeteshjain/pen/KpvygJ */
.site-entry {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    background: #3498db;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s ease, visibility .32s ease;
}
html.site-entry-pending .site-entry {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.site-entry-ring {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: min(200px, 58vw);
    height: min(200px, 58vw);
    color: #fff;
    border: 5px solid #3498db;
    border-radius: 50%;
    animation: site-entry-border-scale 1s infinite ease-in-out;
}
.site-entry-ring > span {
    color: #fff;
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", sans-serif;
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 800;
    line-height: 1;
}
@keyframes site-entry-border-scale {
    0%, 100% { border: 5px solid #fff; }
    50% { border: 25px solid #3498db; }
}
@media (prefers-reduced-motion: reduce) {
    .site-entry { transition-duration: .01ms; }
    .site-entry-ring { animation: none; border-color: #fff; }
}
