:root {
    --mosquit-night: #211538;
    --mosquit-violet: #503477;
    --mosquit-lime: #d7ed86;
    --mosquit-glow: #ad88e5;
}

.brand-jewel {
    display: block;
    width: 43px;
    height: 43px;
    margin: -4px;
    flex: 0 0 auto;
    object-fit: contain;
}

.mosquit-scene {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.53;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 1.4rem;
    color: var(--mosquit-lime);
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}
.mosquit-scene:hover {
    background: transparent;
}
.mosquit-scene:focus-visible {
    outline: 2px solid var(--mosquit-lime);
    outline-offset: 4px;
}
.mosquit-scene::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 3% -7%;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 48%, #a478e537, transparent 66%);
}
.mosquit-orbit {
    position: absolute;
    z-index: -1;
    inset: 19% 7% 11% 1%;
    pointer-events: none;
    border: 1px dashed #d1b3f34d;
    border-top-color: transparent;
    border-radius: 50%;
    transform: rotate(-16deg);
}
.mosquit-orbit::after {
    content: "";
    position: absolute;
    inset: -10% -8%;
    border: 1px solid #d5bcf31c;
    border-radius: 50%;
}
.mosquit-flier {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.5;
    transition: filter .2s ease;
}
.mosquit-scene:hover .mosquit-flier { filter: brightness(1.05); }
.mosquit-body, .mosquit-wing {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mosquit-wing {
    position: absolute;
    inset: 0;
    opacity: 0;
    clip-path: polygon(47% 0, 100% 0, 100% 56%, 68% 55%, 56% 51%, 47% 47%, 46% 41%);
    transform-origin: 46% 47%;
    pointer-events: none;
}
.mosquit-spark {
    position: absolute;
    z-index: 1;
    width: .44rem;
    height: .44rem;
    border-radius: 40% 60% 43% 57%;
    background: var(--mosquit-lime);
    box-shadow: 0 0 .85rem #d3ef8070;
    pointer-events: none;
}
.spark-one { left: 18%; bottom: 12%; }
.spark-two { top: 17%; right: 12%; opacity: .8; }
.spark-three { left: 5%; top: 32%; width: .29rem; height: .29rem; background: #e4cafa; }
.mosquit-scene.is-flying .mosquit-flier {
    animation: mosquit-pass 1.12s cubic-bezier(.27,.58,.32,1) both;
}
.mosquit-scene.is-flying .mosquit-wing {
    animation: mosquit-wings .22s ease-in-out 5;
}
.mosquit-scene.is-flying .mosquit-spark {
    animation: mosquit-spark .72s ease-out both;
}
.mosquit-scene.is-lit .mosquit-spark { background: #fff5bb; }
.mosquit-scene.is-lit .mosquit-orbit { border-bottom-color: var(--mosquit-lime); }

@keyframes mosquit-pass {
    0% { transform: translate(0,0) rotate(0); }
    25% { transform: translate(6%,-5%) rotate(5deg); }
    55% { transform: translate(-3%,-8%) rotate(-5deg); }
    76% { transform: translate(-1%,2%) rotate(2deg); }
    100% { transform: translate(0,0) rotate(0); }
}
@keyframes mosquit-wings {
    0%,100% { transform: rotate(0); opacity: 0; }
    45% { transform: rotate(-8deg) scaleY(.95); opacity: .35; }
    70% { transform: rotate(4deg); opacity: .14; }
}
@keyframes mosquit-spark {
    0%,100% { transform: scale(1); }
    55% { transform: scale(1.65); }
}

.login-brand .mosquit-scene {
    position: absolute;
    top: 49%;
    left: 50%;
    width: min(86%, 33rem);
    transform: translate(-50%,-50%);
}
.login-brand .mosquit-orbit { inset: 12% 2% 2% 0; }

.invite-brand,
.page-head.mosquit-overview {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .94fr);
    align-items: center;
    gap: clamp(.5rem, 3vw, 2rem);
    background:
        radial-gradient(ellipse at 88% 55%, #543675 0, transparent 58%),
        linear-gradient(128deg, #211532 5%, #2a1b47 91%);
    color: #fff;
}
.invite-brand::before,
.mosquit-overview::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 37px, #d6bef218 37px 38px),
                repeating-linear-gradient(0deg, transparent 0 37px, #d6bef218 37px 38px);
    mask-image: radial-gradient(ellipse at 77% 52%, #000 3%, transparent 68%);
}
.invite-brand {
    padding: clamp(1.5rem, 5vw, 3rem);
}
.invite-brand h1 { font-size: clamp(2.45rem, 5.2vw, 4.12rem); }
.invite-brand .eyebrow { color: var(--mosquit-lime); }
.invite-brand .mosquit-scene {
    justify-self: end;
    width: min(114%, 28rem);
    margin-inline-end: -.55rem;
}
.sheet .featured {
    border-color: #daccef;
    background: linear-gradient(120deg, #f1eafe, #f8f3fe);
}
.page-head.mosquit-overview {
    border-radius: .95rem;
    margin-bottom: 1.15rem;
    padding: clamp(1.15rem, 3.2vw, 2.4rem);
}
.mosquit-overview .mosquit-scene {
    width: min(100%, 22rem);
    justify-self: end;
}
.mosquit-overview h1 { color: #fff; }
.mosquit-overview .head-title p { color: #e5d7f0; }
.mosquit-overview .primary {
    margin-top: .9rem;
    color: var(--mosquit-night);
    background: var(--mosquit-lime);
}
.mosquit-overview .primary:hover { background: #e0f6a1; }

@media (max-width: 46rem) {
    .invite-brand { grid-template-columns: 1fr; gap: .15rem; }
    .invite-brand .mosquit-scene {
        width: min(91%, 22rem);
        margin: -.1rem -.15rem -.4rem 0;
        justify-self: center;
    }
}
@media (max-width: 39rem) {
    .invite-brand { padding: 1.42rem 1.35rem 1.2rem; }
    .invite-brand h1 { font-size: clamp(2rem, 9.5vw, 2.67rem); }
    .invite-brand .mosquit-scene { width: min(95%, 16rem); }
    .page-head.mosquit-overview {
        grid-template-columns: minmax(0, 1fr) minmax(6.5rem, .68fr);
        gap: .45rem;
        padding: 1rem;
    }
    .mosquit-overview h1 { font-size: clamp(1.65rem, 7vw, 2.25rem); }
    .mosquit-overview .head-title p { font-size: .86rem; }
    .mosquit-overview .mosquit-scene { width: 112%; margin-right: -.2rem; }
    .mosquit-overview .primary { padding-inline: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mosquit-scene *, .mosquit-scene.is-flying * {
        animation: none !important;
        transition: none !important;
    }
}
