.service-status {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.22s ease, opacity 0.22s ease;
    transform: none;
    letter-spacing: normal;
    text-shadow: none;
}

.mobile-service-status,
.content-secondary .mobile-service-status {
    display: none !important;
}

.service-status .text {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.service-status:hover,
.service-status:focus,
.service-status:focus-visible,
.service-status:active {
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    transform: none;
}

.service-status .service-status-arrow {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.5;
    transform: rotate(45deg) translateY(-1px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    flex-shrink: 0;
}

.service-status:hover .service-status-arrow,
.service-status:focus .service-status-arrow,
.service-status:focus-visible .service-status-arrow,
.service-status:active .service-status-arrow {
    opacity: 0.8;
    transform: rotate(45deg) translate(2px, -1px);
}

@media (max-width: 550px) {
    .service-status .service-status-arrow {
        width: 7px;
        height: 7px;
        min-width: 7px;
        min-height: 7px;
        margin-left: 8px;
        opacity: 0.58;
    }
}

.service-status .dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background: rgba(140, 255, 180, 0.95);
    box-shadow: 0 0 8px rgba(140, 255, 180, 0.3);
    flex-shrink: 0;
    animation: pixplayServicePulse 2.8s ease-in-out infinite;
}

.service-status .dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(140, 255, 180, 0.24) 0%, rgba(140, 255, 180, 0.1) 42%, rgba(140, 255, 180, 0) 72%);
    opacity: 0;
    transform: scale(0.72);
    animation: pixplayServiceRing 2.8s ease-out infinite;
    pointer-events: none;
}

.service-status.warn .dot {
    background: rgba(255, 209, 92, 0.96);
    box-shadow: 0 0 8px rgba(255, 209, 92, 0.26);
    animation-name: pixplayServicePulseWarn;
}

.service-status.warn .dot::after {
    background: radial-gradient(circle, rgba(255, 209, 92, 0.22) 0%, rgba(255, 209, 92, 0.08) 42%, rgba(255, 209, 92, 0) 72%);
    animation-name: pixplayServiceRingWarn;
}

.service-status.bad .dot {
    background: radial-gradient(circle at 30% 30%, rgba(255, 190, 190, 0.96), rgba(255, 125, 125, 0.88));
    box-shadow: 0 0 7px rgba(255, 130, 130, 0.24);
    animation-name: pixplayServicePulseBad;
}

.service-status.bad .dot::after {
    background: radial-gradient(circle, rgba(255, 140, 140, 0.22) 0%, rgba(255, 140, 140, 0.08) 42%, rgba(255, 140, 140, 0) 72%);
    animation-name: pixplayServiceRingBad;
}

@keyframes pixplayServicePulse {
    0% {
        opacity: 0.84;
        transform: scale(0.96);
        box-shadow: 0 0 4px rgba(140, 255, 180, 0.18), 0 0 10px rgba(140, 255, 180, 0.08);
    }

    50% {
        opacity: 1;
        transform: scale(1.07);
        box-shadow: 0 0 10px rgba(140, 255, 180, 0.38), 0 0 18px rgba(140, 255, 180, 0.14);
    }

    100% {
        opacity: 0.84;
        transform: scale(0.96);
        box-shadow: 0 0 4px rgba(140, 255, 180, 0.18), 0 0 10px rgba(140, 255, 180, 0.08);
    }
}

