/* Vortice Original wordmarks: the text-only Original cards and sidebar promo,
   plus the live friend-party strip and the launch sheet shown when an Original
   you're opening already has friends playing. The rest of the catalog keeps its
   original thumbnail grid. */

.vp-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

/* ------------------------------------------------------- original friends */
.game-card__friends {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 8px 3px 3px;
    border-radius: 99px;
    border: 1px solid color-mix(in srgb, var(--l3, #2fd0ff) 45%, transparent);
    background: rgba(6, 7, 14, 0.72);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.game-card__friends[hidden] {
    display: none !important;
}

.game-card__friends .fp-avatars {
    margin: 0;
}

.game-card__friends .fp-avatar {
    width: 20px;
    height: 20px;
    border-width: 1.5px;
    font-size: 0.5rem;
}

.game-card__friends .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5cff9d;
    box-shadow: 0 0 0 0 rgba(92, 255, 157, 0.7);
    animation: fp-ping 1.9s ease-out infinite;
}

.game-card__join {
    flex: none;
    margin-left: 2px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.game-card__join:hover:not(:disabled) {
    filter: brightness(1.12);
}

.game-card__join:disabled {
    opacity: 0.62;
    cursor: default;
}

@keyframes fp-ping {
    70%, 100% { box-shadow: 0 0 0 7px transparent; }
}

/* --------------------------------------------------------------- originals */
body.play-page #originals {
    /* A wider hero shelf so five Originals can sit on one row at a
       substantial size on a desktop, rather than becoming thumbnails. */
    width: min(1320px, 95%);
    margin: 18px auto 4px;
}

body.play-page .originals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 14px;
}

@media (min-width: 1100px) {
    body.play-page:not(.friend-leaderboard-collapsed) #originals,
    body.play-page:not(.friend-leaderboard-collapsed) .friend-parties {
        width: min(960px, calc(100% - 360px));
        margin-left: max(18px, calc((100% - 1320px) / 2));
        margin-right: 328px;
    }
}

@media (max-width: 640px) {
    body.play-page #originals,
    body.play-page .friend-parties {
        width: calc(100% - 20px);
    }
}

body.play-page #originals .original-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* A definite width keeps the card in its column; without it the min-height
       and aspect ratio size it at 400px wide and it overlaps its neighbour. */
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 168px;
    padding: clamp(14px, 1.2vw, 20px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--l1) 22%, rgba(255, 255, 255, 0.1));
    border-radius: clamp(18px, 1.6vw, 22px);
    background:
        radial-gradient(120% 130% at 10% 0%, color-mix(in srgb, var(--l1) 24%, transparent), transparent 58%),
        radial-gradient(130% 130% at 96% 108%, color-mix(in srgb, var(--l2) 30%, transparent), transparent 66%),
        linear-gradient(155deg, var(--l-bg, #171322) 0%, #0a0812 72%, #060509 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 24px 54px -34px rgba(0, 0, 0, 0.95);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.15s ease-out, border-color 0.25s, box-shadow 0.25s;
}

body.play-page #originals .original-card:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
    min-height: 168px;
}

body.play-page #originals .original-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-size: 34px 34px;
}

body.play-page #originals .original-card[data-logo-pattern="grid"]::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body.play-page #originals .original-card[data-logo-pattern="dots"]::before {
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.3px, transparent 1.5px);
    background-size: 17px 17px;
    opacity: 0.4;
}

body.play-page #originals .original-card[data-logo-pattern="stripes"]::before {
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 20px);
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

body.play-page #originals .original-card[data-logo-pattern="scan"]::before {
    background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 6px);
}

body.play-page #originals .original-card[data-logo-pattern="rings"]::before {
    background-image: repeating-radial-gradient(circle at 50% 55%, transparent 0 28px, rgba(255, 255, 255, 0.08) 28px 29px);
}

