.twitch-status {
    width: min(calc(100% - (var(--section-padding-x) * 2)), var(--container));
    max-width: none;
    margin: var(--section-spacing) auto 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;

    --tw-purple: var(--twitch);
    --tw-purple-rgb: var(--twitch-rgb);
    --tw-purple-2: #6f5fff;
    --tw-blue: var(--primary);
    --tw-blue-rgb: var(--primary-rgb);
    --tw-red: var(--danger);
    --tw-red-rgb: var(--danger-rgb);
    --tw-green: var(--success);
    --tw-green-rgb: var(--success-rgb);
    --tw-text: var(--text);
    --tw-muted: rgba(220, 229, 248, .76);
    --tw-soft: rgba(220, 229, 248, .54);
}

.twitch-status,
.twitch-status *,
.twitch-status *::before,
.twitch-status *::after {
    box-sizing: border-box;
}

.twitch-status__shell {
    position: relative;
    width: 100%;
}

.twitch-status__top {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: end;
    gap: 34px;
    margin-bottom: 28px;
}

.twitch-status__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.twitch-status__heading-icon {
    position: relative;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.twitch-status__heading-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: -2;
    border-radius: 17px;
    background: rgba(var(--tw-purple-rgb), .34);
    filter: blur(15px);
    opacity: .92;
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.twitch-status__heading-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 17px;
    background:
        radial-gradient(circle at 34% 18%, rgba(255, 255, 255, .22), transparent 36%),
        linear-gradient(135deg, var(--tw-purple), var(--tw-purple-2) 68%, #a776ff);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, .28),
        0 0 26px rgba(var(--tw-purple-rgb), .15),
        inset 0 1px 0 rgba(255, 255, 255, .20);
}

.twitch-status__heading-icon svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    filter:
        drop-shadow(0 7px 12px rgba(0, 0, 0, .30))
        drop-shadow(0 0 12px rgba(255, 255, 255, .16));
}

.twitch-status__heading:hover .twitch-status__heading-icon::before {
    transform: scale(1.16);
    opacity: 1;
}

.twitch-status__heading-copy {
    min-width: 0;
}

.twitch-status__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #bca2ff;
    font-family: var(--font-tech);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.twitch-status__eyebrow span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--tw-purple);
    box-shadow:
        0 0 10px rgba(var(--tw-purple-rgb), .92),
        0 0 22px rgba(var(--tw-purple-rgb), .28);
    animation: twitchPulse 1.8s ease-in-out infinite;
}

.twitch-status--online .twitch-status__eyebrow span {
    background: var(--tw-green);
    box-shadow:
        0 0 10px rgba(var(--tw-green-rgb), .92),
        0 0 22px rgba(var(--tw-green-rgb), .28);
}

.twitch-status__title {
    margin: 0;
    color: var(--tw-text);
    font-family: var(--font-heading) !important;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    text-shadow:
        0 14px 38px rgba(0, 0, 0, .30),
        0 0 20px rgba(var(--tw-purple-rgb), .10);
}

.twitch-status__subtitle {
    max-width: 520px;
    margin: 0 0 4px;
    color: var(--tw-muted);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.68;
    font-weight: 500;
}

.twitch-status__card {
    position: relative;
    z-index: 2;
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr);
    gap: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border-radius: var(--radius-section);
    isolation: isolate;
    background:
        radial-gradient(circle at 10% 12%, rgba(var(--tw-purple-rgb), .18), transparent 28%),
        radial-gradient(circle at 90% 86%, rgba(var(--tw-blue-rgb), .12), transparent 32%),
        linear-gradient(135deg, rgba(8, 14, 28, .76), rgba(5, 10, 22, .60)),
        rgba(6, 11, 22, .38);
    border: 1px solid rgba(170, 188, 255, .13);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .38),
        0 0 0 1px rgba(255, 255, 255, .022),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.twitch-status__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -6;
    pointer-events: none;
    background:
        linear-gradient(rgba(170, 188, 255, .040) 1px, transparent 1px),
        linear-gradient(90deg, rgba(170, 188, 255, .040) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: .14;
    mask-image: linear-gradient(180deg, black 0%, black 52%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 52%, transparent 90%);
    animation: twitchGridMove 20s linear infinite;
}

