/* main css */
#playersDiv {
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
   position: relative;
    /* 水平居中 */
    margin-left: auto;
    margin-right: auto;
    /* 垂直居中，借助视口高度计算 */
    top: 50vh;
    transform: translateY(-50%); 

}

#playersDiv span {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.player_avatar {
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 50%;
    /* 可将头像设置为圆形 */
    margin-bottom: 20px;
}

#playersDiv button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#playersDiv button:hover {
    background-color: #0056b3;
}

/*遮罩动画*/
/* 转场遮罩层 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 显示状态 */
#loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 转圈圈动画 */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 加载文字 */
.loading-text {
    color: #ecf0f1;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* 进度点动画 */
.loading-dots {
    color: #3498db;
    font-size: 20px;
    font-weight: bold;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

.screen.hidden {
    display: none;
}
