/* The splash covers the app until both startup and the minimum display time complete. */
.studio-splash + #app { isolation: isolate; }
.studio-splash {
    --paper: #fbf8f3;
    --ink: #344254;
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow: auto;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
             max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
    isolation: isolate;
    color: var(--ink);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 38%, #fffdf9 15%, transparent 65%),
        repeating-linear-gradient(135deg, transparent 0 30px, #494e6509 30px 31px),
        var(--paper);
    font: 500 .875rem/1.4 system-ui, sans-serif;
}
.studio-splash__stack {
    display: grid;
    justify-items: center;
    gap: clamp(8px, 1.6vh, 16px);
    width: min(100%, 34rem);
}
.studio-splash__studio,
.studio-splash__game {
    display: block;
    height: auto;
    max-width: 100%;
}
.studio-splash__filters { position: absolute; pointer-events: none; }
/* Turn the logo’s light paper into alpha instead of relying on background blending. */
.studio-splash__studio { width: clamp(136px, 34vh, 286px); filter: url("#studio-paper-cutout"); }
.studio-splash__game { width: clamp(116px, 28vh, 234px); mix-blend-mode: multiply; }
.studio-splash__credit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #3f5263;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.studio-splash__credit::before,
.studio-splash__credit::after {
    content: "";
    width: clamp(22px, 7vw, 46px);
    height: 1px;
    background: #687a8b80;
}
.studio-splash__status {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin-top: 5px;
}
.studio-splash__track {
    width: 110px;
    height: 4px;
    overflow: hidden;
    border-radius: 6px;
    background: #dbdfe2;
}
.studio-splash__track::before {
    content: "";
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: #245286;
    animation: studio-splash-sweep 1.25s ease-in-out infinite alternate;
}
@keyframes studio-splash-sweep {
    from { transform: translateX(0); }
    to { transform: translateX(150%); }
}
@media (max-height: 440px) and (min-width: 470px) {
    .studio-splash__stack {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
    }
    .studio-splash__status, .studio-splash noscript { grid-column: 1 / -1; }
    .studio-splash__credit::before, .studio-splash__credit::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .studio-splash__track::before { animation: none; transform: translateX(75%); }
}
