/* Homepage splash texts around the logo, like Minecraft's title screen: yellow, tilted, and each breathing
   (growing and shrinking) at its own pace. Positions are percentages of the logo's square. */
.Home {
    overflow: hidden;
}
.SplashLogo {
    position: relative;
}
.Splashes b {
    position: absolute;
    left: var(--x);
    top: var(--y);
    color: var(--splash, #ff0); /* home.js may set a random --splash and --splash-shadow */
    font-size: clamp(13px, 1.1vw + 0.8vh, 26px);
    text-shadow: 0.12em 0.12em 0 var(--splash-shadow, #3f3f00);
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(var(--tilt));
    animation: splashBreathe var(--beat) ease-in-out infinite alternate;
}
@keyframes splashBreathe {
    to {
        transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1.12);
    }
}
/* Corners above the hood, beside it, and below it. Every --beat differs, so they drift in and out of step. */
.Splashes b:nth-child(1) { --x: 10%; --y: 8%; --tilt: -20deg; --beat: 1.1s; }
.Splashes b:nth-child(2) { --x: 90%; --y: 8%; --tilt: 18deg; --beat: 1.7s; }
.Splashes b:nth-child(3) { --x: -2%; --y: 36%; --tilt: -14deg; --beat: 2.3s; }
.Splashes b:nth-child(4) { --x: 102%; --y: 36%; --tilt: 12deg; --beat: 1.4s; }
.Splashes b:nth-child(5) { --x: -4%; --y: 66%; --tilt: -8deg; --beat: 2.9s; }
.Splashes b:nth-child(6) { --x: 104%; --y: 66%; --tilt: 10deg; --beat: 1.9s; }
.Splashes b:nth-child(7) { --x: 20%; --y: 101%; --tilt: -6deg; --beat: 2.6s; }
.Splashes b:nth-child(8) { --x: 80%; --y: 101%; --tilt: 7deg; --beat: 1.25s; }

/* Tall screens (phones): the logo fills the width, so the side splashes move in over its edges. */
@media (max-aspect-ratio: 1 / 1) {
    .Splashes b:nth-child(1) { --x: 24%; }
    .Splashes b:nth-child(2) { --x: 76%; }
    .Splashes b:nth-child(3),
    .Splashes b:nth-child(5) { --x: 18%; }
    .Splashes b:nth-child(4),
    .Splashes b:nth-child(6) { --x: 82%; }
    .Splashes b:nth-child(7) { --x: 28%; }
    .Splashes b:nth-child(8) { --x: 72%; }
}

/* UTC clock beside Log in (home.js). Too wide for the top bar on narrow phones, so it hides there. */
.UtcClock {
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .UtcClock {
        display: none;
    }
}

/* The description under the logo. The logo and it are centered as one group; space above clears the splashes. */
.Home {
    align-content: center;
}
.HomeAbout {
    max-width: 640px;
    margin: 3.5em 16px 48px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}
.HomeAbout p {
    margin: 0 0 12px;
}