body.play-page #originals .original-card[data-logo-pattern="dunes"]::before {
    background-image:
        repeating-radial-gradient(ellipse 115% 72% at 22% 118%, transparent 0 74px, rgba(255, 226, 180, 0.07) 74px 76px),
        repeating-radial-gradient(ellipse 130% 64% at 88% 132%, transparent 0 96px, rgba(255, 226, 180, 0.05) 96px 98px);
    mask-image: linear-gradient(to bottom, transparent, #000 55%);
}

body.play-page #originals .original-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle 240px at var(--mx) var(--my), rgba(255, 255, 255, 0.1), transparent 70%),
        linear-gradient(to top, rgba(5, 4, 10, 0.94) 2%, rgba(5, 4, 10, 0.72) 26%, rgba(5, 4, 10, 0.12) 58%, transparent 78%);
}

/* Keep the sunset wordmark readable under the card's bottom shade. */
body.play-page #originals .original-card[data-logo-brand="slingshift"]::after {
    background:
        radial-gradient(circle 240px at var(--mx) var(--my), rgba(255, 226, 180, 0.14), transparent 70%),
        linear-gradient(to top, rgba(24, 12, 7, 0.62) 2%, rgba(24, 12, 7, 0.18) 26%, transparent 58%);
}

body.play-page #originals .original-card:hover {
    border-color: color-mix(in srgb, var(--l1) 72%, #fff 8%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 32px 64px -30px color-mix(in srgb, var(--l2) 58%, transparent),
        0 0 0 1px color-mix(in srgb, var(--l1) 52%, transparent);
}

.original-logo {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: clamp(12px, 1.1vw, 18px) clamp(12px, 1.1vw, 16px) clamp(62px, 5vw, 74px);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.original-logo .vp-logo {
    display: block;
    width: auto;
    height: clamp(58px, 6.2vw, 88px);
    max-width: 100%;
    overflow: visible;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.original-card:first-child .original-logo {
    padding: clamp(12px, 1.1vw, 18px) clamp(12px, 1.1vw, 16px) clamp(62px, 5vw, 74px);
}

.original-card:first-child .original-logo .vp-logo {
    width: auto;
    height: clamp(58px, 6.2vw, 88px);
}

body.play-page #originals .original-card:hover .original-logo {
    transform: scale(1.025) rotate(-0.4deg);
}

.original-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 44ch;
}

body.play-page #originals .game-card__friends {
    position: static;
    margin: 0;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
}

.original-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

body.play-page #originals .game-card__friends .fp-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.52rem;
}

/* Card descriptions are retired; keep stale rendered markup out of sight
   until the next server restart regenerates the shelf. */
.original-tag {
    display: none;
}

.original-play {
    display: inline-flex;
    align-items: center;
    gap: clamp(7px, 0.6vw, 10px);
    padding: clamp(6px, 0.55vw, 8px) clamp(14px, 1.2vw, 18px) clamp(6px, 0.55vw, 8px) clamp(10px, 1vw, 13px);
    border-radius: 99px;
    background: linear-gradient(135deg, var(--l1), var(--l2));
    color: #120c1f;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: clamp(0.64rem, 0.75vw, 0.74rem);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
    transition: transform 0.2s, gap 0.2s;
}

.original-play::before {
    content: "";
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent currentColor;
}

body.play-page #originals .original-card:hover .original-play {
    transform: translateX(3px);
    gap: 10px;
}

/* Keep the five Originals on a single line down to ordinary laptop widths. */
@media (min-width: 760px) {
    body.play-page .originals-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.play-page .originals-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }
    body.play-page #originals .original-card,
    body.play-page #originals .original-card:first-child {
        grid-column: auto;
        aspect-ratio: 16 / 10;
        min-height: 210px;
    }
    .original-logo,
    .original-card:first-child .original-logo {
        padding: 24px 20px 78px;
    }
    .original-card:first-child .original-logo .vp-logo,
    .original-logo .vp-logo {
        width: auto;
        height: 92px;
        max-width: 100%;
    }
}

/* ----------------------------------------------------------- friend parties */
.friend-parties {
    width: min(1100px, 95%);
    margin: 18px auto 6px;
}

