.openmu-discord-host,
.openmu-discord-host *,
.openmu-discord-host *::before,
.openmu-discord-host *::after {
    box-sizing: border-box;
}

#header .openmu-discord-host--header {
    position: absolute;
    z-index: 3;
    bottom: 22px;
    left: clamp(18px, 4vw, 72px);
    width: min(360px, calc(50% - 205px));
    min-width: 0;
}

.openmu-discord-host--mobile {
    display: none;
}

.openmu-discord {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 15px 16px 14px;
    color: #edf6ff;
    border: 1px solid rgba(73, 160, 220, .36);
    border-radius: 3px;
    background:
        radial-gradient(circle at 88% 4%, rgba(39, 174, 255, .17), transparent 32%),
        linear-gradient(145deg, rgba(7, 24, 45, .97), rgba(3, 11, 24, .98));
    box-shadow: 0 16px 44px rgba(0, 0, 0, .34), 0 0 32px rgba(25, 126, 205, .13);
    isolation: isolate;
}

.openmu-discord::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(108deg, transparent 24%, rgba(104, 221, 255, .075) 49%, transparent 74%);
    transform: translateX(-115%);
    animation: openmu-discord-glint 8s ease-in-out infinite;
    pointer-events: none;
}

.openmu-discord__header,
.openmu-discord__stats,
.openmu-discord__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.openmu-discord__eyebrow,
.openmu-discord__section-label,
.openmu-discord__footer small {
    display: block;
    color: #7893af;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.openmu-discord__name {
    display: block;
    overflow: hidden;
    max-width: 225px;
    margin-top: 3px;
    color: #f2f8ff;
    font-size: 16px;
    line-height: 1.15;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.openmu-discord__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 5px 8px;
    color: #7de8ff;
    border: 1px solid rgba(94, 219, 255, .28);
    border-radius: 999px;
    background: rgba(0, 193, 236, .07);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .13em;
}

.openmu-discord__status[data-state="offline"],
.openmu-discord__status[data-state="stale"] {
    color: #c4cfda;
    border-color: rgba(169, 183, 198, .22);
    background: rgba(117, 132, 148, .08);
}

.openmu-discord__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52f0cb;
    box-shadow: 0 0 0 0 rgba(82, 240, 203, .55), 0 0 10px rgba(82, 240, 203, .75);
    animation: openmu-discord-pulse 2.2s ease-out infinite;
}

.openmu-discord__status[data-state="offline"] .openmu-discord__status-dot,
.openmu-discord__status[data-state="stale"] .openmu-discord__status-dot {
    background: #8293a4;
    box-shadow: none;
    animation: none;
}

.openmu-discord__stats {
    align-items: stretch;
    margin-top: 13px;
}

.openmu-discord__stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.openmu-discord__stat strong {
    color: #dce7f3;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.openmu-discord__stat--online strong {
    color: #68e9ff;
    text-shadow: 0 0 16px rgba(60, 216, 255, .23);
}

.openmu-discord__stat span {
    color: #7f98b3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.openmu-discord__activity {
    margin-top: 10px;
}

.openmu-discord__progress,
.openmu-discord__live-track {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(34, 72, 107, .76);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .42);
}

.openmu-discord__progress {
    appearance: none;
    -webkit-appearance: none;
}

.openmu-discord__progress::-webkit-progress-bar {
    border-radius: 999px;
    background: rgba(34, 72, 107, .76);
}

.openmu-discord__progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #3d68f8 0%, #00cff3 60%, #71f0ff 100%);
    box-shadow: 0 0 12px rgba(0, 211, 255, .48);
    transition: width .5s ease;
}

.openmu-discord__progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #3d68f8 0%, #00cff3 60%, #71f0ff 100%);
    box-shadow: 0 0 12px rgba(0, 211, 255, .48);
    transition: width .5s ease;
}

.openmu-discord__live-track span {
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #30d9ff, transparent);
    animation: openmu-discord-live 2.4s ease-in-out infinite;
}

.openmu-discord__activity p {
    overflow: hidden;
    margin: 6px 0 0;
    color: #91a9c1;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.openmu-discord__members,
.openmu-discord__voice {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(111, 183, 230, .13);
}

.openmu-discord__avatars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
    margin: 7px 0 0;
    padding: 0 0 0 6px;
    list-style: none;
}

.openmu-discord__avatar,
.openmu-discord__avatar-more {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    margin-left: -6px;
    border: 2px solid #0a1a2d;
    border-radius: 50%;
    background: #10243d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .32);
    transition: z-index .2s ease, transform .2s ease, border-color .2s ease;
}

.openmu-discord__avatar::after {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 8px;
    height: 8px;
    content: "";
    border: 2px solid #0a1a2d;
    border-radius: 50%;
    background: #52f0cb;
}

