body.pk-battle-mobile-active {
    --pwa-notification-height: 0px;
}

[data-modal="tip"].tip-modal--pk .modal-ds-content {
    border-color: rgba(155, 33, 176, 0.28) !important;
}

[data-modal="tip"].tip-modal--pk .modal-ds-content::before {
    background: conic-gradient(from 0deg,
            transparent 0deg, transparent 60deg,
            rgba(155, 33, 176, 0) 60deg,
            rgba(155, 33, 176, 0.45) 90deg,
            rgba(225, 71, 71, 0.62) 120deg,
            rgba(255, 107, 157, 0.68) 145deg,
            rgba(155, 33, 176, 0.45) 165deg,
            rgba(155, 33, 176, 0) 180deg,
            transparent 180deg) !important;
}

[data-modal="tip"].tip-modal--pk .radio-pill-controls__item--active {
    background: rgba(155, 33, 176, 0.22) !important;
    border-color: #9b21b0 !important;
    box-shadow: 0 0 14px rgba(155, 33, 176, 0.26) !important;
}

[data-modal="tip"].tip-modal--pk .tip-modal__submit {
    background: linear-gradient(90deg, #9b21b0, #e14747, #ff6b9d, #9b21b0) !important;
    border-color: rgba(155, 33, 176, 0.95) !important;
    box-shadow: 0 8px 24px rgba(155, 33, 176, 0.24) !important;
}

[data-modal="tip"].tip-modal--pk #sendTipBtn:not(.subscribeBtnDisabled):not([disabled]) {
    background: linear-gradient(225deg, #9b21b0, #c14ae0, #8e44ad, #ff6b9d, #9b21b0) !important;
    background-size: 320% 320% !important;
    color: #fff !important;
    animation: redButtonShine 3.6s linear infinite !important;
    box-shadow: 0 12px 28px rgba(155, 33, 176, 0.22) !important;
    border-color: rgba(155, 33, 176, 0.95) !important;
}

[data-modal="tip"].tip-modal--pk #sendTipBtn:not(.subscribeBtnDisabled):not([disabled])::after {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(214, 173, 255, 0.42) 50%, rgba(255, 255, 255, 0) 100%) !important;
    animation: pkButtonSweep 2.6s ease-in-out infinite !important;
}

[data-modal="tip"].tip-modal--pk .tip-modal__submit:hover,
[data-modal="tip"].tip-modal--pk .tip-modal__submit:focus {
    box-shadow: 0 10px 28px rgba(155, 33, 176, 0.34) !important;
}

[data-modal="tip"].tip-modal--pk #sendTipBtn:not(.subscribeBtnDisabled):not([disabled]):hover,
[data-modal="tip"].tip-modal--pk #sendTipBtn:not(.subscribeBtnDisabled):not([disabled]):focus {
    box-shadow: 0 0 22px rgba(155, 33, 176, 0.44), 0 4px 14px rgba(155, 33, 176, 0.26) !important;
}

[data-modal="tip"].tip-modal--pk #sendTipBtn:not(.subscribeBtnDisabled):not([disabled]):hover::after,
[data-modal="tip"].tip-modal--pk #sendTipBtn:not(.subscribeBtnDisabled):not([disabled]):focus::after {
    animation: pkButtonSweep 1.1s ease-in-out infinite !important;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(230, 196, 255, 0.62) 50%, rgba(255, 255, 255, 0) 100%) !important;
}

html.pk-battle-scroll-lock,
body.pk-battle-scroll-lock {
    overflow: hidden;
}






.pk-battle-host {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.pk-battle-root {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    z-index: 5;
}





.pk-battle-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px 24px 14px;
    min-height: 96px;
    z-index: 90;
    border-radius: 56px;
    --pk-main-highlight: #ffd700;
    --pk-opponent-highlight: #ff3332;
    --pk-track-bg: rgba(255, 255, 255, 0.12);
    --pk-border-neutral: rgba(255, 255, 255, 0.2);
    --pk-surface-dark: rgba(15, 18, 26, 0.35);
    --pk-surface-border: rgba(255, 255, 255, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    --pk-progress-main-color: rgba(255, 215, 0, 0.85);
    --pk-progress-opponent-color: rgba(255, 51, 50, 0.85);
    --pk-progress-neutral-color: rgba(255, 255, 255, 0.12);
    --pk-opponent-color: rgba(255, 51, 50, 0.85);
    --pk-opponent-color-light: rgba(255, 51, 50, 0.18);
    --pk-opponent-color-border: rgba(255, 51, 50, 0.55);
    --pk-opponent-color-glow: rgba(255, 51, 50, 0.32);
    --pk-opponent-color-text: #ffdedd;
    --pk-gold: rgba(255, 215, 0, 1);
    --pk-gold-light-a: rgba(255, 215, 0, 0.25);
    --pk-gold-light-b: rgba(255, 193, 7, 0.15);
    --pk-gold-border: rgba(255, 215, 0, 0.55);
    --pk-gold-glow: rgba(255, 215, 0, 0.35);
    --pk-red: rgba(255, 51, 50, 1);
    --pk-red-light: rgba(255, 51, 50, 0.25);
    --pk-red-border: rgba(255, 51, 50, 0.55);
    --pk-red-glow: rgba(255, 51, 50, 0.35);
    --pk-purple: rgba(142, 68, 173, 1);
    --pk-purple-light: rgba(142, 68, 173, 0.25);
    --pk-purple-border: rgba(142, 68, 173, 0.55);
    --pk-purple-glow: rgba(142, 68, 173, 0.35);
    background: none;
    box-shadow: none;
}

.pk-battle-header::before {
    content: none;
}

.pk-battle-header.pk-battle-has-donations {
    box-shadow: none;
}

.pk-battle-active .tile-header {
    display: none !important;
}

.pk-battle-active .streamerPhoto,
.pk-battle-active .streamerName,
.pk-battle-active .comments-gallery__text.streamerCaption {
    display: none !important;
}


.pk-battle-header[data-opponent-color="red"] {
    --pk-opponent-color: rgba(255, 51, 50, 0.85);
    --pk-opponent-color-light: rgba(255, 51, 50, 0.18);
    --pk-opponent-color-border: rgba(255, 51, 50, 0.55);
    --pk-opponent-color-glow: rgba(255, 51, 50, 0.32);
    --pk-opponent-color-text: #ffdedd;
    --pk-progress-opponent-color: rgba(255, 51, 50, 0.85);
}

.pk-battle-header[data-opponent-color="purple"] {
    --pk-opponent-color: rgba(142, 68, 173, 0.85);
    --pk-opponent-color-light: rgba(142, 68, 173, 0.18);
    --pk-opponent-color-border: rgba(142, 68, 173, 0.55);
    --pk-opponent-color-glow: rgba(142, 68, 173, 0.32);
    --pk-opponent-color-text: #e2d0f1;
    --pk-progress-opponent-color: rgba(142, 68, 173, 0.85);
}

.pk-battle-header[data-opponent-color="none"] {
    --pk-opponent-color: rgba(255, 255, 255, 0.3);
    --pk-opponent-color-light: rgba(255, 255, 255, 0.12);
    --pk-opponent-color-border: rgba(255, 255, 255, 0.2);
    --pk-opponent-color-glow: rgba(255, 255, 255, 0.18);
    --pk-opponent-color-text: rgba(255, 255, 255, 0.75);
    --pk-progress-opponent-color: rgba(255, 255, 255, 0.3);
}


.pk-quit--main { color: #ffd700; }
.pk-quit--main .pk-quit-card__title { color: #ffd700; }
.pk-participant-quit.pk-quit--main { background: rgba(255, 215, 0, 0.35); }

.pk-quit--opponent1 { color: #ff3332; }
.pk-quit--opponent1 .pk-quit-card__title { color: #ff3332; }
.pk-participant-quit.pk-quit--opponent1 { background: rgba(255, 51, 50, 0.35); }

.pk-quit--opponent2 { color: #8e44ad; }
.pk-quit--opponent2 .pk-quit-card__title { color: #8e44ad; }
.pk-participant-quit.pk-quit--opponent2 { background: rgba(142, 68, 173, 0.35); }


.pk-battle-header__avatar-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.pk-battle-header__avatar-container--left {
    margin-right: -32px;
}

.pk-battle-header__avatar-container--right {
    margin-left: -32px;
    display: flex;
    align-items: center;
}

.pk-battle-header__avatar-name {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    pointer-events: none;
}

.pk-battle-header__avatar-container--left .pk-battle-header__avatar-name {
    animation: modelNameGlow 4.3s ease-in-out infinite;
}

.pk-battle-header__avatar,
.pk-battle-header__opponent-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid var(--pk-border-neutral);
    object-fit: cover;
    background: rgba(12, 16, 24, 0.45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    display: block;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
    position: relative;
}

.pk-battle-header__opponent-avatar {
    cursor: pointer;
}

.pk-battle-header__opponent-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 51, 50, 0);
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 2;
}

.pk-battle-header__opponent-avatar:not(:first-child) {
    margin-left: -26px;
}

.pk-battle-header__opponent-avatar:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    z-index: 3;
    animation: none !important;
}

.pk-battle-header.pk-battle-main-active .pk-battle-header__avatar {
    border-color: rgba(255, 215, 0, 0.75);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.55);
}

.pk-battle-header.pk-battle-leading--main .pk-battle-header__avatar {
    border-color: var(--pk-main-highlight);
    box-shadow: 0 0 26px rgba(255, 215, 0, 0.88);
    transform: scale(1.03);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.65));
}

.pk-battle-header.pk-battle-near-win .pk-battle-header__opponent-avatar {
    animation: pkAvatarShakeLosing 0.4s ease-in-out infinite;
    box-shadow: 0 0 0 45px rgba(255, 51, 50, 0.85) inset, 0 0 16px rgba(255, 51, 50, 0.9);
    filter: brightness(0.6) saturate(1.8) hue-rotate(-15deg);
}

.pk-battle-header.pk-battle-near-lose .pk-battle-header__avatar {
    animation: pkAvatarShakeLosing 0.4s ease-in-out infinite;
    box-shadow: 0 0 0 45px rgba(255, 51, 50, 0.85) inset, 0 0 16px rgba(255, 51, 50, 0.9);
    filter: brightness(0.6) saturate(1.8) hue-rotate(-15deg);
}

.pk-battle-header__avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 51, 50, 0);
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 2;
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-header__opponent-avatar {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.pk-battle-header.pk-battle-leading--opponents .pk-battle-header__opponent-avatar {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

.pk-battle-header__opponent-avatar--active {
    transform: scale(1.03);
}

.pk-battle-header__opponent-avatar--leading {
    transform: scale(1.06);
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-header__opponent-avatar--1.pk-battle-header__opponent-avatar--active {
    border-color: rgba(255, 51, 50, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 51, 50, 0.42) !important;
}

.pk-battle-header.pk-battle-leading--opponents .pk-battle-header__opponent-avatar--1.pk-battle-header__opponent-avatar--leading {
    border-color: #ff3332 !important;
    box-shadow: 0 0 28px rgba(255, 51, 50, 0.65) !important;
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-header__opponent-avatar--2.pk-battle-header__opponent-avatar--active {
    border-color: rgba(142, 68, 173, 0.55) !important;
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.42) !important;
}

.pk-battle-header.pk-battle-leading--opponents .pk-battle-header__opponent-avatar--2.pk-battle-header__opponent-avatar--leading {
    border-color: #8E44AD !important;
    box-shadow: 0 0 28px rgba(142, 68, 173, 0.65) !important;
}

.pk-join-msg {
    color: #ffd700 !important;
}

.pk-battle-active .live-comments .X:not(.tip-message) .X__content,
.pk-battle-active .live-comments-mobile .X:not(.tip-message) .X__content,
.pk-battle-active #live-comments .X:not(.tip-message) .X__content,
.pk-battle-active #live-comments-mobile .X:not(.tip-message) .X__content,
.pk-battle-active .comments-gallery__comments .X:not(.tip-message) .X__content,
.pk-battle-active .comments-gallery__content .X:not(.tip-message) .X__content,
.pk-battle-active .livecommentscontainer .X:not(.tip-message) .X__content,
.pk-battle-active .livecommentscontainermobile .X:not(.tip-message) .X__content,
.pk-battle-modal .live-comments .X:not(.tip-message) .X__content,
.pk-battle-modal .live-comments-mobile .X:not(.tip-message) .X__content,
.pk-battle-modal #live-comments .X:not(.tip-message) .X__content,
.pk-battle-modal #live-comments-mobile .X:not(.tip-message) .X__content,
.pk-battle-modal .comments-gallery__comments .X:not(.tip-message) .X__content,
.pk-battle-modal .comments-gallery__content .X:not(.tip-message) .X__content {
    color: #d27fe0 !important;
}

.pk-battle-header__connecting-bar {
    position: relative;
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 100%;
    height: 56px;
    background: rgba(18, 21, 32, 0.32);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    padding: 0 84px;
    margin: 0 -40px;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.pk-battle-header__connecting-bar::before,
.pk-battle-header__connecting-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 21, 32, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
    z-index: -1;
}

.pk-battle-header__connecting-bar::before {
    left: -8px;

}

.pk-battle-header__connecting-bar::after {
    right: -8px;

}

.pk-battle-header.pk-battle-main-active .pk-battle-header__connecting-bar::before {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.32) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-color: rgba(255, 215, 0, 0.45);
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-header__connecting-bar::after {
    background: linear-gradient(270deg, var(--pk-opponent-color-light) 0%, rgba(18, 21, 32, 0.1) 100%);
    border-color: var(--pk-opponent-color-border);
}

.pk-battle-header__coin-badge {
    position: absolute;
    top: -14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 19, 28, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 5px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.pk-battle-header__coin-badge--left {
    left: 52px;
}

.pk-battle-header__coin-badge--right {
    right: 52px;
}

.pk-battle-header__coin-icon {
    font-size: 16px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
    transition: color 0.25s ease, filter 0.25s ease;
}

.pk-battle-header.pk-battle-main-active .pk-battle-header__coin-badge--left {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffeec3;
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.32);
}

.pk-battle-header.pk-battle-main-active .pk-battle-header__coin-badge--left .pk-battle-header__coin-icon {
    color: var(--pk-main-highlight);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.65));
}

.pk-battle-header.pk-battle-leading--main .pk-battle-header__coin-badge--left {
    background: rgba(255, 215, 0, 0.28);
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow: 0 14px 30px rgba(255, 215, 0, 0.42);
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-header__coin-badge--right {
    background: var(--pk-opponent-color-light);
    border-color: var(--pk-opponent-color-border);
    color: var(--pk-opponent-color-text);
    box-shadow: 0 12px 24px var(--pk-opponent-color-glow);
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-header__coin-badge--right .pk-battle-header__coin-icon {
    color: var(--pk-opponent-color);
    filter: drop-shadow(0 0 6px var(--pk-opponent-color));
}

.pk-battle-header.pk-battle-leading--opponents .pk-battle-header__coin-badge--right {
    background: var(--pk-opponent-color-light);
    border-color: var(--pk-opponent-color-border);
    box-shadow: 0 16px 32px var(--pk-opponent-color-glow);
}

.pk-battle-header__timer {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 12;
    position: relative;
    top: -4px;
    margin-bottom: 4px;
    display: inline-flex;
    gap: 0;
}

.pk-timer-digit {
    display: inline-block;
    overflow: hidden;
    position: relative;
    height: 1.2em;
    width: 14px;
    text-align: center;
    vertical-align: top;
}

.pk-timer-digit {
    display: inline-block;
    min-width: 14px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pk-timer-colon {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 0 2px;
}

.pk-digit-flip {
    animation: digitPulse 0.3s ease;
}

@keyframes digitPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pk-battle-header__timer.pk-battle-timer--warning {
    background: rgba(255, 51, 50, 0.82);
    padding: 6px 16px;
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(255, 51, 50, 0.45);
    animation: pkTimerPulse 1.2s ease-in-out infinite;
}

.pk-battle-header__timer.pk-battle-timer--warning[data-urgency="critical"] {
    animation-duration: 0.65s;
    background: linear-gradient(90deg, rgba(255, 51, 50, 0.92), rgba(255, 112, 72, 0.9));
    box-shadow: 0 0 24px rgba(255, 51, 50, 0.58);
}

.pk-battle-header__progress {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 10px;
    height: 12px;
    border-radius: 999px;
    pointer-events: none;
    overflow: hidden;
    --pk-progress-left: 0%;
    --pk-progress-right: 0%;
}

.pk-battle-header__progress::after {
    content: '';
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 50%;
    width: 12px;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 55%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.pk-battle-header.pk-battle-has-donations .pk-battle-header__progress::after {
    opacity: 0;
}

.pk-battle-header[data-opponent-color="red"] .pk-battle-header__progress::after {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.55) 0%, rgba(255, 51, 50, 0.35) 55%, rgba(255, 255, 255, 0) 100%);
}

.pk-battle-header[data-opponent-color="purple"] .pk-battle-header__progress::after {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.55) 0%, rgba(142, 68, 173, 0.35) 55%, rgba(255, 255, 255, 0) 100%);
}

.pk-battle-progress__track {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1;
}

.pk-battle-progress__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 1;
    border-radius: inherit;
    pointer-events: none;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    overflow: visible;
}

.pk-battle-progress__fill::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pk-battle-progress__fill--visible::before {
    opacity: 1;
}

.pk-battle-progress__fill--left::before {
    right: -5px;
    background: rgba(255, 215, 0, 0.92);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
}

.pk-battle-progress__fill--right::before {
    left: -5px;
    background: var(--pk-opponent-color, rgba(255, 51, 50, 0.85));
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    box-shadow: 0 0 6px rgba(255, 51, 50, 0.28);
}

.pk-battle-progress__fill--left {
    left: 0;
    width: 0%;
    background: rgba(255, 215, 0, 0.85);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
}

.pk-battle-progress__fill--right {
    right: 0;
    width: 0%;
    background: var(--pk-opponent-color);
    box-shadow: 0 0 6px var(--pk-opponent-color-glow);
}

.pk-battle-header.pk-battle-main-active .pk-battle-progress__fill--left {
    opacity: 1;
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-progress__fill--right {
    opacity: 1;
}

.pk-battle-header.pk-battle-leading--main .pk-battle-progress__fill--left {
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.85));
}

.pk-battle-header.pk-battle-leading--opponents .pk-battle-progress__fill--right {
    filter: drop-shadow(0 0 14px rgba(255, 51, 50, 0.82));
}

.pk-battle-progress__shine {
    display: none;
}

.pk-battle-progress__fill::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 35%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.3) 65%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: inherit;
}

.pk-battle-header.pk-battle-main-active .pk-battle-progress__fill--left::after {
    animation: pkBattleShineLeft 3s ease-in-out infinite;
    opacity: 1;
}

.pk-battle-header.pk-battle-opponents-active .pk-battle-progress__fill--right::after {
    animation: pkBattleShineRight 3s ease-in-out infinite;
    animation-delay: 1.5s;
    opacity: 1;
}

.pk-battle-progress__collision {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.95), rgba(255, 223, 119, 0.78) 55%, rgba(255, 132, 124, 0.4) 80%, rgba(255, 51, 50, 0.2) 100%);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.4), 0 0 8px rgba(255, 51, 50, 0.25);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.26, 0.68, 0.48, 1);
    z-index: 5;
    overflow: visible;
}

.pk-battle-progress__collision::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 7px rgba(255, 215, 0, 0.32);
    animation: pkBattleClashAura 2.4s ease-in-out infinite;
    opacity: 0.6;
}

.pk-battle-progress__collision::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 215, 0, 0.16) 60%, rgba(255, 51, 50, 0) 100%);
    filter: blur(1px);
    opacity: 0.75;
}

.pk-battle-progress__collision-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 215, 0, 0.8));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

.pk-battle-progress__collision-core::before,
.pk-battle-progress__collision-core::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0), rgba(255, 215, 0, 0.95), rgba(255, 51, 50, 0));
    transform: translate(-50%, -50%);
    box-shadow: 0 0 7px rgba(255, 215, 0, 0.5);
}

.pk-battle-progress__collision-core::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.pk-battle-progress__collision--active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pkBattleClashPulse 1.6s ease-in-out infinite;
}