.twitch-status__card::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -5;
    pointer-events: none;
    border-radius: calc(var(--radius-section) - 1px);
    background:
        linear-gradient(90deg, rgba(var(--tw-purple-rgb), .34), transparent 18%, transparent 82%, rgba(var(--tw-blue-rgb), .20)),
        linear-gradient(180deg, rgba(255, 255, 255, .075), transparent 44%, rgba(255, 255, 255, .026));
    -webkit-mask:
        linear-gradient(#000 0 0) top / 100% 1px no-repeat,
        linear-gradient(#000 0 0) bottom / 100% 1px no-repeat,
        linear-gradient(#000 0 0) left / 1px 100% no-repeat,
        linear-gradient(#000 0 0) right / 1px 100% no-repeat;
    mask:
        linear-gradient(#000 0 0) top / 100% 1px no-repeat,
        linear-gradient(#000 0 0) bottom / 100% 1px no-repeat,
        linear-gradient(#000 0 0) left / 1px 100% no-repeat,
        linear-gradient(#000 0 0) right / 1px 100% no-repeat;
    opacity: .88;
}

.twitch-status__card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--tw-purple-rgb), .20);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, .44),
        0 0 30px rgba(var(--tw-purple-rgb), .08),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

.twitch-status__card-glow,
.twitch-status__card-grid {
    position: absolute;
    pointer-events: none;
}

.twitch-status__card-glow {
    z-index: -7;
    border-radius: 999px;
    filter: blur(76px);
}

.twitch-status__card-glow--left {
    width: 320px;
    height: 320px;
    top: -130px;
    left: -100px;
    background: rgba(var(--tw-purple-rgb), .24);
    animation: twitchGlowLeft 9s ease-in-out infinite;
}

.twitch-status__card-glow--right {
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -190px;
    background: rgba(var(--tw-blue-rgb), .17);
    animation: twitchGlowRight 11s ease-in-out infinite;
}

.twitch-status__card-grid {
    display: none;
}

.twitch-status__preview {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border-radius: var(--radius-section) 0 0 var(--radius-section);
    background: rgba(0, 0, 0, .28);
}

.twitch-status__preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(5, 9, 20, .18), transparent 45%, rgba(5, 9, 20, .50)),
        linear-gradient(180deg, transparent 42%, rgba(4, 8, 18, .62));
    pointer-events: none;
}

.twitch-status__preview::after {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 3;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.twitch-status__preview img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition:
        transform var(--transition-slow),
        filter var(--transition-slow);
}

.twitch-status__card:hover .twitch-status__preview img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.03);
}

.twitch-status__live-badge,
.twitch-status__viewers {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.twitch-status__live-badge {
    top: 26px;
    left: 26px;
    min-height: 36px;
    gap: 9px;
    padding: 0 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)),
        rgba(8, 14, 28, .74);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    font-family: var(--font-tech);
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.twitch-status--online .twitch-status__live-badge {
    border-color: rgba(var(--tw-green-rgb), .24);
    color: #dffff3;
}

.twitch-status--offline .twitch-status__live-badge {
    border-color: rgba(var(--tw-red-rgb), .24);
    color: #ffe1e5;
}

.twitch-status__live-badge span {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
}

.twitch-status--online .twitch-status__live-badge span {
    background: var(--tw-green);
    box-shadow: 0 0 14px rgba(var(--tw-green-rgb), .85);
    animation: twitchPulse 1.8s ease-in-out infinite;
}

.twitch-status--offline .twitch-status__live-badge span {
    background: var(--tw-red);
    box-shadow: 0 0 14px rgba(var(--tw-red-rgb), .78);
}

.twitch-status__viewers {
    right: 26px;
    bottom: 26px;
    min-height: 36px;
    padding: 0 14px;
    color: #f7f9ff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)),
        rgba(8, 14, 28, .74);
    border: 1px solid rgba(255, 255, 255, .10);
    font-family: var(--font-tech);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.twitch-status__content {
    position: relative;
    min-width: 0;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.twitch-status__content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(var(--tw-purple-rgb), .36), rgba(var(--tw-blue-rgb), .22), transparent);
}

.twitch-status__channel {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    margin-bottom: 26px;
}

.twitch-status__avatar {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 18px;
}

.twitch-status__avatar::before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border-radius: 22px;
    background:
        radial-gradient(circle at 35% 30%, rgba(var(--tw-purple-rgb), .25), transparent 58%),
        radial-gradient(circle at 70% 72%, rgba(var(--tw-blue-rgb), .13), transparent 62%);
    filter: blur(11px);
    opacity: .9;
}

.twitch-status__avatar::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--tw-purple-rgb), .48), rgba(255, 255, 255, .10), rgba(var(--tw-blue-rgb), .24));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.twitch-status__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.twitch-status__channel-copy {
    min-width: 0;
}

.twitch-status__channel-copy small,
.twitch-status__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bca2ff;
    font-family: var(--font-tech);
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.twitch-status__channel-copy small::before,
.twitch-status__label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: var(--radius-pill);
    background: var(--tw-purple);
    box-shadow: 0 0 12px rgba(var(--tw-purple-rgb), .82);
}

.twitch-status--online .twitch-status__channel-copy small::before,
.twitch-status--online .twitch-status__label::before {
    background: var(--tw-green);
    box-shadow: 0 0 12px rgba(var(--tw-green-rgb), .82);
}