.friend-parties__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.friend-parties__head h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.friend-parties__head .friend-parties__live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid rgba(92, 255, 157, 0.32);
    background: rgba(92, 255, 157, 0.08);
    color: #8cffc0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.friend-parties__head .friend-parties__live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5cff9d;
    animation: fp-ping 1.9s ease-out infinite;
}

.friend-parties__head .friend-parties__rule {
    flex: 1;
    height: 1px;
    min-width: 20px;
    background: linear-gradient(90deg, rgba(92, 255, 157, 0.4), rgba(255, 255, 255, 0.04));
}

.friend-parties__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.fp-card {
    --fp: #7a5cff;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--fp) 20%, transparent), transparent 65%),
        var(--panel);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.fp-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--fp) 55%, rgba(255, 255, 255, 0.2));
}

.fp-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.fp-card__game {
    overflow: hidden;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.fp-card__meta b {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    text-overflow: ellipsis;
}

.fp-card__meta .fp-dot {
    width: 3px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.fp-card__state {
    overflow: hidden;
    color: color-mix(in srgb, var(--fp) 76%, #fff 20%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fp-card__state.is-full,
.fp-card__state.is-busy {
    color: var(--muted);
}

.fp-avatars {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: 6px;
}

.fp-avatar {
    --chip: #7a5cff;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: -7px;
    border: 2px solid #15131f;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.32), transparent 42%),
        var(--chip);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fp-avatar:first-child {
    margin-left: 0;
}

.fp-avatar.is-more {
    background: #2a2738;
    color: rgba(255, 255, 255, 0.75);
}

.fp-join {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid color-mix(in srgb, var(--fp) 55%, rgba(255, 255, 255, 0.12));
    border-radius: 9px;
    background: color-mix(in srgb, var(--fp) 18%, transparent);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.fp-join:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--fp);
    background: color-mix(in srgb, var(--fp) 34%, transparent);
}

.fp-join:disabled {
    cursor: default;
    opacity: 0.55;
}

/* ------------------------------------------------------------- launch sheet */
dialog.launch-dialog {
    width: min(560px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 36px));
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: var(--text);
}

dialog.launch-dialog::backdrop {
    background: rgba(4, 3, 9, 0.72);
    backdrop-filter: blur(10px);
}

.launch-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background:
        radial-gradient(100% 130% at 10% 0%, color-mix(in srgb, var(--l1, #7a5cff) 28%, transparent), transparent 60%),
        radial-gradient(110% 130% at 96% 106%, color-mix(in srgb, var(--l2, #2fd0ff) 24%, transparent), transparent 64%),
        linear-gradient(160deg, #171422 0%, #0b0a13 72%, #08070d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 40px 100px -24px rgba(0, 0, 0, 0.9);
    animation: launch-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes launch-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.launch-card__x {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(8, 7, 14, 0.6);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    line-height: 1;
    backdrop-filter: blur(6px);
}

.launch-card__x:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.launch-head {
    position: relative;
    padding: 22px 22px 0;
}

.launch-kicker {
    margin: 0 0 10px;
    color: color-mix(in srgb, var(--l1, #7a5cff) 60%, #fff 40%);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.launch-logo {
    display: grid;
    place-items: center;
    min-height: 100px;
    margin: -4px -6px 8px;
    overflow: visible;
}

.launch-logo .vp-logo {
    display: block;
    width: min(100%, 360px);
    height: auto;
    max-height: 138px;
    overflow: visible;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55));
}

.launch-copy {
    max-width: 46ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    line-height: 1.45;
}

.launch-body {
    padding: 16px 22px 20px;
}

.launch-section {
    margin-top: 14px;
}

.launch-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.launch-section__title span {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.56rem;
    letter-spacing: 0;
}

.launch-parties {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.launch-party {
    --fp: #7a5cff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.launch-party__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.launch-party__copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.launch-party__copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.launch-party .fp-join {
    min-height: 32px;
    padding: 7px 12px;
    border-color: color-mix(in srgb, var(--fp) 60%, rgba(255, 255, 255, 0.16));
    background: color-mix(in srgb, var(--fp) 24%, transparent);
}

.launch-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.launch-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.launch-play {
    flex: 1;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--l1, #7a5cff), var(--l2, #2fd0ff));
    color: #0b0714;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--l2, #2fd0ff) 60%, transparent);
    transition: transform 0.2s, filter 0.2s;
}

.launch-play:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.launch-cancel {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 700;
}

.launch-cancel:hover {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

@media (max-width: 640px) {
    .originals-head {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }
    .originals-rule {
        display: none;
    }
    .game-card__friends {
        font-size: 0.58rem;
        padding: 2px 6px 2px 2px;
    }
    .game-card__friends .fp-avatar {
        width: 17px;
        height: 17px;
        font-size: 0.44rem;
    }
    body.play-page #originals .game-card__friends {
        margin-bottom: 0;
    }
    .friend-parties__list {
        grid-template-columns: 1fr;
    }
    .original-copy {
        max-width: none;
    }
    dialog.launch-dialog {
        width: calc(100vw - 16px);
        margin: auto auto 8px;
    }
    .launch-card {
        border-radius: 18px;
    }
    .launch-body {
        padding: 14px 16px 16px;
    }
    .launch-head {
        padding: 18px 16px 0;
    }
    .launch-logo {
        min-height: 92px;
    }
    .launch-logo .vp-logo {
        width: min(100%, 300px);
        max-height: 116px;
    }
    .launch-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .launch-cancel {
        min-height: 38px;
    }
}

/* ------------------------------------------------------------- logo motion */
/* Each wordmark acts its game out while its card is hovered or focused:
   logos.js tags the moving parts `lg-*` and gives pivots in viewBox units. */
.vp-logo [class*="lg-"] {
    transform-box: view-box;
}

.vp-logo .lg-streak { --lg-anim: lg-streak 0.6s linear infinite; }
.vp-logo .lg-streak--r { --lg-anim: lg-streak 0.6s linear -0.3s infinite; }
.vp-logo .lg-shear { --lg-anim: lg-shear 0.5s ease-in-out infinite; }
.vp-logo .lg-drip { --lg-anim: lg-drip 1.5s ease-in-out infinite; }
.vp-logo .lg-drip:nth-child(2) { --lg-anim: lg-drip 1.5s ease-in-out -0.5s infinite; }
.vp-logo .lg-drip:nth-child(3) { --lg-anim: lg-drip 1.5s ease-in-out -1s infinite; }
.vp-logo .lg-arrow { --lg-anim: lg-nudge 0.8s ease-in-out infinite; }
.vp-logo .lg-ember { --lg-anim: lg-ember 2.4s ease-out infinite; }
.vp-logo .lg-bubble { --lg-anim: lg-bubble 1.8s ease-out infinite; }
.vp-logo .lg-heat { --lg-anim: lg-heat 1.6s ease-in-out infinite; }
.vp-logo .lg-flag { --lg-anim: lg-flag 0.7s ease-in-out infinite; }
.vp-logo .lg-roll { --lg-anim: lg-roll 1.4s linear infinite; }
.vp-logo .lg-swing { --lg-anim: lg-swing 1.8s ease-in-out infinite; }
.vp-logo .lg-node { --lg-anim: lg-node 1.8s ease-in-out infinite; }
.vp-logo .lg-arcs { --lg-anim: lg-flicker 0.9s steps(1, end) infinite; }
.vp-logo .lg-arcs--late { --lg-anim: lg-flicker 0.9s steps(1, end) -0.45s infinite; }
.vp-logo .lg-click { --lg-anim: lg-click 1.1s ease-out infinite; }
.vp-logo .lg-pulse { --lg-anim: lg-pulse 1.1s ease-out infinite; }
/* Rumble family: faces jitter on their slab, the ball hops, the net swishes. */
.vp-logo .lg-letter { --lg-anim: lg-rumble 0.42s steps(1, end) infinite; }
.vp-logo .lg-letter:nth-child(3n + 2) { --lg-anim: lg-rumble 0.42s steps(1, end) -0.14s infinite; }
.vp-logo .lg-letter:nth-child(3n) { --lg-anim: lg-rumble 0.42s steps(1, end) -0.28s infinite; }
.vp-logo .lg-ball { --lg-anim: lg-hop 0.9s cubic-bezier(0.3, 0, 0.4, 1) infinite; }
.vp-logo .lg-spin { --lg-anim: lg-roll 2.4s linear infinite; }
.vp-logo .lg-net { --lg-anim: lg-swish 0.9s ease-in-out infinite; }
.vp-logo .lg-burst { --lg-anim: lg-burst 0.84s steps(1, end) infinite; }
.vp-logo .lg-shock { --lg-anim: lg-flicker 0.9s steps(1, end) infinite; }
.vp-logo .lg-shake { --lg-anim: lg-flicker 0.42s steps(1, end) infinite; }
.vp-logo .lg-glint { --lg-anim: lg-twinkle 1.2s ease-in-out infinite; }

:is(.original-card, .promo-card):is(:hover, :focus-visible) .vp-logo [class*="lg-"],
.launch-logo:hover .vp-logo [class*="lg-"] {
    animation: var(--lg-anim, none);
}

@keyframes lg-streak {
    0% { transform: translateX(12px); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateX(-16px); opacity: 0; }
}
@keyframes lg-shear {
    50% { transform: translateX(-3px); }
}
@keyframes lg-drip {
    50% { transform: scaleY(1.4); }
}
@keyframes lg-nudge {
    50% { transform: translateX(5px); }
}
@keyframes lg-ember {
    0% { transform: translateY(5px); opacity: 0; }
    25% { opacity: 1; }
    100% { transform: translateY(-18px); opacity: 0; }
}
@keyframes lg-bubble {
    0% { transform: scale(0.3); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
@keyframes lg-heat {
    50% { opacity: 0.55; }
}
@keyframes lg-flag {
    50% { transform: skewY(-9deg) scaleX(0.9); }
}
@keyframes lg-roll {
    to { transform: rotate(360deg); }
}
@keyframes lg-swing {
    50% { transform: rotate(-3.5deg); }
}
@keyframes lg-node {
    50% { transform: scale(1.6); opacity: 0.32; }
}
@keyframes lg-flicker {
    0%, 100% { opacity: 1; }
    18% { opacity: 0.3; }
    24% { opacity: 1; }
    52% { opacity: 0.6; }
    58% { opacity: 1; }
}
@keyframes lg-click {
    0%, 55%, 100% { transform: scale(1); }
    68% { transform: translate(-1px, -1px) scale(0.86); }
}
@keyframes lg-rumble {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-0.7px, 0.5px) rotate(-1.1deg); }
    50% { transform: translate(0.6px, -0.6px) rotate(0.9deg); }
    75% { transform: translate(0.4px, 0.7px) rotate(-0.6deg); }
}
@keyframes lg-hop {
    0%, 100% { transform: translateY(0) scale(1.06, 0.94); }
    45% { transform: translateY(-9px) scale(0.97, 1.04); }
    90% { transform: translateY(0) scale(1.06, 0.94); }
}
@keyframes lg-swish {
    0%, 40%, 100% { transform: scale(1, 1); }
    55% { transform: scale(1.08, 0.88); }
    75% { transform: scale(0.95, 1.08); }
}
@keyframes lg-burst {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.025) rotate(1.2deg); }
}
@keyframes lg-twinkle {
    50% { transform: scale(0.35) rotate(45deg); }
}
@keyframes lg-pulse {
    0%, 60%, 100% { transform: scale(1); }
    74% { transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
    .original-logo,
    .original-card,
    .fp-card,
    .launch-card,
    .launch-play {
        transition: none !important;
        animation: none !important;
    }
    .game-card__friends .live-dot,
    .friend-parties__head .friend-parties__live::before,
    .vp-logo [class*="lg-"] {
        animation: none !important;
    }
}