.pk-battle-progress__collision--active .pk-battle-progress__collision-core::before,
.pk-battle-progress__collision--active .pk-battle-progress__collision-core::after {
    animation: pkBattleClashBeam 1.2s ease-in-out infinite;
}

@keyframes pkBattleClashPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.32), 0 0 10px rgba(255, 51, 50, 0.2);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.12);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.46), 0 0 12px rgba(255, 51, 50, 0.26);
    }
}

@keyframes pkBattleClashAura {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.35;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.75;
    }
}

@keyframes pkBattleClashBeam {

    0%,
    100% {
        transform: translate(-50%, -50%) scaleX(0.85);
        opacity: 0.75;
    }

    50% {
        transform: translate(-50%, -50%) scaleX(1.1);
        opacity: 0.9;
    }
}






.pk-battle-sidebar-wrapper {
    position: relative;
    margin-bottom: 18px;
}


.pk-battle-sidebar-frame {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.pk-battle-sidebar-frame::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110vmax;
    height: 110vmax;
    background: conic-gradient(from 0deg,
            transparent 0deg, transparent 60deg,
            rgba(142, 68, 173, 0) 60deg,
            rgba(142, 68, 173, 0.4) 90deg,
            rgba(165, 82, 255, 0.8) 120deg,
            rgba(142, 68, 173, 0.4) 150deg,
            rgba(142, 68, 173, 0) 180deg,
            transparent 180deg);
    animation: pkSidebarBorderRotate 6s linear infinite;
    z-index: 0;
    filter: blur(2px);
    transform-origin: center;
    pointer-events: none;
}

.pk-battle-sidebar-frame::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: rgba(10, 10, 18, 1);
    border-radius: 18px;
    z-index: 1;
    pointer-events: none;
}

@keyframes pkSidebarBorderRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.pk-battle-sidebar {
    position: relative;
    z-index: 2;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(10deg, rgb(87 24 98 / 63%) 0%, rgba(12, 12, 12, 0.68) 100%);
    border: 1px solid rgb(255 255 255 / 0%);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.pk-battle-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff3332, #8E44AD, #ff3332);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    position: relative;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.25));
    animation: pkSidebarTitleColorRun 3s linear infinite, pkSidebarTitleGoldGlow 2.4s ease-in-out infinite;
}

.pk-battle-sidebar__title--glow {
    background: none;
    -webkit-text-fill-color: inherit;
    color: #d28bff;
    text-shadow: 0 0 6px rgba(210, 139, 255, 0.8), 0 0 14px rgba(165, 82, 255, 0.7), 0 0 22px rgba(124, 58, 237, 0.65);
    animation: pkTitlePulse 2s ease-in-out infinite;
}

@keyframes pkTitlePulse {
    0% {
        text-shadow: 0 0 6px rgba(210, 139, 255, 0.8), 0 0 14px rgba(165, 82, 255, 0.7), 0 0 22px rgba(124, 58, 237, 0.65);
    }

    50% {
        text-shadow: 0 0 8px rgba(210, 139, 255, 1), 0 0 18px rgba(165, 82, 255, 0.95), 0 0 28px rgba(124, 58, 237, 0.8);
    }

    100% {
        text-shadow: 0 0 6px rgba(210, 139, 255, 0.8), 0 0 14px rgba(165, 82, 255, 0.7), 0 0 22px rgba(124, 58, 237, 0.65);
    }
}

.pk-battle-sidebar__participants {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


#pk-participant-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: radial-gradient(120% 120% at 50% 50%, rgba(10, 11, 16, 0.95) 0%, rgba(4, 5, 8, 0.98) 60%, #020306 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-in-out;
}

#pk-participant-overlay.pk-participant-overlay--show {
    opacity: 1;
    pointer-events: auto;
}

#pk-participant-overlay .pk-participant-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#pk-participant-overlay .live-bars {
    position: relative;
    display: flex;
    gap: 12px;
}

#pk-participant-overlay .live-bars span {
    display: inline-block;
    width: 16px;
    height: 70px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(214, 9, 8, 0.18) 0%, rgba(214, 9, 8, 0.95) 100%);
    box-shadow: 0 0 20px rgba(214, 9, 8, 0.45);
    transform-origin: center bottom;
    animation-duration: 0.6s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

#pk-participant-overlay .live-bars span:nth-child(1) {
    animation-name: liveLoaderBar1;
    animation-delay: 0s;
}

#pk-participant-overlay .live-bars span:nth-child(2) {
    animation-name: liveLoaderBar2;
    animation-delay: 0.05s;
}

#pk-participant-overlay .live-bars span:nth-child(3) {
    animation-name: liveLoaderBar3;
    animation-delay: 0.1s;
}

#pk-participant-overlay .live-bars span:nth-child(4) {
    animation-name: liveLoaderBar4;
    animation-delay: 0.15s;
}

#pk-participant-overlay .live-bars span:nth-child(5) {
    animation-name: liveLoaderBar5;
    animation-delay: 0.2s;
}

#pk-participant-overlay .pk-loading-label {
    color: #cfcfd0;
    font-size: 15px;
    letter-spacing: 0.4px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}

#pk-participant-overlay .pk-loading-text {
    color: #cfcfd0;
    text-transform: none;
}


.pk-battle-sidebar__participant {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 15, 24, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.pk-battle-sidebar__participant--main {
    border-color: rgba(255, 215, 0, 0.18);
}

.pk-battle-sidebar__participant--opponent {
    border-color: rgba(255, 255, 255, 0.12);
}

.pk-battle-sidebar__participant--opponent-1 {
    border-color: rgba(255, 51, 50, 0.18);
}

.pk-battle-sidebar__participant--opponent-2 {
    border-color: rgba(142, 68, 173, 0.22);
}

.pk-battle-sidebar__participant--active.pk-battle-sidebar__participant--main {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.45);
}

.pk-battle-sidebar__participant--active.pk-battle-sidebar__participant--opponent {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pk-battle-sidebar__participant--active.pk-battle-sidebar__participant--opponent-1 {
    background: rgba(255, 51, 50, 0.12);
    border-color: rgba(255, 51, 50, 0.45);
}

.pk-battle-sidebar__participant--active.pk-battle-sidebar__participant--opponent-2 {
    background: rgba(142, 68, 173, 0.12);
    border-color: rgba(142, 68, 173, 0.45);
}

.pk-battle-sidebar__participant--leading.pk-battle-sidebar__participant--main {
    box-shadow: 0 8px 26px rgba(255, 215, 0, 0.42);
}

.pk-battle-sidebar__participant--leading.pk-battle-sidebar__participant--opponent-1 {
    box-shadow: 0 8px 26px rgba(255, 51, 50, 0.42);
}

.pk-battle-sidebar__participant--leading.pk-battle-sidebar__participant--opponent-2 {
    box-shadow: 0 8px 26px rgba(142, 68, 173, 0.42);
}

.pk-battle-sidebar__participant--second,
.pk-battle-sidebar__participant--third {
    animation: pkSidebarShakeLosing 0.5s ease-in-out infinite;
}

.pk-battle-sidebar__participant.pk-sidebar-position-changed {
    animation: pkSidebarPositionChange 0.6s ease-out;
}

.pk-battle-sidebar__participant.pk-sidebar-swapping {
    will-change: transform;
    animation: none !important;
}

.pk-battle-sidebar__participant--second .pk-battle-sidebar__avatar,
.pk-battle-sidebar__participant--third .pk-battle-sidebar__avatar {
    box-shadow: 0 0 0 20px rgba(255, 51, 50, 0.35) inset, inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    filter: brightness(0.8) saturate(1.2) hue-rotate(-5deg);
}

.pk-battle-sidebar__avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.pk-battle-sidebar__participant--main .pk-battle-sidebar__avatar {
    animation: photoScale 3.2s ease-in-out infinite;
    transform-origin: center;
}

.pk-battle-sidebar__avatar .pk-battle-sidebar__avatar-border {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    pointer-events: none;
    z-index: 0;
    display: none !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 6px rgba(255, 51, 50, 0.35),
        0 0 6px rgba(142, 68, 173, 0.3);
}

.pk-battle-sidebar__avatar .pk-battle-sidebar__avatar-border::before {
    background: transparent;
}

.pk-battle-sidebar__participant--active .pk-battle-sidebar__avatar .pk-battle-sidebar__avatar-border,
.pk-battle-sidebar__participant--main .pk-battle-sidebar__avatar .pk-battle-sidebar__avatar-border {
    display: block !important;
}

.pk-battle-sidebar__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pk-battle-sidebar__name {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-battle-sidebar__participant--main .pk-battle-sidebar__name {
    animation: modelNameGlow 4.3s ease-in-out infinite;
}

.pk-battle-sidebar__coins {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.pk-battle-sidebar__participant--leading .pk-battle-sidebar__coins {
    color: #ffe06b;
}

.pk-battle-sidebar__participant--leading.pk-battle-sidebar__participant--opponent-1 .pk-battle-sidebar__coins {
    color: #ffb4b0;
}

.pk-battle-sidebar__participant--leading.pk-battle-sidebar__participant--opponent-2 .pk-battle-sidebar__coins {
    color: #d7b8f0;
}

@media (max-width: 1024px) {
    .pk-battle-sidebar-wrapper {
        display: none;
    }
}


.pk-battle-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
}

.pk-battle-avatar--main {
    cursor: default;
}

.pk-battle-avatar__img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.95);
    overflow: hidden;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.pk-battle-avatar__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pk-battle-avatar__coins {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffd700;
    font-size: 18px;
    font-weight: 700;
}

.pk-battle-avatar__coin-icon {
    font-size: 18px;
    line-height: 1;
}


.pk-battle-coins--pulse,
.pk-battle-coins-main.pk-battle-coins--pulse,
.pk-battle-coins-opponents.pk-battle-coins--pulse {
    animation: pkCoinPulse 0.4s ease;
}

@keyframes pkCoinPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        color: #ffef86;
    }
}





.pk-battle-stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 1px 1px;
    display: flex;
    gap: 5px;
    align-items: stretch;
    justify-content: space-between;
    z-index: 5;
}

.pk-battle-stage--grid {
    flex-wrap: wrap;
    justify-content: center;
}

.pk-battle-opponent-column {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pk-battle-stream {
    position: relative;
    flex: 1;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pk-battle-stream--main {
    cursor: default;
}

.pk-battle-stage--2person .pk-battle-stream {
    flex: 1;
    max-width: 50%;
}

.pk-battle-stage--2person .pk-battle-stream--opponent {
    flex: 1;
    max-width: 50%;
}

.pk-battle-stream--opponent {
    cursor: pointer;
}

.pk-battle-stream--opponent:hover {
    transform: scale(0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.pk-battle-participant .pk-battle-stream--opponent {
    cursor: default;
}

.pk-battle-participant .pk-battle-stream--opponent:hover {
    transform: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

.pk-battle-stream::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    pointer-events: none;
    box-shadow: none;
    opacity: 0.55;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.pk-battle-stream.pk-stream-main-active::after {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
    opacity: 0.75;
}

.pk-battle-stream.pk-stream-main-leading::after {
    border-color: #ffd700;
    box-shadow: 0 0 32px rgba(255, 215, 0, 0.55);
    opacity: 1;
}

.pk-battle-stream.pk-stream-opponent-active::after {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
    opacity: 0.75;
}

.pk-battle-stream.pk-stream-opponent-leading::after {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.pk-battle-stream--opponent-1.pk-stream-opponent-active::after {
    border-color: rgba(255, 51, 50, 0.5);
    box-shadow: 0 0 20px rgba(255, 51, 50, 0.42);
}

.pk-battle-stream--opponent-1.pk-stream-opponent-leading::after {
    border-color: #ff3332;
    box-shadow: 0 0 32px rgba(255, 51, 50, 0.65);
}

.pk-battle-stream--opponent-2.pk-stream-opponent-active::after {
    border-color: rgba(142, 68, 173, 0.55);
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.42);
}

.pk-battle-stream--opponent-2.pk-stream-opponent-leading::after {
    border-color: #8E44AD;
    box-shadow: 0 0 32px rgba(142, 68, 173, 0.65);
}

.pk-battle-stream.pk-stream-intensity-low::after {
    opacity: 0.65;
}

.pk-battle-stream.pk-stream-intensity-mid::after {
    opacity: 0.85;
}

.pk-battle-stream.pk-stream-intensity-high::after {
    opacity: 1;
    transform: scale(1.01);
}

.pk-battle-stream--main.pk-stream-pulse::after {
    animation: pkStreamPulseGold 0.5s ease-in-out !important;
}

.pk-battle-stream--opponent-1.pk-stream-pulse::after {
    animation: pkStreamPulseRed 0.5s ease-in-out !important;
}

.pk-battle-stream--opponent-2.pk-stream-pulse::after {
    animation: pkStreamPulsePurple 0.5s ease-in-out !important;
}

.pk-battle-stream.pk-stream-pulse::after {
    animation: pkStreamPulse 0.5s ease-in-out !important;
}

.pk-battle-stream__corner-accent {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.14);
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}

.pk-battle-stream__corner-accent--tl {
    top: -1px;
    left: -1px;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}

.pk-battle-stream__corner-accent--tr {
    top: -1px;
    right: -1px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
}

.pk-battle-stream__corner-accent--bl {
    bottom: -1px;
    left: -1px;
    clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
}

.pk-battle-stream__corner-accent--br {
    bottom: -1px;
    right: -1px;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

.pk-battle-stream.pk-stream-main-active .pk-battle-stream__corner-accent {
    background: rgba(255, 215, 0, 0.6);
    opacity: 0.75;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.pk-battle-stream.pk-stream-main-leading .pk-battle-stream__corner-accent {
    background: #ffd700;
    opacity: 1;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.7);
}

.pk-battle-stream.pk-stream-opponent-active .pk-battle-stream__corner-accent {
    opacity: 0.75;
}

.pk-battle-stream.pk-stream-opponent-leading .pk-battle-stream__corner-accent {
    opacity: 1;
}

.pk-battle-stream--opponent-1.pk-stream-opponent-active .pk-battle-stream__corner-accent {
    background: rgba(255, 51, 50, 0.6);
    box-shadow: 0 0 12px rgba(255, 51, 50, 0.5);
}

.pk-battle-stream--opponent-1.pk-stream-opponent-leading .pk-battle-stream__corner-accent {
    background: #ff3332;
    box-shadow: 0 0 16px rgba(255, 51, 50, 0.7);
}

.pk-battle-stream--opponent-2.pk-stream-opponent-active .pk-battle-stream__corner-accent {
    background: rgba(142, 68, 173, 0.6);
    box-shadow: 0 0 12px rgba(142, 68, 173, 0.5);
}

.pk-battle-stream--opponent-2.pk-stream-opponent-leading .pk-battle-stream__corner-accent {
    background: #8E44AD;
    box-shadow: 0 0 16px rgba(142, 68, 173, 0.7);
}

.pk-battle-stream.pk-stream-intensity-low .pk-battle-stream__corner-accent {
    opacity: 0.5;
}

.pk-battle-stream.pk-stream-intensity-mid .pk-battle-stream__corner-accent {
    opacity: 0.75;
}

.pk-battle-stream.pk-stream-intensity-high .pk-battle-stream__corner-accent {
    opacity: 1;
    transform: scale(1.1);
}

.pk-battle-stream--main.pk-stream-pulse .pk-battle-stream__corner-accent {
    animation: pkCornerAccentPulseGold 0.5s ease-in-out !important;
}

.pk-battle-stream--opponent-1.pk-stream-pulse .pk-battle-stream__corner-accent {
    animation: pkCornerAccentPulseRed 0.5s ease-in-out !important;
}

.pk-battle-stream--opponent-2.pk-stream-pulse .pk-battle-stream__corner-accent {
    animation: pkCornerAccentPulsePurple 0.5s ease-in-out !important;
}

@keyframes pkCornerAccentPulseGold {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 24px rgba(255, 215, 0, 1);
    }
}

@keyframes pkCornerAccentPulseRed {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
        box-shadow: 0 0 12px rgba(255, 51, 50, 0.5);
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 24px rgba(255, 51, 50, 1);
    }
}

@keyframes pkCornerAccentPulsePurple {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
        box-shadow: 0 0 12px rgba(142, 68, 173, 0.5);
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 24px rgba(142, 68, 173, 1);
    }
}

.pk-battle-video-container {
    position: absolute;
    inset: 0;
    background: transparent;
}

.pk-battle-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
}

.pk-battle-stream__flash {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    border-radius: 22px;
}

.pk-battle-stream.pk-stream-pulse {
    animation: pkStreamShake 0.5s ease-in-out;
}

.pk-battle-stream--main.pk-stream-pulse .pk-battle-stream__flash {
    animation: pkFlashGold 0.5s ease-out;
}

.pk-battle-stream--opponent-1.pk-stream-pulse .pk-battle-stream__flash {
    animation: pkFlashRed 0.5s ease-out;
}

.pk-battle-stream--opponent-2.pk-stream-pulse .pk-battle-stream__flash {
    animation: pkFlashPurple 0.5s ease-out;
}

.pk-battle-stream__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(195 47 28 / 48%) 95%);
    color: #fff;
}

.pk-battle-stream--main .pk-battle-stream__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(255 215 0 / 48%) 95%);
}

.pk-battle-stream--opponent-1 .pk-battle-stream__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(195 47 28 / 48%) 95%);
}

.pk-battle-stream--opponent-2 .pk-battle-stream__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(142 68 173 / 48%) 95%);
}

.pk-battle-stream__name {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.pk-battle-stream--main .pk-battle-stream__name {
    animation: modelNameGlow 4.3s ease-in-out infinite;
}

.pk-battle-tip-pop {
    position: absolute;
    bottom: 24%;
    left: 22px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 238, 125, 0.85));
    color: #2b1a00;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 18px 34px rgba(255, 215, 0, 0.35);
    pointer-events: none;
    z-index: 5;
    animation: pkBattleTipPop 1.6s ease forwards;
    white-space: nowrap;
}

.pk-battle-stream--opponent-1 .pk-battle-tip-pop {
    background: linear-gradient(135deg, rgba(195, 47, 28, 0.95), rgba(255, 51, 50, 0.85));
    color: #fff;
    box-shadow: 0 18px 34px rgba(195, 47, 28, 0.35);
}

.pk-battle-stream--opponent-2 .pk-battle-tip-pop {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.95), rgba(142, 68, 173, 0.85));
    color: #fff;
    box-shadow: 0 18px 34px rgba(142, 68, 173, 0.35);
}

@keyframes pkBattleTipPop {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.85);
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.pk-battle-coins--pulse {
    animation: pkBattleCoinPulse 0.45s ease;
}

@keyframes pkBattleCoinPulse {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

.pk-battle-end-overlay {
    position: fixed;
    inset: 0;

    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 999999999999;
    padding: 24px;
    animation: pkBattleEndFade 0.4s ease;
}

.pk-battle-end-overlay__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.pk-battle-end-overlay__winner {
    font-size: 26px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.65);
    margin-bottom: 8px;
}

.pk-battle-end-overlay--draw .pk-battle-end-overlay__winner {
    color: #f5f5f5;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.pk-battle-end-overlay__details {
    font-size: 16px;
    opacity: 0.9;
}

.pk-battle-end-overlay--draw .pk-battle-end-overlay__details {
    opacity: 0.85;
}

.pk-battle-end-overlay__details--secondary {
    margin-top: 6px;
    font-size: 15px;
    opacity: 0.75;
}

.pk-battle-end-overlay--results {
    padding: 0;
}


.pk-battle-results-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 12px;
}


.pk-battle-root:has(.pk-battle-end-overlay)>.pk-battle-close {
    display: none !important;
}


[data-modal]:not(.pk-battle-active) .pk-battle-root,
[data-modal]:not(.pk-battle-active) .pk-battle-header,
[data-modal]:not(.pk-battle-active) .pk-battle-end-overlay,
[data-modal]:not(.pk-battle-active) .pk-battle-close,
[data-modal]:not(.pk-battle-active) .pk-battle-mobile-opponents {
    display: none !important;
}

.pk-battle-results-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
    border: none;
    outline: none;
}

.pk-battle-results-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.pk-battle-results-close svg {
    fill: #fff;
    color: #fff;
}

