/* 首页幸存者在线状态牌 */
.survivor-status {
    position: relative;
    display: inline-flex;
    min-width: 215px;
    padding: 12px 28px 13px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 42, 42, 0.9);
    background: rgba(8, 0, 0, 0.62);
    box-shadow:
        inset 0 0 20px rgba(135, 0, 0, 0.18),
        0 0 14px rgba(255, 0, 0, 0.13);
    color: #d6d0d0;
    font-family: inherit;
    line-height: 1;
    overflow: hidden;
}

.survivor-status::before,
.survivor-status::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 1px;
    background: #ff2a2a;
    box-shadow: 0 0 7px rgba(255, 0, 0, 0.75);
}

.survivor-status::before {
    top: 8px;
    left: 8px;
}

.survivor-status::after {
    right: 8px;
    bottom: 8px;
}

.survivor-status__label {
    margin-bottom: 8px;
    color: #ff3a3a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.45);
}

.survivor-status__count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #aaa2a2;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.survivor-status__count strong {
    color: #ff2020;
    font-size: 38px;
    font-weight: 900;
    text-shadow:
        0 0 6px rgba(255, 0, 0, 0.8),
        0 0 18px rgba(185, 0, 0, 0.45);
}

.survivor-status__slash {
    color: #6f6868;
}

.survivor-status__state {
    margin-top: 8px;
    color: #8e8585;
    font-size: 11px;
    letter-spacing: 0.15em;
}

.survivor-status.is-online {
    border-color: rgba(255, 42, 42, 0.95);
}

.survivor-status.is-offline {
    border-color: rgba(110, 105, 105, 0.75);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.survivor-status.is-offline .survivor-status__label,
.survivor-status.is-offline .survivor-status__count strong {
    color: #857d7d;
    text-shadow: none;
}

@media (max-width: 767px) {
    .survivor-status {
        min-width: 190px;
        padding: 10px 22px 12px;
    }

    .survivor-status__count strong {
        font-size: 32px;
    }
}
/* 幸存人数标题行 + 手动刷新按钮 */
.survivor-status__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.survivor-status__header .survivor-status__label {
    margin-bottom: 0;
}

.survivor-status__refresh {
    position: relative;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255, 50, 50, 0.55);
    border-radius: 50%;
    background: rgba(40, 0, 0, 0.65);
    color: #ff4a4a;
    font-size: 0;               /* 隐藏原来的文字箭头 */
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 用伪元素画一个干净的旋转箭头 */
.survivor-status__refresh::before {
    content: "";
    width: 11px;
    height: 11px;
    border: 2px solid #ff4a4a;
    border-top-color: transparent;
    border-radius: 50%;
    display: block;
}

.survivor-status__refresh:hover:not(:disabled) {
    opacity: 1;
    border-color: rgba(255, 60, 60, 0.95);
    background: rgba(80, 0, 0, 0.75);
    box-shadow: 0 0 10px rgba(255, 30, 30, 0.35);
    transform: scale(1.08);
}

.survivor-status__refresh:disabled {
    cursor: not-allowed;
    opacity: 0.35;
    box-shadow: none;
}

.survivor-status__refresh.is-spinning {
    animation: survivor-refresh-spin 0.75s linear infinite;
}

.survivor-status__refresh.is-spinning::before {
    border-top-color: transparent;
    border-right-color: transparent;
}

@keyframes survivor-refresh-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .survivor-status__refresh.is-spinning {
        animation: none;
    }
}

/* 状态文字在 stale 时稍微变暖一点 */
.survivor-status.is-stale .survivor-status__state {
    color: #c49a9a;
}