.twitch-status__channel-copy strong {
    display: block;
    margin-top: 8px;
    color: var(--tw-text);
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.035em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twitch-status__channel-copy em {
    display: block;
    margin-top: 7px;
    color: rgba(220, 229, 248, .58);
    font-family: var(--font-tech);
    font-size: 12px;
    line-height: 1;
    font-style: normal;
    font-weight: 700;
}

.twitch-status__stream {
    min-width: 0;
}

.twitch-status__stream h3 {
    max-width: 100%;
    margin: 14px 0 0;
    color: var(--tw-text);
    font-family: var(--font-display) !important;
    font-size: clamp(34px, 3vw, 48px);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.045em;
    text-transform: uppercase;
    text-shadow:
        0 18px 46px rgba(0, 0, 0, .34),
        0 0 24px rgba(var(--tw-purple-rgb), .10);
}

.twitch-status__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.twitch-status__meta span {
    min-height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    color: rgba(235, 240, 255, .78);
    background: rgba(255, 255, 255, .038);
    border: 1px solid rgba(255, 255, 255, .065);
    font-family: var(--font-tech);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.twitch-status__cta {
    position: relative;
    width: fit-content;
    min-height: 52px;
    margin-top: 30px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: var(--radius-pill);
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .16), transparent 28%),
        linear-gradient(135deg, var(--tw-purple) 0%, #786dff 58%, var(--tw-blue) 100%);
    box-shadow:
        0 16px 34px rgba(var(--tw-purple-rgb), .22),
        inset 0 1px 0 rgba(255, 255, 255, .14);
    font-family: var(--font-tech);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.twitch-status__cta::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--tw-green-rgb), .70), transparent);
    opacity: .72;
}

.twitch-status__cta svg {
    width: 17px;
    height: 17px;
    transition: transform var(--transition);
}

.twitch-status__card:hover .twitch-status__cta svg {
    transform: translateX(3px);
}

@keyframes twitchGridMove {
    0% {
        background-position: center 0;
    }

    100% {
        background-position: center 56px;
    }
}

@keyframes twitchGlowLeft {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: .72;
    }

    50% {
        transform: translate3d(14px, 10px, 0) scale(1.06);
        opacity: .94;
    }
}

@keyframes twitchGlowRight {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: .68;
    }

    50% {
        transform: translate3d(-10px, -14px, 0) scale(1.08);
        opacity: .88;
    }
}

@keyframes twitchPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.45);
        opacity: .52;
    }
}

@media (max-width: 1180px) {
    .twitch-status__card {
        grid-template-columns: 1fr;
    }

    .twitch-status__preview {
        border-radius: var(--radius-section) var(--radius-section) 0 0;
    }

    .twitch-status__content::before {
        display: none;
    }
}

@media (max-width: 820px) {
    .twitch-status__top {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 14px;
    }

    .twitch-status__heading {
        align-items: flex-start;
    }

    .twitch-status__heading-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .twitch-status__heading-icon svg {
        width: 28px;
        height: 28px;
    }

    .twitch-status__title {
        font-size: 17px;
    }

    .twitch-status__card {
        min-height: auto;
        border-radius: 22px;
    }

    .twitch-status__card::after {
        border-radius: 21px;
    }

    .twitch-status__preview {
        min-height: 260px;
        border-radius: 22px 22px 0 0;
    }

    .twitch-status__preview img {
        min-height: 260px;
    }

    .twitch-status__content {
        padding: 26px;
    }

    .twitch-status__stream h3 {
        font-size: clamp(30px, 8vw, 42px);
    }
}

@media (max-width: 520px) {
    .twitch-status__top {
        margin-bottom: 22px;
    }

    .twitch-status__heading {
        gap: 12px;
    }

    .twitch-status__heading-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .twitch-status__heading-icon::after,
    .twitch-status__heading-icon::before {
        border-radius: 16px;
    }

    .twitch-status__heading-icon svg {
        width: 25px;
        height: 25px;
    }

    .twitch-status__eyebrow {
        font-size: 9px;
        letter-spacing: .11em;
        margin-bottom: 8px;
    }

    .twitch-status__title {
        font-size: 16px;
    }

    .twitch-status__subtitle {
        font-size: 13.5px;
    }

    .twitch-status__card {
        border-radius: 20px;
    }

    .twitch-status__card::after {
        border-radius: 19px;
    }

    .twitch-status__preview {
        min-height: 210px;
        border-radius: 20px 20px 0 0;
    }

    .twitch-status__preview img {
        min-height: 210px;
    }

    .twitch-status__live-badge {
        top: 18px;
        left: 18px;
    }

    .twitch-status__viewers {
        right: 18px;
        bottom: 18px;
    }

    .twitch-status__content {
        padding: 20px;
    }

    .twitch-status__channel {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .twitch-status__avatar {
        width: 54px;
        height: 54px;
    }

    .twitch-status__channel-copy strong {
        font-size: 22px;
    }

    .twitch-status__stream h3 {
        font-size: clamp(28px, 10vw, 38px);
    }

    .twitch-status__cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .twitch-status *,
    .twitch-status *::before,
    .twitch-status *::after {
        animation: none !important;
        transition: none !important;
    }
}