.pk-battle-results {
    width: 100%;
    max-width: 820px;
    background: #170619 !important;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 25px 20px;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.pk-battle-results::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110vmax;
    height: 110vmax;
    background: conic-gradient(from 0deg,
            transparent 0deg, transparent 60deg,
            rgba(142, 68, 173, 0) 60deg,
            rgba(142, 68, 173, 0.4) 90deg,
            rgba(165, 82, 255, 0.8) 120deg,
            rgba(142, 68, 173, 0.4) 150deg,
            rgba(142, 68, 173, 0) 180deg,
            transparent 180deg);
    animation: pkSidebarBorderRotate 6s linear infinite;
    z-index: 0;
    filter: blur(2px);
    transform-origin: center;
    pointer-events: none;
}

.pk-battle-results::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #170619;
    border-radius: 19px;
    z-index: 1;
    pointer-events: none;
}

.pk-battle-results__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff3332, #8E44AD, #ff3332);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.25));
    animation: pkSidebarTitleColorRun 3s linear infinite, pkSidebarTitleGoldGlow 2.4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.pk-battle-results__subtitle {
    font-size: 12px;
    opacity: 0.88;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.pk-battle-results__winner-name {
    font-weight: 700;
    color: #ffd400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 212, 0, 0.8);
    animation: modelNameGlow 4.3s ease-in-out infinite;
}

.pk-battle-results__podium {
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pk-battle-results__podium--count-1 {
    justify-content: center;
}

.pk-battle-results__podium--no-winner .pk-battle-results__slot {
    width: 120px;
    opacity: 1;
}

.pk-battle-results__slot {
    position: relative;
    width: 160px;
    padding: 14px 12px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.32));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.6s ease, width 0s, padding 0s;
}

.pk-battle-results__slot.pk-has-dice {
    min-height: 280px;
}

.pk-battle-results__slot--first {
    width: 180px;
    padding: 17px 14px 19px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.18), rgba(0, 0, 0, 0.38));
    border-color: rgba(255, 215, 0, 0.4);
    animation: pkPodiumGoldPulse 2s ease-in-out infinite;
}

.pk-battle-results__slot--first.pk-has-dice {
    min-height: 300px;
}

.pk-battle-results__slot--second {
    opacity: 0.92;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.15), rgba(0, 0, 0, 0.35));
    border-color: rgba(192, 192, 192, 0.35);
    animation: pkPodiumSilverPulse 2.5s ease-in-out infinite;
}

.pk-battle-results__slot--third {
    opacity: 0.82;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.15), rgba(0, 0, 0, 0.35));
    border-color: rgba(205, 127, 50, 0.35);
    animation: pkPodiumBronzePulse 3s ease-in-out infinite;
}

.pk-battle-results__slot--loser {
    opacity: 0.6;
    background: linear-gradient(180deg, rgba(100, 100, 100, 0.08), rgba(0, 0, 0, 0.4));
    border-color: rgba(255, 255, 255, 0.08);
}

.pk-battle-results__slot--tie {
    opacity: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.32));
    border-color: rgba(255, 255, 255, 0.12);
}

.pk-battle-results__slot-crown {
    font-size: 21px;
    margin-bottom: 4px;
    animation: crownFadeIn 0.5s ease forwards;
}

@keyframes crownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pk-battle-results__slot-rank {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 6px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.pk-battle-results__slot-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 8px auto 7px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.pk-battle-results__slot--first .pk-battle-results__slot-avatar {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.45);
    animation: pkPodiumAvatarGoldGlow 2s ease-in-out infinite;
}

.pk-battle-results__slot--second .pk-battle-results__slot-avatar {
    border-color: rgba(192, 192, 192, 0.7);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
    animation: pkPodiumAvatarSilverGlow 2.5s ease-in-out infinite;
}

.pk-battle-results__slot--third .pk-battle-results__slot-avatar {
    border-color: rgba(205, 127, 50, 0.7);
    box-shadow: 0 0 18px rgba(205, 127, 50, 0.4);
    animation: pkPodiumAvatarBronzeGlow 3s ease-in-out infinite;
}

.pk-battle-results__slot-name {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
    width: 100%;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.pk-battle-results__slot--first .pk-battle-results__slot-name {
    max-width: 107px;
}

.pk-battle-results__slot-amount {
    font-size: 11px;
    opacity: 0.85;
}

.pk-battle-results__dice {
    margin: 8px auto;
}

.pk-dice {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pkDiceGlow 2s ease-in-out infinite, pkDiceRoll 0.8s ease-out;
}

.pk-dice--spinning {
    animation: pkDiceSpin3D 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), pkDiceGlow 0.5s ease-in-out infinite !important;
}


.pk-battle-results__dice--3d {
    width: 120px !important;
    height: 120px !important;
    background: transparent;
    border-radius: 8px;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 12px auto;
    overflow: visible;
    border: none;
    opacity: 1;
}

.pk-battle-results__dice--3d.pk-dice-animating {
    animation: diceFadeIn 0.8s ease forwards;
    animation-fill-mode: forwards !important;
}

@keyframes diceFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pk-battle-results__dice--3d.pk-dice-winner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgb(0 0 0 / 40%) 50%, rgba(255, 215, 0, 0.3) 100%) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3);
    animation: pkDiceWinnerGlow 2s ease-in-out infinite;
    border: 2px solid rgba(255, 215, 0, 0.6);
    position: relative;
    opacity: 1 !important;
    display: flex !important;
}

.pk-battle-results__dice--3d.pk-dice-winner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

.pk-battle-results__dice--3d.pk-dice-winner canvas {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

@keyframes pkDiceWinnerGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 45px rgba(255, 215, 0, 0.7), 0 0 80px rgba(255, 215, 0, 0.5);
    }
}

.pk-golden-dice-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 3px;
    position: relative;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    margin: 0 3px;
}

.pk-golden-dice-icon::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        -5px -5px 0 rgba(0, 0, 0, 0.7),
        5px 5px 0 rgba(0, 0, 0, 0.7);
}

.pk-battle-results__dice--3d canvas {
    border-radius: 8px;
    display: block !important;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

.pk-battle-results__dice--3d .pk-dice {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pk-dice__dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pk-dice__dot--tl {
    top: 10px;
    left: 10px;
}

.pk-dice__dot--tr {
    top: 10px;
    right: 10px;
}

.pk-dice__dot--ml {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.pk-dice__dot--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pk-dice__dot--mr {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.pk-dice__dot--bl {
    bottom: 10px;
    left: 10px;
}

.pk-dice__dot--br {
    bottom: 10px;
    right: 10px;
}

@keyframes pkDiceGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

@keyframes pkDiceRoll {
    0% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0;
    }

    20% {
        transform: scale(1.2) rotate(180deg);
    }

    40% {
        transform: scale(0.9) rotate(360deg);
    }

    60% {
        transform: scale(1.1) rotate(540deg);
    }

    80% {
        transform: scale(0.95) rotate(720deg);
    }

    100% {
        transform: scale(1) rotate(720deg);
        opacity: 1;
    }
}

@keyframes pkDiceSpin3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }

    25% {
        transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg) scale(1.3);
    }

    50% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg) scale(0.9);
    }

    75% {
        transform: rotateX(540deg) rotateY(540deg) rotateZ(270deg) scale(1.2);
    }

    100% {
        transform: rotateX(720deg) rotateY(720deg) rotateZ(360deg) scale(1);
    }
}

.pk-battle-results__slot--first .pk-dice {
    width: 55px;
    height: 55px;
    animation: pkDiceGlow 1.5s ease-in-out infinite, pkDiceRoll 0.8s ease-out, pkDiceWinnerPulse 2s ease-in-out infinite 0.8s;
}

.pk-battle-results__slot--first .pk-dice__dot {
    width: 9px;
    height: 9px;
}

@keyframes pkDiceWinnerPulse {

    0%,
    100% {
        transform: scale(1) rotate(720deg);
    }

    50% {
        transform: scale(1.1) rotate(720deg);
    }
}

.pk-battle-results__donors {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 16px;
    position: relative;
    z-index: 2;
}

.pk-battle-results__donors--empty {
    text-align: center;
    background: rgba(0, 0, 0, 0.24);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 11px;
    opacity: 0.8;
}

.pk-battle-results__donors-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.pk-battle-results__donor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-battle-results__donor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.pk-battle-results__donor--mvp {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.22), rgba(255, 193, 7, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 8px 22px rgba(255, 215, 0, 0.18);
}

.pk-battle-results__donor--ace {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.22), rgba(169, 169, 169, 0.08));
    border: 1px solid rgba(192, 192, 192, 0.35);
    box-shadow: 0 8px 22px rgba(192, 192, 192, 0.18);
}

.pk-battle-results__donor--hero {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.22), rgba(184, 115, 51, 0.08));
    border: 1px solid rgba(205, 127, 50, 0.35);
    box-shadow: 0 8px 22px rgba(205, 127, 50, 0.18);
}

.pk-battle-results__donor-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.pk-battle-results__donor-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}


.pk-battle-results__donor:nth-child(1)::after,
.pk-battle-results__donor:nth-child(2)::after,
.pk-battle-results__donor:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%);
    animation: pkDonorShine 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
    border-radius: 8px;
}


.pk-battle-results__donor:nth-child(1)::after {
    animation-delay: 0s;
}

.pk-battle-results__donor:nth-child(2)::after {
    animation-delay: 1.7s;
}

.pk-battle-results__donor:nth-child(3)::after {
    animation-delay: 3.4s;
}

.pk-battle-results__donor-name {
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pk-battle-results__badge {
    display: inline-block;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pk-battle-results__badge--mvp {
    color: #2b1500;
    background: linear-gradient(135deg, #ffd700, #ffb400);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.pk-battle-results__badge--ace {
    color: #1a1a1a;
    background: linear-gradient(135deg, #e8e8e8, #c0c0c0);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.pk-battle-results__badge--hero {
    color: #1a1a1a;
    background: linear-gradient(135deg, #cd7f32, #b87333);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.pk-battle-results__donor-amount {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

.pk-live-card {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: pkCardFadeIn 0.6s ease-out forwards;
}

@keyframes pkCardFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.pk-live-card__participant {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.pk-live-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.pk-live-card__media--video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    pointer-events: none;
}


.pk-live-card--count-2 .pk-live-card__main {
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
}

.pk-live-card--count-2 .pk-live-card__opponent {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

@keyframes diagonalLineFlow {
    0% {
        background-position: 0% 0%;
        filter: brightness(1);
    }

    25% {
        background-position: 25% 25%;
        filter: brightness(0.8);
    }

    50% {
        background-position: 100% 100%;
        filter: brightness(1);
    }

    75% {
        background-position: 75% 75%;
        filter: brightness(0.8);
    }

    100% {
        background-position: 0% 0%;
        filter: brightness(1);
    }
}

@keyframes diagonalLineFlowReverse {
    0% {
        background-position: 100% 100%;
        filter: brightness(1);
    }

    25% {
        background-position: 75% 75%;
        filter: brightness(0.8);
    }

    50% {
        background-position: 0% 0%;
        filter: brightness(1);
    }

    75% {
        background-position: 25% 25%;
        filter: brightness(0.8);
    }

    100% {
        background-position: 100% 100%;
        filter: brightness(1);
    }
}

@keyframes diagonalLineFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-53.6deg) scale(0.5);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-53.6deg) scale(1);
        filter: blur(0px);
    }
}

@keyframes scrollLineFadeIn {
    0% {
        opacity: 0;
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes diagonalLineFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-53.6deg) scale(1);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-53.6deg) scale(0.5);
        filter: blur(8px);
    }
}


@keyframes lineSplitTop {
    from {
        transform: translate(-50%, -50%) rotate(-53.6deg);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -50%) rotate(-53.6deg) translate(120%, -10%);
        opacity: 0.45;
    }
}

@keyframes lineSplitBottom {
    from {
        transform: translate(-50%, -50%) rotate(-53.6deg);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -50%) rotate(-53.6deg) translate(-120%, 10%);
        opacity: 0.45;
    }
}

@keyframes lineSplitTopReturn {
    from {
        transform: translate(-50%, -50%) rotate(-53.6deg) translate(120%, -10%);
        opacity: 0.45;
    }

    to {
        transform: translate(-50%, -50%) rotate(-53.6deg);
        opacity: 1;
    }
}

@keyframes lineSplitBottomReturn {
    from {
        transform: translate(-50%, -50%) rotate(-53.6deg) translate(-120%, 10%);
        opacity: 0.45;
    }

    to {
        transform: translate(-50%, -50%) rotate(-53.6deg);
        opacity: 1;
    }
}

@keyframes lineReturnTopCorner3 {
    from {
        transform: rotate(15.7deg) translate(120%, 140%);
        opacity: 0.45;
    }

    to {
        transform: rotate(15.7deg);
        opacity: 1;
    }
}

@keyframes lineReturnBottomCorner3 {
    from {
        transform: rotate(15.7deg) translate(-120%, -140%);
        opacity: 0.45;
    }

    to {
        transform: rotate(15.7deg);
        opacity: 1;
    }
}

.pk-live-card--count-2::before,
.pk-live-card--count-2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(255, 51, 50, 0) 0%,
            rgba(255, 51, 50, 1) 15%,
            rgba(142, 68, 173, 1) 35%,
            rgba(255, 51, 50, 1) 50%,
            rgba(142, 68, 173, 1) 65%,
            rgba(255, 51, 50, 1) 85%,
            rgba(255, 51, 50, 0) 100%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    box-shadow:
        0 0 6px rgba(142, 68, 173, 0.4),
        0 0 4px rgba(255, 51, 50, 0.3);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(-53.6deg);
    pointer-events: none;
    --line-offset: 0px;
    opacity: 1;
}

.pk-live-card.pk-lines-open.pk-live-card--count-2::before {
    transform: translate(-50%, -50%) rotate(-53.6deg) translate(120%, -10%);
    opacity: 0.45;
}

.pk-live-card.pk-lines-open.pk-live-card--count-2::after {
    transform: translate(-50%, -50%) rotate(-53.6deg) translate(-120%, 10%);
    opacity: 0.45;
}

.pk-live-card.pk-lines-lock.pk-live-card--count-2::before {
    animation: lineSplitTopReturn 0.6s ease-in forwards, diagonalLineFlow 16s linear infinite !important;
}

.pk-live-card.pk-lines-lock.pk-live-card--count-2::after {
    animation: lineSplitBottomReturn 0.6s ease-in forwards, diagonalLineFlowReverse 16s linear infinite !important;
}

.pk-live-card--count-2::before {
    z-index: 1000 !important;
    animation: diagonalLineFlow 4s ease-in-out infinite, diagonalLineFadeIn 0.8s ease-out forwards;
}

.pk-live-card.pk-lines-release.pk-live-card--count-2::before {
    animation: lineSplitTop 0.6s ease-in-out both, diagonalLineFlow 16s linear infinite !important;
}

.pk-live-card--count-2::after {
    z-index: 999 !important;
    animation: diagonalLineFlowReverse 4s ease-in-out infinite, diagonalLineFadeIn 0.8s ease-out forwards;
}

.pk-live-card.pk-lines-release.pk-live-card--count-2::after {
    animation: lineSplitBottom 0.6s ease-in-out both, diagonalLineFlowReverse 16s linear infinite !important;
}


.pk-live-card--count-2.pk-hovered::before {
    animation: lineSplitTop 0.6s ease-out forwards, diagonalLineFlow 16s linear infinite !important;
    z-index: 999 !important;
}

.pk-live-card--count-2.pk-hovered::after {
    animation: lineSplitBottom 0.6s ease-out forwards, diagonalLineFlow 16s linear infinite !important;
    z-index: 998 !important;
}



.pk-live-card--count-2:not(.pk-hovered)::before {

    animation: diagonalLineFlow 16s linear infinite;
}

.pk-live-card--count-2:not(.pk-hovered)::after {

    animation: diagonalLineFlowReverse 16s linear infinite;
}




.pk-live-card--count-3 .pk-live-card__main,
.pk-live-card--count-3 .pk-live-card__opponent--1,
.pk-live-card--count-3 .pk-live-card__opponent--2 {
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s !important;
}


.pk-live-card--count-3 .pk-live-card__main {
    clip-path: polygon(-14% 0, 37% 0, -5% 110%, -14% 110%) !important;
    z-index: 3 !important;
}


.pk-live-card--count-3 .pk-live-card__opponent--1 {
    clip-path: polygon(37% 0, 93% 0, 52% 110%, -5% 110%) !important;
    z-index: 2 !important;
}


.pk-live-card--count-3 .pk-live-card__opponent--2 {
    clip-path: polygon(93% 0, 153% 0, 113% 110%, 52% 110%) !important;
    z-index: 3 !important;
}


.pk-live-card--count-3 .pk-live-card__participant {

}


.pk-live-card--count-3 .pk-live-card__participant img {
    object-fit: cover !important;
}



.pk-live-card--count-2 .pk-live-card__main {
    z-index: 1 !important;
}

.pk-live-card--count-2 .pk-live-card__opponent {
    z-index: 2 !important;
}

.pk-live-card--count-3 .pk-live-card__main {
    z-index: 1 !important;
}

.pk-live-card--count-3 .pk-live-card__opponent--1 {
    z-index: 2 !important;
}

.pk-live-card--count-3 .pk-live-card__opponent--2 {
    z-index: 3 !important;
}


.pk-live-card--count-2 .pk-live-card__participant>*,
.pk-live-card--count-3 .pk-live-card__participant>* {
    position: relative !important;
    z-index: 1 !important;
}


.pk-live-card--count-2::before,
.pk-live-card--count-3::before,
.pk-live-card--count-3::after {
    z-index: 999 !important;
}








.pk-battle-shadow {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(142 68 173 / 48%) 95%) !important;
}




@keyframes lineSplitTop1x2 {
    from {
        transform: rotate(15.7deg);
        opacity: 1;
    }

    to {
        transform: rotate(15.7deg) translate(120%, 140%);
        opacity: 0.45;
    }
}

@keyframes lineSplitBottom1x2 {
    from {
        transform: rotate(15.7deg);
        opacity: 1;
    }

    to {
        transform: rotate(15.7deg) translate(-120%, -140%);
        opacity: 0.45;
    }
}


.pk-live-card--count-3::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 38.5%;
    width: 6px;

    height: 180%;

    background: linear-gradient(180deg,
            rgba(255, 51, 50, 0) 0%,
            rgba(255, 51, 50, 1) 15%,
            rgba(142, 68, 173, 1) 35%,
            rgba(255, 51, 50, 1) 50%,
            rgba(142, 68, 173, 1) 65%,
            rgba(255, 51, 50, 1) 85%,
            rgba(255, 51, 50, 0) 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.6);
    transform-origin: top center;
    transform: rotate(15.7deg);
    pointer-events: none;
    animation: diagonalLineFlow 16s linear infinite;
    transition: top 0.6s ease-out, left 0.6s ease-out, opacity 0.6s ease-out;
}

.pk-live-card.pk-lines-open.pk-live-card--count-3::before {
    transform: rotate(15.7deg) translate(120%, 140%);
    opacity: 0.45;
}

.pk-live-card.pk-lines-lock.pk-live-card--count-3::before {
    animation: lineReturnTopCorner3 0.6s ease-in forwards, diagonalLineFlow 16s linear infinite !important;
}


.pk-live-card--count-3::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 96.5%;
    width: 6px;

    height: 180%;

    background: linear-gradient(180deg,
            rgba(255, 51, 50, 0) 0%,
            rgba(255, 51, 50, 1) 15%,
            rgba(142, 68, 173, 1) 35%,
            rgba(255, 51, 50, 1) 50%,
            rgba(142, 68, 173, 1) 65%,
            rgba(255, 51, 50, 1) 85%,
            rgba(255, 51, 50, 0) 100%);
    background-size: 200% 200%;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.6);
    transform-origin: top center;
    transform: rotate(15.7deg);
    pointer-events: none;
    animation: diagonalLineFlowReverse 16s linear infinite;
    transition: top 0.6s ease-out, left 0.6s ease-out, opacity 0.6s ease-out;
}

.pk-live-card.pk-lines-open.pk-live-card--count-3::after {
    transform: rotate(15.7deg) translate(-120%, -140%);
    opacity: 0.45;
}

