@font-face {
    font-family: "VNW Garet";
    src: url("Garet-Book.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "VNW Garet";
    src: url("Garet-Heavy.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

.vn-auth-modal:has(> [data-vnw-auth]) {
    background: rgb(0 0 0 / 73%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.vn-auth-modal-box[data-vnw-auth] {
    --vnw-paper: #0a0a0a;
    --vnw-motion: 600ms ease-in-out;
    box-sizing: border-box;
    container-type: inline-size;
    isolation: isolate;
    width: min(1032px, 65.5vw);
    max-width: 100%;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 2px solid transparent;
    border-radius: 21px;
    background: linear-gradient(var(--vnw-paper), var(--vnw-paper)) padding-box,
        linear-gradient(117deg, #8a15f6, #553abe 34%, #179b8d 70%, #00cb62) border-box;
    box-shadow: -12px 9px 54px -13px rgb(113 23 232 / 23%), 12px -4px 56px -30px rgb(7 224 117 / 15%);
    color: #fff;
    font-family: "VNW Garet", sans-serif;
    font-weight: 400;
}

.vn-auth-modal-box[data-vnw-auth] :is(input, button, h2, h3, p) {
    box-sizing: border-box;
    font-family: inherit;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-modal-close {
    z-index: 4;
    inset: 12px 14px auto auto;
    width: 32px;
    min-width: 0;
    height: 32px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #b7b4bc;
    background: transparent;
    box-shadow: none;
    font: 400 19px/1 "VNW Garet", sans-serif;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-modal-close:hover {
    background: rgb(255 255 255 / 9%);
    color: white;
}

.vn-auth-modal-box[data-vnw-auth] [data-vnm-message]:not([hidden]) {
    margin: 12px 56px 0 16px;
    padding: 8px 12px;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.vn-auth-modal-box[data-vnw-auth] [data-vnm-forms]:not([hidden]) {
    position: relative;
    display: grid;
    min-height: 59.4cqi;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-tabs {
    display: none;
}

/* The two form panes share a track and change visibility under the moving cover. */
.vn-auth-modal-box[data-vnw-auth] .vnw-auth-form-pane {
    --vnw-accent: #941bf7;
    --vnw-link: #b06aff;
    --vnw-fill: linear-gradient(112deg, #8714ee, #51008d);
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 53%;
    box-sizing: border-box;
    padding: 4cqi 0;
    visibility: hidden;
    text-align: center;
    transform: translateX(0);
    transition: transform var(--vnw-motion), visibility 0s linear 300ms;
}

.vn-auth-modal-box[data-vnw-auth] #vnm-tab-register {
    --vnw-accent: #00bd64;
    --vnw-link: #20cd86;
    --vnw-fill: linear-gradient(112deg, #0cdb79, #008245);
}

.vn-auth-modal-box[data-vnw-mode="register"] .vnw-auth-form-pane {
    transform: translateX(88.68%);
}

.vn-auth-modal-box[data-vnw-mode="login"] #vnm-tab-login,
.vn-auth-modal-box[data-vnw-mode="register"] #vnm-tab-register {
    visibility: visible;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 82%;
    gap: clamp(12px, 1.7cqi, 21px);
    margin: 0;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-form h2 {
    margin: 0;
    color: var(--vnw-accent);
    font-size: clamp(30px, 4.2cqi, 51px);
    font-weight: 800;
    line-height: 1.1;
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-mark {
    display: inline-grid;
    place-items: center;
    width: clamp(42px, 5.65cqi, 69px);
    aspect-ratio: 1;
    box-sizing: border-box;
    border: 2px solid var(--vnw-accent);
    border-radius: 17%;
    background: var(--vnw-fill);
    color: #fff;
    font: 800 clamp(29px, 4.25cqi, 52px)/1 "VNW Garet", sans-serif;
    text-decoration: none;
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-hint,
.vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt p {
    margin: 0;
    color: #fff;
    font-size: clamp(15px, 1.98cqi, 24px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: normal;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-form input:not([type="hidden"]) {
    width: 100%;
    height: clamp(46px, 6.05cqi, 74px);
    margin: 0;
    padding: 0 clamp(16px, 2.25cqi, 28px);
    border: 1px solid transparent;
    border-radius: clamp(12px, 1.6cqi, 20px);
    background: #fff;
    color: #18151c;
    box-shadow: none;
    font-size: clamp(16px, 1.95cqi, 24px);
    font-weight: 400;
    line-height: 1.3;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-form input::placeholder {
    color: #767179;
    opacity: 1;
}

.vn-auth-modal-box[data-vnw-auth] :is(button, a, input):focus-visible {
    outline: 2px solid #dcb6ff;
    outline-offset: 3px;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-form input:focus {
    border-color: var(--vnw-accent);
    box-shadow: 0 0 0 2px var(--vnw-accent);
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-reset,
.vn-auth-modal-box[data-vnw-auth] .vn-guest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 24px;
    margin: 0;
    padding: 0 3px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--vnw-link);
    font-size: clamp(15px, 1.9cqi, 23px);
    font-weight: 400;
    line-height: 1.25;
    cursor: pointer;
}

.vn-auth-modal-box[data-vnw-auth] .vn-guest-form {
    margin: 8px 0 -32px;
}

.vn-auth-modal-box[data-vnw-auth] .vn-guest-btn {
    color: #b7b0be;
    font-size: clamp(12px, 1.1cqi, 14px);
}

.vn-auth-modal-box[data-vnw-auth] :is(.vnw-auth-reset, .vn-guest-btn):hover {
    color: #fff;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-form button[type="submit"],
.vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt button {
    display: inline-grid;
    place-items: center;
    width: clamp(130px, 16.2cqi, 196px);
    min-height: clamp(42px, 5.05cqi, 61px);
    margin: 0;
    padding: 5px 16px;
    border: 2px solid var(--vnw-accent);
    border-radius: clamp(8px, .95cqi, 12px);
    background: var(--vnw-fill);
    box-shadow: none;
    color: #fff;
    font-size: clamp(16px, 1.95cqi, 24px);
    font-weight: 400;
    line-height: 1.25;
    text-transform: none;
    cursor: pointer;
    transition: filter 160ms, background-color 160ms;
}

.vn-auth-modal-box[data-vnw-auth] .vn-auth-form button[type="submit"]:hover {
    filter: brightness(1.14);
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-switch {
    position: absolute;
    z-index: 2;
    inset: 1.65% auto 1.65% 0.85%;
    width: 46.25%;
    overflow: hidden;
    box-sizing: border-box;
    border: clamp(2px, .3cqi, 4px) solid transparent;
    border-radius: clamp(12px, 1.65cqi, 20px);
    background: linear-gradient(var(--vnw-paper), var(--vnw-paper)) padding-box,
        linear-gradient(#57e297, #007334) border-box;
    box-shadow: inset 2px 3px 0 rgb(255 255 255 / 35%);
    transform: translateX(112.54%);
    transition: transform var(--vnw-motion);
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-switch::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 5px #962ee4, inset 2px 3px 0 rgb(255 255 255 / 35%);
    background: linear-gradient(var(--vnw-paper), var(--vnw-paper)) padding-box,
        linear-gradient(#b66af6, #570483) border-box;
    border: clamp(2px, .3cqi, 4px) solid transparent;
    opacity: 0;
    transition: opacity var(--vnw-motion);
    pointer-events: none;
}

.vn-auth-modal-box[data-vnw-mode="register"] .vnw-auth-switch {
    transform: translateX(0);
    background: linear-gradient(var(--vnw-paper), var(--vnw-paper)) padding-box,
        linear-gradient(#b66af6, #570483) border-box;
}

.vn-auth-modal-box[data-vnw-mode="register"] .vnw-auth-switch::before {
    opacity: 1;
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transform: translateX(-25%);
    pointer-events: none;
    transition: opacity 250ms ease-in, transform var(--vnw-motion);
}

.vn-auth-modal-box[data-vnw-auth] [data-vnw-prompt="register"] {
    transform: translateX(25%);
}

.vn-auth-modal-box[data-vnw-mode="login"] [data-vnw-prompt="login"],
.vn-auth-modal-box[data-vnw-mode="register"] [data-vnw-prompt="register"] {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition: opacity 300ms ease-out 300ms, transform var(--vnw-motion);
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt h3 {
    margin: 0 0 .35cqi;
    color: #fff;
    font-size: clamp(21px, 3.62cqi, 44px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.035em;
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt button {
    margin-top: clamp(18px, 3.7cqi, 45px);
    border: 2px solid #fff;
    background: transparent;
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt button:hover {
    background: rgb(255 255 255 / 9%);
}

@media (max-width: 1000px) {
    .vn-auth-modal-box[data-vnw-auth] {
        width: min(90vw, 765px);
    }
}

@media (max-width: 700px) {
    .vn-auth-modal-box[data-vnw-auth] {
        width: min(94vw, 470px);
        border-radius: 16px;
    }

    .vn-auth-modal-box[data-vnw-auth] [data-vnm-forms]:not([hidden]) {
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .vn-auth-modal-box[data-vnw-auth] .vnw-auth-form-pane {
        width: 100%;
        padding: 38px 16px 16px;
        transform: translateX(8px);
        opacity: 0;
        transition: opacity 160ms ease, transform 260ms ease, visibility 0s linear 160ms;
    }

    .vn-auth-modal-box[data-vnw-auth] .vnw-auth-form-pane.active {
        transform: none;
        opacity: 1;
    }

    .vn-auth-modal-box[data-vnw-auth] .vn-auth-form {
        width: min(100%, 355px);
        gap: 12px;
    }

    .vn-auth-modal-box[data-vnw-auth] .vn-guest-form {
        margin: 6px 0 0;
    }

    .vn-auth-modal-box[data-vnw-auth] .vnw-auth-switch {
        grid-area: 2 / 1;
        position: relative;
        inset: auto;
        width: auto;
        margin: 0 9px 9px;
        transform: none;
        display: grid;
    }

    .vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt {
        grid-area: 1 / 1;
        position: relative;
        padding: 15px 8px;
    }

    .vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt h3 {
        font-size: clamp(19px, 5.2vw, 24px);
        margin-bottom: 3px;
    }

    .vn-auth-modal-box[data-vnw-auth] .vnw-auth-prompt button {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vn-auth-modal-box[data-vnw-auth] *,
    .vn-auth-modal-box[data-vnw-auth] *::before {
        transition: none !important;
    }
}

.vn-auth-modal-box[data-vnw-auth] .vnw-auth-mark {
    padding: 0;
    min-width: 0;
}
.vn-auth-modal-box[data-vnw-auth] .vnw-auth-mark:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.vnm2-root .vnw-google-link {
    display: block;
    margin: 12px auto;
}

.vn-auth-modal-box:has(.vnw-profile-nav) {
    box-sizing: border-box;
    width: min(540px, 100%);
    max-height: calc(100dvh - 36px);
    padding: clamp(14px, 2.5vw, 24px);
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(#0b0b0e, #0b0b0e) padding-box,
                linear-gradient(110deg, #8730d9, #4a438c 48%, #00ba70) border-box;
    box-shadow: 0 12px 42px #12082166;
    font-family: "VNW Garet", sans-serif;
}
.vn-auth-modal-box:has(.vnw-profile-nav) .vn-auth-modal-close {
    top: 9px; right: 10px; width: 30px; height: 30px;
    background: transparent; box-shadow: none; color: #c8bfd2;
}
.vn-profile-card:has(.vnw-profile-nav) {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 3px 12px;
    color: #fff; text-align: left;
}
.vn-profile-card:has(.vnw-profile-nav) > .vn-profile-avatar {
    grid-row: 1 / 3; width: 48px; height: 48px; margin: 0;
    align-self: center; border: 1px solid #9263be;
    background: linear-gradient(140deg,#602599,#184b40); font-size: 22px;
}
.vn-profile-card:has(.vnw-profile-nav) > h2 {
    margin: 0; align-self: end; padding-right: 22px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 800 clamp(18px,3vw,25px)/1.2 "VNW Garet",sans-serif;
}
.vn-profile-card:has(.vnw-profile-nav) .vn-profile-role { font-size: 12px; line-height: 1.4; }
.vnw-profile-nav, .vnw-profile-pane, .vnw-profile-actions { grid-column: 1 / -1; min-width: 0; }
.vnw-profile-nav { display: flex; gap: 4px; margin: 11px 0 7px; padding: 4px; background: #171419; border-radius: 12px; }
.vnw-profile-nav button, .vnw-profile-actions :is(a,button) {
    flex: 1; width: auto; min-width: 0; min-height: 34px; padding: 5px 7px; margin: 0;
    border: 0; border-radius: 8px; background: transparent;
    color: #ddd4e6; font: 400 13px/1.3 "VNW Garet",sans-serif; cursor: pointer;
}
.vnw-profile-nav button[aria-pressed="true"] { background: #572389; color: white; }
.vn-profile-card .vnw-profile-pane[hidden] { display: none; }
.vn-profile-card .vnw-profile-pane, .vnw-profile-summary .vn-profile-badges { margin: 0; padding: 12px; }
.vn-profile-card .vnw-profile-summary { padding: 0; }
.vnw-profile-summary .vn-profile-stats { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.vnw-profile-summary .vn-profile-stats div { padding: 8px 12px; }
.vnw-profile-summary .vn-profile-stats strong { font-size: 18px; line-height: 1.3; color: #55dcaa; }
.vn-profile-card .vnw-profile-pane h3 { font-size: 15px; margin: 0 0 6px; }
.vn-profile-card .vnw-profile-pane :is(p,em) { font-size: 13px; line-height: 1.45; }
.vnw-profile-actions { display: flex; gap: 8px; margin-top: 9px; }
.vn-profile-card .vnw-profile-actions :is(a,button) { display: grid; place-items: center; border: 1px solid #55495c; text-align: center; }
.vnw-profile-pane .vn-avatar-crop:not([hidden]) { display: grid; grid-template-columns: minmax(60px, 31%) 1fr; gap: 2px 10px; }
.vnw-profile-pane .vn-avatar-crop canvas { grid-row: span 3; align-self: center; width: 100%; max-width: 100px; }
.vnw-profile-pane .vn-avatar-crop label { gap: 0; line-height: 1.2; }
.vnw-profile-pane .vn-avatar-form input[type=file] { max-width: 100%; margin: 0 0 6px; padding: 6px; }
.vnw-profile-pane .vn-recent-clips, .vn-profile-card .vnw-profile-pane a { overflow-wrap: anywhere; }
.vn-profile-card .vnw-profile-pane a { padding-block: 5px; }
.vn-profile-card .vnw-profile-pane button[type=submit] { min-height: 32px; padding: 6px 10px; }