@keyframes pixplayServiceRing {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    38% {
        opacity: 0.42;
    }

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

@keyframes pixplayServicePulseWarn {
    0% {
        opacity: 0.82;
        transform: scale(0.96);
        box-shadow: 0 0 4px rgba(255, 209, 92, 0.16), 0 0 10px rgba(255, 209, 92, 0.06);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
        box-shadow: 0 0 9px rgba(255, 209, 92, 0.32), 0 0 16px rgba(255, 209, 92, 0.1);
    }

    100% {
        opacity: 0.82;
        transform: scale(0.96);
        box-shadow: 0 0 4px rgba(255, 209, 92, 0.16), 0 0 10px rgba(255, 209, 92, 0.06);
    }
}

@keyframes pixplayServiceRingWarn {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    38% {
        opacity: 0.36;
    }

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

@keyframes pixplayServicePulseBad {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
        box-shadow: 0 0 4px rgba(255, 140, 140, 0.15), 0 0 9px rgba(255, 140, 140, 0.06);
    }

    50% {
        opacity: 0.96;
        transform: scale(1.05);
        box-shadow: 0 0 8px rgba(255, 140, 140, 0.26), 0 0 15px rgba(255, 140, 140, 0.08);
    }

    100% {
        opacity: 0.7;
        transform: scale(0.95);
        box-shadow: 0 0 4px rgba(255, 140, 140, 0.15), 0 0 9px rgba(255, 140, 140, 0.06);
    }
}

@keyframes pixplayServiceRingBad {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    38% {
        opacity: 0.32;
    }

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

@media (prefers-reduced-motion: reduce) {
    .service-status .dot,
    .service-status .dot::after {
        animation: none !important;
    }
}

@media (max-width: 550px) {
    header > .flex-block > .service-status#serviceStatus {
        display: none !important;
    }

    .content-secondary .mobile-service-status {
        display: flex !important;
    }

    html.pixplay-secondary-open header > .flex-block > .service-status#serviceStatus {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.header-notifications-link,
.mobile-head-notifications {
    position: relative;
    overflow: visible !important;
}

.header-notifications-link.has-unread,
.mobile-head-notifications.has-unread {
    color: #ffd8d8;
}

.header-notifications-link.has-unread .bell-icon,
.mobile-head-notifications.has-unread .bell-icon {
    color: #ffd8d8;
}

.header-notifications-link .count-mine,
.mobile-head-notifications .count-mine {
    position: absolute;
    top: -7px;
    right: -7px;
    left: auto;
    margin: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: hsl(4deg 90% 58%) !important;
    color: hsl(0deg 100% 97%) !important;
    -webkit-text-fill-color: hsl(0deg 100% 97%) !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    border: 1px solid rgba(28, 12, 12, 0.62) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    z-index: 2;
    text-shadow: none;
    filter: none !important;
    opacity: 1;
}

@media (max-width: 550px) {
    .mobile-head-notifications.has-unread {
        background: linear-gradient(180deg, rgba(132, 54, 54, 0.3), rgba(82, 28, 28, 0.18));
        border-color: rgba(255, 128, 128, 0.22);
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 3px 8px rgba(76, 18, 18, 0.34);
    }
}

.header-notifications-link .text-mobile {
    margin-left: 10px;
}

.user-panel--authenticated {
    display: grid;
    gap: 8px;
    padding: 0 0 8px;
    margin: 0 0 6px;
}

.user-panel__identity {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.user-panel--authenticated .user-image {
    padding: 0;
}

.user-panel__avatar-link,
.user-panel__avatar-link:hover,
.user-panel__avatar-link:focus,
.user-panel__avatar-link:focus-visible,
.user-panel__name-link,
.user-panel__name-link:hover,
.user-panel__name-link:focus,
.user-panel__name-link:focus-visible {
    color: inherit;
    text-shadow: none;
    transform: none;
}

.user-panel__avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.user-panel__name-link {
    display: inline-block;
}

.user-panel--authenticated .user-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.94);
}

.sidebar-shared-access-badge {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(110, 170, 255, 0.16);
    background: rgba(88, 128, 255, 0.09);
    font-size: 11px;
    font-weight: 700;
    color: rgba(220, 231, 255, 0.9);
}

.content-secondary .list-links a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-secondary .list-links a .count,
.content-secondary .list-links a .sidebar-link-meta {
    margin-left: auto;
}

.sidebar-link-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12px;
    color: rgba(182, 211, 255, 0.94);
}

@media (max-width: 550px) {
    .user-panel--authenticated {
        padding-bottom: 6px;
        margin-bottom: 4px;
    }

    .user-panel--authenticated .user-name {
        font-size: 17px;
    }
}

html.pixplay-standalone #toast {
    top: calc(10px + var(--pixplay-safe-top));
    width: calc(100vw - 24px);
    max-width: 360px;
}

#toast #success,
#toast #alert {
    padding-right: 60px;
}

a.close-al {
    position: absolute;
    top: 50%;
    right: 12px;
    float: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: transparent;
    font-size: 0;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
    transform: translate3d(0, -50%, 0) !important;
    transition: background 0.2s ease !important;
}

a.close-al::before {
    content: "";
    width: 12px;
    height: 12px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2L2 10' stroke='rgba(255,255,255,0.82)' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

a.close-al:hover {
    background: rgba(255, 255, 255, 0.08);
}

a.close-al:hover,
a.close-al:focus,
a.close-al:active,
a.close-al:focus-visible {
    color: transparent !important;
    text-shadow: none !important;
    transform: translate3d(0, -50%, 0) !important;
}

html.pixplay-android body {
    background-attachment: scroll !important;
}

html.pixplay-no-motion *,
html.pixplay-no-motion *::before,
html.pixplay-no-motion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html.pixplay-no-motion #toast #success::after,
html.pixplay-no-motion #toast #alert::after {
    animation: toastProgress 4.5s linear forwards !important;
}

.help-button img {
    display: block;
    width: 16px;
    height: 16px;
}

.help-button.help-button--pending {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.help-button.help-button--ready {
    visibility: visible;
    opacity: 1;
}

.help-button.help-button--failed {
    display: none !important;
}

.game-partner-links {
    float: right !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.game-partner-links .help-button {
    margin: 0 !important;
    flex: 0 0 auto;
}

@media (max-width: 550px) {
    .content-primary {
        min-height: calc(100vh - 35px);
        min-height: calc(100dvh - 35px);
    }

    .mobile-head-notifications .count-mine {
        top: -5px;
        right: -5px;
    }

    html.pixplay-standalone #toast {
        left: 12px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: 360px;
    }

    a.close-al {
        right: 10px;
        width: 26px;
        height: 26px;
    }

    html.pixplay-android .clear-header {
        padding-top: 34px;
    }

    html.pixplay-android .content-primary {
        min-height: auto !important;
        padding-bottom: 84px;
    }

}

@media (max-width: 550px) {
    html body header,
    html.pixplay-standalone body header,
    html.pixplay-android body header {
        border: 0 !important;
        border-bottom: 0 !important;
        border-block-end: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
        background-clip: padding-box !important;
    }

    html body header > .additional-flex-block {
        border: 0 !important;
        border-bottom: 0 !important;
        border-block-end: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
    }

    html body header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -3px;
        height: 4px;
        background: var(--default-content-background-mobile, var(--default-content-background));
        pointer-events: none;
    }

    html body .clear-header {
        border: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
    }
}