.pk-live-card.pk-lines-lock.pk-live-card--count-3::after {
    animation: lineReturnBottomCorner3 0.6s ease-in forwards, diagonalLineFlowReverse 16s linear infinite !important;
}


.pk-live-card--count-3.pk-hovered::before {
    animation: lineSplitTop1x2 0.6s ease-out forwards, diagonalLineFlow 16s linear infinite !important;
    z-index: 999 !important;
}

.pk-live-card--count-3.pk-hovered::after {
    animation: lineSplitBottom1x2 0.6s ease-out forwards, diagonalLineFlowReverse 16s linear infinite !important;
    z-index: 999 !important;
}

.pk-live-card.pk-lines-release.pk-live-card--count-3::before {
    animation: lineSplitTop1x2 0.6s ease-in-out both, diagonalLineFlow 16s linear infinite !important;
}

.pk-live-card.pk-lines-release.pk-live-card--count-3::after {
    animation: lineSplitBottom1x2 0.6s ease-in-out both, diagonalLineFlowReverse 16s linear infinite !important;
}


.pk-live-card--count-3:not(.pk-hovered)::before {

    animation: diagonalLineFlow 16s linear infinite;
}

.pk-live-card--count-3:not(.pk-hovered)::after {

    animation: diagonalLineFlowReverse 16s linear infinite;
}


.pk-live-card--count-3 .pk-live-card__opponent--2::after {
    content: none !important;
}


.pk-live-card--count-3 .pk-live-card__opponent--2::after {
    content: none !important;
}

@keyframes pkCardReleaseFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.94);
    }
}

.pk-live-card.pk-lines-release {
    animation: pkCardReleaseFade 0.5s ease-out 0.45s forwards;
}





















.pk-battle-coin-flight {
    position: absolute;
    z-index: 999;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #2b1600;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.55);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: transform 0.72s cubic-bezier(0.21, 0.8, 0.38, 1), opacity 0.72s cubic-bezier(0.21, 0.8, 0.38, 1);
    pointer-events: none;
    --pk-flight-x: 0px;
    --pk-flight-y: 0px;
}

.pk-battle-coin-flight--active {
    opacity: 1;
    transform: translate(calc(-50% + var(--pk-flight-x)), calc(-50% + var(--pk-flight-y))) scale(1);
}

.pk-battle-sidebar__participant--celebrating {
    animation: pkBattleWinnerPulse 1.2s ease-out both;
}

@keyframes pkBattleWinnerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.0);
        transform: translateY(0);
    }

    45% {
        box-shadow: 0 0 28px 0 rgba(255, 215, 0, 0.55);
        transform: translateY(-3px);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        transform: translateY(0);
    }
}

@keyframes pkBattleEndFade {
    0% {
        opacity: 0;
        transform: scale(0.94);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pkCardFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.92);
        filter: brightness(0.6);
    }
}

@keyframes pkCardFadeIn {
    0% {
        opacity: 0.4;
        transform: scale(0.92);
        filter: brightness(0.6);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.02);
        filter: brightness(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes pkCardPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 51, 50, 0), inset 0 0 0 0 rgba(255, 51, 50, 0);
    }

    50% {
        transform: scale(0.98);
        box-shadow: 0 0 20px 5px rgba(255, 51, 50, 0.4), inset 0 0 30px 5px rgba(255, 51, 50, 0.15);
    }
}

.pk-card-fade-out {
    animation: pkCardFadeOut 0.4s ease-out forwards !important;
}

.pk-card-fade-in {
    animation: pkCardFadeIn 0.8s ease-out forwards !important;
}


.a:has(.vs-badge) {
    animation: pkCardPulse 2s ease-in-out infinite !important;
    border: 2px solid rgba(255, 51, 50, 0.6) !important;
    border-radius: 18px !important;
}


.bL__item.pk-battle-flash .a {
    animation: pkStreamShake 0.5s ease-in-out !important;
}

.bL__item.pk-battle-flash::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    background: rgba(255, 51, 50, 0.5);
    animation: pkFlashRed 0.6s ease-out;
    z-index: 2;
}



body.live-open .hot-badge {
    display: none !important;
}

body.live-open .pk-scroll-line {
    animation: none !important;
    transform: translate(-50%, -50%) rotate(-56.0deg) !important;
    opacity: 1 !important;
}

body.live-open .pk-live-card--count-2::before,
body.live-open .pk-live-card--count-2::after {
    animation: none !important;
    transform: translate(-50%, -50%) rotate(-56.0deg) !important;
    opacity: 1 !important;
}

body.live-open .pk-live-card--count-3::before,
body.live-open .pk-live-card--count-3::after {
    animation: none !important;
    transform: rotate(15.7deg) !important;
    opacity: 1 !important;
}

body.live-open .pk-live-card.pk-lines-lock::before,
body.live-open .pk-live-card.pk-lines-lock::after,
body.live-open .pk-live-card.pk-lines-release::before,
body.live-open .pk-live-card.pk-lines-release::after,
body.live-open .pk-live-card.pk-lines-open::before,
body.live-open .pk-live-card.pk-lines-open::after {
    animation: none !important;
}


@media (max-width: 768px) {

    .liveModels .pk-live-card--count-2::before,
    .liveModels .pk-live-card--count-2::after {
        width: 200% !important;
        height: 5px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) rotate(-56.0deg) !important;
    }

    .liveModels .pk-live-card.pk-lines-lock.pk-live-card--count-2::before,
    .liveModels .pk-live-card.pk-lines-lock.pk-live-card--count-2::after,
    .liveModels .pk-live-card.pk-lines-open.pk-live-card--count-2::before,
    .liveModels .pk-live-card.pk-lines-open.pk-live-card--count-2::after,
    .liveModels .pk-live-card.pk-lines-release.pk-live-card--count-2::before,
    .liveModels .pk-live-card.pk-lines-release.pk-live-card--count-2::after,
    .liveModels .pk-live-card--count-2.pk-hovered::before,
    .liveModels .pk-live-card--count-2.pk-hovered::after {
        width: 200% !important;
        height: 5px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) rotate(-56.0deg) !important;
    }

    .liveModels .pk-live-card--count-3::before,
    .liveModels .pk-live-card--count-3::after {
        top: -8% !important;
        width: 7px !important;
        height: 200% !important;
        transform: rotate(14.5deg) !important;
    }

    .liveModels .pk-live-card--count-3::before {
        left: 38% !important;
    }

    .liveModels .pk-live-card--count-3::after {
        left: 96% !important;
    }

    .liveModels .pk-live-card.pk-lines-lock.pk-live-card--count-3::before,
    .liveModels .pk-live-card.pk-lines-open.pk-live-card--count-3::before,
    .liveModels .pk-live-card.pk-lines-release.pk-live-card--count-3::before,
    .liveModels .pk-live-card--count-3.pk-hovered::before {
        top: -8% !important;
        left: 38% !important;
        width: 7px !important;
        height: 200% !important;
        transform: rotate(14.5deg) !important;
    }

    .liveModels .pk-live-card.pk-lines-lock.pk-live-card--count-3::after,
    .liveModels .pk-live-card.pk-lines-open.pk-live-card--count-3::after,
    .liveModels .pk-live-card.pk-lines-release.pk-live-card--count-3::after,
    .liveModels .pk-live-card--count-3.pk-hovered::after {
        top: -8% !important;
        left: 96% !important;
        width: 7px !important;
        height: 200% !important;
        transform: rotate(14.5deg) !important;
    }

    body.live-open .pk-live-card--count-2::before,
    body.live-open .pk-live-card--count-2::after {
        width: 180% !important;
        height: 4px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) rotate(-56.0deg) !important;
    }

    body.live-open .pk-live-card.pk-lines-lock.pk-live-card--count-2::before,
    body.live-open .pk-live-card.pk-lines-lock.pk-live-card--count-2::after,
    body.live-open .pk-live-card.pk-lines-open.pk-live-card--count-2::before,
    body.live-open .pk-live-card.pk-lines-open.pk-live-card--count-2::after,
    body.live-open .pk-live-card.pk-lines-release.pk-live-card--count-2::before,
    body.live-open .pk-live-card.pk-lines-release.pk-live-card--count-2::after,
    body.live-open .pk-live-card--count-2.pk-hovered::before,
    body.live-open .pk-live-card--count-2.pk-hovered::after {
        width: 180% !important;
        height: 4px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) rotate(-56.0deg) !important;
    }

    body.live-open .pk-live-card--count-3::before {
        top: -10% !important;
        left: 38.5% !important;
        width: 6px !important;
        height: 200% !important;
        transform: rotate(14.5deg) !important;
    }

    body.live-open .pk-live-card--count-3::after {
        top: -10% !important;
        left: 96.5% !important;
        width: 6px !important;
        height: 200% !important;
        transform: rotate(14.5deg) !important;
    }

    body.live-open .pk-live-card.pk-lines-lock.pk-live-card--count-3::before,
    body.live-open .pk-live-card.pk-lines-open.pk-live-card--count-3::before,
    body.live-open .pk-live-card.pk-lines-release.pk-live-card--count-3::before,
    body.live-open .pk-live-card--count-3.pk-hovered::before {
        top: -10% !important;
        left: 38.5% !important;
        width: 6px !important;
        height: 200% !important;
        transform: rotate(14.5deg) !important;
    }

    body.live-open .pk-live-card.pk-lines-lock.pk-live-card--count-3::after,
    body.live-open .pk-live-card.pk-lines-open.pk-live-card--count-3::after,
    body.live-open .pk-live-card.pk-lines-release.pk-live-card--count-3::after,
    body.live-open .pk-live-card--count-3.pk-hovered::after {
        top: -10% !important;
        left: 96.5% !important;
        width: 6px !important;
        height: 200% !important;
        transform: rotate(14.5deg) !important;
    }
}


.pk-live-card--battle-ending::before,
.pk-live-card--battle-ending::after {
    animation: diagonalLineFadeOut 0.6s ease-out forwards !important;
}



