.openmu-discord__avatar[data-status="idle"]::after { background: #f1bd58; }
.openmu-discord__avatar[data-status="dnd"]::after { background: #ed6c7f; }

.openmu-discord__avatar img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.openmu-discord__avatar:hover,
.openmu-discord__avatar:focus-within {
    z-index: 2;
    border-color: #3ddcff;
    transform: translateY(-3px);
}

.openmu-discord__avatar-more {
    display: grid;
    place-items: center;
    color: #b9d9eb;
    border-color: rgba(79, 190, 236, .35);
    background: #112941;
    font-size: 10px;
    font-weight: 800;
}

.openmu-discord__voice ul {
    display: grid;
    gap: 5px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.openmu-discord__voice li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    color: #9eb3c7;
    font-size: 10px;
}

.openmu-discord__voice li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.openmu-discord__voice li strong {
    min-width: 21px;
    padding: 2px 6px;
    color: #80e9ff;
    border-radius: 999px;
    background: rgba(44, 176, 219, .1);
    font-size: 9px;
    text-align: center;
}

.openmu-discord__footer {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(111, 183, 230, .16);
}

.openmu-discord__footer > span {
    min-width: 0;
}

.openmu-discord__footer > span strong {
    display: block;
    margin-top: 3px;
    color: #dcecf9;
    font-size: 11px;
    letter-spacing: .05em;
}

.openmu-discord__join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: none;
    min-height: 34px;
    padding: 0 12px;
    color: #ecfbff !important;
    border: 1px solid rgba(38, 202, 247, .58);
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(15, 125, 190, .38), rgba(0, 199, 234, .17));
    box-shadow: inset 0 0 16px rgba(54, 208, 255, .06);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.openmu-discord__join:hover {
    border-color: #58e3ff;
    box-shadow: 0 0 22px rgba(31, 204, 244, .2), inset 0 0 18px rgba(72, 221, 255, .09);
    transform: translateY(-1px);
}

.openmu-discord__join:focus-visible {
    outline: 2px solid #8defff;
    outline-offset: 3px;
}

.openmu-discord [hidden] {
    display: none !important;
}

@keyframes openmu-discord-pulse {
    0% { box-shadow: 0 0 0 0 rgba(82, 240, 203, .52), 0 0 10px rgba(82, 240, 203, .75); }
    70%, 100% { box-shadow: 0 0 0 6px rgba(82, 240, 203, 0), 0 0 10px rgba(82, 240, 203, .58); }
}

@keyframes openmu-discord-live {
    from { transform: translateX(-120%); }
    to { transform: translateX(390%); }
}

@keyframes openmu-discord-glint {
    0%, 64% { transform: translateX(-115%); }
    82%, 100% { transform: translateX(115%); }
}

@media (max-width: 1100px) {
    #header .openmu-discord-host--header {
        left: clamp(16px, 3vw, 34px);
        width: min(310px, calc(50% - 160px));
    }

    .openmu-discord-host--header .openmu-discord__voice {
        display: none !important;
    }
}

@media (min-width: 761px) and (max-width: 900px) {
    #header .openmu-discord-host--header {
        width: min(290px, calc(50% - 145px));
    }

    .openmu-discord-host--header .openmu-discord {
        padding: 12px;
    }

    .openmu-discord-host--header .openmu-discord__members,
    .openmu-discord-host--header .openmu-discord__voice {
        display: none !important;
    }

    .openmu-discord-host--header .openmu-discord__stat strong {
        font-size: 17px;
    }

    .openmu-discord-host--header .openmu-discord__join {
        padding: 0 8px;
        letter-spacing: .04em;
    }
}

@media (max-width: 760px) {
    #header .openmu-discord-host--header {
        display: none;
    }

    .openmu-discord-host--mobile {
        display: block;
        width: min(420px, calc(100% - 28px));
        margin: 14px auto 0;
    }

    .openmu-discord-host--mobile .openmu-discord {
        border-radius: 4px;
    }
}

@media (max-width: 420px) {
    .openmu-discord {
        padding: 14px;
    }

    .openmu-discord__name {
        max-width: 190px;
    }

    .openmu-discord__stats {
        gap: 8px;
    }

    .openmu-discord__stat {
        display: grid;
        gap: 3px;
    }

    .openmu-discord__stat strong {
        font-size: 19px;
    }

    .openmu-discord__footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .openmu-discord__join {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .openmu-discord::before,
    .openmu-discord__status-dot,
    .openmu-discord__live-track span {
        animation: none !important;
    }

    .openmu-discord__avatar,
    .openmu-discord__join,
    .openmu-discord__progress::-webkit-progress-value {
        transition: none !important;
    }

    .openmu-discord__progress::-moz-progress-bar {
        transition: none !important;
    }
}
