@font-face {
    font-family: 'Montserrat Launch';
    src: url('./montserrat-medium-launch.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

html.rd-launch-pending,
html.rd-launch-pending body {
    background: #000;
}

html.rd-launch-pending body {
    visibility: hidden;
}

.rd-launch[open], .rd-launch-pending .rd-launch {
    --rd-launch-mark-size: min(192px, 54vmin);
    --rd-launch-center-offset: 0px;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #000;
    color: #eee;
    text-align: center;
    visibility: visible;
    animation: rd-launch-out 6s both;
}

.rd-launch::backdrop { background: transparent; }

@keyframes rd-launch-out {
    0%, 95.667% { opacity: 1; animation-timing-function: cubic-bezier(.26, .75, .32, 1); }
    100% { opacity: 0; }
}

@media (max-width: 600px) and (orientation: portrait) {
    .rd-launch[open], .rd-launch-pending .rd-launch {
        /* In the 590 px wide launch recording, the native mark was 324 px wide
           and 10 px above the centre of the web viewport. */
        --rd-launch-mark-size: 54.9153vw;
        --rd-launch-center-offset: -1.6949vw;
    }
}

.rd-launch-content {
    display: grid;
    grid-template-rows:
        max(0px, calc((100% - var(--rd-launch-mark-size)) / 2 + var(--rd-launch-center-offset)))
        var(--rd-launch-mark-size) minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    height: 100%;
}

.rd-launch-mark {
    grid-row: 2;
    position: relative;
    isolation: isolate;
    width: var(--rd-launch-mark-size);
}

.rd-launch-mark::after {
    position: absolute;
    z-index: -1;
    inset: -4px;
    content: '';
    border-radius: 50%;
    background: #000;
}

.rd-launch-aurora {
    position: absolute;
    z-index: -2;
    inset: -60%;
    pointer-events: none;
    animation: rd-launch-entrance 320ms ease-out both;
}

.rd-launch-aurora::before, .rd-launch-aurora::after {
    position: absolute;
    inset: 9%;
    content: '';
    border-radius: 50%;
    filter: blur(13px);
    mask-image: radial-gradient(circle closest-side, transparent 39%, #000 62%, #000c 76%, transparent 100%);
}

.rd-launch-aurora::before {
    background: conic-gradient(from 15deg, transparent 0deg, #d7ded9bf 56deg, #6b766e78 94deg,
        transparent 136deg, #07c900e0 215deg, #2fec6999 263deg, transparent 320deg);
    animation: rd-launch-aurora-drift 7.2s ease-in-out infinite alternate;
}

.rd-launch-aurora::after {
    inset: 1%;
    background: conic-gradient(from 96deg, transparent 0deg, #7c8982b0 61deg, transparent 134deg,
        #07c90095 211deg, #afbeb75c 262deg, transparent 326deg);
    mix-blend-mode: screen;
    animation: rd-launch-aurora-drift 5.8s -2.3s ease-in-out infinite alternate-reverse;
}

.rd-launch-mark svg {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes rd-launch-aurora-drift {
    0% { opacity: .67; transform: rotate(-38deg) scale(.92, 1.01); }
    49% { opacity: 1; transform: rotate(12deg) scale(1.04, .98); }
    100% { opacity: .81; transform: rotate(60deg) scale(1.02, 1.08); }
}

@keyframes rd-launch-entrance {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rd-launch-caption {
    grid-row: 3;
    align-self: center;
    display: grid;
    justify-items: center;
    gap: 11px;
    white-space: nowrap;
    animation: rd-launch-entrance 240ms ease-out both;
}

.rd-launch-title {
    margin: 0;
    font: 500 clamp(13.5px, 3.6vw, 21.5px)/1.2 'Montserrat Launch', 'Segoe UI', sans-serif;
}

.rd-launch-dots {
    display: flex;
    gap: 5px;
}

.rd-launch-dots span {
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: #07c900;
    opacity: .36;
    animation: rd-launch-type 2.1s ease-in-out infinite;
}

.rd-launch-dots span:nth-child(2) { animation-delay: .24s; }
.rd-launch-dots span:nth-child(3) { animation-delay: .48s; }

@keyframes rd-launch-type {
    0%, 65%, 100% { opacity: .32; transform: translateY(0) scale(.92); }
    28% { opacity: 1; transform: translateY(-1px) scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    .rd-launch[open], .rd-launch-pending .rd-launch { animation-name: rd-launch-out-reduced; }
    .rd-launch-aurora, .rd-launch-aurora::before, .rd-launch-aurora::after,
    .rd-launch-caption, .rd-launch-dots span { animation: none; }
}

@keyframes rd-launch-out-reduced {
    from, to { opacity: 1; }
}

@media print {
    .rd-launch[open], .rd-launch-pending .rd-launch { display: none; }
}