@media (max-width: 1200px) {
    .pk-battle-header {
        padding: 18px 28px;
    }

    .pk-battle-stage {
        padding: 0 28px 28px;
        gap: 18px;
    }

    .pk-battle-avatar__img {
        width: 56px;
        height: 56px;
    }

    .pk-battle-avatar__coins {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .pk-battle-host {
        border-radius: 0;
    }

    .pk-battle-stream {
        border-radius: 0;
    }

    .pk-battle-stream::after {
        border-radius: 0;
        border-width: 2px;
    }

    .pk-battle-header {
        top: 75px;
        padding: 14px 18px;
        min-height: 88px;

    }


    .pk-battle-header__connecting-bar {
        height: 64px !important;

        padding: 0 90px !important;

        min-width: 280px !important;

    }

    .pk-battle-header__connecting-bar::before,
    .pk-battle-header__connecting-bar::after {
        width: 52px !important;

        height: 52px !important;

    }

    .pk-battle-header__timer {
        font-size: 24px !important;

        font-weight: 800 !important;
    }

    .pk-battle-header__coin-badge {
        padding: 6px 16px !important;

        font-size: 16px !important;

    }

    .pk-battle-header__coin-badge--left {
        left: 58px !important;

    }

    .pk-battle-header__coin-badge--right {
        right: 58px !important;

    }

    .pk-battle-header__coin-icon {
        font-size: 18px !important;

    }

    .pk-battle-header__progress {
        left: 24px;
        right: 24px;
        bottom: 10px;
        height: 14px !important;

    }

    .pk-battle-avatar__img {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .pk-battle-avatar__coins {
        font-size: 14px;
    }

    .pk-battle-active .pk-battle-mobile-hide {
        display: none !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--main,
    .pk-battle-stage--2person .pk-battle-stream--main,
    .pk-battle-stage--3person .pk-battle-stream--main,
    .pk-battle-stage--grid .pk-battle-stream--main {
        border-radius: 0 !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--main::after,
    .pk-battle-stage--2person .pk-battle-stream--main::after,
    .pk-battle-stage--3person .pk-battle-stream--main::after,
    .pk-battle-stage--grid .pk-battle-stream--main::after {
        border-radius: 0 !important;
    }

    .pk-battle-stage {
        padding: 0;
        display: block;
        position: relative;
        height: 100%;
    }

    .pk-battle-stage--2person,
    .pk-battle-stage--3person,
    .pk-battle-stage--grid {
        position: relative;
        height: 100%;
    }

    .pk-battle-stage--2person .pk-battle-stream {
        flex: none !important;
        max-width: none !important;
    }

    .pk-battle-stage--2person .pk-battle-stream--main,
    .pk-battle-stage--3person .pk-battle-stream--main,
    .pk-battle-stage--grid .pk-battle-stream--main {
        position: absolute !important;
        inset: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        flex: none !important;
        max-width: none !important;
    }

    .pk-battle-stage--2person .pk-battle-stream--main,
    .pk-battle-stage--3person .pk-battle-stream--main,
    .pk-battle-stage--grid .pk-battle-stream--main {
        box-shadow: inset 0 0 0 3px rgba(255, 215, 0, 0.9) !important;
    }

    .pk-battle-stage--2person .pk-battle-stream--main::after,
    .pk-battle-stage--3person .pk-battle-stream--main::after,
    .pk-battle-stage--grid .pk-battle-stream--main::after {
        display: none !important;
    }


    .pk-battle-stage--mobile .pk-battle-stream--main::after {
        display: block !important;
        border-width: 3px !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        height: 100vh !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--opponent-1::after,
    .pk-battle-stage--mobile .pk-battle-stream--opponent-2::after {
        display: block !important;
        border-width: 2px !important;
        border-radius: 12px !important;
    }


    .pk-battle-stage--mobile {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--main {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        z-index: 1 !important;
        pointer-events: none !important;
        overflow: visible !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--main .pk-battle-video-container,
    .pk-battle-stage--mobile .pk-battle-stream--main .pk-battle-stream__overlay {
        pointer-events: none !important;
        overflow: hidden !important;
    }

    .pk-battle-mobile-opponents {
        position: fixed !important;
        right: 12px !important;
        top: 175px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        z-index: 999 !important;
        pointer-events: auto !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--opponent {
        position: relative !important;
        width: 120px !important;
        height: 180px !important;
        min-width: 120px !important;
        min-height: 180px !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
        overflow: hidden !important;
        cursor: pointer !important;
        background: #000 !important;
        border: 2px solid var(--pk-opponent-color-border) !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--opponent .pk-battle-video-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--opponent .pk-battle-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        pointer-events: none !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--opponent:active {
        transform: scale(0.95) !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--opponent .pk-battle-stream__overlay {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 8px !important;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(195 47 28 / 48%) 95%) !important;
    }

    .pk-battle-stage--mobile .pk-battle-stream--opponent .pk-battle-stream__name {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #fff !important;
        text-align: left !important;
        padding-left: 8px !important;
    }

    .pk-battle-stream__overlay {
        padding: 14px;
    }

    .pk-battle-stream__name {
        font-size: 16px;
    }

    .pk-battle-stream--main .pk-battle-stream__name {
        animation: modelNameGlow 4.3s ease-in-out infinite;
    }

    .pk-battle-tip-pop {
        bottom: 22%;
        left: 14px;
        font-size: 14px;
        padding: 6px 12px;
    }

    .pk-battle-stream--opponent-1 .pk-battle-tip-pop,
    .pk-battle-stream--opponent-2 .pk-battle-tip-pop {
        font-size: 11px;
        padding: 4px 8px;
        left: 10px;
        bottom: 18%;
    }

    .pk-battle-end-overlay__title {
        font-size: 26px;
    }

    .pk-battle-end-overlay__winner {
        font-size: 22px;
    }

    .pk-battle-end-overlay__details {
        font-size: 15px;
    }


    body.pk-battle-mobile-active .header-top {
        display: flex !important;
        background: transparent !important;
        box-shadow: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        z-index: 9999 !important;
    }

    body.pk-battle-mobile-active .header-top .container {
        background: transparent !important;
    }

    body.pk-battle-mobile-active .header-top .btn,
    body.pk-battle-mobile-active .header-top a,
    body.pk-battle-mobile-active .header-top button {
        pointer-events: auto;
        margin-top: 8px;
    }

    body.pk-battle-mobile-active .close-live-mobile {
        display: none !important;
    }

    .pk-battle-close {
        position: absolute;
        top: 65px;
        right: 16px;
        z-index: 1000;
    }

    .media-gallery--mobile-portrait .media-gallery__close {
        opacity: .7;
        right: 15px;
        top: 65px;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-root {
        z-index: 999999999998 !important;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-end-overlay {
        z-index: 999999999999 !important;
        position: fixed !important;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-header__coin-badge--left {

    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-header__coin-badge--right {

    }

    .pk-battle-stream__corner-accent--tl {
        top: -1px;
        left: -1px;
        clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
    }

    .pk-battle-stream__corner-accent--tr {
        top: -1px;
        right: -1px;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
    }

    .pk-battle-stream__corner-accent--bl {
        bottom: -1px;
        left: -1px;
        clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
    }

    .pk-battle-stream__corner-accent--br {
        bottom: -1px;
        right: -1px;
        clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
    }
}

@media (max-width: 768px) {
    .pk-battle-header__timer {
        font-size: 16px !important;
        font-weight: 800 !important;
    }

    .pk-battle-header__avatar-name {
        bottom: -20px;
    }

    .pk-battle-header.pk-battle-near-lose .pk-battle-header__avatar {
        animation: pkAvatarShakeLosing 0.4s ease-in-out infinite;
        box-shadow: 0 0 0 45px rgba(255, 51, 50, 0.85) inset, 0 0 16px rgba(255, 51, 50, 0.9);
        filter: brightness(0.6) saturate(1.8) hue-rotate(-15deg);
    }

    .pk-battle-header.pk-battle-near-lose .pk-battle-header__avatar-name {
        animation: pkNameShakeLosing 0.4s ease-in-out infinite;
        color: #ff3332;
        text-shadow: 0 0 10px rgba(255, 51, 50, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
    }
}




.pk-battle-active .media-gallery__controls-panel,
.pk-battle-active .media-gallery__image-thumbs {
    display: none !important;
}


.pk-battle-active .fullscreen-overlay-btn {
    display: none !important;
}


.pk-battle-active .media-gallery__aside-panel--mobile {
    z-index: 100 !important;
    pointer-events: none !important;
}


.pk-battle-active .media-gallery__aside-panel--mobile .avatar-wrapper {
    display: none !important;
}

.pk-battle-active .media-gallery__aside-panel--mobile .streamerName {
    display: none !important;
}

.pk-battle-active .media-gallery__aside-panel--mobile .displayname__verified {
    display: none !important;
}


.pk-battle-active .streamingWrapperMobile {
    pointer-events: none !important;
}

.pk-battle-active .pk-battle-root {
    pointer-events: auto !important;
}


[data-modal="live_mobile"].pk-battle-active .audio-overlay-btn,
[data-modal="live_pc"].pk-battle-active .audio-overlay-btn {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100000 !important;
    position: fixed !important;
    bottom: auto !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
}

@media (max-width: 768px) {

    .pk-battle-active .chat-controls .input-wrapper {
        background: linear-gradient(225deg, #ff3332, #8e44ad, #ff3332, #8e44ad) !important;
        background-size: 400% 400% !important;
        color: #fff !important;
        animation: pkGiftShine 3.6s linear infinite;
        box-shadow: 0 12px 28px rgba(255, 51, 50, 0.18), 0 12px 28px rgba(142, 68, 173, 0.18) !important;
        position: relative;
        overflow: hidden;
    }

    .pk-battle-active .chat-controls .input-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: -55%;
        width: 55%;
        height: 100%;
        background: linear-gradient(120deg,
            rgba(255, 51, 50, 0) 0%,
            rgba(255, 51, 50, 0.35) 35%,
            rgba(142, 68, 173, 0.45) 65%,
            rgba(142, 68, 173, 0) 100%);
        transform: skewX(-18deg);
        animation: pkButtonSweep 2.6s ease-in-out infinite;
        pointer-events: none;
    }

    .pk-battle-active .chat-controls .input-wrapper input,
    .pk-battle-active .chat-controls .input-wrapper textarea {
        color: #fff !important;
    }

    .pk-battle-active .chat-controls .input-wrapper input::placeholder,
    .pk-battle-active .chat-controls .input-wrapper textarea::placeholder {
        color: rgba(255, 255, 255, 0.9) !important;
    }



    [data-modal="live_mobile"].pk-battle-active .audio-overlay-btn {
        top: 555px !important;
        bottom: auto !important;
        right: 12px !important;
        transform: none !important;
        position: fixed !important;
    }


    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="1"] .audio-overlay-btn {
        top: 397px !important;
    }

    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="2"] .audio-overlay-btn {
        top: 607px !important;
    }
}


.pk-battle-active #sendLiveGiftMobile,
.pk-battle-active #sendLiveGift,
.pk-battle-active .chat-controls,
.pk-battle-active .chat-controls-input,
.pk-battle-active .input-wrapper,
.pk-battle-active #live-message-mobile-input,
.pk-battle-active .comments-gallery__content,
.pk-battle-active .comments-gallery__comments,
.pk-battle-active .live-comments {
    pointer-events: auto !important;

    position: relative !important;
}

@media (min-width: 769px) {
    .pk-battle-active .comments-gallery__wrapper {
        background: #170619 !important;
    }

    .pk-battle-active .chat-controls .input-wrapper {
        background: linear-gradient(225deg, #ff3332, #8e44ad, #ff3332, #8e44ad) !important;
        background-size: 400% 400% !important;
        color: #fff !important;
        animation: pkGiftShine 3.6s linear infinite;
        box-shadow: 0 12px 28px rgba(255, 51, 50, 0.18), 0 12px 28px rgba(142, 68, 173, 0.18) !important;
        position: relative;
        overflow: hidden;
    }

    .pk-battle-active .chat-controls-input.chat-controls-input--style--multy-line::placeholder,
    .pk-battle-active .chat-controls-input.chat-controls-input--style--multy-line {
        color: #fff !important;
        opacity: 1 !important;
    }

    .pk-battle-active .control-button.send-button {
        background: transparent !important;
        background-image: none !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
        color: #fff !important;
        animation: none !important;
        box-shadow: none !important;
        position: relative;
        overflow: visible;
    }

    .pk-battle-active .control-button.send-button svg {
        fill: currentColor !important;
        stroke: currentColor !important;
    }

    .pk-battle-active .control-button.send-button .control-icon,
    .pk-battle-active .control-button.send-button .send-icon {
        color: #ff3332 !important;
        fill: #ff3332 !important;
        stroke: #ff3332 !important;
        opacity: 1 !important;
        animation: pkGiftIconPulse 3.6s linear infinite;
        filter: drop-shadow(0 0 6px rgba(255, 51, 50, 0.5));
    }

    .pk-battle-active .chat-controls .input-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: -55%;
        width: 55%;
        height: 100%;
        background: linear-gradient(120deg,
            rgba(255, 51, 50, 0) 0%,
            rgba(255, 51, 50, 0.35) 35%,
            rgba(142, 68, 173, 0.45) 65%,
            rgba(142, 68, 173, 0) 100%);
        transform: skewX(-18deg);
        animation: pkButtonSweep 2.6s ease-in-out infinite;
        pointer-events: none;
    }

    .pk-battle-active .control-button.send-button:hover {
        box-shadow: none !important;
    }


    .pk-battle-active .messenger-chat-stub {
        background: #57345d !important;
    }

    .pk-battle-active .messenger-chat-stub .btn.btn-apply.btn-medium[onclick="openModal('login')"] {
        background: linear-gradient(225deg, #9c27b0, #b85ad1, #9c27b0) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.65) !important;
        box-shadow: 0 0 15px rgba(156, 39, 176, 0.35), 0 0 24px rgba(184, 90, 209, 0.3) !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 13px rgba(156, 39, 176, 0.55), 0 0 21px rgba(184, 90, 209, 0.45) !important;
        animation: pkGiftShine 3.6s linear infinite;
        position: relative;
        overflow: hidden;
    }

    .pk-battle-active .messenger-chat-stub .btn.btn-apply.btn-medium[onclick="openModal('login')"]::after {
        content: "";
        position: absolute;
        top: 0;
        left: -55%;
        width: 55%;
        height: 100%;
        background: linear-gradient(120deg,
            rgba(156, 39, 176, 0) 0%,
            rgba(156, 39, 176, 0.35) 35%,
            rgba(184, 90, 209, 0.45) 65%,
            rgba(184, 90, 209, 0) 100%);
        transform: skewX(-18deg);
        animation: pkButtonSweep 2.6s ease-in-out infinite;
        pointer-events: none;
    }


    .pk-battle-active #sendLiveGift:hover {
        animation: pkGiftPulse 0.7s ease-in-out infinite, pkGiftShine 0.7s linear infinite !important;
        animation-duration: 0.7s, 0.7s !important;
        transform: scale(1.05) !important;
        box-shadow: 0 0 18px rgba(255, 51, 50, 0.35), 0 0 26px rgba(142, 68, 173, 0.32) !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .pk-battle-active #sendLiveGift:hover .tile-button__icon,
    .pk-battle-active #sendLiveGift:hover .icon,
    .pk-battle-active #sendLiveGift:hover svg {
        filter: drop-shadow(0 0 10px rgba(255, 51, 50, 0.65)) drop-shadow(0 0 16px rgba(142, 68, 173, 0.55)) !important;
        transition: filter 0.15s ease;
    }
}


@media (max-width: 768px) {

    [data-modal="live_mobile"].pk-battle-active .pk-battle-header {
        opacity: 0;
        transform: translateX(-40px);
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent-1,
    [data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent-2 {
        opacity: 0;
        transform: translateX(40px);
    }

    [data-modal="live_mobile"].pk-battle-active .audio-overlay-btn {
        opacity: 0;
    }

    [data-modal="live_mobile"].pk-battle-active .chat-controls-content,
    [data-modal="live_mobile"].pk-battle-active .live-comments-mobile,
    [data-modal="live_mobile"].pk-battle-active .comments-gallery__comments {
        opacity: 0;
        transform: translateY(30px);
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-header {
        animation: pkMobileSlideLeft 0.55s ease-out forwards !important;
        animation-fill-mode: both;
        will-change: transform, opacity;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent-1 {
        animation: pkMobileSlideRight 0.55s ease-out 0.12s forwards !important;
        animation-fill-mode: both;
        will-change: transform, opacity;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent-2 {
        animation: pkMobileSlideRight 0.55s ease-out 0.24s forwards !important;
        animation-fill-mode: both;
        will-change: transform, opacity;
    }

    [data-modal="live_mobile"].pk-battle-active .chat-controls-content,
    [data-modal="live_mobile"].pk-battle-active .live-comments-mobile,
    [data-modal="live_mobile"].pk-battle-active .comments-gallery__comments {
        animation: pkMobileSlideUp 0.55s ease-out 0.2s forwards !important;
        animation-fill-mode: both;
        will-change: transform, opacity;
    }

    [data-modal="live_mobile"].pk-battle-active .audio-overlay-btn {
        animation: pkMobileFadeIn 0.55s ease-out 0.36s forwards !important;
        animation-fill-mode: both;
        will-change: opacity;
    }

    [data-modal="live_mobile"].pk-battle-active .livecommentscontainermobile,
    [data-modal="live_mobile"].pk-battle-active .comments-gallery__content,
    [data-modal="live_mobile"].pk-battle-active .comments-gallery__comments,
    [data-modal="live_mobile"].pk-battle-active .live-comments-mobile {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        pointer-events: auto !important;
    }

    [data-modal="live_mobile"].pk-battle-active .media-gallery__close,
    [data-modal="live_mobile"].pk-battle-active .pk-battle-close {
        animation: pkMobileSlideLeft 0.55s ease-out 0.05s forwards !important;
        animation-fill-mode: both;
        will-change: transform, opacity;
        opacity: 0;
        transform: translateX(-30px);
    }


    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper {
        background: linear-gradient(225deg, #9c27b0, #b85ad1, #9c27b0) !important;
        background-size: 320% 320% !important;
        color: #fff !important;
        animation: pkGiftShine 3.6s linear infinite;
        overflow: hidden;
        position: relative;
    }

    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: -55%;
        width: 55%;
        height: 100%;
        background: linear-gradient(120deg,
            rgba(156, 39, 176, 0) 0%,
            rgba(156, 39, 176, 0.35) 35%,
            rgba(184, 90, 209, 0.45) 65%,
            rgba(184, 90, 209, 0) 100%);
        transform: skewX(-18deg);
        animation: pkButtonSweep 2.6s ease-in-out infinite;
        pointer-events: none;
    }


}

@keyframes pkMobileSlideLeft {
    0% { transform: translateX(-40px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes pkMobileSlideRight {
    0% { transform: translateX(40px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes pkMobileSlideUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes pkMobileFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pkGiftIconPulse {
    0% {
        color: #ff3332;
        filter: drop-shadow(0 0 6px rgba(255, 51, 50, 0.5));
    }
    50% {
        color: #8e44ad;
        filter: drop-shadow(0 0 8px rgba(142, 68, 173, 0.55));
    }
    100% {
        color: #ff3332;
        filter: drop-shadow(0 0 6px rgba(255, 51, 50, 0.5));
    }
}

.pk-battle-active .control-button.send-button {
    pointer-events: auto !important;

    position: relative !important;
}


[data-modal="live_mobile"].pk-battle-active .pk-battle-mobile-opponents {
    position: fixed !important;
    right: 12px !important;
    top: 175px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 999 !important;
    pointer-events: auto !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent {
    position: relative !important;
    width: 110px !important;
    height: 200px !important;
    min-width: 110px !important;
    min-height: 200px !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
    overflow: hidden !important;
    cursor: pointer !important;
    background: #000 !important;
    border: 2px solid var(--pk-opponent-color-border) !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;

    margin-top: 5px !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent .pk-battle-video-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    pointer-events: none !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent .pk-battle-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent:active {
    transform: scale(0.95) !important;
    border-color: var(--pk-opponent-color-border) !important;
    box-shadow: 0 8px 24px var(--pk-opponent-color-glow) !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent * {
    pointer-events: none !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent .pk-battle-stream__overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 8px !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent-1 .pk-battle-stream__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(195 47 28 / 48%) 95%) !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent-2 .pk-battle-stream__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(142 68 173 / 48%) 95%) !important;
}

[data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent .pk-battle-stream__name {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-align: left !important;

}




@keyframes pkGiftPulse {
    0% {
        background-position: 0% 50%;
        background-color: #ff3332;
        box-shadow: 0 0 32px rgba(255, 51, 50, 0.45);
        transform: translateY(0) scale(1);
    }
    35% {
        background-position: 100% 50%;
        background-color: #8e44ad;
        box-shadow: 0 0 38px rgba(142, 68, 173, 0.55);
        transform: translateY(0) scale(1.02);
    }
    55% {
        background-color: #ff3332;
        box-shadow: 0 0 46px rgba(255, 51, 50, 0.65);
        transform: translateY(-2px) scale(1.05);
    }
    100% {
        background-position: 0% 50%;
        background-color: #8e44ad;
        box-shadow: 0 0 32px rgba(142, 68, 173, 0.45);
        transform: translateY(0) scale(1);
    }
}

@keyframes pkGiftShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (min-width: 769px) {
    .pk-battle-active #sendLiveGift,
    [data-modal="live"]#live.pk-battle-active #sendLiveGift {
        background: linear-gradient(225deg, #ff3332, #8e44ad, #ff3332, #8e44ad) !important;
        background-image: linear-gradient(225deg, #ff3332, #8e44ad, #ff3332, #8e44ad) !important;
        background-color: #ff3332 !important;
        background-size: 400% 400% !important;
        color: #fff !important;
        animation: pkGiftPulse 3.6s ease-in-out infinite !important, pkGiftShine 3.6s linear infinite !important;

        border-color: rgba(255, 255, 255, 0.55) !important;
        position: relative;
        overflow: hidden;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .pk-battle-active #sendLiveGift:hover,
    [data-modal="live"]#live.pk-battle-active #sendLiveGift:hover {
        animation: pkGiftPulse 1s ease-in-out infinite, pkGiftShine 1s linear infinite !important;
        box-shadow: 0 0 32px rgba(255, 51, 50, 0.65), 0 0 32px rgba(142, 68, 173, 0.65) !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    .pk-battle-active #sendLiveGift:hover::after {
        animation: pkButtonSweep 0.8s ease-in-out infinite !important;
    }

    .pk-battle-active #sendLiveGift::after {
        content: "";
        position: absolute;
        top: 0;
        left: -55%;
        width: 55%;
        height: 100%;
        background: linear-gradient(120deg,
            rgba(255, 51, 50, 0) 0%,
            rgba(255, 51, 50, 0.35) 35%,
            rgba(142, 68, 173, 0.45) 65%,
            rgba(142, 68, 173, 0) 100%);
        transform: skewX(-18deg);
        animation: pkButtonSweep 2.6s ease-in-out infinite;
    }

    .pk-battle-active #sendLiveGift .icon,
    .pk-battle-active #sendLiveGift svg {
        filter: drop-shadow(0 0 8px rgba(255, 51, 50, 0.65)) drop-shadow(0 0 14px rgba(142, 68, 173, 0.55));
    }

    .pk-battle-active #sendLiveGift:hover .icon,
    .pk-battle-active #sendLiveGift:hover svg,
    .pk-battle-active #sendLiveGift:hover .tile-button__icon {
        filter: drop-shadow(0 0 12px rgba(255, 51, 50, 0.7)) drop-shadow(0 0 18px rgba(142, 68, 173, 0.6)) !important;
        transition: filter 0.15s ease;
    }

    .pk-battle-active #sendLiveGift .tile-button__text {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 14px rgba(255, 51, 50, 0.65), 0 0 18px rgba(142, 68, 173, 0.55);
    }
}

@keyframes pkBattleShineLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

@keyframes pkBattleShineRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(-200%);
        opacity: 0;
    }
}

@keyframes pkSidebarTitleColorRun {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes pkSidebarTitleGoldGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
}

@keyframes pkSidebarShakeLosing {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1px, -1px);
    }

    50% {
        transform: translate(1px, 1px);
    }

    75% {
        transform: translate(-1px, 1px);
    }
}

@keyframes pkSidebarPositionChange {
    0% {
        background: rgba(255, 215, 0, 0.18);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.22);
    }

    50% {
        background: rgba(255, 215, 0, 0.28);
        box-shadow: 0 4px 18px rgba(255, 215, 0, 0.28);
    }

    100% {
        background: rgba(12, 15, 24, 0.25);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes pkTimerPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(255, 51, 50, 0.35);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 26px rgba(255, 90, 70, 0.58);
    }
}

@keyframes pkStreamPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: inherit;
    }
}

@keyframes pkStreamPulseGold {

    0%,
    100% {
        border-color: rgba(255, 215, 0, 0.45);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
        opacity: 0.75;
        transform: scale(1);
    }

    25% {
        border-color: #ffd700;
        box-shadow: 0 0 80px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8) inset;
        opacity: 1;
        transform: scale(1.03);
    }

    50% {
        border-color: rgba(255, 215, 0, 0.3);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        opacity: 0.5;
        transform: scale(0.99);
    }

    75% {
        border-color: #ffd700;
        box-shadow: 0 0 80px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8) inset;
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes pkStreamPulseRed {

    0%,
    100% {
        border-color: rgba(255, 51, 50, 0.5);
        box-shadow: 0 0 20px rgba(255, 51, 50, 0.42);
        opacity: 0.75;
        transform: scale(1);
    }

    25% {
        border-color: #ff3332;
        box-shadow: 0 0 80px rgba(255, 51, 50, 1), 0 0 40px rgba(255, 51, 50, 0.8) inset;
        opacity: 1;
        transform: scale(1.03);
    }

    50% {
        border-color: rgba(255, 51, 50, 0.3);
        box-shadow: 0 0 10px rgba(255, 51, 50, 0.2);
        opacity: 0.5;
        transform: scale(0.99);
    }

    75% {
        border-color: #ff3332;
        box-shadow: 0 0 80px rgba(255, 51, 50, 1), 0 0 40px rgba(255, 51, 50, 0.8) inset;
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes pkStreamPulsePurple {

    0%,
    100% {
        border-color: rgba(142, 68, 173, 0.55);
        box-shadow: 0 0 20px rgba(142, 68, 173, 0.42);
        opacity: 0.75;
        transform: scale(1);
    }

    25% {
        border-color: #8E44AD;
        box-shadow: 0 0 80px rgba(142, 68, 173, 1), 0 0 40px rgba(142, 68, 173, 0.8) inset;
        opacity: 1;
        transform: scale(1.03);
    }

    50% {
        border-color: rgba(142, 68, 173, 0.3);
        box-shadow: 0 0 10px rgba(142, 68, 173, 0.2);
        opacity: 0.5;
        transform: scale(0.99);
    }

    75% {
        border-color: #8E44AD;
        box-shadow: 0 0 80px rgba(142, 68, 173, 1), 0 0 40px rgba(142, 68, 173, 0.8) inset;
        opacity: 1;
        transform: scale(1.03);
    }
}

.pk-battle-sidebar__participant--main .pk-battle-sidebar__avatar {
    animation: photoScale 3.2s ease-in-out infinite;
    transform-origin: center;
}

.pk-battle-sidebar__participant--main .pk-battle-sidebar__name {
    animation: modelNameGlow 4.3s ease-in-out infinite;
}

@keyframes pkFlashGold {
    0% {
        opacity: 0;
        background: rgba(255, 215, 0, 0);
    }

    15% {
        opacity: 1;
        background: rgba(255, 215, 0, 0.35);
    }

    40% {
        opacity: 0;
        background: rgba(255, 215, 0, 0);
    }

    55% {
        opacity: 1;
        background: rgba(255, 215, 0, 0.35);
    }

    100% {
        opacity: 0;
        background: rgba(255, 215, 0, 0);
    }
}

@keyframes pkFlashRed {
    0% {
        opacity: 0;
        background: rgba(255, 51, 50, 0);
    }

    15% {
        opacity: 1;
        background: rgba(255, 51, 50, 0.35);
    }

    40% {
        opacity: 0;
        background: rgba(255, 51, 50, 0);
    }

    55% {
        opacity: 1;
        background: rgba(255, 51, 50, 0.35);
    }

    100% {
        opacity: 0;
        background: rgba(255, 51, 50, 0);
    }
}

@keyframes pkFlashPurple {
    0% {
        opacity: 0;
        background: rgba(142, 68, 173, 0);
    }

    15% {
        opacity: 1;
        background: rgba(142, 68, 173, 0.35);
    }

    40% {
        opacity: 0;
        background: rgba(142, 68, 173, 0);
    }

    55% {
        opacity: 1;
        background: rgba(142, 68, 173, 0.35);
    }

    100% {
        opacity: 0;
        background: rgba(142, 68, 173, 0);
    }
}

@keyframes pkStreamShake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-3px, -2px);
    }

    20% {
        transform: translate(3px, 2px);
    }

    30% {
        transform: translate(-3px, 2px);
    }

    40% {
        transform: translate(3px, -2px);
    }

    50% {
        transform: translate(-3px, -2px);
    }

    60% {
        transform: translate(3px, 2px);
    }

    70% {
        transform: translate(-3px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    90% {
        transform: translate(-2px, 2px);
    }
}

@keyframes pkTimerGlow {

    0%,
    100% {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 2px 12px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

@keyframes pkAvatarShakeLosing {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1px, -0.5px);
    }

    50% {
        transform: translate(1px, 0.5px);
    }

    75% {
        transform: translate(-0.5px, 1px);
    }
}

@keyframes pkFlagShakeLosing {

    0%,
    100% {
        transform: translateX(-50%) translate(0, 0);
    }

    25% {
        transform: translateX(-50%) translate(-1px, -0.5px);
    }

    50% {
        transform: translateX(-50%) translate(1px, 0.5px);
    }

    75% {
        transform: translateX(-50%) translate(-0.5px, 1px);
    }
}

@keyframes pkNameShakeLosing {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    25% {
        transform: translate(-50%, 0) translate(-1px, -0.5px);
    }

    50% {
        transform: translate(-50%, 0) translate(1px, 0.5px);
    }

    75% {
        transform: translate(-50%, 0) translate(-0.5px, 1px);
    }
}





.media-gallery__mobile-topbar {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.media-gallery__mobile-topbar .header-top {
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 12px;
}

.media-gallery__mobile-topbar .header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-gallery__mobile-topbar .header-top nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-gallery__mobile-topbar .header-top .btn {
    padding: 6px 14px;
    border-radius: 999px;
}





.pk-live-card.pk-lines-split-1x1::before {
    animation: lineSplitTopRight 0.4s ease-out forwards, diagonalLineFlow 16s linear infinite !important;
}

@keyframes lineSplitTopRight {
    0% {
        transform: rotate(-53.6deg) translate(-50%, -50%);
        top: 50%;
        left: 50%;
    }

    100% {
        transform: rotate(-53.6deg) translate(-50%, -50%) translateX(80%) translateY(-80%);
        top: 50%;
        left: 50%;
    }
}


.pk-live-card--count-2::before {
    transition: transform 0.4s ease-out, top 0.4s ease-out, left 0.4s ease-out;
}


.pk-live-card.pk-lines-split-1x2::before {
    animation: lineToTop 0.4s ease-out forwards, diagonalLineFlow 16s linear infinite !important;
}

.pk-live-card.pk-lines-split-1x2::after {
    animation: lineToBottom 0.4s ease-out forwards, diagonalLineFlow 16s linear infinite !important;
}

@keyframes lineToTop {
    0% {
        top: -10%;
    }

    100% {
        top: -80%;
    }
}

@keyframes lineToBottom {
    0% {
        top: -10%;
    }

    100% {
        top: 60%;
    }
}


.pk-live-card--count-3::before,
.pk-live-card--count-3::after {
    transition: top 0.4s ease-out;
}






@keyframes pkPodiumGoldPulse {
    0% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 35px rgba(255, 215, 0, 0.6);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
}


@keyframes pkPodiumSilverPulse {
    0% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 15px rgba(192, 192, 192, 0.25);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(192, 192, 192, 0.5);
        transform: scale(1.015);
    }

    100% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 15px rgba(192, 192, 192, 0.25);
        transform: scale(1);
    }
}


@keyframes pkPodiumBronzePulse {
    0% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 12px rgba(205, 127, 50, 0.22);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(205, 127, 50, 0.45);
        transform: scale(1.01);
    }

    100% {
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 12px rgba(205, 127, 50, 0.22);
        transform: scale(1);
    }
}


@keyframes pkPodiumAvatarGoldGlow {
    0% {
        box-shadow: 0 0 22px rgba(255, 215, 0, 0.45);
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.75);
        filter: brightness(1.1);
    }

    100% {
        box-shadow: 0 0 22px rgba(255, 215, 0, 0.45);
        filter: brightness(1);
    }
}


@keyframes pkPodiumAvatarSilverGlow {
    0% {
        box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 0 30px rgba(192, 192, 192, 0.65);
        filter: brightness(1.08);
    }

    100% {
        box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
        filter: brightness(1);
    }
}


@keyframes pkPodiumAvatarBronzeGlow {
    0% {
        box-shadow: 0 0 18px rgba(205, 127, 50, 0.4);
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 0 28px rgba(205, 127, 50, 0.6);
        filter: brightness(1.06);
    }

    100% {
        box-shadow: 0 0 18px rgba(205, 127, 50, 0.4);
        filter: brightness(1);
    }
}


@keyframes pkDonorShine {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}


@media (max-width: 768px) {
    .pk-battle-end-overlay {
        padding: 12px 10px;
    }

    .pk-battle-results-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .pk-battle-results {
        padding: 18px 14px 16px;
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
    }

    .pk-battle-results__title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .pk-battle-results__subtitle {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .pk-battle-results__podium {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-bottom: 16px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .pk-battle-results__podium--count-2 {
        gap: 8px;
    }

    .pk-battle-results__podium--count-3 {
        gap: 5px;
    }

    .pk-battle-results__podium--no-winner .pk-battle-results__slot {
        width: 30%;
        max-width: 90px;
        opacity: 1;
    }

    .pk-battle-results__slot {
        width: 30%;
        max-width: 110px;
        padding: 10px 7px 12px;
        flex-shrink: 1;
    }

    .pk-battle-results__slot.pk-has-dice {
        width: 32%;
        max-width: 130px;
        min-height: 200px;
    }

    .pk-battle-results__slot--first {
        width: 34%;
        max-width: 120px;
        padding: 12px 8px 14px;
    }

    .pk-battle-results__slot--first.pk-has-dice {
        width: 36%;
        max-width: 140px;
        min-height: 220px;
    }

    .pk-battle-results__slot--second {
        width: 30%;
        max-width: 110px;
    }

    .pk-battle-results__slot--third {
        width: 30%;
        max-width: 110px;
    }

    .pk-battle-results__slot--loser {
        width: 30%;
        max-width: 110px;
        opacity: 0.5;
    }

    .pk-battle-results__slot--tie {
        width: 32%;
        max-width: 130px;
    }

    .pk-battle-results__slot-avatar {
        width: 45px;
        height: 45px;
        margin: 6px auto 6px;
    }

    .pk-battle-results__slot--first .pk-battle-results__slot-avatar {
        width: 50px;
        height: 50px;
    }

    .pk-battle-results__slot-name {
        font-size: 9px;
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        max-width: 100%;
    }

    .pk-battle-results__slot-amount {
        font-size: 8px;
    }

    .pk-battle-results__dice {
        margin: 5px auto;
    }

    .pk-battle-results__dice--3d {
        width: 90px !important;
        height: 90px !important;
        margin: 8px auto;
    }

    .pk-battle-results__slot--first .pk-battle-results__dice--3d {
        width: 100px !important;
        height: 100px !important;
    }

    .pk-dice {
        width: 35px;
        height: 35px;
        border-radius: 6px;
    }

    .pk-dice__dot {
        width: 6px;
        height: 6px;
    }

    .pk-dice__dot--tl {
        top: 7px;
        left: 7px;
    }

    .pk-dice__dot--tr {
        top: 7px;
        right: 7px;
    }

    .pk-dice__dot--ml {
        left: 7px;
    }

    .pk-dice__dot--mr {
        right: 7px;
    }

    .pk-dice__dot--bl {
        bottom: 7px;
        left: 7px;
    }

    .pk-dice__dot--br {
        bottom: 7px;
        right: 7px;
    }

    .pk-battle-results__slot--first .pk-dice {
        width: 40px;
        height: 40px;
    }

    .pk-battle-results__slot--first .pk-dice__dot {
        width: 7px;
        height: 7px;
    }

    .pk-battle-results__slot-crown {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .pk-battle-results__slot-rank {
        font-size: 8px;
        margin-bottom: 5px;
    }

    .pk-battle-results__donors {
        padding: 10px 11px;
    }

    .pk-battle-results__donors-title {
        font-size: 9px;
        margin-bottom: 7px;
    }

    .pk-battle-results__donor {
        padding: 6px 7px;
        gap: 7px;
    }

    .pk-battle-results__donor-avatar {
        width: 27px;
        height: 27px;
    }

    .pk-battle-results__donor-name {
        font-size: 8px;
    }

    .pk-battle-results__donor-amount {
        font-size: 7px;
    }
}








#pk-stream-0 .live-bars {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    gap: 14px !important;
    z-index: 9999 !important;
    pointer-events: none !important;
}

#pk-stream-0 .live-bars span {
    display: inline-block !important;
    width: 20px !important;
    height: 80px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(214, 9, 8, 0.18) 0%, rgba(214, 9, 8, 0.95) 100%) !important;
    box-shadow: 0 0 20px rgba(214, 9, 8, 0.45) !important;
    transform-origin: center bottom !important;
    animation-duration: 0.6s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: both !important;
}


#pk-stream-1 .live-bars,
#pk-stream-2 .live-bars {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 9999 !important;
    pointer-events: none !important;
}

#pk-stream-1 .live-bars span,
#pk-stream-2 .live-bars span {
    display: inline-block !important;
    width: 14px !important;
    height: 56px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(214, 9, 8, 0.18) 0%, rgba(214, 9, 8, 0.95) 100%) !important;
    box-shadow: 0 0 20px rgba(214, 9, 8, 0.45) !important;
    transform-origin: center bottom !important;
    animation-duration: 0.6s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: both !important;
}

#pk-stream-0 .live-bars span:nth-child(1),
#pk-stream-1 .live-bars span:nth-child(1),
#pk-stream-2 .live-bars span:nth-child(1) {
    animation-name: liveLoaderBar1 !important;
    animation-delay: 0s !important;
}

#pk-stream-0 .live-bars span:nth-child(2),
#pk-stream-1 .live-bars span:nth-child(2),
#pk-stream-2 .live-bars span:nth-child(2) {
    animation-name: liveLoaderBar2 !important;
    animation-delay: 0.08s !important;
}

#pk-stream-0 .live-bars span:nth-child(3),
#pk-stream-1 .live-bars span:nth-child(3),
#pk-stream-2 .live-bars span:nth-child(3) {
    animation-name: liveLoaderBar3 !important;
    animation-delay: 0.16s !important;
}

#pk-stream-0 .live-bars span:nth-child(4),
#pk-stream-1 .live-bars span:nth-child(4),
#pk-stream-2 .live-bars span:nth-child(4) {
    animation-name: liveLoaderBar4 !important;
    animation-delay: 0.24s !important;
}

#pk-stream-0 .live-bars span:nth-child(5),
#pk-stream-1 .live-bars span:nth-child(5),
#pk-stream-2 .live-bars span:nth-child(5) {
    animation-name: liveLoaderBar5 !important;
    animation-delay: 0.32s !important;
}


@media (max-width: 768px) {

    #pk-stream-1 .live-bars,
    #pk-stream-2 .live-bars {
        gap: 5px !important;
    }

    #pk-stream-1 .live-bars span,
    #pk-stream-2 .live-bars span {
        width: 7px !important;
        height: 28px !important;
    }


    .pk-live-card__participant {
        width: 100%;
        height: 100%;
    }

    .pk-live-card__img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {

    #pk-stream-1 .live-bars span,
    #pk-stream-2 .live-bars span {
        width: 6px !important;
        height: 24px !important;
    }

    .pk-live-card__participant {
        width: 100%;
        height: 100%;
    }

    .pk-live-card__img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 360px) {

    #pk-stream-1 .live-bars span,
    #pk-stream-2 .live-bars span {
        width: 5px !important;
        height: 20px !important;
    }

    .pk-live-card__participant {
        width: 100%;
        height: 100%;
    }

    .pk-live-card__img {
        width: 100%;
        height: 100%;
    }
}





.rec-frame.rec-frame--pk::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 1000;
    background: linear-gradient(90deg,
            rgba(255, 51, 50, 0.6) 0%,
            rgba(142, 68, 173, 0.6) 25%,
            rgba(255, 51, 50, 0.6) 50%,
            rgba(142, 68, 173, 0.6) 75%,
            rgba(255, 51, 50, 0.6) 100%);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 3px;
    box-shadow: 0 0 20px rgba(200, 60, 120, 0.3);
    opacity: 0.75;
    animation: pkFrameColorShift 3s linear infinite;
}

@keyframes pkFrameColorShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}


