/** {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*}*/

/*html, body {*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    overflow-x: hidden;*/
/*}*/

/*body {*/
/*    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;*/
/*    position: relative;*/
/*    min-height: 100vh;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

/* 主卡片 */
.card {

    top: 10%;
    left: 5%;
    width: 90%;
    position: fixed;
    z-index: 1;
    box-sizing: border-box;
    max-width: 380px;
    background: rgb(0 0 0 / 69%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 25px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 标题 */
.title {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.title h1 {
    font-size: 26px;
    color: #f9ee73;
    text-shadow: 2px 2px 8px rgb(0 0 0);
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 2px;
}

/* 表头 */
.table-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 12px;
}

.table-header span {
    font-size: 14px;
    color: #FFD700;
    font-weight: 600;
}

.header-account {
    margin-left: 30px;
}

/* 排名列表 */
.rank-list {
    display: flex;
    display: flex;
    flex-direction: column;
    height: 30vh;
    overflow: auto;
    flex-direction: column;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.rank-number {
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.account {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bet {
    color: #ffc000;
    font-size: 15px;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}

/* 备注 */
.note {
    text-align: center;
    margin-top:10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.note label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.note input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #FFD700;
}

/* 前三名特殊样式 */
.rank-item:nth-child(1) .rank-number {
    font-size: 22px;
}

.rank-item:nth-child(2) .rank-number {
    color: #65ff3b;
}

.rank-item:nth-child(3) .rank-number {
    color: #ca892e;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #000000bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.1);
}

.close-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

/* 小屏幕优化 */
@media (max-width: 320px) {
    .card {
        padding: 20px 15px;
    }

    .title h1 {
        font-size: 22px;
    }

    .rank-number {
        width: 24px;
        font-size: 16px;
        margin-right: 12px;
    }

    .rank-item:nth-child(1) .rank-number {
        font-size: 20px;
    }

    .account, .bet {
        font-size: 14px;
    }
}

/* 超大屏幕优化 */
@media (min-width: 400px) {
    .card {
        padding: 20px 25px 15px 25px;
    }

    .title h1 {
        font-size: 28px;
    }
}
