.ac-game-menu {
    width: 100%;
    height: 100%;
    background-image: url("/static/image/final_kof_images/menu.jpg");
    background-size: 100% 100%;
    user-select: none;
}

.ac-game-menu-field {
    width: 20vw;
    position: relative;
    top: 40%;
    left: 20%;
}

.ac-game-menu-field-item {
    color: white;
    height: 6vh;
    width: 18vw;
    font-size: 4vh;
    font-style: italic;
    text-align: center;
    background-color: rgba(39, 21, 28, 0.6);
    border-radius: 10px;
    letter-spacing: 0.5vw;
    cursor: pointer;
    margin-bottom: 2vh;
}

.ac-game-menu-field-item:hover {
    transform: scale(1.05);
    transition: 200ms;
}

.ac-game-playground {
    width: 100%;
    height: 100%;
    user-select: none;
    background-color: grey;
}

.ac-game-settings {
    width: 100%;
    height: 100%;
    background-image: url("/static/image/final_kof_images/menu.jpg");
    background-size: 100% 100%;
    user-select: none;
}

.ac-game-settings-login {
    height: 45vh;
    width: 20vw;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.ac-game-settings-register {
    height: 52vh;
    width: 20vw;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.ac-game-settings-title {
    color: white;
    font-size: 3vh;
    text-align: center;
    height: 7vh;
    padding-top: 2vh;
}

.ac-game-settings-username {
    display: block;
    height: 7vh;
}

.ac-game-settings-password {
    display: block;
    height: 7vh;
}

.ac-game-settings-item {
    width: 100%;
    height: 100%
}

.ac-game-settings-item>input {
    width: 90%;
    line-height: 3vh;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ac-game-settings-submit {
    display: block;
    height: 7vh;
}

.ac-game-settings-item>button {
    color: white;
    width: 90%;
    line-height: 3vh;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4CAF50;
    border-radius: 5px;
    cursor: pointer;
}

.ac-game-settings-error-message {
    color: red;
    font-size: 1vh;
    display: inline;
    float: left;
    padding-left: 1vh;
    padding-top: 1vh;
}

.ac-game-settings-option {
    color: white;
    font-size: 2vh;
    display: inline;
    float: right;
    padding-right: 1vw;
    cursor: pointer;
}

.ac-game-settings-acwing {
    display: block;
    height: 7vh;
}

.ac-game-settings-acwing>img {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.ac-game-settings-acwing>div {
    color: white;
    font-size: 1.5vh;
    text-align: center;
}

.ac-game-playground>canvas {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ac-game-chat-field-history {
    position: absolute;
    top: 66%;
    left: 20%;

    transform: translate(-50%, -50%);

    width: 20%;
    height: 32%;

    color: white;
    font-size: 2vh;

    padding: 5px;
    overflow: auto;
}

.ac-game-chat-field-history::-webkit-scrollbar {
    width: 0;
}

.ac-game-chat-field-input {
    position: absolute;
    top: 86%;
    left: 20%;

    transform: translate(-50%, -50%);

    width: 20%;
    height: 3vh;

    color: white;
    font-size: 2vh;

    background-color: rgba(225, 225, 230, 0.2);
}

/* 排行榜样式 */
.ac-game-ranklist {
    width: 100%;
    height: 100%;
    background-image: url("/static/image/final_kof_images/menu.jpg");
    background-size: 100% 100%;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ac-game-ranklist-container {
    width: 60vw;
    max-width: 800px;
    height: 80vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(39, 21, 28, 0.9));
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.ac-game-ranklist-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(218, 165, 32, 0.2));
    padding: 2vh 3vw;
    text-align: center;
    position: relative;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.ac-game-ranklist-header h1 {
    color: gold;
    font-size: 4vh;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3vw;
}

.ac-game-ranklist-close {
    position: absolute;
    top: 1vh;
    right: 2vw;
    font-size: 5vh;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.ac-game-ranklist-close:hover {
    color: #ff4444;
    transform: scale(1.2);
}

.ac-game-ranklist-content {
    flex: 1;
    overflow-y: auto;
    padding: 2vh 2vw;
    position: relative;
}

.ac-game-ranklist-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 2.5vh;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid gold;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 2vh;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ac-game-ranklist-table {
    width: 100%;
}

.ac-game-ranklist-table table {
    width: 100%;
    border-collapse: collapse;
}

.ac-game-ranklist-table thead {
    background: rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ac-game-ranklist-table th {
    color: gold;
    font-size: 2.5vh;
    padding: 1.5vh 1vw;
    text-align: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.ac-game-ranklist-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ac-game-ranklist-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
}

.ac-game-ranklist-table tbody tr.current-player {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.8);
}

.ac-game-ranklist-table td {
    color: white;
    font-size: 2.2vh;
    padding: 1.5vh 1vw;
    text-align: center;
}

.rank-col {
    width: 15%;
}

.avatar-col {
    width: 15%;
}

.username-col {
    width: 45%;
    text-align: left;
    padding-left: 2vw;
}

.score-col {
    width: 25%;
}

.rank-badge {
    font-size: 3vh;
    font-weight: bold;
}

.avatar-col img {
    width: 5vh;
    height: 5vh;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    object-fit: cover;
}

.score-value {
    color: gold;
    font-weight: bold;
    font-size: 2.5vh;
}

.ac-game-ranklist-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2vh 3vw;
    display: flex;
    justify-content: space-around;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.ac-game-ranklist-footer button {
    color: white;
    background: rgba(255, 215, 0, 0.3);
    border: 2px solid gold;
    border-radius: 10px;
    padding: 1.5vh 3vw;
    font-size: 2.2vh;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.ac-game-ranklist-footer button:hover {
    background: gold;
    color: black;
    transform: scale(1.05);
}

.ac-game-ranklist-refresh {
    background: rgba(76, 175, 80, 0.5) !important;
    border-color: #4CAF50 !important;
}

.ac-game-ranklist-refresh:hover {
    background: #4CAF50 !important;
    color: white !important;
}

/* 滚动条样式 */
.ac-game-ranklist-content::-webkit-scrollbar {
    width: 8px;
}

.ac-game-ranklist-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.ac-game-ranklist-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.ac-game-ranklist-content::-webkit-scrollbar-thumb:hover {
    background: gold;
}