.rec-frame.rec-frame--pk::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
    pointer-events: none;
    z-index: 5;
}

.rec-frame.rec-frame--pk .pk-live-card__glow {
    position: absolute;
    inset: 3% 3% 8%;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(140% 120% at 50% 75%, rgba(255, 215, 0, 0.22) 0%, rgba(142, 68, 173, 0.28) 48%, rgba(16, 2, 22, 0.75) 100%);
    mix-blend-mode: screen;
    opacity: 0.65;
    filter: saturate(1.1);
    animation: pkRecInnerGlow 3.6s ease-in-out infinite;
    z-index: 0;
}

.rec-frame.rec-frame--pk .pk-live-card__participant {
    z-index: 1;
}

@keyframes pkRecInnerGlow {
    0% {
        opacity: 0.55;
        transform: scale(0.995);
        filter: saturate(1);
    }

    50% {
        opacity: 0.78;
        transform: scale(1.01);
        filter: saturate(1.25);
    }

    100% {
        opacity: 0.55;
        transform: scale(0.995);
        filter: saturate(1);
    }
}

@media (max-width: 768px) {
    .rec-frame.rec-frame--pk {
        border-radius: 0 !important;
    }

    .rec-frame.rec-frame--pk::after {
        border-radius: 0 !important;
        padding: 2px;
    }

    .rec-frame.rec-frame--pk .pk-live-card__glow {
        inset: 6% 6% 14%;
        opacity: 0.72;
    }

    .rec-frame.rec-frame--pk .pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card--count-2::after {
        width: 230% !important;
        height: 8px !important;
    }

    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-2::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-2::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-2::after,
    .rec-frame.rec-frame--pk .pk-live-card--count-2.pk-hovered::before,
    .rec-frame.rec-frame--pk .pk-live-card--count-2.pk-hovered::after {
        width: 210% !important;
        height: 8px !important;
    }

    .rec-frame.rec-frame--pk .pk-live-card--count-3::before,
    .rec-frame.rec-frame--pk .pk-live-card--count-3::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-3::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-3::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-3::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-3::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-3::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-3::after,
    .rec-frame.rec-frame--pk .pk-live-card--count-3.pk-hovered::before,
    .rec-frame.rec-frame--pk .pk-live-card--count-3.pk-hovered::after {
        height: 160% !important;
        top: -5% !important;
    }
}


.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    background: linear-gradient(90deg, #ff3332, #8E44AD, #ff3332);
    background-size: 200% 100%;
    color: #fff;
    border-radius: 0.4em;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: .2em;
    padding: 0.35em 0.68em 0.2em 0.68em;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    display: block;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.4);
    border: 1px solid rgba(142, 68, 173, 0.6);
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(142, 68, 173, 0.3));
    animation: vsBadgeColorRun 2s linear infinite, vsBadgeGlow 1.5s ease-in-out infinite, vsBadgePulse 3s ease-in-out infinite;
}

.vs-badge--visible {
    opacity: 1;
}

.vs-badge--pop-in {
    animation: vsBadgePopIn 0.8s ease forwards;
}

.vs-badge--pop-out {
    animation: vsBadgePopOut 0.6s ease forwards;
}

@keyframes vsBadgePopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes vsBadgePopOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        filter: blur(10px);
    }
}


.pk-live-card.pk-hovered .vs-badge,
.pk-live-card.pk-hovered .country-flag-badge {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

@keyframes vsBadgeColorRun {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes vsBadgeGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(142, 68, 173, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(142, 68, 173, 0.8));
    }
}

@keyframes vsBadgePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}


.rec-frame.rec-frame--pk .vs-badge {
    animation: vsBadgeColorRun 2s linear infinite, vsBadgeGlow 1.5s ease-in-out infinite, vsBadgePulseRec 3s ease-in-out infinite !important;
}

.pk-live-card .hot-badge,
.rec-frame.rec-frame--pk .pk-live-card .hot-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 1106 !important;
}

@media (max-width: 768px) {

    .rec-frame.rec-frame--pk .vs-badge,
    body.live-open .vs-badge {
        font-size: 1.2em !important;
        padding: 0.35em 0.68em 0.2em 0.68em !important;
        letter-spacing: 0.2em !important;
    }
}

@media (max-width: 480px) {

    .rec-frame.rec-frame--pk .vs-badge,
    body.live-open .vs-badge {
        font-size: 1.2em !important;
        padding: 0.35em 0.68em 0.2em 0.68em !important;
        letter-spacing: 0.2em !important;
    }
}

@media (max-width: 360px) {

    .rec-frame.rec-frame--pk .vs-badge,
    body.live-open .vs-badge {
        font-size: 1.2em !important;
        padding: 0.35em 0.68em 0.2em 0.68em !important;
        letter-spacing: 0.2em !important;
    }
}

@keyframes vsBadgePulseRec {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1.7);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.85);
    }
}


.rec-frame.rec-frame--pk .pk-live-card--count-2::before,
.rec-frame.rec-frame--pk .pk-live-card--count-2::after {
    width: 280% !important;
    height: 10px !important;
    transform: translate(-50%, -50%) rotate(-60.0deg) !important;
    animation: none !important;
}


.rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-2::before,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-2::after,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-2::before,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-2::after,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-2::before,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-2::after,
.rec-frame.rec-frame--pk .pk-live-card--count-2.pk-hovered::before,
.rec-frame.rec-frame--pk .pk-live-card--count-2.pk-hovered::after {
    width: 280% !important;
    height: 10px !important;
    transform: translate(-50%, -50%) rotate(-60.0deg) !important;
    animation: none !important;
    top: 50% !important;
    left: 50% !important;
    opacity: 1 !important;
}


.rec-frame.rec-frame--pk .pk-live-card--count-3::before {
    top: -10% !important;
    left: 39.5% !important;
    width: 10px !important;
    height: 300% !important;
    transform: rotate(12.7deg) !important;
    animation: diagonalLineFlow 16s linear infinite !important;
}

.rec-frame.rec-frame--pk .pk-live-card--count-3::after {
    top: -10% !important;
    left: 96.5% !important;
    width: 10px !important;
    height: 300% !important;
    transform: rotate(12.7deg) !important;
    animation: diagonalLineFlowReverse 16s linear infinite !important;
}


.rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-3::before,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-3::before,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-3::before,
.rec-frame.rec-frame--pk .pk-live-card--count-3.pk-hovered::before {
    top: -10% !important;
    left: 39.5% !important;
    width: 10px !important;
    height: 300% !important;
    transform: rotate(12.7deg) !important;
    animation: diagonalLineFlow 16s linear infinite !important;
    opacity: 1 !important;
}

.rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-3::after,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-3::after,
.rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-3::after,
.rec-frame.rec-frame--pk .pk-live-card--count-3.pk-hovered::after {
    top: -10% !important;
    left: 96.5% !important;
    width: 10px !important;
    height: 300% !important;
    transform: rotate(12.7deg) !important;
    animation: diagonalLineFlowReverse 16s linear infinite !important;
    opacity: 1 !important;
}


@media (max-width: 768px) {

    .rec-frame.rec-frame--pk::after,
    .rec-frame.rec-frame--pk::before {
        border-radius: 0 !important;
    }
}


@media (max-width: 768px) {


    .rec-frame.rec-frame--pk .pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card--count-2::after {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        clip-path: polygon(97% 0, 100% 0, 3% 100%, 0 100%) !important;
        background: linear-gradient(135deg,
                rgba(255, 51, 50, 0) 0%,
                rgba(255, 51, 50, 1) 22%,
                rgba(142, 68, 173, 1) 48%,
                rgba(255, 51, 50, 1) 78%,
                rgba(255, 51, 50, 0) 100%) !important;
        box-shadow: 0 0 12px rgba(142, 68, 173, 0.65) !important;
        animation: diagonalLineFlow 16s linear infinite !important;
        opacity: 1 !important;
    }

    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-2::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-2::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-2::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-2::after,
    .rec-frame.rec-frame--pk .pk-live-card--count-2.pk-hovered::before,
    .rec-frame.rec-frame--pk .pk-live-card--count-2.pk-hovered::after {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        clip-path: polygon(97% 0, 100% 0, 3% 100%, 0 100%) !important;
        animation: diagonalLineFlow 16s linear infinite !important;
        opacity: 1 !important;
    }

    .rec-frame.rec-frame--pk .pk-live-card--count-3::before {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        clip-path: polygon(35.5% 0, 38.5% 0, -3.5% 110%, -6.5% 110%) !important;
        background: linear-gradient(135deg,
                rgba(255, 51, 50, 0) 0%,
                rgba(255, 51, 50, 1) 18%,
                rgba(142, 68, 173, 1) 44%,
                rgba(255, 51, 50, 1) 76%,
                rgba(255, 51, 50, 0) 100%) !important;
        box-shadow: 0 0 12px rgba(142, 68, 173, 0.65) !important;
        animation: diagonalLineFlow 16s linear infinite !important;
        opacity: 1 !important;
    }

    .rec-frame.rec-frame--pk .pk-live-card--count-3::after {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        clip-path: polygon(91.5% 0, 94.5% 0, 53.5% 110%, 50.5% 110%) !important;
        background: linear-gradient(135deg,
                rgba(255, 51, 50, 0) 0%,
                rgba(255, 51, 50, 1) 18%,
                rgba(142, 68, 173, 1) 44%,
                rgba(255, 51, 50, 1) 76%,
                rgba(255, 51, 50, 0) 100%) !important;
        box-shadow: 0 0 12px rgba(142, 68, 173, 0.65) !important;
        animation: diagonalLineFlowReverse 16s linear infinite !important;
        opacity: 1 !important;
    }

    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-3::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-3::before,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-3::before,
    .rec-frame.rec-frame--pk .pk-live-card--count-3.pk-hovered::before {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        clip-path: polygon(35.5% 0, 38.5% 0, -3.5% 110%, -6.5% 110%) !important;
        animation: diagonalLineFlow 16s linear infinite !important;
        opacity: 1 !important;
    }

    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-lock.pk-live-card--count-3::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-open.pk-live-card--count-3::after,
    .rec-frame.rec-frame--pk .pk-live-card.pk-lines-release.pk-live-card--count-3::after,
    .rec-frame.rec-frame--pk .pk-live-card--count-3.pk-hovered::after {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        clip-path: polygon(91.5% 0, 94.5% 0, 53.5% 110%, 50.5% 110%) !important;
        animation: diagonalLineFlowReverse 16s linear infinite !important;
        opacity: 1 !important;
    }
}



.pkchat-card {
    padding: 0;
}

.pkchat-card .X__name {
    margin-bottom: 3px;
}

.pkchat-card .displayname__name--text-overflow {
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.pkchat-card .X__content {
    position: relative;
    overflow: hidden;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 300px;
    border: 1px solid transparent;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}


.pktheme-gold .displayname__name--text-overflow,
.pktheme-gold .X__date,
.pktheme-gold .X__content {
    color: var(--pk-gold) !important;
}

.pktheme-gold .X__content {
    background: linear-gradient(135deg, var(--pk-gold-light-a), var(--pk-gold-light-b));
    border-color: var(--pk-gold-border);
    box-shadow: 0 0 20px var(--pk-gold-glow);
    animation: pkGoldGlow 2s ease-in-out infinite alternate;
}


.pktheme-red .displayname__name--text-overflow,
.pktheme-red .X__date,
.pktheme-red .X__content {
    color: var(--pk-red) !important;
}

.pktheme-red .X__content {
    background: linear-gradient(135deg, var(--pk-red-light), rgba(255, 0, 0, 0.12));
    border-color: var(--pk-red-border);
    box-shadow: 0 0 20px var(--pk-red-glow);
    animation: pkRedPulse 2s ease-in-out infinite alternate;
}


.pktheme-purple .displayname__name--text-overflow,
.pktheme-purple .X__date,
.pktheme-purple .X__content {
    color: var(--pk-purple) !important;
}

.pktheme-purple .X__content {
    background: linear-gradient(135deg, var(--pk-purple-light), rgba(128, 0, 255, 0.12));
    border-color: var(--pk-purple-border);
    box-shadow: 0 0 20px var(--pk-purple-glow);
    animation: pkPurplePulse 2s ease-in-out infinite alternate;
}


.pkchat-card .X__content::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: pkShimmer 2s ease-in-out infinite;
}

@keyframes pkGoldGlow {
    from {
        box-shadow: 0 0 10px var(--pk-gold-glow);
    }

    to {
        box-shadow: 0 0 24px var(--pk-gold-glow);
    }
}

@keyframes pkRedPulse {
    from {
        box-shadow: 0 0 10px var(--pk-red-glow);
    }

    to {
        box-shadow: 0 0 24px var(--pk-red-glow);
    }
}

@keyframes pkPurplePulse {
    from {
        box-shadow: 0 0 10px var(--pk-purple-glow);
    }

    to {
        box-shadow: 0 0 24px var(--pk-purple-glow);
    }
}

@keyframes pkShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}



.pkchat-card {
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: none;
}


.pktheme-gold .displayname__name,
.pktheme-gold .X__date,
.pktheme-gold .X__content {
    color: #ffee07 !important;
}

.pktheme-gold .X__content {
    background: linear-gradient(135deg, rgba(255, 238, 7, 0.25), rgba(255, 215, 0, 0.15));
    border: 1px solid rgba(255, 238, 7, 0.6);
    box-shadow: 0 0 20px rgba(255, 238, 7, 0.4);
    animation: goldenGlow 2s ease-in-out infinite alternate;
}


.pktheme-red .displayname__name,
.pktheme-red .X__date,
.pktheme-red .X__content {
    color: #ff4d4d !important;
}

.pktheme-red .X__content {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.20), rgba(255, 77, 77, 0.08));
    border: 1px solid rgba(255, 77, 77, 0.5);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.35);
}


.pktheme-purple .displayname__name,
.pktheme-purple .X__date,
.pktheme-purple .X__content {
    color: #c082ff !important;
}

.pktheme-purple .X__content {
    background: linear-gradient(135deg, rgba(192, 130, 255, 0.20), rgba(192, 130, 255, 0.08));
    border: 1px solid rgba(192, 130, 255, 0.5);
    box-shadow: 0 0 20px rgba(192, 130, 255, 0.35);
}

@keyframes goldenGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 238, 7, 0.3);
        transform: scale(0.98);
    }

    100% {
        box-shadow: 0 0 8px rgba(255, 238, 7, 0.5);
        transform: scale(1);
    }
}




@media (max-width: 400px) {


    [data-modal="live_mobile"].pk-battle-active .pk-battle-header {
        min-height: 78px !important;
        padding: 10px 14px !important;
        gap: 12px !important;
    }


    .pk-battle-header__connecting-bar {
        height: 54px !important;
        padding: 0 72px !important;
        min-width: 230px !important;
    }

    .pk-battle-header__connecting-bar::before,
    .pk-battle-header__connecting-bar::after {
        width: 44px !important;
        height: 44px !important;
    }

    .pk-battle-header__timer {
        font-size: 14px !important;
    }


    .pk-battle-avatar__img {
        width: 44px !important;
        height: 44px !important;
        border-width: 2px !important;
    }


    .pk-battle-avatar__coins {
        font-size: 12px !important;
        gap: 4px !important;
    }

    .pk-battle-avatar__coins svg {
        width: 14px !important;
        height: 14px !important;
    }


    .pk-battle-mobile-opponents {
        top: 155px !important;
        right: 10px !important;
        gap: 10px !important;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent {
        width: 100px !important;
        height: 175px !important;
        min-width: 100px !important;
        min-height: 175px !important;
        border-radius: 10px !important;
    }


    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="1"] .audio-overlay-btn {
        top: 372px !important;
    }

    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="2"] .audio-overlay-btn {
        top: 562px !important;
    }
}




@media (max-width: 360px) {


    [data-modal="live_mobile"].pk-battle-active .pk-battle-header {
        min-height: 70px !important;
        padding: 9px 12px !important;
        gap: 10px !important;
    }


    .pk-battle-header__connecting-bar {
        height: 48px !important;
        padding: 0 65px !important;
        min-width: 200px !important;
    }

    .pk-battle-header__connecting-bar::before,
    .pk-battle-header__connecting-bar::after {
        width: 40px !important;
        height: 40px !important;
    }

    .pk-battle-header__timer {
        font-size: 13px !important;
    }


    .pk-battle-avatar__img {
        width: 40px !important;
        height: 40px !important;
        border-width: 2px !important;
    }


    .pk-battle-avatar__coins {
        font-size: 11px !important;
        gap: 3px !important;
    }

    .pk-battle-avatar__coins svg {
        width: 13px !important;
        height: 13px !important;
    }


    .pk-battle-mobile-opponents {
        top: 140px !important;
        right: 9px !important;
        gap: 9px !important;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent {
        width: 90px !important;
        height: 155px !important;
        min-width: 90px !important;
        min-height: 155px !important;
        border-radius: 9px !important;
    }


    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="1"] .audio-overlay-btn {
        top: 332px !important;
    }

    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="2"] .audio-overlay-btn {
        top: 502px !important;
    }


    .audio-overlay-btn {
        width: 52px !important;
        height: 52px !important;
    }

    .audio-overlay-btn svg {
        width: 26px !important;
        height: 26px !important;
    }
}




@media (max-width: 320px) {


    [data-modal="live_mobile"].pk-battle-active .pk-battle-header {
        min-height: 58px !important;
        padding: 6px 8px !important;
        gap: 8px !important;
    }


    .pk-battle-header__connecting-bar {
        height: 40px !important;
        padding: 0 50px !important;
        min-width: 160px !important;
    }

    .pk-battle-header__connecting-bar::before,
    .pk-battle-header__connecting-bar::after {
        width: 32px !important;
        height: 32px !important;
    }

    .pk-battle-header__timer {
        font-size: 11px !important;
        font-weight: 700 !important;
    }


    .pk-battle-avatar__img {
        width: 32px !important;
        height: 32px !important;
        border-width: 1px !important;
    }


    .pk-battle-avatar__coins {
        font-size: 10px !important;
        gap: 2px !important;
    }

    .pk-battle-avatar__coins svg {
        width: 11px !important;
        height: 11px !important;
    }


    .pk-battle-mobile-opponents {
        top: 110px !important;
        right: 6px !important;
        gap: 6px !important;
    }

    [data-modal="live_mobile"].pk-battle-active .pk-battle-stream--opponent {
        width: 75px !important;
        height: 130px !important;
        min-width: 75px !important;
        min-height: 130px !important;
        border-radius: 8px !important;
    }


    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="1"] .audio-overlay-btn {
        top: 249px !important;
    }

    [data-modal="live_mobile"].pk-battle-active[data-pk-opponents="2"] .audio-overlay-btn {
        top: 387px !important;
    }


    .audio-overlay-btn {
        width: 45px !important;
        height: 45px !important;
    }

    .audio-overlay-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
}




@media (max-width: 400px) {
    .pk-battle-results {
        padding: 16px 12px 14px !important;
    }

    .pk-battle-results__title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }

    .pk-battle-results__subtitle {
        font-size: 9px !important;
        margin-bottom: 14px !important;
    }

    .pk-battle-results__podium {
        gap: 5px !important;
        margin-bottom: 14px !important;
    }

    .pk-battle-results__slot {
        width: 30% !important;
        max-width: 95px !important;
        padding: 8px 6px 10px !important;
    }

    .pk-battle-results__slot.pk-has-dice {
        width: 32% !important;
        max-width: 115px !important;
        min-height: 180px !important;
    }

    .pk-battle-results__slot--first {
        width: 34% !important;
        max-width: 105px !important;
        padding: 10px 7px 12px !important;
    }

    .pk-battle-results__slot--first.pk-has-dice {
        width: 36% !important;
        max-width: 125px !important;
        min-height: 200px !important;
    }

    .pk-battle-results__slot-avatar {
        width: 40px !important;
        height: 40px !important;
        margin: 5px auto 5px !important;
    }

    .pk-battle-results__slot--first .pk-battle-results__slot-avatar {
        width: 45px !important;
        height: 45px !important;
    }

    .pk-battle-results__slot-name {
        font-size: 8px !important;
        margin-bottom: 2px !important;
    }

    .pk-battle-results__slot-amount {
        font-size: 7px !important;
    }

    .pk-battle-results__slot-rank {
        font-size: 10px !important;
    }

    .pk-battle-results__slot-crown {
        font-size: 20px !important;
        width: 28px !important;
        height: 28px !important;
        top: -14px !important;
    }

    .pk-battle-results__dice--3d {
        width: 80px !important;
        height: 80px !important;
        margin: 6px auto !important;
    }

    .pk-battle-results__slot--first .pk-battle-results__dice--3d {
        width: 90px !important;
        height: 90px !important;
    }
}




@media (max-width: 360px) {
    .pk-battle-results {
        padding: 14px 10px 12px !important;
    }

    .pk-battle-results__title {
        font-size: 15px !important;
        margin-bottom: 3px !important;
    }

    .pk-battle-results__subtitle {
        font-size: 8px !important;
        margin-bottom: 12px !important;
    }

    .pk-battle-results__podium {
        gap: 4px !important;
        margin-bottom: 12px !important;
    }

    .pk-battle-results__slot {
        width: 30% !important;
        max-width: 85px !important;
        padding: 7px 5px 9px !important;
    }

    .pk-battle-results__slot.pk-has-dice {
        width: 32% !important;
        max-width: 100px !important;
        min-height: 165px !important;
    }

    .pk-battle-results__slot--first {
        width: 34% !important;
        max-width: 95px !important;
        padding: 9px 6px 11px !important;
    }

    .pk-battle-results__slot--first.pk-has-dice {
        width: 36% !important;
        max-width: 110px !important;
        min-height: 180px !important;
    }

    .pk-battle-results__slot-avatar {
        width: 36px !important;
        height: 36px !important;
        margin: 4px auto 4px !important;
    }

    .pk-battle-results__slot--first .pk-battle-results__slot-avatar {
        width: 40px !important;
        height: 40px !important;
    }

    .pk-battle-results__slot-name {
        font-size: 7.5px !important;
        margin-bottom: 1px !important;
    }

    .pk-battle-results__slot-amount {
        font-size: 6.5px !important;
    }

    .pk-battle-results__slot-rank {
        font-size: 9px !important;
    }

    .pk-battle-results__slot-crown {
        font-size: 18px !important;
        width: 26px !important;
        height: 26px !important;
        top: -13px !important;
    }

    .pk-battle-results__dice--3d {
        width: 72px !important;
        height: 72px !important;
        margin: 5px auto !important;
    }

    .pk-battle-results__slot--first .pk-battle-results__dice--3d {
        width: 80px !important;
        height: 80px !important;
    }
}




@media (max-width: 320px) {
    .pk-battle-results {
        padding: 12px 8px 10px !important;
    }

    .pk-battle-results__title {
        font-size: 14px !important;
        margin-bottom: 3px !important;
    }

    .pk-battle-results__subtitle {
        font-size: 7.5px !important;
        margin-bottom: 10px !important;
    }

    .pk-battle-results__podium {
        gap: 3px !important;
        margin-bottom: 10px !important;
    }

    .pk-battle-results__slot {
        width: 30% !important;
        max-width: 75px !important;
        padding: 6px 4px 8px !important;
    }

    .pk-battle-results__slot.pk-has-dice {
        width: 32% !important;
        max-width: 90px !important;
        min-height: 150px !important;
    }

    .pk-battle-results__slot--first {
        width: 34% !important;
        max-width: 85px !important;
        padding: 8px 5px 10px !important;
    }

    .pk-battle-results__slot--first.pk-has-dice {
        width: 36% !important;
        max-width: 100px !important;
        min-height: 165px !important;
    }

    .pk-battle-results__slot-avatar {
        width: 32px !important;
        height: 32px !important;
        margin: 3px auto 3px !important;
    }

    .pk-battle-results__slot--first .pk-battle-results__slot-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .pk-battle-results__slot-name {
        font-size: 7px !important;
        margin-bottom: 1px !important;
    }

    .pk-battle-results__slot-amount {
        font-size: 6px !important;
    }

    .pk-battle-results__slot-rank {
        font-size: 8px !important;
    }

    .pk-battle-results__slot-crown {
        font-size: 16px !important;
        width: 24px !important;
        height: 24px !important;
        top: -12px !important;
    }

    .pk-battle-results__dice--3d {
        width: 65px !important;
        height: 65px !important;
        margin: 4px auto !important;
    }

    .pk-battle-results__slot--first .pk-battle-results__dice--3d {
        width: 72px !important;
        height: 72px !important;
    }
}






.pk-battle-country-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
}


.pk-battle-header__flag {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}


.pk-battle-header.pk-battle-near-lose .pk-battle-header__flag {
    animation: pkFlagShakeLosing 0.4s ease-in-out infinite;
}


.pk-battle-stream__flag-desktop {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}


@media (min-width: 768px) {
    .pk-battle-header__flag {
        display: none;
    }

    .pk-battle-header__avatar-name {
        display: none !important;
    }
}


@media (max-width: 767px) {
    .pk-battle-stream__flag-desktop {
        display: none;
    }

    .pk-battle-header__avatar-container--left {
        position: relative;
    }
}







.pk-stream-waiting {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
    min-width: 280px;
    max-width: 92%;
}

.pk-stream-waiting__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: rgba(10, 10, 15, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.pk-battle-stream--main .pk-stream-waiting__content {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pk-battle-stream--opponent-1 .pk-stream-waiting__content {
    border-color: rgba(255, 51, 50, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(255, 51, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pk-battle-stream--opponent-2 .pk-stream-waiting__content {
    border-color: rgba(142, 68, 173, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(142, 68, 173, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pk-stream-waiting__bars {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 40px;
}

.pk-stream-waiting__bar {
    width: 6px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    animation: pkBarPulse 1.2s ease-in-out infinite;
}

.pk-stream-waiting__bar:nth-child(1) {
    animation-delay: 0s;
}

.pk-stream-waiting__bar:nth-child(2) {
    animation-delay: 0.2s;
}

.pk-stream-waiting__bar:nth-child(3) {
    animation-delay: 0.4s;
}


.pk-battle-stream--main .pk-stream-waiting__bar {
    background: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.pk-battle-stream--opponent-1 .pk-stream-waiting__bar {
    background: rgba(255, 51, 50, 0.8);
    box-shadow: 0 0 12px rgba(255, 51, 50, 0.4);
}

.pk-battle-stream--opponent-2 .pk-stream-waiting__bar {
    background: rgba(142, 68, 173, 0.8);
    box-shadow: 0 0 12px rgba(142, 68, 173, 0.4);
}

.pk-battle-stream--opponent .pk-stream-waiting,
.pk-battle-stream--opponent-1 .pk-stream-waiting,
.pk-battle-stream--opponent-2 .pk-stream-waiting {
    min-width: 0;
    width: min(88%, 240px);
    transform: translate(-50%, -50%) scale(0.9);
}

@keyframes pkBarPulse {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.pk-stream-waiting__text {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 220px;
    line-height: 1.4;
}


@media (max-width: 768px) {
    .pk-stream-waiting {
        min-width: 240px;
        width: auto;
    }

    .pk-battle-stream--opponent .pk-stream-waiting,
    .pk-battle-stream--opponent-1 .pk-stream-waiting,
    .pk-battle-stream--opponent-2 .pk-stream-waiting {
        width: min(90%, 210px);
        transform: translate(-50%, -50%) scale(0.86);
    }

    .pk-stream-waiting__content {
        padding: 24px 28px;
        gap: 12px;
    }

    .pk-battle-stream--opponent .pk-stream-waiting__content,
    .pk-battle-stream--opponent-1 .pk-stream-waiting__content,
    .pk-battle-stream--opponent-2 .pk-stream-waiting__content {
        background: #050506;
        backdrop-filter: blur(8px);
    }

    .pk-stream-waiting__spinner {
        width: 40px;
        height: 40px;
    }

    .pk-stream-waiting__text {
        font-size: 7px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .pk-stream-waiting {
        min-width: 200px;
        width: auto;
    }

    .pk-battle-stream--opponent .pk-stream-waiting,
    .pk-battle-stream--opponent-1 .pk-stream-waiting,
    .pk-battle-stream--opponent-2 .pk-stream-waiting {
        width: min(92%, 190px);
        transform: translate(-50%, -50%) scale(0.8);
    }

    .pk-stream-waiting__content {
        padding: 20px 24px;
    }

    .pk-battle-stream--opponent .pk-stream-waiting__content,
    .pk-battle-stream--opponent-1 .pk-stream-waiting__content,
    .pk-battle-stream--opponent-2 .pk-stream-waiting__content {
        background: #050506;
        backdrop-filter: blur(6px);
    }

    .pk-stream-waiting__spinner {
        width: 36px;
        height: 36px;
    }

    .pk-stream-waiting__text {
        font-size: 8px;
        max-width: 160px;
    }
}



.pk-quit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 36px 44px;
    background: linear-gradient(145deg, rgba(15, 10, 20, 0.98), rgba(25, 15, 30, 0.96));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
}


.pk-battle-stream--main .pk-quit-card {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 100px rgba(255, 215, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pk-battle-stream--opponent-1 .pk-quit-card {
    border-color: rgba(255, 51, 50, 0.4);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 100px rgba(255, 51, 50, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pk-battle-stream--opponent-2 .pk-quit-card {
    border-color: rgba(142, 68, 173, 0.4);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 100px rgba(142, 68, 173, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pk-battle-stream--opponent .pk-quit-card,
.pk-battle-stream--opponent-1 .pk-quit-card,
.pk-battle-stream--opponent-2 .pk-quit-card {
    padding: 22px 18px;
    gap: 12px;
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .pk-battle-stream--opponent .pk-quit-card,
    .pk-battle-stream--opponent-1 .pk-quit-card,
    .pk-battle-stream--opponent-2 .pk-quit-card {
        padding: 14px 12px;
        gap: 8px;
        width: 100%;
        max-width: 180px;
        transform: translateZ(0);
    }

    .pk-battle-stream--opponent .pk-quit-card__icon,
    .pk-battle-stream--opponent-1 .pk-quit-card__icon,
    .pk-battle-stream--opponent-2 .pk-quit-card__icon {
        width: 40px;
        height: 40px;
    }

    .pk-battle-stream--opponent .pk-quit-card__title,
    .pk-battle-stream--opponent-1 .pk-quit-card__title,
    .pk-battle-stream--opponent-2 .pk-quit-card__title {
        font-size: 13px;
    }

    .pk-battle-stream--opponent .pk-quit-card__name,
    .pk-battle-stream--opponent-1 .pk-quit-card__name,
    .pk-battle-stream--opponent-2 .pk-quit-card__name {
        font-size: 12px;
    }

    .pk-battle-stream--opponent .pk-quit-card__hint,
    .pk-battle-stream--opponent-1 .pk-quit-card__hint,
    .pk-battle-stream--opponent-2 .pk-quit-card__hint {
        font-size: 10px;
    }
}




.pk-participant-quit {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);

    z-index: 150;

    pointer-events: none;

    width: 100%;
    height: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.pk-participant-quit.pk-quit--main { background: rgba(255, 215, 0, 0.35) !important; }
.pk-participant-quit.pk-quit--opponent1 { background: rgba(255, 51, 50, 0.35) !important; }
.pk-participant-quit.pk-quit--opponent2 { background: rgba(142, 68, 173, 0.35) !important; }


.pk-participant-quit.show {
    pointer-events: auto;
}

.pk-quit-card__icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(142, 68, 173, 0.5));
    animation: pkQuitIconPulse 2s ease-in-out infinite;
}

@keyframes pkQuitIconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 16px rgba(142, 68, 173, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 20px rgba(142, 68, 173, 0.7));
    }
}

.pk-quit-card__title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    margin-top: -4px;
}

.pk-quit-card__name {
    font-size: 19px;
    font-weight: 700;
    color: rgba(142, 68, 173, 1);
    letter-spacing: 0.4px;
    margin-top: -8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}


.pk-quit--main .pk-quit-card__name {
    color: rgba(255, 215, 0, 1);
}

.pk-quit--opponent1 .pk-quit-card__name {
    color: rgba(255, 51, 50, 1);
}

.pk-quit--opponent2 .pk-quit-card__name {
    color: rgba(142, 68, 173, 1);
}


.pk-quit--main .pk-quit-card__icon {
    filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.5));
}

.pk-quit--opponent1 .pk-quit-card__icon {
    filter: drop-shadow(0 4px 16px rgba(255, 51, 50, 0.5));
}

.pk-quit--opponent2 .pk-quit-card__icon {
    filter: drop-shadow(0 4px 16px rgba(142, 68, 173, 0.5));
}

.pk-quit-card__hint {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 260px;
    margin-top: -4px;
}


@media (max-width: 768px) {
    .pk-participant-quit {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .pk-quit-card {
        padding: 12px 16px !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 180px !important;
    }

    .pk-quit-card__icon {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 4px !important;
    }

    .pk-quit-card__title {
        font-size: 11px !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
    }

    .pk-quit-card__name {
        font-size: 10px !important;
        margin-top: 0 !important;
    }

    .pk-quit-card__hint {
        font-size: 9px !important;
        max-width: 180px !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    .pk-participant-quit {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .pk-quit-card__title {
        font-size: 9px !important;
    }

    .pk-quit-card {
        width: 95% !important;
    }
}


@media (max-width: 360px) {
    .pk-participant-quit {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .pk-quit-card__title {
        font-size: 9px !important;
    }
}


@media (max-width: 768px) {
    .sweet-alert {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        margin-top: 0 !important;
        max-width: 90% !important;
        width: 85% !important;
        padding: 15px !important;
        text-align: center !important;
    }

    .sweet-alert h2 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        margin-top: 10px !important;
        line-height: 1.2 !important;
    }

    .sweet-alert p {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .sweet-alert .sa-icon {
        transform: scale(0.6) !important;
        margin-bottom: 5px !important;
        margin-top: 5px !important;
        width: 60px !important;
        height: 60px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    .sweet-alert .sa-button-container {
        display: flex !important;
        flex-direction: row !important;

        justify-content: center !important;
        gap: 10px !important;
        margin-top: 5px !important;
        width: 100% !important;
    }

    .sweet-alert button {
        font-size: 12px !important;
        padding: 8px 12px !important;
        margin: 0 !important;
        flex: 1 !important;
        max-width: 100px !important;
        display: inline-block !important;
        height: auto !important;
    }

    .sweet-alert button.cancel {
        background-color: #555 !important;
    }
}

@media (max-width: 480px) {
    .sweet-alert {
        max-width: 95% !important;
        width: 90% !important;
        padding: 15px !important;
    }

    .sweet-alert h2 {
        font-size: 16px !important;
    }

    .sweet-alert p {
        font-size: 12px !important;
    }

    .sweet-alert button {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}





.pk-lobby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pk-lobby-item.pk-lobby-item--selected {
    border: 2px solid #b74bff;
    box-shadow: 0 4px 15px rgba(183, 75, 255, 0.3);
    background: rgba(183, 75, 255, 0.15);
}

.pk-lobby-item.pk-lobby-item--busy {
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.6;
}

.pk-lobby-item__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pk-lobby-item__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pk-lobby-item__info {
    flex: 1;
    min-width: 0;
}

.pk-lobby-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-lobby-item__meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.pk-lobby-item__badge {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.pk-lobby-item--selected .pk-lobby-item__badge {
    color: #b74bff;
}

.pk-lobby-item--busy .pk-lobby-item__badge {
    color: #ffb0b0;
}


[data-modal="pk_battle_lobby"] .modal-ds-body--size--wide {
    max-width: 618px;
    width: 618px;
}


#pk-lobby-list::-webkit-scrollbar {
    width: 8px;
}

#pk-lobby-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#pk-lobby-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b74bff, #7b3dff);
    border-radius: 4px;
}

#pk-lobby-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c55bff, #8b4dff);
}

#pk-lobby-list {
    scrollbar-width: thin;
    scrollbar-color: #b74bff rgba(255, 255, 255, 0.05);
    margin-right: 2px;
    padding-right: 12px;

}


[data-modal="pk_battle_lobby"] button[onclick="closeModal('pk_battle_lobby')"]:hover,
[data-modal="pk_battle_invite"] button[onclick="closeModal('pk_battle_invite')"]:hover {
    color: #fff !important;
}






@media (max-width: 1024px) {


    [data-modal="pk_battle_lobby"] .modal-ds-body--size--wide {
        max-width: 90% !important;
        width: 90% !important;
    }

    [data-modal="pk_battle_lobby"] .modal-ds-content {
        margin: 10px;
    }

    [data-modal="pk_battle_lobby"] .modal-body {
        padding: 20px !important;
    }
}


@media (max-width: 768px) {


    [data-modal="pk_battle_lobby"] .modal-ds-body--size--wide {
        max-width: 100% !important;
        width: 100% !important;
    }


    [data-modal="pk_battle_lobby"] .modal-body {
        padding: 15px !important;
        max-height: calc(100vh - 40px) !important;
    }

    [data-modal="pk_battle_lobby"] .modal-ds-content {
        margin: 0 !important;
        border-radius: 8px !important;
    }


    #pk-lobby-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-height: calc(100vh - 280px) !important;
        padding-right: 12px !important;
    }


    .pk-battle-sidebar__title {
        font-size: 18px !important;
    }


    [data-modal="pk_battle_lobby"] .modal-body>div:first-child {
        flex-direction: row !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    [data-modal="pk_battle_lobby"] .modal-body>div:first-child>div:first-child {
        flex: 1;
    }


    [data-modal="pk_battle_lobby"] .modal-body>div:first-child div[style*="font-size:13px"] {
        font-size: 12px !important;
    }


    [data-modal="pk_battle_lobby"] button[onclick="closeModal('pk_battle_lobby')"] {




    }


    [data-modal="pk_battle_lobby"] .modal-body>div:last-child {
        gap: 8px !important;
        padding-top: 12px !important;
    }


    [data-modal="pk_battle_lobby"] #pk-lobby-invite-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }


    #pk-lobby-list>div {
        padding: 8px 10px !important;
    }


    #pk-lobby-list img {
        width: 40px !important;
        height: 40px !important;
    }


    #pk-lobby-list div[style*="font-size:15px"] {
        font-size: 14px !important;
    }

    #pk-lobby-list div[style*="font-size:12px"] {
        font-size: 11px !important;
    }


    #pk-lobby-list>div>div[style*="gap:12px"] {
        gap: 10px !important;
    }


    [data-modal="pk_battle_invite"] .modal-ds-body,
    [data-modal="pk_invite_rejected"] .modal-ds-body {
        max-width: 100% !important;
        width: 100% !important;
    }

    [data-modal="pk_battle_invite"] .modal-ds-content,
    [data-modal="pk_invite_rejected"] .modal-ds-content {
        margin: 0 !important;
        border-radius: 8px !important;
    }

    [data-modal="pk_battle_invite"] .modal-body,
    [data-modal="pk_invite_rejected"] .modal-body {
        padding: 15px !important;
        min-height: auto !important;
        max-height: calc(100vh - 40px) !important;
    }


    #pk-invite-video-container {
        position: relative !important;
        height: 0 !important;
        padding-bottom: 0 !important;
    }


    #pk-invite-modal-body>div:first-child {
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px !important;
        gap: 12px !important;
    }


    #pk-invite-photo {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0 !important;
    }


    #pk-invite-photo+div {
        flex: 1 !important;
        text-align: left !important;
    }


    #pk-invite-name {
        font-size: 16px !important;
    }


    #pk-invite-caption {
        font-size: 12px !important;
    }


    #pk-invite-note {
        font-size: 13px !important;
        padding: 10px !important;
    }


    [data-modal="pk_battle_invite"] .modal-body>div:first-child>div:first-child {
        font-size: 18px !important;
    }


    [data-modal="pk_battle_invite"] .modal-body>div:last-child>div:last-child,
    [data-modal="pk_invite_rejected"] .modal-body>div:last-child {
        gap: 8px !important;
    }


    [data-modal="pk_battle_invite"] button,
    [data-modal="pk_invite_rejected"] button {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }


    [data-modal="pk_battle_invite"] button[onclick="closeModal('pk_battle_invite')"] {
        width: 36px !important;
        height: 36px !important;
        font-size: 28px !important;
    }


    [data-modal="pk_invite_rejected"] button[onclick="closeModal('pk_invite_rejected')"] {



    }


    [data-modal="pk_invite_rejected"] .modal-ds-body {
        max-width: 100% !important;
        width: 100% !important;
    }

    [data-modal="pk_invite_rejected"] .modal-ds-content {
        margin: 0 !important;
        border-radius: 8px !important;
    }

    [data-modal="pk_invite_rejected"] .modal-body {
        padding: 15px !important;
    }


    [data-modal="pk_invite_rejected"] .modal-body>div:nth-child(2) {
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px !important;
        gap: 12px !important;
    }


    #pk-rejected-photo {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0 !important;
    }


    #pk-rejected-name {
        font-size: 16px !important;
    }


    #pk-rejected-message {
        font-size: 13px !important;
        padding: 10px !important;
    }


    [data-modal="pk_invite_rejected"] .modal-body>div:first-child>div:first-child {
        font-size: 18px !important;
    }


    #pk-rejected-users {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }


    #pk-rejected-users>div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px !important;
        background: rgba(255, 0, 0, 0.1) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 0, 0, 0.3) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }


    #pk-rejected-users img {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }


    #pk-rejected-users>div>div {
        flex: 1 !important;
        min-width: 0 !important;
    }


    #pk-rejected-users>div>div>div:first-child {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #fff !important;
        margin-bottom: 4px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }


    #pk-rejected-users>div>div>div:last-child {
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.6) !important;
    }
}


@media (max-width: 480px) {


    [data-modal="pk_battle_lobby"] .modal-body {
        padding: 12px !important;
    }

    .pk-quit-card__icon,
    .pk-battle-stream--opponent .pk-quit-card__icon,
    .pk-battle-stream--opponent-1 .pk-quit-card__icon,
    .pk-battle-stream--opponent-2 .pk-quit-card__icon {
        width: 28px !important;
        height: 28px !important;
        margin-bottom: 4px !important;
    }

    .pk-quit-card__icon svg,
    .pk-battle-stream--opponent .pk-quit-card__icon svg,
    .pk-battle-stream--opponent-1 .pk-quit-card__icon svg,
    .pk-battle-stream--opponent-2 .pk-quit-card__icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    #pk-lobby-list {
        max-height: calc(100vh - 260px) !important;
    }

    .pk-battle-sidebar__title {
        font-size: 16px !important;
    }


    #pk-lobby-list img {
        width: 36px !important;
        height: 36px !important;
    }


    [data-modal="pk_battle_invite"] .modal-body,
    [data-modal="pk_invite_rejected"] .modal-body {
        padding: 12px !important;
    }

    #pk-invite-photo,
    #pk-rejected-photo {
        width: 63px !important;
        height: 63px !important;
    }

    #pk-invite-name,
    #pk-rejected-name {
        font-size: 15px !important;
    }

    [data-modal="pk_battle_invite"] .modal-body>div:first-child>div:first-child,
    [data-modal="pk_invite_rejected"] .modal-body>div:first-child>div:first-child {
        font-size: 20px !important;
    }


    #pk-rejected-users>div {
        gap: 10px !important;
        padding: 10px !important;
    }


    #pk-rejected-users img {
        width: 48px !important;
        height: 48px !important;
    }


    #pk-rejected-users>div>div>div:first-child {
        font-size: 15px !important;
    }

    #pk-rejected-users>div>div>div:last-child {
        font-size: 12px !important;
    }
}


@media (max-width: 480px) {


    [data-modal="pk_battle_lobby"] .modal-body {
        padding: 12px !important;
    }

    #pk-lobby-list {
        max-height: calc(100vh - 260px) !important;
    }

    .pk-battle-sidebar__title {
        font-size: 16px !important;
    }


    #pk-lobby-list img {
        width: 36px !important;
        height: 36px !important;
    }
}


@media (max-width: 480px) {
    .pk-lobby-item__avatar {
        width: 38px;
        height: 38px;
    }

    .pk-lobby-item {
        padding: 8px;
    }

    [data-modal="pk_battle_lobby"] .scroll-bar-container {
        padding: 15px 10px !important;
    }

    .pk-battle-sidebar__title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
}


@media (max-device-width: 896px) and (orientation: landscape) {
    #pk-lobby-list {
        grid-template-columns: 1fr 1fr !important;
        max-height: 250px !important;
    }

    [data-modal="pk_battle_lobby"] .modal-ds-content {
        max-height: 90vh;
    }
}






@keyframes pkBorderRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


[data-modal="pk_battle_lobby"] .modal-ds-content,
[data-modal="pk_battle_invite"] .modal-ds-content,
[data-modal="pk_invite_rejected"] .modal-ds-content {
    position: relative;
    overflow: hidden;
}


[data-modal="pk_battle_lobby"] .modal-ds-content::before,
[data-modal="pk_battle_invite"] .modal-ds-content::before,
[data-modal="pk_invite_rejected"] .modal-ds-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 60deg,
            rgba(183, 75, 255, 0) 60deg,
            rgba(183, 75, 255, 0.4) 90deg,
            rgba(255, 51, 255, 0.8) 120deg,
            rgba(183, 75, 255, 0.4) 150deg,
            rgba(183, 75, 255, 0) 180deg,
            transparent 180deg);
    animation: pkBorderRotate 6s linear infinite;
    z-index: -1;
    filter: blur(2px);
    transform-origin: center;
}


[data-modal="pk_battle_lobby"] .modal-ds-content::after,
[data-modal="pk_battle_invite"] .modal-ds-content::after,
[data-modal="pk_invite_rejected"] .modal-ds-content::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: inherit;
    z-index: -1;
}






@keyframes liveBorderRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


[data-modal="live"] .modal-ds-content {
    position: relative;
    overflow: hidden;
}


[data-modal="live"] .modal-ds-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 60deg,
            rgba(255, 68, 68, 0) 60deg,
            rgba(255, 68, 68, 0.4) 90deg,
            rgba(255, 100, 100, 0.8) 120deg,
            rgba(255, 68, 68, 0.4) 150deg,
            rgba(255, 68, 68, 0) 180deg,
            transparent 180deg);
    animation: liveBorderRotate 6s linear infinite;
    z-index: -1;
    filter: blur(2px);
    transform-origin: center;
}


[data-modal="live"] .modal-ds-content::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: inherit;
    z-index: -1;
}




@media (min-width: 769px) {
    #sendLiveGift:hover,
    #sendLiveGift.gift--pulse:hover {
        animation: pkGiftPulse 0.7s ease-in-out infinite, pkGiftShine 0.7s linear infinite !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    #sendLiveGift:hover .icon,
    #sendLiveGift:hover svg,
    #sendLiveGift:hover .tile-button__icon {
        filter: drop-shadow(0 0 12px rgba(255, 51, 50, 0.7)) drop-shadow(0 0 18px rgba(142, 68, 173, 0.6)) !important;
        transition: filter 0.15s ease;
    }
}

@media (max-width: 768px) {
    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper {
        background: linear-gradient(225deg, #ff3332, #8e44ad, #ff3332, #8e44ad) !important;
        background-size: 400% 400% !important;
        color: #fff !important;
        animation: pkGiftShine 3.6s linear infinite;
        box-shadow: 0 12px 28px rgba(255, 51, 50, 0.18), 0 12px 28px rgba(142, 68, 173, 0.18) !important;
        position: relative;
        overflow: hidden;
        border: none !important;
    }

    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: -55%;
        width: 55%;
        height: 100%;
        background: linear-gradient(120deg,
            rgba(255, 51, 50, 0) 0%,
            rgba(255, 51, 50, 0.35) 35%,
            rgba(142, 68, 173, 0.45) 65%,
            rgba(142, 68, 173, 0) 100%);
        transform: skewX(-18deg);
        animation: pkButtonSweep 2.6s ease-in-out infinite;
        pointer-events: none;
    }

    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper input,
    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper textarea,
    [data-modal="live_mobile"].pk-battle-active .chat-controls-input {
        color: #fff !important;
    }

    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper input::placeholder,
    [data-modal="live_mobile"].pk-battle-active .chat-controls-input__wrapper textarea::placeholder,
    [data-modal="live_mobile"].pk-battle-active .chat-controls-input:empty::before {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    [data-modal="live_mobile"].pk-battle-active .control-button.send-button:not(#sendLiveGiftMobile) {
        background: transparent !important;
        background-image: none !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
        color: #fff !important;
        animation: none !important;
        box-shadow: none !important;
        position: relative;
        overflow: visible;
    }

    [data-modal="live_mobile"].pk-battle-active .control-button.send-button:not(#sendLiveGiftMobile) svg,
    [data-modal="live_mobile"].pk-battle-active .control-button.send-button:not(#sendLiveGiftMobile) .control-icon,
    [data-modal="live_mobile"].pk-battle-active .control-button.send-button:not(#sendLiveGiftMobile) .send-icon {
        color: #ff3332 !important;
        fill: #ff3332 !important;
        stroke: #ff3332 !important;
        opacity: 1 !important;
        animation: pkGiftIconPulse 3.6s linear infinite;
        filter: drop-shadow(0 0 6px rgba(255, 51, 50, 0.5));
    }
}
